/* ═══════════════════════════════════════════════════════════════════
   bluebeamdashboard.com — site styles (built on hardtofindcode.com
   style.css tokens: --color-*, --space-*, --text-*, --radius-*)
   ═══════════════════════════════════════════════════════════════════ */
:root { --bd-blue: #4a9bbe; --bd-amber: #f07c00; --bd-ink: #0d0f12; --bd-green: #3cb86e; --bd-red: #e45a5a;
  --surface: var(--color-surface); --surface2: var(--color-surface-offset); --border: var(--color-border);
  --muted: var(--color-text-muted); --faint: var(--color-text-faint); --blue: #4a9bbe; --amber: #f07c00;
  --blue-dim: rgba(74,155,190,.12); --r-sm: 8px; --r-md: 12px; }

/* brand pill next to the HTFC logo */
.nav__brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; min-width: 0; }
.nav__product { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bd-amber); border-left: 1px solid var(--color-border); padding-left: var(--space-3); white-space: nowrap; line-height: 1.1; }
.nav__links a[rel~="external"] { white-space: nowrap; }
.ext { font-size: .85em; opacity: .7; }
@media (max-width: 520px) { .nav__product { display: none; } }

.bd-demo-bar { background: rgba(240,124,0,.12); border-bottom: 1px solid rgba(240,124,0,.35); color: var(--color-text);
  font-size: var(--text-xs); padding: .55rem var(--space-4); text-align: center; line-height: 1.5; }
.bd-demo-bar code { background: rgba(240,124,0,.18); padding: 1px 6px; border-radius: 4px; font-size: .95em; }
.bd-demo-bar__reset { margin-left: .5rem; background: none; border: 1px solid rgba(240,124,0,.5); color: inherit; border-radius: 999px; padding: 1px 10px; font: inherit; cursor: pointer; }

.eyebrow { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-3); }
.lede { font-size: var(--text-lg); color: var(--color-text-muted); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }
.tiny { font-size: var(--text-xs); }
.btn--amber { background: var(--bd-amber); color: #fff; }
.btn--amber:hover { background: #d66a00; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn--outline:hover { border-color: var(--bd-blue); color: var(--bd-blue); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.bd-hero { padding-block: clamp(var(--space-12), 7vw, var(--space-20)) clamp(var(--space-10), 5vw, var(--space-16));
  background: radial-gradient(1200px 500px at 85% -10%, rgba(74,155,190,.16), transparent 60%), linear-gradient(170deg, #0d1520 0%, var(--color-bg) 55%);
  border-bottom: 1px solid var(--color-border); }
[data-theme='light'] .bd-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(30,101,133,.12), transparent 60%), var(--color-bg); }
.bd-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(var(--space-8), 4vw, var(--space-16)); align-items: center; }
.bd-hero__title { font-family: var(--font-display); font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; margin: 0 0 var(--space-5); }
.bd-hero__title em { font-style: normal; color: var(--bd-amber); }
.bd-hero__points { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-8); display: grid; gap: var(--space-2); }
.bd-hero__points li { display: flex; gap: .6rem; color: var(--color-text-muted); font-size: var(--text-sm); }
.bd-hero__points li::before { content: ''; flex: 0 0 8px; height: 8px; margin-top: .45em; border-radius: 2px; background: var(--bd-blue); }
.bd-hero__visual { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
@media (max-width: 900px) { .bd-hero__grid { grid-template-columns: 1fr; } }

/* ── Section scaffolding ──────────────────────────────────────────── */
.bd-section { padding-block: clamp(var(--space-12), 7vw, var(--space-20)); }
.bd-section--alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.bd-head { max-width: 760px; margin-bottom: var(--space-10); }
.bd-head h2 { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 var(--space-4); }
.bd-head p { color: var(--color-text-muted); font-size: var(--text-base); line-height: 1.65; margin: 0; }

/* ── Before / After ───────────────────────────────────────────────── */
.ba { position: relative; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: stretch; }
.ba__label { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--space-3); }
.ba__label::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.ba__label--before { color: var(--bd-red); }
.ba__label--after { color: var(--bd-green); }
.win { background: #15171a; color: #d7dbe0; border: 1px solid #2c3036; border-radius: 10px; overflow: hidden; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; box-shadow: 0 24px 60px -28px rgba(0,0,0,.8); height: 100%; display: flex; flex-direction: column; }
.win__bar { display: flex; align-items: center; gap: .6rem; background: #1f2226; border-bottom: 1px solid #2c3036; padding: .5rem .75rem; font-size: 12px; color: #9aa3ad; min-width: 0; }
.win__dots { display: flex; gap: 5px; flex: none; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e45a5a; display: block; }
.win__dots i:nth-child(2) { background: #f0a800; } .win__dots i:nth-child(3) { background: #3cb86e; }
.win__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__path { display: flex; align-items: center; gap: .4rem; padding: .45rem .75rem; font-size: 12px; background: #1a1d21; border-bottom: 1px solid #2c3036; color: #b9c0c8; white-space: nowrap; overflow: hidden; }
.win__path span { overflow: hidden; text-overflow: ellipsis; }
.win__body { padding: .6rem .4rem .9rem; font-size: 13px; line-height: 1.25; flex: 1; position: relative; }

.tree { list-style: none; margin: 0; padding: 0; }
.tree ul { list-style: none; margin: 0; padding-left: 1.15rem; border-left: 1px dotted #3a3f46; margin-left: .55rem; }
.tree li { padding: 2px .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 3px; }
.tree .f::before, .tree .d::before { display: inline-block; width: 1.25em; text-align: center; margin-right: .3rem; }
.tree .d::before { content: '▸'; color: #e8b84a; }
.tree .d { color: #e7d6a8; }
.tree .f::before { content: '▫'; color: #7e8792; }
.tree .f.pdf::before { content: 'PDF'; font-size: 8.5px; font-weight: 700; color: #fff; background: #c0392b; border-radius: 2px; width: auto; padding: 0 3px; }
.tree .f.xls::before { content: 'XLS'; font-size: 8.5px; font-weight: 700; color: #fff; background: #1f7a45; border-radius: 2px; width: auto; padding: 0 3px; }
.tree .f.doc::before { content: 'DOC'; font-size: 8.5px; font-weight: 700; color: #fff; background: #2b5797; border-radius: 2px; width: auto; padding: 0 3px; }
.tree .f.img::before { content: 'IMG'; font-size: 8.5px; font-weight: 700; color: #111; background: #b8c2cc; border-radius: 2px; width: auto; padding: 0 3px; }
.tree .f.msg::before { content: 'MSG'; font-size: 8.5px; font-weight: 700; color: #fff; background: #6c4fb3; border-radius: 2px; width: auto; padding: 0 3px; }
.tree .f.zip::before { content: 'ZIP'; font-size: 8.5px; font-weight: 700; color: #111; background: #e8b84a; border-radius: 2px; width: auto; padding: 0 3px; }
.tree .dup { background: rgba(228,90,90,.13); }
.tree .old { color: #8a929c; text-decoration: line-through; text-decoration-color: rgba(228,90,90,.6); }
.flag { position: absolute; z-index: 2; background: #e45a5a; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.7); white-space: nowrap; font-family: var(--font-body); }
.flag::after { content: ''; position: absolute; left: 12px; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: rotate(45deg); }

/* after: Revu dashboard tile grid */
.dash { background: #16181b; display: flex; flex-direction: column; flex: 1; }
.dash__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; border-bottom: 1px solid #2c3036; background: #1e2024; }
.dash__brand { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.dash__logo { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, var(--bd-blue), #2a6f8f); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; flex: none; }
.dash__name { font-size: 12.5px; font-weight: 700; color: #e9edf1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__name small { display: block; font-weight: 500; color: #8e98a3; font-size: 10.5px; }
.dash__live { font-size: 10.5px; color: #3cb86e; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.dash__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3cb86e; box-shadow: 0 0 0 3px rgba(60,184,110,.2); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: .8rem; flex: 1; align-content: start; }
.tile { background: #20242a; border: 1px solid #2f353d; border-radius: 7px; padding: .5rem .55rem .55rem; min-height: 54px; display: flex; flex-direction: column; justify-content: space-between; gap: .25rem; position: relative; overflow: hidden; }
.tile::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--t, var(--bd-blue)); }
.tile__k { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--t, var(--bd-blue)); font-weight: 700; }
.tile__v { font-size: 11.5px; color: #e4e8ec; font-weight: 600; line-height: 1.2; }
.tile__m { font-size: 9.5px; color: #8b95a0; }
.tile--spare { background: transparent; border-style: dashed; border-color: #343a42; }
.tile--spare::before { display: none; }
.tile--spare .tile__v { color: #6f7883; font-weight: 500; }
.tile--status { --t: #3cb86e; }

/* overlay comparison chart */
.ba .win__body, .ba .dash { padding-bottom: var(--space-12); }
.ba__overlay { position: relative; z-index: 3; margin: calc(-1 * var(--space-10)) auto 0; width: min(1040px, 96%);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border); border-top: 3px solid var(--bd-amber); border-radius: var(--radius-lg); padding: clamp(var(--space-5), 3vw, var(--space-8)); box-shadow: 0 30px 80px -24px rgba(0,0,0,.75); }
.ba__overlay h3 { font-family: var(--font-display); font-size: var(--text-lg); margin: 0 0 var(--space-1); letter-spacing: -.01em; }
.ba__overlay > p { margin: 0 0 var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }
.cmp-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); min-width: 640px; }
.cmp th, .cmp td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); line-height: 1.45; }
.cmp thead th { font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 700; border-bottom: 2px solid var(--color-border); }
.cmp tbody th { font-weight: 600; color: var(--color-text); width: 22%; }
.cmp td { color: var(--color-text-muted); }
.cmp .col-bd { background: rgba(74,155,190,.08); color: var(--color-text); }
.cmp thead .col-bd { color: var(--color-primary); background: rgba(74,155,190,.12); border-radius: 8px 8px 0 0; }
.cmp .cost td, .cmp .cost th { font-variant-numeric: tabular-nums; }
.cmp .cost .col-bd { color: var(--color-primary); font-weight: 700; }
.cmp .bad { color: #e88a7a; }
[data-theme='light'] .cmp .bad { color: #b03a2e; }
.cmp sup a { color: var(--bd-amber); text-decoration: none; font-weight: 700; }

.range { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
[data-range] { display: grid; gap: 10px; }
.range__title { font-size: var(--text-sm); font-weight: 700; margin: 0; }
.range__legend { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-xs); color: var(--color-text-muted); }
.range__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.range__legend i { width: 18px; height: 8px; border-radius: 4px; display: inline-block; }
.range__row { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-3); align-items: center; }
.range__lbl { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 600; }
.range__track { position: relative; height: 40px; background: repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 1px), var(--color-border) calc(16.666% - 1px) 16.666%); border-radius: 4px; }
.range__bar { position: absolute; height: 12px; border-radius: 6px; display: flex; align-items: center; }
.range__bar--pc { top: 6px; background: #8d98a5; }
.range__bar--bd { top: 22px; background: var(--bd-blue); }
.range__bar b { position: absolute; left: calc(100% + 6px); font-size: 10.5px; font-weight: 600; white-space: nowrap; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.range__bar--bd b { color: var(--color-primary); }
.range__bar b.l { left: auto; right: calc(100% + 6px); }
.range__track { overflow: visible; }
.ba__overlay { overflow: hidden; }
.range__axis { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-3); }
.range__axis div { display: flex; justify-content: space-between; font-size: 10px; color: var(--color-text-faint); font-variant-numeric: tabular-nums; }
.sources { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; }
.sources ol { margin: .35rem 0 0; padding-left: 1.2rem; }
.sources a { color: var(--bd-blue); word-break: break-word; }
@media (max-width: 900px) {
  .ba__pair { grid-template-columns: 1fr; }
  .ba__overlay { margin-top: var(--space-6); width: 100%; }
  .ba .win__body, .ba .dash { padding-bottom: var(--space-4); }
}
.ba, .ba__pair > figure { min-width: 0; }

/* ── Process steps ────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.step { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); position: relative; display: flex; flex-direction: column; gap: var(--space-2); }
.bd-section--alt .step { background: var(--color-bg); }
.step__n { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--bd-amber); font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--text-base); margin: 0; font-weight: 700; }
.step p { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; }
.step a { margin-top: auto; padding-top: var(--space-2); font-size: var(--text-xs); font-weight: 700; color: var(--bd-blue); text-decoration: none; letter-spacing: .04em; text-transform: uppercase; }
.step a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── Feature split / trades / cards ───────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(var(--space-8), 4vw, var(--space-16)); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.trades { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
.trade { display: flex; flex-direction: column; gap: .35rem; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); text-decoration: none; color: var(--color-text); background: var(--color-bg); transition: border-color .18s, transform .18s; }
.trade:hover { border-color: var(--tc, var(--bd-blue)); transform: translateY(-2px); }
.trade__sw { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--tc) 0 60%, var(--tc2) 60%); }
.trade b { font-size: var(--text-sm); }
.trade span { font-size: var(--text-xs); color: var(--color-text-muted); }
@media (max-width: 420px) { .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cta-band { border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-8), 5vw, var(--space-12)); background: linear-gradient(135deg, rgba(74,155,190,.12), rgba(240,124,0,.08)); display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center; }
.cta-band h2 { font-family: var(--font-display); font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.cta-band p { margin: 0; color: var(--color-text-muted); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ── Forms ────────────────────────────────────────────────────────── */
.page-head { padding-block: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-8); border-bottom: 1px solid var(--color-border); background: linear-gradient(170deg, #0d1520 0%, var(--color-bg) 70%); }
[data-theme='light'] .page-head { background: var(--color-surface); }
.page-head h1 { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 var(--space-3); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(var(--space-5), 3vw, var(--space-8)); }
.card h2, .card h3 { margin-top: 0; }
.card__title { font-family: var(--font-display); font-size: var(--text-lg); margin: 0 0 var(--space-1); }
.card__sub { margin: 0 0 var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label, .field .label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.field .req { color: var(--bd-amber); }
.field .hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.input, .select, .textarea { width: 100%; padding: .7rem .85rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font: inherit; font-size: var(--text-sm); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid rgba(74,155,190,.45); outline-offset: 1px; border-color: var(--bd-blue); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bd-red); }
.err { color: #ff8b7a; font-size: var(--text-xs); min-height: 1em; }
[data-theme='light'] .err { color: #b03a2e; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 1px solid var(--color-border); border-radius: 999px; font-size: var(--text-sm); background: var(--color-bg); cursor: pointer; }
.chip input:checked + span { border-color: var(--bd-blue); background: rgba(74,155,190,.14); color: var(--color-text); }
.chip input:focus-visible + span { outline: 2px solid var(--bd-blue); outline-offset: 2px; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--text-sm); line-height: 1.5; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--bd-blue); flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius-md); padding: .8rem 1rem; font-size: var(--text-sm); line-height: 1.5; border: 1px solid; }
.alert--err { border-color: rgba(228,90,90,.5); background: rgba(228,90,90,.1); }
.alert--ok { border-color: rgba(60,184,110,.5); background: rgba(60,184,110,.1); }
.alert--info { border-color: rgba(74,155,190,.45); background: rgba(74,155,190,.08); }

/* wizard */
.wizard-steps { display: flex; gap: var(--space-2); list-style: none; padding: 0; margin: 0 0 var(--space-6); counter-reset: w; flex-wrap: wrap; }
.wizard-steps li { flex: 1 1 160px; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--color-text-muted); background: var(--color-surface); }
.wizard-steps li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; font-size: 12px; flex: none; }
.wizard-steps li[aria-current="step"] { border-color: var(--bd-blue); color: var(--color-text); }
.wizard-steps li[aria-current="step"] b { background: var(--bd-blue); border-color: var(--bd-blue); color: #fff; }
.wizard-steps li.done { color: var(--color-text); }
.wizard-steps li.done b { background: var(--bd-green); border-color: var(--bd-green); color: #fff; }
.wizard-nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.editor-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .editor-wrap { grid-template-columns: 1fr; } }
.presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.preset { border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); border-radius: 999px; padding: .3rem .7rem; font: inherit; font-size: var(--text-xs); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.preset i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.preset[aria-pressed="true"] { border-color: var(--bd-blue); background: rgba(74,155,190,.14); }
.summary { display: grid; grid-template-columns: 180px 1fr; gap: .45rem 1rem; font-size: var(--text-sm); margin: 0; }
.summary dt { color: var(--color-text-muted); }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.swatches { display: flex; gap: .4rem; flex-wrap: wrap; }
.swatches span { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--text-xs); font-family: ui-monospace, monospace; }
.swatches i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); display: inline-block; }
.success-id { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; color: var(--bd-amber); letter-spacing: .02em; margin: var(--space-2) 0; font-variant-numeric: tabular-nums; }
.folder-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: .3rem; font-size: var(--text-sm); }
.folder-list li::before { content: '▸ '; color: #e8b84a; }

/* ── Project page ─────────────────────────────────────────────────── */
.proj-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); align-items: flex-end; }
.proj-id { font-family: var(--font-display); color: var(--bd-amber); font-size: var(--text-sm); letter-spacing: .1em; font-weight: 700; }
.proj-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.proj-grid > div { display: grid; gap: var(--space-6); min-width: 0; }
@media (max-width: 960px) { .proj-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline li { position: relative; text-align: center; font-size: 11.5px; color: var(--color-text-muted); padding-top: 30px; line-height: 1.25; }
.timeline li::before { content: ''; position: absolute; top: 9px; left: 50%; width: 18px; height: 18px; transform: translateX(-50%); border-radius: 50%; border: 2px solid var(--color-border); background: var(--color-bg); z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--color-border); }
.timeline li:first-child::after { display: none; }
.timeline li.is-done { color: var(--color-text); }
.timeline li.is-done::before { background: var(--bd-green); border-color: var(--bd-green); }
.timeline li.is-done::after, .timeline li.is-current::after { background: var(--bd-green); }
.timeline li.is-current { color: var(--color-text); font-weight: 700; }
.timeline li.is-current::before { background: var(--bd-amber); border-color: var(--bd-amber); box-shadow: 0 0 0 5px rgba(240,124,0,.2); }
@media (max-width: 700px) {
  .timeline { grid-template-columns: 1fr; gap: .2rem; }
  .timeline li { text-align: left; padding: .35rem 0 .35rem 34px; }
  .timeline li::before { top: 50%; left: 9px; transform: translate(-50%, -50%); }
  .timeline li::after { top: -50%; left: 8px; width: 2px; height: 100%; }
}
.progress { height: 10px; border-radius: 5px; background: var(--color-surface-offset); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--bd-blue), var(--bd-green)); border-radius: 5px; transition: width .5s cubic-bezier(.16,1,.3,1); }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); font-size: var(--text-sm); }
.progress-row strong { font-family: var(--font-display); font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.checklist { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: .1rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .2rem; border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.checklist li:last-child { border-bottom: 0; }
.checklist .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--color-border); flex: none; margin-top: 1px; display: grid; place-items: center; font-size: 12px; color: #fff; }
.checklist li.done .box { background: var(--bd-green); border-color: var(--bd-green); }
.checklist li.done .txt { color: var(--color-text-muted); }
.checklist time { margin-left: auto; font-size: var(--text-xs); color: var(--color-text-faint); white-space: nowrap; }
.checklist label { display: flex; gap: .7rem; align-items: flex-start; width: 100%; cursor: pointer; }
.checklist input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--bd-green); margin-top: 1px; flex: none; }
.drop { border: 2px dashed var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; transition: border-color .18s, background .18s; cursor: pointer; position: relative; }
.drop:hover, .drop.is-over { border-color: var(--bd-blue); background: rgba(74,155,190,.06); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__t { font-weight: 700; font-size: var(--text-sm); }
.drop__s { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: .3rem; }
.filelist { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: .4rem; }
.filelist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; padding: .55rem .7rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); background: var(--color-bg); }
.filelist .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.filelist .mt { font-size: var(--text-xs); color: var(--color-text-muted); grid-column: 1 / -1; }
.filelist .st { font-size: var(--text-xs); font-weight: 700; }
.filelist .st.ok { color: var(--bd-green); } .filelist .st.bad { color: var(--bd-red); } .filelist .st.wait { color: var(--bd-amber); }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em; border: 1px solid; white-space: nowrap; }
.pill--paid { color: var(--bd-green); border-color: rgba(60,184,110,.5); background: rgba(60,184,110,.1); }
.pill--unpaid { color: var(--bd-amber); border-color: rgba(240,124,0,.5); background: rgba(240,124,0,.1); }
.pill--none { color: var(--color-text-muted); border-color: var(--color-border); }
.pill--stage { color: var(--bd-blue); border-color: rgba(74,155,190,.45); background: rgba(74,155,190,.1); }
.invoice { display: grid; gap: var(--space-3); }
.invoice__amt { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: .2rem; direction: rtl; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 1.9rem; line-height: 1; color: var(--color-border); cursor: pointer; transition: color .12s; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--bd-amber); }
.stars input:focus-visible + label { outline: 2px solid var(--bd-blue); outline-offset: 2px; border-radius: 4px; }
.locked { opacity: .65; }
.note-box { border-left: 3px solid var(--bd-blue); padding: .6rem .9rem; background: rgba(74,155,190,.07); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--text-sm); line-height: 1.55; white-space: pre-line; }
.mini-holder { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }

/* ── Admin ───────────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-6); align-items: start; }
@media (max-width: 1100px) { .admin-layout { grid-template-columns: 1fr; } }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tbl th, .tbl td { padding: .6rem .6rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: middle; }
.tbl th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover, .tbl tbody tr[aria-selected="true"] { background: rgba(74,155,190,.08); }
.tbl .id { font-weight: 700; color: var(--bd-amber); white-space: nowrap; }
.tabs { display: flex; gap: .4rem; margin-bottom: var(--space-4); }
.tab { border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); padding: .45rem .9rem; border-radius: 999px; font: inherit; font-size: var(--text-sm); cursor: pointer; }
.tab[aria-selected="true"] { border-color: var(--bd-blue); background: rgba(74,155,190,.14); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: .35rem .8rem; font-size: var(--text-sm); margin: 0 0 var(--space-4); }
.kv dt { color: var(--color-text-muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.toggle { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.toggle input { width: 42px; height: 24px; appearance: none; -webkit-appearance: none; background: var(--color-surface-offset); border: 1px solid var(--color-border); border-radius: 999px; position: relative; cursor: pointer; transition: background .18s; }
.toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s; }
.toggle input:checked { background: var(--bd-green); border-color: var(--bd-green); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:focus-visible { outline: 2px solid var(--bd-blue); outline-offset: 2px; }
.empty { text-align: center; padding: var(--space-10) var(--space-4); color: var(--color-text-muted); font-size: var(--text-sm); }
.stack { display: grid; gap: var(--space-5); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ── Tutorials gallery ───────────────────────────────────────────── */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
.vcard { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.vcard__media { position: relative; aspect-ratio: 16 / 9; background: #111417; overflow: hidden; }
.vcard__media video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.vposter { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: .9rem 1rem;
  background: radial-gradient(400px 180px at 100% 0%, rgba(74,155,190,.28), transparent 70%), linear-gradient(160deg, #1b2129, #0f1215); color: #e8ecf0; }
.vposter__n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: rgba(240,124,0,.95); font-variant-numeric: tabular-nums; }
.vposter__t { font-size: .95rem; font-weight: 700; line-height: 1.25; max-width: 85%; }
.vposter__play { position: absolute; right: 1rem; bottom: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.vposter__play::after { content: ''; border-left: 13px solid rgba(255,255,255,.55); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.vbadge { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: rgba(13,15,18,.85); color: var(--bd-amber); border: 1px solid rgba(240,124,0,.5); border-radius: 999px; padding: .15rem .6rem; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.vcard__body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.vcard__k { font-size: var(--text-xs); color: var(--bd-blue); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vcard__h { font-size: var(--text-base); font-weight: 700; margin: 0; }
.vcard__p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; line-height: 1.55; }
.notify { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 520px; }
.notify .input { flex: 1 1 220px; }

/* ── Privacy ─────────────────────────────────────────────────────── */
.prose { max-width: 72ch; line-height: 1.7; font-size: var(--text-base); }
.prose h2 { font-family: var(--font-display); font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-2); }
.prose p, .prose li { color: var(--color-text-muted); }
.prose a { color: var(--bd-blue); }

/* footer additions */
.footer-links a[rel~="external"] { white-space: nowrap; }
.footer-copy a { color: inherit; text-decoration: none; }
.footer-copy a:hover { color: var(--bd-blue); }
.footer-tm { width: 100%; grid-column: 1 / -1; max-width: none; font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-border); line-height: 1.6; }
.footer-tm a { color: var(--color-text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--bd-amber); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ── fixes after QA ──────────────────────────────────────────────── */
[hidden] { display: none !important; }
.logo-upload { display: block; }
.color-row__hex { color: var(--color-text-muted) !important; }
.preview-wrap, .mini-holder { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mini-holder .mini-bb, .preview-wrap .mini-bb { min-width: 560px; }
.proj-grid > div > *, .admin-layout > *, .stack > *, .form-grid > * { min-width: 0; }
.tbl-wrap { max-width: 100%; }
@media (max-width: 640px) { .summary { grid-template-columns: 105px 1fr; } .kv { grid-template-columns: 90px 1fr; } }

/* Nav fit with Schedule item (2026-10-17) */
.nav__brand { flex-shrink: 0; }
.nav__links { gap: var(--space-4); }
.nav__links a { white-space: nowrap; }
@media (max-width: 1440px) { .nav__links { gap: var(--space-3); } .nav__links a { font-size: .66rem; letter-spacing: .04em; } }
@media (max-width: 1280px) { .nav__links { display: none; } .nav__toggle { display: flex; } .nav__actions .btn--primary { display: inline-flex; } }
@media (max-width: 680px) { .nav__actions .btn--primary { display: none; } }
