@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/jakarta-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Templovo branding, light mode only: Plus Jakarta Sans, teal accent (#2ABFBF), ink #061919, outlined icons. */
:root {
  --bg: #F3F9F9;
  --surface: #FFFFFF;
  --surface-2: #EAF4F4;
  --ink: #061919;
  --muted: #4B6767;
  --line: #DBE9E9;
  --accent: #2ABFBF;          /* fills: buttons, active nav, progress */
  --accent-2: #1FA9A9;        /* hover */
  --accent-text: #137B7B;     /* accent used as text colour (readable on white) */
  --accent-soft: #DDF4F4;
  --accent-ink: #061919;      /* text on top of an accent fill */
  --deep: #061919;            /* same dark as the logo icon: CTAs, selected states, checkmarks. Accent cyan is the text/icon colour on it */
  --deep-2: #0D2E2E;          /* deep, hovered */
  --ok: #0F6F6F;  --ok-soft: #DDF4F4;   /* success = brand teal, not green */
  --warn: #8F5A00; --warn-soft: #FBF0D9;
  --bad: #B3261E; --bad-soft: #FBE7E5;
  --info: #2A62B8; --info-soft: #E6EEFB;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 25, 25, .05), 0 6px 20px rgba(6, 25, 25, .05);
  --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.15; margin: 0; font-weight: 700; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 15px; font-family: var(--sans); }
p { margin: 0 0 .8em; }
a { color: var(--accent-text); }
code { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.icon { flex: none; vertical-align: -3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 9px 16px; border-radius: 999px; font: 600 14px/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, border-color .15s; min-height: 40px; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--deep); color: var(--accent); border-color: var(--deep); }
.btn.primary:hover { background: var(--deep-2); border-color: var(--deep-2); color: var(--accent-2); }
.btn.accent { background: var(--deep); color: var(--accent); border-color: var(--deep); }
.btn.accent:hover { background: var(--deep-2); border-color: var(--deep-2); color: var(--accent-2); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn.small { padding: 6px 12px; min-height: 32px; font-size: 13px; }
.btn.block { width: 100%; }
.icon-btn { border: 0; background: transparent; color: var(--muted); padding: 8px; border-radius: 10px; cursor: pointer; display: inline-flex; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-weight: 600; font-size: 14px; }
.field-help { color: var(--muted); font-size: 13px; }
.field-error { color: var(--bad); font-size: 13px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 10px 12px; font: inherit; min-height: 42px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; margin-bottom: 10px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--deep); flex: none; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; gap: 10px; background: var(--surface); }
.choice input { margin-top: 4px; accent-color: var(--deep); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice strong { display: block; }
.form-error { background: var(--bad-soft); color: var(--bad); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.form-ok { background: var(--ok-soft); color: var(--ok); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
  radial-gradient(700px 400px at -10% 110%, color-mix(in srgb, var(--info) 12%, transparent), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px var(--display); letter-spacing: -.02em; margin-bottom: 22px; }
.brand-mark { width: 30px; height: 30px; display: block; flex: none; }
.tabs { display: flex; background: var(--surface-2); padding: 4px; border-radius: 999px; margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.auth h1 { font-size: 26px; margin-bottom: 6px; }
.auth .lead { color: var(--muted); margin-bottom: 22px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 0 8px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current=page] { background: var(--deep); color: var(--accent); }
.nav .count { margin-left: auto; background: var(--deep); color: var(--accent); border-radius: 999px; font-size: 12px; padding: 1px 8px; min-width: 22px; text-align: center; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.side-foot .who { padding: 0 8px 10px; overflow-wrap: anywhere; }
.project-switch { margin: 0 4px 12px; }
.main { padding: 32px clamp(16px, 4vw, 48px) 80px; max-width: 1180px; width: 100%; }
.topbar { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.crumb { color: var(--muted); text-decoration: none; font-size: 14px; display: inline-flex; gap: 4px; align-items: center; margin-bottom: 10px; }
.crumb:hover { color: var(--ink); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-102%); transition: transform .2s; z-index: 40; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .topbar .brand { margin: 0; font-size: 18px; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
  .main { padding-top: 22px; }
  h1 { font-size: 26px; }
}

/* ---------- cards & layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1120px) { .split { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .n { font: 700 28px var(--display); line-height: 1.15; letter-spacing: -.03em; }
.kpi .l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.kpi.alert { border-color: var(--bad); background: var(--bad-soft); }
.kpi.alert .n { color: var(--bad); }
.kpi.hot { border-color: var(--accent); background: var(--accent-soft); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }

.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.bar.ok span { background: var(--ok); }

.ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font: 700 26px var(--display); line-height: 1; }
.ring-label span { font-size: 11px; color: var(--muted); }

/* hero */
.hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background:
  radial-gradient(520px 220px at 100% 0, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.hero .grow { flex: 1; min-width: 240px; }
.hero h2 { font-size: 26px; margin-bottom: 8px; }
.hero.ok { background: radial-gradient(520px 220px at 100% 0, color-mix(in srgb, var(--ok) 18%, transparent), transparent 70%), var(--surface); }
.hero.warn { background: radial-gradient(520px 220px at 100% 0, color-mix(in srgb, var(--warn) 20%, transparent), transparent 70%), var(--surface); }
.countdown { font: 700 clamp(34px, 6vw, 54px)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.countdown.is-late { color: var(--bad); }
.countdown.dim { color: var(--muted); }
.cd-label { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }

/* timeline phases */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.phase .t { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; margin-bottom: 7px; }
.phase .t span { color: var(--muted); font-weight: 500; }

/* task list */
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.tasks li:first-child { border-top: 0; }
.dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.dot.done { background: var(--deep); color: var(--accent); }
.dot.warn { background: var(--warn); color: #fff; }
.dot.now { background: var(--deep); color: var(--accent); }
.dot.lock { background: var(--surface-2); }
.tasks .grow { flex: 1; min-width: 0; }
.tasks .sub { color: var(--muted); font-size: 13px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.activity li:first-child { border-top: 0; }
.activity time { color: var(--muted); font-size: 12px; display: block; }
.act-row { border-top: 1px solid var(--line); }
.act-row:first-child { border-top: 0; }
.act-top { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 2px; cursor: pointer; font: 500 14px var(--sans); color: var(--ink); }
.act-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.act-top svg { color: var(--muted); transition: transform .15s; flex: none; }
.act-top[aria-expanded=true] svg { transform: rotate(90deg); }
.act-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; }
.act-last { flex-basis: 100%; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-sub { color: var(--muted); font-size: 12px; white-space: nowrap; }
.act-row .activity { margin: 0 0 8px 2px; padding-left: 12px; border-left: 2px solid var(--line); }
.act-row .activity li { border-top: 0; padding: 6px 0; }
.act-list > .btn { margin-top: 8px; }

/* stepper */
.setup { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 960px) { .setup { grid-template-columns: 1fr; } }
.rail { list-style: none; margin: 0; padding: 0; position: sticky; top: 20px; }
@media (max-width: 960px) { .rail { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; } .rail li { flex: none; } .rail .sdesc { display: none; } }
.rail li a { display: flex; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); align-items: center; }
.rail li a:hover { background: var(--surface-2); }
.rail li a[aria-current=step] { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rail .sdesc { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.rail .stitle { font-weight: 700; font-size: 14px; line-height: 1.25; }
.step-panel h2 { margin-bottom: 6px; }
.callout { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout.info { background: var(--info-soft); color: var(--info); }
.callout.ok { background: var(--ok-soft); color: var(--ok); }
.callout.bad { background: var(--bad-soft); color: var(--bad); }
.callout > div { color: var(--ink); } .callout b { color: inherit; }
.tutorial { margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.tutorial .tt { padding: 12px 16px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.tutorial video, .tutorial iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.tutorial .soon { padding: 0 16px 14px; color: var(--muted); font-size: 14px; }
.copybox { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px dashed var(--line); background: var(--surface-2); padding: 8px 8px 8px 14px; border-radius: 10px; margin-bottom: 8px; overflow-wrap: anywhere; }
ol.how { padding-left: 20px; margin: 0 0 18px; } ol.how li { margin-bottom: 7px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.section-t { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-t:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

/* uploads */
.dropzone { border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; background: var(--surface-2); margin-bottom: 8px; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.file { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); position: relative; font-size: 12px; }
.file .thumb { aspect-ratio: 1; display: grid; place-items: center; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 14px 14px; color: var(--muted); }
.file img { width: 100%; height: 100%; object-fit: contain; }
.file .nm { padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .rm { position: absolute; top: 4px; right: 4px; background: var(--surface); border-radius: 8px; }
.upbar { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 8px; } .upbar span { display: block; height: 100%; background: var(--accent); width: 0; }

/* tables */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar input[type=search] { max-width: 300px; }
.toolbar select { width: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .who { font-weight: 700; } td .em { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font: 600 13px var(--sans); cursor: pointer; color: var(--ink); display: inline-flex; gap: 7px; align-items: center; }
.chip[aria-pressed=true] { background: var(--deep); color: var(--accent); border-color: var(--deep); }
.chip .n { opacity: .65; font-weight: 500; }

/* project cards */
.pcard { display: block; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; margin-bottom: 14px; transition: border-color .15s; }
.pcard:hover { border-color: var(--accent); }
.pc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.pc-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-k { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pc-v { font-size: 15px; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pc-v b { font-weight: 800; }
.pc-v .cd { font: 700 15px var(--mono); }
.pc-v .cd.late { color: var(--bad); }
.pc-flow-title { margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pc-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.pc-s { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 6px; }
.pc-s:not(:last-child)::after { content: ''; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: var(--line); }
.pc-s.done:not(:last-child)::after { background: var(--deep); }
.pc-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface-2); color: var(--muted); border: 2px solid var(--surface-2); }
.pc-s.done .pc-dot { background: var(--deep); border-color: var(--deep); color: var(--accent); }
.pc-s.now .pc-dot { background: var(--surface); border-color: var(--deep); color: var(--deep); }
.pc-s-name { font-weight: 700; font-size: 14px; }
.pc-s.todo .pc-s-name { color: var(--muted); font-weight: 600; }
.pc-s-cap { color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  .pc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-flow { grid-auto-flow: row; gap: 14px; }
  .pc-s { flex-direction: row; text-align: left; gap: 12px; padding: 0; flex-wrap: wrap; }
  .pc-s::after { display: none; }
}

/* checklist */
.ck { list-style: none; padding: 0; margin: 0; }
.ck li { border-top: 1px solid var(--line); }
.ck li:first-child { border-top: 0; }
.ck label { display: flex; gap: 12px; padding: 10px 2px; cursor: pointer; align-items: flex-start; }
.ck input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--deep); flex: none; }
.ck .hint { display: block; color: var(--muted); font-size: 13px; }
.ck input:checked + span b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 8px; } }
.info-step { border-top: 1px solid var(--line); padding: 14px 0; }
.info-step:first-of-type { border-top: 0; }
.info-step header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.info-step header strong { flex: 1; }

/* tickets */
.thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--deep); color: var(--accent); }
.msg time { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.msg .by { font-size: 12px; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.trow { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.trow:first-child { border-top: 0; } .trow:hover { background: var(--surface-2); }
.trow .grow { flex: 1; min-width: 0; } .trow .pv { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* tutorials admin */
.tut { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
@media (max-width: 860px) { .tut { grid-template-columns: 1fr; } }
.tut video, .tut iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; }
.novid { aspect-ratio: 16/9; border: 1.5px dashed var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 12px; font-size: 13px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }

/* misc */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); } .empty strong { display: block; color: var(--ink); font: 700 18px var(--display); margin-bottom: 6px; }
.loading { display: flex; gap: 12px; align-items: center; padding: 60px 0; justify-content: center; color: var(--muted); }
.spin { width: 20px; height: 20px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp .8s linear infinite; } @keyframes sp { to { transform: rotate(360deg); } }
.overlay { position: fixed; inset: 0; background: rgba(20, 17, 15, .5); display: grid; place-items: center; padding: 16px; z-index: 100; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 92vh; display: flex; flex-direction: column; }
.modal.wide { max-width: 640px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; gap: 10px; }
.modal-body { padding: 16px 22px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; flex-wrap: wrap; }
#toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: center; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; animation: tin .2s; transition: opacity .4s; }
.toast.out { opacity: 0; } .toast-bad { background: var(--bad); color: #fff; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.locked-page { text-align: center; padding: 56px 24px; }
.locked-page .lockicon { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 18px; color: var(--muted); }
.big-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; background: var(--surface); }
.big-link:hover { border-color: var(--accent); }
.big-link strong { display: block; font-size: 17px; } .big-link span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 300; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.countdown.sm { font-size: 16px; letter-spacing: 0; line-height: 1.3; }
td:first-child { min-width: 230px; }

/* ---- assets pages ---- */
.assets [hidden] { display: none !important; }
.assets .back { margin-bottom: 4px; }
.assets .back svg { transform: rotate(180deg); }
.page-title { margin: 12px 0 4px; font-size: 20px; }
.pages .btn { flex: none; }
.items { display: grid; gap: 16px; margin-bottom: 14px; }
.item-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 4px; background: var(--surface); }
.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.colorrow { display: flex; gap: 10px; align-items: center; }
.colorrow input[type=color] { width: 44px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex: none; }
.colorrow input[type=text] { max-width: 150px; font-family: var(--mono); }
.stars { display: flex; gap: 4px; }
.star { all: unset; cursor: pointer; color: var(--line); display: inline-flex; padding: 2px; border-radius: 8px; }
.star.on { color: var(--deep); }
.star.on svg { fill: currentColor; }
.star:focus-visible { outline: 2px solid var(--accent); }
.asset-sec { padding: 12px 0; border-top: 1px solid var(--line); }
.asset-sec:first-child { border-top: 0; }
.asset-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.item-card.ro { padding: 14px 16px 12px; margin-top: 10px; }
.item-card.ro > strong { display: block; margin-bottom: 8px; }
.swatch-row { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); }
.swatch { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); display: inline-block; }

/* ---- admin workflow checklist: one coloured tab per phase, equal gaps ---- */
.wf { display: grid; gap: 14px; }
.wf-phase { border-radius: 14px; padding: 16px 20px; }
.wf-phase.p-intake { background: #DBEAFB; } /* baby blue */
.wf-phase.p-build { background: #FFF5C4; } /* baby yellow */
.wf-phase.p-qa { background: #D9F4DC; } /* baby green */
.wf-phase.p-handoff { background: #E8DFFA; } /* baby purple */
.wf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 6px; }
.wf-head h4 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.005em; }
.wf-count { background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 2px 11px; font-size: 12px; font-weight: 700; }
.wf-phase .ck li { border-top: 1px solid rgba(6, 25, 25, .09); }
.wf-phase .ck li:first-child { border-top: 0; }

/* ---- filters: tag input and per-item dropdowns ---- */
.tags-in { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: text; min-height: 46px; }
.tags-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tags-in input { all: unset; flex: 1; min-width: 150px; padding: 4px 2px; font: 500 15px var(--sans); }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--deep); color: var(--accent); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; font-weight: 600; }
.tag button { all: unset; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; line-height: 1; }
.tag button:hover { background: rgba(42, 191, 191, .25); }
.fgroups { display: grid; gap: 14px; margin-bottom: 14px; }
.filter-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pick { display: flex; flex-direction: column; gap: 5px; }
.pick-k { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.linkish { all: unset; cursor: pointer; color: var(--accent-text); font-weight: 600; text-decoration: underline; }

/* ---- clearer check marks: heavier stroke, slightly larger ---- */
.dot svg { width: 17px; height: 17px; stroke-width: 3.4; }
.pc-dot svg { width: 18px; height: 18px; stroke-width: 3.4; }

/* ---- step numbers: heavier and optically centred in the circle ---- */
.dot, .pc-dot { font-weight: 800; line-height: 1; text-align: center; font-variant-numeric: lining-nums tabular-nums; }
.dot { font-size: 13px; padding-bottom: 1px; }
.pc-dot { font-size: 15px; padding-bottom: 2px; }
.dot svg, .pc-dot svg { margin-bottom: -1px; }

/* ---- variants editor (options + one row per variant) ---- */
.vfield .check { margin-bottom: 12px; }
.vbody { display: grid; gap: 12px; }
.vopt { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); display: grid; gap: 10px; }
.vopt-top { display: flex; gap: 10px; align-items: flex-end; }
.vf { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.vf.grow { flex: 1; }
.vf-k { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.vhead { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.vhead .field-help.bad { color: var(--bad); }
.vrows { display: grid; gap: 10px; }
.vrow { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.vrow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.vrow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.vwrap { display: grid; gap: 8px; overflow-x: auto; }
.vtable { border-collapse: collapse; font-size: 13px; width: 100%; }
.vtable th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 4px 10px 4px 0; }
.vtable td { padding: 6px 10px 6px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.vthumb { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; vertical-align: middle; border: 1px solid var(--line); }
