.app svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app { --side: 248px; }

/* Shell */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 10;
  display: flex; flex-direction: column; gap: 28px; padding: 24px 16px;
  background: var(--surface); border-right: 1px solid var(--line);
}
.sidebar .logo { padding: 0 10px; }
.sidebar .logo img { height: 24px; }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px;
}
.nav a svg { width: 20px; height: 20px; color: var(--muted); }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--brand-soft); color: var(--brand); }
.nav a.active svg { color: var(--brand); }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn); color: #fff; font-size: 12px; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 8px 0 10px; border-top: 1px solid var(--line); }
.who { min-width: 0; flex: 1; display: grid; }
.who b, .who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who b { font-size: 14px; }
.who small { color: var(--muted); font-size: 12.5px; }

.topbar, .tabbar { display: none; }
.main { margin-left: var(--side); padding: 32px clamp(16px, 4vw, 48px) 64px; max-width: calc(1180px + var(--side)); }

.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.view-head h1 { font-size: 30px; letter-spacing: -.03em; }
.sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

.banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px;
  padding: 14px 18px; border-radius: var(--radius); background: var(--info-soft); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--info) 25%, transparent);
}
.banner.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.banner.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.banner p { flex: 1; min-width: 200px; font-size: 15px; }
.banner .btn { margin-left: auto; }

.block { padding: 22px; }
.block h2 { font-size: 17px; }
.block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13.5px; }

/* Empty */
.empty-hero { text-align: center; padding: 56px 24px; display: grid; justify-items: center; gap: 10px; }
.empty-hero h2 { font-size: 22px; }
.empty-hero p { color: var(--muted); max-width: 30em; margin-bottom: 12px; }
.empty-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 8px; }
.empty-icon svg { width: 30px; height: 30px; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); font-size: 15px; list-style: none; }

/* Print */
.print-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.print-form { display: grid; gap: 16px; }
.drop {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 30px 16px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--brand); box-shadow: var(--shadow); margin-bottom: 6px; }
.drop-icon svg { width: 24px; height: 24px; }
.drop small { color: var(--muted); }
.files { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.files:empty { display: none; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.file-icon { flex: none; width: 36px; height: 42px; border-radius: 7px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; background: var(--brand-soft); color: var(--brand); overflow: hidden; }
.file-icon img { width: 100%; height: 100%; object-fit: cover; }
.file-meta { min-width: 0; flex: 1; display: grid; }
.file-meta b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { color: var(--muted); font-size: 12.5px; }

.printers { display: grid; gap: 14px; }
.printers-group > .label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.printer-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pp {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
.pp:hover { border-color: var(--brand); }
.pp[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.pp:disabled { opacity: .55; cursor: not-allowed; }
.pp svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.pp[aria-checked="true"] svg { color: var(--brand); }
.pp-name { min-width: 0; flex: 1; display: grid; }
.pp-name b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-name small { font-size: 12.5px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.off { background: var(--line-strong); }

.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.opt { display: grid; gap: 8px; align-content: start; }
.stepper { display: flex; align-items: center; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); width: fit-content; }
.stepper input { width: 52px; text-align: center; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: 17px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper .icon-btn { width: 44px; height: 44px; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; padding: 0 10px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.recent { padding: 6px 0; position: sticky; top: 24px; }
.recent-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 8px; }
.recent-head h2 { font-size: 16px; }
.recent-head a { font-size: 14px; font-weight: 600; text-decoration: none; }

/* Jobs */
.job-list { list-style: none; padding: 0; margin: 0; }
.job-list.card { overflow: hidden; }
.job { border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; }
.job-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.job-row:hover { background: var(--surface-2); }
.job-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.job-ico svg { width: 19px; height: 19px; }
.job-ico.ok { background: var(--ok-soft); color: var(--ok); }
.job-ico.warn { background: var(--warn-soft); color: var(--warn); }
.job-ico.info { background: var(--info-soft); color: var(--info); }
.job-main { min-width: 0; flex: 1; display: grid; }
.job-main b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.job-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-detail { padding: 4px 18px 18px 68px; display: grid; gap: 14px; }
.job-detail .alert { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); font-size: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.timeline li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline time { color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.compact .job-row { padding: 10px 18px; }
.compact .job-ico { width: 32px; height: 32px; }
.compact .chip { font-size: 11.5px; padding: 2px 8px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px 18px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.03em; }
.stat small { color: var(--muted); font-size: 13px; font-weight: 600; }
.filters { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.filters button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Stations */
.stations { display: grid; gap: 16px; }
.station { overflow: hidden; }
.station-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.station-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.station-ico svg { width: 22px; height: 22px; }
.station-title { min-width: 0; flex: 1; display: grid; }
.station-title b { font-size: 16.5px; }
.station-title small { color: var(--muted); font-size: 13px; }
.station-actions { display: flex; gap: 4px; }
.printer-rows { list-style: none; padding: 0; margin: 0; }
.printer-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); }
.printer-row:first-child { border-top: 0; }
.printer-row > .i svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.printer-row .pr-name { min-width: 0; flex: 1; display: grid; }
.printer-row .pr-name b { font-size: 14.5px; font-weight: 600; }
.printer-row .pr-name small { color: var(--muted); font-size: 12.5px; }
.printer-row.disabled .pr-name { opacity: .55; }
.copy-id { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline dotted; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 13px; background: var(--line-strong); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }

/* Keys */
.keys { list-style: none; padding: 0; margin: 0 0 16px; overflow: hidden; }
.key { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); }
.key:first-child { border-top: 0; }
.key-main { flex: 1; min-width: 0; display: grid; }
.key-main small { color: var(--muted); font-size: 12.5px; }
.docs pre { margin: 14px 0; padding: 16px; border-radius: var(--radius-sm); background: #0c1715; color: #cfe3dd; font: 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.secret { display: flex; gap: 8px; align-items: center; margin: 14px 0 18px; padding: 10px 10px 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.secret code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }

/* Account */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.account-grid .block { display: grid; gap: 12px; justify-items: start; }
.plan-box { display: grid; gap: 10px; width: 100%; }
.plan-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-name b { font-size: 24px; letter-spacing: -.02em; }
.meter { height: 8px; width: 100%; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.install-help { display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }

/* Modal */
.modal { border: 0; padding: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.modal::backdrop { background: rgb(8 16 15 / 55%); backdrop-filter: blur(3px); }
.modal-inner { position: relative; padding: 28px; }
.modal h2 { font-size: 22px; margin-bottom: 20px; padding-right: 40px; }
.modal-close { position: absolute; top: 16px; right: 16px; }
.connect-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: c; }
.connect-steps li { counter-increment: c; position: relative; padding-left: 44px; display: grid; gap: 6px; min-width: 0; }
.connect-steps .btn { justify-self: start; }
.connect-steps li::before { content: counter(c); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px; }
.connect-steps p { color: var(--muted); font-size: 14.5px; }
.pair-code {
  display: flex; gap: 6px; align-items: center; min-height: 64px; margin: 6px 0 2px;
  font: 800 30px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em;
}
.pair-code span.ch { display: grid; place-items: center; width: 38px; height: 54px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.pair-code span.gap { width: 10px; }
.pair-wait { display: flex; align-items: center; gap: 10px; color: var(--brand) !important; font-weight: 600; }
.pair-wait.done { color: var(--ok) !important; }
.pair-wait.done .spinner { display: none; }

.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Mobile */
@media (max-width: 900px) {
  .print-grid { grid-template-columns: 1fr; }
  .recent { position: static; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 10; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  }
  .topbar .logo img { height: 26px; width: auto; }
  .topbar .logo span { font-weight: 700; font-size: 17px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; z-index: 10;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 600; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.active { color: var(--brand); }
  .view-head { margin-bottom: 16px; }
  .view-head h1 { display: none; }
  .view-head .sub { margin: 0; }
  .view-head .btn { width: 100%; }
  .block { padding: 18px 16px; }
  .opts { grid-template-columns: 1fr; gap: 16px; }
  .send-bar {
    position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 5;
    margin: 0 -16px; padding: 12px 16px; background: linear-gradient(transparent, var(--bg) 30%);
  }
  .desk { display: none; }
  .job-detail { padding-left: 18px; }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat b { font-size: 22px; }
  .printer-row, .station-head { padding-inline: 16px; }
  .modal { margin: auto auto 0; width: 100%; max-width: none; border-radius: 22px 22px 0 0; }
  .modal-inner { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .pair-code { font-size: 24px; }
  .pair-code span.ch { width: 32px; height: 46px; }
  .toast-host { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
.i { display: contents; }
.i svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 760px) { .station-head > .chip { display: none; } .station-head { gap: 12px; } }

.pair-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Install guide (Conta → Celular) */
.install-guide { display: grid; gap: 14px; width: 100%; justify-items: center; }
.install-tabs { width: 100%; max-width: 320px; }
.install-gif { margin: 0; width: min(260px, 100%); border-radius: 18px; overflow: hidden; background: #f0f4f3; border: 1px solid var(--line); }
.install-gif img { width: 100%; height: auto; display: block; }
.install-steps { justify-self: stretch; margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.installed-note { color: var(--ok); font-weight: 600; }

.install-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 8px 12px 14px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.install-banner img { border-radius: 10px; flex: none; }
.install-banner p { flex: 1; min-width: 0; display: grid; font-size: 14px; line-height: 1.3; }
.install-banner span { color: var(--muted); font-size: 12.5px; }

.doc-form { display: grid; gap: 10px; width: 100%; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }

/* Plans and invoices (Conta → Assinatura) */
.plan-pick-panel { display: grid; gap: 8px; width: 100%; }
.pp-plan { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.pp-plan b { font-size: 15px; }
.pp-plan span { font-weight: 700; font-size: 14px; }
.pp-plan small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.pp-plan[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.invoices { width: 100%; }
.invoices h3 { font-size: 14px; margin: 6px 0 8px; }
.invoices ul { list-style: none; margin: 0; padding: 0; }
.invoices li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.invoices li b { margin-left: auto; }

/* ---- Refinements ---- */
/* Slim trial banner */
.banner.slim { padding: 10px 14px; background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 20%, transparent); }
.banner.slim p { font-size: 14px; }

/* Loading skeleton */
.skeleton { display: grid; gap: 16px; max-width: 760px; }
.sk-card { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sk-card i { display: block; height: 14px; width: 30%; border-radius: 7px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sk-card i.w40 { width: 40%; } .sk-card i.w60 { width: 60%; } .sk-card i.w80 { width: 80%; } .sk-card i.tall { height: 120px; width: 100%; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Desktop: sticky print bar with a summary */
.send-summary { display: none; }
@media (min-width: 761px) {
  .send-bar {
    position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 16px;
    padding: 12px 12px 12px 20px; border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px);
    border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .send-summary { display: block; flex: 1; min-width: 0; margin: 0; font-size: 14.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .send-bar .btn-block { width: auto; min-width: 200px; }
}

/* Live tracking after sending */
.tracking { padding: 16px 18px; display: grid; gap: 12px; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); animation: pop .25s ease-out; }
.tracking-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tracking-head b { font-size: 16px; }
.track { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.track:first-of-type { border-top: 0; padding-top: 0; }
.track-top { display: flex; align-items: center; gap: 10px; }
.track-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track small { color: var(--muted); font-size: 12.5px; }
.track-alert { padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); font-size: 14px; }
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: st; }
.track-steps li { position: relative; padding-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.track-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--line); }
.track-steps li.done { color: var(--ok); } .track-steps li.done::before { background: var(--ok); }
.track-steps li.now { color: var(--brand); }
.track-steps li.now::before { background: linear-gradient(90deg, var(--brand), var(--mint), var(--brand)); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* Drop anywhere */
.drop-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 18%, rgb(8 16 15 / 55%)); backdrop-filter: blur(4px); pointer-events: none; }
.drop-overlay > div { display: grid; justify-items: center; gap: 6px; padding: 36px 48px; border-radius: 24px; border: 3px dashed #fff; color: #fff; text-align: center; }
.drop-overlay svg { width: 44px; height: 44px; }
.drop-overlay b { font-size: 22px; }

/* Small polish */
.nav a { transition: background .15s, color .15s; }
.pp, .pp-plan, .job-row, .filters button { transition: border-color .15s, background .15s, box-shadow .15s; }
.btn-primary:not(:disabled) { box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.view { animation: viewIn .18s ease-out; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } }
@media (min-width: 761px) { .toast-host { bottom: 96px; } }

.theme-seg { width: 100%; }
/* Selected segment: clearer in dark mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-strong); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }
}
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-strong); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent); }

.interval-seg { width: 100%; }
.meter.near i { background: var(--warn); }
.meter.over i { background: var(--danger); }
