/* Command — design concepts v1 (Rocket-9 brand: Poppins, #de3341, black, white) */
:root {
  color-scheme: light;
  --red: #de3341;
  --red-ink: #c22433;
  --red-soft: rgba(222, 51, 65, .09);
  --red-soft-2: rgba(222, 51, 65, .16);
  --bg: #f5f5f6;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f0f0f2;
  --line: #e7e7ea;
  --line-2: #d8d8dd;
  --ink: #0b0b0c;
  --ink-2: #45464d;
  --ink-3: #7a7b83;
  --side: #000000;
  --side-2: #121214;
  --side-ink: #a3a3aa;
  --blue: #2563c9;  --blue-bg: rgba(37, 99, 201, .1);
  --violet: #6d4ad0; --violet-bg: rgba(109, 74, 208, .11);
  --amber: #a86500; --amber-bg: rgba(232, 150, 0, .15);
  --green: #137a49; --green-bg: rgba(19, 138, 82, .12);
  --grey-bg: #ececef;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .05);
  --shadow-2: 0 8px 22px -10px rgba(0, 0, 0, .18);
  --shadow-3: 0 30px 60px -20px rgba(0, 0, 0, .35);
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --red: #ef4655; --red-ink: #ff6b77; --red-soft: rgba(239, 70, 85, .13); --red-soft-2: rgba(239, 70, 85, .22);
  --bg: #0a0a0b; --surface: #141416; --surface-2: #19191c; --surface-3: #212125;
  --line: #26262b; --line-2: #34343a;
  --ink: #f4f4f5; --ink-2: #c1c1c8; --ink-3: #85858f;
  --side: #000000; --side-2: #141416;
  --blue: #7aa7f0; --blue-bg: rgba(122, 167, 240, .14);
  --violet: #ae98f5; --violet-bg: rgba(174, 152, 245, .15);
  --amber: #f2b64a; --amber-bg: rgba(242, 182, 74, .14);
  --green: #4fcf8f; --green-bg: rgba(79, 207, 143, .13);
  --grey-bg: #26262b;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5); --shadow-2: 0 10px 26px -10px rgba(0, 0, 0, .7); --shadow-3: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --red: #ef4655; --red-ink: #ff6b77; --red-soft: rgba(239, 70, 85, .13); --red-soft-2: rgba(239, 70, 85, .22);
    --bg: #0a0a0b; --surface: #141416; --surface-2: #19191c; --surface-3: #212125;
    --line: #26262b; --line-2: #34343a;
    --ink: #f4f4f5; --ink-2: #c1c1c8; --ink-3: #85858f;
    --blue: #7aa7f0; --blue-bg: rgba(122, 167, 240, .14);
    --violet: #ae98f5; --violet-bg: rgba(174, 152, 245, .15);
    --amber: #f2b64a; --amber-bg: rgba(242, 182, 74, .14);
    --green: #4fcf8f; --green-bg: rgba(79, 207, 143, .13);
    --grey-bg: #26262b;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5); --shadow-2: 0 10px 26px -10px rgba(0, 0, 0, .7); --shadow-3: 0 30px 60px -20px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 Poppins, system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px; letter-spacing: -.01em; }
.grow { flex: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.view.on .stagger > * { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- design review bar (not part of the product) ---------- */
.review { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 14px; padding: 9px 18px; background: #1b1b1f; color: #e6e6ea; font-size: 12.5px; border-bottom: 1px solid #000; }
.review b { font-weight: 600; color: #fff; }
.review .tag { background: var(--red); color: #fff; padding: 2px 8px; border-radius: 99px; font-weight: 600; font-size: 11px; letter-spacing: .04em; }
.review nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.review nav button { border: 1px solid #333338; background: transparent; color: #c9c9cf; padding: 5px 11px; border-radius: 99px; white-space: nowrap; font-size: 12px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.review nav button:hover { color: #fff; border-color: #55555c; }
.review nav button.on { background: #fff; color: #000; border-color: #fff; }
.review .theme { margin-left: auto; display: flex; align-items: center; gap: 6px; border: 1px solid #333338; background: transparent; color: #e6e6ea; padding: 5px 10px; border-radius: 99px; font-size: 12px; white-space: nowrap; }
.review .theme svg { width: 15px; height: 15px; }

.view { display: none; }
.view.on { display: block; }

/* ---------- internal shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: calc(100vh - var(--rv, 45px)); }
.side { background: var(--side); color: var(--side-ink); position: sticky; top: var(--rv, 45px); height: calc(100vh - var(--rv, 45px)); display: flex; flex-direction: column; padding: 20px 12px 14px; }
.wordmark { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; color: #fff; }
.wordmark img { width: 30px; height: 30px; }
.wordmark b { display: block; font-size: 18px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.05; }
.wordmark small { display: block; font-size: 10.5px; color: #8a8a92; letter-spacing: .06em; }
.nav { display: grid; gap: 2px; }
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: #5f5f67; padding: 16px 12px 6px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; font-weight: 500; font-size: 13.5px; transition: background .2s, color .2s; position: relative; }
.nav a:hover { color: #fff; background: var(--side-2); }
.nav a.on { color: #fff; background: var(--side-2); }
.nav a.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--red); }
.nav a .count { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--red); color: #fff; padding: 0 7px; border-radius: 99px; line-height: 19px; }
.nav a .count.dim { background: #2a2a2f; color: #d4d4d8; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--side-2); }
.me .n { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.2; }
.me .r { font-size: 11.5px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: var(--rv, 45px); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 14px 30px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.top h1 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.search { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); min-width: 290px; font-size: 13px; }
.search kbd { margin-left: auto; font: 600 10.5px Poppins; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-3); }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); position: relative; }
.iconbtn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface); }
.menu-btn { display: none; }
.content { padding: 4px 30px 56px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13px; white-space: nowrap; transition: transform .15s, filter .2s, border-color .2s; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--red); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px var(--red); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.dark { background: var(--ink); color: var(--surface); border-color: transparent; }
.btn.sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); }

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 20px; }
.hero h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.hero p { margin: 2px 0 0; color: var(--ink-3); }
.hero .acts { display: flex; gap: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 8px; }
.card-h h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-h .sub { font-size: 12px; color: var(--ink-3); }
.card-b { padding: 6px 18px 18px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }

/* KPI */
.kpi { padding: 16px 18px; display: grid; gap: 4px; }
.kpi .lbl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.kpi .lbl .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.kpi .lbl .ico svg { width: 16px; height: 16px; }
.kpi.hot .ico { background: var(--red-soft); color: var(--red-ink); }
.kpi .val { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .foot { font-size: 12px; color: var(--ink-3); }
.kpi .foot b { color: var(--red-ink); font-weight: 600; }

/* rows */
.rows { display: grid; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 8px; border-radius: 10px; transition: background .15s; }
.row:hover { background: var(--surface-2); }
.row + .row { border-top: 1px solid var(--line); }
.row .t { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.row .end { display: flex; align-items: center; gap: 10px; }
.tk { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--ink-3); }
.ty { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.ty.red { background: var(--red-soft); color: var(--red-ink); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--grey-bg); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.violet { background: var(--violet-bg); color: var(--violet); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.red { background: var(--red-soft); color: var(--red-ink); }
.pill.out { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.due svg { width: 13px; height: 13px; }
.due.over { color: var(--red-ink); }
.due.today { color: var(--amber); }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font-size: 11px; font-weight: 600; }
.av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 600; color: #fff; flex: none; box-shadow: 0 0 0 2px var(--surface); }
.av.sm { width: 22px; height: 22px; font-size: 9px; }
.avs { display: flex; } .avs .av + .av { margin-left: -7px; }
.c1 { background: #de3341; } .c2 { background: #1f1f23; } .c3 { background: #2563c9; } .c4 { background: #6d4ad0; } .c5 { background: #137a49; } .c6 { background: #b06a00; }
:root[data-theme="dark"] .c2 { background: #55555c; }
.lock { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); }
.lock svg { width: 12px; height: 12px; }

/* tabs (segmented) */
.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 10px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 8px; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 600; }

/* workload */
.wl { display: grid; grid-template-columns: 30px minmax(0, 1fr) 70px; gap: 10px; align-items: center; padding: 8px 0; }
.wl .n { font-weight: 600; font-size: 13px; line-height: 1.2; }
.wl .r { font-size: 11.5px; color: var(--ink-3); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; display: flex; }
.bar i { display: block; height: 100%; transform-origin: left; animation: grow-x .9s var(--ease) both; }
.bar i.a { background: var(--ink); } .bar i.b { background: var(--red); }
:root[data-theme="dark"] .bar i.a { background: #d4d4d8; }
.wl .h { text-align: right; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wl .h small { display: block; color: var(--ink-3); font-weight: 500; font-size: 11px; }
.wl.over .h { color: var(--red-ink); }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* finance snapshot */
.fin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.fin div { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.fin small { display: block; font-size: 11.5px; color: var(--ink-3); }
.fin b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 86px; display: block; }
.spark text { fill: var(--ink-3); font: 10.5px Poppins; }

/* activity */
.act { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 8px 0; font-size: 13px; color: var(--ink-2); }
.act b { color: var(--ink); font-weight: 600; }
.act .w { font-size: 11.5px; color: var(--ink-3); }

/* employee: focus card, time entry */
.focus { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--ink); color: var(--surface); border-color: transparent; position: relative; overflow: hidden; }
.focus::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(222, 51, 65, .55), transparent 70%); }
.focus small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #f39aa2; font-weight: 600; }
.focus h3 { margin: 4px 0 4px; font-size: 18px; font-weight: 600; }
.focus p { margin: 0; font-size: 13px; opacity: .75; }
.focus .btn { position: relative; z-index: 1; }
:root[data-theme="dark"] .focus { background: #1d1d21; color: var(--ink); border: 1px solid var(--line-2); }
.att { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.att a { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 2px; transition: border-color .2s, transform .2s; }
.att a:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.att b { font-size: 22px; font-weight: 700; line-height: 1.1; }
.att span { font-size: 12px; color: var(--ink-3); }
.att a.hot b { color: var(--red-ink); }
.task-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 8px; border-radius: 10px; }
.task-row + .task-row { border-top: 1px solid var(--line); }
.task-row:hover { background: var(--surface-2); }
.cb { width: 18px; height: 18px; border-radius: 6px; border: 1.8px solid var(--line-2); margin-top: 2px; }
.task-row .t { font-weight: 600; font-size: 13.5px; }
.task-row .s { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.next { font-size: 12px; margin-top: 6px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.next svg { width: 14px; height: 14px; color: var(--red); }
.blocked { margin-top: 6px; font-size: 12px; padding: 6px 9px; border-radius: 8px; background: var(--amber-bg); color: var(--amber); display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.blocked svg { width: 14px; height: 14px; }
.timer { display: grid; gap: 12px; }
.timer .f { display: grid; gap: 5px; }
.timer label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sel { height: 38px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 0 11px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; height: 42px; }
.stepper button { width: 44px; height: 100%; border: 0; background: var(--surface-2); font-size: 18px; color: var(--ink-2); }
.stepper output { flex: 1; text-align: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 3px 9px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 70px; margin-top: 4px; }
.week div { display: grid; gap: 4px; justify-items: center; font-size: 10.5px; color: var(--ink-3); }
.week i { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: var(--surface-3); display: block; }
.week i.on { background: var(--red); }
.week i.done { background: var(--ink-2); }

/* ---------- client portal ---------- */
.portal { min-height: calc(100vh - var(--rv, 45px)); background: var(--bg); }
.p-top { background: #000; color: #fff; }
.p-top .in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 16px 24px; }
.p-top img { height: 24px; width: auto; }
.p-top nav { display: flex; gap: 4px; margin-left: 18px; }
.p-top nav a { padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #b4b4bb; }
.p-top nav a.on, .p-top nav a:hover { color: #fff; background: #1a1a1d; }
.p-top .who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.p-top .who small { display: block; color: #8a8a92; font-size: 11px; line-height: 1.2; }
.p-hero { background: #000; color: #fff; position: relative; overflow: hidden; }
.p-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(222, 51, 65, .35), transparent 70%); }
.p-hero .in { position: relative; max-width: 1120px; margin: 0 auto; padding: 30px 24px 74px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.p-hero small { color: #f39aa2; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.p-hero h2 { margin: 6px 0 4px; font-size: 32px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; line-height: 1.1; }
.p-hero p { margin: 0; color: #b9b9c0; }
.p-body { max-width: 1120px; margin: -48px auto 0; padding: 0 24px 56px; position: relative; }
.alert { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); box-shadow: var(--shadow-2); margin-bottom: 16px; }
.alert .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red-ink); flex: none; }
.alert b { display: block; font-size: 14px; font-weight: 600; }
.alert span { font-size: 13px; color: var(--ink-3); }
.req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 16px 18px; align-items: center; }
.req + .req { border-top: 1px solid var(--line); }
.req .t { font-weight: 600; font-size: 14.5px; }
.req .s { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.steps { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.steps i { height: 5px; flex: 1; max-width: 64px; border-radius: 99px; background: var(--surface-3); }
.steps i.on { background: var(--red); }
.steps i.done { background: var(--ink); }
:root[data-theme="dark"] .steps i.done { background: #d4d4d8; }
.steps span { font-size: 11.5px; color: var(--ink-3); margin-left: 8px; white-space: nowrap; }
.tl { display: grid; gap: 14px; position: relative; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl div { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; font-size: 13px; color: var(--ink-2); position: relative; }
.tl div::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-2); box-sizing: border-box; margin-top: 3px; }
.tl div.on::before { border-color: var(--red); }
.tl b { color: var(--ink); font-weight: 600; }
.tl small { display: block; color: var(--ink-3); font-size: 11.5px; }

/* request form */
.form-wrap { max-width: 1120px; margin: 0 auto; padding: 26px 24px 64px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.form-steps { position: sticky; top: 70px; display: grid; gap: 4px; }
.form-steps a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.form-steps a .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; border: 1.5px solid var(--line-2); flex: none; }
.form-steps a.done .n { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.form-steps a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.form-steps a.on .n { background: var(--red); border-color: var(--red); color: #fff; }
.form-steps a.sub { padding-left: 44px; font-size: 12.5px; }
.form-head small { color: var(--red-ink); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.form-head h2 { margin: 4px 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.form-head p { margin: 0 0 20px; color: var(--ink-3); }
.fs { padding: 20px 22px; margin-bottom: 16px; }
.fs h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.fs h3 .ty { width: 30px; height: 30px; }
.fs h3 .ty svg { width: 16px; height: 16px; }
.fs > p { margin: 0 0 16px; font-size: 12.5px; color: var(--ink-3); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { display: flex; gap: 11px; align-items: flex-start; padding: 13px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; transition: border-color .2s, background .2s; }
.cat:hover { border-color: var(--line-2); }
.cat .ty { width: 34px; height: 34px; }
.cat b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.cat span { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; display: block; margin-top: 2px; }
.cat .box { margin-left: auto; width: 18px; height: 18px; border-radius: 6px; border: 1.8px solid var(--line-2); flex: none; display: grid; place-items: center; }
.cat.on { border-color: var(--red); background: var(--red-soft); }
.cat.on .ty { background: var(--red); color: #fff; }
.cat.on .box { background: var(--red); border-color: var(--red); color: #fff; }
.cat .box svg { width: 12px; height: 12px; stroke-width: 3; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.fld > span em { color: var(--red-ink); font-style: normal; }
.fld > span i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.inp { width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-size: 13.5px; outline: none; transition: border-color .2s, box-shadow .2s; }
.inp:focus { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
textarea.inp { min-height: 84px; resize: vertical; }
.inp.err { border-color: var(--red); }
.hint { font-size: 11.5px; color: var(--ink-3); }
.hint.err { color: var(--red-ink); font-weight: 500; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 6px 13px; font-size: 12.5px; font-weight: 500; }
.radio-row button.on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.drop { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 20px; text-align: center; color: var(--ink-3); font-size: 13px; background: var(--surface-2); }
.drop b { color: var(--ink); }
.drop svg { width: 26px; height: 26px; color: var(--red); display: block; margin: 0 auto 6px; }
.files { display: grid; gap: 8px; margin-top: 10px; }
.file { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.file .p { flex: 1; min-width: 0; }
.file .p b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .p small { color: var(--ink-3); font-size: 11.5px; }
.file .ok { color: var(--green); font-size: 12px; font-weight: 600; display: flex; gap: 4px; align-items: center; }
.file .ok svg { width: 14px; height: 14px; }
.note { display: flex; gap: 10px; padding: 11px 13px; border-radius: 10px; background: var(--surface-3); font-size: 12.5px; color: var(--ink-2); }
.note svg { color: var(--ink-3); width: 16px; height: 16px; margin-top: 2px; }
.form-foot { display: flex; align-items: center; gap: 10px; padding: 16px 0 0; }

/* ---------- email ---------- */
.email-stage { padding: 28px 16px 64px; display: grid; justify-items: center; gap: 16px; }
.inbox { width: min(680px, 100%); }
.inbox-h { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.inbox-h b { font-size: 14px; font-weight: 600; }
.inbox-h .from { font-size: 12px; color: var(--ink-3); }
.subject { padding: 16px 18px 0; font-size: 18px; font-weight: 600; }
.mail { margin: 16px 18px 20px; border-radius: 12px; overflow: hidden; border: 1px solid #e7e7ea; background: #fff; color: #111; }
.mail-top { background: #000; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; }
.mail-top img { height: 24px; }
.mail-top span { color: #b4b4bb; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.mail-band { height: 4px; background: #de3341; }
.mail-b { padding: 28px; }
.mail-b h1 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #000; }
.mail-b p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #45464d; }
.ticket { border: 1px solid #e7e7ea; border-radius: 10px; overflow: hidden; margin: 18px 0; }
.ticket .tn { background: #fafafa; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e7e7ea; }
.ticket .tn small { display: block; font-size: 11px; color: #7a7b83; letter-spacing: .08em; text-transform: uppercase; }
.ticket .tn b { font-size: 20px; letter-spacing: .02em; font-family: ui-monospace, Consolas, monospace; }
.ticket table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ticket td { padding: 9px 18px; border-bottom: 1px solid #f0f0f2; vertical-align: top; }
.ticket tr:last-child td { border-bottom: 0; }
.ticket td:first-child { color: #7a7b83; width: 38%; }
.mail .cta { display: inline-block; background: #de3341; color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.mail-f { background: #f5f5f6; padding: 18px 28px; font-size: 11.5px; color: #7a7b83; line-height: 1.6; }
.mail .pill { background: rgba(232, 150, 0, .15); color: #a86500; }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
  .att { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .review { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .review nav { order: 3; width: 100%; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 12px 16px; top: 0; position: relative; }
  .menu-btn { display: grid; }
  .search { min-width: 0; width: 38px; padding: 0; justify-content: center; }
  .search span, .search kbd { display: none; }
  .content { padding: 4px 16px 96px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero h2 { font-size: 22px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--ink-3); padding: 4px 0; }
  .tabbar a.on { color: var(--red-ink); }
  .tabbar a.plus span { width: 44px; height: 44px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; margin-top: -18px; box-shadow: 0 8px 18px -8px var(--red); }
  .p-top nav { display: none; }
  .p-top .who > div { display: none; }
  .p-hero .in { flex-direction: column; align-items: flex-start; padding-bottom: 66px; }
  .p-hero h2 { font-size: 25px; }
  .form-wrap { grid-template-columns: 1fr; padding: 18px 16px 64px; }
  .form-steps { position: static; grid-auto-flow: column; overflow-x: auto; scrollbar-width: none; }
  .form-steps a.sub { display: none; }
  .form-steps a { white-space: nowrap; }
  .cats { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g4, .att, .fin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin div:last-child { grid-column: 1 / -1; }
  .kpi .val { font-size: 24px; }
  .row { grid-template-columns: auto minmax(0, 1fr); }
  .row .end { grid-column: 2; }
  .top h1 { font-size: 17px; }
  .p-body { padding: 0 16px 56px; }
  .mail-b, .mail-top, .mail-f { padding-left: 20px; padding-right: 20px; }
  .focus { grid-template-columns: 1fr; }
}

/* ---------- Rocket-9 site language: Poppins 800 uppercase headings, black + red two-tone titles, square-ish red buttons ---------- */
:root { --radius: 12px; }
body { color: var(--ink); }
.hero h2, .p-hero h2, .form-head h2, .mail-b h1 { font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.05; }
.hero h2 { font-size: 30px; }
.hero h2 em, .p-hero h2 em, .form-head h2 em, .mail-b h1 em { font-style: normal; color: var(--red); }
.card-h h3, .fs h3 { text-transform: uppercase; font-weight: 800; font-size: 13.5px; letter-spacing: .02em; }
.btn { text-transform: uppercase; font-weight: 700; letter-spacing: .02em; font-size: 12.5px; border-radius: 6px; }
.btn.sm { font-size: 11.5px; border-radius: 5px; }
.btn.primary { box-shadow: none; }
.btn.primary:hover { background: #c22433; filter: none; }
.mail .cta { text-transform: uppercase; font-weight: 700; letter-spacing: .02em; border-radius: 6px; }
.kpi .val { font-weight: 800; }
.att b { font-weight: 800; }
.wordmark b { font-weight: 800; }
.p-top img, .mail-top img { height: 26px; }
.cat .box svg { opacity: 0; transition: opacity .15s; }
.cat.on .box svg { opacity: 1; }
.seg button { white-space: nowrap; }
@media (max-width: 560px) {
  .card-h { flex-wrap: wrap; }
  .card-h .grow { flex-basis: 100%; height: 0; }
  .card-h .sub { flex-basis: 100%; }
  .alert { flex-wrap: wrap; }
  .alert .grow { flex-basis: calc(100% - 52px); }
  .alert .btn { width: 100%; }
  .top .btn.primary { padding: 0 11px; }
}

/* Job stage colors (M1 feedback 04.4): one hue per stage, readable in light and dark mode */
.pill[class*="st-"] { background: color-mix(in srgb, var(--st) 15%, transparent); color: color-mix(in srgb, var(--st) 82%, var(--ink)); }
.st-new { --st: #8a8f98; } .st-ready { --st: #64748b; } .st-assigned { --st: #3b82f6; } .st-in_progress { --st: #6366f1; }
.st-internal_review { --st: #8b5cf6; } .st-internal_revision { --st: #a855f7; } .st-ready_for_client { --st: #06b6d4; }
.st-client_review { --st: #d946ef; } .st-client_revision { --st: #c026d3; } .st-client_approved { --st: #10b981; }
.st-final_production { --st: #0d9488; } .st-final_qa { --st: #65a30d; } .st-completed { --st: #16a34a; } .st-archived { --st: #9ca3af; }

/* Jobs filter bar (M1 feedback 04.2) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filters .inp { height: 36px; width: auto; min-width: 140px; flex: 0 1 auto; }
.filters input.inp { flex: 1 1 240px; }
@media (max-width: 700px) { .filters .inp, .filters input.inp { flex: 1 1 100%; } }
.row[data-href] { cursor: pointer; border-radius: 10px; }
.row[data-href]:hover { background: var(--surface-2, rgba(127,127,127,.06)); }

/* M1 feedback 06.2: long file names wrap onto two lines instead of breaking the layout */
.file .p a { display: block; min-width: 0; }
.file .p b { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
