/* Felyx Jobs — one stylesheet for the customer app and the owner console. */
:root {
  --ink: #0E1B2C; --ink-2: #33404F; --muted: #5B6878; --faint: #8A97A6;
  --bg: #F4F6F9; --surface: #FFFFFF; --surface-2: #F8FAFC; --line: #E3E7EC; --line-2: #EEF1F4;
  --brand: #0B6E55; --brand-ink: #FFFFFF; --brand-soft: #E3F7EF; --brand-hover: #08513F;
  --mint: #5EE0B5; --navy: #0E1B2C; --navy-2: #16263A; --navy-line: #24364C;
  --warn: #9A4A06; --warn-soft: #FDF4E8; --bad: #B42318; --bad-soft: #FDECEA;
  --info: #1D4ED8; --info-soft: #EAF0FE; --good: #0B6E55; --good-soft: #E3F7EF;
  --ins: #D7F5E7; --ins-ink: #064E3B; --del: #FDE2E1; --del-ink: #8A1C13;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(14,27,44,.06), 0 4px 16px rgba(14,27,44,.05);
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; --display: Manrope, Inter, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E8EDF3; --ink-2: #C6D0DB; --muted: #95A3B3; --faint: #6E7D8E;
    --bg: #0A121D; --surface: #111C2A; --surface-2: #142233; --line: #22344A; --line-2: #1A2A3D;
    --brand: #3FCF9F; --brand-ink: #062A20; --brand-soft: #123A30; --brand-hover: #5EE0B5;
    --warn: #F5B971; --warn-soft: #3A2A14; --bad: #F8907F; --bad-soft: #3A1A17;
    --info: #8FB0FF; --info-soft: #17264A; --good: #5EE0B5; --good-soft: #123A30;
    --ins: #12402F; --ins-ink: #B9F5DC; --del: #4A1E1B; --del-ink: #FFC9C2;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; } a:hover { color: var(--brand-hover); text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; margin: 0; color: var(--ink); }
h1 { font-size: 26px; font-weight: 800; } h2 { font-size: 18px; font-weight: 700; } h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 16px; } .stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .spread { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; background: var(--navy); color: #C9D3DE; display: flex; flex-direction: column;
  padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; color: #fff; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: #1B2D44; display: grid; place-items: center; }
.brand-name { font: 800 18px/1 var(--display); letter-spacing: -.02em; }
.brand-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
  background: var(--mint); padding: 3px 6px; border-radius: 5px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6F8196; padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: #C9D3DE; font-weight: 500; font-size: 14.5px; }
.nav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.nav a.active { background: #1C3049; color: #fff; box-shadow: inset 3px 0 0 var(--mint); }
.nav svg { flex: 0 0 18px; opacity: .9; }
.nav .count { margin-left: auto; background: var(--mint); color: var(--navy); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--navy-line); padding: 14px 8px 0; font-size: 13px; }
.sidebar-foot .who { color: #fff; font-weight: 600; } .sidebar-foot button { all: unset; cursor: pointer; color: #93A3B5; font-size: 13px; }
.sidebar-foot button:hover { color: #fff; }
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px 0; flex-wrap: wrap; }
.content { padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 24px; max-width: 1280px; width: 100%; }
.page-sub { color: var(--muted); margin-top: 4px; }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { width: auto; flex: none; height: auto; position: static; padding: 12px 16px; }
  .sidebar .nav { display: flex; flex-wrap: wrap; gap: 4px; } .nav-label { display: none; }
  .sidebar-foot { display: none; } .brand { padding-bottom: 8px; }
  .topbar { padding: 16px 16px 0; } .content { padding: 16px 16px 40px; }
}

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-body { padding: 18px 22px; }
.grid { display: grid; gap: 16px; }
.grid-kpi { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi .value { font: 800 30px/1.1 var(--display); letter-spacing: -.02em; }
.kpi .delta { font-size: 12.5px; color: var(--muted); }
.kpi.accent { background: var(--navy); border-color: var(--navy); color: #fff; } .kpi.accent .label, .kpi.accent .delta { color: #A9B7C6; }
.kpi.accent .value { color: #fff; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .title { font-weight: 600; color: var(--ink); } .table .sub { color: var(--muted); font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  font: 600 14px/1 var(--font); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--faint); text-decoration: none; color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; } .btn-dark:hover { color: #fff; background: #1B2D44; }
.btn-danger { color: var(--bad); } .btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; } .btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-ghost { background: transparent; border-color: transparent; } .btn-block { width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label-strong { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.help { font-size: 12.5px; color: var(--muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=url],
.field input[type=date], .field input[type=datetime-local], .field select, .field textarea, .input-plain {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font: 15px/1.4 var(--font); }
.field textarea { min-height: 280px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.55; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.errorlist { margin: 0; padding: 0; list-style: none; color: var(--bad); font-size: 13px; }
.search { display: flex; gap: 8px; flex-wrap: wrap; } .search .input { min-width: 240px; flex: 1 1 240px; }

/* ---------- alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.alert.success { background: var(--good-soft); color: var(--good); } .alert.error { background: var(--bad-soft); color: var(--bad); }
.alert.info, .alert.debug { background: var(--info-soft); color: var(--info); } .alert.warning { background: var(--warn-soft); color: var(--warn); }
.messages { display: flex; flex-direction: column; gap: 8px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--brand); }
.tabs .n { font-size: 12px; color: var(--faint); margin-left: 6px; }

/* ---------- chart ---------- */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 8px; }
.bar { flex: 1 1 0; display: flex; align-items: flex-end; gap: 2px; height: 100%; position: relative; }
.bar span { flex: 1; border-radius: 3px 3px 0 0; min-height: 2px; }
.bar .s1 { background: var(--brand); } .bar .s2 { background: #2E7BD6; }
.bar:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--navy);
  color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; margin-bottom: 6px; z-index: 2; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); padding-top: 8px; }

/* ---------- lists / timeline ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
  font: 700 13px/1 var(--display); flex: 0 0 34px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.timeline li { position: relative; } .timeline li::before { content: ""; position: absolute; left: -27px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty svg { color: var(--faint); }
.kv { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 10px 20px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-side { flex: 1 1 420px; background: var(--navy); color: #C9D3DE; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-side h1 { color: #fff; font-size: 38px; line-height: 1.1; }
.auth-main { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 20px; }
.doc-links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
@media (max-width: 700px) { .auth-side { padding: 28px 20px; } .auth-side h1 { font-size: 28px; } }

/* ---------- legal docs ---------- */
.doc { white-space: pre-wrap; font-size: 14.5px; line-height: 1.7; max-width: 820px; }
.doc-box { max-height: 220px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
  white-space: pre-wrap; font-size: 13px; line-height: 1.6; }

/* ---------- resume diff ---------- */
.resume-sheet { background: #fff; color: #111; border-radius: 6px; padding: 40px 44px; white-space: pre-wrap; font: 14px/1.65 Georgia, "Times New Roman", serif;
  box-shadow: var(--shadow); border: 1px solid var(--line); }
.resume-sheet ins { background: #D7F5E7; color: #064E3B; text-decoration: none; border-radius: 3px; padding: 0 2px; }
.resume-sheet del { background: #FDE2E1; color: #8A1C13; border-radius: 3px; padding: 0 2px; }
.change { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; gap: 12px; background: var(--surface); }
.change.flagged { border-color: var(--warn); background: var(--warn-soft); }
.change input { width: 20px; height: 20px; accent-color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.change .before { text-decoration: line-through; color: var(--muted); font-size: 13px; }
.change .after { font-weight: 600; font-size: 14px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 14px 22px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- signature ---------- */
.sig-preview { font: 400 38px/1.2 "Dancing Script", "Brush Script MT", cursive; color: var(--ink); min-height: 56px; border-bottom: 2px solid var(--ink); padding: 4px 2px; }
.cert { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cert-head { background: var(--navy); color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.hash { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; color: var(--ink-2); }

/* ---------- integrations ---------- */
.int-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.int-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font: 800 15px/1 var(--display); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.on { background: var(--good); } .dot.off { background: var(--faint); } .dot.err { background: var(--bad); }
.banner { padding: 14px 18px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- job facts & description highlights ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip svg { opacity: .75; }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.miss { background: transparent; color: var(--muted); border-style: dashed; }
.chip.pay { background: #EEF6E8; color: #3B6212; border-color: transparent; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.fact { background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.fact .k { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-size: 14px; font-weight: 600; }
.jd-tile { height: 340px; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  white-space: pre-wrap; font-size: 13.5px; line-height: 1.65; overscroll-behavior: contain; }
.jd-tile mark { border-radius: 4px; padding: 1px 3px; color: inherit; }
.hl-skill { background: #DCEBFF; } .hl-experience { background: #FFE8C7; } .hl-education { background: #EADFFF; }
.hl-pay { background: #DDF3C8; } .hl-location { background: #CFF1EC; } .hl-role { background: #FCE3EF; } .hl-type { background: #E9ECEF; }
.jd-tile mark.unmet { outline: 1.5px dashed var(--bad); outline-offset: 1px; }
.jd-tile mark.met { box-shadow: inset 0 -2px 0 var(--good); }
.hl-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.hl-legend mark { padding: 0 6px; border-radius: 4px; color: var(--ink); margin-right: 4px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hl-skill { background: #1E3A5F; } :root:not([data-theme="light"]) .hl-experience { background: #4A3415; }
  :root:not([data-theme="light"]) .hl-education { background: #352A55; } :root:not([data-theme="light"]) .hl-pay { background: #2C4318; }
  :root:not([data-theme="light"]) .hl-location { background: #134540; } :root:not([data-theme="light"]) .hl-role { background: #4A2236; }
  :root:not([data-theme="light"]) .hl-type { background: #2A3340; } :root:not([data-theme="light"]) .chip.pay { background: #2C4318; color: #CFEBB4; }
}
.letter-box { width: 100%; min-height: 260px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); font: 14.5px/1.65 Georgia, "Times New Roman", serif; resize: vertical; }
.score-ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--display);
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); position: relative; flex: 0 0 46px; }
.score-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; }
.match-row td { vertical-align: top; }
details.skip summary { list-style: none; cursor: pointer; } details.skip summary::-webkit-details-marker { display: none; }
details.skip[open] .skip-menu { display: flex; }
.skip-menu { display: none; position: absolute; right: 0; top: 36px; z-index: 5; flex-direction: column; gap: 2px; padding: 6px; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.skip-menu button { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--ink); }
.skip-menu button:hover, .skip-menu button:focus-visible { background: var(--surface-2); }
.bulkbar { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 12px 18px; background: var(--navy); color: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .meter span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter.neg span { background: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Job Crawler sync (owner → API integrations) ---------- */
.int-card-wide { grid-column: 1 / -1; }
.sync { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.sync-options { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sync-option { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-2); }
.sync-option .btn[disabled] { opacity: .55; cursor: not-allowed; }
.sync-last { color: var(--ink-2); } .sync-last span { font-weight: 600; }
.sync-panel { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.sync-head { flex-wrap: wrap; gap: 8px; }
.sync-meter { height: 10px; position: relative; }
.sync-meter span { width: 0; transition: width .4s ease; }
.sync-meter.indeterminate span { position: absolute; width: 35%; animation: sync-slide 1.4s ease-in-out infinite; }
@keyframes sync-slide { 0% { left: -35%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .sync-meter span { transition: none; } .sync-meter.indeterminate span { animation: none; width: 100%; left: 0; opacity: .45; } }
.sync-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; margin: 0; background: var(--line);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sync-counts div { background: var(--surface); padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.sync-counts dt { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sync-counts dd { margin: 0; font: 700 18px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.sync-actions { gap: 8px; } .sync [hidden] { display: none !important; }
@media (max-width: 520px) {
  .sync-option .btn { width: 100%; }
  .sync-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sync-actions .btn { flex: 1 1 auto; }
}

/* ---------- Jobs → Location data (Clean data) ---------- */
.clean { padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.clean-head { align-items: flex-start; }
.clean-text { flex: 1 1 380px; max-width: 760px; display: flex; flex-direction: column; gap: 4px; }
.clean-text h3, .clean-text p { margin: 0; }
.clean-actions { gap: 8px; }
.clean-progress { display: flex; flex-direction: column; gap: 10px; }
.clean [hidden] { display: none !important; }
@media (max-width: 640px) { .clean { padding: 14px 16px; } .clean-actions, .clean-actions .btn { width: 100%; } }

/* ---------- Create user / discount codes (owner) ---------- */
.form-narrow { max-width: 720px; }
.grid-2.tight { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 6px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.choice + .choice { margin-top: 8px; }
.choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.choice > span { display: flex; flex-direction: column; gap: 2px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--surface-2); }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.form-narrow [hidden] { display: none !important; }

/* Matches page: search and filters */
.mf { gap: 14px; }
.mf-search { gap: 8px; flex-wrap: wrap; align-items: center; }
.mf-search .input { min-width: 220px; }
.mf-grid { display: grid; grid-template-columns: 140px 150px auto minmax(220px, 1fr) auto; gap: 14px; align-items: end; }
.mf-remote { gap: 8px; min-height: 44px; font-size: 14px; }
.mf-remote input { width: 18px; height: 18px; accent-color: var(--brand); }
.mf-level input[type=range] { width: 100%; accent-color: var(--brand); }
.mf-actions { gap: 8px; flex-wrap: nowrap; }
.mf-alerts { gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) { .mf-grid { grid-template-columns: 1fr 1fr; } .mf-level, .mf-actions { grid-column: 1 / -1; } }
.how summary { cursor: pointer; }
.how-steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.queue-bar { padding: 12px 16px; gap: 12px; border-bottom: 1px solid var(--line, #E5E9EE); }
