/* X CVLT Client Portal - the Project Manager's matte look. Tokens only (styles/tokens.css):
   no color literals in this file. Layout: Dashboard -> Project (table) -> Sub Project (tabs). */

/* v0.15.0 (Max: "use this font through out the portal pages"; his licence covers web use): Gilmer, self-hosted from
   public/fonts (WOFF2 made from X:\X CVLT BRAND\01_BRANDING\FONTS\Gilmer Font\OTF). Medium is marked 600 inside the file, so it
   answers 500 and 600; Heavy answers 800 and 900. Gilmer Outline is a display face of its own. */
@font-face { font-family: "Gilmer"; src: url("/fonts/gilmer-light.woff2") format("woff2"); font-weight: 100 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilmer"; src: url("/fonts/gilmer-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilmer"; src: url("/fonts/gilmer-medium.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilmer"; src: url("/fonts/gilmer-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilmer"; src: url("/fonts/gilmer-heavy.woff2") format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilmer Outline"; src: url("/fonts/gilmer-outline.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100vh; background-color: var(--page); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(var(--page-dots) .8px, transparent .8px); background-size: 26px 26px;
}
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-xs); }
main:focus { outline: none; }
[hidden] { display: none !important; }
.spacer { flex: 1; }
.muted { color: var(--ink-50); }
.faint { color: var(--ink-35); }
.small { font-size: 11px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

/* ---------- app bar ---------- */
.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 26px; padding: 16px 26px 14px; background: linear-gradient(var(--page) 70%, transparent); }
/* v0.14.0: the studio's logo, top left of every page (public/brand/xcvlt-studios.webp, 1383 x 264 - three times its size here); v0.14.1: 88px (Max: "2x bigger") */
.brand-logo { flex: none; display: flex; align-items: center; }
.brand-logo img { display: block; height: 88px; width: auto; }
.brand-logo + .crumbs { padding-left: 26px; border-left: 1px solid var(--fill-7); min-height: 28px; }
.brand-logo-img { display: block; height: 40px; width: auto; margin: 0 0 26px; }
.crumbs { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink-42); font-size: 12px; font-weight: 500; }
.crumbs a:hover { color: var(--ink); }
.crumbs .on { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--ink-22); }
.who { color: var(--ink-42); font-size: 11px; white-space: nowrap; }
.preview-banner { margin: 0 30px 12px; padding: 10px 14px; border-radius: var(--r-md); font-size: 12px; font-weight: 700; background: var(--warn-fill); border: 1px solid var(--warn-line); color: var(--warn); }
main.page { padding: 6px 30px 10px; max-width: 2200px; margin: 0 auto; }

/* ---------- controls ---------- */
.ibtn { width: 33px; height: 33px; flex: none; border-radius: var(--r-pill); background: var(--fill-5); border: 1px solid var(--fill-7); color: var(--ink-72); display: inline-flex; align-items: center; justify-content: center; }
.ibtn:hover { background: var(--fill-8); border-color: var(--line-5); color: var(--ink); }
.ibtn svg { width: 16px; height: 16px; }
.btn { height: 30px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-4); background: var(--fill-5); color: var(--ink); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; transition: background var(--t-fast); }
.btn:hover { background: var(--fill-8); }
.btn svg { width: 14px; height: 14px; }
.btn.light { background: var(--btn-light); color: var(--ink-dark); border: 0; box-shadow: var(--btn-light-shadow); }
.btn.ok { background: var(--ok-fill); border-color: var(--ok-line); color: var(--ok); }
.btn.bad { border-color: var(--bad-line); color: var(--bad); }
.btn.small { height: 27px; padding: 0 12px; font-size: 10px; }
.btn.big { height: 40px; padding: 0 18px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: var(--r-pill); background: var(--well); border: 1px solid var(--fill-6); box-shadow: var(--well-shadow); flex: none; }
.seg button { height: 27px; padding: 0 13px; border-radius: var(--r-pill); border: 1px solid transparent; background: none; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--fill-8); border-color: var(--line-6); color: var(--ink); box-shadow: var(--inset-on), var(--glow-on); }
.seg.small button { height: 24px; padding: 0 10px; font-size: 9.5px; }
.seg.square { border-radius: var(--r-md); padding: 2px; background: var(--input-bg); }
.seg.square button { border-radius: var(--r-sm); height: 28px; letter-spacing: .1em; }
.seg.square button[aria-pressed="true"] { background: var(--seg-on); border-color: transparent; box-shadow: var(--inset-hi); }
.seg .n { margin-left: 6px; padding: 1px 5px; border-radius: var(--r-xs); background: var(--fill-5); font-size: 8.5px; }

.chip { height: 23px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: var(--r-pill); font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; background: var(--fill-5); border: 1px solid var(--fill-7); color: var(--ink-62); white-space: nowrap; }
.chip.warn { background: var(--warn-fill); border-color: var(--warn-line); color: var(--warn); }
.chip.warn::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 9px var(--warn); }

/* option tags: tinted by --h (a --c-* named color) */
.pill { height: 26px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: var(--r-pill); font-size: 10px; font-weight: 500; white-space: nowrap;
  --h: var(--c-gray); background: color-mix(in srgb, var(--h) 11%, transparent); border: 1px solid color-mix(in srgb, var(--h) 30%, transparent); color: color-mix(in srgb, var(--h) 98%, var(--ink)); }
.pill.tiny { height: 19px; padding: 0 7px; font-size: 9px; gap: 5px; }
.pill.st { background: var(--fill-5); border-color: var(--line-4); color: var(--ink-85); }
.pill.st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--h); flex: none; }
.h-gray { --h: var(--c-gray); } .h-brown { --h: var(--c-brown); } .h-orange { --h: var(--c-orange); } .h-amber { --h: var(--c-amber); }
.h-green { --h: var(--c-green); } .h-teal { --h: var(--c-teal); } .h-blue { --h: var(--c-blue); } .h-purple { --h: var(--c-purple); }
.h-pink { --h: var(--c-pink); } .h-red { --h: var(--c-red); }

.input, textarea.input, select.input { width: 100%; min-height: 40px; padding: 10px 12px; border-radius: var(--r-md); background: var(--input-bg); border: 1px solid var(--fill-7); color: var(--ink); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus { outline: 2px solid var(--ink-50); outline-offset: 1px; }
.input.code { font-family: var(--mono); font-size: 26px; letter-spacing: .4em; text-align: center; min-height: 54px; }
.field { display: block; margin: 12px 0; }
.field > span { display: block; font-size: 8.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-42); margin-bottom: 7px; }
.error-text { color: var(--bad); font-size: 12px; margin: 8px 2px 0; }
.note { font-size: 11.5px; color: var(--ink-50); }
.switch { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: var(--r-pill); background: var(--fill-6); border: 1px solid var(--fill-7); position: relative; flex: none; transition: background var(--t-fast); cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-50); transition: transform var(--t-fast); }
.switch:checked { background: var(--ok-fill); border-color: var(--ok-line); }
.switch:checked::after { transform: translateX(16px); background: var(--ink); }

/* tiny caps label */
.cap { margin: 0; font-size: 8.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-35); }
.eyebrow { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-42); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ink-30); }

/* ---------- dashboard cards ---------- */
.card { background: var(--fill-3); border: 1px solid var(--line-3); border-radius: var(--r-xl); box-shadow: var(--inset-hi), var(--card-drop); padding: 17px 19px 18px; min-width: 0; display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.card-head h2.caps { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-50); }
.blades { display: inline-flex; gap: 6px; align-items: center; }
.blades i { width: 2px; height: 12px; border-radius: 1px; background: var(--blade-silver); }
.blades i + i { width: 3px; height: 15px; background: var(--blade-ember); }
.dash-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "cal cal" "inv proj"; }
.dash-grid.no-inv { grid-template-areas: "cal cal" "proj proj"; }
.cal-card { grid-area: cal; flex-direction: row; gap: 16px; padding: 20px 22px 22px; }
.inv-card { grid-area: inv; } .proj-card { grid-area: proj; }

/* calendar */
.cal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.month-title { margin: 0 6px 0 0; display: flex; align-items: baseline; gap: 11px; font-size: 38px; font-weight: 700; letter-spacing: -.025em; line-height: 1; white-space: nowrap; }
.month-title .yr { font-weight: 300; color: var(--ink-42); }
.dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-bottom: 8px; }
.dow span { font-size: 8.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-30); padding-left: 8px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(86px, 1fr); gap: 7px; }
.month-grid.week { grid-auto-rows: minmax(220px, 1fr); }
.day { border-radius: 13px; padding: 8px; display: flex; flex-direction: column; gap: 3px; background: var(--fill-2); border: 1px solid var(--fill-5); min-width: 0; overflow: hidden; text-align: left; }
.day:hover { background: var(--fill-5); border-color: var(--line-5); }
.day.out { background: var(--fill-1); }
.day .n { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12.5px; font-weight: 500; color: var(--ink-62); flex: none; }
.day.out .n { color: var(--ink-22); }
.day.today { background: var(--fill-5); border-color: var(--line-7); box-shadow: var(--inset-on), 0 0 30px var(--fill-6); }
.day.today .n { font-weight: 700; background: var(--ink); color: var(--ink-dark); box-shadow: var(--glow-today); }
.ev { display: flex; align-items: center; gap: 7px; padding: 3px 5px; border-radius: var(--r-xs); font-size: 10.5px; font-weight: 500; color: var(--ink-95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; background: none; text-align: left; width: 100%; }
.ev:hover { background: var(--fill-6); }
.ev::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--k, var(--c-gray)); box-shadow: 0 0 9px var(--k, var(--c-gray)); }
.ev .t { font-weight: 700; color: var(--ink-50); font-size: 10px; }
.more { font-size: 8.5px; font-weight: 500; color: var(--ink-35); padding-left: 4px; }
.k-review { --k: var(--c-amber); } .k-delivery { --k: var(--c-blue); } .k-meeting { --k: var(--c-purple); } .k-show { --k: var(--c-red); }
.k-due { --k: var(--c-pink); } .k-invoice { --k: var(--c-green); } .k-other { --k: var(--c-gray); }
.agenda-list { display: flex; flex-direction: column; gap: 6px; }
.agenda-month { margin: 14px 2px 4px; }
.agenda-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--fill-2); border: 1px solid var(--line-2); text-align: left; width: 100%; color: inherit; }
.agenda-row:hover { background: var(--fill-5); border-color: var(--line-5); }
.agenda-row .d { width: 42px; text-align: center; flex: none; }
.agenda-row .d b { display: block; font-size: 20px; font-weight: 700; line-height: 1; }
.agenda-row .d small { font-size: 9.5px; color: var(--ink-42); }
.agenda-row .bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--k, var(--c-gray)); flex: none; }
.agenda-row .t { flex: 1; min-width: 0; } .agenda-row .t b { display: block; font-size: 12.5px; font-weight: 700; } .agenda-row .t small { color: var(--ink-42); font-size: 10.5px; }
.today-col { width: clamp(250px, 26%, 344px); flex: none; display: flex; flex-direction: column; gap: 8px; }
.today-card { display: flex; gap: 12px; align-items: center; padding: 15px 16px; border-radius: 18px; background: var(--fill-4); border: 1px solid var(--fill-7); box-shadow: var(--inset-hi), var(--card-drop); }
.today-card .ring { width: 46px; height: 46px; flex: none; }
.today-card .ring circle { fill: none; stroke-width: 3; }
.today-card .ring .track { stroke: var(--fill-7); } .today-card .ring .fill { stroke: var(--ok); stroke-linecap: round; }
.today-card b { display: block; font-size: 20px; font-weight: 700; } .today-card small { color: var(--ink-42); font-size: 11px; }
.todo { display: block; padding: 11px 12px; border-radius: var(--r-lg); background: var(--fill-2); border: 1px solid var(--line-2); text-align: left; width: 100%; color: inherit; }
.todo:hover { background: var(--fill-5); border-color: var(--line-5); }
.todo b { display: block; font-size: 12px; font-weight: 500; } .todo small { color: var(--ink-42); font-size: 9.5px; }
.todo.hot { background: var(--bad-fill); border-color: var(--warn-line); }
.todo-empty { padding: 11px 12px; font-size: 11px; color: var(--ink-42); border: 1px dashed var(--line-4); border-radius: var(--r-lg); }

/* invoices card */
.sum-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 8px; flex-wrap: wrap; }
.big-num { flex: 1; min-width: 160px; display: flex; flex-direction: column; justify-content: flex-end; }
.big-num span { font-size: 52px; font-weight: 300; letter-spacing: -.04em; line-height: 1.05; background: var(--big-number); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage-box { min-width: 130px; padding: 11px 13px; border-radius: var(--r-xl); background: var(--fill-3); border: 1px solid var(--line-3); }
.stage-box b { display: block; font-size: 19px; font-weight: 700; margin-top: 10px; }
.stage-box.warn { background: var(--warn-fill); border-color: var(--warn-line); box-shadow: var(--warn-glow); }
.stage-box.ok { background: var(--ok-fill); border-color: var(--ok-line); }
.inv-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 118px 104px 100px; gap: 14px; align-items: center; min-height: 56px; padding: 6px 14px; border-radius: 13px; background: var(--fill-2); border: 1px solid var(--fill-5); margin-top: 7px; width: 100%; text-align: left; color: inherit; }
.inv-row:hover { background: var(--fill-5); border-color: var(--line-5); }
.avatar { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  --h: var(--c-pink); background: color-mix(in srgb, var(--h) 12%, transparent); border: 1px solid color-mix(in srgb, var(--h) 30%, transparent); color: color-mix(in srgb, var(--h) 70%, var(--ink)); }
.inv-row .t b { display: block; font-size: 12.5px; font-weight: 700; } .inv-row .t small { display: block; margin-top: 5px; color: var(--ink-42); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-row .when { font-size: 10px; font-weight: 500; color: var(--ink-62); } .inv-row .when small { display: block; margin-top: 5px; color: var(--ink-30); font-size: 9px; }
.inv-row .when.open { color: var(--warn); }
.inv-row .amt { text-align: right; font-size: 14px; font-weight: 700; } .inv-row .amt.paid { color: var(--ok); }

/* projects card */
.proj-row { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: var(--r-xl); background: var(--fill-2); border: 1px solid var(--line-2); box-shadow: var(--inset-hi); margin-bottom: 9px; }
a.proj-row:hover { background: var(--fill-6); border-color: var(--line-5); }
.tile { width: 36px; height: 36px; border-radius: 11px; background: var(--fill-5); border: 1px solid var(--fill-7); color: var(--ink-72); display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile svg { width: 15px; height: 15px; }
.proj-row .t { flex: 1; min-width: 0; } .proj-row .t b { display: block; font-size: 13.5px; font-weight: 700; } .proj-row .t small { display: block; margin-top: 6px; font-size: 9.5px; color: var(--ink-35); }
.count { height: 24px; padding: 0 10px; border-radius: var(--r-sm); background: var(--fill-4); border: 1px solid var(--fill-7); font-size: 10px; font-weight: 500; color: var(--ink-62); display: inline-flex; align-items: center; white-space: nowrap; }
.heat { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: var(--r-pill); color: var(--ink-50); background: var(--fill-6); white-space: nowrap; }
.proj-row .date { min-width: 74px; text-align: right; font-size: 10.5px; font-weight: 500; color: var(--ink-62); }
.proj-row .date small { display: block; font-size: 7.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-30); margin-bottom: 6px; }

/* ---------- project: sub projects table ---------- */
.table-card { border-radius: var(--r-2xl); background: var(--table-bg); border: 1px solid var(--fill-6); box-shadow: var(--big-drop); position: relative; }
.table-card::before { content: ""; position: absolute; inset: 0 24px auto 24px; height: 1px; background: var(--hairline); }
.table-top { display: flex; align-items: center; gap: 16px; padding: 20px 20px 0; flex-wrap: wrap; }
.table-top h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.table-top small { display: block; margin-top: 8px; font-size: 10.5px; color: var(--ink-42); }
.table-wrap { overflow-x: auto; margin: 14px 20px 0; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 9px 9px 0 0; background: var(--panel-solid); }
.sp-table { width: 100%; border-collapse: collapse; }
.sp-table th { height: 38px; background: var(--th-bg); border-bottom: 1px solid var(--fill-6); font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-62); padding: 0 14px; text-align: left; white-space: nowrap; }
.sp-table td { height: 56px; padding: 0 14px; border-bottom: 1px solid var(--line-1); background: var(--panel-solid); white-space: nowrap; vertical-align: middle; }
.sp-table tbody tr { cursor: pointer; }
.sp-table tbody tr:hover td { background: var(--row-hover); }
.sp-table td.num { font-size: 26px; font-weight: 400; letter-spacing: -.03em; color: var(--ink-30); font-variant-numeric: tabular-nums; width: 50px; }
.name-cell { display: flex; align-items: center; gap: 11px; }
.name-cell b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.accent { display: inline-block; width: 2px; height: 22px; border-radius: 1px; background: var(--fill-6); flex: none; }
.track-cell { display: inline-flex; align-items: center; gap: 9px; }
.track-cell .glyph { width: 24px; height: 24px; border-radius: 50%; background: var(--fill-6); border: 1px solid var(--fill-7); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-62); flex: none; }
.track-cell .glyph svg { width: 11px; height: 11px; }
.track-cell b { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-85); text-transform: uppercase; letter-spacing: .02em; }
.track-cell small { font-size: 8.5px; color: var(--ink-30); }
.assets-cell { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; color: var(--ink-72); }
.assets-cell svg { width: 20px; height: 20px; } .assets-cell .track { stroke: var(--fill-7); } .assets-cell .fill { stroke: var(--done); }
.dots { display: inline-flex; padding-left: 6px; } .dots i { width: 22px; height: 22px; border-radius: 50%; margin-left: -6px; border: 1px solid var(--dark-ring); box-shadow: var(--inset-on); }
.cell-pills { display: inline-flex; gap: 5px; }
.money { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.table-foot { display: flex; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--fill-6); font-size: 10px; color: var(--ink-30); flex-wrap: wrap; }
.table-foot .n { font-weight: 500; color: var(--ink-42); }
.d { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--line-6); margin-right: 6px; } .d.ok { background: var(--ok); } .d.flight { background: var(--flight); }
.sp-cards { display: none; }

/* ---------- sub project ---------- */
.sp-head { display: flex; align-items: center; gap: 16px; min-height: 76px; margin: 0 0 14px; }
.sp-title { margin: 0; font-size: 56px; font-weight: 700; letter-spacing: -.025em; line-height: 1; text-shadow: var(--title-glow); }
.sp-head .accent { height: 46px; width: 3px; }
.tabs { display: flex; gap: 6px; flex: none; }
.tabs a { height: 44px; padding: 0 14px; border-radius: var(--r-md); display: flex; flex-direction: column; justify-content: center; gap: 4px; background: var(--tab-bg); border: 1px solid var(--fill-6); min-width: 104px; }
.tabs a:hover { border-color: var(--line-5); }
.tabs a em { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-42); }
.tabs a em::before { content: "— "; }
.tabs a span { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--tab-on); border-color: var(--tab-on); }
.tabs a[aria-current="page"] em { color: var(--ink-dark-50); } .tabs a[aria-current="page"] span { color: var(--ink-dark); }

.panel { border-radius: var(--r-lg); background: var(--panel-solid); border: 1px solid var(--fill-7); box-shadow: var(--panel-drop); min-width: 0; display: flex; flex-direction: column; min-height: 340px; }
.panel.auto { min-height: 0; }
.panel-head { min-height: 52px; padding: 8px 12px 8px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--fill-6); flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 14px; font-weight: 700; }

.panel-body { padding: 12px 14px; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }

.stat { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-50); }
.stat::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dot, var(--done)); }
.stat b { font-size: 11px; font-weight: 500; color: var(--ink-85); }
.stat.blue { --dot: var(--flight); } .stat.amber { --dot: var(--tint-amber); } .stat.violet { --dot: var(--tint-violet); } .stat.peach { --dot: var(--peach); }
.hint { margin: 0; font-size: 11px; color: var(--ink-42); }
.empty-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 20px; color: var(--ink-42); font-size: 12px; }
.empty-panel b { color: var(--ink-72); font-size: 13px; }

/* audio */

.wave { width: 100%; height: 96px; border-radius: var(--r-sm); background: var(--wave-bg); }
/* v0.6.0: the palette editor (a wide sheet: the wheel left, rules and swatches right) */
.sheet.sheet-wide { max-width: 900px; }
.pal-ed-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; margin: 12px 0 10px; }
@media (max-width: 760px) { .pal-ed-body { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.pal-ed-left { display: grid; gap: 10px; justify-items: center; }
.pal-wheel { touch-action: none; cursor: crosshair; display: block; }
.pal-bright-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; width: 100%; }
.pal-ed-right { display: grid; gap: 12px; min-width: 0; width: 100%; }
.pal-ed-head { display: flex; align-items: center; gap: 8px; }
.pal-count { font: 700 12px/1 var(--sans); min-width: 70px; text-align: center; }
.pal-rules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pal-rule { display: grid; justify-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: var(--r-sm); border: 1px solid var(--fill-6); background: var(--fill-2); color: var(--ink-62); cursor: pointer; }
.pal-rule small { font-size: 10px; line-height: 1.15; text-align: center; }
.pal-rule:hover { background: var(--fill-4); color: var(--ink); }
.pal-rule.on { background: var(--fill-6); color: var(--ink); border-color: var(--ink-42); }
.pal-fig-dot { stroke: var(--pal-fig-stroke); stroke-width: .8; }
.pal-strip { display: flex; gap: 6px; }
.pal-sw { flex: 1 1 0; min-width: 0; height: 72px; border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 6px; color: var(--on-swatch-dark); }
.pal-sw.light { color: var(--on-swatch-light); }
.pal-sw.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--pal-mk-halo); }
.pal-sw small { font: 600 10px/1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-sw i { position: absolute; top: 6px; left: 6px; font: 700 9px/1 var(--sans); font-style: normal; letter-spacing: .06em; }
.pal-ed-hexrow { display: flex; gap: 8px; align-items: center; }
.pal-hex { max-width: 140px; font-variant-numeric: tabular-nums; text-transform: uppercase; }
/* v0.6.0: the audio player - a play button per track, a playhead on the chosen track's waveform, markers that jump */
.wave-wrap { position: relative; }
.wave-wrap[hidden] { display: none; }

.wave-wrap .wave { display: block; }

/* boards */

/* notes */
.notes { display: flex; gap: 12px; flex: 1; min-height: 0; }

/* given */
.req { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 10px; border: 1px dashed var(--warn-line); background: var(--bad-fill); border-radius: var(--r-md); font-size: 12px; } .req small { width: 100%; color: var(--ink-42); }

/* treatment */

/* palette */

/* production */

/* deliveries */
.del-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.review { display: flex; gap: 16px; }
.review-frame { flex: 1.3; aspect-ratio: 16 / 9; border-radius: var(--r-md); background: var(--media-ph); border: 1px solid var(--fill-7); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-42); text-align: center; padding: 16px; overflow: hidden; }
.review-frame img { width: 100%; height: 100%; object-fit: cover; }
.review-frame svg { width: 30px; height: 30px; }
.review-side { flex: 1; min-width: 0; }
.vlabel { font-size: 38px; font-weight: 700; letter-spacing: -.025em; line-height: 1; margin: 0 0 6px; }
.review-side p { font-size: 12px; color: var(--ink-72); margin: 8px 0; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ver-row { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-radius: var(--r-md); }
.ver-row + .ver-row { margin-top: 3px; }
.ver-row.on { background: var(--fill-5); }
.ver-row > b { width: 52px; font-size: 13px; font-weight: 700; flex: none; }
.ver-row .t { flex: 1; min-width: 0; font-size: 12px; } .ver-row .t small { display: block; color: var(--ink-35); font-size: 10px; margin-top: 3px; }
.sec { margin: 16px 0 6px; }

/* ---------- sheets, viewers, toast ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 12px; animation: fade var(--t-slow); }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 22px 22px 20px; border-radius: var(--r-xl); background: var(--panel-solid); border: 1px solid var(--fill-7); box-shadow: var(--big-drop); }
.sheet h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.sheet .lede { font-size: 13px; color: var(--ink-62); margin: 0 0 6px; } .sheet .lede b { color: var(--ink); }
.inv-lines { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; }
.inv-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--fill-6); }
.inv-lines li.total { font-weight: 700; }
.payment-md { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--fill-4); font-size: 13px; }
.payment-md p { margin: 0 0 8px; } .payment-md ul, .payment-md ol { margin: 0 0 8px; padding-left: 18px; }
.progress { height: 4px; border-radius: var(--r-pill); background: var(--fill-6); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width var(--t-fast); }
@keyframes fade { from { opacity: 0; } }
.lightbox-img { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px; min-height: 0; }
.lightbox-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-xs); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: var(--r-pill); background: var(--panel-solid); border: 1px solid var(--line-4); font-size: 13px; box-shadow: var(--big-drop); }

/* ---------- sign-in, simple pages, settings ---------- */
.center-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.simple-card { width: 100%; max-width: 420px; padding: 28px 26px; border-radius: var(--r-2xl); background: var(--fill-3); border: 1px solid var(--line-3); box-shadow: var(--inset-hi), var(--big-drop); }
.simple-card h1 { margin: 0 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.simple-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.simple-page main:not(.simple-card):not(.doc) { width: 100%; max-width: 420px; padding: 28px 26px; border-radius: var(--r-2xl); background: var(--fill-3); border: 1px solid var(--line-3); }
.simple-page form { margin-top: 20px; }
.doc-page { justify-content: flex-start; }
.doc { width: 100%; max-width: 720px; padding: 28px 26px; border-radius: var(--r-2xl); background: var(--fill-3); border: 1px solid var(--line-3); }
.doc h1 { margin: 0 0 6px; } .doc h2 { font-size: 16px; margin: 24px 0 8px; } .doc p, .doc li { color: var(--ink-62); }
.settings-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.pref-row { display: grid; grid-template-columns: 1fr 58px 58px; gap: 10px; align-items: center; padding: 9px 4px; font-size: 12.5px; }
.pref-row.head { padding-top: 0; }
.pref-row + .pref-row { border-top: 1px solid var(--fill-5); }
.pref-row .switch { justify-self: center; }
.device-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; }
.device-row + .device-row { border-top: 1px solid var(--fill-5); }
.device-row .t { flex: 1; min-width: 0; } .device-row .t b { display: block; font-size: 12.5px; } .device-row .t small { color: var(--ink-42); font-size: 10.5px; }

@keyframes pulse { 50% { opacity: .5; } }
.empty-page { max-width: 520px; margin: 60px auto; text-align: center; padding: 30px; border-radius: var(--r-2xl); background: var(--fill-3); border: 1px solid var(--line-3); color: var(--ink-50); }
.empty-page b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .dash-grid, .dash-grid.no-inv { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cal" "inv" "proj"; gap: 12px; }
  .dash-grid.no-inv { grid-template-areas: "cal" "proj"; }
  .del-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .appbar { padding: 12px 14px; gap: 14px; } .brand-logo img { height: 44px; } .brand-logo + .crumbs { padding-left: 14px; } main.page { padding: 4px 12px 10px; } .preview-banner { margin: 0 12px 10px; }
}
@media (max-width: 860px) {

  .panel { min-height: 0; }
  .table-wrap, .table-foot .scroll-hint { display: none; }
  .sp-cards { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 0; }
  .sp-card { display: block; padding: 12px 14px; border-radius: var(--r-xl); background: var(--panel-solid); border: 1px solid var(--line-2); }
  .sp-card .top { display: flex; align-items: center; gap: 10px; }
  .sp-card .num { font-size: 22px; color: var(--ink-30); width: 32px; }
  .sp-card .top b { flex: 1; font-size: 15px; }
  .sp-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0 0; align-items: center; }
  .sp-card dt { font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-35); }
  .sp-card dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
  .review { flex-direction: column; }
}
@media (max-width: 760px) {
  .cal-card { flex-direction: column; padding: 14px; }
  .today-col { width: auto; }
  .month-title { font-size: 28px; }
  .month-grid { grid-auto-rows: 46px; gap: 4px; } .month-grid.week { grid-auto-rows: 46px; } .dow { gap: 4px; } .dow span { padding-left: 0; text-align: center; }
  .day { padding: 4px; border-radius: 9px; align-items: center; } .day .ev { font-size: 0; padding: 0; gap: 0; width: auto; } .day .ev::before { width: 5px; height: 5px; } .day .ev .t, .day .more { display: none; }
  .day .evs { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
  .inv-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 6px 10px; } .inv-row .when, .inv-row .pill { display: none; }
  .proj-row .count, .proj-row .heat, .proj-row .date { display: none; }
  .sp-head { flex-direction: column; align-items: flex-start; gap: 10px; } .sp-title { font-size: 38px; }
  .tabs { width: 100%; } .tabs a { flex: 1; min-width: 0; }
  .crumbs .mid, .crumbs .sep.mid, .who { display: none; }
  .notes { flex-direction: column; }
  .big-num span { font-size: 40px; }
}

/* ---------- Deliveries tab: the PM's Delivery + Preview page, read-only for clients (portal v0.3.4) ---------- */
.dl2 { display: grid; grid-template-columns: var(--dl-split, minmax(0, 1.55fr) minmax(0, 1fr)); gap: 12px; height: calc(100vh - 210px); min-height: 600px; position: relative; color: var(--dl-ink); }
.dl-panel { min-height: 0; display: flex; flex-direction: column; border-radius: 12px; background: var(--dl-panel); border: 1px solid var(--dl-l08); overflow: hidden; container-type: inline-size; }
.dl-empty { align-items: center; justify-content: center; gap: 8px; grid-column: 1 / -1; color: var(--dl-ink-45); }
.dl-empty svg { width: 30px; height: 30px; }
.dl-grip { position: absolute; top: 0; bottom: 0; width: 12px; cursor: col-resize; z-index: 2; }
.dl-grip::after { content: ""; position: absolute; top: 50%; left: 5px; width: 2px; height: 36px; margin-top: -18px; border-radius: 2px; background: var(--dl-l13); opacity: 0; transition: opacity .15s; }
.dl-grip:hover::after { opacity: 1; }
@media (max-width: 1100px) { .dl-grip { display: none; } }
.dl-head { flex: none; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--dl-l07); }
.dl-head .spacer, .dl-src .spacer, .dl-comh .spacer, .dl-crow .spacer, .dl-comfoot .spacer, .dl-foot .spacer { flex: 1; }
.dl-ico { flex: none; width: 22px; height: 22px; display: grid; place-items: center; }
.dl-ico svg { width: 20px; height: 20px; }
.dl-ico.send { color: var(--dl-icon-green); } .dl-ico.play { color: var(--dl-teal); }
.dl-title { font: 650 14px/1.2 var(--sans); white-space: nowrap; }
.dl-pill { flex: none; height: 18px; padding: 0 7px; border-radius: 999px; background: var(--dl-l07); display: grid; place-items: center; white-space: nowrap; font: 600 10.5px/1 var(--sans); color: var(--dl-ink-72); }
.dl-tray { flex: none; display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--dl-l03); border: 1px solid var(--dl-l07); }
.dl-tray button { width: 26px; height: 24px; border: 0; border-radius: 7px; display: grid; place-items: center; background: transparent; color: var(--dl-ink-60); cursor: pointer; }
.dl-tray button:hover { background: var(--dl-l08); color: var(--dl-ink); }
.dl-tray button.on { background: var(--dl-l10); color: var(--dl-ink); }
.dl-tray svg { width: 13px; height: 13px; }
.dl-sizer { flex: none; display: flex; align-items: center; gap: 6px; color: var(--dl-ink-45); }
.dl-sizer[hidden] { display: none; }
.dl-sq { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; display: block; }
.dl-sq.small { width: 8px; height: 8px; }
.dl-slider { width: 90px; accent-color: var(--dl-ink); }
.dl-tool { flex: none; height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--dl-l05); }
.dl-searchbox { width: 180px; height: 28px; box-sizing: border-box; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--dl-l08); background: var(--dl-l03); color: var(--dl-ink-45); }
.dl-searchbox svg { width: 12px; height: 12px; flex: none; }
.dl-search { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--dl-ink); font: 500 11.5px/1 var(--sans); }
.dl-search::placeholder { color: var(--dl-ink-40); }
.dl-cols { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; }
.dl-col { flex: none; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--dl-l06); background: var(--dl-parent); width: 150px; }
.dl-col.list { width: 250px; }
.dl-col.last { background: transparent; flex: 1 0 auto; min-width: 320px; width: auto; border-right: 0; }
.dl-col.grid.last { min-width: 560px; }
.dl-col.grid:nth-last-child(2) { width: 170px; }
.dl-colh { flex: none; height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; }
.dl-colh span { font: 700 9.5px/1 var(--mono); letter-spacing: .14em; color: var(--dl-ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-colh small { font: 500 10px/1 var(--mono); color: var(--dl-ink-35); white-space: nowrap; }
.dl-colb { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.dl-col.grid.last .dl-colb { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--dl-tile, 180px), 1fr)); align-content: start; gap: 8px; }
.dl-hint { margin: 10px 4px; color: var(--dl-ink-40); font-size: 12px; }
.dl-tile { padding: 5px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; min-width: 0; }
.dl-tile:hover { background: var(--dl-l04); }
.dl-tile.on { background: var(--dl-l09); box-shadow: inset 0 0 0 1px var(--dl-ring); }
.dl-thumbwrap { position: relative; aspect-ratio: 16 / 9; }
.dl-tile.file .dl-scrub { position: absolute; inset: 0; border-radius: 6px; border: 1px solid var(--dl-l07); overflow: hidden; cursor: ew-resize; background: var(--media-ph); }
.dl-scrub { position: relative; overflow: hidden; }
.dl-pic { position: absolute; inset: 0; background-repeat: no-repeat; }
.dl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--dl-white); box-shadow: var(--dl-shadow); opacity: 0; pointer-events: none; }
.dl-tc { position: absolute; right: 6px; bottom: 6px; height: 18px; padding: 0 6px; display: none; align-items: center; border-radius: 5px; background: var(--dl-chip-bg); font: 650 10px/1 var(--mono); color: var(--dl-ink); }
.dl-tc.small { right: auto; left: 5px; bottom: 5px; height: 15px; font-size: 9px; padding: 0 5px; }
.dl-scrub.scrubbing .dl-playhead { opacity: 1; }
.dl-scrub.scrubbing .dl-tc:not(:empty) { display: flex; }
.dl-scrub.scrubbing ~ .dl-bar { opacity: 0; }
.dl-bar { position: absolute; left: 1px; right: 1px; bottom: 1px; height: 3px; border-radius: 0 0 6px 6px; background: transparent; }
.dl-bar.approved { background: var(--dl-green); }
.dl-bar.changes_requested { background: var(--dl-amber); }
.dl-badge { position: absolute; top: 6px; right: 6px; height: 17px; min-width: 17px; padding: 0 5px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 5px; font: 700 9.5px/1 var(--mono); z-index: 1; }
.dl-badge svg { width: 10px; height: 10px; }
.dl-badge.ok { background: var(--dl-green-bg); color: var(--dl-green); }
.dl-badge.warn { background: var(--dl-amber-bg); color: var(--dl-amber); }
.dl-row .dl-badge { position: static; }
.dl-name { display: block; margin-top: 6px; font: 600 12px/1.25 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-meta { display: block; margin-top: 2px; font: 500 10px/1.2 var(--mono); color: var(--dl-ink-45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-folder { position: absolute; inset: 0; }
.dl-ftab { position: absolute; top: 0; left: 0; width: 42%; height: 7px; border-radius: 5px 5px 0 0; background: var(--dl-folder); border: 1px solid var(--dl-l14); border-bottom: 0; box-sizing: border-box; }
.dl-fbody { position: absolute; top: 6px; left: 0; right: 0; bottom: 0; border-radius: 0 7px 7px 7px; background: var(--dl-folder); border: 1px solid var(--dl-l14); padding: 5px; box-sizing: border-box; display: grid; gap: 4px; grid-template-columns: 1fr; grid-template-rows: 1fr; place-items: stretch; color: var(--dl-ink-40); }
.dl-fbody > svg { width: 26px; height: 26px; place-self: center; }
.dl-fbody .dl-scrub { border-radius: 4px; background: var(--media-ph); cursor: ew-resize; min-height: 0; }
.dl-fbody.n2 { grid-template-columns: 1fr 1fr; }
.dl-fbody.n3 { grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; }
.dl-fbody.n3 .dl-scrub:first-child { grid-row: 1 / span 2; }
.dl-row { height: 32px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 7px; cursor: pointer; flex: none; }
.dl-row:hover { background: var(--dl-l04); }
.dl-row.on { background: var(--dl-l09); box-shadow: inset 0 0 0 1px var(--dl-ring); }
.dl-row.on .dl-rname { font-weight: 650; }
/* v0.4.0: password sign-in */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { width: 100%; padding-right: 64px; box-sizing: border-box; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--dl-ink-60); font: 600 12px/1 var(--sans); cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { background: var(--dl-l08); color: var(--dl-ink); outline: none; }
.pw-form { display: grid; gap: 10px; }
/* v0.5.1: the files a batch sign-off covers */
.dl-signlist { margin: 4px 0 10px; padding-left: 18px; display: grid; gap: 3px; font: 500 13px/1.3 var(--sans); color: var(--dl-ink-72); max-height: 180px; overflow: auto; }
.dl-signlist .faint { list-style: none; margin-left: -18px; color: var(--dl-ink-45); }
/* v0.3.5: selection, the right-click menu, download progress */
.dl-tile.picked, .dl-row.picked, .dl-tile.on.picked, .dl-row.on.picked { background: var(--dl-pick); box-shadow: inset 0 0 0 1px var(--dl-pick-ring); }
.dl-tile, .dl-row { user-select: none; -webkit-user-select: none; }
.dl-menu { position: fixed; z-index: 900; min-width: 220px; padding: 6px; border-radius: 12px; background: var(--dl-menu-bg); box-shadow: var(--dl-menu-shadow); color: var(--dl-ink); }
.dl-mhead { padding: 6px 10px 8px; font: 600 10.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--dl-ink-45); }
.dl-mi { width: 100%; display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; align-items: center; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--dl-ink); font: 600 13px/1.2 var(--sans); text-align: left; cursor: pointer; }
.dl-mi svg { width: 16px; height: 16px; color: var(--dl-ink-72); }
.dl-mi small { grid-column: 2; margin-top: 3px; font: 500 11px/1.2 var(--sans); color: var(--dl-ink-50); }
.dl-mi:hover:not([disabled]), .dl-mi:focus-visible { background: var(--dl-l08); outline: none; }
.dl-mi[disabled] { opacity: .45; cursor: default; }
.dl-job { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--dl-l05); }
.dl-job[hidden] { display: none; }
.dl-jobtext { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.dl-jobtext b { font: 650 12px/1 var(--sans); }
.dl-jobtext small { font: 500 11px/1.2 var(--sans); color: var(--dl-ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-jobbar { flex: 0 1 160px; height: 4px; border-radius: 2px; background: var(--dl-l10); overflow: hidden; }
.dl-jobbar i { display: block; height: 100%; background: var(--dl-blue); transition: width .2s linear; }
.dl-ricon { flex: none; color: var(--dl-ink-50); display: grid; place-items: center; }
.dl-ricon svg { width: 15px; height: 15px; }
.dl-rthumb { flex: none; width: 22px; height: 14px; border-radius: 3px; overflow: hidden; background: var(--media-ph); }
.dl-rthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-rname { flex: 1; min-width: 0; font: 500 12px/1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-rsize { flex: none; font: 500 10.5px/1 var(--mono); color: var(--dl-ink-45); }
.dl-chev { flex: none; color: var(--dl-ink-35); display: grid; place-items: center; }
.dl-chev svg { width: 12px; height: 12px; transform: rotate(-90deg); }
.dl-foot { flex: none; height: 34px; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-top: 1px solid var(--dl-l05); font: 500 11px/1 var(--sans); color: var(--dl-ink-50); white-space: nowrap; overflow: hidden; }
.dl-foot b { color: var(--dl-ink); font: 650 11px/1 var(--mono); }
.dl-foot .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--dl-ink-40); }
.dl-foot .dot.ok { background: var(--dl-green); } .dl-foot .dot.blue { background: var(--dl-blue); }
.dl-foot .faint { overflow: hidden; text-overflow: ellipsis; font: 500 10.5px/1 var(--mono); color: var(--dl-ink-35); }
/* preview */
.dl-sign { display: flex; gap: 8px; }
.dl-btn { flex: none; height: 28px; padding: 0 13px; display: flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--dl-l13); background: transparent; color: var(--dl-ink); font: 650 11.5px/1 var(--sans); white-space: nowrap; cursor: pointer; }
.dl-btn svg { width: 12px; height: 12px; }
.dl-btn.ok { background: var(--dl-green); border-color: transparent; color: var(--dl-black); }
.dl-btn:disabled { opacity: .45; cursor: not-allowed; }
.dl-titlerow { flex: none; height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--dl-l05); }
.dl-fname { flex: 1; min-width: 0; font: 650 16px/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-chip { flex: none; height: 17px; padding: 0 6px; display: flex; align-items: center; border-radius: 5px; background: var(--dl-l07); color: var(--dl-ink-60); font: 700 9px/1 var(--mono); letter-spacing: .06em; }
.dl-chip.ok { background: var(--dl-green-chip); color: var(--dl-green); }
.dl-chip.warn { background: var(--dl-amber-bg); color: var(--dl-amber); }
.dl-pbody { flex: 1; min-height: 0; overflow: hidden; padding: 12px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.dl-player { position: relative; flex: none; border-radius: 12px; background: var(--dl-player); border: 1px solid var(--dl-l08); overflow: hidden; container: dlp / inline-size; aspect-ratio: var(--dl-aspect, 16 / 9); max-height: 52vh; min-height: 220px; }   /* LED-wall masters (7680x1080) letterbox inside rather than shrinking the player to a strip */
.dl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--dl-player); cursor: pointer; }
.dl-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 8px; background: var(--dl-fade); transition: opacity .35s; }
.dl-over.idle { opacity: 0; }
.dl-over:hover { opacity: 1; }
.dl-bar2 { position: relative; height: 14px; cursor: pointer; }
.dl-bar2 > i { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.dl-track { right: 0; background: var(--dl-l25); }
.dl-buf { background: var(--dl-l20); width: 0; }
.dl-prog { background: var(--dl-white); width: 0; }
.dl-bar2 > .dl-dot { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--dl-white); box-shadow: var(--dl-dot-shadow); }
.dl-marks { position: absolute; inset: 0; pointer-events: none; }
.dl-mark { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--dl-amber); border: 1.5px solid var(--dl-mark-line); box-sizing: border-box; pointer-events: auto; }
.dl-crow { display: flex; align-items: center; gap: 4px; color: var(--dl-white); }
.dl-cbtn { width: 48px; height: 48px; border: 0; border-radius: 11px; display: grid; place-items: center; background: transparent; color: var(--dl-white); cursor: pointer; }
.dl-cbtn:hover { background: var(--dl-l14); }
.dl-cbtn svg { width: 22px; height: 22px; }
.dl-tc2 { margin-left: 6px; font: 600 17px/1 var(--mono); text-shadow: var(--dl-text-shadow); white-space: nowrap; }
.dl-total { opacity: .6; font-weight: 600; }
@container dlp (max-width: 470px) { [data-dl-opt] { display: none; } }
.dl-speed { height: 32px; min-width: 40px; padding: 0 8px; border: 0; border-radius: 9px; background: var(--dl-l18); color: var(--dl-white); font: 700 14px/1 var(--mono); cursor: pointer; }
.dl-qual { height: 20px; padding: 0 6px; margin: 0 4px; border: 0; border-radius: 5px; background: var(--dl-white); color: var(--dl-black); font: 700 10px/1 var(--mono); cursor: pointer; }
.dl-below { flex: 1; min-height: 220px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; container: dld / inline-size; }
.dl-src { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dl-kick { font: 700 9.5px/1 var(--mono); letter-spacing: .14em; color: var(--dl-ink-45); }
.dl-seg { flex: none; display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--dl-l03); border: 1px solid var(--dl-l07); }
.dl-seg button { height: 24px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--dl-ink-60); font: 600 11px/1 var(--sans); cursor: pointer; display: flex; align-items: center; gap: 5px; }
.dl-seg button.on { background: var(--dl-l10); color: var(--dl-ink); }
.dl-seg button small { font: 600 9.5px/1 var(--mono); color: var(--dl-ink-45); }
.dl-srcnote { font: 500 11px/1 var(--sans); color: var(--dl-ink-45); white-space: nowrap; }
.dl-com { min-height: 180px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dl-comh { flex: none; display: flex; align-items: center; gap: 10px; }
.dl-comh > b { font: 650 18px/1 var(--sans); }
.dl-ibtn { width: 26px; height: 26px; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; color: var(--dl-ink-50); cursor: pointer; }
.dl-ibtn:hover { background: var(--dl-l08); color: var(--dl-ink); }
.dl-ibtn svg { width: 13px; height: 13px; }
.dl-combox { flex: none; border-radius: 12px; background: var(--dl-box); border: 1px solid var(--dl-l08); padding: 10px 12px; }
.dl-combox.typing { border-color: var(--dl-l28); }
.dl-ta { width: 100%; box-sizing: border-box; resize: none; border: 0; outline: 0; background: transparent; color: var(--dl-ink); font: 500 12.5px/1.45 var(--sans); }
.dl-ta::placeholder { color: var(--dl-ink-40); }
.dl-comfoot { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.dl-stamp { height: 22px; padding: 0 8px; display: flex; align-items: center; gap: 5px; border-radius: 999px; background: var(--dl-amber-bg); border: 1px solid var(--dl-amber-line); color: var(--dl-amber); font: 650 10.5px/1 var(--mono); cursor: pointer; }
.dl-stamp svg { width: 11px; height: 11px; }
.dl-stamp.off { background: transparent; border-color: var(--dl-l13); color: var(--dl-ink-50); }
.dl-send { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--dl-l13); background: transparent; color: var(--dl-ink-45); display: grid; place-items: center; cursor: pointer; }
.dl-combox.typing .dl-send { background: var(--dl-white); color: var(--dl-black); border-color: transparent; }
.dl-send svg { width: 12px; height: 12px; }
.dl-comlist { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.dl-cmt { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--dl-l05); }
.dl-cmt.reply { border: 0; padding: 8px 0 0; }
.dl-cmt.done .dl-ctext { text-decoration: line-through; opacity: .6; }
.dl-av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--dl-teal); color: var(--dl-black); font: 700 10px/1 var(--sans); }
.dl-cbody { flex: 1; min-width: 0; }
.dl-cwho { display: flex; align-items: baseline; gap: 6px; }
.dl-cwho b { font: 650 12.5px/1.2 var(--sans); }
.dl-cwho small { font: 500 10.5px/1 var(--sans); color: var(--dl-ink-40); }
.dl-ctext { margin-top: 4px; font: 500 12.5px/1.45 var(--sans); color: var(--dl-ink-85); overflow-wrap: anywhere; }
.dl-tchip { height: 16px; padding: 0 5px; margin-right: 6px; border: 0; border-radius: 4px; background: var(--dl-amber-bg); color: var(--dl-amber); font: 650 10px/16px var(--mono); cursor: pointer; vertical-align: 1px; }
.dl-details { border-top: 1px solid var(--dl-l08); padding: 12px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.dl-dh { font: 650 15px/1 var(--sans); }
.dl-dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dl-dtile { padding: 8px 10px; border-radius: 8px; background: var(--dl-l03); border: 1px solid var(--dl-l06); min-width: 0; }
.dl-dtile small { display: block; font: 700 8.5px/1 var(--mono); letter-spacing: .12em; color: var(--dl-ink-40); }
.dl-dtile b { display: block; margin-top: 6px; font: 650 12.5px/1 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-dcard { border-radius: 8px; background: var(--dl-l03); border: 1px solid var(--dl-l06); padding: 4px 10px; }
.dl-drow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font: 500 11.5px/1.2 var(--sans); color: var(--dl-ink-50); }
.dl-drow b { color: var(--dl-ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
/* wide preview: Details beside Comments, never scrolling */
@container dld (min-width: 720px) {
  .dl-below { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .dl-src { grid-column: 1 / -1; }
  .dl-com { grid-column: 1; grid-row: 2; }
  .dl-details { grid-column: 2; grid-row: 2; border-top: 0; border-left: 1px solid var(--dl-l10); padding: 0 0 0 20px; overflow: hidden; }
  .dl-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 600px) { .dl-btn { padding: 0 10px; } }
@container (max-width: 520px) { [data-dl-cnt] { display: none !important; } }
/* a narrow Preview: its header wraps - sign-off on a full-width row of its own - and the source note gives way */
@container (max-width: 560px) {
  .dl-right .dl-head { height: auto; min-height: 52px; flex-wrap: wrap; row-gap: 8px; padding: 10px 12px; }
  .dl-sign { flex: 1 0 100%; }
  .dl-sign .dl-btn { flex: 1; justify-content: center; }
  .dl-srcnote { display: none; }
}
/* phones and small windows: the two panels stack */
@media (max-width: 1100px) {
  .dl2 { grid-template-columns: minmax(0, 1fr) !important; height: auto; }
  .dl-left { height: 70vh; }
  .dl-col.grid.last { min-width: 260px; }
}

/* v0.9.0: the reference board window - the PM's (styles.css .win-overlay / .win-shell-board / .win-modal.win-board /
   .board-embed-head / .board-toolbar / .board-rail / .zoom-pill / .board-files-btn / .crumb-trail / tiles) */
body.pmb-open { overflow: hidden; }
.pmb-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 3.4vh 3.4vw;
  background: var(--pmb-scrim); backdrop-filter: blur(11px) saturate(1.04); opacity: 0; transition: opacity var(--t-slow) ease; color: var(--pmb-text); font-family: var(--sans); font-size: 14px; user-select: none; }
.pmb-overlay.show { opacity: 1; }
.pmb-shell { position: relative; width: 90vw; height: 90vh; display: flex; }
.pmb-modal { position: relative; width: 100%; height: 100%; flex: 1 1 auto; min-width: 0; min-height: 0; background: var(--pmb-bg); border: 1px solid var(--pmb-line);
  border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--pmb-window-shadow);
  transform: translateY(10px) scale(.988); transition: transform var(--t-slow) ease; }
.pmb-overlay.show .pmb-modal { transform: none; }
.pmb-body { position: relative; flex: 1 1 auto; overflow: hidden; }
.pmb-modal.pmb-fullscreen { position: fixed; inset: 14px; z-index: 350; width: auto; height: auto; border-radius: 8px; box-shadow: var(--pmb-fs-shadow); }
.pmb-close { position: absolute; top: -15px; right: -15px; z-index: 6; width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--pmb-close-bg); border: 1px solid var(--pmb-line); color: var(--pmb-muted); backdrop-filter: blur(6px); box-shadow: var(--pmb-close-shadow); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.pmb-close:hover { background: var(--pmb-card-hi); color: var(--pmb-text); border-color: var(--pmb-ember); }
.pmb-ic { display: inline-flex; line-height: 0; }
.pmb-viewport { position: absolute; inset: 0; overflow: hidden; cursor: grab; background-color: var(--pmb-card); touch-action: none; }
.pmb-viewport::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; box-shadow: var(--pmb-vignette); }
.pmb-viewport.panning { cursor: grabbing; }
.pmb-viewport.pmb-placing { cursor: crosshair; }
.pmb-viewport.drop-hover { box-shadow: inset 0 0 0 2px var(--pmb-ember); }
.pmb-world { position: absolute; top: 0; left: 0; width: 1px; height: 1px; transform-origin: 0 0; overflow: visible; --inv-zoom: 1; }
.pmb-head { position: absolute; top: 63px; left: 81px; z-index: 5; pointer-events: none; }
.pmb-titlegroup { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
.pmb-title { margin: 2px 0 0; font-size: 70px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; color: var(--pmb-text); text-shadow: var(--pmb-title-shadow); }
.pmb-kicker { display: flex; align-items: center; gap: 14px; margin: 12px 0 0 48px; font-size: 15px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--pmb-muted); text-shadow: var(--pmb-kicker-shadow); }
.pmb-kicker::before { content: ""; width: 44px; height: 1px; background: var(--pmb-ember); flex: 0 0 auto; }
.pmb-crumbs { position: absolute; top: 181px; left: 81px; z-index: 5; }
.pmb-crumbs[hidden] { display: none; }
.pmb-crumb-trail { display: inline-flex; align-items: center; gap: 10px; background: var(--pmb-s1); border: 1px solid var(--pmb-line); border-radius: 99px; padding: 6px 15px; font-size: 12.5px; font-weight: 500; }
.pmb-crumb-path { display: flex; align-items: center; gap: 6px; }
.pmb-crumb-link { color: var(--pmb-muted); padding: 2px 5px; border-radius: 5px; cursor: pointer; }
.pmb-crumb-link:hover { color: var(--pmb-text); background: var(--pmb-hover-fill); }
.pmb-crumb-link.current { color: var(--pmb-text); font-weight: 600; cursor: default; background: none; }
.pmb-crumb-sep { color: var(--pmb-faint); opacity: .45; font-size: 11px; }
.pmb-toolbar { position: absolute; top: 28px; right: 28px; z-index: 5; display: flex; align-items: center; gap: 8px; }
.pmb-toolbar[hidden] { display: none; }
.pmb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font: inherit; font-size: 12px; font-weight: 600; border-radius: 5px; cursor: pointer;
  background: var(--pmb-s1); border: 1px solid var(--pmb-line); color: var(--pmb-muted); box-shadow: var(--pmb-float-shadow); }
.pmb-btn .pmb-ic { margin: 0 -2px; }
.pmb-btn:hover { background: var(--pmb-s2); color: var(--pmb-text); }
.pmb-btn.active { color: var(--pmb-ember); border-color: var(--pmb-active-line); background: var(--pmb-active-bg); }
.pmb-rail { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); z-index: 320; display: flex; flex-direction: column; gap: 4px; padding: 8px 6px;
  background: var(--pmb-s1); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--pmb-line); border-radius: 8px; box-shadow: var(--pmb-float-shadow), var(--pmb-rail-inset); }
.pmb-rail[hidden] { display: none; }
.pmb-rail-btn { width: 38px; height: 38px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: var(--pmb-muted); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast); }
.pmb-rail-btn:hover { background: var(--pmb-hover-fill); color: var(--pmb-text); }
.pmb-rail-btn.active { background: var(--pmb-rail-on-bg); color: var(--pmb-text); border-color: var(--pmb-rail-on-line); box-shadow: var(--pmb-rail-on-shadow); }
.pmb-files-btn { position: absolute; left: 28px; bottom: 22px; z-index: 30; width: 38px; height: 38px; padding: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--pmb-s1); color: var(--pmb-text); border: 1px solid var(--pmb-files-line); backdrop-filter: blur(22px) saturate(1.4); transition: color var(--t-fast), border-color var(--t-fast); }
.pmb-files-btn[hidden] { display: none; }
.pmb-files-btn:hover { border-color: var(--pmb-files-line-hi); }
.pmb-zoom-pill { position: absolute; right: 28px; bottom: 28px; z-index: 320; display: flex; align-items: center; gap: 4px; padding: 6px;
  background: var(--pmb-s1); border: 1px solid var(--pmb-line); border-radius: 8px; box-shadow: var(--pmb-float-shadow); }
.pmb-zp-btn { min-width: 32px; height: 32px; padding: 0 9px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: var(--pmb-muted); font: inherit; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background var(--t-fast), color var(--t-fast); }
.pmb-zp-btn:first-child { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pmb-zp-btn:hover { background: var(--pmb-s2); color: var(--pmb-text); }
.pmb-zp-btn.active { background: var(--pmb-active-bg); color: var(--pmb-ember); border-color: var(--pmb-active-line); }
.pmb-zp-readout { min-width: 52px; height: 32px; border: 1px solid transparent; background: transparent; color: var(--pmb-ember); font: inherit; font-size: 11.5px; font-weight: 600; border-radius: 5px; cursor: pointer; }
.pmb-zp-readout:hover { background: var(--pmb-s2); color: var(--pmb-text); }
.pmb-zp-sep { width: 1px; height: 18px; background: var(--pmb-line); margin: 0 3px; }
.pmb-ctx-menu { position: fixed; z-index: 900; min-width: 190px; padding: 6px; background: var(--pmb-s1); border: 1px solid var(--pmb-line); border-radius: 8px; box-shadow: var(--pmb-ctx-shadow); }
.pmb-ctx-item { padding: 8px 12px; border-radius: 5px; font-size: 13px; cursor: pointer; color: var(--pmb-text); }
.pmb-ctx-item:hover { background: var(--pmb-hover-fill); }
.pmb-ctx-sep { height: 1px; background: var(--pmb-line); margin: 5px 4px; }
/* tiles */
.pmb-tile { position: absolute; user-select: none; }
.pmb-tile img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.pmb-tile:hover { box-shadow: 0 0 0 calc(1px * var(--inv-zoom)) var(--pmb-hover-ring); border-radius: 2px; }
.pmb-image:not(.selected):hover { outline: 1px solid var(--pmb-hover-outline); outline-offset: 3px; }
.pmb-video { background: var(--pmb-video-bg); }
.pmb-video video { width: 100%; height: 100%; display: block; object-fit: contain; background: var(--pmb-video-bg); }
.pmb-link { display: flex; flex-direction: column; background: var(--pmb-link-bg); border: 1px solid var(--pmb-line); border-radius: 10px; box-shadow: var(--pmb-link-shadow); }
.pmb-link:hover { border-color: var(--pmb-hover-ring); }
.pmb-lc-shot { flex: 0 0 56%; min-height: 0; position: relative; overflow: hidden; background: var(--pmb-link-shot); display: flex; align-items: center; justify-content: center; border-radius: 9px 9px 0 0; color: var(--pmb-faint); }
.pmb-lc-shot img { object-fit: cover; }
.pmb-lc-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 9px 11px 10px; overflow: hidden; border-radius: 0 0 9px 9px; }
.pmb-lc-title { flex: 0 0 auto; font-size: 12.5px; font-weight: 650; line-height: 1.25; color: var(--pmb-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmb-lc-desc { min-height: 0; flex: 0 1 auto; font-size: 10.5px; line-height: 1.35; color: var(--pmb-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmb-lc-site { flex: 0 0 auto; margin-top: auto; display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--pmb-faint); white-space: nowrap; overflow: hidden; }
.pmb-lc-site span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pmb-lc-open { position: absolute; top: 7px; right: 7px; z-index: 2; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer;
  color: var(--pmb-lc-open-ink); background: var(--pmb-lc-open-bg); border: 1px solid var(--pmb-lc-open-line); opacity: .68; transition: opacity .12s ease, background .12s ease, border-color .12s ease; }
.pmb-link:hover .pmb-lc-open { opacity: 1; }
.pmb-lc-open:hover { background: var(--pmb-lc-open-bg-hi); border-color: var(--pmb-lc-open-line-hi); }
.pmb-heading { position: absolute; white-space: pre; line-height: 1.2; padding: 2px 6px; color: var(--pmb-text); border: 1px solid transparent; overflow: visible; }
.pmb-heading:hover { border-color: var(--pmb-heading-hover); }
.pmb-note { position: absolute; display: flex; flex-direction: column; background: var(--pmb-note-bg); border: 1px solid var(--pmb-note-line); border-radius: 5px; box-shadow: var(--pmb-tile-shadow); }
.pmb-note-handle { flex: 0 0 22px; }
.pmb-note-text { flex: 1 1 auto; overflow: hidden; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; color: var(--pmb-note-ink); white-space: pre-wrap; }
.pmb-backdrop { position: absolute; background: var(--pmb-backdrop-bg); border: 1px dashed var(--pmb-backdrop-line); border-radius: 8px; }
.pmb-group { position: absolute; display: flex; flex-direction: column; border-radius: 5px; background: var(--pmb-group-bg); border: 1.5px solid var(--pmb-group-line); box-shadow: var(--pmb-tile-shadow); }
.pmb-group:hover { box-shadow: 0 0 0 calc(1px * var(--inv-zoom)) var(--pmb-hover-ring), var(--pmb-tile-shadow); }
.pmb-group-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 8px; text-align: center; }
.pmb-group-icon { color: var(--pmb-group-icon); }
.pmb-group-label { color: var(--pmb-text); font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmb-group-count { color: var(--pmb-faint); font-size: 11px; }
.pmb-conn { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 100000; }
.pmb-conn-line { fill: none; stroke: var(--pmb-conn); stroke-width: calc(4.5px * var(--inv-zoom)); stroke-linecap: round; }
.pmb-conn-head { fill: var(--pmb-conn); }
.pmb-conn-hit { fill: none; stroke: transparent; stroke-width: calc(16px * var(--inv-zoom)); }
.pmb-editing .pmb-conn-hit { pointer-events: stroke; cursor: pointer; }
.pmb-conn-g:hover .pmb-conn-line, .pmb-conn-g.selected .pmb-conn-line { stroke-width: calc(6px * var(--inv-zoom)); }
.pmb-conn-end { fill: var(--pmb-sel); stroke: var(--pmb-ember); stroke-width: calc(2px * var(--inv-zoom)); }
.pmb-marquee { position: absolute; z-index: 300000; pointer-events: none; border: calc(1px * var(--inv-zoom)) solid var(--pmb-ember); background: var(--pmb-marquee-fill); }
.pmb-marquee[hidden] { display: none; }
/* selection: a 1px white ring at screen size; 8 handles and the rotate handle on a lone item the client may change */
.pmb-world .selected { box-shadow: 0 0 0 calc(1px * var(--inv-zoom)) var(--pmb-sel); border-radius: 0; outline: none; }
.pmb-rs { position: absolute; width: 10px; height: 10px; background: var(--pmb-ember); border: 2px solid var(--pmb-bg); transform: scale(var(--inv-zoom)); z-index: 5; }
.pmb-rs-nw, .pmb-rs-ne, .pmb-rs-se, .pmb-rs-sw { border-radius: 2px; }
.pmb-rs-n, .pmb-rs-e, .pmb-rs-s, .pmb-rs-w { border-radius: 50%; }
.pmb-rs-nw { left: -6px; top: -6px; cursor: nwse-resize; } .pmb-rs-se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.pmb-rs-ne { right: -6px; top: -6px; cursor: nesw-resize; } .pmb-rs-sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.pmb-rs-n { top: -6px; left: 50%; margin-left: -5px; cursor: ns-resize; } .pmb-rs-s { bottom: -6px; left: 50%; margin-left: -5px; cursor: ns-resize; }
.pmb-rs-e { right: -6px; top: 50%; margin-top: -5px; cursor: ew-resize; } .pmb-rs-w { left: -6px; top: 50%; margin-top: -5px; cursor: ew-resize; }
.pmb-note .pmb-rs { background: var(--pmb-note-handle); }
.pmb-heading .pmb-rs { background: var(--pmb-text); }
.pmb-group .pmb-rs { background: var(--pmb-group-icon); }
.pmb-rot { position: absolute; top: -34px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--pmb-ember); border: 2px solid var(--pmb-bg);
  transform: translateX(-50%) scale(var(--inv-zoom)); cursor: grab; z-index: 5; }
.pmb-editing .pmb-world [data-id] { cursor: move; }
.pmb-typing, .pmb-typing * { cursor: text !important; user-select: text; }
.pmb-typing { outline: calc(1px * var(--inv-zoom)) dashed var(--pmb-ember); }
@media (max-width: 700px) {
  .pmb-overlay { padding: 0; }
  .pmb-shell { width: 100vw; height: 100dvh; }
  .pmb-modal { border-radius: 0; border: 0; }
  .pmb-close { top: calc(10px + env(safe-area-inset-top)); right: 10px; }
  .pmb-head { top: calc(22px + env(safe-area-inset-top)); left: 20px; right: 60px; }
  .pmb-title { font-size: 32px; }
  .pmb-kicker { font-size: 11px; margin-left: 0; }
  .pmb-crumbs { top: calc(110px + env(safe-area-inset-top)); left: 20px; }
  .pmb-toolbar { top: auto; bottom: calc(78px + env(safe-area-inset-bottom)); right: 12px; }
  .pmb-rail { left: 10px; }
  .pmb-zoom-pill { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .pmb-files-btn { left: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* v0.10.0: the PM's sub project page and its Delivery page, FILLING THE WINDOW (styles.css .dash.nk-sub .pp-fit,
   .section-page.phase-grid-3x2, .panel.nkp, .nkp-bar, .nkp-foot), and each panel's inside */
body.pm-fit { height: 100vh; overflow: hidden; }
body.pm-fit #app { height: 100vh; display: flex; flex-direction: column; }
body.pm-fit .appbar { flex: none; position: relative; }
body.pm-fit main.page { flex: 1 1 auto; min-height: 0; max-width: none; width: 100%; margin: 0; padding: 0 26px 26px; display: flex; flex-direction: column; overflow: hidden; }
/* the PM's scrollbars (styles.css house-cleaning 9): one thin themed bar */
body.pm-fit * { scrollbar-width: thin; scrollbar-color: var(--nk-scroll) transparent; }
.dash.nk-sub { display: flex; flex-direction: column; min-height: 0; }
.dash.nk-sub.pp-fit { flex: 1 1 auto; overflow: hidden; }
.dash.nk-sub > .dash-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 16px; flex-wrap: nowrap; }
.dash.nk-sub .titlegroup { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; margin-left: 34px; min-width: 0; flex: 0 1 auto; }
.dash.nk-sub h1 { margin: 0; font-size: 92px; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; text-shadow: var(--title-glow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dash.nk-sub .kicker { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 9px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-42); }
.dash.nk-sub .kicker::before { content: ""; width: 26px; height: 1px; flex: none; background: var(--ink-30); }
.dash.nk-sub .dash-head-right { flex: none; margin-left: auto; display: flex; align-items: center; gap: 12px; align-self: flex-end; margin-bottom: 4px; }
.phase-cards { display: flex; gap: 6px; flex-wrap: nowrap; }
.phase-card { height: 44px; padding: 0 14px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px;
  background: var(--tab-bg); border: 1px solid var(--fill-6); transition: background .12s, border-color .12s; min-width: 104px; }
.phase-card:hover { border-color: var(--fill-8); }
.phase-card.active { background: var(--tab-on); border-color: var(--tab-on); }
.phase-card-eyebrow { font-size: 8.5px; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-42); white-space: nowrap; }
.phase-card-eyebrow::before { content: "\2014  "; white-space: pre; }
.phase-card-label { font-size: 12.5px; font-weight: 700; line-height: 1; color: var(--ink); white-space: nowrap; }
.phase-card.active .phase-card-eyebrow { color: var(--ink-dark-50); }
.phase-card.active .phase-card-label { color: var(--ink-dark); }
@media (max-width: 1440px) { .dash.nk-sub h1 { font-size: 72px; } }
@media (max-width: 1200px) { .dash.nk-sub h1 { font-size: 56px; } }
/* the grid: three stacks of two, the PM's 12px gaps, inline sizes from nkSplit */
.section-page.phase-fill { flex: 1 1 auto; min-height: 0; display: grid; gap: 12px; position: relative; overflow: hidden; grid-template-columns: minmax(0, 1.1fr) minmax(0, .93fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.nkp-stack { display: grid; grid-template-rows: minmax(0, 1.12fr) minmax(0, 1fr); gap: 12px; min-height: 0; min-width: 0; position: relative; }
.nkp-handle { position: absolute; z-index: 6; display: flex; align-items: center; justify-content: center; }
.nkp-handle-c { width: 10px; cursor: col-resize; }
.nkp-handle-r { height: 10px; cursor: row-resize; }
.nkp-handle i { display: block; border-radius: 2px; background: transparent; transition: background .12s; }
.nkp-handle-c i { width: 2px; height: 36px; } .nkp-handle-r i { width: 36px; height: 2px; }
.nkp-handle:hover i { background: var(--ink-42); } .nkp-handle.on i { background: var(--nk-d-green); }
/* the panel (section.panel.nkp) */
.panel.nkp { border-radius: 12px; background: var(--nk-panel); border: 1px solid var(--line-6); border-color: var(--fill-6); box-shadow: var(--nk-panel-shadow); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; container-type: inline-size; margin: 0; }
.panel.nkp > .panel-head { height: 52px; min-height: 52px; padding: 0 12px 0 14px; gap: 10px; flex: none; flex-wrap: nowrap; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--fill-6); }
.panel.nkp .panel-title { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; max-width: 60%; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.nkp-ic { flex: none; width: 22px; height: 22px; }
.nk-t-blue { color: var(--nk-t-blue); } .nk-t-peach { color: var(--nk-t-peach); } .nk-t-amber { color: var(--nk-t-amber); } .nk-t-green { color: var(--nk-t-green); }
.nk-t-red { color: var(--nk-t-red); } .nk-t-violet { color: var(--nk-t-violet); } .nk-t-teal { color: var(--nk-t-teal); } .nk-t-muted { color: var(--nk-t-muted); }
.nkp-tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nkp-count:not(:empty) { flex: none; height: 18px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--fill-6); color: var(--ink-72); font-size: 10.5px; font-weight: 500; line-height: 1; }
.panel.nkp .panel-actions { margin-left: auto; flex: 0 1 auto; display: flex; justify-content: flex-end; min-width: 0; }
.panel.nkp .dash-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.panel.nkp .btn.small { height: 28px; padding: 0 13px; gap: 6px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--ink-dark); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.panel.nkp .btn.small:hover { background: var(--white, var(--ink)); }
.panel.nkp .btn.ghost.small { background: transparent; border: 1px solid var(--nk-ghost-line); color: var(--ink); }
.panel.nkp .btn.ghost.small:hover { background: var(--fill-6); }
.panel.nkp .btn.nkp-ib { width: 32px; height: 32px; padding: 0; border-radius: 10px; border: 1px solid var(--fill-6); background: var(--fill-3); color: var(--ink-62); display: grid; place-items: center; font-size: 15px; }
.panel.nkp .btn.nkp-ib:hover { background: var(--pmb-hover-fill); color: var(--ink); }
.nkp-bar { height: 44px; min-height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line-2); }
.nkp-bar-l { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.nkp-bar-r { flex: none; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nkp-hint { font-size: 11px; font-weight: 400; color: var(--ink-42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsx { height: 28px; border-radius: 999px; background: var(--nk-input); border: 1px solid var(--fill-7); display: flex; align-items: center; gap: 7px; padding: 0 10px; flex: 0 1 220px; max-width: 220px; min-width: 96px; color: var(--ink-42); }
.rsx input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 500 11.5px/1 var(--sans); }
.rsx input::placeholder { color: var(--ink-35); }
.panel.nkp > .panel-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 5px 16px 16px; scrollbar-gutter: stable; display: block; gap: 0; }
.nkp-foot { flex: none; height: 34px; min-height: 34px; padding: 0 16px; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--fill-6); background: var(--nk-panel); font-size: 11px; }
.nkp-foot-l { display: flex; gap: 14px; flex: none; }
.nkp-stat { display: flex; align-items: center; gap: 6px; }
.nkp-stat i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-35); }
.nkp-stat span { font-size: 11px; font-weight: 500; color: var(--ink-50); }
.nkp-stat b { font-size: 11px; font-weight: 700; color: var(--ink); }
.nkp-stat.t-green i { background: var(--nk-d-green); } .nkp-stat.t-blue i { background: var(--nk-d-blue); } .nkp-stat.t-amber i { background: var(--nk-d-amber); }
.nkp-stat.t-red i { background: var(--nk-d-red); } .nkp-stat.t-violet i { background: var(--nk-d-violet); } .nkp-stat.t-teal i { background: var(--nk-d-teal); } .nkp-stat.t-peach i { background: var(--nk-d-peach); }
.nkp-foot-r { flex: 1 1 auto; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 500; color: var(--ink-35); }
.nk-empty { padding: 26px 10px; text-align: center; color: var(--ink-42); font-size: 12px; }
.nk-note { margin-top: 8px; font-size: 11px; color: var(--ink-42); }
.nk-menu { position: fixed; z-index: 90; min-width: 170px; padding: 6px; background: var(--pmb-s1); border: 1px solid var(--pmb-line); border-radius: 8px; box-shadow: var(--pmb-ctx-shadow); display: flex; flex-direction: column; }
.nk-menu-item { text-align: left; padding: 8px 12px; border-radius: 5px; font-size: 13px; color: var(--ink); background: none; border: 0; }
.nk-menu-item:hover { background: var(--pmb-hover-fill); } .nk-menu-item.bad { color: var(--nk-bad); }
/* ---- Audio Tracks ---- */
.au-list { display: flex; flex-direction: column; gap: 6px; padding-right: 11px; }
.track-row { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 18px; background: var(--nk-row); border: 1px solid var(--fill-6); cursor: pointer; transition: background .12s, border-color .12s; min-width: 0; }
.track-row:hover { background: var(--fill-4); border-color: var(--fill-8); }
.track-row.active { background: var(--nk-row-on); border-radius: 18px 18px 0 0; border-bottom-color: transparent; }
.track-star { width: 24px; height: 24px; display: grid; place-items: center; font-size: 15px; color: var(--pmb-faint); flex: none; }
.track-star.on { color: var(--nk-star); }
.track-idx { font-size: 10.5px; color: var(--ink-30); font-variant-numeric: tabular-nums; flex: none; }
.track-name { font-size: 13.5px; font-weight: 600; color: var(--ink-85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.track-row.active .track-name { color: var(--ink); font-weight: 650; }
.track-analysed { display: inline-flex; align-items: center; gap: 6px; font-size: 8.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--nk-ok-ink); flex: none; }
.track-analysed i { width: 5px; height: 5px; border-radius: 50%; background: var(--nk-ok); box-shadow: 0 0 8px var(--nk-ok-glow); animation: nkPulse 2.6s ease-in-out infinite; }
@keyframes nkPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.track-row .spacer { flex: 1; }
.track-ver { font-size: 10px; color: var(--ink-50); flex: none; }
.track-bpm:not(:empty) { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--btn-light); color: var(--nk-bpm-ink); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; box-shadow: var(--btn-light-shadow); }
.track-dur:not(:empty) { flex: none; font-size: 10.5px; color: var(--ink-50); font-variant-numeric: tabular-nums; }
.track-chevron { flex: none; color: var(--ink-42); display: grid; transition: transform .18s; }
.track-row.active .track-chevron { transform: rotate(180deg); }
.track-open { display: flex; flex-direction: column; }
.wave-panel { padding: 12px 14px 14px; border: 1px solid var(--fill-6); border-top: 0; border-radius: 0 0 18px 18px; background: var(--nk-row-on); display: flex; flex-direction: column; gap: 10px; }
.wave-overview { position: relative; height: 52px; border-radius: 12px; background: var(--nk-ov); box-shadow: var(--nk-lane-shadow); overflow: hidden; cursor: pointer; }
.wo-c { position: absolute; inset: 0; opacity: .55; }
.wo-brush { position: absolute; top: 0; bottom: 0; background: var(--fill-6); border-left: 1px solid var(--line-7); border-right: 1px solid var(--line-7); pointer-events: none; }
.wo-brush[hidden] { display: none; }
.wo-ph { position: absolute; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: var(--nk-ph); box-shadow: 0 0 10px var(--nk-ph); pointer-events: none; }
.wave-scroll { position: relative; }
.wave-wrap { position: relative; border-radius: 14px; background: var(--nk-lane); box-shadow: var(--nk-lane-shadow); overflow: hidden; cursor: crosshair; touch-action: none; user-select: none; }
.wv-strip { position: absolute; left: 0; right: 0; top: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--nk-strip); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50); }
.wv-strip b { font-size: 13px; letter-spacing: 0; color: var(--ink); }
.wv-strip i { width: 1px; height: 14px; background: var(--fill-7); }
.wave-ruler { position: absolute; left: 0; right: 0; top: 36px; height: 20px; background: var(--nk-ruler); overflow: hidden; }
.wr-mark { position: absolute; top: 0; bottom: 0; }
.wr-mark i { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--nk-tick); }
.wr-mark em { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 8.5px; color: var(--ink-30); font-variant-numeric: tabular-nums; }
.wave-c { position: absolute; left: 0; }
.wave-markers { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; pointer-events: none; }
.wave-marker { position: absolute; top: 0; bottom: 0; width: 2px; opacity: .9; border-left: 1px solid var(--line-6); }
.wave-ph { position: absolute; left: 0; top: 36px; bottom: 0; width: 1.5px; margin-left: -.75px; background: var(--nk-ph); box-shadow: var(--nk-ph-glow); z-index: 5; pointer-events: none; }
.wave-ph[hidden] { display: none; }
.wave-ph-cap { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--nk-ph); }
.wv-cap { position: absolute; bottom: 14px; display: flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--nk-cap); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--nk-cap-line); z-index: 6; cursor: default; }
.wv-cap.xport { left: 14px; height: 42px; padding: 0 12px 0 6px; }
.wv-cap.tools { right: 14px; height: 38px; padding: 0 6px; }
.wv-cue { height: 30px; padding: 0 11px; border-radius: 999px; background: var(--nk-cue-bg); border: 1px solid var(--nk-cue-line); color: var(--nk-cue-ink); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; }
.wv-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--nk-play); color: var(--nk-play-ink); box-shadow: var(--nk-play-shadow); display: grid; place-items: center; }
.wv-play:disabled, .wv-cue:disabled { opacity: .35; }
.wv-div { width: 1px; height: 16px; background: var(--fill-8); }
.wv-clock b { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wv-clock i { font-style: normal; font-size: 10px; color: var(--ink-30); }
.wv-tgl { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-42); display: grid; place-items: center; }
.wv-tgl:hover { color: var(--ink); }
.wv-tgl[aria-pressed="true"] { background: var(--fill-8); color: var(--white, var(--ink)); }
.wv-volbox { display: flex; align-items: center; gap: 6px; padding: 0 6px; color: var(--ink-42); }
.wv-vol { width: 58px; height: 4px; accent-color: var(--nk-knob); }
.wave-grip { height: 8px; margin: -6px 40% 0; border-radius: 4px; cursor: row-resize; }
.wave-grip:hover { background: var(--fill-7); }
.marker-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.marker-chips:empty { display: none; }
.marker-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 7px 4px 10px; border-radius: 5px; background: var(--nk-chip); border: 1px solid var(--pmb-hover-fill); font-size: 11px; letter-spacing: .03em; color: var(--ink); }
.marker-chip i { width: 8px; height: 8px; border-radius: 50%; }
.marker-chip:hover { border-color: var(--fill-8); } .marker-chip:hover span { color: var(--pmb-ember); }
.wave-panel.wave-focus { position: fixed; left: 3vw; right: 3vw; top: 50%; transform: translateY(-50%); max-height: 92vh; z-index: 901; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--fill-7); }
.wave-focus-backdrop { position: fixed; inset: 0; z-index: 900; background: var(--nk-focus-scrim); backdrop-filter: blur(9px); }
/* ---- Reference Boards: the PM's board cards ---- */
.panel.nkp > .panel-body.rb-body { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.board-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 5px 16px 16px; scrollbar-gutter: stable; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-content: start; gap: 10px; }
.rbc-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px; background: var(--nk-card); border: 1px solid var(--fill-5); text-align: left; color: inherit; transition: border-color .12s; }
.rbc-card:hover { border-color: var(--fill-8); }
.rbc-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rbc-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rbc-n { font-size: 10.5px; color: var(--ink-42); flex: none; }
.rbc-edit { margin-left: auto; flex: none; font-size: 9.5px; font-weight: 700; color: var(--pmb-ember); }
.rbc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.rbc-tile { aspect-ratio: 1; border-radius: 5px; background: var(--fill-3); overflow: hidden; }
.rbc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ---- Given Assets ---- */
.ga-list { display: flex; flex-direction: column; gap: 4px; padding-right: 11px; }
.ga-req, .ga-file { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; }
.ga-req:hover, .ga-file:hover { background: var(--fill-4); }
.ga-req > i { width: 6px; height: 6px; border-radius: 50%; background: var(--nk-d-peach); flex: none; }
.ga-ext { flex: none; min-width: 38px; height: 22px; padding: 0 6px; border-radius: 5px; background: var(--fill-6); font-size: 9px; font-weight: 700; letter-spacing: .08em; display: grid; place-items: center; color: var(--ink-62); }
.ga-t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ga-t b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-t small { font-size: 10.5px; color: var(--ink-42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ---- Notes ---- */
.panel.nkp.nkn > .panel-body.nkn-pb { padding: 0; overflow: hidden; }
.nkn-body { height: 100%; display: grid; grid-template-columns: var(--nkn-list, minmax(170px, 34%)) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); position: relative; }
.notes-list { grid-row: 1 / span 2; overflow-y: auto; background: var(--nk-list); border-right: 1px solid var(--line-2); padding: 16px 5px 16px 16px; display: flex; flex-direction: column; gap: 2px; scrollbar-gutter: stable; }
.nkn-grip { position: absolute; top: 0; bottom: 0; left: var(--nkn-list, 34%); width: 8px; margin-left: -4px; cursor: col-resize; z-index: 3; }
.nkn-grip:hover { background: linear-gradient(90deg, transparent 3px, var(--nk-d-green) 3px, var(--nk-d-green) 5px, transparent 5px); opacity: .7; }
.notes-list-h { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-42); padding: 8px 8px 4px; }
.notes-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3px; padding: 8px; border-radius: 8px; cursor: pointer; }
.notes-row:hover { background: var(--fill-4); } .notes-row.on { background: var(--fill-6); }
.notes-row.pinned::after { content: ""; position: absolute; top: 12px; right: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--nk-d-amber); }
.notes-row-name { font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-row-sub { display: flex; gap: 6px; min-width: 0; }
.notes-row-when { font-size: 10px; font-weight: 500; color: var(--ink-42); white-space: nowrap; flex: none; }
.notes-row-prev { font-size: 11px; color: var(--ink-42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.notes-ed-head { grid-column: 2; display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px 6px; }
.notes-ed-titles { flex: 1; min-width: 0; }
.notes-ed-title { font-size: 19px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.notes-ed-stamp { margin-top: 4px; font-size: 10px; font-weight: 500; color: var(--ink-42); }
.notes-ed-stamp b { color: var(--nk-d-amber); font-weight: 700; letter-spacing: .08em; }
.notes-text { grid-column: 2; overflow-y: auto; padding: 12px 16px; line-height: 1.65; font-size: 13px; color: var(--ink); }
.nk-md h3 { font-size: 20px; font-weight: 700; margin: 14px 0 8px; }
.nk-md h4 { font-size: 16.5px; font-weight: 700; margin: 12px 0 7px; }
.nk-md h5 { font-size: 14px; font-weight: 700; margin: 10px 0 6px; }
.nk-md > :first-child { margin-top: 0; }
.nk-md p { margin: 0 0 9px; }
.nk-md ul, .nk-md ol { margin: 0 0 9px; padding-left: 22px; }
.nk-md li { margin: 2px 0; }
.nk-md blockquote { margin: 0 0 9px; border-left: 2px solid var(--fill-8); padding-left: 12px; color: var(--pmb-muted); }
.nk-md pre { background: var(--nk-pre); padding: 8px 10px; border-radius: 6px; font-size: 11.5px; overflow-x: auto; }
.nk-md code { background: var(--fill-7); border-radius: 4px; padding: 0 4px; }
.nk-md a { color: var(--ink); text-decoration: underline; }
.nk-md hr { border: 0; border-top: 1px solid var(--pmb-line); }
/* ---- Treatment ---- */
.panel.nkp > .panel-body.trv-body { padding: 16px; overflow: hidden; display: flex; flex-direction: column; }
.trv-grp { display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--pmb-s1); border: 1px solid var(--pmb-line); border-radius: 8px; }
.trv-btn { min-width: 26px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--pmb-muted); display: grid; place-items: center; font-size: 14px; }
.trv-btn:hover:not(:disabled) { background: var(--fill-6); color: var(--ink); }
.trv-btn:disabled { opacity: .28; }
.trv-btn.flip svg { transform: scaleX(-1); }
.trv-zoom { min-width: 46px; font-size: 10.5px; }
.trv-sel { height: 24px; max-width: 170px; border: 0; background: none; color: var(--ink); font: 500 11px/1 var(--sans); padding: 0 4px; }
.trv-sel option { background: var(--pmb-s1); }
.trv-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.trv-stage.zoomed { cursor: grab; }
.trv-page { max-width: none; flex: none; box-shadow: var(--nk-page-shadow); user-select: none; pointer-events: none; }
.deck-present { position: fixed; inset: 0; z-index: 600; background: var(--nk-black); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dp-page { max-width: none; }
.dp-count { position: absolute; right: 18px; bottom: 14px; font-size: 11px; letter-spacing: .08em; color: var(--nk-count); }
/* ---- Color Palette ---- */
.panel.nkp > .panel-body.pal-body { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pal-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 5px 16px 16px; display: flex; flex-direction: column; scrollbar-gutter: stable; }
.pal-list.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-content: start; }
.pal-list.is-list { gap: 6px; }
.pal-feat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-right: 11px; }
.pal-feat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pal-feat-head .spacer { flex: 1; }
.pal-feat-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.pal-from { padding: 4px 10px; border-radius: 999px; background: var(--nk-from-bg); border: 1px solid var(--nk-from-line); color: var(--ink); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pal-rule-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; border-radius: 999px; background: var(--fill-6); border: 1px solid var(--pmb-line); color: var(--pmb-muted); font-size: 11.5px; white-space: nowrap; }
.pal-rule-pill.big { font-size: 13px; padding: 5px 14px 5px 7px; }
.pal-feat-strip { flex: 1 1 auto; min-height: 190px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: 8px; overflow: hidden; border: 1px solid var(--pmb-line); cursor: pointer; }
.pal-fc { position: relative; min-width: 0; display: flex; align-items: flex-end; justify-content: center; padding: 12px 6px; color: var(--nk-ink-on-dark); }
.pal-fc.ink-dark { color: var(--nk-ink-on-light); }
.pal-fc-hex { max-width: 100%; padding: 6px 10px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: inherit; font-size: 14px; letter-spacing: .02em; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-fc-hex:hover { background: var(--nk-hex-hover); border-color: var(--nk-hex-hover-line); }
.pal-card { padding: 12px 13px 10px; border-radius: 8px; background: var(--pmb-s1); border: 1px solid var(--pmb-line); cursor: pointer; }
.pal-card.is-main { border-color: var(--nk-main-line); }
.pal-card:hover { border-color: var(--fill-8); }
.pal-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; min-width: 0; }
.pal-card-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-main { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-42); }
.pal-main.on { border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.pal-strip { height: 74px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: 5px; overflow: hidden; }
.pal-hexes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 6px; }
.pal-hex { font-size: 11px; color: var(--pmb-muted); background: none; border: 0; padding: 2px 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-hex:hover { color: var(--ink); }
.pal-lrow { display: grid; grid-template-columns: auto minmax(120px, 220px) 1fr; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; background: var(--pmb-s1); border: 1px solid var(--pmb-line); cursor: pointer; }
.pal-lrow.is-main { border-color: var(--nk-main-line); }
.pal-lrow-name { font-size: 13px; font-weight: 600; color: var(--ink); background: none; border: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-lrow-strip { height: 30px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: 8px; overflow: hidden; }
.pal-lsw:hover { filter: brightness(1.12); }
.palette-empty { margin: auto; text-align: center; color: var(--ink-42); }
.palette-empty-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.palette-empty-sub { font-size: 12px; }
/* ---- Deliveries: the Delivery + Preview pair takes the rest of the window ---- */
body.pm-fit .dl2 { flex: 1 1 auto; min-height: 0; height: auto; }
/* below 1100px the page scrolls again, a panel at a time */
@media (max-width: 1100px) {
  body.pm-fit { height: auto; overflow: auto; }
  body.pm-fit #app { height: auto; }
  body.pm-fit main.page { overflow: visible; padding: 0 12px 20px; }
  .dash.nk-sub > .dash-head { flex-wrap: wrap; }
  .dash.nk-sub .dash-head-right { margin-left: 0; align-self: flex-start; }
  .dash.nk-sub .titlegroup { margin-left: 0; }
  .dash.nk-sub h1 { font-size: 44px; }
  .section-page.phase-fill { display: flex !important; flex-direction: column; overflow: visible; }
  .nkp-stack { display: flex !important; flex-direction: column; }
  .nkp-handle { display: none; }
  .panel.nkp { height: 72vh; }
  body.pm-fit .dl2 { height: auto; }
}
@media (max-width: 600px) {
  .dash.nk-sub .dash-head-right { width: 100%; flex-wrap: wrap; }
  .phase-cards { width: 100%; }
  .phase-card { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  .dash.nk-sub h1 { font-size: 34px; }
}

/* v0.11.0: Delivery columns resize as the PM's (styles.css .d2-grip), and Single Folder (.d2-col.single, .d2-crumbs) */
.dl-col { position: relative; }
.dl-cgrip { position: absolute; top: 0; bottom: 0; right: -5px; width: 10px; z-index: 5; cursor: col-resize; display: grid; place-items: center; touch-action: none; }
.dl-cgrip:hover { background: var(--dl-l04); }
.dl-col.last > .dl-cgrip { right: 0; width: 6px; }
.dl-cgrip > i { width: 2px; height: 36px; border-radius: 1px; background: transparent; transition: background .12s; }
.dl-cgrip:hover > i { background: var(--dl-ink-45); }
.dl-cgrip.drag > i { background: var(--nk-d-green); }
.dl-cols.single { overflow-x: hidden; }
.dl-col.single, .dl-col.grid.last.single { flex: 1 1 auto; width: auto; min-width: 0; background: transparent; border-right: 0; }
.dl-colh.crumbs { height: 38px; padding: 0 14px 0 10px; }
.dl-crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; }
.dl-colh .dl-crumb { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent;
  color: var(--dl-ink-60); font: 500 12.5px/1.2 var(--sans); letter-spacing: 0; white-space: nowrap; cursor: pointer; transition: background .12s, color .12s; }
.dl-colh .dl-crumb:hover { background: var(--dl-l07); color: var(--dl-ink); }
.dl-colh .dl-crumb.here { flex-shrink: .2; color: var(--dl-ink); font-weight: 700; cursor: default; }
.dl-colh .dl-crumb.here:hover { background: transparent; }
.dl-colh .dl-crumb-sep { flex: none; color: var(--dl-ink-30); font: 400 12.5px/1 var(--sans); letter-spacing: 0; }

/* v0.11.0: Production as the Delivery page - Lookdev (the Delivery browser's grid / list) and Preview */
.dl-ico.pr { color: var(--nk-t-blue); }
.pr-thumb { position: absolute; inset: 0; border-radius: 6px; border: 1px solid var(--dl-l07); overflow: hidden; background: var(--media-ph); display: grid; place-items: center; }
.pr-thumb img, .dl-rthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-ph { color: var(--dl-ink-35); display: grid; place-items: center; }
.pr-thumb .pr-ph svg { width: 26px; height: 26px; }
.dl-rthumb .pr-ph svg { width: 10px; height: 10px; }
.dl-rthumb { display: grid; place-items: center; }
.pr-stage { display: grid; place-items: center; }
.pr-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pr-msg { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; text-align: center; color: var(--dl-ink-45); font-size: 12px; }
.pr-msg svg { width: 28px; height: 28px; }
.pr-msg b { color: var(--dl-ink); font-size: 14px; }
.pr-below { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.pr-vers { flex-wrap: wrap; }
.pr-notes p { margin: 8px 0; font-size: 12.5px; line-height: 1.5; color: var(--dl-ink-85); }
/* v0.11.0: on a short window the Preview's lower half (source, comments, details) keeps its own height and the panel scrolls,
   instead of Comments sliding over Details */
.dl-pbody { overflow-y: auto; }
.dl-below { flex: 1 0 auto; }

/* v0.11.1: the dashboard and the project page fill the window too; each card or table scrolls inside itself */
.proj-list { display: flex; flex-direction: column; }
body.pm-fit .dash-grid { flex: 1 1 auto; min-height: 0; gap: 12px; grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); }
body.pm-fit .dash-grid > .card { min-height: 0; overflow: hidden; }
body.pm-fit .cal-card .cal, body.pm-fit .cal-card .today-col { min-height: 0; }
body.pm-fit .cal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
body.pm-fit .cal-body .month-grid { flex: 1 1 auto; min-height: 0; grid-auto-rows: minmax(40px, 1fr); }
@media (min-width: 1101px) and (max-height: 880px) { body.pm-fit .dash-grid { grid-template-rows: minmax(0, 1.9fr) minmax(0, 1fr); } }
body.pm-fit .cal-body .month-grid.week { grid-auto-rows: minmax(120px, 1fr); }
body.pm-fit .today-col { overflow-y: auto; }
body.pm-fit .card-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
body.pm-fit .table-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.pm-fit .table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; border-bottom: 1px solid var(--line-2); border-radius: 9px; margin-bottom: 0; }
body.pm-fit .sp-table thead th { position: sticky; top: 0; z-index: 2; }
@media (max-width: 1100px) {
  body.pm-fit .dash-grid { grid-template-rows: none; }
  body.pm-fit .dash-grid > .card { overflow: visible; }
  body.pm-fit .cal-body, body.pm-fit .today-col, body.pm-fit .card-scroll { overflow: visible; }
  body.pm-fit .table-card { flex: none; }
}
.settings-col { display: flex; flex-direction: column; gap: 12px; }
body.pm-fit .settings-page { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.pm-fit .settings-grid { flex: 1 1 auto; min-height: 0; align-items: stretch; }
body.pm-fit .settings-grid > .card, body.pm-fit .settings-col { min-height: 0; overflow-y: auto; }
@media (max-width: 1100px) { body.pm-fit .settings-grid > .card, body.pm-fit .settings-col { overflow: visible; } }

/* v0.13.0: the invoice window; v0.15.7: the page drawn edge to edge by PDF.js (no viewer toolbar, no grey), the window in its shape */
.sheet.sheet-pdf { max-width: 96vw; width: auto; max-height: 92vh; padding: 0; overflow: hidden; border: 0; outline: 1px solid var(--fill-7); }   /* v0.15.8: an outline, so the page fills the window to the pixel */
.sheet-pdf .inv-pdf-wrap { height: 100%; display: grid; grid-template-columns: auto 340px; }
.inv-pdf { min-width: 0; min-height: 0; height: 100%; overflow-y: auto; overflow-x: hidden; background: var(--nk-pre); }   /* no border: the page is exactly its width */
.inv-pdf.ready { background: var(--dl-white); scrollbar-width: none; }
.inv-pdf.ready::-webkit-scrollbar { display: none; }
.inv-pages { display: flex; flex-direction: column; }
.inv-page { display: block; }
.inv-loading { margin: 0; padding: 40px 24px; min-width: 420px; color: var(--ink-42); font-size: 13px; text-align: center; }
.sheet-pdf .inv-side { min-height: 0; overflow-y: auto; padding: 22px 22px 20px; border-left: 1px solid var(--fill-7); }
.sheet-pdf .inv-side .btn-row { flex-wrap: wrap; }
.sheet-pdf.inv-fallback { width: min(1240px, 96vw); height: 92vh; }
.sheet-pdf.inv-fallback .inv-pdf { width: auto !important; }
.inv-pdf-frame { display: block; width: 100%; height: 100%; min-height: 70vh; border: 0; background: var(--nk-pre); }
/* a phone: the page full width on top, the details under it, the window scrolling */
.sheet-pdf.inv-narrow { overflow-y: auto; }
.sheet-pdf.inv-narrow .inv-pdf-wrap { display: block; height: auto; }
.sheet-pdf.inv-narrow .inv-pdf { height: auto; overflow: visible; }
.sheet-pdf.inv-narrow .inv-side { border-left: 0; border-top: 1px solid var(--fill-7); }

/* v0.14.4: the project table plays the track (the PM's .tbl-audio: the button leads, the name over a progress bar and the clock) */
.tbl-audio { display: flex; align-items: center; gap: 10px; min-width: 190px; max-width: 260px; }
.track-play { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--fill-8); background: var(--fill-4); color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background .12s, border-color .12s; }
.track-play:hover { background: var(--fill-7); border-color: var(--line-7); }
.track-play[data-on="true"] { background: var(--ink); color: var(--ink-dark); border-color: var(--ink); }
.track-play svg { width: 12px; height: 12px; pointer-events: none; }
.tbl-audio-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tbl-audio-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-audio-sub { display: flex; align-items: center; gap: 8px; }
.tbl-audio-progress { flex: 1; height: 4px; border-radius: 2px; background: var(--fill-7); position: relative; cursor: pointer; }
.tbl-audio-progress::before { content: ""; position: absolute; inset: -6px 0; }
.tbl-audio-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--nk-ph); border-radius: 2px; }
.tbl-audio-time { flex: none; font-size: 10px; color: var(--ink-42); font-variant-numeric: tabular-nums; }
/* v0.14.4: the waveform's Play / Pause icon never takes the click (the button does) */
.wv-play svg, .wv-cue svg, .wv-tgl svg { pointer-events: none; }

/* v0.15.1: Log Out (v0.15.2: right of the Settings gear; an icon alone on a phone) */
.logout-btn { flex: none; height: 34px; padding: 0 14px 0 11px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  border: 1px solid var(--fill-8); background: var(--fill-3); color: var(--ink-72); font: 600 12px/1 var(--sans); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.logout-btn:hover { background: var(--fill-7); color: var(--ink); border-color: var(--line-7); }
.logout-btn svg { width: 15px; height: 15px; pointer-events: none; }
@media (max-width: 760px) { .logout-btn { padding: 0; width: 34px; justify-content: center; } .logout-btn span { display: none; } }

/* v0.15.6: Settings as a popup over the page - the board window's scrim, a round X top right */
.settings-scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade var(--t-slow); }
.settings-modal { position: relative; width: min(1100px, 100%); max-height: min(860px, 92vh); display: flex; flex-direction: column; border-radius: var(--r-xl); background: var(--panel-solid); border: 1px solid var(--fill-7); box-shadow: var(--big-drop); overflow: hidden; }
.settings-modal-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 16px 26px; border-bottom: 1px solid var(--fill-6); }
.settings-modal-head .eyebrow { margin: 0 0 6px; }
.settings-modal-title { margin: 0 0 4px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.settings-modal-head .muted { margin: 0; font-size: 12.5px; }
.settings-x { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--fill-8); background: var(--fill-3); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .12s, border-color .12s; }
.settings-x:hover { background: var(--fill-8); border-color: var(--line-7); }
.settings-x svg { width: 16px; height: 16px; pointer-events: none; }
.settings-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 22px 22px; }
.settings-modal-body .settings-grid { align-items: start; }
@media (max-width: 760px) { .settings-scrim { padding: 10px; } .settings-modal { max-height: 96vh; } .settings-modal-title { font-size: 26px; } }

/* v0.16.0: the page loader - the X CVLT X breathing, a thin line sweeping under it (Max chose option A); v0.16.1: 3x bigger (Max) */
.page-loader { min-height: calc(100vh - 170px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; animation: loader-in .35s ease-out .25s both; }
.page-loader.boot { min-height: 100vh; }
.page-loader-x { display: block; width: min(216px, 56vw); height: min(216px, 56vw); animation: loader-breathe 1.6s ease-in-out infinite; }
.page-loader-track { position: relative; display: block; width: min(252px, 66vw); height: 4px; border-radius: 2px; background: var(--fill-6); overflow: hidden; }
.page-loader-track i { position: absolute; top: 0; bottom: 0; left: 0; width: 32%; border-radius: 2px; background: var(--ink); animation: loader-sweep 1.3s ease-in-out infinite; }
@keyframes loader-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes loader-breathe { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
@keyframes loader-sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) { .page-loader, .page-loader-x, .page-loader-track i { animation: none; } .page-loader-track { display: none; } }
