
/* Layout: one column, 1120px max, landing sections above a live sample dashboard. Dark-first (book-seller back office at night). */
:root {
  /* Neutral black/grey surfaces; the color scheme picker only changes the accents (--a1..--a4) */
  --bg: #0b0b0c; --surface: #141416; --surface-2: #1c1c1f; --line: #2a2a2e;
  --fg: #ededf0; --muted: #9a9aa3;
  --a1: #5f9bf7; --a2: #6cc293; --a3: #e07a69; --a4: #b08f66;
  --accent: var(--a1); --accent-2: var(--a2); --accent-3: var(--a3); --accent-4: var(--a4); --btn-fg: #0b0b0c; --good: #5fd38d; --bad: #ef6b5f;
  --display: "Archivo", "Arial", system-ui, sans-serif; --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bg: #f5f5f7; --surface: #ffffff; --surface-2: #ededf0; --line: #dcdce0; --fg: #141416; --muted: #5f5f6a; --accent: color-mix(in srgb, var(--a1) 72%, #000); --accent-2: color-mix(in srgb, var(--a2) 65%, #000); --accent-3: color-mix(in srgb, var(--a3) 75%, #000); --accent-4: color-mix(in srgb, var(--a4) 75%, #000); --btn-fg: #ffffff; color-scheme: light; } }
:root[data-theme="light"] { --bg: #f5f5f7; --surface: #ffffff; --surface-2: #ededf0; --line: #dcdce0; --fg: #141416; --muted: #5f5f6a; --accent: color-mix(in srgb, var(--a1) 72%, #000); --accent-2: color-mix(in srgb, var(--a2) 65%, #000); --accent-3: color-mix(in srgb, var(--a3) 75%, #000); --accent-4: color-mix(in srgb, var(--a4) 75%, #000); --btn-fg: #ffffff; color-scheme: light; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); line-height: 1.5; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 4rem; }
.wrap { max-width: 1120px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.nav { display: flex; justify-content: space-between; align-items: center; padding-block: 1.1rem; gap: 1rem; }
.brand { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.brand span { color: var(--accent); }
.nav a.btn { font-size: 0.85rem; }
.nav .right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.theme { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.theme select { font-family: var(--body); font-size: 0.82rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.45rem 0.6rem; cursor: pointer; }
.mode { display: inline-flex; padding: 0.2rem; gap: 0.15rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-family: var(--body); }
.mode-opt { font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 999px; color: var(--muted); }
.mode-opt.on { background: var(--accent); color: var(--btn-fg); }
.theme i { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--accent); border: 2px solid var(--accent-2); display: inline-block; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: var(--btn-fg); font-weight: 600; padding: 0.7rem 1.15rem; border-radius: 6px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--body); font-size: 0.95rem; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; padding-block: 2.5rem 3rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { color: var(--muted); font-size: 1.1rem; max-width: 36rem; margin-top: 1.1rem; }
.hero .cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.6rem; align-items: center; }
.hero .fine { color: var(--muted); font-size: 0.85rem; margin-top: 0.75rem; font-family: var(--mono); }
.stack { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--surface)) 0%, var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 10px; padding: 1rem; display: grid; gap: 0.6rem; }
.stack .row { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: center; padding: 0.55rem 0.7rem; border-radius: 6px; background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); border-left: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.stack .row b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent); }
:root[data-theme="light"] .stack { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 24%, #fff) 0%, color-mix(in srgb, var(--accent) 12%, #fff) 100%); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
:root[data-theme="light"] .stack .row { background: color-mix(in srgb, #fff 70%, transparent); }
.stack .row small { display: block; color: var(--muted); font-size: 0.78rem; }
.section { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 0.4rem; }
.section .sub { color: var(--muted); max-width: 40rem; margin-top: 0.6rem; }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: 1.6rem; }
.feat div { padding: 1rem 1.1rem; border-left: 2px solid var(--accent-2); }
.feat h3 { font-size: 1.1rem; font-family: var(--body); font-weight: 600; }
.feat p { color: var(--muted); font-size: 0.93rem; margin-top: 0.35rem; }
/* demo dashboard */
.tabs { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-top: 1.4rem; }
.tabs { gap: 0.35rem; padding: 0.3rem; border-radius: 10px; }
.tabs button { font-family: var(--body); font-size: 0.9rem; font-weight: 600; padding: 0.55rem 1.1rem; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); color: var(--fg); cursor: pointer; box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 35%, var(--line)); transition: transform 0.12s, background 0.15s, box-shadow 0.15s; }
.tabs button:hover { background: color-mix(in srgb, var(--accent) 20%, var(--surface-2)); transform: translateY(-1px); }
.tabs button:active { transform: translateY(1px); box-shadow: none; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--btn-fg); border-color: var(--accent); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.tabs button[aria-selected="true"]:hover { background: var(--accent); }
.tabs .pro-tag { font-family: var(--mono); font-size: 0.65rem; font-weight: 700; margin-left: 0.4rem; padding: 0.12rem 0.45rem; border-radius: 999px; color: #ffffff; background: #0b0b0c; border: 1.5px solid #ffffff; letter-spacing: 0.04em; }
.setrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 0.75rem; align-items: end; }
.setrow label { display: grid; gap: 0.25rem; font-size: 0.78rem; color: var(--muted); }
.setrow input, .setrow select, .ptable input { font-family: var(--mono); font-size: 0.85rem; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 0.5rem; min-width: 0; }
.ptable input.cost { width: 5rem; text-align: center; }
.ptable input.cost.has { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 14%, var(--surface-2)); font-weight: 600; }
.ptable th, .ptable td { text-align: center; }
.ptable td.l, .ptable th.l { text-align: left; }
.ptable .ok { color: var(--accent-2); font-weight: 700; margin-left: 0.3rem; }
.akpi { position: relative; overflow: hidden; border-left: 3px solid var(--c); } .akpi .v { color: var(--c); } .akpi .akpi-ico { position: absolute; right: 0.6rem; top: 0.5rem; font-size: 1.5rem; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }
.lad-group { display: flex; align-items: center; gap: 0.6rem; margin: 1.6rem 0 0.6rem; padding: 0.55rem 0.8rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 1.05rem; font-weight: 800; color: var(--fg); letter-spacing: 0.01em; }
.lad-group:first-child { margin-top: 0.4rem; }
.lad-group .lg-ic { font-size: 1.3rem; line-height: 1; }
.lad-group .lg-n { flex: 1; min-width: 0; }
.lad-group .lg-c { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.55rem; white-space: nowrap; }
.ach-chips { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 0; margin-bottom: 0.4rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.ach-chips .btn small { opacity: 0.7; font-family: var(--mono); font-size: 0.7em; }
.lad { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.7rem; align-items: start; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-left: 3px solid var(--tier); border-radius: 8px; background: var(--surface); margin-bottom: 0.35rem; cursor: pointer; }
.lad:hover { background: color-mix(in srgb, var(--fg) 4%, var(--surface)); }
.lad-ico { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; background: color-mix(in srgb, var(--tier) 20%, var(--surface)); border: 2px solid var(--tier); }
.lad-main { min-width: 0; display: grid; gap: 0.3rem; } .lad-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.lad-tier { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--tier); border: 1px solid var(--tier); border-radius: 999px; padding: 0.05rem 0.45rem; }
.lad-flag { font-size: 0.68rem; font-weight: 600; color: var(--accent-2); } .lad-flag.down { color: var(--accent-3); }
.pips { display: flex; align-items: center; gap: 0.35rem; } .pips i { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--tier); opacity: 0.4; box-sizing: border-box; } .pips i.on { background: var(--tier); opacity: 1; } .pips i.live { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--tier); } .pips small { margin-left: 0.3rem; color: var(--muted); font-size: 0.78rem; }
.pips i[data-tier="Diamond"], .pips i[data-tier="Legendary"] { border-radius: 2px; transform: rotate(45deg) scale(0.85); }
.lad-sub { display: grid; grid-template-columns: auto minmax(4rem, 10rem) auto; gap: 0.6rem; align-items: center; font-size: 0.78rem; color: var(--muted); } .lad-bar { height: 0.4rem; border-radius: 3px; background: var(--line); overflow: hidden; } .lad-bar i { display: block; height: 100%; }
.lad-det { display: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); gap: 0.5rem; margin-top: 0.4rem; border-top: 1px solid var(--line); padding-top: 0.5rem; cursor: default; } .lad.open .lad-det { display: grid; }
.mini { position: relative; text-align: center; padding: 0.7rem 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 0; }
.mini.on { border-color: color-mix(in srgb, var(--tier) 60%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--tier) 16%, var(--surface)) 0%, var(--surface) 70%); } .mini.live { box-shadow: 0 0 0 2px var(--tier); } .mini:not(.on) { opacity: 0.7; }
.mini-ico { width: 2.4rem; height: 2.4rem; margin: 0 auto 0.35rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; border: 2px solid var(--tier); background: color-mix(in srgb, var(--tier) 22%, var(--surface)); } .mini:not(.on) .mini-ico { border-style: dashed; filter: grayscale(1); opacity: 0.6; }
.mini-tier { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--tier); } .mini-name { font-size: 0.8rem; font-weight: 600; line-height: 1.2; margin-top: 0.1rem; } .mini-when { font-size: 0.68rem; color: var(--muted); margin-top: 0.2rem; }
.mini-bar { height: 0.3rem; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 0.4rem; } .mini-bar i { display: block; height: 100%; background: var(--tier); }
.lad[data-tier="Paper"] .lad-ico, .mini[data-tier="Paper"].on .mini-ico { background: repeating-linear-gradient(0deg, #f3efe4 0 3px, #e6e1d3 3px 4px); } .lad[data-tier="Cardboard"] .lad-ico, .mini[data-tier="Cardboard"].on .mini-ico { background: repeating-linear-gradient(90deg, #a67c52 0 2px, #8f6a46 2px 4px); }
@keyframes shine { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } @keyframes glow { 0%, 100% { box-shadow: 0 0 6px 0 color-mix(in srgb, var(--tier) 45%, transparent); } 50% { box-shadow: 0 0 16px 3px color-mix(in srgb, var(--tier) 70%, transparent); } } @keyframes spinhue { to { filter: hue-rotate(360deg); } }
.lad[data-tier="Platinum"], .lad[data-tier="Diamond"], .mini[data-tier="Platinum"].on, .mini[data-tier="Diamond"].on { background: linear-gradient(110deg, color-mix(in srgb, var(--tier) 16%, var(--surface)) 0%, var(--surface) 38%, color-mix(in srgb, var(--tier) 26%, var(--surface)) 50%, var(--surface) 62%, color-mix(in srgb, var(--tier) 16%, var(--surface)) 100%); background-size: 200% 100%; animation: shine 4s linear infinite; }
.lad[data-tier="Platinum"] .lad-ico, .lad[data-tier="Diamond"] .lad-ico, .mini[data-tier="Platinum"].on .mini-ico, .mini[data-tier="Diamond"].on .mini-ico, .pips i[data-tier="Platinum"].on, .pips i[data-tier="Diamond"].on { animation: glow 2.4s ease-in-out infinite; }
.lad[data-tier="Diamond"] .lad-tier, .mini[data-tier="Diamond"].on .mini-tier { font-weight: 700; background: linear-gradient(90deg, #b794ff, #5ed3ff, #f4eeff, #b794ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 3s linear infinite; }
.lad[data-tier="Legendary"], .mini[data-tier="Legendary"].on { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, #ff6a3d, #ffd166, #ff3d8a, #a78bfa, #ff6a3d) border-box; background-size: 100% 100%, 300% 100%; animation: shine 3s linear infinite; }
.lad[data-tier="Legendary"] .lad-ico, .mini[data-tier="Legendary"].on .mini-ico { background: conic-gradient(#ff6a3d, #ffd166, #ff3d8a, #a78bfa, #ff6a3d); border-color: #fff; animation: glow 1.6s ease-in-out infinite, spinhue 6s linear infinite; }
.lad[data-tier="Legendary"] .lad-tier, .mini[data-tier="Legendary"].on .mini-tier { background: linear-gradient(90deg, #ff6a3d, #ffd166, #ff3d8a, #a78bfa, #ff6a3d); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 3s linear infinite; }
.pips i[data-tier="Legendary"].on { background: conic-gradient(#ff6a3d, #ffd166, #ff3d8a, #a78bfa, #ff6a3d); animation: glow 1.6s ease-in-out infinite; }
.mini[data-tier="Diamond"] .mini-ico, .mini[data-tier="Legendary"] .mini-ico { border-radius: 0.6rem; }
@media (max-width: 640px) { .lad-sub { grid-template-columns: 1fr; gap: 0.25rem; } }
.frow { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 0.6rem 0; font-size: 0.8rem; color: var(--muted); }
.frow input[type=month] { font-family: var(--body); font-size: 0.8rem; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.3rem 0.5rem; }
.frow select { font-family: var(--body); font-size: 0.8rem; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.3rem 0.5rem; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.pill { font-family: var(--mono); font-size: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0.75rem; margin-top: 1rem; }
.card { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)) 0%, var(--surface) 55%); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 8px; padding: 1rem 1.1rem; min-width: 0; }
.card.kpi { border-left: 3px solid var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)) 0%, var(--surface) 60%); }
.card.kpi .v { color: var(--accent); }
:root[data-theme="light"] .card { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #fff) 0%, color-mix(in srgb, var(--accent) 12%, #fff) 100%); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
:root[data-theme="light"] .card.kpi { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, #fff) 0%, color-mix(in srgb, var(--accent) 14%, #fff) 100%); }
:root[data-theme="light"] .card.akpi { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #fff) 0%, color-mix(in srgb, var(--c) 14%, #fff) 100%); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.card.akpi { border-left-color: var(--c); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--surface)) 0%, var(--surface) 60%); } .card.akpi .v { color: var(--c); }
.kpi .l { font-size: 0.8rem; color: var(--fg); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.kpi .v { font-family: var(--mono); font-size: 1.55rem; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 0.2rem; }
.kpi .n { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.kpi .n.up { color: var(--accent-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.card h3 { font-size: 1rem; font-family: var(--body); font-weight: 600; }
.card .cs { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; margin-bottom: 0.7rem; }
.card .tot { float: right; text-align: right; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card .tot b { display: block; color: var(--fg); font-weight: 500; }
.shead { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; }
.stop { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-end; margin: 0.5rem 0 0.6rem; }
.sbig b { font-family: var(--mono); font-size: 2rem; display: block; line-height: 1.1; color: var(--accent); } .scmp b { font-family: var(--mono); font-size: 1.2rem; display: block; line-height: 1.1; } .scmp b.up { color: var(--good); } .scmp b.down { color: var(--bad); }
.stop small { color: var(--muted); font-size: 0.78rem; }
.health { display: grid; grid-template-columns: minmax(10rem, 13rem) 1fr; gap: 1.2rem; align-items: center; margin-top: 0.8rem; }
.ring { position: relative; width: 10rem; height: 10rem; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--hc) calc(var(--hp) * 1%), var(--line) 0); display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 0.8rem; border-radius: 50%; background: var(--surface); }
.ring > div { position: relative; text-align: center; } .ring.whatif { outline: 2px dashed var(--accent); outline-offset: 4px; }
.hnum { font-family: var(--mono); font-size: 2.8rem; line-height: 1; } .hgrade { font-size: 0.78rem; color: var(--hc); font-weight: 600; margin-top: 0.2rem; }
.hrow { display: grid; grid-template-columns: minmax(6.5rem, 8rem) 2.2rem 1fr minmax(0, 13rem); gap: 0.6rem; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.hrow:last-child { border-bottom: none; } .hrow b { font-family: var(--mono); text-align: right; } .hrow small { color: var(--muted); line-height: 1.25; font-size: 0.74rem; }
.hrow .track { position: relative; height: 0.55rem; background: var(--surface-2); border-radius: 4px; cursor: ew-resize; } .hrow .track i { display: block; height: 100%; border-radius: 4px; }
.hrow .track em { position: absolute; top: -0.18rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--fg); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); opacity: 0; transition: opacity .15s; pointer-events: none; }
.hrow:hover .track em, .hrow.on .track em { opacity: 1; } .hrow.on .track em { background: var(--accent); }
.hrow input[type=range] { position: absolute; inset: -0.3rem 0; width: 100%; height: calc(100% + 0.6rem); margin: 0; opacity: 0; cursor: ew-resize; } .hrow.on small { color: var(--accent); }
@media (max-width: 640px) { .health { grid-template-columns: 1fr; } .hrow { grid-template-columns: 1fr 2.2rem; } .hrow .track, .hrow small { grid-column: 1 / -1; } }
#h-reset { display: flex; margin: 0 auto 0.6rem; padding: 0.35rem 0.9rem; font-size: 0.8rem; } #h-reset[hidden] { display: none; }
.bars { display: grid; gap: 0.45rem; }
.bar { display: grid; grid-template-columns: minmax(6rem, 9rem) 2.4rem 1fr auto; gap: 0.6rem; align-items: center; font-size: 0.88rem; }
.bar .pct { font-family: var(--mono); color: var(--muted); font-size: 0.78rem; text-align: right; }
.bar .track { height: 0.6rem; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar .track i { display: block; height: 100%; border-radius: 4px; background: var(--c); }
.bar .val { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.bar .val small { display: block; color: var(--muted); font-size: 0.72rem; }
.ptable td.neg { color: var(--bad); }
.tog { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.stogs { display: flex; gap: 0.5rem; flex-wrap: wrap; } .range-tog { margin: 0.2rem 0 0.6rem; } .swinl { font-size: 0.78rem; color: var(--muted); align-self: center; }  .range-tog button { padding: 0.2rem 0.55rem; font-size: 0.72rem; } .stogs .tog { margin-bottom: 0; } .frow .scope-tog { margin: 0 0 0 0.4rem; }
.tog button { font-family: var(--body); font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); color: var(--fg); cursor: pointer; box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 30%, var(--line)); transition: transform 0.12s, background 0.15s, box-shadow 0.15s; }
.tog button:hover { background: color-mix(in srgb, var(--accent) 20%, var(--surface-2)); transform: translateY(-1px); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tog button:active { transform: translateY(1px); box-shadow: none; }
.tog button[aria-pressed="true"] { background: var(--accent); color: var(--btn-fg); border-color: var(--accent); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.tog button[aria-pressed="true"]:hover { background: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
tr.total td { font-weight: 600; }
td.mono, th.mono { font-family: var(--mono); }
.tbl { overflow: hidden; }
.chart { width: 100%; height: 200px; position: relative; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; font-size: 0.75rem; box-shadow: 0 6px 20px rgba(0,0,0,0.35); white-space: nowrap; } .tip b { display: block; margin-bottom: 0.2rem; font-size: 0.78rem; } .tip div { display: flex; gap: 0.8rem; justify-content: space-between; color: var(--muted); } .tip div span:last-child { color: var(--fg); font-family: var(--mono); }
.chart svg { width: 100%; height: 100%; display: block; }
.legend { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.4rem; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--sw); margin-right: 0.4rem; vertical-align: -1px; }
.note { font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem; }
/* pricing */
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin-top: 1.6rem; }
.plan { padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; }
.plan.hot { border-color: var(--accent); }
.plan .amt { font-family: var(--display); font-size: 2.4rem; font-weight: 500; }
.plan .amt small { font-family: var(--body); font-size: 1rem; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; display: grid; gap: 0.3rem; }
.plan .tag { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.faq { display: grid; gap: 1rem; margin-top: 1.4rem; max-width: 46rem; }
.faq h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; }
.faq p { color: var(--muted); margin-top: 0.3rem; font-size: 0.95rem; }
footer { color: var(--muted); font-size: 0.8rem; padding-top: 2rem; border-top: 1px solid var(--line); margin-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .bar { grid-template-columns: minmax(5rem, 7rem) 2.2rem 1fr auto; } }
@media (prefers-reduced-motion: no-preference) { .bar .track i { transition: width 0.6s ease; } }
/* ===== Tier FX: Diamond sparkles + Legendary aurora (shared by dashboard + site) ===== */
.lad, .mini, .lad-ico, .mini-ico { position: relative; }
.lad > *, .mini > * { position: relative; z-index: 1; }
.lad-ico, .mini-ico { overflow: hidden; isolation: isolate; }
.lad-ico::after, .mini-ico::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.85) 50%, transparent 58%); transform: translateX(-120%); pointer-events: none; }

/* --- Diamond: twinkling 4-point sparkles + a passing glint on the gem --- */
@keyframes cfTwinkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes cfGlint { 0%, 70% { transform: translateX(-120%) rotate(0.001deg); } 100% { transform: translateX(120%) rotate(0.001deg); } }
.lad[data-tier="Diamond"]::before, .lad[data-tier="Diamond"]::after, .mini[data-tier="Diamond"].on::before, .mini[data-tier="Diamond"].on::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; border-radius: inherit;
  --s: radial-gradient(circle, #fff 0 1px, transparent 1.6px);
  --x: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-image:
    radial-gradient(circle at 6% 30%, #fff 0 1.4px, rgba(212,179,255,0.9) 2px, transparent 3px),
    radial-gradient(circle at 22% 78%, #fff 0 1px, rgba(143,227,255,0.9) 1.6px, transparent 2.6px),
    radial-gradient(circle at 48% 18%, #fff 0 1.2px, rgba(212,179,255,0.9) 1.8px, transparent 3px),
    radial-gradient(circle at 71% 66%, #fff 0 1px, rgba(143,227,255,0.9) 1.6px, transparent 2.6px),
    radial-gradient(circle at 90% 24%, #fff 0 1.4px, rgba(212,179,255,0.9) 2px, transparent 3.2px),
    radial-gradient(circle at 60% 88%, #fff 0 1px, rgba(255,255,255,0.8) 1.4px, transparent 2.4px),
    radial-gradient(circle at 3% 72%, #fff 0 1.6px, rgba(143,227,255,0.9) 2.2px, transparent 3.4px),
    radial-gradient(circle at 40% 92%, #fff 0 1px, rgba(212,179,255,0.9) 1.5px, transparent 2.5px),
    radial-gradient(circle at 84% 46%, #fff 0 1.6px, rgba(255,255,255,0.9) 2.2px, transparent 3.4px);
  animation: cfTwinkle 2.6s ease-in-out infinite; transform-origin: center;
}
.lad[data-tier="Diamond"]::after, .mini[data-tier="Diamond"].on::after {
  background-image:
    radial-gradient(circle at 14% 56%, #fff 0 1px, rgba(143,227,255,0.9) 1.6px, transparent 2.6px),
    radial-gradient(circle at 36% 36%, #fff 0 1.3px, rgba(212,179,255,0.9) 2px, transparent 3px),
    radial-gradient(circle at 55% 62%, #fff 0 1px, rgba(255,255,255,0.8) 1.4px, transparent 2.4px),
    radial-gradient(circle at 80% 84%, #fff 0 1.3px, rgba(143,227,255,0.9) 2px, transparent 3px),
    radial-gradient(circle at 96% 50%, #fff 0 1px, rgba(212,179,255,0.9) 1.6px, transparent 2.6px);
  animation-delay: 1.3s; animation-duration: 3.1s;
}
.lad[data-tier="Diamond"] .lad-ico::after, .mini[data-tier="Diamond"].on .mini-ico::after { animation: cfGlint 3.2s ease-in-out infinite; }
.lad[data-tier="Diamond"] .lad-ico, .mini[data-tier="Diamond"].on .mini-ico { background: linear-gradient(135deg, #e9dbff, #8fe3ff 45%, #ffffff 55%, #d4b3ff); color: #1b1230; border-color: #fff; box-shadow: 0 0 14px 2px rgba(212,179,255,0.55); }
.pips i[data-tier="Diamond"].on { background: linear-gradient(135deg, #e9dbff, #8fe3ff, #ffffff); animation: glow 2.4s ease-in-out infinite; }

/* --- Legendary: rotating aurora, rising embers, flaring icon, living text --- */
@keyframes cfAurora { to { transform: rotate(360deg); } }
@keyframes cfRise { 0% { transform: translateY(14px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-18px); opacity: 0; } }
@keyframes cfFlare { 0%, 100% { box-shadow: 0 0 10px 2px rgba(255,106,61,0.55), 0 0 28px 6px rgba(255,61,138,0.25); } 50% { box-shadow: 0 0 18px 5px rgba(255,209,102,0.75), 0 0 46px 12px rgba(167,139,250,0.35); } }
@keyframes cfPulseText { 0%, 100% { text-shadow: 0 0 6px rgba(255,209,102,0.4); } 50% { text-shadow: 0 0 14px rgba(255,106,61,0.9), 0 0 24px rgba(255,61,138,0.5); } }
.lad[data-tier="Legendary"], .mini[data-tier="Legendary"].on { overflow: hidden; isolation: isolate; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, #ff6a3d, #ffd166, #ff3d8a, #a78bfa, #ff6a3d) border-box; background-size: 100% 100%, 300% 100%; animation: shine 3s linear infinite; }
.lad[data-tier="Legendary"]::before, .mini[data-tier="Legendary"].on::before { content: ''; position: absolute; z-index: 0; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; margin: -110% 0 0 -110%; pointer-events: none; background: conic-gradient(from 0deg, rgba(255,106,61,0.22), rgba(255,209,102,0.16), rgba(255,61,138,0.2), rgba(167,139,250,0.22), rgba(56,189,248,0.16), rgba(255,106,61,0.22)); filter: blur(34px) saturate(1.4); opacity: 0.85; animation: cfAurora 9s linear infinite; }
.lad[data-tier="Legendary"]::after, .mini[data-tier="Legendary"].on::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 80%, #ffd166 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 19% 60%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 31% 90%, #ff6a3d 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 44% 70%, #ffd166 0 1px, transparent 2px),
    radial-gradient(circle at 57% 85%, #ff3d8a 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 69% 65%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 81% 88%, #a78bfa 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 93% 72%, #ffd166 0 1px, transparent 2px);
  animation: cfRise 3.4s ease-in-out infinite; }
.lad[data-tier="Legendary"] .lad-ico, .mini[data-tier="Legendary"].on .mini-ico { background: conic-gradient(from 0deg, #ff6a3d, #ffd166, #ff3d8a, #a78bfa, #38bdf8, #ff6a3d); border-color: #fff; animation: cfFlare 1.8s ease-in-out infinite, spinhue 6s linear infinite; overflow: visible; }
.lad[data-tier="Legendary"] .lad-ico::before, .mini[data-tier="Legendary"].on .mini-ico::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; z-index: -1; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.55) 0 4deg, transparent 4deg 18deg); -webkit-mask: radial-gradient(circle, transparent 55%, #000 58%, #000 100%); mask: radial-gradient(circle, transparent 55%, #000 58%, #000 100%); animation: cfAurora 7s linear infinite reverse; opacity: 0.8; }
.lad[data-tier="Legendary"] .lad-ico::after, .mini[data-tier="Legendary"].on .mini-ico::after { animation: cfGlint 2.2s ease-in-out infinite; }
.lad[data-tier="Legendary"] .lad-tier, .mini[data-tier="Legendary"].on .mini-tier, .lad[data-tier="Legendary"] .lad-top b { background: linear-gradient(90deg, #ff6a3d, #ffd166, #ff3d8a, #a78bfa, #ff6a3d); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 3s linear infinite, cfPulseText 2.4s ease-in-out infinite; border-color: #ff6a3d; }
.pips i[data-tier="Legendary"] { border-radius: 2px; transform: rotate(45deg) scale(0.95); } .pips i[data-tier="Legendary"].on { background: conic-gradient(#ff6a3d, #ffd166, #ff3d8a, #a78bfa, #ff6a3d); animation: cfFlare 1.8s ease-in-out infinite, spinhue 6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .lad::before, .lad::after, .mini::before, .mini::after, .lad-ico::before, .lad-ico::after, .mini-ico::before, .mini-ico::after { animation: none !important; } }

.refbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin: 0.4rem 0 0; padding: 0.55rem 0.9rem; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); font-size: 0.85rem; } .refbar b { color: var(--accent); } .refbar small { color: var(--muted); }
.partner .pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.6rem; margin-top: 0.9rem; } .partner .terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.6rem; margin-top: 0.9rem; } .partner .terms .card h4 { margin: 0 0 0.3rem; font-size: 0.85rem; } .partner .terms .card p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; } .partner table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 0.6rem; } .partner th, .partner td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); } .partner th { color: var(--muted); font-weight: 500; } .partner td.mono { font-family: var(--mono); } .linkbox { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.6rem; } .linkbox code { font-family: var(--mono); font-size: 0.8rem; padding: 0.45rem 0.7rem; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); }


.brand { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.brand-mark { width: 5.4rem; height: 5.4rem; flex: none; }
.nav { flex-wrap: wrap; }
.nav .brand { font-size: 3.7rem; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; gap: 1rem; line-height: 1; }
@media (max-width: 560px) { .nav .brand { font-size: 2.1rem; gap: 0.6rem; } .brand-mark { width: 3.2rem; height: 3.2rem; } }
.brand .brand-word { color: var(--fg); }
.brand .brand-word span { color: var(--accent); }

/* Founder badge: one-of-a-kind gold tier for founding members */
@keyframes fdShine { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes fdTwinkle { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.lad[data-tier="Founder"], .mini[data-tier="Founder"].on { overflow: hidden; isolation: isolate; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, #8a6a1f, #ffd166, #fff3c4, #ffd166, #8a6a1f) border-box; background-size: 100% 100%, 300% 100%; animation: fdShine 4s linear infinite; }
.lad[data-tier="Founder"]::before, .mini[data-tier="Founder"].on::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(110deg, rgba(255,209,102,0.10) 0%, transparent 35%, rgba(255,243,196,0.16) 50%, transparent 65%, rgba(255,209,102,0.10) 100%); background-size: 200% 100%; animation: fdShine 5s linear infinite; }
.lad[data-tier="Founder"]::after, .mini[data-tier="Founder"].on::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(circle at 10% 30%, #fff3c4 0 1.2px, transparent 2.4px), radial-gradient(circle at 34% 80%, #ffd166 0 1px, transparent 2px), radial-gradient(circle at 62% 22%, #fff3c4 0 1.3px, transparent 2.5px), radial-gradient(circle at 86% 70%, #ffd166 0 1.2px, transparent 2.4px), radial-gradient(circle at 95% 25%, #fff 0 1px, transparent 2px); animation: fdTwinkle 2.8s ease-in-out infinite; }
.lad[data-tier="Founder"] .lad-ico, .mini[data-tier="Founder"].on .mini-ico { background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd166 45%, #b8860b); border-color: #fff3c4; color: #3a2a05; box-shadow: 0 0 14px 2px rgba(255,209,102,0.55); }
.lad[data-tier="Founder"] .lad-tier, .mini[data-tier="Founder"].on .mini-tier { font-weight: 700; color: transparent; background: linear-gradient(90deg, #b8860b, #ffd166, #fff3c4, #ffd166, #b8860b); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: fdShine 3s linear infinite; border-color: #ffd166; }
.pips i[data-tier="Founder"] { border-radius: 2px; transform: rotate(45deg) scale(0.9); } .pips i[data-tier="Founder"].on { background: linear-gradient(135deg, #fff3c4, #ffd166, #b8860b); }
@media (prefers-reduced-motion: reduce) { .lad[data-tier="Founder"], .lad[data-tier="Founder"]::before, .lad[data-tier="Founder"]::after { animation: none !important; } }
.beta-pill { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 999px; padding: 0.1rem 0.5rem; margin-left: 0.5rem; vertical-align: middle; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0.75rem; margin-top: 1.2rem; }
.steps ol { margin: 0.5rem 0 0; padding-left: 1.2rem; font-size: 0.86rem; color: var(--muted); line-height: 1.6; } .steps ol b { color: var(--fg); font-weight: 600; }
.steps .req { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.1rem 0.45rem; border-radius: 999px; margin-left: 0.4rem; vertical-align: middle; }
.steps .req.y { color: var(--btn-fg); background: var(--accent); } .steps .req.n { color: var(--muted); border: 1px solid var(--line); }
.steps a { color: var(--accent); }
[hidden] { display: none !important; }
.drop { display: block; margin-top: 1rem; border: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 14px; padding: 2rem 1rem; text-align: center; cursor: pointer; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); transition: background 0.15s, border-color 0.15s; }
.drop:hover, .drop.over { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: var(--accent); }
.drop b { display: block; font-family: var(--display); font-size: 1.15rem; } .drop small { color: var(--muted); }
.files { display: grid; gap: 0.35rem; margin-top: 0.8rem; font-size: 0.85rem; } .files div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); } .files .ok { color: var(--accent-2); } .files .bad { color: var(--accent-3); }
.prog { height: 0.35rem; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 0.6rem; } .prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.asof { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }
.navbtns { display: flex; gap: 0.5rem; flex-wrap: wrap; } .navbtns .btn { font-size: 0.8rem; padding: 0.45rem 0.8rem; }
.private { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.8rem; color: var(--accent-2); margin-top: 0.8rem; }
.stop2 { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: flex-end; margin: 0.6rem 0; } .stop2 b { display: block; font-family: var(--mono); font-size: 1.5rem; } .stop2 .big b { font-size: 2rem; color: var(--accent); } .stop2 small { color: var(--muted); font-size: 0.78rem; } .stop2 .up { color: var(--accent-2); } .stop2 .down { color: var(--accent-3); }
.sctl { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; } .sctl .tog { margin: 0; } .sctl select { font-family: var(--body); font-size: 0.78rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.6rem; }
table.top { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 0.5rem; } table.top th, table.top td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); text-align: right; } table.top th:nth-child(2), table.top td:nth-child(2) { text-align: left; } table.top th { color: var(--fg); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; border-bottom: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, transparent); } table.top td { font-family: var(--mono); } table.top td:nth-child(2) { font-family: var(--body); max-width: 26rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tblwrap { overflow: hidden; max-width: 100%; }
.tblwrap table { max-width: 100%; } .card { overflow: hidden; }
.warn { color: var(--accent-3); }
.p-need { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.pi-bar, .pi-bulk, .pi-pager { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.7rem; } .pi-bar .tog { margin: 0; } .pi-pager { justify-content: center; } .pi-pager .btn, .pi-bulk .btn { font-size: 0.78rem; padding: 0.35rem 0.75rem; }
.pi-bar input[type=search] { font-family: var(--body); font-size: 0.85rem; color: var(--fg); background: var(--surface-2); border: 2px solid color-mix(in srgb, var(--accent) 70%, var(--fg)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 999px; padding: 0.45rem 0.9rem; min-width: 16rem; color-scheme: dark; }
.pi-bar input[type=search]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
input[type=search]:not(.pi-bar input) { border: 2px solid color-mix(in srgb, var(--accent) 70%, var(--fg)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pi-bulk input, table.pi input { font-family: var(--mono); font-size: 0.85rem; color: var(--fg); background: color-mix(in srgb, var(--fg) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 6px; padding: 0.3rem 0.45rem; width: 5.5rem; text-align: right; color-scheme: dark; transition: border-color 0.15s, background 0.15s; } table.pi input::placeholder { color: var(--muted); opacity: 0.9; } table.pi input:hover { background: color-mix(in srgb, var(--fg) 14%, var(--surface)); } table.pi input:focus { outline: none; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); } table.pi input.set { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 14%, var(--surface)); }
table.pi td:first-child, table.pi th:first-child { text-align: left; font-family: var(--body); } table.pi td:first-child .tw { max-width: 100%; width: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } table.pi td:first-child .tw > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; } table.pi th:first-child { position: relative; } .col-grip { display: none; } table.pi td:first-child small { display: block; color: var(--muted); font-family: var(--mono); font-size: 0.7rem; } table.pi td:nth-child(n+3) { color: var(--fg); font-weight: 500; font-size: 0.88rem; } table.top td { color: var(--fg); } table.pi { table-layout: auto; } table.pi th:nth-child(2), table.pi td:nth-child(2) { text-align: left; } table.pi th:nth-child(n+3), table.pi td:nth-child(n+3) { text-align: right; } table.pi td:nth-child(n+3) input { text-align: right; width: 5.2rem; } table.pi input.sup { width: 100%; box-sizing: border-box; } table.pi td:first-child { white-space: normal; } table.pi td:first-child > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .tblwrap { overflow: hidden; }
.pro-chip { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--btn-fg); background: var(--accent-2); border-radius: 999px; padding: 0.1rem 0.45rem; vertical-align: middle; margin-left: 0.3rem; }
.cost-grid { display: grid; grid-template-columns: minmax(16rem, 1fr) 2fr; gap: 1rem; margin-top: 0.8rem; } @media (max-width: 760px) { .cost-grid { grid-template-columns: 1fr; } }
.cost-f > span { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3rem; } .cost-in { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; } .cost-in .tog { margin: 0; }
#c-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.6rem; } #c-cats label { font-size: 0.78rem; color: var(--muted); display: grid; gap: 0.25rem; }
.cost-grid input[type=number] { font-family: var(--mono); font-size: 0.9rem; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; width: 100%; max-width: 9rem; color-scheme: dark; }
.cost-csv { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); } .cost-csv .btn { font-size: 0.8rem; padding: 0.45rem 0.8rem; cursor: pointer; }
.alerts2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 0.75rem; }
.alert2 { display: flex; gap: 0.8rem; align-items: center; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-top: 0.6rem; } .alert2 .ic { font-size: 1.3rem; } .alert2 b { display: block; font-size: 0.9rem; } .alert2 small { color: var(--muted); font-size: 0.78rem; } .alert2 .tag { margin-left: auto; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.45rem; } .alert2.pro { border-color: color-mix(in srgb, var(--accent-2) 50%, var(--line)); }
td.neg { color: var(--bad); } td.pos { color: var(--good); }
#kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } #kpis, #p-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; } #kpis .kc, #p-kpis .kc { padding: 0.8rem 0.9rem; } #kpis .kc .l, #p-kpis .kc .l { font-size: 0.82rem; } #kpis .kc .v, #p-kpis .kc .v { font-size: clamp(1.05rem, 11cqw, 1.7rem) !important; } #kpis .kc .n, #p-kpis .kc .n { font-size: 0.74rem; } @media (max-width: 1100px) { #kpis, #p-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 760px) { #kpis, #kpis, #p-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kc { container-type: inline-size; } .kc .v { white-space: nowrap; overflow: hidden; font-size: clamp(0.95rem, 9.5cqw, 1.75rem) !important; }
.kc { position: relative; border: 1px solid var(--line); border-left: 3px solid var(--k); border-radius: 12px; padding: 1rem 1.1rem; background: linear-gradient(135deg, color-mix(in srgb, var(--k) 16%, var(--surface)) 0%, var(--surface) 70%); }
.kc .l { font-size: 0.9rem; font-weight: 600; color: var(--fg); } .kc .v { font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; margin: 0.35rem 0 0.4rem; color: var(--fg); font-variant-numeric: lining-nums; } .kc .n { font-size: 0.8rem; color: var(--muted); }
:root[data-theme="light"] .kc { background: linear-gradient(135deg, color-mix(in srgb, var(--k) 22%, #fff) 0%, #fff 75%); }
.b2 { display: grid; grid-template-columns: minmax(7.5rem, 12rem) 1fr minmax(5.5rem, auto); gap: 0.9rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--line); } .b2:last-child { border-bottom: none; }
.b2 .nm { font-size: 0.9rem; line-height: 1.25; } .b2 .nm small { display: block; color: var(--muted); font-size: 0.72rem; font-family: var(--mono); margin-top: 0.15rem; white-space: nowrap; }
.b2 .tr { height: 0.55rem; background: var(--surface-2); border-radius: 4px; overflow: hidden; } .b2 .tr i { display: block; height: 100%; border-radius: 4px; min-width: 3px; }
.b2 .vl { text-align: right; font-family: var(--mono); font-size: 0.9rem; line-height: 1.25; white-space: nowrap; } .b2 .vl small { display: block; color: var(--muted); font-size: 0.72rem; }
@media (max-width: 640px) { .b2 { grid-template-columns: 1fr auto; } .b2 .tr { grid-column: 1 / -1; grid-row: 2; } }
.limits { margin-top: 1rem; } .limits ul { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.84rem; color: var(--muted); line-height: 1.55; display: grid; gap: 0.25rem; } .limits b { color: var(--fg); font-weight: 600; }
.achbar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-top: 0.8rem; font-size: 0.82rem; color: var(--muted); } .achbar input { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.3rem 0.5rem; margin-left: 0.3rem; }
.shead { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; align-items: flex-start; } .shead > div:first-child { flex: 1 1 auto; min-width: 0; } .shead .tog { margin: 0; flex: none; } .shead .stogs { flex: 1 1 60%; min-width: 0; justify-content: flex-end; } .shead .stogs .tog { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }  @media (max-width: 640px) { .shead { flex-wrap: wrap; } }
.tog.sm button { font-size: 0.72rem; padding: 0.25rem 0.6rem; }
select.sel { font-family: var(--body); font-size: 0.8rem; font-weight: 600; color: var(--fg); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 999px; padding: 0.4rem 0.75rem; color-scheme: dark; cursor: pointer; } select.sel:hover { background: color-mix(in srgb, var(--accent) 20%, var(--surface-2)); } select.sel option { background: #141922; color: #e8ecf3; }
.lg { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.76rem; color: var(--muted); margin-top: 0.35rem; } .lg span { display: inline-flex; align-items: center; gap: 0.35rem; } .lg i { width: 0.7rem; height: 0.7rem; border-radius: 3px; display: inline-block; }
.vtot { font-family: var(--mono); font-size: 0.8rem; color: var(--fg); margin: 0.3rem 0 0.2rem; } .vtot span { color: var(--muted); }
.chart.c2 { height: auto; } .chart.c2 svg { height: 200px; }
table.top.lft td:first-child, table.top.lft th:first-child { text-align: left; font-family: var(--body); }
td.up { color: var(--good); } td.down { color: var(--bad); }
table.where td, table.where th, table.top.where th:nth-child(2), table.top.where td:nth-child(2) { text-align: right; } table.top.where td:nth-child(2) { font-family: var(--mono); }  /* the New column lined up like the rest (table.top left-aligns column 2 for titles) */ table.where td:first-child, table.where th:first-child { text-align: left; font-family: var(--body); } table.where td.hot { font-weight: 700; } table.where tr.tt td { border-top: 2px solid var(--line); font-weight: 600; }
table.pi input.sup { width: 9.5rem; text-align: left; font-family: var(--body); }
.newchip { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; color: #0b0e14; background: var(--accent-2); border-radius: 999px; padding: 0.05rem 0.4rem; margin-left: 0.4rem; vertical-align: middle; }
.mini .newchip { position: absolute; top: 0.4rem; right: 0.4rem; margin: 0; z-index: 2; }
.seller-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 0.6rem; margin-top: 0.9rem; }
.seller-pick button { text-align: left; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; cursor: pointer; } .seller-pick button b { display: block; font-size: 0.95rem; } .seller-pick button small { color: var(--muted); font-size: 0.78rem; }
.seller-pick button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: 0 0 0 1px var(--accent); }
.ea { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 50%, var(--line)); border-radius: 999px; padding: 0.05rem 0.4rem; margin-left: 0.35rem; vertical-align: middle; }
.modebar { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted); } .modebar .tog { margin: 0; }
.led-steps { margin: 0.5rem 0 0; padding-left: 1.2rem; font-size: 0.86rem; color: var(--muted); line-height: 1.6; } .led-steps b { color: var(--fg); }

/* Effort Bar */
.effort { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: stretch; margin-top: 0.8rem; }
.tower { position: relative; display: grid; grid-template-rows: 3rem 1fr 0.9rem; min-height: 19rem; align-self: stretch; }
.tower .bell { position: relative; z-index: 2; width: 3.4rem; height: 3.4rem; margin-left: 4.6rem; margin-top: -0.6rem;  /* brass strength-tester bell, centered over the column */ filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.tower .bell svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tower .bell .star { fill: #7a1010; transition: fill 0.2s; } .tower .bell .hot { opacity: 0; }
.tower.rung .bell { animation: bellhit 0.5s cubic-bezier(.3,1.8,.5,1); }
.tower.rung .bell .star { fill: #ff2020; animation: starpulse 0.18s steps(2) 0s 10, starglow 1.4s ease-in-out 1.8s infinite alternate; }
.tower.rung .bell .hot { animation: hotflash 2s ease-out forwards; }
.tower.rung .bell svg { filter: drop-shadow(0 0 6px #ff3030) drop-shadow(0 0 18px #ff2a2a) drop-shadow(0 0 34px #ffae00); }
@keyframes bellhit { 0% { transform: scale(1); } 30% { transform: scale(1.35) rotate(-8deg); } 60% { transform: scale(0.92) rotate(6deg); } 100% { transform: scale(1); } }
@keyframes starpulse { 0% { fill: #fff; } 100% { fill: #ff2020; } }
@keyframes starglow { from { fill: #e01818; } to { fill: #ff5a3a; } }
@keyframes hotflash { 0%, 40% { opacity: 1; } 100% { opacity: 0.25; } }
#effort-card.zap { animation: cardshake 0.6s cubic-bezier(.36,.07,.19,.97); box-shadow: 0 0 0 2px #ffd34d, 0 0 40px 6px rgba(255,60,40,0.55); transition: box-shadow 1.5s; }
@keyframes cardshake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-7px, 3px) rotate(-0.4deg); } 40%, 60% { transform: translate(7px, -3px) rotate(0.4deg); } }
.e-zapfx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }
.e-flash { position: fixed; inset: 0; pointer-events: none; z-index: 9998; background: radial-gradient(circle at var(--fx) var(--fy), rgba(255,255,255,0.9), rgba(255,220,200,0.35) 25%, rgba(255,40,40,0) 60%); animation: eflash 0.9s ease-out forwards; }
@keyframes eflash { 0% { opacity: 0; } 5% { opacity: 1; } 15% { opacity: 0.2; } 22% { opacity: 0.9; } 100% { opacity: 0; } }
.tower .tiers { position: absolute; left: 0; top: 3rem; bottom: 0.9rem; width: 5.2rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tower .tiers span { position: absolute; right: 0; bottom: calc(var(--at) * 1% - 0.5rem); padding-right: 0.5rem; white-space: nowrap; transition: color 0.3s; }
.tower .tiers span.lit { color: var(--accent); font-weight: 700; }
.tower .column { position: relative; grid-row: 2; margin-top: 0.7rem; margin-left: 5.2rem; width: 2.2rem; background: var(--surface-2); border-radius: 6px 6px 0 0; border: 1px solid var(--line); border-bottom: 0; overflow: visible; }
.tower .fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(min(var(--ep), 100) * 1%); background: linear-gradient(to top, var(--accent-2), var(--accent), var(--accent-3)); border-radius: 5px 5px 0 0; }  /* the climb is animated in code */
.tower .puck { position: absolute; left: 50%; bottom: calc(min(var(--ep), 100) * 1%); transform: translate(-50%, 50%); background: var(--fg); color: var(--bg); font-family: var(--mono); font-weight: 600; font-size: 0.85rem; padding: 0.15rem 0.45rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.tower .base { grid-row: 3; margin-left: 4.2rem; width: 4.2rem; background: var(--line); border-radius: 0 0 6px 6px; }
.einputs { display: grid; gap: 0.5rem; align-content: center; }
.erow { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 0.75rem; align-items: center; padding: 0.45rem 0.6rem; border-radius: 6px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.erow > div:first-child { white-space: nowrap; } .erow small { display: block; color: var(--muted); font-size: 0.74rem; white-space: normal; }
.erow b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; } .erow b.up { color: var(--good); } .erow b.down { color: var(--bad); }
.erow .track { grid-column: 1 / -1; height: 0.4rem; background: var(--surface-2); border-radius: 4px; overflow: hidden; } .erow .track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s cubic-bezier(0.2, 1.2, 0.4, 1); }
.erow-foot { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 0.8rem; } .erow-foot .btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
@media (max-width: 520px) { #effort-card { display: flex; flex-direction: column; } #effort-card > * { order: 1; } .effort { display: contents; } .tower { order: 2; margin: 0.8rem auto 0; width: 9.5rem; height: 19rem; left: -1.55rem; }  /* nudged so the bell and bar sit in the middle of the screen (labels hang off to the left) */ .erow-foot { order: 3; margin: 0.7rem 0 0.4rem; justify-content: center; text-align: center; } .einputs { order: 4; margin-top: 0.6rem; } }

/* Achievement tier effects, same as the Cash Flow artifact */
.lad[data-tier="Paper"] .lad-ico,.mini[data-tier="Paper"].on .mini-ico{background:repeating-linear-gradient(0deg,#f3efe4 0 3px,#e6e1d3 3px 4px);color:#333}
.lad[data-tier="Cardboard"] .lad-ico,.mini[data-tier="Cardboard"].on .mini-ico{background:repeating-linear-gradient(90deg,#a67c52 0 2px,#8f6a46 2px 4px)}
.lad[data-tier="Legendary"],.mini[data-tier="Legendary"].on{border-color:transparent;background:linear-gradient(var(--surface),var(--surface)) padding-box,linear-gradient(90deg,#ff6a3d,#ffd166,#ff3d8a,#a78bfa,#ff6a3d) border-box;background-size:100% 100%,300% 100%;animation:cfShine 3s linear infinite}
.lad[data-tier="Legendary"] .lad-ico,.mini[data-tier="Legendary"].on .mini-ico{background:conic-gradient(from 0deg,#ff6a3d,#ffd166,#ff3d8a,#a78bfa,#ff6a3d);border-color:#fff;animation:cfGlow 1.6s ease-in-out infinite,cfSpin 6s linear infinite}
.lad[data-tier="Legendary"] .lad-tier,.mini[data-tier="Legendary"].on .mini-tier{background:linear-gradient(90deg,#ff6a3d,#ffd166,#ff3d8a,#a78bfa,#ff6a3d);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:cfShine 3s linear infinite;border-color:#ff6a3d}
.pips i[data-tier="Legendary"]{border-radius:2px;transform:rotate(45deg) scale(0.95)}
.pips i[data-tier="Legendary"].on{background:conic-gradient(#ff6a3d,#ffd166,#ff3d8a,#a78bfa,#ff6a3d);animation:cfGlow 1.6s ease-in-out infinite}
.mini[data-tier="Legendary"] .mini-ico{border-radius:0.6rem}
.lad[data-tier="Platinum"],.lad[data-tier="Diamond"]{border-color:color-mix(in srgb,var(--tier) 60%,var(--line));background:linear-gradient(110deg,color-mix(in srgb,var(--tier) 14%,var(--surface)) 0%,var(--surface) 35%,color-mix(in srgb,var(--tier) 22%,var(--surface)) 50%,var(--surface) 65%,color-mix(in srgb,var(--tier) 14%,var(--surface)) 100%);background-size:200% 100%;animation:cfShine 4s linear infinite}
.lad[data-tier="Platinum"] .lad-ico,.lad[data-tier="Diamond"] .lad-ico{animation:cfGlow 2.4s ease-in-out infinite}
.lad[data-tier="Diamond"] .lad-tier,.mini[data-tier="Diamond"].on .mini-tier{font-weight:700;background:linear-gradient(90deg,#b794ff,#5ed3ff,#f4eeff,#b794ff);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:cfShine 3s linear infinite;border-color:#d4b3ff}
.pips i[data-tier="Platinum"].on,.pips i[data-tier="Diamond"].on{animation:cfGlow 2.4s ease-in-out infinite}
.pips i[data-tier="Diamond"]{border-radius:2px;transform:rotate(45deg) scale(0.85)}
.mini[data-tier="Platinum"].on,.mini[data-tier="Diamond"].on{background:linear-gradient(110deg,color-mix(in srgb,var(--tier) 18%,var(--surface)) 0%,var(--surface) 40%,color-mix(in srgb,var(--tier) 28%,var(--surface)) 50%,var(--surface) 60%,color-mix(in srgb,var(--tier) 18%,var(--surface)) 100%);background-size:200% 100%;animation:cfShine 4s linear infinite}
.mini[data-tier="Platinum"].on .mini-ico,.mini[data-tier="Diamond"].on .mini-ico{animation:cfGlow 2.4s ease-in-out infinite}
.mini[data-tier="Diamond"] .mini-ico{border-radius:0.6rem}
.lad[data-tier="Diamond"]::before,.lad[data-tier="Diamond"]::after,.mini[data-tier="Diamond"].on::before,.mini[data-tier="Diamond"].on::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:0;border-radius:inherit;--s:radial-gradient(circle,#fff 0 1px,transparent 1.6px);--x:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-image:radial-gradient(circle at 6% 30%,#fff 0 1.4px,rgba(212,179,255,0.9) 2px,transparent 3px),radial-gradient(circle at 22% 78%,#fff 0 1px,rgba(143,227,255,0.9) 1.6px,transparent 2.6px),radial-gradient(circle at 48% 18%,#fff 0 1.2px,rgba(212,179,255,0.9) 1.8px,transparent 3px),radial-gradient(circle at 71% 66%,#fff 0 1px,rgba(143,227,255,0.9) 1.6px,transparent 2.6px),radial-gradient(circle at 90% 24%,#fff 0 1.4px,rgba(212,179,255,0.9) 2px,transparent 3.2px),radial-gradient(circle at 60% 88%,#fff 0 1px,rgba(255,255,255,0.8) 1.4px,transparent 2.4px),radial-gradient(circle at 3% 72%,#fff 0 1.6px,rgba(143,227,255,0.9) 2.2px,transparent 3.4px),radial-gradient(circle at 40% 92%,#fff 0 1px,rgba(212,179,255,0.9) 1.5px,transparent 2.5px),radial-gradient(circle at 84% 46%,#fff 0 1.6px,rgba(255,255,255,0.9) 2.2px,transparent 3.4px);animation:cfTwinkle 2.6s ease-in-out infinite;transform-origin:center}
.lad[data-tier="Diamond"]::after,.mini[data-tier="Diamond"].on::after{background-image:radial-gradient(circle at 14% 56%,#fff 0 1px,rgba(143,227,255,0.9) 1.6px,transparent 2.6px),radial-gradient(circle at 36% 36%,#fff 0 1.3px,rgba(212,179,255,0.9) 2px,transparent 3px),radial-gradient(circle at 55% 62%,#fff 0 1px,rgba(255,255,255,0.8) 1.4px,transparent 2.4px),radial-gradient(circle at 80% 84%,#fff 0 1.3px,rgba(143,227,255,0.9) 2px,transparent 3px),radial-gradient(circle at 96% 50%,#fff 0 1px,rgba(212,179,255,0.9) 1.6px,transparent 2.6px);animation-delay:1.3s;animation-duration:3.1s}
.lad[data-tier="Diamond"] .lad-ico::after,.mini[data-tier="Diamond"].on .mini-ico::after{animation:cfGlint 3.2s ease-in-out infinite}
.lad[data-tier="Diamond"] .lad-ico,.mini[data-tier="Diamond"].on .mini-ico{background:linear-gradient(135deg,#e9dbff,#8fe3ff 45%,#ffffff 55%,#d4b3ff);color:#1b1230;border-color:#fff;box-shadow:0 0 14px 2px rgba(212,179,255,0.55)}
.pips i[data-tier="Diamond"].on{background:linear-gradient(135deg,#e9dbff,#8fe3ff,#ffffff);animation:cfGlow 2.4s ease-in-out infinite}
.lad[data-tier="Legendary"],.mini[data-tier="Legendary"].on{overflow:hidden;isolation:isolate;border-color:transparent;background:linear-gradient(var(--surface),var(--surface)) padding-box,linear-gradient(90deg,#ff6a3d,#ffd166,#ff3d8a,#a78bfa,#ff6a3d) border-box;background-size:100% 100%,300% 100%;animation:cfShine 3s linear infinite}
.lad[data-tier="Legendary"]::before,.mini[data-tier="Legendary"].on::before{content:'';position:absolute;z-index:0;left:50%;top:50%;width:220%;aspect-ratio:1;margin:-110% 0 0 -110%;pointer-events:none;background:conic-gradient(from 0deg,rgba(255,106,61,0.22),rgba(255,209,102,0.16),rgba(255,61,138,0.2),rgba(167,139,250,0.22),rgba(56,189,248,0.16),rgba(255,106,61,0.22));filter:blur(34px) saturate(1.4);opacity:0.85;animation:cfAurora 9s linear infinite}
.lad[data-tier="Legendary"]::after,.mini[data-tier="Legendary"].on::after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background-image:radial-gradient(circle at 8% 80%,#ffd166 0 1.4px,transparent 2.4px),radial-gradient(circle at 19% 60%,#fff 0 1px,transparent 2px),radial-gradient(circle at 31% 90%,#ff6a3d 0 1.3px,transparent 2.3px),radial-gradient(circle at 44% 70%,#ffd166 0 1px,transparent 2px),radial-gradient(circle at 57% 85%,#ff3d8a 0 1.3px,transparent 2.3px),radial-gradient(circle at 69% 65%,#fff 0 1px,transparent 2px),radial-gradient(circle at 81% 88%,#a78bfa 0 1.4px,transparent 2.4px),radial-gradient(circle at 93% 72%,#ffd166 0 1px,transparent 2px);animation:cfRise 3.4s ease-in-out infinite}
.lad[data-tier="Legendary"] .lad-ico,.mini[data-tier="Legendary"].on .mini-ico{background:conic-gradient(from 0deg,#ff6a3d,#ffd166,#ff3d8a,#a78bfa,#38bdf8,#ff6a3d);border-color:#fff;animation:cfFlare 1.8s ease-in-out infinite,cfSpin 6s linear infinite;overflow:visible}
.lad[data-tier="Legendary"] .lad-ico::before,.mini[data-tier="Legendary"].on .mini-ico::before{content:'';position:absolute;inset:-9px;border-radius:50%;z-index:-1;background:repeating-conic-gradient(from 0deg,rgba(255,255,255,0.55) 0 4deg,transparent 4deg 18deg);-webkit-mask:radial-gradient(circle,transparent 55%,#000 58%,#000 100%);mask:radial-gradient(circle,transparent 55%,#000 58%,#000 100%);animation:cfAurora 7s linear infinite reverse;opacity:0.8}
.lad[data-tier="Legendary"] .lad-ico::after,.mini[data-tier="Legendary"].on .mini-ico::after{animation:cfGlint 2.2s ease-in-out infinite}
.lad[data-tier="Legendary"] .lad-tier,.mini[data-tier="Legendary"].on .mini-tier,.lad[data-tier="Legendary"] .lad-top b{background:linear-gradient(90deg,#ff6a3d,#ffd166,#ff3d8a,#a78bfa,#ff6a3d);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:cfShine 3s linear infinite,cfPulseText 2.4s ease-in-out infinite;border-color:#ff6a3d}
.pips i[data-tier="Legendary"]{border-radius:2px;transform:rotate(45deg) scale(0.95)}
.pips i[data-tier="Legendary"].on{background:conic-gradient(#ff6a3d,#ffd166,#ff3d8a,#a78bfa,#ff6a3d);animation:cfFlare 1.8s ease-in-out infinite,cfSpin 6s linear infinite}
@keyframes cfShine{0%{background-position:-200% 0}100%{background-position:200% 0}}
@keyframes cfGlow{0%,100%{box-shadow:0 0 6px 0 color-mix(in srgb,var(--tier) 45%,transparent)}50%{box-shadow:0 0 16px 3px color-mix(in srgb,var(--tier) 70%,transparent)}}
@keyframes cfSpin{to{filter:hue-rotate(360deg)}}
@keyframes cfTwinkle{0%,100%{opacity:0;transform:scale(0.4)}50%{opacity:1;transform:scale(1)}}
@keyframes cfGlint{0%,70%{transform:translateX(-120%) rotate(0.001deg)}100%{transform:translateX(120%) rotate(0.001deg)}}
@keyframes cfAurora{to{transform:rotate(360deg)}}
@keyframes cfRise{0%{transform:translateY(14px);opacity:0}15%{opacity:1}85%{opacity:1}100%{transform:translateY(-18px);opacity:0}}
@keyframes cfFlare{0%,100%{box-shadow:0 0 10px 2px rgba(255,106,61,0.55),0 0 28px 6px rgba(255,61,138,0.25)}50%{box-shadow:0 0 18px 5px rgba(255,209,102,0.75),0 0 46px 12px rgba(167,139,250,0.35)}}
@keyframes cfPulseText{0%,100%{text-shadow:0 0 6px rgba(255,209,102,0.4)}50%{text-shadow:0 0 14px rgba(255,106,61,0.9),0 0 24px rgba(255,61,138,0.5)}}

/* Labels that name a number read as titles: bright and bold */
.sbig small, .scmp small { color: var(--fg); font-weight: 600; }
.hrow > div:first-child { font-weight: 600; }
.erow > div:first-child > span { font-weight: 600; }
.lad-top b, .mini-name { font-weight: 700; }

/* keep profit/loss colors above the bright-cell rule */
table.top td.pos, table.pi td.pos, td.pos { color: var(--good) !important; } table.top td.neg, table.pi td.neg, td.neg { color: var(--bad) !important; } table.top td.up, td.up { color: var(--good) !important; } table.top td.down, td.down { color: var(--bad) !important; }
/* Phones: Top Sellers shows # | Title | Sold (selected window) | In Stock; the other columns return on wider screens. Titles wrap to two lines. */
@media (max-width: 640px) { #top-table { table-layout: fixed; } #top-table th:nth-child(3), #top-table td:nth-child(3), #top-table th:nth-child(n+6), #top-table td:nth-child(n+6) { display: none; } #top-table th:first-child, #top-table td:first-child { width: 1.7rem; padding-left: 0.2rem; } #top-table th:nth-child(4), #top-table td:nth-child(4) { width: 3.6rem; } #top-table th:nth-child(5), #top-table td:nth-child(5) { width: 4.2rem; } #top-table th.tcol, #top-table td.tcol { min-width: 0; width: auto; } #top-table td:nth-child(2) { max-width: none; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; text-overflow: clip; } #top-table th, #top-table td { padding: 0.4rem 0.3rem; } #top-table th { font-size: 0.68rem; letter-spacing: 0; } }
/* Phones: Per-Item Costs rows stack — Title + SKU across the top, then Units / Your Cost / Profit as labeled cells. Supplier, List Price and Amazon Pays return on wider screens. */
@media (max-width: 640px) {
  table.pi, table.pi tbody { display: block; width: 100%; }
  table.pi thead, .col-grip { display: none; }
  table.pi tr { display: grid; grid-template-columns: 0.8fr 1fr 1.3fr 1fr; gap: 0.15rem 0.5rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  table.pi td { display: block; border: 0; padding: 0; text-align: left; width: auto !important; max-width: none !important; white-space: normal; overflow: visible; }
  table.pi td:first-child { grid-column: 1 / -1; overflow-wrap: anywhere; line-height: 1.25; margin-bottom: 0.25rem; }
  table.pi td:first-child small { white-space: normal; overflow-wrap: anywhere; }
  table.pi td:first-child .tw { max-width: none; width: auto; white-space: normal; overflow: visible; }
  table.pi td:nth-child(2), table.pi td:nth-child(3) { display: none; }
  table.pi td:nth-child(4)::before, table.pi td:nth-child(5)::before, table.pi td:nth-child(6)::before, table.pi td:nth-child(7)::before, table.pi td:nth-child(8)::before { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
  table.pi td:nth-child(4)::before { content: 'Units'; } table.pi td:nth-child(5)::before { content: 'Sold · Sell-Thru'; } table.pi td:nth-child(6)::before { content: 'List Price'; } table.pi td:nth-child(7)::before { content: 'Your Cost'; } table.pi td:nth-child(8)::before { content: 'Profit'; }
  table.pi td:nth-child(4), table.pi td:nth-child(4)::before { text-align: left; } table.pi td:nth-child(8), table.pi td:nth-child(8)::before { text-align: right; }
  table.pi tr { grid-template-columns: 1fr 1fr 1fr; gap: 0.45rem 0.6rem; }
  table.pi td:nth-child(4), table.pi td:nth-child(5), table.pi td:nth-child(6) { white-space: nowrap; }
  table.pi td:nth-child(7) { grid-column: 1 / 3; } table.pi td:nth-child(8) { grid-column: 3; text-align: right; }
  table.pi td:nth-child(5), table.pi td:nth-child(5)::before, table.pi td:nth-child(6), table.pi td:nth-child(6)::before { text-align: left; }
  table.pi td:nth-child(5) small, table.pi td:nth-child(5) b { display: inline; margin-left: 0.3rem; } table.pi td:nth-child(5) b { margin-left: 0; }
  table.pi input { width: 100%; max-width: 11rem; box-sizing: border-box; }
  table.pi td.tcol { padding-left: 2.6rem; } table.pi td.tcol .selw { left: 0.1rem; top: 0.9rem; transform: none; }
  table.pi td.tcol .tw, table.pi td.tcol .selw ~ .tw { width: auto; min-width: 0; }
  table.pi td.costc::before { content: 'Your Cost'; width: auto; height: auto; } table.pi td.supc::before { content: 'Supplier'; width: auto; height: auto; }
  table.pi td.st small { display: inline; margin-left: 0.35rem; }
  table.pi td.costc input { text-align: left; }
}
table.pi td:nth-child(4) b { font-weight: 500; } table.pi td:nth-child(4) small { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 400; }
/* Buttons must be unmistakable (Feda, Oct 19): outlined, glowing, obviously clickable. */
.tog button { border: 2px solid color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); }
.tog button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.mode { border: 2px solid color-mix(in srgb, var(--accent) 70%, var(--line)) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); }
.pill, .pi-pager button, .lnk, button.lnk { border: 2px solid color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); }
.sel, select.sel { border: 2px solid color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); }
.drop { border-width: 2px; border-style: dashed; border-color: color-mix(in srgb, var(--accent) 75%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
label.btn, .cost-csv label { cursor: pointer; }
.btn { border: 2px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn.ghost, .step .cost-csv .btn.ghost { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--fg); }
.btn.ghost:hover, .step .cost-csv .btn.ghost:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.btn[disabled] { box-shadow: none; transform: none; }
/* Nav: brand stays left, the button group stays on the same row and wraps inside itself if space runs out. */
@media (min-width: 800px) { .nav { flex-wrap: nowrap; } .navbtns { flex: 1 1 0; min-width: 0; justify-content: flex-end; } }
.theme select, select.sel, .sel { border: 2px solid var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-weight: 600; }

/* Cards must read as distinct panels (Feda, Oct 19): 2px accent border, glow ring, lift shadow, clear gap. */
.card { border: 2px solid color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent), 0 10px 30px rgba(0,0,0,0.35); } .card:hover { border-color: color-mix(in srgb, var(--accent) 80%, var(--line)); }
/* Inputs must be as obvious as buttons (Feda, Oct 19): 2px accent border + glow on every editable field. */
table.pi input, .pi-bulk input, .cost-in input, .cost-f input, #c-def, input[type="number"], input[type="text"], input[type="search"], input[type="email"], input[type="password"] { border: 2px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border-radius: 8px; }
table.pi input:focus, .pi-bulk input:focus, .cost-in input:focus, .cost-f input:focus, input:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 32%, transparent); }
table.pi input.set { border-color: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
table.pi input.sup { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
/* Achievement rows: each one a clearly separated panel edged in its tier color (Feda, Oct 19). */
.lad { border: 2px solid color-mix(in srgb, var(--tier) 55%, var(--line)); border-left: 5px solid var(--tier); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier) 10%, transparent), 0 6px 18px rgba(0,0,0,0.35); margin-bottom: 0.7rem; }
.lad:hover { border-color: var(--tier); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier) 22%, transparent), 0 8px 22px rgba(0,0,0,0.4); }
.lad[data-tier="Founder"] { box-shadow: 0 0 0 3px rgba(255,209,102,0.18), 0 8px 22px rgba(0,0,0,0.4); }
/* Chart gridlines and axis labels must be readable on the dark surface (Feda, Oct 19). */
:root { --grid: color-mix(in srgb, var(--fg) 26%, transparent); --axis: var(--fg); }

/* Cost upload overwrite safeguard */
.c-ow{margin-top:.6rem;padding:.75rem .9rem;border:2px solid var(--warn,#e0a93a);border-radius:10px;background:color-mix(in srgb,var(--warn,#e0a93a) 10%,var(--card));box-shadow:0 0 0 3px color-mix(in srgb,var(--warn,#e0a93a) 22%,transparent);display:grid;gap:.45rem}
.c-ow b{font-size:.95rem}.c-ow span{font-size:.85rem;color:var(--muted)}
.c-ow-btns{display:flex;flex-wrap:wrap;gap:.45rem}.c-ow-btns .btn{font-size:.8rem}

/* Supplier scorecards */
.sup-tog{margin:.2rem 0 .7rem}
.sup{border:2px solid color-mix(in srgb,var(--c) 55%,var(--line));border-radius:12px;padding:.8rem .9rem;margin-top:.7rem;background:color-mix(in srgb,var(--c) 5%,var(--surface));box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 14%,transparent)}
.sup-h{display:grid;grid-template-columns:minmax(150px,1.1fr) 3fr auto;gap:.9rem;align-items:center}
.sup-n b{font-size:1.05rem}.sup-n small,.sup-v small{display:block;color:var(--muted);font-family:var(--mono);font-size:.72rem;margin-top:.15rem}
.sup-bar{height:12px;border-radius:999px;background:color-mix(in srgb,var(--fg) 10%,transparent);border:1px solid color-mix(in srgb,var(--fg) 22%,transparent);overflow:hidden}.sup-bar i{display:block;height:100%;background:var(--c);border-radius:999px}
.sup-v{text-align:right}.sup-v b{font-size:1.25rem;font-family:var(--mono)}
.sup-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.5rem;margin-top:.75rem}
.sup-s{border:2px solid color-mix(in srgb,var(--c) 70%,var(--fg));box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 18%,transparent);border-radius:9px;padding:.5rem .6rem;background:color-mix(in srgb,var(--fg) 3%,transparent)}
.sup-s small{display:block;color:var(--muted);font-size:.72rem}.sup-s b{display:block;font-family:var(--mono);font-size:1.05rem;margin:.1rem 0}.sup-s em{display:block;font-style:normal;color:var(--muted);font-size:.66rem;line-height:1.25}
@media (min-width:1000px){.sup-grid{grid-template-columns:repeat(5,1fr)}}
@media (max-width:640px){.sup-h{grid-template-columns:1fr auto}.sup-bar{grid-column:1/-1;order:3}.sup-grid{grid-template-columns:repeat(2,1fr)}}

/* Sortable column headers */
table.top thead th{cursor:pointer;user-select:none;white-space:nowrap}
table.top thead th:hover{color:var(--fg);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 70%,transparent);text-underline-offset:3px}
table.top thead th::after{content:"⇅";opacity:.35;font-size:.75em;margin-left:.35em}
table.top thead th[aria-sort="ascending"]::after{content:"▲";opacity:1;color:var(--accent)}table.top thead th[aria-sort="descending"]::after{content:"▼";opacity:1;color:var(--accent)}
table.pi input.via::placeholder{color:color-mix(in srgb,var(--good,#5fd38d) 75%,var(--fg));opacity:1}
table.pi input.via::placeholder{color:color-mix(in srgb,var(--good,#5fd38d) 75%,var(--fg));opacity:1}

/* Nav: account text shrinks first; the action buttons (gear always last) stay together on the right */
.navbtns .acct { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.navacts { display: flex; gap: 0.5rem; align-items: center; flex-wrap: nowrap; margin-left: auto; flex: 0 0 auto; }
@media (max-width: 799px) { .navbtns { flex-wrap: wrap; } .navbtns .acct { flex-basis: 100%; text-align: left; } .navacts { flex-wrap: wrap; justify-content: flex-end; width: 100%; } }
table.pi td.st b { font-family: var(--mono); } table.pi td.st small { display: block; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); } table.pi td.st.pos small { color: var(--good); } table.pi td.st.neg small { color: var(--bad); }

/* Color Scheme menu with swatches */
.theme.tm select.tm-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.theme.tm { position: relative; } .theme.tm > i { display: none; }
.tm-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--body); font-size: 0.82rem; color: var(--fg); background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 10px; padding: 0.45rem 0.7rem; cursor: pointer; }
.tm-btn .tm-arrow { color: var(--muted); font-size: 0.8em; }
.tm-dots { display: inline-flex; gap: 2px; } .tm-dots i { width: 0.8rem; height: 0.8rem; border-radius: 50%; display: inline-block; border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); }
.tm-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 15rem; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 14px 36px rgba(0,0,0,0.45); border-radius: 12px; padding: 0.35rem; display: grid; gap: 2px; }
.tm-opt { display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; font-family: var(--body); font-size: 0.85rem; color: var(--fg); background: transparent; border: 2px solid transparent; border-radius: 8px; padding: 0.45rem 0.6rem; cursor: pointer; }
.tm-opt:hover, .tm-opt:focus { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); outline: none; }
.tm-opt[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 28%, transparent); border-color: var(--accent); }
.tm-opt .tm-dots i { width: 0.9rem; height: 0.9rem; }
table.top.pi thead th { white-space: nowrap; line-height: 1.15; vertical-align: bottom; } table.pi td:first-child .tw { max-width: 100%; }
table.top td.asin { font-family: var(--mono); font-size: 0.82rem; text-align: left; white-space: nowrap; } table.top th:nth-child(2), table.top td:nth-child(2) { text-align: left; }
.sup-bar-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.2rem 0 0.7rem; } .sup-bar-row .sup-tog { margin: 0; }
.sup-glance { margin-top: 0.8rem; } .sup-glance table tbody tr { cursor: pointer; } .sup-glance table tbody tr.on td { background: color-mix(in srgb, var(--accent) 14%, transparent); } .sup-glance table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 8%, transparent); } .sup-glance td:first-child, .sup-glance th:first-child { text-align: left; }
.owner-only { position: relative; } button.owner-only::before { content: none; } button.owner-only::after { content: 'Owner'; display: inline-block; margin-left: 0.45rem; vertical-align: 0.1em; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: #0b0b0c; border: 1.5px solid #fff; border-radius: 999px; padding: 0.08rem 0.4rem; }  /* on a button the tag sits after the label instead of covering it */
:not(button).owner-only::before { content: 'Owner Preview'; position: absolute; top: 0.55rem; right: 0.7rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; background: #0b0b0c; border: 1.5px solid #ffffff; border-radius: 999px; padding: 0.12rem 0.45rem; z-index: 2; }
.cp { cursor: pointer; border-bottom: 1px dashed color-mix(in srgb, var(--fg) 30%, transparent); transition: color .15s, border-color .15s; } .cp:hover { color: var(--accent); border-bottom-color: var(--accent); } .cp.copied { color: var(--good); border-bottom-color: var(--good); } .cp.copied::after { content: ' ✓ Copied'; font-family: var(--mono); font-size: 0.7em; color: var(--good); }
/* ASIN chips keep the box: a clear click target */
td.asin .cp, td.idc small .cp:last-child:not(:first-child) { display: inline-block; padding: 0.08rem 0.45rem; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-bottom-style: solid; border-radius: 7px; background: color-mix(in srgb, var(--accent) 6%, transparent); } td.asin .cp::after, td.idc small .cp:last-child:not(:first-child)::after { content: ' ⧉'; opacity: 0.5; font-size: 0.85em; } td.asin .cp:hover, td.idc small .cp:last-child:not(:first-child):hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); } td.asin .cp.copied::after, td.idc small .cp.copied::after { content: ' ✓ Copied'; opacity: 1; }
td.idc { text-align: left; } td.idc .idt { display: inline-block; max-width: 100%; } td.idc small { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }

/* Drag-and-drop ordering */
.dnd > [draggable="true"] { cursor: grab; } .dnd > .dragging { opacity: 0.35; outline: 2px dashed var(--accent); }
th.dcol { cursor: grab; user-select: none; -webkit-user-drag: element; } th.dcol.dragging { opacity: 0.4; } th.drop-l { box-shadow: inset 3px 0 0 var(--accent); } th.drop-r { box-shadow: inset -3px 0 0 var(--accent); }

/* Column grips on every header */
table.top thead th { position: relative; } table.top thead th .col-grip { opacity: 0.35; } table.top thead th:hover .col-grip { opacity: 1; } body.col-resizing { cursor: col-resize; user-select: none; }
/* Chrome ignores an input's width when sizing table columns, so a zero-height block reserves the room. */
table.pi td.supc input.sup { width: 9.5rem; } table.pi td.supc::before { content: ''; display: block; width: 9.5rem; height: 0; } table.pi td.costc::before { content: ''; display: block; width: 6.5rem; height: 0; }


/* Row selection for bulk edit */
table.pi td.tcol { position: relative; padding-left: 2.85rem; } table.pi td.tcol .selw { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); margin: 0; } table.pi td.tcol .selw ~ .tw { width: 0; min-width: 100%; }
.selw { display: inline-flex; align-items: center; padding-top: 0.15rem; flex: 0 0 auto; } table.pi input[type=checkbox], .selw input[type=checkbox] { all: revert; width: 1.1rem !important; height: 1.1rem !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; accent-color: var(--accent); cursor: pointer; outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 1px; border-radius: 4px; box-shadow: none !important; background: transparent !important; }
table.pi thead th:first-child .selw { margin-right: 0.5rem; vertical-align: middle; }
/* Stronger column separators in table headers */
table.top thead th { border-right: 2px solid color-mix(in srgb, var(--fg) 22%, transparent); } table.top thead th:last-child { border-right: 0; } table.top thead tr { border-bottom: 2px solid color-mix(in srgb, var(--accent) 60%, var(--line)); }
@media (max-width: 640px) { table.pi td:first-child { display: block; } .selw { float: left; margin-right: 0.4rem; } }
/* Resizable headers never wrap — a column can't shrink past its own header text, so the header bar never grows taller */
.tblwrap th, .tbl th { white-space: nowrap; }
table.pi th:first-child { white-space: nowrap; }

/* Only the Title column flexes: all other columns hug their content (width:1% + nowrap), Title takes the rest and ellipsizes. */
.tblwrap table, .tbl table { width: 100%; table-layout: auto; }
.tblwrap table th:not(.tcol), .tblwrap table td:not(.tcol), .tbl table th:not(.tcol), .tbl table td:not(.tcol) { width: 1%; white-space: nowrap; }
.tblwrap table th.tcol, .tblwrap table td.tcol, .tbl table th.tcol, .tbl table td.tcol { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
table.pi th.tcol { white-space: nowrap; }
table.pi td.tcol { white-space: normal; }
table.pi td.tcol .tw { width: 0; min-width: 100%; max-width: none; }
.thw { display: block; width: 0; min-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
th.tcol { position: relative; } th.tcol .selw { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); margin: 0; } th.tcol:has(.selw) { padding-left: 2.85rem; } th.tcol .selw ~ .thw { width: 0; min-width: 100%; }
.tblwrap table td.tcol > .tw, .tbl table td.tcol > .tw { width: 0; min-width: 100%; }
.tblwrap td.tcol > .tw, .tbl td.tcol > .tw { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tblwrap td.tcol > .tw > *, .tbl td.tcol > .tw > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tblwrap td.tcol > .tw small, .tbl td.tcol > .tw small { display: block; }
/* Sort arrow for the Title header lives inside the ellipsized span, so it never wraps onto a second line */
table.top thead th.tcol::after { content: none; }
table.top thead th.tcol .thw::after { content: "⇅"; opacity: .35; font-size: .75em; margin-left: .35em; }
table.top thead th.tcol[aria-sort="ascending"] .thw::after { content: "▲"; opacity: 1; color: var(--accent); }
table.top thead th.tcol[aria-sort="descending"] .thw::after { content: "▼"; opacity: 1; color: var(--accent); }
table.top.pi thead th br + * { display: inline; }
table.top.pi thead th.two { text-align: center; }
.lose-tot { position: absolute; top: 0.9rem; right: 0.9rem; display: flex; margin: 0; }
.lose-tot .sup-s { --c: var(--accent-3); min-width: 0; padding: 0.35rem 0.6rem; text-align: right; }
.lose-tot .sup-s small { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lose-tot .sup-s b { color: var(--accent-3); font-size: 1.05rem; margin: 0.05rem 0 0; }
.lose-tot .sup-s em { display: none; }
#p-lose-card { position: relative; }
@media (max-width: 640px) { .lose-tot { position: static; margin: 0.3rem 0 0.7rem; } }
/* Phones: the wide tables scroll sideways inside their card instead of clipping (desktop never scrolls). Per-Item rows stack instead. */
@media (max-width: 640px) {
  .tblwrap, .tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tblwrap table:not(.pi), .tbl table { width: max-content; min-width: 100%; max-width: none; }
  .tblwrap table:not(.pi) th.tcol, .tblwrap table:not(.pi) td.tcol { width: auto; max-width: 16rem; }
  .tblwrap table:not(.pi) td.tcol > .tw { width: auto; min-width: 0; max-width: 16rem; }
  .tblwrap table:not(.pi) th.tcol .thw { width: auto; min-width: 0; }
}
/* Supplier picker + time-range bar stay pinned to the top of the screen while you scroll through the scorecard and glance table */
.sup-bar-row { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(6px); padding: 0.55rem 0; margin-top: 0; border-bottom: 1px solid var(--line); }
.card:has(.sup-bar-row) { overflow: visible; }

/* Live Sales */
.lv-tot { text-align: right; } .lv-tot b { display: block; font-family: var(--display); font-size: 1.5rem; } .lv-tot small { color: var(--muted); }
.lv-tbl { max-height: 14.5rem; overflow-y: auto; overflow-x: hidden; border: 1px solid var(--line); border-radius: 8px; scrollbar-width: thin; } .lv-tbl thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; }
.lv-tbl table { font-size: 0.82rem; } .lv-tbl th, .lv-tbl td { padding: 0.28rem 0.5rem; line-height: 1.25; } #t-live td.tcol { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#t-live td.lv-p { white-space: nowrap; } .lv-tot b { font-size: 1.25rem; }
.lv-foot { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.45rem; flex-wrap: wrap; } .btn.sm { min-height: 32px; padding: 0.3rem 0.7rem; font-size: 0.8rem; }

/* Value cards: hero total top right, one clean line per row */
.vcard .shead { align-items: flex-end; }
.vhero { text-align: right; white-space: nowrap; } .vhero b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--accent); } .vhero small { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 0.25rem; }
.vsel { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; } .vsel .sel { min-height: 36px; padding: 0.35rem 0.6rem; }
.b3s { display: grid; gap: 0.85rem; margin-top: 1rem; }
.b3 { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr minmax(7.5rem, auto); gap: 0.9rem; align-items: center; }
.b3 .nm { min-width: 0; } .b3 .nm > span { display: block; font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.b3 .tr { height: 0.55rem; background: var(--surface-2); border-radius: 5px; overflow: hidden; } .b3 .tr i { display: block; height: 100%; border-radius: 5px; min-width: 4px; }
.b3 .dt { display: block; color: var(--muted); font-family: var(--mono); font-size: 0.7rem; white-space: nowrap; margin-top: 0.1rem; }
.b3 .vl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .b3 .vl b { font-family: var(--display); font-size: 1.02rem; font-weight: 700; } .b3 .vl small { display: inline-block; min-width: 2.1rem; text-align: right; color: var(--muted); font-size: 0.76rem; margin-left: 0.4rem; }
@media (prefers-reduced-motion: no-preference) { .b3 .tr i { transition: width 0.6s ease; } }
@media (max-width: 640px) { .b3 { grid-template-columns: 1fr auto; row-gap: 0.3rem; } .b3 .tr { grid-column: 1 / -1; grid-row: 2; } .vcard .shead { flex-wrap: wrap; } .vhero { text-align: left; } }
#t-live td.tcol { text-align: left; }

/* Health + Effort side by side */
.grid.hx { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); align-items: stretch; }
.grid.hx .health { grid-template-columns: 8.5rem 1fr; gap: 0.9rem; } .grid.hx .ring { width: 8.5rem; height: 8.5rem; } .grid.hx .ring::before { inset: 0.7rem; } .grid.hx #h-num { font-size: 2.1rem !important; }
.grid.hx .hrow { grid-template-columns: minmax(6rem, 7.5rem) 2rem 1fr; row-gap: 0.15rem; } .grid.hx .hrow small { grid-column: 1 / -1; }
.health > *, .hrow > * { min-width: 0; }
@media (max-width: 640px) { .grid.hx .health { grid-template-columns: 1fr; } .grid.hx .hrow { grid-template-columns: 1fr 2.2rem; } .grid.hx .hrow .track { grid-column: 1 / -1; } }  /* phones: score on top, each row stacks, nothing runs off the card */
.grid.hx .effort { grid-template-columns: 8.5rem 1fr; } .grid.hx .tower { min-height: 16rem; }

/* Sales (left) + Live Sales (right) */
.grid.sx { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); align-items: stretch; }
.grid.sx .sctl { flex-wrap: wrap; justify-content: flex-end; } .grid.sx .s-kpis, .grid.sx #s-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#live-card { display: flex; flex-direction: column; } #live-card[hidden] { display: none; } .grid.sx .lv-tbl { flex: 1 1 auto; max-height: none; min-height: 14rem; height: 0; } .grid.sx .lv-foot { flex: 0 0 auto; }

/* Inventory Pro locked for Starter */
.pro-lock { max-width: 640px; margin: 1rem auto; text-align: center; display: grid; gap: 0.7rem; justify-items: center; padding: 2rem 1.5rem; }
.pro-lock .pl-ico { color: var(--accent); } .pro-lock h3 { font-size: 1.35rem; margin: 0; }
.pl-list { text-align: left; display: grid; gap: 0.45rem; margin: 0.3rem 0 0.6rem; padding-left: 1.2rem; color: var(--fg); font-size: 0.92rem; }

/* Live Sales: shipped orders glow green */
.lv-tbl tr.lv-ship td { background: rgba(74, 211, 154, 0.10); }
.lv-tbl tr.lv-ship td:last-child { color: #4ad39a; font-weight: 700; }
.lv-tbl tr.lv-ship td:first-child { box-shadow: inset 3px 0 0 #4ad39a; }

/* Live Sales stat strip */
.lv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 0.15rem 0 0.6rem; }
.lv-stat { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 0.4rem 0.45rem; min-width: 0; overflow: hidden; }
.lv-stat small { display: block; color: var(--muted); font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-stat b { display: block; font-family: var(--display); font-size: 1rem; line-height: 1.25; white-space: nowrap; }
.lv-stat b.pos { color: #4ad39a; } .lv-stat b.neg { color: #ef6f6f; }
.lv-stat span { display: block; color: var(--muted); font-size: 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-stat.locked b { filter: blur(6px); user-select: none; color: #4ad39a; }
.lv-lock { position: absolute; right: 0.45rem; top: 50%; transform: translateY(-50%); font-size: 0.72rem; font-weight: 700; color: #ffd166; border: 1.5px solid #ffd166; border-radius: 999px; padding: 0.12rem 0.5rem; text-decoration: none; box-shadow: 0 0 10px rgba(255, 209, 102, 0.35); background: rgba(17, 19, 23, 0.85); }
.lv-lock:hover { background: rgba(255, 209, 102, 0.15); }
@media (max-width: 640px) { .lv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Inventory By Disposition */
#t-disp td:nth-child(n+2), #t-disp th:nth-child(n+2) { text-align: right; }
#t-disp td.disp-share { min-width: 9rem; } #t-disp td.disp-share .ds-bar { display: inline-block; vertical-align: middle; width: calc(100% - 3rem); height: 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; } #t-disp td.disp-share .ds-bar i { display: block; height: 100%; border-radius: 999px; } #t-disp td.disp-share em { display: inline-block; width: 2.6rem; font-style: normal; color: var(--muted); font-size: 0.85em; text-align: right; }
#t-disp tr.disp-total td { font-weight: 800; border-bottom: 1px solid var(--line); }
#t-disp tr.clk { cursor: pointer; } #t-disp tr.clk:hover td { background: rgba(95, 155, 247, 0.07); }
#t-disp tr.clk td:first-child::after { content: ' ›'; color: var(--muted); }
#t-disp tr.disp-sub td { color: var(--muted); font-size: 0.86em; padding-top: 0.15rem; padding-bottom: 0.15rem; } #t-disp tr.disp-sub td:first-child { padding-left: 1.4rem; }
#t-disp tr.warn td { color: #ffd166; } #t-disp tr.warn td:first-child::before { content: '⚠ '; }
#t-disp td.pos { color: #4ad39a; } #t-disp td.neg { color: #ef6f6f; } #t-disp td.muted { color: var(--muted); font-size: 0.85em; }
#t-disp tr.disp-open td { background: rgba(255, 255, 255, 0.02); padding: 0.4rem 0.6rem; text-align: left; }
.disp-list { display: grid; gap: 0.15rem; max-height: 16rem; overflow-y: auto; scrollbar-width: thin; }
.disp-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto 5.5rem; gap: 0.75rem; font-size: 0.85rem; padding: 0.15rem 0; border-bottom: 1px solid var(--line); }
.disp-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .disp-list em { font-style: normal; color: var(--muted); text-align: right; }
table.top.nosort thead th::after, table.top.nosort thead th .thw::after { content: none !important; }
#t-disp tr.disp-open td { padding-left: 1.4rem; }

/* Sales card: Profit locked for non-Pro */
#s-body { position: relative; }
#s-body.s-locked .stop2 b, #s-body.s-locked .kpi .v, #s-body.s-locked .kpi .n, #s-body.s-locked #c-sales svg { filter: blur(8px); user-select: none; pointer-events: none; }
.pro-ov { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; gap: 0.3rem; text-align: center; text-decoration: none; padding: 0.9rem 1.4rem; border: 1.5px solid #ffd166; border-radius: 14px; background: rgba(20, 18, 24, 0.88); box-shadow: 0 0 18px rgba(255, 209, 102, 0.35); z-index: 3; }
.pro-ov b { color: #ffd166; font-size: 1.05rem; } .pro-ov span { color: var(--muted); font-size: 0.85rem; } .pro-ov:hover { background: rgba(255, 209, 102, 0.12); }
.stop2 .s-prof { position: relative; } .stop2 .s-prof b { font-size: 2rem; color: #4ad39a; } .stop2 .s-prof.locked b { filter: blur(7px); user-select: none; }
.stop2 .s-prof .lv-lock { top: 38%; right: auto; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
/* Sales card top row: one line, sized to the card's own width so it always fits */
#s-body { container-type: inline-size; }
#s-body .stop2 { flex-wrap: nowrap; gap: 2.2cqi; justify-content: flex-start; }
#s-body .stop2 > div { min-width: 0; flex: 0 1 auto; }
#s-body .stop2 b { font-size: clamp(0.95rem, 2.6cqi, 1.45rem) !important; white-space: nowrap; line-height: 1.15; }
#s-body .stop2 .big b, #s-body .stop2 .s-prof b { font-size: clamp(1.15rem, 3.6cqi, 1.9rem) !important; }
#s-body .stop2 small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(0.62rem, 1.35cqi, 0.8rem) !important; }
@media (max-width: 560px) { #s-body .stop2 { flex-wrap: wrap; } }

/* Amazon Fees (Pro) */
#t-fx td:nth-child(2), #t-fx td:nth-child(3), #t-fx th:nth-child(2), #t-fx th:nth-child(3) { text-align: right; font-family: var(--mono); }
#t-fx td.neg { color: #ef6f6f; } #t-fx td.pos { color: #4ad39a; }
#t-fx tr.fx-total td { font-weight: 800; border-top: 1px solid var(--line); } #t-fx tr.fx-reimb td { color: var(--muted); }
.fx-bar { display: block; height: 0.5rem; min-width: 6rem; background: rgba(255, 255, 255, 0.05); border-radius: 999px; overflow: hidden; }
.fx-bar i { display: block; height: 100%; background: #ef6f6f; border-radius: 999px; } .fx-bar i.pos { background: #4ad39a; }
.fx-top .big b { color: #ef6f6f !important; }
/* Hidden until the app has Amazon's Finance And Accounting role (remove data-off on #fx-card to show) */
#fx-card[data-off] { display: none !important; }
/* Payouts card (Nov 21 2026) */
.po-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: .7rem 0 .4rem; } .po-t { border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; background: var(--surface-2); min-width: 0; } .po-t .l { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); } .po-t .v { font-family: var(--mono); font-size: 1.4rem; margin: .3rem 0 .2rem; overflow-wrap: anywhere; } .po-t .v.pos, #t-po td.pos { color: #4ad39a; } #t-po td.neg { color: #ff7b6b; } .po-t .n { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.po-store { display: inline-flex; align-items: center; gap: .45rem; } .po-flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); } .po-orig { color: var(--muted); font-size: .78em; margin-right: .55rem; }
.po-scroll { max-height: 15.5rem; overflow-y: auto; } .po-scroll thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
@media (max-width: 900px) { .po-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
#t-disp tr.disp-match td { color: var(--muted); font-size: 0.88em; } #t-disp tr.disp-match td:last-child { color: #4ad39a; }
#t-disp tr.disp-hd td { color: var(--muted); font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.9rem; border-bottom: 1px solid var(--line); } #t-disp tr.disp-out td { color: var(--muted); }
#t-disp td.disp-same { color: #4ad39a; font-weight: 600; font-size: 0.85em; }

/* Average Sale Price */
.asp-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.2rem 0 0.6rem; }
.asp-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.32rem 0.8rem; border-radius: 999px; border: 1.5px solid var(--c); background: transparent; color: var(--fg); font: 600 0.82rem var(--body); cursor: pointer; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 35%, transparent); }
.asp-chip i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c); }
.asp-chip[aria-pressed="false"] { opacity: 0.45; box-shadow: none; } .asp-chip[aria-pressed="false"] i { background: transparent; border: 1.5px solid var(--c); }
#c-asp { position: relative; }
/* Merged cards */
.card.merged > .shead { align-items: center; } .card.merged .mpane > .shead { margin-top: 0.2rem; }
.pv-tag { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 60; padding: 0.45rem 0.9rem; border: 1.5px solid #ffd166; border-radius: 999px; background: rgba(20, 18, 24, 0.92); color: #ffd166; font-size: 0.85rem; box-shadow: 0 0 14px rgba(255, 209, 102, 0.35); } .pv-tag a { color: #ffd166; font-weight: 700; }
.card.merged .lose-tot { position: static; margin: 0.5rem 0 0.8rem; } .card.merged .lose-tot .sup-s { text-align: left; padding: 0.5rem 0.8rem; } .card.merged .lose-tot .sup-s b { font-size: 1.5rem; } .card.merged .lose-tot .sup-s em { display: block; font-style: normal; color: var(--muted); font-size: 0.78rem; }
/* ASP chart fills its full-width card instead of sitting small in the middle */
#c-asp { height: 260px; } #c-asp svg { width: 100%; height: 100%; }
/* Streamer Mode: item titles, SKUs, ASINs (and any item pictures) are covered by a solid mask; every number stays visible */
#btn-incog[aria-pressed="true"] { border-color: #ffd166; color: #ffd166; box-shadow: 0 0 14px rgba(255, 209, 102, 0.45); }
body.incog :is(#lv-rows td:nth-child(2), #t-top td:nth-child(2), #t-top td:nth-child(3), #pi-rows td:nth-child(1), #pi-rows td:nth-child(2), #p-lose td:nth-child(2), #p-lose td:nth-child(3), #p-best td:nth-child(2), #p-best td:nth-child(3), .disp-list span, .itm, #acct, #ap-amz-sub, #p-alerts small) { position: relative; user-select: none; }
body.incog :is(#lv-rows td:nth-child(2), #t-top td:nth-child(2), #t-top td:nth-child(3), #pi-rows td:nth-child(1), #pi-rows td:nth-child(2), #p-lose td:nth-child(2), #p-lose td:nth-child(3), #p-best td:nth-child(2), #p-best td:nth-child(3), .disp-list span, .itm, #acct, #ap-amz-sub, #p-alerts small) :is(*, *::before),
body.incog :is(#lv-rows td:nth-child(2), #t-top td:nth-child(2), #t-top td:nth-child(3), #pi-rows td:nth-child(2), #p-lose td:nth-child(2), #p-lose td:nth-child(3), #p-best td:nth-child(2), #p-best td:nth-child(3), .disp-list span, .itm, #acct, #ap-amz-sub, #p-alerts small) { color: transparent !important; text-shadow: none !important; -webkit-text-fill-color: transparent; }
body.incog #pi-rows td:nth-child(1) :not(input):not(label) { color: transparent !important; -webkit-text-fill-color: transparent; }
body.incog :is(#lv-rows td:nth-child(2), #t-top td:nth-child(2), #t-top td:nth-child(3), #pi-rows td:nth-child(2), #p-lose td:nth-child(2), #p-lose td:nth-child(3), #p-best td:nth-child(2), #p-best td:nth-child(3), .disp-list span, .itm, #acct, #ap-amz-sub, #p-alerts small)::after { content: ''; position: absolute; left: 0.3rem; right: 0.3rem; top: 50%; height: 0.8em; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(150, 150, 165, 0.32) 0 10px, rgba(150, 150, 165, 0.2) 10px 20px); pointer-events: none; }
body.incog #pi-rows td:nth-child(1)::after { content: ''; position: absolute; left: 2.2rem; right: 0.3rem; top: 50%; height: 0.8em; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(150, 150, 165, 0.32) 0 10px, rgba(150, 150, 165, 0.2) 10px 20px); pointer-events: none; }
body.incog :is(#lv-rows, #t-top, #pi-rows, #p-lose, #p-best, .disp-list, .itm) img { visibility: hidden !important; }
body.incog :is(#lv-rows, #t-top, #pi-rows, #p-lose, #p-best) td:nth-child(-n+3) :is(button, a) { pointer-events: none; }
body.incog .tip:has(.itm-tip) { display: none; }
.incog-badge { display: none; }
body.incog .incog-badge { display: block; position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 60; padding: 0.4rem 0.9rem; border: 1.5px solid #ffd166; border-radius: 999px; background: rgba(20, 18, 24, 0.92); color: #ffd166; font-size: 0.82rem; box-shadow: 0 0 14px rgba(255, 209, 102, 0.35); }

/* Top 10 totals */
.stop2.top-sum { margin: 0.55rem 0 0; gap: 1.4rem; } .top-sum b { font-size: 1.35rem !important; color: var(--accent); } .top-sum .ts-p { position: relative; } .top-sum .ts-p b { color: #4ad39a; } .top-sum .ts-p b.neg { color: var(--accent-3); } .top-sum .ts-p.locked b { filter: blur(7px); user-select: none; } .top-sum .lv-lock { top: 38%; right: auto; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.asp-chips { gap: 0.6rem 0.9rem; align-items: flex-end; } .asp-col { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; } .asp-col > b { font-family: var(--mono); font-size: 1.15rem; line-height: 1.1; } .asp-col > small { color: var(--muted); font-size: 0.7rem; margin-bottom: 0.25rem; }
#t-top td.tlock { filter: blur(5px); cursor: pointer; user-select: none; color: var(--good); } #t-top td.est { font-style: italic; opacity: 0.8; }

/* Streamer Mode: the account panel's personal details */
body.incog :is(#ap-who, #al-devs) { color: transparent !important; -webkit-text-fill-color: transparent; position: relative; user-select: none; }
body.incog :is(#ap-who, #al-devs)::after { content: ''; position: absolute; left: 0; right: 30%; top: 50%; height: .8em; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(150,150,165,.32) 0 10px, rgba(150,150,165,.2) 10px 20px); pointer-events: none; }
body.incog :is(#ap-first, #ap-last, #ap-email) { color: transparent !important; -webkit-text-fill-color: transparent; caret-color: transparent; background-image: repeating-linear-gradient(90deg, rgba(150,150,165,.22) 0 10px, rgba(150,150,165,.12) 10px 20px) !important; }
.e-streak { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .8rem; margin: 0 0 .7rem; border: 1.5px solid var(--line); border-radius: 10px; } .e-streak b { font-size: 1.05rem; } .e-streak small { color: var(--muted); font-size: .78rem; } .e-streak.hot { border-color: #ff9900; box-shadow: 0 0 14px rgba(255,153,0,.35); } .e-streak.hot b { color: #ffb84d; }
#lv-rows td.lv-pend { color: var(--muted) !important; font-style: italic; }
.e-hitrow { margin: 0.7rem 0 0.2rem; } .e-hitrow #e-hit { margin-left: 6.3rem; transform: translateX(-50%); white-space: nowrap; }  /* centered under the column */
@media (max-width: 520px) { .e-hitrow { order: 3; display: flex; justify-content: center; } .e-hitrow #e-hit { margin-left: 0; transform: none; } }

/* Top 10: the title gets the room (about a third of the table) */
#top-table th.tcol, #top-table td.tcol { min-width: 11rem; width: 30%; }
@media (max-width: 640px) { #top-table th.tcol, #top-table td.tcol { min-width: 0; width: auto; } }

/* Gross / Net switch inside profit boxes */
.pnet { display: inline-flex; gap: 0.25rem; margin-top: 0.35rem; } .pnet button { font-size: 0.7rem; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1.5px solid var(--accent); background: transparent; color: var(--fg); cursor: pointer; box-shadow: 0 0 8px color-mix(in srgb, var(--a1) 35%, transparent); } .pnet button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--btn-fg); }
.s-prof .pnet, .lv-stat .pnet { display: flex; width: max-content; }

/* Sales By Brand: share bar behind the percent */
#brand-table td.bshare { position: relative; } #brand-table td.bshare::before { content: ''; position: absolute; left: 0.3rem; top: 30%; bottom: 30%; width: calc(var(--w) * 0.9); background: color-mix(in srgb, var(--a1) 35%, transparent); border-radius: 4px; z-index: 0; } #brand-table th:first-child { text-align: left; }

.lv-stats { gap: 0.4rem; } .lv-stat .pnet button { font-size: 0.62rem; padding: 0.1rem 0.45rem; }

.lv-stat span { white-space: normal; line-height: 1.25; overflow: visible; }

/* Live Sales header: title left, yesterday center, today right */
#live-card > .shead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 0.75rem; } #live-card > .shead > .lv-tot:last-child { justify-self: end; } #live-card .lv-yday { text-align: center; justify-self: center; } #live-card .lv-yday b { color: var(--fg); opacity: 0.92; }
@media (max-width: 640px) { #live-card > .shead { grid-template-columns: 1fr 1fr; } #live-card > .shead > div:first-child { grid-column: 1 / -1; } #live-card .lv-yday { justify-self: start; text-align: left; } }

/* Live Sales header: two matching blocks — small label, big number, one short line */
#live-card > .shead { grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; }
#live-card .lv-tot { text-align: right; min-width: 9rem; } #live-card .lv-yday { text-align: right; justify-self: end; }
#live-card .lv-tot .lv-k { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.1rem; }
#live-card .lv-tot b { font-size: 1.5rem; line-height: 1.1; } #live-card .lv-yday b { color: var(--fg); opacity: 0.85; }
#live-card .lv-tot small { display: block; font-size: 0.75rem; white-space: nowrap; margin-top: 0.15rem; }
#live-card .lv-yday { padding-right: 2rem; border-right: 1px solid var(--line); }
@media (max-width: 640px) { #live-card > .shead { grid-template-columns: 1fr 1fr; gap: 0.75rem; } #live-card > .shead > div:first-child { grid-column: 1 / -1; } #live-card .lv-tot, #live-card .lv-yday { text-align: left; justify-self: start; padding-right: 0; border-right: 0; min-width: 0; } }

/* Per-Item Costs: brand box under the supplier box */
table.pi td.supc input.brand { margin-top: 0.3rem; font-size: 0.85em; opacity: 0.9; } table.pi td.supc input.brand::placeholder { color: var(--muted); opacity: 0.8; }

/* Supplier and brand boxes stacked, so the title keeps its room */
table.pi td.supc input.sup { display: block; width: 9.5rem; padding-top: 0.2rem; padding-bottom: 0.2rem; } table.pi td.supc input.brand { margin-top: 0.25rem; }

/* Sales By Brand: buttons get their own row; the wide table fits (scrolls sideways on small screens) */
#brand-card > .shead { flex-wrap: wrap; } #brand-card > .shead > div:first-child { flex: 1 1 100%; } #brand-card .sctl { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-start; width: 100%; margin-top: 0.5rem; } #brand-card .sctl .tog { flex-wrap: wrap; }
#brand-card .tblwrap { overflow-x: auto; } #brand-table { font-size: 0.74rem; } #brand-table th, #brand-table td { padding: 0.4rem 0.45rem; white-space: nowrap; } #brand-table th { font-size: 0.66rem; }

#brand-card .bsearch { min-width: 12rem; flex: 1 1 12rem; max-width: 18rem; } #brand-card #b-back { min-height: 34px; }
#brand-table tr.bpick { cursor: pointer; } #brand-table tr.bpick:hover td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
#brand-detail .bd-head { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin: 0.6rem 0 0.5rem; } #brand-detail h4 { margin: 0; font-size: 1.15rem; }
.bd-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.45rem; } .bd-t .bd-v { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; } .bd-t .lv-k { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .bd-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 520px) { .bd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#bitem-table { font-size: 0.74rem; } #bitem-table th, #bitem-table td { padding: 0.4rem 0.45rem; white-space: nowrap; } #bitem-table th { font-size: 0.66rem; } #bitem-table td.idc { white-space: normal; min-width: 14rem; max-width: 22rem; text-align: left; }

/* Pro sub-tabs */
#pro-sub { margin: 1rem 0 0; display: flex; gap: 0.5rem; } #pro-sub button { font-size: 0.92rem; padding: 0.5rem 1.1rem; }
#tab-pro[data-sub="ins"] > .pv-costs, #tab-pro[data-sub="ins"] > .pv-reorder, #tab-pro[data-sub="ins"] > .pv-resource { display: none !important; }
#tab-pro[data-sub="resource"] > :not(.pv-resource):not(#pro-sub):not(#p-need) { display: none !important; }
#tab-pro[data-sub="reorder"] > :not(.pv-reorder):not(#pro-sub):not(#p-need) { display: none !important; }
#tab-pro[data-sub="costs"] > :not(.pv-costs):not(#pro-sub):not(#p-need) { display: none !important; }
#costs-start { margin-top: 1rem; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.golink { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; } .bd-miss { display: block; margin-top: 0.15rem; font-size: 0.66rem; color: var(--accent); }
/* Brand tables fit the card, no side scroll */
#brand-card .tblwrap { overflow-x: visible; }
#brand-table, #bitem-table { width: 100%; table-layout: fixed; font-size: 0.72rem; }
#brand-table th, #bitem-table th { white-space: normal; line-height: 1.2; font-size: 0.6rem; padding: 0.4rem 0.25rem; vertical-align: bottom; }
#brand-table td, #bitem-table td { padding: 0.38rem 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#brand-table th:first-child, #brand-table td:first-child { width: 13%; }
#bitem-table th:nth-child(1), #bitem-table td:nth-child(1) { width: 24%; } #bitem-table th:nth-child(2), #bitem-table td:nth-child(2) { width: 11%; }
#bitem-table td.idc { min-width: 0; max-width: none; white-space: nowrap; } #bitem-table td.idc .tw, #bitem-table td.idc .cp, #bitem-table td.idc a.amz { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
#bitem-table td.asin .cp { font-size: 0.66rem; padding: 0.1rem 0.3rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
@media (max-width: 760px) { #brand-card .tblwrap { overflow-x: auto; } #brand-table, #bitem-table { table-layout: auto; min-width: 720px; } }
#brand-card .tblwrap { overflow: visible !important; }
#bitem-table th, #bitem-table td, #brand-table th, #brand-table td { min-width: 0 !important; max-width: none !important; }
#bitem-table th:nth-child(1), #bitem-table td:nth-child(1) { width: 25% !important; } #bitem-table th:nth-child(2), #bitem-table td:nth-child(2) { width: 9% !important; }
#bitem-table th:nth-child(n+3), #bitem-table td:nth-child(n+3) { width: 7.33% !important; }
#brand-table th:nth-child(1), #brand-table td:nth-child(1) { width: 12% !important; } #brand-table th:nth-child(n+2), #brand-table td:nth-child(n+2) { width: 8% !important; }
@media (max-width: 760px) { #brand-card .tblwrap { overflow-x: auto !important; } }
#bitem-table td.oos, #brand-table td.oos { white-space: normal; overflow: visible; line-height: 1.15; }
#brand-table th:nth-child(1), #brand-table td:nth-child(1) { width: 11% !important; } #brand-table th:nth-child(n+2), #brand-table td:nth-child(n+2) { width: 7.4% !important; }
.bd-tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); } @media (max-width: 900px) { .bd-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Pro period tiles */
#per-card .sctl { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.pt-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.8rem; margin-top: 0.8rem; }
.pt { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.pt-h { padding: 0.8rem 0.9rem 0.7rem; background: color-mix(in srgb, var(--accent) 30%, var(--surface-2)); display: flex; flex-direction: column; gap: 0.15rem; }
.pt[data-k="yday"] .pt-h { background: color-mix(in srgb, var(--accent-4, #4f8ff7) 26%, var(--surface-2)); }
.pt[data-k="mtd"] .pt-h { background: color-mix(in srgb, #2dd4bf 22%, var(--surface-2)); }
.pt[data-k="lm"] .pt-h { background: color-mix(in srgb, var(--fg) 8%, var(--surface-2)); }
.pt.pace { border: 1px dashed #b7791f; } .pt.pace .pt-h { background: color-mix(in srgb, #b7791f 26%, var(--surface-2)); }
.pt-n { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; } .pt-n b { font-size: 1rem; }
.pt-tag { font: 600 0.6rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #fde68a; border: 1px solid #fde68a; border-radius: 999px; padding: 0.1rem 0.45rem; }
.pt-h small { font-size: 0.72rem; color: var(--muted); }
.pt-b { padding: 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.pt-k { font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pt-k i { font-style: normal; font-family: var(--mono); letter-spacing: 0; text-transform: none; margin-left: 0.35rem; } .pt-k i.up { color: #4ad39a; } .pt-k i.dn { color: #ef6f6f; }
.pt-s { display: flex; flex-direction: column; gap: 0.15rem; } .pt-s > b { font: 700 1.55rem var(--mono); }
.pt-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 0.5rem; }
.pt-c { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; } .pt-v { font: 600 0.92rem var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-v.pos { color: #4ad39a; } .pt-v.neg { color: #ef6f6f; } .pt-v.mut { color: var(--muted); font-family: var(--body); font-size: 0.78rem; }
.pt-note { margin: 0; font-size: 0.72rem; line-height: 1.4; color: var(--muted); flex: 1; }
.pt-det { display: flex; flex-direction: column; gap: 0.3rem; border-top: 1px solid var(--line); padding-top: 0.6rem; } .pt-d { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.76rem; } .pt-d span { color: var(--muted); } .pt-d b { font-family: var(--mono); }
.pt-more { width: 100%; min-height: 40px; }
@media (max-width: 1100px) { .pt-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.4rem; } .pt { flex: 0 0 min(88%, 320px); scroll-snap-align: start; }  /* of the row, not the screen: on a phone the card was wider than its row and its right edge was cut off */ }
@media (min-width: 1101px) { .per-jump { display: none; } }
.vhero small.ubrk { display: block; margin-top: 2px; font-size: 0.72rem; opacity: 0.75; }

.ro-ctl { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; } .ro-fname { color: var(--muted); font-size: 0.85rem; }
.ro-set { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-top: 0.75rem; font-size: 0.85rem; } .ro-set input { width: 5rem; margin-left: 0.3rem; } .ro-set label { color: var(--muted); }
#ro-table input.ro-q { width: 4rem; text-align: center; } #ro-table tr.ro-buy td:first-child { box-shadow: inset 3px 0 0 var(--accent-2); } #ro-table tr.ro-low td:first-child { box-shadow: inset 3px 0 0 var(--accent-3); } #ro-table td.l small { display: block; color: var(--muted); font-size: 0.72rem; }
/* Reorder Planner table fits the card: fixed columns, title wraps, compact cells */
#ro-table { width: 100%; table-layout: fixed; font-size: 0.84rem; }
#ro-table th, #ro-table td { padding: 0.45rem 0.3rem; overflow-wrap: anywhere; }
#ro-table th { font-size: 0.68rem; line-height: 1.2; white-space: normal; }
#ro-table th[data-col="0"] { width: 19%; } #ro-table th[data-col="1"], #ro-table th[data-col="2"] { width: 5.5%; }
#ro-table th[data-col="3"] { width: 8%; } #ro-table th[data-col="4"] { width: 7%; } #ro-table th[data-col="5"], #ro-table th[data-col="6"] { width: 7.5%; }
#ro-table th[data-col="7"] { width: 7.5%; } #ro-table th[data-col="8"] { width: 7%; } #ro-table th[data-col="9"] { width: 8%; } #ro-table th[data-col="10"] { width: 8%; } #ro-table th[data-col="11"] { width: 8.5%; }
#ro-table td.ro-tp { color: var(--good, #4ad39a); font-weight: 600; } #ro-table td.ro-nl { color: var(--muted); font-size: 0.75rem; }
#ro-table input.ro-q { width: 100%; max-width: 4rem; }
@media (max-width: 760px) { #ro-table { table-layout: auto; min-width: 760px; } }
/* Streamer Mode: Reorder Planner titles/ASINs and the supplier file name */
body.incog :is(#ro-rows td.l, #ro-fname) { position: relative; user-select: none; }
body.incog :is(#ro-rows td.l, #ro-fname), body.incog :is(#ro-rows td.l, #ro-fname) * { color: transparent !important; text-shadow: none !important; -webkit-text-fill-color: transparent; }
body.incog :is(#ro-rows td.l, #ro-fname)::after { content: ''; position: absolute; left: 0.3rem; right: 0.3rem; top: 50%; height: 0.8em; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(150, 150, 165, 0.32) 0 10px, rgba(150, 150, 165, 0.2) 10px 20px); pointer-events: none; }
body.incog #ro-fname { display: inline-block; min-width: 14rem; }
.ro-help { margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); } .ro-help summary { cursor: pointer; display: inline-block; padding: 0.25rem 0.7rem; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--text); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent); } .ro-help ul { margin: 0.5rem 0 0.3rem 1.1rem; } .ro-help li { margin: 0.2rem 0; } .ro-help b { color: var(--text); }
#ro-table td.l { white-space: normal !important; overflow: hidden; line-height: 1.25; }

/* Re-Source Finder */
#rs-table { width: 100%; table-layout: fixed; font-size: 0.84rem; }
#rs-table th, #rs-table td { padding: 0.45rem 0.3rem; overflow-wrap: anywhere; }
#rs-table th { font-size: 0.68rem; line-height: 1.2; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none; }  /* headers wrap at spaces only (Times Sold was breaking one letter per line) */
#rs-table th { width: 7%; } #rs-table th[data-col="0"] { width: 18%; } #rs-table th[data-col="1"] { width: 7.5%; } #rs-table th[data-col="2"] { width: 8%; } #rs-table th[data-col="10"] { width: 6.5%; } #rs-table th[data-col="11"] { width: 11%; }
#rs-table td.rs-sug { color: var(--accent); font-weight: 700; }
#rs-table td.l { white-space: normal !important; overflow: hidden; line-height: 1.25; } #rs-table td.l small { display: block; color: var(--muted); font-size: 0.7rem; margin-top: 0.15rem; }
#rs-table td.ro-tp { color: var(--good, #4ad39a); font-weight: 600; } #rs-table td.rs-pay { color: var(--accent); font-weight: 600; }
#rs-table td.rs-links { white-space: nowrap; } .btn.rs-go { display: inline-block; font-size: 0.72rem; padding: 0.2rem 0.5rem; margin: 0.1rem; text-decoration: none; }
.ro-set input[type="search"] { width: 14rem; } .rs-chk input { width: auto !important; margin: 0 0.3rem 0 0; vertical-align: middle; }
@media (max-width: 760px) { #rs-table { table-layout: auto; min-width: 820px; } }
body.incog #rs-rows td.l { position: relative; user-select: none; }
body.incog #rs-rows td.l, body.incog #rs-rows td.l * { color: transparent !important; text-shadow: none !important; -webkit-text-fill-color: transparent; }
body.incog #rs-rows td.l::after { content: ''; position: absolute; left: 0.3rem; right: 0.3rem; top: 50%; height: 0.8em; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(150, 150, 165, 0.32) 0 10px, rgba(150, 150, 165, 0.18) 10px 20px); }
/* Profit numbers: always green, red when negative (set by profitGreen in dashboard.js) */
.pg, .pg * { color: var(--good) !important; -webkit-text-fill-color: currentColor; }
.pn, .pn * { color: var(--bad) !important; }
body.incog .pg, body.incog .pn { -webkit-text-fill-color: unset; }

/* Planner tables: sortable + draggable columns like every table; copyable title + ASIN chip */
:is(#ro-table, #rs-table) td.idc .idt { display: block; } :is(#ro-table, #rs-table) td.idc .cp.idt { cursor: pointer; } :is(#ro-table, #rs-table) td.idc small { font-family: var(--mono); }
.cp.idchip { display: inline-block; padding: 0.05rem 0.4rem; margin-top: 0.15rem; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 7px; cursor: pointer; color: var(--text); }
:is(#ro-table, #rs-table) th { cursor: pointer; }

#rs-table td.rs-sug small.rs-old { display: block; font-size: 0.62rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; margin-top: 0.1rem; }

/* Headers wrap onto two lines instead of pushing columns off the card (e.g. Weeks Of / Stock) */
table.top thead th { white-space: normal !important; line-height: 1.15; vertical-align: bottom; }
/* "Out Of Stock" may wrap too, and if a screen is still too narrow the table scrolls sideways instead of cutting columns off */
table.top td.oos { white-space: normal !important; line-height: 1.15; }
.tblwrap:has(> table.top) { overflow-x: auto; }
/* Disposition drill-down: SKU chip sits small and centered next to the title */
.disp-list .cp.idchip { font-family: var(--mono); font-size: 0.68rem; padding: 0 0.35rem; margin: 0 0 0 0.35rem; vertical-align: middle; line-height: 1.45; color: var(--muted); }
/* At A Glance: long values (e.g. 4,698 / 5,059) wrap instead of being cut off with "…" */
.pt-c .pt-v { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; }
/* Gross / Net switch sits above the profit number it controls */
.s-prof:not([hidden]), .lv-stat:has(.pnet) { display: flex; flex-direction: column; align-items: flex-start; }
.s-prof .pnet, .lv-stat .pnet { order: -1; margin: 0 0 0.35rem; }
#s-prw{display:block;font-size:.78rem;line-height:1.35;margin:.35rem 0 0;opacity:.8}

#h-reset:disabled{opacity:.45;cursor:default}

#asp-trend{padding:.4rem .85rem;border:1.5px solid var(--accent);border-radius:10px;background:transparent;color:var(--text);font:inherit;font-size:.85rem;font-weight:600;cursor:pointer;margin-right:.5rem}#asp-trend[aria-pressed="true"]{background:var(--accent);color:var(--btn-fg)}

.pinach.lad{position:relative;display:inline-grid;grid-template-columns:2.6rem auto;align-items:center;gap:.7rem;margin:0 auto 0 0;padding:.55rem 1.15rem .55rem .8rem;border-radius:14px;font:inherit;color:var(--text);text-align:left;cursor:pointer;vertical-align:middle}
.pinach.lad:is([data-tier="Paper"],[data-tier="Cardboard"],[data-tier="Bronze"],[data-tier="Silver"],[data-tier="Gold"]){background:linear-gradient(135deg,color-mix(in srgb,var(--tier) 16%,var(--surface)),var(--surface))}
.pinach[hidden]{display:none}
.pinach .lad-main,.pinach .lad-top{position:relative;z-index:1}.pinach .lad-ico{position:relative;z-index:1}
.pinach .lad-top{display:grid;gap:.2rem;justify-items:start}.pinach .pa-name{font-size:.95rem;white-space:nowrap}
.mini-pin{margin-top:.45rem;padding:.25rem .55rem;border:1.5px solid var(--tier,var(--accent));border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:.72rem;font-weight:600;cursor:pointer}.mini-pin.on{background:var(--tier,var(--accent));color:#111}
html.pocket .mini-pin{display:none}

.fbadge:has(+ .pinach:not([hidden])){margin-right:0}
.prefs .fbadge:not([hidden]) + .pinach{margin-left:0}  /* pinned achievement sits right beside the founding badge, or takes its spot when there's no badge */

.mini-req{font-size:.74rem;color:var(--muted);margin-top:-.1rem}

.pinach .pa-req{font-size:.72rem;color:var(--muted);position:relative;z-index:1}

/* Founding badge and pinned achievement: same height and width, side by side */
.prefs .fbadge,.prefs .pinach.lad{box-sizing:border-box;height:4.75rem;margin-bottom:0}
.prefs .pinach.lad{padding:.35rem 1rem .35rem .8rem;border-width:1.5px;border-left-width:1.5px}
.pinach .lad-top{gap:.1rem}.pinach .lad-tier{font-size:.6rem;padding:0 .45rem}.pinach .pa-name{font-size:.92rem;line-height:1.15}.pinach .pa-req{font-size:.68rem;line-height:1.1}
.pinach .lad-ico{width:2.6rem;height:2.6rem}

/* Up to 3 pinned achievements beside the founding badge (dotted slots show where one can go) */
.prefs{flex-wrap:wrap}
.pins{display:flex;flex-wrap:wrap;gap:.6rem;margin-right:auto}.pins[hidden]{display:none}
.fbadge:has(+ .pins:not([hidden])){margin-right:0}
.prefs .fbadge,.prefs .pinach{box-sizing:border-box;height:4.75rem;min-width:16rem;max-width:20rem;margin:0}
.pins .pinach.lad{margin:0}
.pin-empty{display:inline-flex;align-items:center;gap:.7rem;padding:.4rem 1rem;border:2px dashed color-mix(in srgb,var(--accent) 55%,var(--line));border-radius:14px;background:transparent;color:var(--muted);font:inherit;text-align:left;cursor:pointer;opacity:.85}
.pin-empty:hover{opacity:1;border-color:var(--accent);color:var(--text)}
.pin-empty .pe-ico{font-size:1.4rem;filter:grayscale(.6);opacity:.8}.pin-empty .pe-txt{display:grid;gap:.15rem}.pin-empty b{font-size:.88rem}.pin-empty small{font-size:.7rem}
.mini-pin.full{opacity:.5;cursor:default}
html.pocket .pin-empty{display:none}

.prefs .fbadge,.prefs .pinach{width:17rem;min-width:0;max-width:none}.pinach .pa-name,.pinach .pa-req{display:block;max-width:12.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Header row: founding badge + 3 pins on the left in one line, theme and light/dark stacked on the right */
.prefs{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;align-items:center;column-gap:.6rem;row-gap:.4rem}
.prefs > .fbadge{grid-column:1;grid-row:1 / span 2}
.prefs > .pins{grid-column:2;grid-row:1 / span 2;margin:0;flex-wrap:wrap}
.prefs > :not(.fbadge):not(.pins){grid-column:3;justify-self:end}
.prefs > .fbadge:not([hidden]) ~ .pins{grid-column:2}
.prefs > .fbadge[hidden] ~ .pins{grid-column:1 / span 2}
.prefs .fbadge{width:12.5rem}
.prefs .pinach{width:15rem}
.pinach .pa-name,.pinach .pa-req{max-width:10.5rem}

.prefs .pinach.lad,.prefs .pinach.pin-empty{min-width:0;width:15rem}

.pinach .lad-tier{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:10.5rem}
html.demo .mini-pin{display:none}

/* Header row v3: founding badge + 3 pins share the row in four equal columns; with no badge the 3 pins sit centered */
.prefs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:center;column-gap:.6rem;row-gap:.4rem}
.prefs:has(> .fbadge[hidden]){grid-template-columns:1fr repeat(3,minmax(0,17rem)) 1fr auto}
.prefs > .pins{display:contents}.prefs > .pins[hidden]{display:none}
.prefs > .fbadge{grid-column:1;grid-row:1 / span 2}
.prefs > .pins > :nth-child(1){grid-column:2;grid-row:1 / span 2}.prefs > .pins > :nth-child(2){grid-column:3;grid-row:1 / span 2}.prefs > .pins > :nth-child(3){grid-column:4;grid-row:1 / span 2}
.prefs > :not(.fbadge):not(.pins){grid-column:-2 / -1;justify-self:end}
.prefs .fbadge,.prefs .pinach.lad,.prefs .pinach.pin-empty{width:auto;min-width:0;max-width:none}
.prefs .pinach.lad{grid-template-columns:2.6rem minmax(0,1fr)}.pinach .lad-main,.pinach .lad-top{min-width:0}
.pinach .pa-name,.pinach .pa-req,.pinach .lad-tier{max-width:100%}
.pin-empty .pe-txt{min-width:0}.pin-empty b,.pin-empty small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.prefs > .fbadge,.prefs > .pins > *{width:100% !important;justify-self:stretch;box-sizing:border-box}

/* Phones: badge and pins in a 2 x 2 grid, theme controls on their own line below */
@media (max-width: 760px) {
  .prefs, .prefs:has(> .fbadge[hidden]) { grid-template-columns: 1fr 1fr; }
  .prefs > .fbadge { grid-column: 1; grid-row: 1; }
  .prefs > .pins > :nth-child(1) { grid-column: 2; grid-row: 1; } .prefs > .pins > :nth-child(2) { grid-column: 1; grid-row: 2; } .prefs > .pins > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .prefs:has(> .fbadge[hidden]) > .pins > :nth-child(1) { grid-column: 1; grid-row: 1; } .prefs:has(> .fbadge[hidden]) > .pins > :nth-child(2) { grid-column: 2; grid-row: 1; } .prefs:has(> .fbadge[hidden]) > .pins > :nth-child(3) { grid-column: 1 / span 2; grid-row: 2; }
  .prefs > :not(.fbadge):not(.pins) { grid-column: auto; grid-row: 3; justify-self: start; }
  .prefs > #mode-btn { justify-self: end; }
  .prefs .fbadge, .prefs .pinach { height: 4rem; padding: .35rem .6rem; gap: .5rem; }
  .prefs .pinach.lad { grid-template-columns: 2.1rem minmax(0, 1fr); }
  .pinach .lad-ico { width: 2.1rem; height: 2.1rem; font-size: 1rem; }
  .pinach .lad-tier { font-size: .52rem; } .pinach .pa-name { font-size: .8rem; } .pinach .pa-req { display: none; }
  .fbadge .fb-medal svg { width: 2rem; height: auto; }
}

/* Storage Fees table: fits the card (no sideways scroll), titles on the left and allowed to wrap */
#sto-table{width:100%;table-layout:auto}#sto-table th:first-child,#sto-table td:first-child{width:50%;max-width:0;text-align:left}#sto-table th:not(:first-child),#sto-table td:not(:first-child){white-space:nowrap}
#sto-table td:first-child,#sto-table td:first-child *{white-space:normal;overflow-wrap:anywhere}
#sto-table td:first-child .tw{justify-content:flex-start;text-align:left}
#sto-card .tblwrap{overflow-x:hidden}

.sel.yr{margin-left:.45rem;min-width:6.5rem}

@media (max-width: 760px) {
  .prefs .fbadge, .prefs .pinach.lad, .prefs .pinach { height: 4rem; }  /* badge and pins exactly the same size on phones */
  #tabs { display: flex; width: 100%; box-sizing: border-box; } #tabs > button { flex: 1 1 0; min-width: 0; white-space: normal; }  /* the three tabs always fit the screen */
}

#t-live td.tcol .lv-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #t-live .lv-sku { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); } #t-live .lv-ids { font-size: 0.68rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

a.amz { color: inherit; text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--fg, #fff) 30%, transparent); cursor: pointer; transition: color .15s, border-color .15s; } a.amz:hover { color: var(--accent); border-bottom: 1px solid var(--accent); } a.amz:hover::after { content: ' ↗'; font-size: 0.8em; }
/* SKUs and ASINs: same hover as titles (hand cursor, accent color, solid underline) everywhere */
.cp { cursor: pointer; } .cp:hover, #t-live .lv-sku:hover { color: var(--accent) !important; border-bottom-color: var(--accent) !important; border-bottom-style: solid !important; } td.asin .cp:hover, .cp.idchip:hover, td.idc small .cp:last-child:not(:first-child):hover { border-color: var(--accent) !important; }
/* Longer achievement names wrap to a second line on the pinned badge instead of getting cut off */
.pinach .pa-name { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }

/* Phones: the quick numbers (Latest Day, Average Day, Best Day, Best Month) sit right under the totals, above the chart */
@media (max-width: 760px) { #s-body { display: flex; flex-direction: column; } #s-body .stop2 { order: 0; } #s-body #c-sales { order: 1; } #s-body #s-kpis { order: 2; margin: 0.6rem 0 0.2rem !important; } }  /* phones: totals, then the chart, then the four tiles */

/* Inbound Shipping (Pro) */
#inb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; } @media (max-width: 760px) { #inb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inb-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; } .inb-head > b { font-size: 0.95rem; } .inb-leg { font-weight: 500; font-size: 0.8rem; color: var(--muted); margin-left: 0.5rem; } .inb-leg i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; vertical-align: -1px; margin-left: 0.35rem; }
#inb-table td, #inb-table th { white-space: nowrap; }
#inb-card .tblwrap { max-height: 26rem; overflow-y: auto; } #inb-card .tblwrap thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2, #1a1a22); }
#inb-kpis .v.neg { color: #ef6f6f; } @media (max-width: 760px) { #inb-kpis .v { font-size: clamp(1rem, 4.9vw, 1.6rem) !important; white-space: nowrap; } }

/* Returns (Pro) */
#ret-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; } #ret-kpis .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #ret-kpis .v.neg { color: #ef6f6f; } #ret-kpis .v.pos { color: #4ad39a; }
@media (max-width: 760px) { #ret-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } #ret-kpis .v { font-size: clamp(1rem, 4.9vw, 1.6rem) !important; } }
.ret-two { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem; margin-top: 1rem; } @media (max-width: 760px) { .ret-two { grid-template-columns: 1fr; } }
.ret-h { font-weight: 700; font-size: 0.95rem; margin: 0 0 0.4rem; }
.ret-rsn { display: grid; grid-template-columns: minmax(0, 1fr) 3.2rem 3.2rem; gap: 0.35rem 0.6rem; align-items: center; font-size: 0.85rem; }
.ret-rsn .bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--grid, #26262e); margin: -0.15rem 0 0.35rem; overflow: hidden; } .ret-rsn .bar i { display: block; height: 100%; background: #ef6f6f; border-radius: 4px; }
.ret-rsn .pct, .ret-rsn .cnt { text-align: right; font-family: var(--mono); } .ret-rsn .cnt { color: var(--muted); }
#ret-card .tblwrap { max-height: 26rem; overflow-y: auto; } #ret-card .tblwrap thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2, #1a1a22); } #ret-table td, #ret-table th { white-space: nowrap; } #ret-table td.idc { max-width: 24rem; }
.rchip { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.75rem; border: 1.5px solid #ef6f6f88; color: #ef6f6f; } .rchip.ok { border-color: #4ad39a88; color: #4ad39a; }

.c-safe { display: block; margin-top: 0.3rem; font-size: 0.78rem; color: #4ad39a; }
/* Phones and the phone app: Sales (and Live Sales) open at the very top, before everything else */
@media (max-width: 760px) { #tab-basic { display: flex; flex-direction: column; } #tab-basic > .grid.sx { order: -1; margin-top: 0.5rem !important; } #tab-basic > #kpis { margin-top: 1rem !important; } }
/* Phones: the whole Sales card fits on one screen. Less grey text, tighter controls, compact tiles, a shorter chart */
@media (max-width: 760px) {
  #sales-card { padding: 0.85rem 0.85rem 0.7rem; }
  #sales-card #s-sub, #sales-card .s-prw { display: none !important; }
  #sales-card .shead { gap: 0.4rem; } #sales-card .shead h3 { margin: 0; }
  #sales-card .shead { flex-direction: row !important; align-items: flex-start; } #sales-card .shead > div:first-child { flex: 0 0 auto; }
  #sales-card .sctl { gap: 0.3rem !important; margin-top: 0 !important; justify-content: flex-end !important; }
  #sales-card .sctl select, #sales-card .sctl .sel { padding: 0.25rem 1.5rem 0.25rem 0.55rem !important; font-size: 0.78rem !important; min-height: 0 !important; height: auto !important; border-width: 1.5px !important; }
  #sales-card .tog button { padding: 0.18rem 0.6rem !important; font-size: 0.76rem !important; min-height: 0 !important; }
  #sales-card .tog { gap: 0.25rem !important; }
  #s-body .stop2 { margin-top: 0.35rem; row-gap: 0.35rem; }
  #s-body .stop2 small { font-size: 0.66rem !important; }
  #s-body #s-kpis { gap: 0.45rem !important; margin: 0.45rem 0 0.4rem !important; }
  #s-kpis .kpi { padding: 0.5rem 0.65rem !important; min-height: 0 !important; }
  #s-kpis .kpi .l { font-size: 0.62rem !important; letter-spacing: 0.06em; }
  #s-kpis .kpi .v { font-size: 1.25rem !important; margin: 0.15rem 0 0.1rem !important; white-space: nowrap; }
  #s-kpis .kpi .n { font-size: 0.68rem !important; line-height: 1.25; }
  #s-body #c-sales { height: 140px !important; }
}
/* Phones: the tabs already name the page, so the title block above them goes, leaving room for Sales */
@media (max-width: 760px) { #dash > .eyebrow, #dash > #d-title, #dash > #d-asof { display: none !important; } #dash > #tabs { margin-top: 0.4rem !important; } #tabs > button { padding-top: 0.45rem !important; padding-bottom: 0.45rem !important; } }
/* Phones: Live Sales slides sideways like the other tables, instead of squeezing every column in */
@media (max-width: 760px) { .lv-tbl { overflow-x: auto !important; -webkit-overflow-scrolling: touch; } .lv-tbl table { min-width: 34rem; } #t-live td.tcol { max-width: 15rem; min-width: 12rem; } }

/* Sales totals: when the card is narrow they wrap onto a second line instead of running into each other */
#s-body .stop2 { flex-wrap: wrap !important; column-gap: 1.6rem !important; row-gap: 0.45rem !important; } #s-body .stop2 > div { flex: 0 0 auto !important; max-width: 100%; }

/* Phone app sections: bottom bar replaces the three tabs */
.pnav { display: none; }
html.pocket #dash:not([hidden]) ~ .pnav, html.pocket .pnav { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg, #0b0b0c) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
html.pocket #dash[hidden] .pnav { display: none; }
.pnav button { border: 1.5px solid var(--line); border-radius: 14px; background: transparent; color: var(--muted); font: 600 0.72rem var(--body); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0.4rem 0.2rem; cursor: pointer; }
.pnav button i { font-style: normal; font-size: 1.15rem; line-height: 1; } .pnav button[aria-current="true"] { border-color: var(--accent); color: var(--fg); background: color-mix(in srgb, var(--accent) 14%, transparent); }
html.pocket #tabs { display: none !important; }
html.pocket body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
html.pocket[data-psec="today"] #tab-basic > :not(.grid.sx) { display: none !important; }
html.pocket[data-psec="inv"] #tab-basic > .grid.sx { display: none !important; }
html.pocket #btn-pull-top, html.pocket #connect-pull, html.pocket #ap-amz-pull { display: none !important; }  /* phone app: no pulling from Amazon; that happens on its own and from the computer */
/* Phones: number tiles inside every card sit two to a row and stay compact (Removals, Storage, Inbound, Returns and the rest) */
@media (max-width: 760px) {
  .card .kpis { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.45rem !important; }
  .card .kpis > .kpi { padding: 0.5rem 0.65rem !important; min-height: 0 !important; }
  .card .kpis > .kpi .l { font-size: 0.6rem !important; letter-spacing: 0.06em; line-height: 1.2; }
  .card .kpis > .kpi .v { font-size: clamp(0.95rem, 4.6vw, 1.25rem) !important; margin: 0.15rem 0 0.1rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card .kpis > .kpi .n { font-size: 0.64rem !important; line-height: 1.25; }
}
@media (max-width: 760px) { #ret-kpis .kpi:last-child .v { white-space: normal !important; font-size: 0.95rem !important; line-height: 1.2; } }

/* Phone app, Starter members: three sections (no Profit), and the Pro teasers inside Basic cards stay out */
.pnav.pn3 { grid-template-columns: repeat(3, 1fr) !important; } .pnav button[hidden] { display: none !important; }
html.pocket.starter .lv-stat.locked, html.pocket.starter #tab-pro-lock { display: none !important; }
/* Phone app, Pro members: the Pro tiles at the top of Profit wear the badge too */
html.pocket:not(.starter) #p-kpis::before { content: 'Pro'; grid-column: 1 / -1; justify-self: start; font: 700 0.62rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.08rem 0.45rem; border-radius: 999px; color: #4ad39a; background: color-mix(in srgb, #4ad39a 14%, transparent); border: 1px solid color-mix(in srgb, #4ad39a 45%, transparent); }
/* Inventory Basic order: top tiles, then Sales + Live Sales, then Health Score + Effort, then everything else (phones put Sales first, above the tiles) */
#tab-basic { display: flex; flex-direction: column; } #tab-basic > * { order: 3; } #tab-basic > #kpis { order: 0; } #tab-basic > .grid.sx { order: 1; } #tab-basic > .grid.hx { order: 2; }
@media (max-width: 760px) { #tab-basic > .grid.sx { order: -1; } }
/* Phone app dropdowns: a small menu under the button (pocket-select.js) */
html.pocket select.sel { pointer-events: none; }
.psel { position: fixed; z-index: 90; overflow-y: auto; background: var(--surface, #15151b); border: 2px solid var(--accent); border-radius: 12px; padding: 4px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 14px 36px rgba(0,0,0,0.5); overscroll-behavior: contain; }
.psel-opt { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 8px; color: var(--fg); font: 600 0.88rem var(--body); padding: 0.55rem 0.75rem; cursor: pointer; white-space: nowrap; }
.psel-opt[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--fg); } .psel-opt:active { background: color-mix(in srgb, var(--accent) 14%, transparent); }
/* Sales card (computer too): no grey explainer text; the title takes only its own width so the controls fit in one or two rows and the totals sit right under them */
#sales-card #s-sub, #sales-card .s-prw { display: none !important; }
#sales-card > .shead { align-items: flex-start; flex-wrap: nowrap; } #sales-card > .shead > div:first-child { flex: 0 0 auto; } #sales-card > .shead > .sctl { flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; min-width: 0; }
#sales-card #s-body .stop2 { margin-top: 0.4rem; }

/* Live Sales while today's orders load (connected accounts) */
#live-card.lv-wait { position: relative; } #live-card.lv-wait > * { opacity: 0.25; } #live-card.lv-wait::after { content: 'Loading Today\'s Orders…'; position: absolute; inset: 0; display: grid; place-items: center; font: 600 0.95rem var(--body); color: var(--muted); }

/* Computer: smaller Sales tiles (four across when there's room) and a taller chart */
@media (min-width: 761px) {
  #s-body #c-sales { height: 270px; }
  #s-body #s-kpis { gap: 0.6rem !important; margin-top: 0.6rem !important; }
  #s-kpis .kpi { padding: 0.65rem 0.85rem !important; min-height: 0 !important; }
  #s-kpis .kpi .l { font-size: 0.68rem !important; letter-spacing: 0.06em; }
  #s-kpis .kpi .v { font-size: 1.35rem !important; margin: 0.2rem 0 0.1rem !important; white-space: nowrap; }
  #s-kpis .kpi .n { font-size: 0.74rem !important; }
}
@container (min-width: 600px) { #s-body #s-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
/* Sales totals: sales, profit, then the two comparisons stacked in one small column, so they never spill onto a second row */
#s-body .stop2 > .s-cmp { display: flex; flex-direction: column; gap: 0.25rem; justify-content: flex-end; }
#s-body .stop2 > .s-cmp > div { display: flex; align-items: baseline; gap: 0.45rem; white-space: nowrap; }
#s-body .stop2 > .s-cmp b { font-size: 1.05rem !important; } #s-body .stop2 > .s-cmp small { display: inline !important; }
/* Phones: Average Sale Price type buttons in an even two-column grid, every button the same width; the top numbers sit side by side */
@media (max-width: 760px) {
  #asp-chips { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 0.6rem !important; align-items: stretch !important; }
  #asp-chips .asp-col { align-items: stretch; text-align: center; min-width: 0; }
  #asp-chips .asp-col > b { font-size: 1.15rem !important; } #asp-chips .asp-col > small { font-size: 0.68rem; }
  #asp-chips .asp-chip { width: 100%; justify-content: center; padding: 0.35rem 0.5rem; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #asp-top { display: grid !important; grid-template-columns: auto 1fr; align-items: end; gap: 0.4rem 1.2rem !important; margin-bottom: 0.6rem; }
  #asp-top > div { margin: 0 !important; flex: 0 0 auto !important; width: auto !important; } #asp-top .big b { font-size: 1.7rem !important; } #asp-top b { font-size: 1.25rem !important; }
  #asp-card #c-asp { height: 200px !important; }
}

/* Live Sales: FBA / FBM chip on each order */
.lv-fc { display: inline-block; margin-right: 0.4rem; padding: 0.05rem 0.4rem; border-radius: 999px; border: 1px solid currentColor; font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: 1px; }
.lv-fc.fba { color: #f5a623; } .lv-fc.fbm { color: #5f9bf7; }
.lv-tbl tr.lv-ship td:last-child .lv-fc.fba { color: #f5a623; } .lv-tbl tr.lv-ship td:last-child .lv-fc.fbm { color: #5f9bf7; }
.card.fbm-note { border-style: dashed; align-self: start; } .card.fbm-note h3 { font-size: 1rem; }

/* Clicked a pinned badge: the achievement it points to glows for a moment */
.mini.pin-hit, .lad.pin-hit { animation: pinhit 2.4s ease-out; }
@keyframes pinhit { 0%, 35% { box-shadow: 0 0 0 3px var(--tier, #ffd166), 0 0 26px 6px color-mix(in srgb, var(--tier, #ffd166) 60%, transparent); transform: scale(1.06); } 100% { box-shadow: 0 0 0 0 transparent; transform: none; } }

.rng-sel { display: inline-flex; }

#inb-card a.inb-link { font-family: var(--mono); } #inb-card .inb-cp { opacity: 0.7; font-size: 0.9em; } #inb-card .inb-cp:hover { opacity: 1; }

/* Sales Rank By Category */
table.rk tr.rk-row { cursor: pointer; } table.rk tr.rk-row:hover td { background: color-mix(in srgb, var(--accent) 8%, transparent); } table.rk tr.rk-row.on td { background: color-mix(in srgb, var(--accent) 16%, transparent); } table.rk tr.rk-row.on td:first-child { box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.rk-dist { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); } .rk-dist .shead { margin-bottom: 0.6rem; }
table.rk th:first-child, table.rk td:first-child { text-align: left; font-family: var(--body); } table.rk th:nth-child(2), table.rk td:nth-child(2) { text-align: right; } #rk-bars.pm .vl b { color: var(--good); } #rank-card.owner-only > .shead .sctl { margin-top: 1.1rem; }
/* Supplier At A Glance: its own time-frame dropdown and an All Suppliers total row */
.sup-bar-row.sup-gbar { position: static; backdrop-filter: none; background: none; border-bottom: 0; margin: 1rem 0 0.4rem; padding: 0; } .sup-gbar b { font-size: 1rem; margin-right: 0.4rem; }
#sup-glance-table tfoot td { border-top: 2px solid var(--line); font-weight: 700; } #sup-glance-table tfoot td:first-child { font-family: var(--body); }
.lv-cogs { display: block; color: var(--fg); } .lv-cogsv, .lv-stat > span .lv-cogsv, .lv-stat span.lv-cogsv { color: var(--fg) !important; }
/* Sales card: COGS Recovered sits next to the profit, lined up with its number */
.stop2 .s-prof.s-cogs b { color: var(--fg); } .s-cogs:not([hidden]) { padding-top: calc(1.55rem + 0.35rem); } .s-cgcov { display: block; white-space: normal; color: #e3b341; }  /* coverage on its own line under the label */
.s-pc { display: flex; flex-wrap: nowrap; gap: clamp(1rem, 3cqi, 2.2rem); align-items: flex-start; min-width: 0; }  /* COGS Recovered always sits right of the profit */

/* Main store tag (Amazon.ca sellers) */
.home-tag { margin-left: .6rem; padding: .15rem .55rem; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: .78rem; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.home-box { margin-top: .9rem; padding: .75rem .85rem; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 10px; }
/* Sales card: totals, profit, COGS and the two comparisons stay on one line (the comparisons shrink instead of dropping below); phones still stack */
@container (min-width: 640px) { #s-body .stop2 { flex-wrap: nowrap !important; } #s-body .stop2 > .s-cmp { flex: 0 1 auto !important; min-width: 0; } #s-body .stop2 > .s-cmp > div { min-width: 0; } #s-body .stop2 > .s-cmp small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } }
/* Phone: Live Sales shows lots of orders before you have to scroll inside it (most of the screen tall) */
html.pocket .lv-tbl, html.pocket .grid.sx .lv-tbl { max-height: 78vh !important; height: auto !important; min-height: 0 !important; }
/* Sales Rank By Category: each category is an outlined button */
.rk-pick { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--fg); font-weight: 600; cursor: pointer; transition: background .15s; white-space: nowrap; }
.rk-chev { font-size: .8em; color: var(--accent); }
tr.rk-row { cursor: pointer; } tr.rk-row:hover .rk-pick { background: color-mix(in srgb, var(--accent) 18%, transparent); }
tr.rk-row.on .rk-pick { background: color-mix(in srgb, var(--accent) 28%, transparent); border-width: 2px; }
#rem-table th { white-space: nowrap !important; }  /* Removals table: one-line headers */
#rem-table th:first-child, #rem-table td:first-child { text-align: left !important; } #rem-table th:not(:first-child), #rem-table td:not(:first-child) { text-align: right !important; }  /* month on the left, every number lined up on the right, headers over their numbers */
#rem-table th:not(:first-child) > *, #rem-table th:not(:first-child) { justify-content: flex-end; }
#rk-table th { white-space: nowrap; }
/* Inventory Value + Inventory Age, side by side and compact */
.va-pair { align-items: stretch; } .va-pair > .card { min-width: 0; }
.va-pair .vhero b { font-size: 1.6rem !important; } .va-pair .cs { font-size: 0.8rem; }
.va-pair .b3s, .va-pair #b-age { font-size: 0.86rem; } .va-pair .bar, .va-pair .brow { margin: 0.25rem 0 !important; }
.vsel { position: relative; z-index: 3; } .vhero { pointer-events: none; }  /* the big total's box ran over the Showing dropdown and swallowed its clicks */
/* Re-Source: "Include Items With No Cost Entered" as an outlined, easy-to-spot toggle */
label.rs-chk { display: inline-flex !important; align-items: center; gap: 0.55rem; padding: 0.45rem 0.9rem; border: 2px solid var(--accent); border-radius: 999px; color: var(--fg) !important; font-weight: 700; cursor: pointer; white-space: nowrap; }
label.rs-chk input { width: 1.15rem !important; height: 1.15rem; accent-color: var(--accent); margin: 0; }
label.rs-chk:has(input:checked) { background: color-mix(in srgb, var(--accent) 22%, transparent); }
label.rs-chk:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* Where Your Books Sold: units, sales and profit side by side after each bar */
.rk3 { grid-template-columns: minmax(6.5rem, 8.5rem) 1fr 6.2rem 6.6rem 6.6rem; } .rk3h span { font-size: 0.7rem; color: var(--muted); text-align: right; text-transform: none; letter-spacing: 0.02em; } .rk3 .vl b.pos { color: var(--good); } .rk3 .vl b.neg { color: var(--bad, #ef6b6b); }
@media (max-width: 640px) { .rk3 { grid-template-columns: 1fr auto auto auto; column-gap: 0.7rem; } .rk3 .tr { grid-column: 1 / -1; grid-row: 2; } .rk3h span:nth-child(2) { display: none; } .rk3 .vl b { font-size: 0.9rem; } .rk3 .vl small { display: none; } }

/* a highlighted column (Inbound Shipping's Total): a soft accent band running down the whole column */
table .colhi { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 2px 0 0 color-mix(in srgb, var(--accent) 45%, transparent), inset -2px 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }

/* Inbound shipment status pills: one color per stage */
.stp { display: inline-block; padding: 0.12rem 0.6rem; border-radius: 999px; font-family: var(--body); font-size: 0.8rem; font-weight: 600; border: 1.5px solid currentColor; background: color-mix(in srgb, currentColor 14%, transparent); color: #9aa4ab; }
.stp.st-working { color: #9aa4ab; } .stp.st-ready_to_ship { color: #c9b6ff; } .stp.st-shipped { color: #6aa8ff; } .stp.st-in_transit { color: #f5b942; } .stp.st-delivered, .stp.st-checked_in { color: #c58cf2; } .stp.st-receiving { color: #2fd3b4; } .stp.st-closed { color: #5ad17a; } .stp.st-cancelled, .stp.st-deleted, .stp.st-error { color: #ef6b6b; }

/* Inbound Shipping table: easier to scan — banded rows, a hover highlight, roomier rows, the Total in the accent color */
#inb-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--text, #fff) 3%, transparent); }
#inb-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
#inb-table tbody td { padding-top: 0.62rem; padding-bottom: 0.62rem; }
#inb-table tbody td.colhi { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
#inb-table tbody tr:hover td.colhi { background: color-mix(in srgb, var(--accent) 20%, transparent); }

/* Fulfillment Center Report Card */
#fc-table td, #fc-table th { white-space: nowrap; } #fc-table td.bad { color: #ef6b6b; } #fc-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--text, #fff) 3%, transparent); } #fc-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.fcg { display: inline-block; min-width: 1.7rem; text-align: center; padding: 0.1rem 0.5rem; border-radius: 999px; font-weight: 700; border: 1.5px solid currentColor; background: color-mix(in srgb, currentColor 14%, transparent); }
.fcg-a { color: #5ad17a; } .fcg-b { color: #2fd3b4; } .fcg-c { color: #f5b942; } .fcg-d { color: #f08a4b; } .fcg-f { color: #ef6b6b; }

/* Reimbursements card */
#rb-table td, #rb-table th { white-space: nowrap; } #rb-table td.pos { color: var(--good); } #rb-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--text, #fff) 3%, transparent); } #rb-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
#rb-kpis .v.pos { color: var(--good); } #rb-kpis .v.warn { color: #f5b942; }

/* Reimbursements list: folded by default, scrolls inside the card instead of running off the right edge */
.rb-list { margin-top: 0.9rem; } .rb-list > summary { display: inline-block; cursor: pointer; list-style: none; padding: 0.4rem 0.9rem; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 9px; font-weight: 600; font-size: 0.85rem; }
.rb-list > summary::-webkit-details-marker { display: none; } .rb-list > summary::before { content: '▸ '; color: var(--accent); } .rb-list[open] > summary::before { content: '▾ '; }
#rb-card .tblwrap { max-height: 26rem; overflow: auto; } #rb-card .tblwrap thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2, #1a1a22); }
#rb-table td.rb-t { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
#rb-table { font-size: 0.76rem; } #rb-table th, #rb-table td { padding: 0.42rem 0.4rem; } #rb-table td.rb-t { max-width: 12rem; } #rb-card .tblwrap { padding-right: 0.6rem; }

/* Reimbursements list: paged, never scrolls sideways (long titles shorten instead) */
#rb-card .tblwrap { max-height: 26rem !important; overflow-x: hidden !important; overflow-y: auto !important; padding-right: 0; }  /* scrolls down inside the card like Inbound Shipping, never sideways */
#rb-table { table-layout: fixed; width: 100%; } #rb-table td, #rb-table th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rb-table th:nth-child(1) { width: 15%; } #rb-table th:nth-child(2) { width: 25%; } #rb-table th:nth-child(3) { width: 19%; } #rb-table th:nth-child(4) { width: 16%; } #rb-table th:nth-child(5) { width: 7%; } #rb-table th:nth-child(6) { width: 8%; } #rb-table th:nth-child(7) { width: 10%; }
#rb-table td.rb-t { max-width: none; }
.rb-pager { display: flex; gap: 0.6rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); } .rb-pager .sel { margin-left: 0.4rem; }

#fc-card .tblwrap { max-height: 26rem; overflow-y: auto; overflow-x: hidden; } #fc-card .tblwrap thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2, #1a1a22); }
#fc-table th:first-child, #fc-table td:first-child { text-align: left !important; } #fc-table th:nth-child(2), #fc-table td:nth-child(2) { text-align: right; font-family: var(--mono); }

/* Inbound shipments: Status filter */
.inbf { position: relative; margin-top: 0.9rem; display: flex; gap: 0.5rem; }
#inb-fbtn { background: transparent; border: 1.5px solid var(--line, #3a3f44); color: var(--text, #ededf0); border-radius: 0.6rem; padding: 0.4rem 0.9rem; font-weight: 600; cursor: pointer; }
#inb-fbtn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.inbf-menu { position: fixed; z-index: 1000; overflow-y: auto; min-width: 14rem; background: var(--panel, #1a1d20); border: 1.5px solid var(--line, #3a3f44); border-radius: 0.7rem; padding: 0.3rem; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.inbf-opt { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: 0.45rem; cursor: pointer; font-size: 0.92rem; }
.inbf-opt:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.inbf-opt:first-child { border-bottom: 1px solid var(--line, #3a3f44); border-radius: 0.45rem 0.45rem 0 0; margin-bottom: 0.2rem; font-weight: 700; }
.inbf-opt input { width: 1rem; height: 1rem; accent-color: var(--accent); }
.inbf-opt em { margin-left: auto; font-style: normal; color: var(--muted, #9aa4ab); font-family: var(--mono); font-size: 0.8rem; }

/* Best & Worst Items (not Top 10), Inventory By Disposition, Sales By Brand: scroll down inside the card with the headers pinned (like Inbound Shipping) */
.tblwrap:has(#p-lose), .tblwrap:has(> #top-table), .tblwrap:has(> #t-disp), .tblwrap:has(> #brand-table), .tblwrap:has(> #bitem-table) { max-height: 30rem; overflow-y: auto; }
.tblwrap:has(#p-lose) thead th, .tblwrap:has(> #top-table) thead th, .tblwrap:has(> #t-disp) thead th, .tblwrap:has(> #brand-table) thead th, .tblwrap:has(> #bitem-table) thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2, #1a1a22); }
tr.pg-off { display: none !important; }
#brand-card .tblwrap { overflow-x: hidden !important; overflow-y: auto !important; max-height: 30rem; }  /* scroll down inside the card; rows never spill over the page buttons */

/* ---- Premium (owner test) ---- */
#tabs .prem-tabbtn { border-color: #ffd166 !important; }
.prem-tag { font: 700 0.6rem var(--mono); letter-spacing: 0.05em; background: #ffd166; color: #1a1300; border-radius: 999px; padding: 0.1rem 0.45rem; margin-left: 0.35rem; vertical-align: middle; }
.prem-chip { font: 700 0.62rem var(--mono); letter-spacing: 0.05em; background: #ffd166; color: #1a1300; border-radius: 999px; padding: 0.12rem 0.5rem; margin-left: 0.4rem; vertical-align: middle; text-transform: uppercase; }
#tab-prem { margin-top: 1rem; }
.prem-sub { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.prem-sub .btn[aria-pressed="true"] { background: #ffd166; color: #1a1300; border-color: #ffd166; }
#tab-prem .kpis-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin: 0.4rem 0 1rem; }
.prem-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; align-items: start; }
.prem-h4 { margin: 0 0 0.6rem; font-size: 0.95rem; } .prem-h5 { margin: 0.8rem 0 0.45rem; font: 700 0.7rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #ffd166; } #tp-abars { margin-bottom: 0.4rem; }
.prem-form { display: grid; grid-template-columns: 9.5rem minmax(0, 1.4fr) minmax(0, 1.2fr) 7rem 9rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: end; margin-bottom: 0.6rem; }
#mi-form.prem-form { grid-template-columns: 9.5rem minmax(0, 2fr) 7rem auto; } #iv-form.prem-form { grid-template-columns: 9.5rem minmax(0, 2fr) 9rem 12rem 8rem minmax(0, 1.2fr) auto; } #iv-card { border-color: #b39dff; }
.prem-form label { display: grid; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.prem-form input, .prem-form select { width: 100%; min-height: 40px; }
.prem-inl { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.prem-file { cursor: pointer; }
.prem-cat { min-height: 32px; padding: 0.2rem 0.4rem; font-size: 0.8rem; max-width: 13rem; }
.prem-end { min-height: 32px; padding: 0.2rem 0.4rem; font-size: 0.8rem; }
#tab-prem td.lft { text-align: left; font-family: var(--body); } #tab-prem table td:first-child { font-family: var(--body); }
#tab-prem .muted { color: var(--muted); }
#tab-prem .tblwrap { max-height: 30rem; overflow-y: auto; }
#tab-prem .tblwrap thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2, #1a1a22); }
.prem-wide { overflow-x: hidden !important; overflow-y: auto !important; max-height: 34rem !important; } #pl-t { width: 100%; table-layout: fixed; } #pl-t thead th { position: sticky; top: 0; z-index: 2; background: var(--surface, #16181b); } #pl-t thead th:first-child { z-index: 3; } #pl-t td:first-child, #pl-t th:first-child { min-width: 0 !important; width: 17%; white-space: normal !important; } #pl-t td:first-child, #pl-t th:first-child { width: 15% !important; } #pl-t td:not(:first-child), #pl-t th:not(:first-child) { width: auto !important; padding-left: 0.15rem !important; padding-right: 0.25rem !important; font-size: 0.72rem !important; overflow: hidden; text-overflow: ellipsis; } #pl-t td:first-child { font-size: 0.74rem; } @media (max-width: 760px) { .prem-wide { overflow-x: auto !important; } #pl-t { table-layout: auto; width: max-content; min-width: 100%; } }  /* desktop: all 14 columns fit, scroll down inside the card; phones still slide sideways */ #pl-t td:first-child { text-align: left; } #pl-t td:not(:first-child), #pl-t th:not(:first-child) { text-align: right; } #pl-t td, #pl-t th { white-space: nowrap; font-size: 0.78rem; padding: 0.4rem 0.45rem; }
tr.prem-hd td { font: 700 0.72rem var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: #ffd166; text-align: left !important; background: color-mix(in srgb, #ffd166 6%, transparent); }
tr.prem-subrow td { color: var(--muted); }
tr.prem-subrow td.neg { color: #ef6f6f; } tr.prem-subrow td.pos { color: #4ad39a; }
#tp-amz { max-width: 640px; } #tp-amz td { padding: 0.45rem 0.7rem; } #tp-amz td:last-child { text-align: right; } #c-tp-lg .lg { margin-top: 0.4rem; }
#tab-prem .kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { #tab-prem .kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { #tab-prem .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prem-2 { grid-template-columns: 1fr; } .prem-form, #mi-form.prem-form, #iv-form.prem-form { grid-template-columns: 1fr 1fr; } }

/* Losing Money: Cost Recovered stacked (dollars over percent), right aligned */
td.crec { text-align: right; white-space: nowrap; } td.crec span { display: block; } td.crec small { display: block; font-size: 0.75em; opacity: 0.8; }
th.nw { white-space: nowrap !important; }

/* Inbound Sell-Through bars (like Go2Lister batches) */
#inb-table td.stt { min-width: 0; width: 1%; text-align: left; }
#inb-table th, #inb-table td { padding-left: 0.4rem; padding-right: 0.4rem; }
#inb-table th { white-space: normal; }
#inb-table td .stp { padding-left: 0.5rem; padding-right: 0.5rem; white-space: nowrap; }
.sttb { margin: 2px 0 5px; font-size: 0.68rem; color: var(--muted, #a9adb8); white-space: nowrap; }
.sttb span { display: block; }
.sttb i { display: block; height: 4px; border-radius: 3px; margin-top: 3px; min-width: 2px; }

#inb-table th .thbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; border-bottom: 1px solid var(--accent); }
.stt-menu { min-width: 210px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.stt-menu[hidden] { display: none; }
.stt-menu button { text-align: left; background: transparent; border: 1px solid var(--line, #2a2f38); border-radius: 8px; padding: 7px 10px; color: var(--text, #ededf0); font-size: 0.8rem; text-transform: none; letter-spacing: 0; cursor: pointer; }
.stt-menu button:hover { border-color: var(--accent); }

/* Inventory Purchases: type + time frame + year side by side, flush right */
#iv-card > .shead > .sctl { flex: none !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: flex-end !important; margin-left: auto !important; width: auto !important; }

/* Premium P&L: easier to scan */
#pl-t { border-collapse: separate; border-spacing: 0; }
#pl-t tbody tr:not(.prem-hd):not(.tt):nth-child(even) td { background: rgba(255, 255, 255, 0.025); }
#pl-t tbody tr:not(.prem-hd):hover td { background: rgba(94, 234, 212, 0.07); }
#pl-t td, #pl-t th { padding: 0.55rem 0.7rem; font-variant-numeric: tabular-nums; }
#pl-t td:first-child, #pl-t th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface, #16181b); min-width: 13rem; }
#pl-t tr.prem-hd td { padding-top: 1rem; border-top: 1px solid var(--line, #2a2f38); }
#pl-t tr.tt td { border-top: 1.5px solid var(--line, #3a3f44); font-weight: 700; }
#pl-t td.pl-z { color: rgba(160, 165, 178, 0.35); }
#pl-t td:last-child, #pl-t th:last-child { border-left: 1px solid var(--line, #2a2f38); }
/* Premium edit dialog */
.prem-modal { position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.prem-modal[hidden] { display: none; }
.prem-mbox { width: min(560px, 100%); padding: 1.2rem 1.3rem; }
.prem-mbox .prem-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 0.8rem; }
.prem-mbox .prem-form label { display: flex; flex-direction: column; gap: 0.25rem; }
.prem-mbtn { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 0.6rem; }
/* Streamer Mode: Premium names (suppliers, vendors, income sources, trips) */
body.incog :is(#iv-all td:nth-child(2), #ex-all td:nth-child(2), #ex-rec td:nth-child(1), #oi-all td:nth-child(2), #mi-all td:nth-child(2)) { position: relative; user-select: none; }
body.incog :is(#iv-all td:nth-child(2), #ex-all td:nth-child(2), #ex-rec td:nth-child(1), #oi-all td:nth-child(2), #mi-all td:nth-child(2)), body.incog :is(#iv-all td:nth-child(2), #ex-all td:nth-child(2), #ex-rec td:nth-child(1), #oi-all td:nth-child(2), #mi-all td:nth-child(2)) * { color: transparent !important; text-shadow: none !important; -webkit-text-fill-color: transparent; }
body.incog :is(#iv-all td:nth-child(2), #ex-all td:nth-child(2), #ex-rec td:nth-child(1), #oi-all td:nth-child(2), #mi-all td:nth-child(2))::after { content: ''; position: absolute; left: 0.3rem; right: 0.3rem; top: 50%; height: 0.8em; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(150, 150, 165, 0.32) 0 10px, rgba(150, 150, 165, 0.2) 10px 20px); pointer-events: none; }
body.incog #prem-edit #pe-v { color: transparent; -webkit-text-fill-color: transparent; }

#tab-prem [data-del].arm{border-color:#ef6f6f;color:#ef6f6f;background:rgba(239,111,111,.12)}
/* Premium tables: never a side scroll on desktop. Supplier / vendor text wraps instead, and the type dropdown keeps a sane width. */
@media (min-width: 761px) { #tab-prem .tblwrap:not(.prem-wide) { overflow-x: hidden !important; } #tab-prem table.top { width: 100%; max-width: 100%; } #tab-prem table.top:not(#rs-table):not(#ro-table) td.lft:nth-child(2), #tab-prem table.top:not(#rs-table):not(#ro-table) th:nth-child(2) { white-space: normal; width: auto; }  /* Re-Order and Re-Source keep their own column widths (Times Sold was collapsing to nothing) */ #tab-prem select.prem-cat { max-width: 11rem; } }
/* Re-Order table: a column can't be dragged down to nothing (the Sold 30D header was wrapping one letter per line), and titles sit left like the data */
#ro-table th { min-width: 4.6rem !important; text-align: left !important; overflow-wrap: normal; } #ro-table th[data-col="0"] { min-width: 12rem !important; }
/* Additional Income bars open to show their sources */
/* Nov 17 2026: each Additional Income row is an outlined button, so it is obvious it opens */
.oi-click > .b3 { cursor: pointer; border-radius: 10px; padding: 0.55rem 0.75rem; margin: 0.4rem 0; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line)); transition: background .15s, border-color .15s; } .oi-click > .b3:hover, .oi-click > .b3:focus-visible { background: var(--surface-2); border-color: var(--accent); outline: none; } .oi-click > .b3.open { background: var(--surface-2); border-color: var(--accent); }
.oi-sub { display: grid; gap: 0.3rem; margin: 0.15rem 0 0.55rem 1.4rem; padding-left: 0.8rem; border-left: 2px solid var(--surface-2); } .oi-sub .b3 { cursor: default; } .oi-sub .b3:hover { background: transparent; } .oi-sub .b3 .nm > span { font-weight: 500; font-size: 0.84rem; } .oi-sub .b3 .tr { height: 0.4rem; } .oi-sub .b3 .vl b { font-size: 0.9rem; }
/* Totals By Supplier / Vendor panels on Premium lists */
.sup-wrap { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin: 0.4rem 0 0.5rem; } .sup-wrap .btn.on { background: var(--surface-2); }
.sup-bars { margin: 0 0 0.9rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 10px; max-height: 22rem; overflow-y: auto; } .sup-bars .b3 { cursor: pointer; border-radius: 6px; padding: 0.15rem 0.3rem; margin: 0 -0.3rem; } .sup-bars .b3:hover, .sup-bars .b3.on { background: var(--surface-2); }
/* Recurring bills table: keep it inside the card, no side scroll */
#ex-rec .prem-end { width: 7.9rem; padding: 0.25rem 0.3rem; } #ex-rec .prem-dd { width: 3.1rem; padding: 0.25rem 0.3rem; text-align: center; } #ex-rec td.acts { white-space: nowrap; } #ex-rec td.acts .btn { margin: 0; } #ex-rec select.prem-cat { max-width: 8.2rem; } #ex-rec td:first-child { white-space: nowrap; } #ex-rec th:nth-child(2), #ex-rec td:nth-child(2) { width: 9.5rem; }
/* due-date closeness tags (Recurring and Coming Up) */
.due-tag { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border: 1px solid; border-radius: 999px; font-family: var(--mono); font-size: 0.68rem; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.due-ok { color: var(--accent); border-color: var(--accent); } .due-soon { color: #e3b341; border-color: #e3b341; } .due-late { color: #f85149; border-color: #f85149; }
.sup-bars .sup-credits { margin: 0.9rem 0 0.4rem; padding-top: 0.6rem; border-top: 1px dashed var(--line); } .sup-bars .bars .b3 .vl b { color: var(--muted); }
/* Profit Vs. Cash walk-through */
.pc-walk-wrap { margin: 0.9rem 0 0.4rem; } .pc-walk { width: 100%; border-collapse: collapse; max-width: 46rem; } .pc-walk td { padding: 0.42rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; } .pc-walk td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; font-weight: 600; } .pc-walk td b { display: block; font-weight: 600; } .pc-walk td small { display: block; font-size: 0.72rem; line-height: 1.3; margin-top: 0.1rem; } .pc-walk tr.tot td { background: var(--surface-2); border-bottom: 2px solid var(--line); } .pc-walk tr.tot td:last-child { font-size: 1.05rem; } .pc-walk td.pos { color: var(--ok, #8fdc6a); } .pc-walk td.neg { color: #f28b82; }
.sup-q { min-width: 12rem; } .sup-q.on { border-color: var(--accent); }
/* toggle rows inside card headers wrap instead of running past the card edge on narrow screens */
.shead .sctl .tog { flex: 0 1 auto; max-width: 100%; min-width: 0; }
/* Operating vs Tax view (Premium) */
.prem-view { display: inline-flex; margin-left: auto; border: 1.5px solid var(--accent, #2fd3b5); border-radius: 999px; overflow: hidden; align-self: center; }
.prem-view button { font: 700 0.78rem inherit; font-family: inherit; color: var(--fg, #ededf0); background: transparent; border: 0; padding: 0.4rem 0.95rem; cursor: pointer; }
.prem-view button[aria-pressed="true"] { background: var(--accent, #2fd3b5); color: #0b0b0e; }
.prem-view.locked { opacity: 0.45; } .prem-view.locked button { cursor: default; }
.wo-note { border-left: 3px solid #b39dff; padding-left: 0.7rem; } .wo-note b { color: #b39dff; }
tr.wo-row td { opacity: 0.45; } tr.wo-row td.neg { text-decoration: line-through; text-decoration-color: #b39dff; }
.wo-pill { display: inline-block; margin-left: 0.3rem; padding: 0.02rem 0.45rem; border: 1px solid #b39dff; color: #b39dff; border-radius: 999px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.wo-btn { min-width: 9.5rem; } .wo-btn.on { border-color: #b39dff; color: #b39dff; }
@media (max-width: 700px) { .prem-view { margin-left: 0; } }
/* Your Books: one card, task buttons */
.bk-tasks { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0 0.8rem; }
.bk-tasks .btn[aria-pressed="true"] { background: #ffd166; color: #1a1300; border-color: #ffd166; }
.bk-cnt { display: inline-block; margin-left: 0.4rem; padding: 0.02rem 0.5rem; border-radius: 999px; background: #ef6f6f; color: #fff; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; vertical-align: middle; }
.bk-tasks .btn[aria-pressed="true"] .bk-cnt { background: #1a1300; color: #ffd166; }
.bk-ctl { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 0.6rem 0 0.4rem; } .bk-ctl .bk-right { margin-left: auto; text-align: right; }
.bk-q { min-width: 13rem; } #bk-card .sctl { flex-wrap: wrap; } #bk-card .bk-pane > .sub:first-child { margin-top: 0; }
@media (max-width: 700px) { .bk-ctl .bk-right { margin-left: 0; width: 100%; text-align: left; } .bk-q { min-width: 0; width: 100%; } }
#wo-t th { white-space: nowrap; } #wo-t td:first-child, #wo-t td:nth-child(2) { width: 1%; white-space: nowrap; }
tr.pg-row td { text-align: center; padding: 0.6rem; } tr.pg-row .btn[disabled] { opacity: 0.35; cursor: default; } tr.pg-row .muted { margin: 0 0.6rem; }
/* Badge effects: animated tiers get their own compositor layer, and the two main-thread-heavy effects (hue rotation, pulsing text shadow) are dropped so the shine and glow stay smooth */
.mini[data-tier="Platinum"].on, .mini[data-tier="Diamond"].on, .mini[data-tier="Legendary"].on, .mini[data-tier="Founder"].on, .lad[data-tier="Platinum"], .lad[data-tier="Diamond"], .lad[data-tier="Legendary"], .lad[data-tier="Founder"] { will-change: background-position; transform: translateZ(0); backface-visibility: hidden; }
.mini[data-tier="Legendary"].on .mini-ico, .lad[data-tier="Legendary"] .lad-ico, .pips i[data-tier="Legendary"].on { animation: cfFlare 1.8s ease-in-out infinite; will-change: box-shadow; }
.lad[data-tier="Legendary"] .lad-tier, .mini[data-tier="Legendary"].on .mini-tier, .lad[data-tier="Legendary"] .lad-top b { animation: shine 3s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mini, .lad, .mini *, .lad *, .pips i { animation: none !important; } }
/* Premium accent: Founder-badge gold instead of flat yellow */
:root { --gold: linear-gradient(135deg, #b8892a 0%, #ffd166 45%, #fff0b8 60%, #e3b341 100%); }
.prem-tag, .prem-chip { background: var(--gold); color: #1a1300; }
.prem-sub .btn[aria-pressed="true"], .bk-tasks .btn[aria-pressed="true"] { background: var(--gold); color: #1a1300; border-color: #e3b341; }
.prem-sub .btn[aria-pressed="true"] .bk-cnt, .bk-tasks .btn[aria-pressed="true"] .bk-cnt { background: #1a1300; color: #ffd166; }

/* Fill From SKU: the pieces of the example SKU, each with a role picker */
.sk-pieces { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; } .sk-piece { display: grid; gap: 0.25rem; justify-items: center; padding: 0.45rem 0.55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); } .sk-piece code { font-family: var(--mono); font-size: 0.85rem; color: var(--fg); } .sk-piece select { font-size: 0.72rem; padding: 0.15rem 0.3rem; } .sk-piece[data-role=sup] { border-color: var(--accent); } .sk-piece[data-role=cost] { border-color: var(--accent-2); } .sk-piece small { font-family: var(--mono); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
#sk-box code { font-family: var(--mono); font-size: 0.8rem; background: var(--surface-2); padding: 0.05rem 0.3rem; border-radius: 4px; }
#sk-box.owner-only::before { content: none; }  /* the Fill From SKU button already carries the Owner tag */
#rs-table th:nth-child(2), #rs-table td:nth-child(2) { text-align: right; }  /* Times Sold is a number: right-aligned like its neighbours */
table.pi input.sk-will { border-color: var(--accent-2); border-style: dashed; } table.pi input.sk-will::placeholder { color: var(--accent-2); opacity: 1; }  /* Fill From SKU preview: what the rule would put here */

/* Locked Premium tab: the teaser Starter and Pro members see */
.prem-lock { max-width: 1040px; margin: 1rem auto 0; border: 2px solid #e3b341; box-shadow: 0 0 28px rgba(227, 179, 65, 0.22); padding: 1.6rem 1.8rem; }
.prem-lock .pl-top { display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; align-items: flex-start; } .prem-lock .pl-top > div:first-child { flex: 1 1 28rem; min-width: 0; }
.prem-lock h2 { margin: 0.6rem 0 0.3rem; font-size: 1.55rem; line-height: 1.2; text-wrap: balance; } .prem-lock .pl-top .cs { margin: 0; max-width: 62ch; }
.prem-lock .pl-price { text-align: right; min-width: 14rem; display: grid; gap: 0.35rem; justify-items: end; } .prem-lock .pl-big { font-size: 2.2rem; font-weight: 800; line-height: 1; } .prem-lock .pl-big small { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.prem-lock .pl-price .btn.gold { background: var(--gold) !important; color: #1a1300 !important; border: 1.5px solid #e3b341 !important; font-weight: 800; padding: 0.6rem 1.2rem; margin-top: 0.3rem; }
.prem-lock .pl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; margin-top: 1.3rem; } .prem-lock .pl-grid .card.kpi { padding: 0.9rem 1rem; display: grid; gap: 0.25rem; align-content: start; } .prem-lock .pl-grid b { font-size: 0.95rem; } .prem-lock .pl-grid .cs { margin: 0; font-size: 0.8rem; }
.prem-lock .pl-foot { margin: 1rem 0 0; }
@media (max-width: 760px) { .prem-lock { padding: 1.1rem 1rem; } .prem-lock .pl-price { text-align: left; justify-items: start; min-width: 0; } }
.akpi.kpi-go { cursor: pointer; } .akpi.kpi-go:hover { border-color: var(--accent); }
.mini.flash, .lad.flash { animation: achFlash 2.6s ease-out; } @keyframes achFlash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: none; } }
#tabs .prem-tabbtn[aria-selected="true"], #tabs .prem-tabbtn[aria-selected="true"]:hover { background: var(--gold); color: #1a1300; border-color: #e3b341 !important; box-shadow: 0 2px 0 #8a6a1c; } #tabs .prem-tabbtn[aria-selected="true"] .prem-tag { background: #1a1300; color: #ffd166; }  /* the Premium tab goes gold when selected, like its sub-tabs */

/* Achievement ladders, scaled down (Feda, Oct 26): tighter cards, smaller icons, shorter pin buttons */
.lad-det { grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.8rem), 1fr)); gap: 0.4rem; }
.mini { padding: 0.5rem 0.4rem 0.45rem; border-radius: 7px; }
.mini-ico { width: 1.9rem; height: 1.9rem; font-size: 0.95rem; margin-bottom: 0.25rem; }
.mini-tier { font-size: 0.54rem; } .mini-name { font-size: 0.72rem; line-height: 1.15; } .mini-req, .mini-when { font-size: 0.64rem; line-height: 1.2; }
.mini-bar { height: 0.24rem; margin-top: 0.3rem; }
.mini-pin { margin-top: 0.35rem; padding: 0.18rem 0.45rem; font-size: 0.64rem; border-width: 1px; }
/* Re-Order: titles on the supplier list you have never carried */
#ro-table tr.ro-new td:first-child { box-shadow: inset 3px 0 0 var(--accent-2); } .ro-newchip { margin-left: 0.4rem; } #ro-kpis .kpi.ro-newk { border-color: var(--accent-2); } #ro-kpis .kpi.ro-newk .v { color: var(--accent-2); }
/* Streamer Mode on the newer Pro tables: Reimbursements (item + SKU), Returns (title / SKU), Sales By Brand items (title + ASIN) */
body.incog :is(#rb-rows td:nth-child(2), #rb-rows td:nth-child(3), #ret-rows td:nth-child(1), #t-bitems td:nth-child(1), #t-bitems td:nth-child(2)) { position: relative; user-select: none; }
body.incog :is(#rb-rows td:nth-child(2), #rb-rows td:nth-child(3), #ret-rows td:nth-child(1), #t-bitems td:nth-child(1), #t-bitems td:nth-child(2)), body.incog :is(#rb-rows td:nth-child(2), #rb-rows td:nth-child(3), #ret-rows td:nth-child(1), #t-bitems td:nth-child(1), #t-bitems td:nth-child(2)) * { color: transparent !important; text-shadow: none !important; -webkit-text-fill-color: transparent; }
body.incog :is(#rb-rows td:nth-child(2), #rb-rows td:nth-child(3), #ret-rows td:nth-child(1), #t-bitems td:nth-child(1), #t-bitems td:nth-child(2))::after { content: ''; position: absolute; left: 0.3rem; right: 0.3rem; top: 50%; height: 0.8em; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(150, 150, 165, 0.32) 0 10px, rgba(150, 150, 165, 0.2) 10px 20px); pointer-events: none; }
body.incog :is(#rb-rows, #ret-rows, #t-bitems) img { visibility: hidden !important; }
body.incog :is(#rb-rows td:nth-child(2), #rb-rows td:nth-child(3), #ret-rows td:nth-child(1), #t-bitems td:nth-child(1), #t-bitems td:nth-child(2)) :is(button, a, .cp) { pointer-events: none; }
/* Streamer Mode: supplier and scanner names (the Supplier Scorecards table, its picker, each scorecard's name, the supplier column on Per-Item Costs and the Re-Source rows) */
body.incog :is(#sup-glance-table td:first-child, .sup-n b, #pi-rows td:nth-child(3), #p-supcard .tw, #p-supcard .asin) { position: relative; user-select: none; }
body.incog :is(#sup-glance-table td:first-child, .sup-n b, #p-supcard .tw, #p-supcard .asin), body.incog :is(#sup-glance-table td:first-child, .sup-n b, #p-supcard .tw, #p-supcard .asin) * { color: transparent !important; text-shadow: none !important; -webkit-text-fill-color: transparent; }
body.incog :is(#sup-glance-table td:first-child, .sup-n b, #p-supcard .tw, #p-supcard .asin)::after { content: ''; position: absolute; left: 0.3rem; right: 0.3rem; top: 50%; height: 0.8em; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(150, 150, 165, 0.32) 0 10px, rgba(150, 150, 165, 0.2) 10px 20px); pointer-events: none; }
body.incog .sup-bar-row select[aria-label="Supplier"], body.incog #pi-rows td:nth-child(3) input, body.incog #pi-sup { color: transparent !important; -webkit-text-fill-color: transparent; background-image: repeating-linear-gradient(90deg, rgba(150, 150, 165, 0.22) 0 10px, rgba(150, 150, 165, 0.12) 10px 20px); background-size: 60% 0.8em; background-repeat: no-repeat; background-position: 0.6rem center; }
body.incog #pi-rows td:nth-child(3) input::placeholder { color: transparent; }
body.incog :is(#p-supcard .tw, #p-supcard .asin) :is(a, .cp) { pointer-events: none; }
/* Streamer Mode: brand names on Sales By Brand (what you source is part of the secret) */
body.incog #t-brand td:first-child { position: relative; user-select: none; }
body.incog #t-brand td:first-child, body.incog #t-brand td:first-child * { color: transparent !important; text-shadow: none !important; -webkit-text-fill-color: transparent; }
body.incog #t-brand td:first-child::after { content: ''; position: absolute; left: 0.3rem; right: 0.3rem; top: 50%; height: 0.8em; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(150, 150, 165, 0.32) 0 10px, rgba(150, 150, 165, 0.2) 10px 20px); pointer-events: none; }
body.incog #pi-rows td:nth-child(3) input.brand::placeholder { color: transparent; }
/* Streamer Mode: vendor / payee names in the Premium books (one-card list, upcoming bills, recurring bills table, the "Next Up" line) and the brand-detail heading */
body.incog :is(#bk-all td:nth-child(2), #tp-up td:nth-child(2), #rc-up td:nth-child(2), #bd-name, .card:has(#tp-up) .shead .sub, #rc-upsub) { position: relative; user-select: none; }
body.incog :is(#bk-all td:nth-child(2), #tp-up td:nth-child(2), #rc-up td:nth-child(2), #bd-name, .card:has(#tp-up) .shead .sub, #rc-upsub), body.incog :is(#bk-all td:nth-child(2), #tp-up td:nth-child(2), #rc-up td:nth-child(2), #bd-name, .card:has(#tp-up) .shead .sub, #rc-upsub) * { color: transparent !important; text-shadow: none !important; -webkit-text-fill-color: transparent; }
body.incog :is(#bk-all td:nth-child(2), #tp-up td:nth-child(2), #rc-up td:nth-child(2), #bd-name, .card:has(#tp-up) .shead .sub, #rc-upsub)::after { content: ''; position: absolute; left: 0.3rem; right: 0.3rem; top: 50%; height: 0.8em; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(150, 150, 165, 0.32) 0 10px, rgba(150, 150, 165, 0.2) 10px 20px); pointer-events: none; }
body.incog :is(.card:has(#tp-up) .shead .sub, #rc-upsub)::after { right: 40%; }
body.incog #sk-ex, body.incog .sk-piece code, body.incog #sk-prev { color: transparent !important; -webkit-text-fill-color: transparent; }  /* Fill From SKU: the example SKU and its pieces */

/* ---------- Card organizer drawer (owner test, Oct 27 2026): a ☰ button opens a panel over the page; tabs stay as they are ---------- */
html.pocket #sidenav, html.pocket .sn-burger, html.pocket .sn-shade { display: none !important; }
.sn-hide { display: none !important; }
.sn-flash { outline: 2px solid var(--accent); outline-offset: 4px; transition: outline-color 0.5s; }
.sn-burger { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); top: 12px; z-index: 45; width: 2.4rem; height: 2.4rem; border-radius: 10px; border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--surface) 92%, #000); color: var(--fg); font: inherit; font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.sn-burger:hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); } html.sn-open .sn-burger { display: none; }
.sn-shade { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 46; opacity: 0; pointer-events: none; transition: opacity 0.2s; } html.sn-open .sn-shade { opacity: 1; pointer-events: auto; }
#sidenav { position: fixed; left: 0; top: 0; bottom: 0; width: min(18rem, 86vw); background: color-mix(in srgb, var(--surface) 94%, #000); border-right: 1.5px solid var(--accent); display: flex; flex-direction: column; z-index: 47; transform: translateX(-105%); transition: transform 0.22s; box-shadow: 0 0 40px rgba(0, 0, 0, 0.5); } html.sn-open #sidenav { transform: none; }
.sn-brand { display: flex; align-items: flex-start; gap: 0.6rem; padding: 1rem 2.6rem 0.8rem 0.9rem; border-bottom: 1px solid var(--line); } .sn-lg { width: 2rem; height: 2rem; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-weight: 900; color: #0b0e14; flex: none; } .sn-brand b { font-size: 0.95rem; display: block; } .sn-brand small { color: var(--muted); font-size: 0.66rem; display: block; line-height: 1.3; }
.sn-guide { display: block; margin: 0.7rem 0.9rem 0.2rem; padding: 0.55rem 0.8rem; border: 1.5px solid var(--accent); border-radius: 10px; background: var(--surface); color: var(--fg); text-decoration: none; position: relative; } .sn-guide:hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); } .sn-guide b { display: block; font-size: 0.9rem; } .sn-guide small { color: var(--muted); font-size: 0.7rem; } .sn-guide > .newchip { position: absolute; top: 0.5rem; right: 0.6rem; }
.sn-close { position: absolute; right: 0.6rem; top: 0.7rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--surface); color: var(--fg); display: grid; place-items: center; cursor: pointer; font: inherit; font-size: 1rem; line-height: 1; }
.sn-list { flex: 1; overflow-y: auto; padding: 0.5rem 0.45rem 1rem; display: flex; flex-direction: column; gap: 0.1rem; }
.sn-sec { display: flex; align-items: center; gap: 0.15rem; border-radius: 9px; border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); margin-top: 0.55rem; } .sn-sec:not(.sn-sec2) .sn-lab { font-size: 1rem; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; font-size: 0.9rem; } .sn-sec.gold:not(.on) { border-color: color-mix(in srgb, #e3b341 45%, var(--line)); background: color-mix(in srgb, #e3b341 8%, var(--surface)); }
.sn-sec2 { margin-left: 0.9rem; margin-top: 0.3rem; border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); } .sn-sec2 .sn-lab { color: var(--fg); font-weight: 700; } .sn-sec.gold .sn-sec2, .sn-sec2.gold { border-color: color-mix(in srgb, #e3b341 35%, var(--line)); }
.sn-sec.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); } .sn-sec.gold.on { background: color-mix(in srgb, #e3b341 22%, transparent); border-color: #e3b341; }
.sn-chev { flex: none; width: 1.5rem; height: 1.9rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.75rem; }
.sn-lab { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem 0.4rem 0; border: 0; background: transparent; color: var(--fg); cursor: pointer; font: inherit; font-size: 0.86rem; font-weight: 700; text-align: left; } .sn-sec2 .sn-lab { font-size: 0.8rem; font-weight: 600; }
.sn-lab i { font-style: normal; width: 1.2rem; text-align: center; flex: none; } .sn-lab .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sn-lab .cnt { font-family: var(--mono); font-size: 0.6rem; color: var(--muted); font-style: normal; flex: none; }
.sn-cards { display: flex; flex-direction: column; gap: 0.05rem; margin: 0.1rem 0 0.3rem 1.55rem; border-left: 1.5px solid var(--line); padding-left: 0.35rem; } .sn-cards2 { margin-left: 2.5rem; }
.sn-card { display: flex; align-items: center; gap: 0.25rem; border-radius: 7px; } .sn-card:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sn-eye { flex: none; width: 1.6rem; height: 1.6rem; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 6px; background: transparent; color: var(--fg); cursor: pointer; font: inherit; font-size: 0.72rem; display: grid; place-items: center; } .sn-card.off .sn-eye { color: var(--muted); border-style: dashed; }
.sn-cn { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); cursor: pointer; font: inherit; font-size: 0.76rem; text-align: left; padding: 0.3rem 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sn-card.off .sn-cn { color: var(--muted); text-decoration: line-through; } .sn-card.nodata .sn-cn { opacity: 0.55; }
.sn-showall { margin: 0.25rem 0 0.2rem 0; padding: 0.25rem 0.6rem; border: 1.5px solid var(--accent); border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer; font: inherit; font-size: 0.68rem; font-weight: 600; align-self: flex-start; } .sn-all { margin: 0.8rem 0.3rem 0; align-self: stretch; }
/* organizer tiles */
.sn-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.35rem; margin: 0.2rem 0 0.3rem 1.2rem; } .sn-tiles2 { margin-left: 2.1rem; }
.sn-tile { position: relative; display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.3rem; align-items: center; padding: 0.45rem 1.9rem 0.45rem 0.45rem; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 9px; background: var(--surface); cursor: grab; min-height: 2.6rem; user-select: none; }
.sn-tile:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); } .sn-tile.dragging { opacity: 0.4; } .sn-tile.drop-b { outline: 2px dashed var(--accent); outline-offset: 2px; }
.sn-kstrip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.25rem; margin: 0.2rem 0 0.35rem 1.2rem; } .sn-ktile { border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 7px; background: var(--surface); padding: 0.3rem 0.15rem; font-size: 0.55rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; text-align: center; cursor: grab; user-select: none; min-width: 0; overflow: hidden; } .sn-ktile span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .sn-ktile:hover { border-color: var(--accent); } .sn-ktile.dragging { opacity: 0.4; }
.sn-showall .sn-yes, .sn-showall .sn-no { text-decoration: underline; cursor: pointer; padding: 0 0.2rem; } .sn-showall .sn-yes { color: var(--accent); } .sn-undo { border-color: var(--accent) !important; }
.sn-burger > .newchip { position: absolute; top: -0.45rem; right: -0.6rem; }
#sk-auto[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: 0 0 0 1px var(--accent); }
input.brand.cat { border-style: dashed; opacity: 0.85; cursor: default; }
#rv-on[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: 0 0 0 1px var(--accent); } .rv-table code { font-size: 0.8rem; }
.sk-allm { padding: 0.15rem 0.5rem; font-size: 0.74rem; vertical-align: baseline; }
.sn-tile.full { grid-column: 1 / -1; } .sn-tile.full .sn-tn::after { content: ' · Full Width'; font-weight: 500; color: var(--muted); font-size: 0.72em; } .sn-tiles.drag-full .sn-tile.half:not(.dragging), .sn-tiles.drag-half .sn-tile.full:not(.dragging) { opacity: 0.35; cursor: not-allowed; }
.sn-tile.off { cursor: default; border-style: dashed; opacity: 0.6; } .sn-tile.off .sn-tn { text-decoration: line-through; color: var(--muted); } .sn-tile.nodata .sn-tn { opacity: 0.6; } .sn-nd { font-weight: 500; font-size: 0.72em; color: var(--muted); }
.sn-tg { width: 1.4rem; height: 1.4rem; border-radius: 6px; background: color-mix(in srgb, var(--accent) 22%, transparent); display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: var(--accent); } .sn-tile.off .sn-tg { background: color-mix(in srgb, var(--muted) 20%, transparent); color: var(--muted); }
.sn-tn { font-size: 0.7rem; font-weight: 600; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sn-tile .sn-eye { position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); width: 1.4rem; height: 1.4rem; font-size: 0.65rem; }
.sn-secacts { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0 0 0.3rem 1.2rem; }

/* Live Sales item photos */
#t-live td.has-img { position: relative; padding-left: 2.9rem; } #t-live .lv-img { position: absolute; left: 0.3rem; top: 50%; transform: translateY(-50%); width: 2.3rem; height: 2.3rem; object-fit: contain; border-radius: 6px; background: #fff; }
#t-live td:first-child, #t-live td:last-child { white-space: normal; } #t-live td:last-child .lv-fc { display: inline-block; margin-bottom: 0.15rem; }  /* "Yesterday 9:12 PM" and "FBA Shipped" stack, so the title gets the room */
#t-live .lv-noimg { display: block; background: var(--surface-2, #1a1a22); border: 1px solid var(--line, #2a2a35); box-sizing: border-box; }

/* Sales By Age When Sold */
#t-age .age-row { cursor: pointer; } #t-age .age-row:hover td { background: color-mix(in srgb, var(--accent) 7%, transparent); } #t-age .age-row.open td { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.age-bar { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--fg) 8%, transparent); overflow: hidden; display: inline-block; width: calc(100% - 3rem); vertical-align: middle; } .age-bar i { display: block; height: 100%; border-radius: 5px; background: var(--accent); } #t-age .old .age-bar i { background: #ff8c5a; } #t-age td.tcol small { display: inline-block; width: 2.6rem; text-align: right; margin-left: 0.3rem; color: var(--muted, #9a9aae); }
.kpis-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 0.4rem 0 1rem; }
@media (max-width: 640px) { .kpis-3 { grid-template-columns: minmax(0, 1fr); } }

/* Share a card as a picture */
.sh-btn { display: inline-flex; align-items: center; gap: 0.3rem; font: inherit; font-size: 0.8rem; line-height: 1; padding: 0.38rem 0.6rem; border-radius: 8px; border: 1.5px solid var(--accent); background: transparent; color: var(--fg); cursor: pointer; white-space: nowrap; }
.sh-btn:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); } .sh-btn .newchip { margin-left: 0.25rem; }
.sh-row { display: flex; align-items: center; gap: 0.55rem; flex-wrap: nowrap; } .sh-row > h3.sh-h { margin-top: 0; white-space: nowrap; } .sh-row > .sh-btn { flex: none; padding: 0.28rem 0.5rem; font-size: 0.75rem; margin-bottom: 0.35rem; }
.sh-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.9rem; padding-top: 0.6rem; border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); font-size: 0.8rem; color: var(--muted, #9a9aae); } .sh-foot b { color: var(--fg); font-weight: 600; }
.sh-ov { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.62); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sh-ov[hidden] { display: none; } .sh-box { width: min(760px, 100%); max-height: 100%; overflow: auto; background: var(--surface, #16161d); border: 1.5px solid var(--accent); border-radius: 14px; padding: 1rem 1.1rem; }
.sh-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; } .sh-top h3 { margin: 0; } .sh-hide { display: flex; align-items: center; gap: 0.5rem; margin: 0.7rem 0; font-size: 0.92rem; cursor: pointer; }
.sh-prev { border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 10px; padding: 0.5rem; min-height: 8rem; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--fg) 4%, transparent); } .sh-prev img { max-width: 100%; max-height: 55vh; border-radius: 6px; display: block; }
.sh-acts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; } .sh-msg { margin: 0.5rem 0 0; min-height: 1.2em; }
html.pocket .sh-btn span { display: none; } html.pocket .sh-btn { padding: 0.38rem 0.45rem; }
.card.sh-host { position: relative; } .card.sh-host > .sh-btn { position: absolute; top: 1rem; right: 1rem; z-index: 2; padding: 0.28rem 0.5rem; font-size: 0.75rem; } .card.sh-host > h3, .card.sh-host > .shead > div:first-child > h3 { padding-right: 6rem; }
/* Pinned badges (top of the page): the glow pulses through a GPU layer (opacity) instead of repainting the shadow, so it stays smooth while the page is busy redrawing */
.pins .lad[data-tier="Platinum"] .lad-ico, .pins .lad[data-tier="Diamond"] .lad-ico { animation: none; position: relative; box-shadow: 0 0 6px 0 color-mix(in srgb, var(--tier) 45%, transparent); }
.pins .lad[data-tier="Platinum"] .lad-ico::before, .pins .lad[data-tier="Diamond"] .lad-ico::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 16px 3px color-mix(in srgb, var(--tier) 70%, transparent); opacity: 0; will-change: opacity; animation: pinGlow 2.4s ease-in-out infinite; }
@keyframes pinGlow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }


/* FC Report Card: Mine/Everyone toggle and both dropdowns on one row */
#fc-card .sctl { flex-wrap: nowrap; align-items: center; gap: .5rem; flex: none; } #fc-card .sctl .sel { width: auto; min-width: 8.5rem; } #fc-card .shead { gap: 1rem; } @media (max-width: 760px) { #fc-card .sctl { flex-wrap: wrap; } }
/* Oct 29 2026 — Sales card top row: Month To Date, profit, COGS and the change badges start on one line (the Gross/Net switch sits above the profit,
   so the others get the same room on top). Badges sit at the right; the arrow and percent never shrink, the "Vs. ..." text wraps to a second line
   when space is tight (never "…"), and only when even that can't fit does the badge block move under the totals. */
@container (min-width: 640px) {
  #s-body .stop2:has(#s-prb:not([hidden])) { align-items: flex-start; }
  #s-body .stop2:has(#s-prb:not([hidden])) > .big, #s-body .stop2:has(#s-prb:not([hidden])) > .s-cmp { padding-top: calc(1.55rem + 0.35rem); }
  #s-body .stop2 { flex-wrap: wrap !important; column-gap: clamp(0.9rem, 2.4cqi, 1.6rem) !important; }
  #s-body .stop2 .big b, #s-body .stop2 .s-prof b { font-size: clamp(1.05rem, 3cqi, 1.6rem) !important; }
  #s-body .stop2 > .s-pc { flex: 0 0 auto !important; gap: clamp(0.9rem, 2.4cqi, 1.6rem); }
  #s-body .stop2 > .s-cmp { flex: 1 1 9rem !important; max-width: max-content; min-width: 0; margin-left: auto; justify-content: flex-start; }
  #s-body .stop2 > .s-cmp > div { min-width: 0; white-space: normal !important; }
  #s-body .stop2 > .s-cmp b { flex: 0 0 auto; font-size: 1rem !important; }
  #s-body .stop2 > .s-cmp small { min-width: 0; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.2; }
}
/* Live Sales: Today's US / CA-MX split sits on its own line, so the header text on the left keeps its room */
#live-card #lv-today-l { white-space: pre-line; } #live-card #lv-sub { min-width: 10rem; }
/* Phones / narrow cards (Oct 29 2026): COGS Recovered sits up top beside Month To Date, the change percentages right under it, the profit on the left */
@container (max-width: 639.98px) {
  #s-body .stop2 { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, auto); grid-template-areas: "big cogs" "prof cmp"; column-gap: 1rem !important; row-gap: 0.6rem !important; align-items: start; }
  #s-body .stop2 > .s-pc { display: contents; }
  #s-body .stop2 > .big { grid-area: big; align-self: start; padding-top: 0 !important; }
  #s-body #s-prb { grid-area: prof; min-width: 0; }
  #s-body #s-cgb { grid-area: cogs; padding-top: 0 !important; align-self: start; text-align: right; } #s-body #s-cgb > * { text-align: right; margin-left: auto; }
  #s-body .stop2 > .s-cmp { grid-area: cmp; max-width: 11.5rem; justify-self: end; padding-top: calc(1.55rem + 0.35rem); }
  #s-body .stop2 > .s-cmp > div { white-space: normal !important; justify-content: flex-end; }
  #s-body .stop2 > .s-cmp small { white-space: normal !important; overflow: visible !important; line-height: 1.2; }
  #s-body #s-prb small { white-space: normal !important; overflow: visible !important; }
  #s-body:not(:has(#s-cgb:not([hidden]))) .stop2 { grid-template-areas: "big cmp" "prof cmp"; }
}
/* Share · social size (phone-width picture for Instagram and friends) */
.card.sh-soc svg { max-width: 100%; height: auto; }
.card.sh-soc button:not([aria-pressed="true"]) { display: none !important; }
.card.sh-soc select { appearance: none; -webkit-appearance: none; background-image: none !important; padding-right: 0.7rem !important; }
.card.sh-soc .tblwrap { max-height: none !important; overflow: visible !important; }
.card.sh-soc .sh-x { display: none !important; }
.card.sh-soc .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .card.sh-soc .kpi .v { font-size: 1.35rem !important; white-space: nowrap; }
/* Phone app · six sections (FLAGS.pnav6) */
html.pocket.pn6[data-psec="inv"] #tab-basic > [data-pn="sales"] { display: none !important; }
html.pocket.pn6[data-psec="sales"] #tab-basic > :not([data-pn="sales"]) { display: none !important; }
html.pocket.pn6[data-psec="pro"] #tab-pro > [data-pn="amz"] { display: none !important; }
html.pocket.pn6[data-psec="amz"] #tab-pro > :not([data-pn="amz"]) { display: none !important; }
html.pocket.pn6 .pnav button { font-size: 0.66rem; padding: 0.35rem 0.1rem; } html.pocket.pn6 .pnav { gap: 4px; padding-left: 6px; padding-right: 6px; }
html.pocket.pn6 .pnav.pn3 { grid-template-columns: repeat(4, 1fr) !important; }
/* Sales card tiles: the four big numbers sit level (Oct 29 2026: "Best Month Ever" wrapped and pushed its number down) */
#s-kpis .kpi .l { min-height: 2.5em; display: flex; align-items: flex-end; line-height: 1.25; }  /* each label gets room for two lines and sits right on its number, so the numbers line up even when one label wraps */
#ro-table .ro-x { padding: 0.15rem 0.4rem; min-width: 0; line-height: 1.2; } #ro-table th.ro-xh { width: 2.4rem !important; min-width: 2.4rem !important; } #ro-table td:last-child { padding-left: 0.1rem; padding-right: 0.1rem; text-align: center; }  /* the ✕ column: just wide enough for its button */
#ro-table input.ro-px { max-width: 5.2rem; }
/* Share button on each At A Glance period tile (Oct 30 2026) */
.pt-h { position: relative; } .pt-h .sh-pt { position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.26rem 0.5rem; font-size: 0.72rem; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.pt.sh-soc .sh-x { display: none !important; } .pt.sh-snap { border-radius: 14px; } .pt .sh-foot { margin: 0 0.9rem 0.8rem; }
.pt.sh-soc .pt-b, .pt.sh-soc > div:not(.pt-h) { flex: none; }
.pt-h:has(.sh-pt) .pt-n { padding-right: 2.3rem; justify-content: flex-start; flex-wrap: wrap; row-gap: 0.25rem; } .pt-n b { white-space: nowrap; } .pt-h .sh-pt span { display: none; } .pt-h .sh-pt { padding: 0.32rem 0.4rem; }  /* icon-only on the tiles, so the title stays on one line */
/* Premium · Inventory Purchases: Bulk vs Item Costs, side by side and confirmed in a popup (Oct 30 2026) */
.ivt-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 0.4rem 0 0.5rem; }
@media (max-width: 700px) { .ivt-two { grid-template-columns: 1fr; } }
.ivt { display: grid; gap: 0.3rem; padding: 0.75rem 0.9rem; border-radius: 12px; border: 2px solid; font-size: 0.9rem; line-height: 1.4; }
.ivt b { font-size: 1rem; } .ivt small { color: var(--muted); } .ivt u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ivt.b { border-color: #e3b341; background: color-mix(in srgb, #e3b341 10%, var(--surface-2)); } .ivt.b b { color: #e3b341; }
.ivt.i { border-color: #4ad39a; background: color-mix(in srgb, #4ad39a 10%, var(--surface-2)); } .ivt.i b { color: #4ad39a; }
.ivt-warn { color: #ffb86b !important; font-weight: 600; }
.ivt-ov { position: fixed; inset: 0; z-index: 9990; background: rgba(0, 0, 0, 0.7); display: grid; place-items: center; padding: 1rem; }
.ivt-box { width: min(520px, 100%); background: var(--surface, #16161b); color: var(--fg); border-radius: 16px; border: 2px solid; padding: 1.2rem 1.3rem; display: grid; gap: 0.7rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.ivt-box.b { border-color: #e3b341; } .ivt-box.b h3 { color: #e3b341; } .ivt-box.i { border-color: #4ad39a; } .ivt-box.i h3 { color: #4ad39a; }
.ivt-box h3 { margin: 0; font-size: 1.25rem; } .ivt-box p { margin: 0; line-height: 1.5; } .ivt-what { font-size: 1.02rem; font-weight: 600; } .ivt-ex { color: var(--muted); } .ivt-not { color: #ffb86b; font-weight: 600; }
.ivt-skip { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.ivt-btns { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }
/* Re-Source Finder: Add Older Orders, a small square beside Share (Oct 30 2026) */
#rs-card { position: relative; }
.rs-older { flex: none; width: 3.6rem; height: 2.5rem; margin-bottom: 0.35rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.05rem; font: inherit; font-size: 0.62rem; font-weight: 700; line-height: 1.1; border-radius: 8px; border: 1.5px solid #e3b341; background: color-mix(in srgb, #e3b341 18%, var(--surface-2)); color: var(--fg); cursor: pointer; }
.rs-older:hover { background: color-mix(in srgb, #e3b341 30%, var(--surface-2)); }
#rs-card .shead > div:first-child { flex: 1; min-width: 0; } #rs-card .sh-row { width: 100%; } #rs-card .sh-row > .rs-older:not([hidden]) { margin-left: auto; } #rs-card .sh-row > .rs-older[hidden] + .sh-btn, #rs-card .sh-row > .sh-btn:only-of-type { margin-left: auto; }  /* Share and Older Orders sit at the right */

/* Oct 31 2026: card headers wrap by the card's own width, not the window's, so a half-width browser never overlaps text */
#live-card > .shead { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: flex-start; justify-content: flex-end; }
#live-card > .shead > div:first-child { flex: 1 1 13rem; min-width: 0; }
#live-card .lv-tot { min-width: 0; flex: 0 1 auto; }

.sh-size { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0 0 0.7rem; font-size: 0.92rem; } .sh-size > span { margin-right: 0.25rem; }

.sup-bw { min-width: 0; } .sup-bl { display: block; color: var(--muted); font-size: 0.7rem; margin-top: 0.3rem; }
@media (max-width:640px) { .sup-bw { grid-column: 1 / -1; order: 3; } }

.sup-med { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.75rem 0.9rem; margin: 0 0 0.7rem; border: 1.5px solid var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, transparent); } .sup-med-b { display: flex; flex-wrap: wrap; gap: 0.45rem; } .sup-med small { color: var(--muted); font-size: 0.78rem; }
.sup-mc { margin-top: 0.8rem; padding: 0.7rem 0.8rem; border: 1.5px solid #fbbf24; border-radius: 12px; background: color-mix(in srgb, #fbbf24 5%, transparent); } .sup-mc-h { display: block; margin-bottom: 0.4rem; font-size: 0.95rem; }
td.sup-ac { color: #fbbf24; font-weight: 700; }
body.incog .sup-mc-n { display: none; }
.sup-mc table th:first-child, .sup-mc table td:first-child { text-align: left; }
.sup-mc table th:not(:first-child), .sup-mc table td:not(:first-child) { text-align: right; } .sup-mc tr.tt td { font-weight: 700; border-top: 1px solid var(--line); }

/* Supplier Scorecards, condensed (Nov 1 2026) */
.sup-med.cmp { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; padding: 0; margin: 0 0 0.5rem; border: 0; background: none; } .sup-med.cmp > b { font-size: 0.85rem; color: var(--muted); font-weight: 600; } .sup-med.cmp small { display: none; } .sup-med.cmp .btn { padding: 0.3rem 0.75rem; font-size: 0.85rem; }
.sup-cmp { overflow-x: visible; } .sup-cmp > table { width: 100%; table-layout: auto; } .sup-cmp > table th { white-space: normal; vertical-align: bottom; line-height: 1.25; font-size: 0.72rem; padding: 0.5rem 0.4rem; } .sup-cmp > table td { padding: 0.5rem 0.4rem; font-size: 0.85rem; }
.sup-cmp tr.sup-r { cursor: pointer; } .sup-cmp tr.sup-r > td:first-child::before { content: '▸ '; color: var(--muted); } .sup-cmp tr.sup-r.on > td:first-child::before { content: '▾ '; color: var(--accent); } .sup-cmp tr.sup-r.on > td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sup-cmp tr.sup-det > td { padding: 0 !important; background: color-mix(in srgb, var(--accent) 5%, transparent); } .sup-cmp tr.sup-det .sup-mc { margin: 0; border-radius: 0; border-width: 0 0 1.5px; } .sup-cmp tr.sup-det .sup-mc th, .sup-cmp tr.sup-det .sup-mc td { white-space: nowrap; }
@media (max-width: 900px) { .sup-cmp { overflow-x: auto; } }
.sup-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; padding: 0.6rem 0.8rem; } .sup-acts small { flex-basis: 100%; }

/* Nov 2 2026: same layout on every card. The title side shrinks before the time-frame picker drops to its own line, and charts in a row of cards sit on the same line. */
.shead > div:first-child { flex: 1 1 0; }
/* Live Sales: Yesterday and Today as two matching tiles (Nov 2 2026). Desktop: title left, tiles right. Phone: title on top, the two tiles side by side. */
#live-card > .shead { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: stretch; justify-content: stretch; }
#live-card > .shead > div:first-child { grid-column: 1 / -1; }  /* title on its own row, the two tiles side by side under it, at every width */
#live-card > .shead > .lv-tot { display: flex; flex-direction: column; gap: 0.2rem; text-align: left; justify-self: stretch; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--fg) 3%, transparent); min-width: 0; }
#live-card > .shead > .lv-tot .lv-k { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
#live-card > .shead > .lv-tot > b { font-size: 1.6rem; line-height: 1.15; }
#live-card > .shead > .lv-tot small { font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
#live-card > .shead > .lv-tot small .lv-cogs { display: block; color: var(--muted); }
@media (max-width: 700px) { #live-card > .shead { grid-template-columns: 1fr 1fr; } #live-card > .shead > div:first-child { grid-column: 1 / -1; } #live-card > .shead > .lv-tot { padding: 0.6rem 0.7rem; } #live-card > .shead > .lv-tot > b { font-size: 1.35rem; } }
#live-card > .shead > div.lv-tot, #live-card > .shead > div.lv-tot:last-child { justify-self: stretch !important; width: auto !important; max-width: none !important; margin: 0 !important; text-align: left !important; }
#live-card > .shead { margin-bottom: 0.75rem; }
#live-card > .shead > .lv-tot small, #live-card > .shead > .lv-tot small * { white-space: pre-line !important; overflow-wrap: anywhere; }
#live-card > .shead > .lv-tot small .pg, #live-card > .shead > .lv-tot small .pn { display: block; }
.card.sh-snap table th.tcol, .card.sh-snap table td.tcol { min-width: 16rem; max-width: 24rem; width: auto; }  /* share picture: titles keep room */

/* Orders By Day (Nov 7 2026) */
.obd-ctl { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.obd-ctl input[type=date] { min-height: 2.1rem; color-scheme: dark; }
.obd-kpis { margin-top: 0.75rem; }
.obd-filt { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.75rem 0; }
.obd-q { flex: 1 1 14rem; min-width: 0; }
#t-obd td.obd-st span { font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.5rem; border: 1px solid; white-space: nowrap; }
#t-obd td.obd-st .p { color: #fbbf24; border-color: #6b5a1e; } #t-obd td.obd-st .s { color: #4ad39a; border-color: #1f5a35; }
.inb-acc { margin-top: 0.75rem; }

/* Nov 7 2026 — pinned badges still stuttered: the card shine slid a background (background-position), the tier name's gradient slid the same way, and the
   icons pulsed a box-shadow or spun their colors (hue-rotate). Those all repaint on the page's main thread, so whenever the dashboard was busy redrawing a card
   they froze, then jumped. On the pins those are switched off; what's left runs on the GPU only (the Diamond sparkles and glint, the Legendary aurora, the
   opacity glow above), and Platinum gets a light streak that slides with transform instead of the background shine. */
.pins .lad, .pins .lad .lad-ico, .pins .lad .lad-tier, .pins .lad .lad-top b, .pins .lad .pa-name { animation: none !important; }
.pins .lad[data-tier="Platinum"] { position: relative; overflow: hidden; isolation: isolate; }
.pins .lad[data-tier="Platinum"]::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 0%, color-mix(in srgb, var(--tier) 22%, transparent) 45%, rgba(255, 255, 255, 0.16) 50%, color-mix(in srgb, var(--tier) 22%, transparent) 55%, transparent 100%);
  transform: translate3d(-120%, 0, 0); will-change: transform; animation: pinShine 3.2s linear infinite; }
@keyframes pinShine { 0% { transform: translate3d(-120%, 0, 0); } 60%, 100% { transform: translate3d(260%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .pins .lad::after { animation: none !important; } }
/* Nov 11 2026, phone: card headers with time-frame pickers put the title and description on their own full-width row and the pickers under it
   (the pickers were squeezing the description into one word per line). Inventory By Disposition: its total sits below the Share button, and the
   Share column is dropped so the numbers fit the screen. */
@media (max-width: 640px) {
  .card:not(#sales-card):not(#iv-card):not(#live-card) > .shead:has(> .sctl) > div:first-child { flex: 1 1 100%; }
  .card:not(#sales-card):not(#iv-card):not(#live-card) > .shead:has(> .sctl) > .sctl { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; margin-left: 0; }
  #fc-card .sctl { flex-wrap: wrap; } #fc-card .sctl .sel, #inb-card .sctl .sel { flex: 1 1 8rem; min-width: 0; width: auto; }
  #disp-card > .shead > div:first-child { flex: 1 1 100%; } #disp-card > .shead > .vhero { text-align: left; }
  #disp-card > .shead > div:first-child > h3 { padding-right: 3.5rem; }
  #t-disp th:nth-child(4), #t-disp td.disp-share, #t-disp th:nth-child(2), #t-disp tr:not(.disp-hd):not(.disp-open) > td:nth-child(2) { display: none; }
  #t-disp { table-layout: auto; width: 100%; min-width: 0; font-size: 0.78rem; } #t-disp th, #t-disp td { padding-left: 0.3rem; padding-right: 0.3rem; white-space: nowrap; } #t-disp td:first-child, #t-disp th:first-child { white-space: normal; min-width: 5.5rem; } #t-disp td:last-child { white-space: normal; font-size: 0.68rem; min-width: 4.4rem; max-width: 4.8rem; } #t-disp th:last-child { font-size: 0.66rem; }
}
/* Nov 12 2026: with All Time Value the supplier table got one column wider than the card and the last column was cut off.
   Slightly tighter cells so it fits; if a narrow screen still can't fit it, it scrolls sideways instead of cutting a column off. */
.sup-cmp { overflow-x: auto !important; }
#sup-glance-table td, #sup-glance-table th { padding-left: 0.4rem; padding-right: 0.4rem; }
#sup-glance-table tbody td, #sup-glance-table tfoot td { font-size: 0.93em; }
/* Account Health card (Nov 12 2026) */
.ah-badge { font: 700 .72rem var(--display); letter-spacing: .06em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; border: 2px solid; margin-left: .5rem; vertical-align: middle; }
.ah-badge.ok { color: #4ad39a; border-color: #4ad39a; } .ah-badge.warn { color: #f0b13a; border-color: #f0b13a; background: color-mix(in srgb, #f0b13a 12%, transparent); } .ah-badge.bad { color: #ff7b6b; border-color: #ff7b6b; }
.ah-top { display: grid; grid-template-columns: minmax(14rem, 17rem) 1fr; gap: .8rem; margin: .8rem 0; } .ah-top:has(#ah-ahr[hidden]) { grid-template-columns: 1fr; }
.ah-ahr { border: 1.5px solid var(--line); border-radius: 12px; padding: .9rem 1rem; background: var(--surface-2); } .ah-ahr.warn { border-color: #f0b13a; } .ah-ahr.bad { border-color: #ff7b6b; } .ah-ahr.ok { border-color: #4ad39a; }
.ah-l { color: var(--muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; }
.ah-big { font: 600 2.4rem var(--mono, monospace); margin: .2rem 0; } .ah-ahr.warn .ah-big { color: #f0b13a; } .ah-ahr.ok .ah-big { color: #4ad39a; } .ah-ahr.bad .ah-big { color: #ff7b6b; } .ah-big small { font-size: 1rem; color: var(--muted); }
.ah-meter, .ah-surm { position: relative; height: 9px; border-radius: 6px; margin: .55rem 0 .35rem; background: linear-gradient(90deg, #ff7b6b 0 33.3%, #f0b13a 33.3% 66.6%, #4ad39a 66.6%); }
.ah-surm { background: linear-gradient(90deg, #4ad39a 0 36.6%, #8a7a20 36.6% 46.6%, #b08f1a 46.6% 60%, #d98a1a 60% 73.3%, #d9601a 73.3% 86.6%, #b81818 86.6%); }
.ah-meter i, .ah-surm i { position: absolute; top: -5px; width: 4px; height: 19px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px #fff; transform: translateX(-2px); }
.ah-ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; gap: .3rem; }
.ah-t { color: var(--muted); font-size: .78rem; margin-top: .25rem; }
.ah-mets { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem; }
.ah-m { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; background: var(--surface-2); min-width: 0; } .ah-m.bad { border-color: #ff7b6b; background: color-mix(in srgb, #ff7b6b 7%, var(--surface-2)); }
.ah-r { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; } .ah-p { font-size: .66rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.ah-v { font: 600 1.45rem var(--mono, monospace); margin: .2rem 0; } .ah-v small { font-size: .85rem; color: var(--muted); }
#ah-card .ok { color: #4ad39a; } #ah-card .no { color: #ff7b6b; } .ah-p.ok { border-color: #4ad39a; } .ah-p.no { border-color: #ff7b6b; } #ah-card .wa { color: #f0b13a; } .ah-p.wa { border-color: #f0b13a; }
.ah-su { margin: .2rem 0 .9rem; } .ah-sub-h { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-weight: 700; margin-bottom: .55rem; } .ah-est { color: var(--muted); font-weight: 400; font-size: .76rem; } .ah-sub-h .ah-go { margin-left: auto; }
.ah-sugrid { display: grid; grid-template-columns: minmax(16rem, 2fr) 1fr 1fr; gap: .6rem; } @media (max-width: 760px) { .ah-sugrid, .ah-top { grid-template-columns: 1fr; } }
.ah-alh { font-weight: 700; margin: .3rem 0 .5rem; display: flex; align-items: center; gap: .5rem; } .ah-cnt { font-size: .72rem; font-weight: 700; background: #ff7b6b; color: #111; border-radius: 999px; padding: .05rem .5rem; }
.ah-a { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .45rem; background: var(--surface-2); flex-wrap: wrap; }
.ah-tx { flex: 1; min-width: 12rem; } .ah-tx span { color: var(--muted); font-size: .85rem; }
.ah-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .ah-dot.r { background: #ff7b6b; box-shadow: 0 0 8px #ff7b6b; } .ah-dot.y { background: #f0b13a; }
.ah-go { min-height: 0; padding: .35rem .7rem; font-size: .8rem; white-space: nowrap; }
.ah-ft { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: .7rem; }
/* Needs Your Attention: each item is its own small rectangle, side by side */
.ah-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .6rem; } #ah-al { display: contents; }
.ah-row .ah-a { margin: 0; align-items: center; flex-wrap: wrap; } .ah-row .ah-tx { min-width: 8rem; }  /* Nov 18 2026: a long title keeps its line and the button drops below it, never one word per line */ .ah-row .ah-tx span { display: none; } .ah-row .ah-a { padding: .5rem .7rem; gap: .6rem; } .ah-row .ah-go { white-space: nowrap; } .ah-row #ah-none { margin: 0; padding: .7rem .9rem; }
.ah-ft { margin-top: 0; } .ah-dot.m { background: var(--accent); }

/* Nov 14 2026: serious Amazon account health alert at the top of the dashboard */
.crit-alert { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; padding: .85rem 1rem; border: 1.5px solid #ef6b5f; border-radius: 14px; background: color-mix(in srgb, #ef6b5f 12%, var(--surface)); box-shadow: 0 0 0 4px color-mix(in srgb, #ef6b5f 10%, transparent); animation: critIn .35s ease-out; }
.crit-ic { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #ef6b5f; color: #fff; font: 800 1.2rem/2.1rem system-ui, sans-serif; text-align: center; }
.crit-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; } .crit-tx b { font-size: 1.02rem; } .crit-tx span { font-size: .86rem; color: var(--muted); }
.crit-go { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; } .crit-go .btn { border: 1.5px solid #ef6b5f; white-space: nowrap; }
@keyframes critIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.crit-alert.calm { border-color: #f0b13a; background: color-mix(in srgb, #f0b13a 9%, var(--surface)); box-shadow: none; } .crit-alert.calm .crit-ic { background: #f0b13a; color: #0b0b0c; } .crit-alert.calm .crit-go .btn { border-color: #f0b13a; }
@media (max-width: 760px) { .crit-alert { flex-wrap: wrap; } .crit-go { width: 100%; justify-content: flex-start; } }
/* Nov 14 2026: on phones these tables are wider than the screen, so let them scroll sideways (desktop keeps them fitted) */
@media (max-width: 760px) { #fc-card .tblwrap, #rb-card .tblwrap, #brand-card .tblwrap, .lv-tbl, .prem-wide { overflow-x: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; } }
html.pocket #fc-card .tblwrap, html.pocket #rb-card .tblwrap, html.pocket #brand-card .tblwrap, html.pocket .lv-tbl, html.pocket .prem-wide { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
.fc-search { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: .2rem 0 .7rem; } #fc-q { flex: 0 1 22rem; min-width: 0; padding: .5rem .75rem; border: 1.5px solid var(--accent); border-radius: 8px; background: var(--surface-2, transparent); color: inherit; font: inherit; }
@media (max-width: 760px) { #fc-q { flex: 1 1 100%; } }
/* Nov 16 2026 phone audit: (1) a card title beside wide pickers was squeezed to one word per line (Top 100 Sellers); (2) title columns collapsed to a sliver in wide tables (Orders By Day); (3) Most Returned Items header sat off-screen; (4) FBM "nothing here" messages were cut off */
@media (max-width: 760px) { .shead > :first-child { min-width: min(100%, 11rem); } table td.tcol { min-width: 12rem; } #ret-table td:first-child { max-width: 15rem; white-space: normal; } #fbm-wrap tbody td[colspan] { display: block; position: sticky; left: 0; width: calc(100vw - 6.5rem); max-width: 100%; text-align: left !important; white-space: normal; } }
html.pocket .shead > :first-child { min-width: min(100%, 11rem); } html.pocket table td.tcol { min-width: 12rem; } html.pocket #ret-table td:first-child { max-width: 15rem; white-space: normal; } html.pocket #fbm-wrap tbody td[colspan] { display: block; position: sticky; left: 0; width: calc(100vw - 6.5rem); max-width: 100%; text-align: left !important; white-space: normal; }
#ret-table th:first-child { text-align: left; }
/* Nov 17 2026: Amazon Ads has seven tiles; on a computer screen they sit in one row, a little smaller */
@media (min-width: 1100px) { #ads-kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.55rem; } #ads-kpis > .kpi { padding: 0.8rem 0.75rem; } #ads-kpis > .kpi .l { font-size: 0.68rem; line-height: 1.25; min-height: 2.5em; display: flex; align-items: flex-end; } #ads-kpis > .kpi .v { font-size: clamp(1rem, 1.3vw, 1.3rem); white-space: nowrap; } #ads-kpis > .kpi .n { font-size: 0.72rem; line-height: 1.3; } }

/* Nov 20 2026: Returns By Source */
#ret-srows tr.rs-row { cursor: pointer; } #ret-srows tr.rs-row:hover td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.rs-name { font: inherit; font-weight: 600; color: var(--fg); background: none; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 8px; padding: 0.3rem 0.6rem; cursor: pointer; text-align: left; } .rs-name:hover, .rs-name:focus-visible { background: color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }
.rs-rate { display: flex; align-items: center; gap: 0.55rem; justify-content: flex-end; min-width: 15rem; } .rs-rate small { width: 6.2rem; text-align: left; color: var(--muted); font-family: var(--body); font-size: 0.74rem; white-space: nowrap; }
.rs-bar { flex: 1 1 auto; min-width: 4.5rem; height: 9px; border-radius: 999px; background: var(--grid, #26262e); position: relative; } .rs-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); } .rs-bar i.hi { background: #ef6f6f; } .rs-bar i.lo { background: #4ad39a; } .rs-bar b { position: absolute; top: -5px; width: 2px; height: 19px; background: var(--fg); border-radius: 1px; }
@media (max-width: 760px) { .rs-rate { min-width: 9rem; } .rs-rate small { display: none; } }

/* Gated Brands (Nov 25 2026) */
#gb-card .gb-q { width: 14rem; max-width: 100%; }
#gb-tabs button span { font-family: var(--mono); font-weight: 500; margin-left: 0.3rem; opacity: 0.8; }
.gb-wrap { max-height: 32rem; overflow: auto; }
table.gb-tbl th, table.gb-tbl td { text-align: left !important; }
table.gb-tbl td.gb-b { font-family: var(--body); font-weight: 600; } table.gb-tbl td.gb-b small { display: block; font-weight: 400; color: var(--muted); font-size: 0.7rem; }
table.gb-tbl td.gb-t { font-family: var(--body); color: var(--muted) !important; white-space: nowrap; }
table.gb-tbl td.gb-a { text-align: right !important; white-space: nowrap; } table.gb-tbl td:nth-child(2) { max-width: none; }
.gb-s { font-family: var(--mono); font-size: 0.72rem; border: 1px solid currentColor; border-radius: 999px; padding: 0.1rem 0.5rem; white-space: nowrap; }
.gb-s.ok { color: var(--good); } .gb-s.warn { color: var(--accent); } .gb-s.wait { color: #e3b341; } .gb-s.bad { color: var(--bad); }
td.gb-none { text-align: center !important; color: var(--muted) !important; padding: 1.4rem !important; font-family: var(--body) !important; }
@media (max-width: 560px) { table.gb-tbl td.gb-t, table.gb-tbl th:nth-child(2) { display: none; } }
@media (max-width: 560px) { #gb-card .gb-q { width: 100%; margin-bottom: 0.5rem; } table.gb-tbl td.gb-b { white-space: normal; } .gb-s { white-space: normal; } }
#gb-card .gb-q { padding: 0.4rem 0.6rem; }
.gb-alert { margin: 0.6rem 0 0.7rem; padding: 0.55rem 0.8rem; border: 1px solid var(--good); border-radius: 7px; background: color-mix(in srgb, var(--good) 10%, var(--surface)); font-size: 0.85rem; } .gb-alert b { color: var(--good); }
.gb-ralert { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--surface)); } .gb-ralert b { color: var(--bad); } .gb-s.gb-rg { margin-left: 0.35rem; } table.gb-tbl td small { display: block; color: var(--muted); font-size: 0.7rem; font-family: var(--body); margin-top: 0.15rem; }
/* Clean Up Old Listings (Nov 25 2026) */
.cu-ctl { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 0.6rem 0; } .cu-lab { font-size: 0.82rem; font-weight: 600; } .cu-custom { width: 6rem; }
.cu-sum small { display: block; color: var(--muted); margin-top: 0.25rem; } .cu-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 0.5rem 0; } .cu-q { width: 16rem; max-width: 100%; } .cu-count { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-left: auto; }
table.cu-tbl th, table.cu-tbl td { text-align: left !important; } table.cu-tbl td.cu-t { font-family: var(--body); max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } table.cu-tbl td.cu-t a { color: var(--fg); } table.cu-tbl td.cu-sku { cursor: copy; } table.cu-tbl td.cu-sku.copied { color: var(--good) !important; } table.cu-tbl td.cu-ck { width: 2rem; }
.cu-act { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.7rem; } .btn.cu-danger { border-color: var(--bad); color: var(--bad); } .btn.cu-danger:disabled { opacity: 0.5; }
.cu-confirm { margin-top: 0.7rem; padding: 0.7rem 0.8rem; border: 1px solid var(--bad); border-radius: 7px; background: color-mix(in srgb, var(--bad) 8%, var(--surface)); font-size: 0.85rem; } .cu-confirm label { font-weight: 600; font-size: 0.8rem; }
.cu-how { margin-top: 0.7rem; font-size: 0.85rem; } .cu-how summary { cursor: pointer; font-weight: 600; } .cu-how ol { margin: 0.5rem 0 0 1.2rem; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) { table.cu-tbl th:nth-child(4), table.cu-tbl td:nth-child(4), table.cu-tbl th:nth-child(5), table.cu-tbl td:nth-child(5) { display: none; } }

/* Gated Brands: Approved column on Ungated, Next Step column on Gated / Needs Units */
.gb-noact th:nth-child(5), .gb-noact td:nth-child(5), .gb-noapr th:nth-child(4), .gb-noapr td:nth-child(4) { display: none; }
.gb-d { white-space: nowrap; color: #4ade80; } .gb-d small { color: var(--muted, #9aa); }
/* Gated Brands: Import Approval History panel */
.gb-imp { margin: 0.6rem 0 0.8rem; padding: 0.8rem 1rem; border: 1px solid var(--line, #2a3a3a); border-radius: 12px; background: color-mix(in srgb, var(--accent, #2dd4bf) 6%, transparent); }
.gb-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.gb-steps small { opacity: 0.75; }
#gb-bm { cursor: grab; }
#gb-card .sctl { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
/* Tools tab: plan tag on each tool, lock when the member's plan doesn't include it */
#tools-sub .tt-tier { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 999px; border: 1px solid currentColor; margin-left: 4px; opacity: 0.85; }
.tools-lock { border-style: dashed; }

/* Tools sub-tabs (Nov 25 2026, simplified): outlined buttons shaped like the main tabs, one accent color. The plan tag is a plain outline
   in the button's own text color; Premium tools get a thin gold outline (like the Premium tab) and turn gold when picked. */
#tools-sub { display: flex; flex-wrap: wrap; gap: 0.45rem; background: none; border: 0; padding: 0; }
#tools-sub button { font-family: var(--body); font-size: 0.85rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; box-shadow: none; }
#tools-sub button:hover { background: color-mix(in srgb, var(--accent) 20%, var(--surface-2)); }
#tools-sub button[aria-pressed="true"] { background: var(--accent); color: var(--btn-fg); border-color: var(--accent); }
#tools-sub button:has(.tt-premium) { border-color: color-mix(in srgb, #e3b341 70%, var(--line)); }
#tools-sub button[aria-pressed="true"]:has(.tt-premium) { background: var(--gold, #ffd166); color: #1a1300; border-color: #e3b341; }
#tools-sub .tt-tier { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; padding: 0 6px; border-radius: 4px; border: 1px solid currentColor; margin-left: 2px; background: none; color: inherit; opacity: 0.75; }/* every tool's plan tag (picked or not) looks exactly like the Inventory Pro tab's COGS chip: black fill, white text, white outline */
#tools-sub .tt-tier, #tools-sub button[aria-pressed="true"] .tt-tier { font-family: var(--mono); font-size: 0.65rem; font-weight: 700; padding: 0.12rem 0.45rem; border-radius: 999px; color: #ffffff; background: #0b0b0c; border: 1.5px solid #ffffff; letter-spacing: 0.04em; opacity: 1; }
.ach-chips { padding-left: 3.2rem; }  /* clears the ☰ card organizer button when the row sticks to the top */
@media (max-width: 760px) { .ach-chips { flex-wrap: nowrap; overflow-x: auto; padding-left: 0; scrollbar-width: none; } .ach-chips .btn { flex: 0 0 auto; } }  /* phone: one row you swipe sideways */

.lad-top .lad-cur { color: var(--muted); font-size: 0.85em; font-weight: 600; }

#st-card .st-body { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 1.25rem; align-items: center; }
#st-card #st-donut { position: relative; display: flex; justify-content: center; }
#st-card .st-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
#st-card .st-row i { width: 14px; height: 14px; border-radius: 4px; }
#st-card .st-row .st-pct { font-family: var(--mono); font-weight: 800; font-size: 1.15rem; }
#st-card .st-row .st-v { font-family: var(--mono); font-weight: 700; }
#st-card .st-row small { color: var(--muted); font-family: var(--mono); min-width: 6.5rem; text-align: right; }
@media (max-width: 760px) { #st-card .st-body { grid-template-columns: 1fr; } #st-card .st-row { grid-template-columns: 14px minmax(0, 1fr) auto auto; } #st-card .st-row small { grid-column: 2 / -1; text-align: left; min-width: 0; } }
/* Nov 26 2026 (Feda): Inventory Age fills its card (it sits beside the taller Inventory Value card), everything slightly bigger */
.va-pair > .card:has(#b-age) { display: flex; flex-direction: column; }
.va-pair #b-age { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; gap: 0.5rem; padding-block: 0.3rem 0.2rem; }
.va-pair #b-age .bar { font-size: 1.05rem; margin: 0 !important; gap: 0.8rem; }
.va-pair #b-age .track { height: 0.95rem; border-radius: 6px; } .va-pair #b-age .track i { border-radius: 6px; }
.va-pair #b-age .val { font-size: 1.1rem; } .va-pair #b-age .pct { font-size: 0.9rem; }
