/* GPU Pipeline — warm cream canvas, black sidebar, pastel cards with soft shapes.
   Each card colour is just a home for one topic; meaning is carried by text and black marks. */
:root {
  --canvas: #f4ecdf;
  --panel: #fbf7f0;
  --ink: #141414;
  --ink-2: #57524a;
  --ink-3: #8e877c;
  --line: rgba(20, 20, 20, .09);
  --line-2: rgba(20, 20, 20, .16);
  --yellow: #f6d96b;
  --pink: #f5b8d5;
  --olive: #a3b26f;
  --blue: #aec4ef;
  --cream: #efe4d2;
  --rose: #c8553d;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── frame ─────────────────────────────────────────── */
.frame { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; min-height: 100vh; padding: 18px; max-width: 1600px; margin: 0 auto; }
.side { position: sticky; top: 18px; height: calc(100vh - 36px); background: var(--ink); color: #f4ecdf; border-radius: 26px; padding: 26px 18px 20px; display: flex; flex-direction: column; }
.logo { font-weight: 800; font-size: 28px; letter-spacing: -.04em; text-decoration: none; padding: 0 10px; }
.logo span { color: var(--pink); }
.side-label { margin: 34px 10px 10px; font-size: 11px; color: #8d877d; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: #cfc8bc; font-weight: 500; }
.side-nav a svg { width: 18px; height: 18px; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.side-nav a.on { color: var(--ink); background: var(--pink); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.side-foot form { margin: 0; }
.side-foot button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: #cfc8bc; cursor: pointer; font-weight: 500; }
.side-foot button:hover { color: #fff; background: rgba(255,255,255,.06); }
.side-foot svg { width: 18px; height: 18px; }
.live { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; color: #8d877d; }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #6b665d; flex: none; }
.live.on::before { background: #9be38a; box-shadow: 0 0 0 4px rgba(155,227,138,.16); }
.live.off::before { background: #ef8a73; }

.stage { min-width: 0; background: var(--panel); border-radius: 26px; border: 1.5px solid var(--ink); padding: 22px 30px 40px; }
.top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 5px 6px 5px 5px; }
.search:focus-within { border-color: var(--ink); }
.search-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; flex: none; }
.search-ic svg { width: 16px; height: 16px; stroke-width: 2; }
.search input { flex: 1; border: 0; outline: none; background: none; padding: 0 12px; height: 34px; min-width: 0; }
.search input::placeholder { color: var(--ink-3); }
.results { position: absolute; top: 52px; left: 0; right: 0; z-index: 15; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; padding: 6px; box-shadow: 0 18px 40px rgba(20,20,20,.12); max-height: 420px; overflow-y: auto; }
.res { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 12px; text-align: left; cursor: pointer; }
.res:hover, .res.on { background: var(--canvas); }
.res-name { font-weight: 600; text-transform: capitalize; }
.res-sub { font-size: 12px; color: var(--ink-3); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); white-space: nowrap; }
.pill.dark { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.res-empty { padding: 14px; color: var(--ink-3); }
.brand-chip { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; background: var(--cream); }

/* ── dashboard layout ──────────────────────────────── */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.hello h1 { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.hello p { margin: 10px 0 0; color: var(--ink-2); max-width: 640px; }
.hello p b { color: var(--ink); }
.sec-h { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 14px; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.sec-h .hint { font-size: 12px; color: var(--ink-3); }

/* pastel cards */
.cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 16px; margin-top: 26px; }
.cards-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.card { position: relative; overflow: hidden; border-radius: 22px; padding: 20px 22px; min-height: 150px; isolation: isolate; }
.card h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.card .shape { position: absolute; z-index: -1; pointer-events: none; fill: rgba(20,20,20,.08); stroke: none; }
.c-yellow { background: var(--yellow); }
.c-pink { background: var(--pink); }
.c-olive { background: var(--olive); }
.c-blue { background: var(--blue); }
.stats { display: flex; gap: 22px; margin-top: 10px; flex-wrap: wrap; }
.stat b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 11px; color: rgba(20,20,20,.62); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.big { font-size: 40px; font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-top: 14px; }
.card .sub { margin-top: 6px; font-size: 12.5px; color: rgba(20,20,20,.7); font-weight: 500; }

/* yellow: stage bars */
.stagebars { display: flex; align-items: flex-end; gap: 7px; height: 92px; margin-top: 16px; }
.sb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; cursor: default; }
.sb i { width: 100%; max-width: 12px; border-radius: 6px; background: var(--ink); min-height: 4px; }
.sb.soft i { background: rgba(20,20,20,.28); }
.sb-note { margin-top: 8px; font-size: 11px; color: rgba(20,20,20,.62); font-weight: 600; }

/* pink: GPU demand */
.gpus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 26px; margin-top: 14px; }
.g { display: grid; grid-template-columns: 92px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 13px; cursor: default; }
.g-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-track { height: 7px; border-radius: 4px; background: rgba(20,20,20,.1); overflow: hidden; display: flex; }
.g-track i { height: 100%; background: var(--ink); }
.g-track i.soft { background: rgba(20,20,20,.38); }
.g-n { text-align: right; font-weight: 800; }
.card-foot { margin-top: 12px; font-size: 11.5px; color: rgba(20,20,20,.62); font-weight: 600; display: flex; gap: 14px; flex-wrap: wrap; }
.card-foot i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* bottom: list + detail */
.lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--cream); cursor: pointer; border: 1.5px solid transparent; transition: background .15s; }
.row:hover { background: #e9dcc6; }
.row.sel { background: var(--pink); border-color: var(--ink); }
.row-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; text-transform: uppercase; background: #fff; }
.row-ic.y { background: var(--yellow); } .row-ic.p { background: var(--pink); } .row-ic.o { background: var(--olive); } .row-ic.b { background: var(--blue); }
.row.sel .row-ic { background: #fff; }
.row-name { font-weight: 700; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { margin-top: 10px; width: 100%; padding: 11px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: none; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.more:hover { border-color: var(--ink); color: var(--ink); }

.detail { background: var(--pink); border-radius: 22px; padding: 22px; position: relative; overflow: hidden; isolation: isolate; }
.detail .shape { position: absolute; right: -40px; bottom: -40px; width: 220px; z-index: -1; fill: rgba(255,255,255,.28); stroke: none; }
.dt-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dt-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-transform: capitalize; }
.dt-company { font-size: 13px; color: rgba(20,20,20,.7); font-weight: 500; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.chips .pill { background: rgba(255,255,255,.7); border-color: rgba(20,20,20,.12); }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 14px; margin: 18px 0 0; font-size: 13px; }
.kv dt { color: rgba(20,20,20,.62); font-weight: 600; }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.kv a { text-decoration: none; border-bottom: 1px solid rgba(20,20,20,.3); }
.dt-actions { display: flex; gap: 8px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--panel); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.ghost { background: rgba(255,255,255,.7); color: var(--ink); }
.btn:hover { opacity: .9; }

/* right rail */
.rail { display: flex; flex-direction: column; gap: 16px; }
.rail-card { background: #fff; border-radius: 22px; padding: 20px; border: 1px solid var(--line); }
.rail-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.rail-card .hint { font-size: 12px; color: var(--ink-3); margin: 0 0 14px; }
.lose-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 4px 10px; align-items: center; margin-bottom: 12px; cursor: default; }
.lose-row span { font-size: 13px; font-weight: 600; }
.lose-row b { text-align: right; font-size: 13px; }
.lose-track { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: var(--canvas); overflow: hidden; }
.lose-track i { display: block; height: 100%; border-radius: 4px; background: var(--rose); }
.callout { margin-top: 6px; padding: 14px 16px; border-radius: 16px; background: var(--yellow); font-size: 12.5px; line-height: 1.5; font-weight: 500; }
.callout b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; display: block; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.tl:first-child { border-top: 0; }
.tl:hover .tl-card { background: var(--cream); }
.tl-time { font-size: 11.5px; color: var(--ink-3); font-weight: 600; padding-top: 10px; }
.tl-card { background: var(--canvas); border-radius: 14px; padding: 10px 12px; transition: background .15s; min-width: 0; }
.tl-name { font-weight: 700; font-size: 13px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-what { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* not connected / settings */
.connect { max-width: 600px; margin: 40px auto; text-align: center; }
.connect h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.connect p, .connect ol { color: var(--ink-2); }
.connect ol { text-align: left; line-height: 1.9; margin: 22px auto 0; max-width: 480px; }
code { font-size: 12px; background: var(--cream); padding: 2px 6px; border-radius: 6px; }
.settings { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 10px; }
.settings h1 { grid-column: 1 / -1; margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.settings .rail-card h3 { margin-bottom: 4px; }
.skv { display: grid; grid-template-columns: 140px minmax(0, 1fr); margin: 10px 0 0; font-size: 13px; }
.skv dt { color: var(--ink-3); padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.skv dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; }
.field input { width: 110px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); text-align: right; background: #fff; }
.btn-link { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.saved { margin-left: 12px; font-size: 13px; color: var(--ink-2); }
.err { color: var(--rose); }

/* drawer: full history */
.scrim { position: fixed; inset: 0; background: rgba(20,20,20,.35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(480px, calc(100vw - 24px)); z-index: 21; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 26px; transform: translateX(110%); transition: transform .25s cubic-bezier(.2,.8,.2,1); overflow-y: auto; overscroll-behavior: contain; }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.drawer-inner { padding: 26px 26px 40px; }
.dr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dr-top h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; text-transform: capitalize; }
.close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; font-size: 18px; line-height: 1; }
.dr-sec { margin-top: 24px; }
.dr-sec h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.prose { margin: 0; color: var(--ink-2); line-height: 1.6; white-space: pre-wrap; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hist li { background: var(--cream); border-radius: 14px; padding: 10px 14px; }
.h-when { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.h-what { font-size: 13px; margin-top: 2px; }
.h-type { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.h-by { color: var(--ink-3); }

.tip { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; background: var(--ink); color: var(--panel); font-size: 12px; font-weight: 500; padding: 7px 10px; border-radius: 10px; max-width: 260px; }
.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 25% { box-shadow: 0 0 0 3px var(--yellow); } 100% { box-shadow: none; } }

/* login */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: min(380px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 32px; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 26px; position: relative; overflow: hidden; }
.login::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: var(--pink); right: -60px; top: -60px; z-index: 0; }
.login > * { position: relative; z-index: 1; }
.login .eyebrow { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.login h1 { margin: 0 0 14px; font-size: 32px; font-weight: 800; letter-spacing: -.035em; }
.login label { font-size: 12.5px; font-weight: 600; }
.login input { height: 46px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font-size: 15px; outline: none; }
.login input:focus { border-color: var(--ink); }
.login button { margin-top: 8px; height: 46px; border-radius: 999px; border: 0; background: var(--ink); color: var(--panel); font-weight: 700; cursor: pointer; }
.login-error { color: var(--rose); margin: 0; font-size: 13px; font-weight: 600; }

/* responsive */
@media (max-width: 1240px) {
  .dash { grid-template-columns: 1fr; }
  .rail { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 20px; }
  .side-label { display: none; }
  .side-nav { flex-direction: row; }
  .side-nav a { padding: 8px 10px; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .live { display: none; }
  .stage { padding: 18px 16px 30px; border-radius: 20px; }
  .cards, .cards-2, .lower, .settings, .rail { grid-template-columns: 1fr; }
  .gpus { grid-template-columns: 1fr; }
  .brand-chip { display: none; }
}
@media (max-width: 560px) {
  .side-nav a { font-size: 0; gap: 0; }
  .side-foot button { font-size: 0; gap: 0; }
  .hello h1 { font-size: 28px; }
  .big { font-size: 32px; }
}
.chips .pill.dark { background: var(--ink); color: var(--panel); border-color: var(--ink); }

/* data refinements */
.card h3 small { font-size: 12px; font-weight: 600; color: rgba(20,20,20,.55); margin-left: 6px; letter-spacing: 0; }
.big small { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-left: 4px; color: rgba(20,20,20,.65); }
.split { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.sp { display: grid; grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 12.5px; }
.sp-label { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-track { height: 8px; border-radius: 4px; background: rgba(20,20,20,.1); overflow: hidden; }
.sp-track i { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.sp.soft .sp-track i { background: rgba(20,20,20,.35); }
.sp.soft .sp-label { font-weight: 600; color: rgba(20,20,20,.7); }
.sp-n { text-align: right; font-weight: 800; }
.dt-want { margin: 14px 0 0; font-weight: 600; font-size: 13.5px; }
.dt-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.55); font-size: 12.5px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.warn { color: #9a3412; font-weight: 700; }
.attn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.attn li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--canvas); cursor: pointer; transition: background .15s; }
.attn li:hover { background: var(--cream); }
.at-name { font-weight: 700; font-size: 13px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-sub { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-days { flex: none; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--yellow); }
.attn-big { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 6px; }
.attn-big b { color: var(--ink); font-weight: 800; }
.attn-big > b:first-child { display: block; font-size: 34px; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 4px; }
.lose-row.ok .lose-track i { background: var(--olive); }
.rail-card .lose-track i { background: var(--rose); }

.dr-kv { margin-top: 20px; padding: 16px; border-radius: 16px; background: var(--cream); }

/* clean client table */
.clients-card { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px 18px; }
.ct-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ct-h h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.ct-h .hint { font-size: 12px; color: var(--ink-3); }
.ct-wrap { overflow-x: auto; }
.ct { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 820px; }
.ct th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 10px 12px; background: var(--canvas); white-space: nowrap; }
.ct th:first-child { border-radius: 12px 0 0 12px; }
.ct th:last-child { border-radius: 0 12px 12px 0; }
.ct td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ct tbody tr { cursor: pointer; transition: background .12s; }
.ct tbody tr:hover td { background: #fbf6ee; }
.ct tbody tr:last-child td { border-bottom: 0; }
.ct .r { text-align: right; }
.ct-name { font-weight: 700; text-transform: capitalize; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.ct-email { color: var(--ink-2); max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-uc { color: var(--ink-2); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-gpu { font-weight: 600; white-space: nowrap; }
.ct-amt { font-weight: 800; white-space: nowrap; }
.ct { table-layout: fixed; min-width: 640px; }
.ct th:nth-child(1) { width: 17%; } .ct th:nth-child(2) { width: 22%; } .ct th:nth-child(3) { width: 15%; }
.ct th:nth-child(4) { width: 20%; } .ct th:nth-child(5) { width: 12%; } .ct th:nth-child(6) { width: 14%; }
.ct td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-name, .ct-email, .ct-uc { max-width: none; }
.ct .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

/* filters */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.fsel { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 4px 6px 4px 14px; }
.fsel:focus-within { border-color: var(--ink); }
.fsel span { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.fsel select { border: 0; background: var(--canvas); border-radius: 999px; padding: 6px 28px 6px 12px; font: 600 13px var(--sans); color: var(--ink); cursor: pointer; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23141414' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 10px 6px; }
.fclear { border: 0; background: var(--ink); color: var(--panel); font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.fnote { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.ct-h { align-items: center; }
.ct-h > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ct th:nth-child(1) { width: 16%; } .ct th:nth-child(2) { width: 20%; } .ct th:nth-child(3) { width: 14%; }
.ct th:nth-child(4) { width: 18%; } .ct th:nth-child(5) { width: 11%; } .ct th:nth-child(6) { width: 8%; } .ct th:nth-child(7) { width: 13%; }

/* period basis switch */
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font: 600 12.5px var(--sans); color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--panel); }

/* custom date */
.fdates { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 4px 6px 4px 14px; }
.fdates:focus-within { border-color: var(--ink); }
.fdates label { display: inline-flex; align-items: center; gap: 6px; }
.fdates span { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.fdates input { border: 0; background: var(--canvas); border-radius: 999px; padding: 6px 10px; font: 600 13px var(--sans); color: var(--ink); outline: none; }

/* combined dashboard */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-top: 26px; }
.card.prod { min-height: 260px; padding: 24px 26px; display: flex; flex-direction: column; }
.prod-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prod-h h3 { font-size: 24px; letter-spacing: -.03em; }
.prod-h .btn { padding: 9px 16px; font-size: 13px; }
.card.prod .big { font-size: 52px; margin-top: 18px; }
.prod-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(20,20,20,.12); }
.prod-stats .stat b { font-size: 18px; }
.prod-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 12px; font-weight: 600; color: rgba(20,20,20,.65); }
.prod-top > span:first-child { margin-right: 4px; }
.prod-top .pill { background: rgba(255,255,255,.65); }
