/* Forma client portal. Palette and type pulled from formastudios.co */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/geist-400.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/geist-500.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/geist-600.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/geist-700.woff2) format("woff2"); }
@font-face { font-family: "Fragment Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/fragment-mono-400.woff2) format("woff2"); }

:root {
  --stone: #ebe8e4;
  --stone-2: #e2ded9;
  --ink: #1e1e1e;
  --ink-60: rgba(30, 30, 30, .6);
  --ink-40: rgba(30, 30, 30, .4);
  --line: rgba(30, 30, 30, .12);
  --line-soft: rgba(30, 30, 30, .07);
  --red: #fc3637;
  --red-dark: #e42a2b;
  --red-tint: #fde4e2;
  --maroon: #5b1314;
  --white: #fff;
  --black: #171717;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, Menlo, monospace;
  --rail: 76px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--stone); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; text-transform: none; }
.muted { color: var(--ink-60); }
.red { color: var(--red); }
.hidden { display: none !important; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail { background: var(--white); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; }
.rail .mark { width: var(--rail); height: var(--rail); display: block; }
.rail .mark img { width: 100%; height: 100%; object-fit: cover; }
.rail .wordmark { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: 28px; }
.rail .wordmark img { width: 120px; transform: rotate(90deg) translateX(46px); transform-origin: center; }
.rail .dots { padding: 22px 0 26px; opacity: .55; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { background: var(--ink); color: var(--white); height: var(--rail); display: flex; align-items: stretch; position: sticky; top: 0; z-index: 20; }
.topbar .mobile-mark { display: none; width: var(--rail); flex: none; }
.topbar .mobile-mark img { width: 100%; height: 100%; object-fit: cover; }
.topbar nav { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.topbar nav a { display: flex; align-items: center; gap: 10px; padding: 0 24px; text-decoration: none; color: rgba(255, 255, 255, .62); font-weight: 500; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .08); transition: color .15s, background .15s; }
.topbar nav a:hover { color: var(--white); background: rgba(255, 255, 255, .04); }
.topbar nav a.on { color: var(--white); background: rgba(255, 255, 255, .06); box-shadow: inset 0 -3px 0 var(--red); }
.topbar nav a .mono { color: var(--red); font-size: 11px; }
.topbar nav a .count { background: var(--red); color: var(--white); font-family: var(--mono); font-size: 10px; padding: 2px 6px; }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 18px; padding: 0 0 0 24px; }
.topbar .who .name { font-weight: 500; line-height: 1.2; text-align: right; }
.topbar .who .name small { display: block; color: rgba(255, 255, 255, .5); font-family: var(--mono); font-size: 11px; }
.topbar .who form { height: 100%; }
.topbar .who button { white-space: nowrap; height: 100%; background: var(--white); color: var(--ink); border: 0; padding: 0 24px; font: 500 14px var(--sans); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.topbar .who button svg { width: 12px; height: 12px; flex: none; }
.topbar .who button:hover { background: var(--stone); }

.content { padding: 48px clamp(20px, 4vw, 56px) 80px; max-width: 1280px; width: 100%; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--ink-60); margin-bottom: 14px; display: block; }
.eyebrow .red { color: var(--red); }
.page-head h1 { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -.045em; font-weight: 600; }
.slash { color: var(--red); font-weight: 500; }
.lede { color: var(--ink-60); max-width: 560px; margin-top: 14px; font-size: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--red); --fg: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--bg); color: var(--fg); border: 1px solid var(--bg); padding: 13px 20px; font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { --bg: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 12px; height: 12px; flex: none; }
.btn.light { --bg: var(--white); --fg: var(--ink); border-color: var(--white); }
.btn.light:hover { --bg: #f7f6f4; }
.btn.dark { --bg: var(--ink); --fg: var(--white); }
.btn.dark:hover { --bg: #000; }
.btn.ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn.ghost:hover { --bg: rgba(255, 255, 255, .6); }
.btn.small { padding: 9px 14px; font-size: 13px; }
.btn.danger { --bg: transparent; --fg: #b3191a; border-color: rgba(179, 25, 26, .3); }
.btn.danger:hover { --bg: var(--red-tint); }
.btn.full { width: 100%; justify-content: space-between; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-60); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.linkbtn:hover { color: var(--ink); }

/* ---------- Panels / cards ---------- */
.panel { background: var(--white); border: 1px solid var(--line-soft); }
.panel + .panel, .stack > * + * { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.panel-head h2 { font-size: 22px; }
.panel-head .num { font-family: var(--mono); font-size: 12px; color: var(--red); margin-right: 10px; }
.panel-body { padding: 24px; }
.panel-body.tight { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }

.stat { background: var(--white); padding: 22px 24px 20px; border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 22px; }
.stat .label { font-family: var(--mono); font-size: 12px; color: var(--ink-60); }
.stat .value { font-size: 56px; font-weight: 600; letter-spacing: -.05em; line-height: .9; }
.stat .value .slash { font-size: 40px; margin-right: 2px; }
.stat.red { background: var(--red); color: var(--white); border-color: var(--red); }
.stat.red .label { color: rgba(255, 255, 255, .75); }
.stat.red .slash { color: var(--white); }
.stat.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stat.dark .label { color: rgba(255, 255, 255, .6); }

/* ---------- Lists / tables ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li, .rows > a { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.rows > a:hover { background: #faf9f8; }
.rows > :last-child { border-bottom: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .title { font-weight: 500; }
.rows .sub { color: var(--ink-60); font-size: 13px; }
.empty { padding: 36px 24px; color: var(--ink-60); text-align: center; }
.empty strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }

table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 400 12px var(--mono); color: var(--ink-60); padding: 14px 24px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 16px 24px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #faf9f8; }
.table .strong { font-weight: 500; }
.table a { text-decoration: none; }
.table-wrap { overflow-x: auto; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 400 11px/1 var(--mono); padding: 6px 8px; border: 1px solid var(--line); color: var(--ink-60); white-space: nowrap; background: var(--white); }
.badge::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.badge.progress { background: var(--red-tint); border-color: transparent; color: var(--maroon); }
.badge.progress::before { background: var(--red); }
.badge.done { background: var(--ink); border-color: var(--ink); color: var(--white); }
.badge.done::before { background: var(--red); }
.badge.paused { background: var(--stone); border-color: transparent; }
.badge.new { background: var(--red); color: var(--white); border-color: var(--red); }
.badge.new::before { background: var(--white); }

/* ---------- Progress ---------- */
.meter { height: 6px; background: var(--stone); position: relative; }
.meter > span { position: absolute; inset: 0 auto 0 0; background: var(--red); }
.stages { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stage .bar { height: 8px; background: var(--stone); position: relative; overflow: hidden; }
.stage.done .bar { background: var(--red); }
.stage.in_progress .bar { background: var(--red-tint); }
.stage.in_progress .bar::after { content: ""; position: absolute; inset: 0 50% 0 0; background: var(--red); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.stage .lbl { font-size: 13px; line-height: 1.3; color: var(--ink-60); }
.stage .lbl .mono { display: block; font-size: 11px; margin-bottom: 2px; color: var(--ink-40); }
.stage.done .lbl, .stage.in_progress .lbl { color: var(--ink); }
.stage.in_progress .lbl .mono, .stage.done .lbl .mono { color: var(--red); }
.big-percent { font-size: 64px; font-weight: 600; letter-spacing: -.05em; line-height: .85; }
.big-percent small { font-size: 28px; color: var(--red); margin-left: 2px; }
.update-note { background: var(--stone); padding: 16px 18px; border-left: 3px solid var(--red); font-size: 14px; white-space: pre-wrap; }
.update-note .mono { display: block; color: var(--ink-60); margin-bottom: 6px; }

/* ---------- Forms ---------- */
label.field, .field { display: block; }
.field + .field, .fields > * + * { margin-top: 16px; }
.field > span, .field-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.field > span small, .field-label small { font-weight: 400; color: var(--ink-60); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 12px 14px; border-radius: 0; outline: none; transition: border-color .15s, box-shadow .15s; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30, 30, 30, .06); }
.on-stone input, .on-stone select, .on-stone textarea { border-color: rgba(30, 30, 30, .16); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.hint { font-size: 13px; color: var(--ink-60); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
details.more summary { cursor: pointer; list-style: none; font-size: 13px; color: var(--ink-60); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; color: var(--red); font-family: var(--mono); }
details.more[open] summary::before { content: "- "; }

/* Flash messages */
.flash { padding: 14px 18px; margin-bottom: 20px; border-left: 3px solid var(--ink); background: var(--white); font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.flash .mono { color: var(--ink-60); }
.flash.success { border-color: var(--red); }
.flash.error { border-color: var(--red); background: var(--red-tint); color: var(--maroon); }

/* Copy block for credentials */
.credentials { background: var(--ink); color: var(--white); padding: 28px; font-family: var(--mono); font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; position: relative; }
.credentials .pw { color: var(--red); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { font-family: var(--mono); font-size: 12px; color: var(--ink-60); padding-top: 2px; }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- Questionnaire (client) ---------- */
.q-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 32px; align-items: start; }
.q-aside { position: sticky; top: 100px; }
.q-section { margin: 48px 0 16px; display: flex; align-items: baseline; gap: 14px; }
.q-section:first-child { margin-top: 0; }
.q-section h2 { font-size: 30px; letter-spacing: -.04em; }
.q-section .mono { color: var(--red); }
.q-item { background: var(--white); padding: 24px 26px; border: 1px solid var(--line-soft); margin-bottom: 8px; transition: border-color .15s; }
.q-item:focus-within { border-color: var(--ink); }
.q-item.missing { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.q-item .q-label { font-size: 17px; font-weight: 500; letter-spacing: -.01em; display: block; margin-bottom: 4px; }
.q-item .q-label .req { color: var(--red); margin-left: 4px; }
.q-item .q-help { color: var(--ink-60); font-size: 14px; margin-bottom: 14px; }
.q-item .q-input { margin-top: 14px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); font-size: 14px; transition: all .12s; background: var(--white); }
.choice span::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--ink-40); flex: none; }
.choice input[type=radio] + span::before { border-radius: 50%; }
.choice:hover span { border-color: var(--ink-40); }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.choice input:checked + span::before { background: var(--red); border-color: var(--red); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.scale .choice span { justify-content: center; padding: 12px 0; font-family: var(--mono); }
.scale .choice span::before { display: none; }
.scale-ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-60); margin-top: 8px; }
.save-state { font-family: var(--mono); font-size: 11px; color: var(--ink-60); min-height: 16px; }
.save-state.saving::before { content: "Saving..."; }
.answer-view { white-space: pre-wrap; font-size: 16px; }
.answer-view.none { color: var(--ink-40); font-style: italic; }
.preview-banner { background: var(--ink); color: var(--white); padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: 14px; }

/* ---------- Builder ---------- */
.b-item { background: var(--white); border: 1px solid var(--line-soft); margin-bottom: 8px; display: grid; grid-template-columns: 44px 1fr; }
.b-item.section { background: var(--ink); color: var(--white); }
.b-item.section input { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .2); font-weight: 600; font-size: 18px; }
.b-handle { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 18px; gap: 2px; border-right: 1px solid var(--line-soft); }
.b-item.section .b-handle { border-color: rgba(255, 255, 255, .1); }
.b-handle .n { font-family: var(--mono); font-size: 11px; color: var(--red); margin-bottom: 6px; }
.b-handle button { background: none; border: 0; cursor: pointer; padding: 4px; color: var(--ink-40); font-size: 14px; line-height: 1; }
.b-item.section .b-handle button { color: rgba(255, 255, 255, .5); }
.b-handle button:hover { color: var(--red); }
.b-main { padding: 16px 18px; display: grid; gap: 10px; }
.b-top { display: grid; grid-template-columns: 1fr 180px; gap: 10px; }
.b-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.b-bottom .check { font-size: 13px; }
.b-add { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px; background: var(--white); border: 1px dashed var(--ink-40); }
.b-add .mono { width: 100%; color: var(--ink-60); margin-bottom: 4px; }
.savebar { position: sticky; bottom: 0; z-index: 10; background: var(--ink); color: var(--white); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.savebar .mono { color: rgba(255, 255, 255, .6); }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; background: var(--white) url(/static/img/waves.jpg) center / cover; color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .84) 0%, rgba(255, 255, 255, .88) 55%, rgba(255, 255, 255, .95) 100%); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .copy { padding: 48px; }
.auth-art .eyebrow { color: var(--ink-60); }
.auth-art h1 { font-size: clamp(56px, 7vw, 112px); letter-spacing: -.055em; line-height: .9; }
.auth-art .copy p { color: var(--ink-60); max-width: 380px; margin: 22px 0 0; }
.auth-art .barcode { position: absolute; right: 48px; bottom: 54px; width: 110px; opacity: .85; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 96px); }
.auth-form .inner { width: 100%; max-width: 420px; }
.auth-form h2 { font-size: 48px; letter-spacing: -.045em; margin-bottom: 10px; }
.auth-form .foot { margin-top: 28px; font-size: 13px; color: var(--ink-60); }
.auth-form .wm { width: 110px; margin-bottom: 64px; }

/* Error page */
.solo { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.solo .box { max-width: 520px; }
.solo h1 { font-size: 56px; letter-spacing: -.05em; margin: 10px 0 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .q-layout, .grid.side { grid-template-columns: 1fr; }
  .q-aside { position: static; order: -1; }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .topbar .mobile-mark { display: block; }
  .topbar .who .name { display: none; }
  .topbar nav a { padding: 0 16px; }
  .topbar nav a .mono { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 280px; }
  .auth-art .barcode { display: none; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .stages { grid-auto-flow: row; grid-auto-columns: auto; }
  .stage { flex-direction: row; align-items: center; }
  .stage .bar { width: 48px; flex: none; }
  .stage .lbl .mono { display: inline; margin-right: 6px; }
  .b-top { grid-template-columns: 1fr; }
  .scale { grid-template-columns: repeat(5, 1fr); }
  .content { padding-top: 32px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
}
@media print {
  .rail, .topbar, .actions, .savebar, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .panel, .q-item { border-color: #ddd; break-inside: avoid; }
}

/* ---------- Client journey (steps) ---------- */
.journey + .journey { margin-top: 56px; }
.journey-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 20px; }
.journey-head h2 { font-size: 34px; letter-spacing: -.04em; }
.journey-progress { width: 280px; display: grid; gap: 10px; }
.journey-progress .big-percent { text-align: right; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { background: var(--white); border: 1px solid var(--line-soft); display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 26px 28px 26px 0; position: relative; scroll-margin-top: 110px; transition: border-color .2s; }
.step-num { font-size: 44px; font-weight: 600; letter-spacing: -.05em; color: var(--ink-40); text-align: center; line-height: 1; }
.step-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.step h3 { font-size: 26px; letter-spacing: -.035em; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; }
.step .file-meta { margin-top: 10px; font-size: 11px; }
.step-meter { display: flex; align-items: center; gap: 14px; margin-top: 14px; max-width: 420px; }
.step-meter .meter { flex: 1; }
.step-action { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; max-width: 320px; }
.step-note { font-size: 13px; text-align: right; max-width: 220px; }
.step.is-current { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--red); }
.step.is-current .step-num { color: var(--red); }
.step.is-done .step-num { color: var(--ink); }
.step.is-done .step-num::after { content: ""; display: block; width: 8px; height: 8px; background: var(--red); margin: 10px auto 0; }
.step.is-locked { background: transparent; border-style: dashed; border-color: var(--line); }
.step.is-locked h3, .step.is-locked p, .step.is-locked .step-num { opacity: .5; }
.step:target { border-color: var(--red); }
@media (max-width: 860px) {
  .step { grid-template-columns: 56px minmax(0, 1fr); padding: 20px 20px 20px 0; gap: 14px; }
  .step-num { font-size: 26px; }
  .step-action { grid-column: 2; justify-content: flex-start; }
  .step-note { text-align: left; }
  .journey-progress { width: 100%; }
  .journey-progress .big-percent { text-align: left; }
}

/* Admin step editor */
.admin-steps { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 6px; }
.admin-steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 240px; gap: 16px; align-items: start; background: #faf9f8; border: 1px solid var(--line-soft); padding: 14px 16px 14px 0; }
.admin-steps li.locked { background: transparent; border-style: dashed; }
.as-num { font-size: 22px; font-weight: 600; letter-spacing: -.04em; color: var(--red); text-align: center; padding-top: 8px; }
.as-main { display: grid; gap: 6px; }
.as-title { font-weight: 600 !important; font-size: 16px !important; padding: 9px 12px !important; }
.as-desc { font-size: 13px !important; padding: 8px 12px !important; color: var(--ink-60) !important; }
.as-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; }
.as-meta .mono { font-size: 11px; }
.as-status { width: auto !important; padding: 6px 30px 6px 10px !important; font-size: 13px !important; }
.as-file { display: grid; gap: 4px; justify-items: start; }
.as-file .mono { font-size: 11px; }
.as-filename { font-weight: 500; font-size: 13px; word-break: break-all; text-decoration: underline; text-underline-offset: 3px; }
.as-file-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.as-file-actions label.btn { cursor: pointer; }
@media (max-width: 860px) { .admin-steps li { grid-template-columns: 40px minmax(0, 1fr); } .as-file { grid-column: 2; } }
