/* AB Studio — ABGEN design language: Gilroy, square corners, hairlines, one orange accent.
   Mobile-first; desktop gets a rail + list + detail layout from 960px. */
@font-face { font-family: Gilroy; font-weight: 500; font-display: swap; src: url(/fonts/Gilroy-Medium.ttf) format('truetype'); }
@font-face { font-family: Gilroy; font-weight: 600; font-display: swap; src: url(/fonts/Gilroy-SemiBold.ttf) format('truetype'); }
@font-face { font-family: Gilroy; font-weight: 700; font-display: swap; src: url(/fonts/Gilroy-Bold.ttf) format('truetype'); }
@font-face { font-family: Gilroy; font-weight: 800; font-display: swap; src: url(/fonts/Gilroy-ExtraBold.ttf) format('truetype'); }
@font-face { font-family: Gilroy; font-weight: 900; font-display: swap; src: url(/fonts/Gilroy-Heavy.ttf) format('truetype'); }

:root {
  --bg: #f0f0f5; --surface: #ffffff; --surface-2: #e7e7ee; --line: #dadae3; --line-2: #c4c4cf;
  --text: #02060c; --muted: #6b7080; --faint: #a3a7b3; --ink: #02060c; --on-ink: #ffffff;
  --accent: #ff5200; --accent-press: #e04800; --accent-soft: #fff0e8;
  --ok: #0f8a4b; --warn: #b26a00; --bad: #d23a2a; --info: #3d4a63;
  --rim: #02060c;
  --tab-h: 60px; --g: 16px;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  --font: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080b; --surface: #101217; --surface-2: #181b22; --line: #23262f; --line-2: #343844;
    --text: #f2f2f6; --muted: #949aa8; --faint: #5f6471; --ink: #f2f2f6; --on-ink: #07080b;
    --accent-soft: #2a1408; --ok: #2fbf74; --warn: #e3a23b; --bad: #f0604f; --info: #a9b3c7;
    --rim: #ff5200;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; border-radius: 0; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 500 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.cap { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- logo ---------- */
.shield { display: block; flex: none; object-fit: contain; }
.shield .sh-o { fill: var(--rim); }
.shield .sh-i { fill: #02060c; stroke: var(--accent); stroke-width: 2.2; }
.shield .sh-t { fill: #fff; font: 900 50px Gilroy, sans-serif; letter-spacing: -1px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .shield { width: 30px; height: 33px; }
.brand .wm { display: grid; line-height: 1; }
.brand .wm b { font-weight: 800; font-size: 17px; letter-spacing: .2em; }
.brand .wm small { margin-top: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .3em; color: var(--muted); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .08s; }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:active { background: var(--accent-press); }
.btn.ghost { border-color: transparent; background: none; }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn:disabled { opacity: .4; }
.btn .arrow { margin-left: auto; display: flex; }
.btn.block:has(.arrow) { justify-content: flex-start; padding: 0 20px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--text); flex: none; }
.icon-btn:active { background: var(--surface-2); }

/* status label: small square + caps */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.st::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: none; }
.st.w { color: var(--accent); } .st.w::before { animation: pulse 1.2s ease-in-out infinite; }
.st.n { color: var(--warn); } .st.r { color: var(--accent); } .st.a { color: var(--ok); } .st.f { color: var(--bad); } .st.q { color: var(--info); }
.st.x { color: var(--faint); }
@keyframes pulse { 50% { opacity: .2; } }
.sq { width: 7px; height: 7px; background: var(--accent); flex: none; animation: pulse 1.2s ease-in-out infinite; }

input.text, select.sel, textarea.big { width: 100%; border: 1px solid var(--line-2); background: var(--surface); padding: 14px 16px; font-size: 16px; font-weight: 500; }
input.text::placeholder, textarea::placeholder { color: var(--faint); }
select.sel { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
input.text:focus, textarea:focus, select.sel:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; z-index: 1; cursor: pointer; }
.switch span { position: absolute; inset: 0; border: 1px solid var(--line-2); background: var(--surface-2); transition: .2s var(--ease); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: var(--surface); border: 1px solid var(--line-2); transition: .2s var(--ease); }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(22px); border-color: transparent; }

/* tabs (underline) */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 12px 0 11px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); position: relative; }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.tabs .n { margin-left: 6px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; padding: calc(var(--st) + 24px) 24px calc(var(--sb) + 24px); }
.login-card { width: min(380px, 100%); margin: auto; display: grid; gap: 28px; }
.login-mark { display: grid; justify-items: start; gap: 22px; }
.login-mark .shield { width: 64px; height: 70px; }
.login-mark h1 { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: .14em; line-height: 1; }
.login-mark p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.login-step { display: grid; gap: 12px; }
.login-step label { color: var(--muted); }
.login-step input { height: 56px; }
.login-step input.otp { font-size: 30px; font-weight: 800; letter-spacing: .6em; text-indent: .6em; text-align: center; font-variant-numeric: tabular-nums; height: 68px; }
.login-links { display: flex; justify-content: space-between; }
.linkish { border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 0; }
.linkish:active { color: var(--text); }
.login-foot { text-align: center; color: var(--faint); }
.err { color: var(--bad); margin: 0; font-size: 14px; font-weight: 600; }

/* ---------- app shell ---------- */
.app { height: 100dvh; display: grid; grid-template-columns: 1fr; }
.pane { height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; min-width: 0; }
.list-pane { padding-bottom: calc(var(--tab-h) + var(--sb) + 24px); }
.app[data-view="jobs"] .main-pane { display: none; }
.app:not([data-view="jobs"]) .list-pane { display: none; }
.app:not([data-view="job"]) .main-pane { padding-bottom: calc(var(--tab-h) + var(--sb) + 24px); }
.app[data-view="job"] .tabbar { display: none; }
.main-pane.enter { animation: slidein .26s var(--ease); }
@keyframes slidein { from { transform: translateX(20px); opacity: .5; } to { transform: none; opacity: 1; } }

.tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--sb)); padding-bottom: var(--sb);
  display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(20px); -webkit-backdrop-filter: saturate(1.4) blur(20px); border-top: 1px solid var(--line); }
.tabbar .rail-logo { display: none; }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); position: relative; }
.tabbar a.on { color: var(--text); }
.tabbar a.on::before { content: ""; position: absolute; top: -1px; left: 50%; width: 28px; margin-left: -14px; height: 2px; background: var(--accent); }
.tabbar a.on svg.i { color: var(--accent); }
.tabbar a .dot { position: absolute; top: 7px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; background: var(--accent); color: #fff; font-size: 10px; letter-spacing: 0; display: grid; place-items: center; }

/* header bars */
.bar { position: sticky; top: 0; z-index: 10; padding: calc(var(--st) + 10px) var(--g) 10px; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(20px); -webkit-backdrop-filter: saturate(1.4) blur(20px); }
.bar.line { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); }
.bar .row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.bar .grow { flex: 1; }
.bar h1, .title { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.bar .tt { flex: 1; min-width: 0; }
.bar .tt b { display: block; font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.bar .tt small { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin-top: 2px; min-width: 0; }
.bar .tt small > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 6px var(--g) 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
.content > * { min-width: 0; }
.page-head { padding: 4px var(--g) 0; }
.page-head .title { margin-top: 2px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.section-head .cap { color: var(--muted); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 14px 0 14px 12px; border-left: 1px solid var(--line); min-width: 0; }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats .cap { display: block; font-size: 9.5px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats b { display: block; margin-top: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats b small { font-size: 14px; font-weight: 700; margin-left: 1px; color: var(--muted); }

@media (max-width: 380px) { .stats b { font-size: 21px; } .stats > div { padding-left: 8px; } }

/* ---------- working card ---------- */
.work { display: block; min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); padding: 16px; }
.work .wm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work h3 { overflow-wrap: anywhere; }
.work .wh { display: flex; align-items: center; gap: 10px; }
.work .wh .shield { width: 18px; height: 20px; }
.work .wh .cap { color: var(--accent); flex: 1; }
.work .wh .pct { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.work h3 { margin: 12px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.work .wm { margin-top: 6px; color: var(--muted); }
.work .bar-p { margin-top: 14px; height: 3px; background: var(--surface-2); overflow: hidden; }
.work .bar-p i { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.work .bar-p.ind i { width: 30% !important; animation: indet 1.6s var(--ease) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.steps { margin-top: 14px; display: grid; border-top: 1px solid var(--line); }
.steps > div { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.steps > div:last-child { border-bottom: 0; padding-bottom: 0; }
.steps .k { width: 18px; height: 18px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.steps .completed .k { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps .completed .k svg { width: 12px; height: 12px; stroke-width: 2.4; }
.steps .in_progress .k { border-color: var(--accent); }
.steps .in_progress .k::after { content: ""; width: 6px; height: 6px; background: var(--accent); animation: pulse 1.2s infinite; }
.steps .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps .completed .t { color: var(--muted); }
.steps .in_progress .t { font-weight: 700; }
.steps .s { font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.steps .in_progress .s { color: var(--accent); }
.work .feed { margin-top: 12px; display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); }
.work .feed div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work .feed div::before { content: "— "; color: var(--faint); }
.work.compact h3 { font-size: 18px; margin-top: 10px; }
.work.compact .now-line { margin-top: 8px; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idle { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }
.idle .shield { width: 18px; height: 20px; opacity: .9; }

/* ---------- queue + job rows ---------- */
.next { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.next .n { font-size: 12px; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.next .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nextlist { margin-top: 8px; border-top: 1px solid var(--line); }
.nextlist.editing .next { grid-template-columns: 34px minmax(0, 1fr) auto; background: var(--bg); touch-action: none; user-select: none; -webkit-user-select: none; }
.next .grip { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -6px; color: var(--muted); cursor: grab; touch-action: none; }
.next .grip svg { width: 18px; height: 18px; }
.next .pen { display: grid; place-items: center; width: 34px; height: 34px; color: var(--text); border: 1px solid var(--line); }
.next .pen svg { width: 15px; height: 15px; }
.next.drag { position: relative; z-index: 5; box-shadow: 0 10px 30px rgba(2, 6, 12, .18); border-color: var(--accent); }
.next.drag .grip { cursor: grabbing; color: var(--accent); }
.section-head:has(.qedit-btn) { justify-content: flex-start; }
.section-head:has(.qedit-btn) .cap { margin-left: auto; }
.qhint { margin-top: 8px; }
.sheet-panel .menu .menu-a { color: var(--text); text-decoration: none; }
.saudio { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); grid-column: 1 / -1; }
.saudio .an { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 13px; text-transform: capitalize; }
.saudio .an svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.saudio audio { width: 100%; height: 36px; }
.next .m { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.list { border-top: 1px solid var(--line); }
.jrow { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px 0; align-items: center; border-bottom: 1px solid var(--line); position: relative; }
.jrow:active, .jrow.on { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.jrow.on::before { content: ""; position: absolute; left: calc(-1 * var(--g)); top: 0; bottom: 0; width: 3px; background: var(--accent); }
.jrow .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jrow b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; margin-top: 5px; }
.jrow .meta { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.jrow .meta i { font-style: normal; color: var(--line-2); }
.jrow .when { font-size: 12px; color: var(--faint); font-weight: 600; white-space: nowrap; }
.th { width: 72px; height: 72px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; color: var(--faint); position: relative; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th .v { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--on-ink); font-size: 10px; font-weight: 800; padding: 2px 5px; letter-spacing: .06em; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: grid; gap: 18px; justify-items: center; }
.empty .shield { width: 40px; height: 44px; opacity: .2; }

/* ---------- new job ---------- */
.form { display: grid; gap: 30px; }
.fs { display: grid; gap: 12px; }
.fs > .lab { display: flex; align-items: baseline; gap: 10px; }
.fs > .lab .cap { color: var(--text); }
.fs > .lab .ix { font-size: 11px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.fs > .lab .hint { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.opts.c3 { grid-template-columns: repeat(3, 1fr); }
.opts.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.len-row { grid-template-columns: 1fr auto auto; margin-top: 8px; }
.opt { border: 0; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--surface); padding: 14px; text-align: left; min-height: 52px; display: grid; gap: 2px; align-content: center; transition: background .15s, color .15s; }
.opt b { font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.opt small { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.opt.on { background: var(--accent); color: #fff; }
.opt.on small { color: rgba(255,255,255,.82); }
.opts.c6 .opt { padding: 0; text-align: center; justify-content: center; font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.ratios { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ratio { border: 1px solid var(--line-2); background: var(--surface); padding: 12px 4px 10px; display: grid; justify-items: center; gap: 10px; align-content: end; min-height: 96px; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; position: relative; }
.ratio .shape { border: 1.5px solid currentColor; }
.ratio.on { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ratio.on .tick { position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.ratio.on .tick svg { width: 11px; height: 11px; stroke-width: 2.6; }
.ratio .plus { width: 26px; height: 26px; display: grid; place-items: center; }
.custom-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; }
.custom-row input { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.custom-row .x { color: var(--muted); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border: 1px solid var(--accent); color: var(--accent); background: var(--accent-soft); font-size: 13.5px; font-weight: 700; }
.chip button { border: 0; background: none; color: inherit; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; }
.chip button svg { width: 14px; height: 14px; }
textarea.big { min-height: 200px; resize: none; line-height: 1.55; }
.ta-wrap { position: relative; }
.ta-wrap .count { position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.rowset { border-top: 1px solid var(--line); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting b { display: block; font-size: 15.5px; font-weight: 700; }
.setting small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; font-size: 12px; color: var(--muted); text-align: center; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 7px; font-size: 11px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.tile .rm { position: absolute; top: 0; right: 0; width: 28px; height: 28px; border: 0; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; z-index: 2; }
.tile .rm svg.i { width: 14px; height: 14px; stroke-width: 2; }
.tile .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.35); overflow: hidden; z-index: 2; }
.tile .prog i { display: block; height: 100%; background: var(--accent); }
.tile .bad { position: absolute; inset: 0; background: rgba(210,58,42,.8); color: #fff; display: grid; place-items: center; z-index: 2; font-weight: 700; }
.tile.add { border: 1px dashed var(--line-2); background: var(--surface); color: var(--text); gap: 6px; align-content: center; font-weight: 700; font-size: 13px; }
.tile.add svg.i { color: var(--accent); }
.tiles:has(.tile:only-child) { grid-template-columns: 1fr; }
.tiles:has(.tile:only-child) .tile.add { aspect-ratio: auto; height: 96px; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 15px; }
.tiles:has(.tile:only-child) .tile.add small { color: var(--muted); font-weight: 500; font-size: 13px; }
.stickybtn { position: sticky; bottom: -24px; z-index: 5; margin: 0 calc(-1 * var(--g)); padding: 12px var(--g); background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(20px); backdrop-filter: saturate(1.4) blur(20px); border-top: 1px solid var(--line); }
.stickybtn .btn { min-height: 56px; font-size: 16px; }

/* ---------- thread ---------- */
.thread { padding: 4px var(--g) 8px; display: flex; flex-direction: column; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.av { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.av.studio { background: transparent; }
.av.studio .shield { width: 32px; height: 36px; }
.mh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mh b { font-size: 14.5px; font-weight: 700; }
.mh .tag { font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mh .tag.q { color: var(--warn); } .mh .tag.e { color: var(--bad); } .mh .tag.c { color: var(--accent); }
.mh time { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 600; white-space: nowrap; }
.mb { margin-top: 4px; font-size: 15.5px; line-height: 1.5; word-wrap: break-word; }
.mb a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.msg.q .mb { border-left: 2px solid var(--warn); padding-left: 12px; }
.qnote { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sys { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.sys::before { content: ""; width: 5px; height: 5px; background: var(--line-2); flex: none; }
.sys time { margin-left: auto; letter-spacing: .04em; }
.prog-line { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.prog-line::before { content: ""; width: 5px; height: 5px; background: var(--accent); justify-self: center; margin-top: 8px; }
.atts { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; margin-top: 10px; }
.atts audio { width: 100%; grid-column: 1 / -1; }
.deliv { margin: 16px 0; border: 1px solid var(--line-2); background: var(--surface); }
.deliv .dh { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.deliv .dh .shield { width: 16px; height: 18px; }
.deliv .dh b { font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.deliv .dh time { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.deliv .note { padding: 12px 14px 0; font-size: 15px; line-height: 1.5; }
.deliv .media { margin-top: 12px; background: #000; }
.deliv video { display: block; width: 100%; max-height: 72dvh; background: #000; object-fit: contain; }
.deliv img.still { display: block; width: 100%; }
.deliv .fileinfo { padding: 12px 14px 0; display: grid; gap: 2px; }
.deliv .fileinfo b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deliv .fileinfo small { font-size: 12.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.deliv .tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px 14px 0; }
.deliv .capbox { margin: 12px 14px 0; border: 1px solid var(--line); background: var(--bg); }
.deliv .capbox .ch { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 0 12px; }
.deliv .capbox .ch .cap { color: var(--muted); font-size: 9.5px; }
.deliv .capbox p { margin: 0; padding: 4px 12px 12px; font-size: 14px; white-space: pre-wrap; }
.deliv .decide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 14px; }
.deliv .decide .btn, .deliv .tools .btn { min-width: 0; padding: 0 12px; }
.deliv .done { display: flex; justify-content: space-between; align-items: center; padding: 14px; }
.deliv .past { padding: 12px 14px 14px; }
.stars { display: inline-flex; gap: 2px; }
.stars button { width: 32px; height: 32px; border: 0; background: none; color: var(--line-2); padding: 0; display: grid; place-items: center; }
.stars button.on { color: var(--accent); }
.stars svg.i { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.vers { display: flex; gap: 6px; padding: 12px var(--g) 0; overflow-x: auto; scrollbar-width: none; }
.vers a { flex: none; min-width: 44px; height: 32px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vers a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
#work .work { margin: 16px 0 4px; }
.queued-card { margin: 16px 0 4px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14.5px; }
.queued-card .cap { color: var(--info); }
.composer { position: sticky; bottom: 0; z-index: 10; padding: 8px var(--g) calc(var(--sb) + 8px); background: linear-gradient(to bottom, transparent, var(--bg) 14px); }
.cbox { border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 6px 24px rgba(2, 6, 12, .08); transition: border-color .15s, box-shadow .15s; cursor: text; }
.cbox:focus-within { border-color: var(--ink); box-shadow: 0 8px 28px rgba(2, 6, 12, .12); }
.cbox.drag { border-color: var(--accent); border-style: dashed; }
.cbox .chips-row { display: flex; gap: 6px; overflow-x: auto; padding: 10px 10px 0; scrollbar-width: none; }
.cbox .chips-row .tile { width: 60px; flex: none; }
.cbox textarea { display: block; width: 100%; min-height: 48px; max-height: 38dvh; resize: none; border: 0; padding: 13px 14px 4px; background: none; font-size: 16px; line-height: 1.45; }
.cbox textarea:focus { outline: none; }
.ctools { display: flex; align-items: center; gap: 8px; padding: 4px 6px 6px; }
.ctools .hint { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 600; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbtn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: none; color: var(--text); flex: none; }
.cbtn:active { background: var(--surface-2); }
.cbtn svg.i { width: 20px; height: 20px; }
.send { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: var(--accent); color: #fff; flex: none; transition: background .15s, transform .08s; }
.send:active { transform: scale(.94); }
.send:disabled { background: var(--surface-2); color: var(--faint); }
.send svg.i { width: 20px; height: 20px; stroke-width: 2.2; }

/* ---------- library ---------- */
.searchbar { position: relative; }
.searchbar svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 19px; height: 19px; }
.searchbar input { padding-left: 44px; height: 48px; }
.kinds { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g); border-bottom: 1px solid var(--line); }
.kinds::-webkit-scrollbar, .vers::-webkit-scrollbar { display: none; }
.kinds button { flex: none; border: 0; background: none; padding: 12px 0 11px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); position: relative; }
.kinds button.on { color: var(--text); }
.kinds button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.agrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.acard { background: var(--surface); overflow: hidden; text-align: left; border: 0; padding: 0; }
.acard .ath { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); overflow: hidden; }
.acard .ath img { width: 100%; height: 100%; object-fit: cover; }
.acard .ath.contain { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 50% / 16px 16px; }
.acard .ath.contain img { object-fit: contain; padding: 14px; }
.acard .ab { padding: 10px 12px 12px; }
.acard .ab b { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard .ab small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.libcount { color: var(--muted); }

/* ---------- inbox ---------- */
.notice { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.notice time { display: block; color: var(--faint); font-size: 12px; font-weight: 600; margin-bottom: 4px; }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-bg { position: absolute; inset: 0; background: rgba(2,6,12,.5); animation: fade .2s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; background: var(--surface);
  padding: 20px var(--g) calc(var(--sb) + 16px); animation: up .28s var(--ease); display: grid; gap: 14px; border-top: 2px solid var(--accent); }
.sheet-panel h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.sheet-panel .menu { border-top: 1px solid var(--line); }
.sheet-panel .menu button, .sheet-panel .menu .menu-a { display: flex; width: 100%; align-items: center; gap: 14px; min-height: 54px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 16px; font-weight: 600; text-align: left; }
.sheet-panel .menu button.on { color: var(--accent); }
.sheet-panel .menu button.danger { color: var(--bad); }
.sheet-panel .preview { background: var(--surface-2); }
.sheet-panel .preview img, .sheet-panel .preview video { display: block; width: 100%; max-height: 50dvh; object-fit: contain; background: #000; }
.sheet-panel .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.sheet-panel .kv dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.sheet-panel .kv dd { margin: 0; overflow-wrap: anywhere; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 60; left: var(--g); right: var(--g); top: calc(var(--st) + 10px); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; background: var(--ink); color: var(--on-ink); padding: 14px 16px; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 12px 32px rgba(2,6,12,.28); display: flex; justify-content: space-between; gap: 12px; align-items: center; animation: drop .28s var(--ease); border-left: 3px solid var(--accent); }
.toast a { color: var(--accent); font-weight: 800; flex: none; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  :root { --g: 28px; }
  .app { grid-template-columns: 88px 420px 1fr; }
  .tabbar { position: static; height: 100dvh; padding: 22px 0; grid-template-columns: 1fr; grid-auto-rows: 76px; align-content: start; border-top: 0; border-right: 1px solid var(--line); background: var(--surface); }
  .tabbar .rail-logo { display: grid; place-items: center; height: 70px; margin-bottom: 14px; }
  .tabbar .rail-logo .shield { width: 34px; height: 37px; }
  .tabbar a.on::before { top: 18px; bottom: 18px; left: 0; width: 2px; height: auto; margin: 0; }
  .tabbar a .dot { top: 12px; }
  .app .list-pane, .app[data-view="jobs"] .main-pane, .app:not([data-view="jobs"]) .list-pane { display: block; }
  .app[data-view="job"] .tabbar { display: grid; }
  .list-pane { border-right: 1px solid var(--line); padding-bottom: 28px; }
  .main-pane, .app:not([data-view="job"]) .main-pane { padding-bottom: 28px; }
  .main-pane > .narrow { max-width: 780px; margin: 0 auto; }
  .back-btn { display: none !important; }
  .stickybtn { bottom: -28px; }
  .agrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 480px; transform: translate(-50%, -50%); animation: fade .2s; }
  .deliv video { max-height: 64vh; }
  .stats b { font-size: 24px; }
  .list-pane .stats .cap { font-size: 9px; }
}
.opts:not(.c6) .opt:last-child:nth-child(odd) { grid-column: span 2; }

/* brand / style picker */
.hintbtn { margin-left: auto; border: 0; background: none; padding: 0; font-size: 12px; font-weight: 700; color: var(--accent); }
#styleRow:empty { display: none; }
.plist { border-top: 1px solid var(--line); max-height: 52dvh; overflow-y: auto; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g); }
.prow { display: flex; width: 100%; align-items: center; gap: 12px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.prow .pt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.prow b { font-size: 15.5px; font-weight: 700; }
.prow small { font-size: 12.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prow .pk { width: 22px; height: 22px; display: grid; place-items: center; flex: none; border: 1.5px solid var(--line-2); }
.prow.on .pk { background: var(--accent); border-color: var(--accent); color: #fff; }
.prow.on .pk svg { width: 14px; height: 14px; stroke-width: 2.6; }
.prow.on b { color: var(--accent); }

/* stages */
.stg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 14px; }
.stg i { height: 4px; background: var(--surface-2); }
.stg i.d { background: var(--accent); }
.stg i.c { background: linear-gradient(90deg, var(--accent) 50%, var(--surface-2) 50%); background-size: 200% 100%; animation: stgc 1.6s linear infinite; }
@keyframes stgc { from { background-position: 100% 0; } to { background-position: 0 0; } }
.stg-l { margin-top: 10px; display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.stg-l b { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.stg-l span { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps.stages > div { align-items: start; }
.steps.stages .k { margin-top: 1px; }
.steps.stages .t { white-space: normal; }
.steps.stages .pending .t { color: var(--faint); }
.steps .sd { margin-top: 4px; font-weight: 500; font-size: 13.5px; color: var(--text); display: grid; gap: 2px; }
.steps .sd .sub { color: var(--muted); font-size: 12.5px; }
.stagecard { margin: 14px 0; border: 1px solid var(--line-2); background: var(--surface); }
.stagecard .sh { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.stagecard .sn { font-size: 11px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.stagecard .sh b { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.stagecard .sh time { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 600; }
.stagecard .mb { padding: 10px 14px 14px; margin: 0; }
.sfigs { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.sfig { display: block; background: #000; }
.sfig img { display: block; width: 100%; height: auto; }
.sfig video { display: block; width: 100%; max-height: 60dvh; object-fit: contain; }
.md .mh2 { font-weight: 800; font-size: 14px; letter-spacing: .02em; margin: 10px 0 2px; }
.md .mh2:first-child { margin-top: 0; }
.md .li { position: relative; padding-left: 16px; }
.md .li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; background: var(--accent); }
.md .li.n { padding-left: 24px; }
.md .li.n::before { display: none; }
.md .li.n span { position: absolute; left: 0; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px; }
.md .gap { height: 8px; }
.md code { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 4px; }
.mb .tbl, .md .tbl { overflow-x: auto; margin: 8px 0; border: 1px solid var(--line); }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; }
.md th, .md td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md th { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg); white-space: nowrap; }
.md tr:last-child td { border-bottom: 0; }
/* push banner */
.pushcta { display: flex; align-items: center; gap: 10px; padding: 12px 6px 12px 14px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--surface); }
.pushcta > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pushcta b { font-size: 14.5px; font-weight: 700; }
.pushcta small { font-size: 12.5px; color: var(--muted); }
.pushcta .icon-btn { width: 36px; height: 36px; }
.pushcta .icon-btn svg { width: 18px; height: 18px; }

/* ---------- feedback ---------- */
.fbcta { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.fbcta > svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.fbcta > svg:last-child { margin-left: auto; color: var(--muted); }
.fbcta span { display: grid; gap: 2px; }
.fbcta small { font-weight: 500; font-size: 12px; color: var(--muted); }
.fstars { display: flex; align-items: center; gap: 4px; margin: 14px 0 18px; }
.fstars button { width: 46px; height: 46px; border: 0; padding: 0; background: none; color: var(--line-2); display: grid; place-items: center; cursor: pointer; transition: transform .12s; }
.fstars button:active { transform: scale(.9); }
.fstars button.on { color: var(--accent); }
.fstars svg { width: 34px; height: 34px; fill: currentColor; stroke: none; }
.fstars span { margin-left: 10px; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.asps { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 8px 0 14px; }
.asps button { display: grid; gap: 1px; justify-items: start; min-height: 50px; padding: 8px 10px; border: 1px solid var(--line-2); background: var(--surface, transparent); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; text-align: left; cursor: pointer; }
.asps em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; min-height: 12px; }
.asps button.g { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.asps button.g em { color: var(--ok); }
.asps button.i { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.asps button.i em { color: var(--accent); }
#fsNote { width: 100%; min-height: 84px; resize: none; }
.decide2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; margin-top: 14px; }
.fbcard { margin: 12px 0 12px 48px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); display: grid; gap: 8px; }
.fbcard .fh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fbcard .fh time { margin-left: auto; font-size: 12px; color: var(--muted); }
.stars.ro i { display: grid; color: var(--line-2); }
.stars.ro i.on { color: var(--accent); }
.stars.ro svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid; }
.fchip.g { color: var(--ok); }
.fchip.g::before { content: '✓ '; }
.fchip.i { color: var(--accent); }
.fchip.i::before { content: '↑ '; }
.sheet-panel .lab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }
.sheet-panel .lab .hint { font-size: 12px; color: var(--muted); }
