/* Notiq landing page. Loaded after style.css (shared tokens, header, footer, buttons). */

/* ── App-window tokens (mirror src/styles/themes.css) ─────── */
:root {
  --w-bg: #0f172a; --w-bg2: #1e293b; --w-bg3: #334155; --w-border: #334155;
  --w-text: #e2e8f0; --w-muted: #a3b1c4; --w-primary: #c9a84c; --w-accent: #38bdf8;
  --w-ok: #4ade80; --w-warn: #fb923c; --w-bad: #f87171;
  --shadow-win: 0 36px 70px -30px rgba(0, 0, 0, .75), 0 10px 24px -12px rgba(0, 0, 0, .5);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --w-bg: #ffffff; --w-bg2: #f1f5f9; --w-bg3: #e2e8f0; --w-border: #cbd5e1; --w-text: #1e293b; --w-muted: #556274;
    --w-primary: #b45309; --w-accent: #0369a1; --w-ok: #15803d; --w-warn: #c2410c; --w-bad: #dc2626;
    --shadow-win: 0 30px 60px -32px rgba(15, 23, 42, .4), 0 8px 20px -12px rgba(15, 23, 42, .22);
  }
}
:root[data-theme="light"] {
  --w-bg: #ffffff; --w-bg2: #f1f5f9; --w-bg3: #e2e8f0; --w-border: #cbd5e1; --w-text: #1e293b; --w-muted: #556274;
  --w-primary: #b45309; --w-accent: #0369a1; --w-ok: #15803d; --w-warn: #c2410c; --w-bad: #dc2626;
  --shadow-win: 0 30px 60px -32px rgba(15, 23, 42, .4), 0 8px 20px -12px rgba(15, 23, 42, .22);
}
/* sealed fields always show the app's dark theme */
.sealed-field {
  --w-bg: #0f172a; --w-bg2: #1e293b; --w-bg3: #334155; --w-border: #334155;
  --w-text: #e2e8f0; --w-muted: #a3b1c4; --w-primary: #c9a84c; --w-accent: #38bdf8;
  --w-ok: #4ade80; --w-warn: #fb923c; --w-bad: #f87171;
  --shadow-win: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 12px 28px -12px rgba(0, 0, 0, .55);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 0; isolation: isolate; }
.hero::before { /* a quiet ledger grid, fading out around the copy */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
/* centred copy, then the app window full width, dropping into the next band */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 860px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.4; }
.eyebrow-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 740; margin: 0; max-width: 15ch; text-wrap: balance; }
.lead { font-size: clamp(1.04rem, 1.3vw, 1.15rem); color: var(--ink-2); max-width: 44ch; margin: 0 0 28px; line-height: 1.6; }
.hero .lead { max-width: 60ch; margin: 24px 0 32px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .cta { justify-content: center; }
.facts { margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; }
.facts div { padding: 0 24px; text-align: center; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); font-weight: 550; }
.hero-stage { position: relative; z-index: 2; margin: 0 0 -120px; }
.hero + .band { padding-top: calc(var(--band-y) + 120px); }
@media (max-width: 980px) {
  .hero { padding-top: 48px; }
  .hero-grid { gap: 36px; }
  .hero-stage { margin: 0 0 -64px; }
  .hero + .band { padding-top: calc(var(--band-y) + 64px); }
}
@media (max-width: 640px) {
  .hero-copy { align-items: stretch; text-align: left; }
  .eyebrow { align-self: flex-start; font-size: 13px; margin-bottom: 20px; }
  .hero .lead { margin: 20px 0 28px; }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 28px; }
  .facts div { padding: 12px 0; text-align: left; border-top: 1px solid var(--line); }
  .facts div + div { border-left: 0; }
}

/* ── Sections ───────────────────────────────────────────── */
.band { --band-y: 112px; padding: var(--band-y) 0; position: relative; }
.band-alt { background: var(--ground-2); }
.band + .band:not(.sealed-field):not(.band-alt) { border-top: 1px solid var(--line); }
:not(.sealed-field) + .band.sealed-field { box-shadow: inset 0 1px 0 rgba(201, 168, 76, .45); }
.band.sealed-field + .band.sealed-field { border-top: 1px solid var(--s-line); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; margin-bottom: 56px; }
.band h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 720; margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.copy h2 { margin-bottom: 20px; }
.copy > p { color: var(--ink-2); margin: 0 0 16px; font-size: 1.05rem; max-width: 60ch; }
.split-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
.split-grid.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split-grid.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 11px; height: 6px; border: solid var(--gold-text); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.try { font-size: 14px !important; color: var(--muted) !important; margin-top: 22px !important; display: flex; align-items: center; gap: 10px; }
.try::before { content: ""; width: 18px; height: 1px; background: var(--gold); }
.noscript { color: var(--muted); }
@media (max-width: 980px) {
  .band { --band-y: 84px; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .split-grid, .split-grid.flip { grid-template-columns: 1fr; gap: 40px; }
  .split-grid.flip > :first-child { order: 0; }
}
@media (max-width: 520px) { .band { --band-y: 68px; } .cta .btn { flex: 1 1 100%; } }

/* ── Vault notes + kinds ────────────────────────────────── */
.vault-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; align-items: start; }
.notes-list { list-style: none; padding: 0; margin: 0; display: grid; }
.notes-list li { display: grid; gap: 3px; padding: 14px 0; border-top: 1px solid var(--line); }
.notes-list li:first-child { border-top: 0; padding-top: 0; }
.notes-list b { font-weight: 650; }
.notes-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .vault-layout { grid-template-columns: 1fr; gap: 32px; } .notes-list { grid-template-columns: 1fr 1fr; gap: 0 32px; } .notes-list li:nth-child(2) { border-top: 0; padding-top: 0; } }
@media (max-width: 560px) { .notes-list { grid-template-columns: 1fr; } .notes-list li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 14px; } }
.kinds { margin: 22px 0; display: grid; gap: 12px; }
.kinds div { display: grid; gap: 1px; }
.kinds dt { display: flex; align-items: center; gap: 9px; font-weight: 650; }
.kinds dt .i { font-size: 17px; }
.kinds dd { margin: 0 0 0 26px; color: var(--muted); font-size: 15px; }
.kinds .k-login { color: var(--sky-text); }
.kinds .k-ssh { color: #4ade80; }
.kinds .k-secret { color: #fb923c; }
.kinds .k-note, .kinds .k-id { color: var(--muted); }
:root[data-theme="light"] .kinds .k-ssh { color: #15803d; }
:root[data-theme="light"] .kinds .k-secret { color: #c2410c; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .kinds .k-ssh { color: #15803d; }
  :root:not([data-theme="dark"]) .kinds .k-secret { color: #c2410c; }
}


/* ── App window (shared) and live demos ─────────────────── */
/* ── App window (shared) ────────────────────────────────── */
.win {
  margin: 0; border-radius: 10px; overflow: hidden; background: var(--w-bg); color: var(--w-text);
  border: 1px solid var(--w-border); box-shadow: var(--shadow-win); font-size: 13px; line-height: 1.5;
  position: relative;
}
.win-bar {
  height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 4px 0 12px;
  background: var(--w-bg2); border-bottom: 1px solid var(--w-border); font-size: 12px; color: var(--w-muted); user-select: none;
}
.win-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--w-text); }
.win-brand img { border-radius: 3px; }
.win-title { flex: 1; text-align: center; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-modes { flex: 1; display: flex; justify-content: center; gap: 2px; }
.win-modes span { padding: 3px 9px; border-radius: 6px; }
.win-modes .is-on { background: var(--w-bg3); color: var(--w-text); }
.win-ctl { margin-left: auto; display: flex; }
.win-ctl .i { width: 34px; height: 26px; padding: 7px 11px; stroke-width: 1.5; }
.win-body { display: flex; min-height: 0; }
.win-body.col { flex-direction: column; }
.k-folder { color: color-mix(in srgb, var(--w-primary) 75%, var(--w-muted)); }
.k-login { color: color-mix(in srgb, var(--w-accent) 80%, var(--w-muted)); }
.k-ssh { color: color-mix(in srgb, var(--w-ok) 75%, var(--w-muted)); }
.k-secret { color: color-mix(in srgb, var(--w-warn) 80%, var(--w-muted)); }
.k-note, .k-tag { color: var(--w-muted); }
.k-gold { color: var(--w-primary); }
.statusbar {
  display: flex; gap: 14px; align-items: center; height: 24px; padding: 0 12px; flex-shrink: 0;
  background: var(--w-bg2); border-top: 1px solid var(--w-border); font-size: 11px; color: var(--w-muted);
}
.sb-right { margin-left: auto; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--w-bg); border: 1px solid var(--w-border); gap: 2px; }
.seg > * { font: 500 12px/1 var(--font); padding: 6px 11px; border-radius: 6px; color: var(--w-muted); background: none; border: 0; }
.seg button { cursor: pointer; transition: color .2s, background-color .2s; }
.seg button:hover { color: var(--w-text); }
.seg .is-on, .seg [aria-pressed="true"] { background: var(--w-bg3); color: var(--w-text); }
.seg.mini > * { font-size: 11px; padding: 4px 8px; }

/* ── Hero mock ──────────────────────────────────────────── */
.hero-body { height: 420px; }
.mock-side { width: 176px; flex-shrink: 0; background: var(--w-bg2); border-right: 1px solid var(--w-border); padding: 8px 6px; font-size: 12px; overflow: hidden; }
.side-h { display: flex; align-items: center; gap: 6px; padding: 4px 8px 6px; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--w-muted); }
.side-h2 { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--w-border); }
.side-row { display: flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; color: var(--w-text); }
.side-row .i { font-size: 13px; color: var(--w-muted); }
.side-row .i.k-folder { color: color-mix(in srgb, var(--w-primary) 75%, var(--w-muted)); }
.side-row .i.k-ssh { color: color-mix(in srgb, var(--w-ok) 75%, var(--w-muted)); }
.side-row .i.k-login { color: color-mix(in srgb, var(--w-accent) 80%, var(--w-muted)); }
.side-row.in1 { padding-left: 24px; }
.side-row.is-sel { background: color-mix(in srgb, var(--w-primary) 14%, var(--w-bg3)); }
.hero-new { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .8s; }
.hero-win.is-sealed .hero-new { opacity: 1; transform: none; background: color-mix(in srgb, var(--w-primary) 16%, transparent); }
.mock-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tabbar { display: flex; align-items: center; height: 36px; background: var(--w-bg2); border-bottom: 1px solid var(--w-border); font-size: 12px; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px; color: var(--w-muted); border-right: 1px solid var(--w-border); white-space: nowrap; }
.tab .i { font-size: 12px; }
.tab.is-on { background: var(--w-bg); color: var(--w-text); box-shadow: inset 0 2px 0 var(--w-primary); }
.tab-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.lock-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--w-primary); border: 1px solid color-mix(in srgb, var(--w-primary) 45%, transparent); background: color-mix(in srgb, var(--w-primary) 10%, transparent);
  transition: transform .2s var(--ease), background-color .2s, box-shadow .3s;
}
.lock-btn .i { font-size: 12px; }
.hero-win.is-press .lock-btn { transform: scale(.94); background: color-mix(in srgb, var(--w-primary) 26%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--w-primary) 18%, transparent); }
.split { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; }
.src {
  margin: 0; padding: 14px 16px; font: 12.5px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; overflow: hidden;
  color: var(--w-text); border-right: 1px solid var(--w-border);
}
.prev { padding: 12px 18px; overflow: hidden; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--w-primary); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.md-h { color: var(--w-primary); font-weight: 700; }
.md-b { color: var(--w-text); font-weight: 700; }
.md-i { font-style: italic; }
.md-li, .md-q { color: var(--w-accent); }
.md-wl { color: var(--w-accent); }
.md-c { color: var(--w-ok); }
.md-k { color: var(--w-muted); }
.md { font-size: 13px; line-height: 1.6; }
.md .md-h1, .md .md-h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; color: var(--w-text); }
.md .md-h2 { font-size: 15px; }
.md p { margin: 0 0 10px; }
.md ul { margin: 0 0 10px; padding-left: 18px; }
.md li { margin: 2px 0; }
.md li.task { list-style: none; margin-left: -18px; display: flex; gap: 8px; align-items: baseline; }
.md .box { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid var(--w-muted); flex-shrink: 0; transform: translateY(2px); display: inline-grid; place-items: center; }
.md .box.on { background: var(--w-primary); border-color: var(--w-primary); }
.md .box.on::after { content: ""; width: 7px; height: 4px; border: solid var(--w-bg); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.md li.done { color: var(--w-muted); text-decoration: line-through; }
.md code { font-size: .86em; background: var(--w-bg3); color: var(--w-text); }
.md blockquote { margin: 0 0 10px; padding: 2px 12px; border-left: 2px solid var(--w-primary); color: var(--w-muted); }
.md strong { font-weight: 700; }
.wikilink { color: var(--w-accent); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.sealed {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px;
  background: color-mix(in srgb, var(--w-bg) 93%, transparent); opacity: 0; transform: scale(1.03); pointer-events: none;
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.hero-win.is-sealed .sealed { opacity: 1; transform: none; }
.sealed-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font: 600 14px/1 var(--mono);
  color: var(--w-primary); background: color-mix(in srgb, var(--w-primary) 12%, var(--w-bg2)); border: 1px solid color-mix(in srgb, var(--w-primary) 45%, transparent);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6);
}
.sealed-hex { margin: 0; font: 11.5px/1.6 var(--mono); color: var(--w-muted); text-align: center; white-space: pre; max-width: 100%; overflow: hidden; }
.sealed-cap { margin: 0; font-size: 11.5px; color: var(--w-muted); }
.hero-win.is-scramble .src, .hero-win.is-scramble .prev { color: var(--w-muted); }
@media (max-width: 720px) {
  .mock-side { display: none; }
  .hero-body { height: 340px; }
}
@media (max-width: 520px) {
  .split { grid-template-columns: 1fr; }
  .prev { display: none; }
  .src { border-right: 0; font-size: 12px; }
  .tab:not(.is-on), .win-modes, .seg.mini { display: none; }
  .hero-body { height: 300px; }
}

/* ── Editor demo ────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; background: var(--w-bg2); border-bottom: 1px solid var(--w-border); }
.tb-file { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--w-muted); }
.ed { display: grid; grid-template-columns: 1fr 1fr; height: 360px; }
.ed[data-view="source"] { grid-template-columns: 1fr 0fr; }
.ed[data-view="preview"] { grid-template-columns: 0fr 1fr; }
@supports (grid-template-columns: 1fr 0fr) {
  @media (prefers-reduced-motion: no-preference) { .ed { transition: grid-template-columns .45s var(--ease); } }
}
.ed-src { display: flex; min-width: 0; overflow: hidden; border-right: 1px solid var(--w-border); }
.ed[data-view="preview"] .ed-src { border-right: 0; }
.ed[data-view="source"] .ed-prev { padding: 0; }
.gutter { width: 38px; flex-shrink: 0; padding: 14px 8px 14px 0; text-align: right; font: 12.5px/1.7 var(--mono); color: var(--w-muted); user-select: none; overflow: hidden; }
.gutter span { display: block; }
.gutter .cur { color: var(--w-text); }
.ed-code { position: relative; flex: 1; min-width: 0; }
.ed-hl, #edInput {
  position: absolute; inset: 0; margin: 0; padding: 14px 14px 14px 6px; border: 0; resize: none; overflow: auto;
  font: 12.5px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; tab-size: 2; letter-spacing: 0;
}
.ed-hl { color: var(--w-text); pointer-events: none; overflow: hidden; }
#edInput { background: transparent; color: transparent; caret-color: var(--w-primary); outline: none; }
#edInput::selection { background: color-mix(in srgb, var(--w-primary) 30%, transparent); color: transparent; }
.ed-code:focus-within { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--w-primary) 50%, transparent); }
.ed-prev { min-width: 0; overflow: auto; padding: 14px 20px; }
.ed-prev:focus-visible { outline-offset: -3px; }

.vx { height: 500px; position: relative; }
.vx-side { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--w-bg2); border-right: 1px solid var(--w-border); min-height: 0; }
.vx-head { display: flex; align-items: center; gap: 4px; padding: 10px 8px 8px 12px; }
.vx-head .i { font-size: 14px; }
.vx-head .vx-title { flex: 1; margin: 0 0 0 6px; font: 600 12px/1 var(--font); color: var(--w-text); }
.vx-icon {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 0; background: none; color: var(--w-muted); cursor: pointer;
  transition: color .15s, background-color .15s; position: relative;
}
.vx-icon:hover { color: var(--w-text); background: var(--w-bg3); }
.vx-icon .i { font-size: 14px; }
.vx-search { position: relative; margin: 0 10px 8px; }
.vx-search .i { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--w-muted); }
.vx-search input {
  width: 100%; height: 30px; padding: 0 10px 0 30px; border-radius: 7px; border: 1px solid var(--w-border); background: var(--w-bg);
  color: var(--w-text); font: 12.5px var(--font); outline: none; transition: border-color .15s;
}
.vx-search input::placeholder { color: var(--w-muted); }
.vx-search input:focus { border-color: var(--w-primary); }
.vx-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 8px; }
.chip, .vt-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; cursor: pointer;
  font: 500 11.5px/1 var(--font); color: var(--w-muted); background: none; border: 1px solid var(--w-border);
  transition: color .15s, border-color .15s, background-color .15s, transform .2s var(--ease);
}
.chip:hover, .vt-chip:hover { color: var(--w-text); border-color: color-mix(in srgb, var(--w-primary) 45%, var(--w-border)); }
.vt-chip[aria-pressed="true"] { color: var(--w-primary); border-color: color-mix(in srgb, var(--w-primary) 60%, transparent); background: color-mix(in srgb, var(--w-primary) 14%, transparent); }
.vt-chip .i { font-size: 10px; }
.vt-chip .n { font-variant-numeric: tabular-nums; }
.vx-tree, .vx-trash { flex: 1; min-height: 0; overflow: auto; padding: 2px 6px 8px; }
.vx-tree ul, .vx-trash ul { list-style: none; margin: 0; padding: 0; }
.vx-group { padding: 8px 8px 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--w-muted); }
.vt-row { display: flex; align-items: center; gap: 2px; border-radius: 6px; padding-right: 4px; position: relative; }
.vt-row:hover { background: color-mix(in srgb, var(--w-bg3) 70%, transparent); }
.vt-row.is-sel { background: color-mix(in srgb, var(--w-primary) 14%, var(--w-bg3)); }
.vt-row.is-drop { background: color-mix(in srgb, var(--w-primary) 22%, transparent); box-shadow: inset 0 0 0 1px var(--w-primary); }
.vt-row.is-drag { opacity: .45; }
.vt-row.is-new { animation: rowIn .6s var(--ease); }
@keyframes rowIn { from { background: color-mix(in srgb, var(--w-primary) 30%, transparent); } }
.vt-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px; border: 0; background: none;
  color: var(--w-text); font: 12.5px var(--font); text-align: left; cursor: pointer; border-radius: 6px;
}
.vt-main:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--w-primary); }
.vt-chev { width: 14px; display: inline-grid; place-items: center; color: var(--w-muted); flex-shrink: 0; }
.vt-chev .i { font-size: 12px; stroke-width: 2.2; transition: transform .2s var(--ease); }
.vt-row[aria-expanded="true"] .vt-chev .i, .vt-main[aria-expanded="true"] .vt-chev .i { transform: rotate(90deg); }
.vt-main > .i { font-size: 14px; }
.vt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-where { color: var(--w-muted); font-size: 11px; }
.vt-row.is-sel .vt-where { color: inherit; opacity: .85; }
.vt-tags { display: flex; gap: 3px; flex-shrink: 1; min-width: 0; max-width: 42%; overflow: hidden; }
.vt-tag { font-size: 10px; padding: 2px 8px; border-radius: 9px; background: var(--w-bg3); color: var(--w-muted); white-space: nowrap; }
.vt-act { opacity: 0; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; border: 0; background: none; color: var(--w-muted); cursor: pointer; flex-shrink: 0; transition: opacity .15s, color .15s, background-color .15s; }
.vt-act .i { font-size: 12px; }
.vt-act:hover { color: var(--w-text); background: var(--w-bg3); }
.vt-row:hover .vt-act, .vt-row.is-sel .vt-act, .vt-act:focus-visible, .vt-star[aria-pressed="true"] { opacity: 1; }
.vt-star[aria-pressed="true"] { color: var(--w-primary); }
.vt-star[aria-pressed="true"] .i { fill: currentColor; }
@media (hover: none) { .vt-act { opacity: 1; } }
.vt-input { flex: 1; min-width: 0; height: 22px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--w-primary); background: var(--w-bg); color: var(--w-text); font: 12.5px var(--font); outline: none; }
.vx-empty { padding: 18px 12px; font-size: 12.5px; color: var(--w-muted); text-align: center; }
.vx-bin {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border: 0; border-top: 1px solid var(--w-border);
  background: none; color: var(--w-muted); font: 500 12.5px var(--font); cursor: pointer; text-align: left; transition: color .15s, background-color .15s;
}
.vx-bin:hover, .vx-bin[aria-expanded="true"] { color: var(--w-text); background: color-mix(in srgb, var(--w-bg3) 50%, transparent); }
.vx-bin .i { font-size: 14px; }
.vx-count { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--w-bg3); font-size: 11px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.vx-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); background: var(--w-primary); color: var(--w-bg); } }
.tr-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 6px; font-size: 12.5px; }
.tr-row:hover { background: color-mix(in srgb, var(--w-bg3) 60%, transparent); }
.tr-row .i { font-size: 14px; }
.tr-meta { flex: 1; min-width: 0; }
.tr-meta b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-meta span { font-size: 11px; color: var(--w-muted); }
.tr-btn { height: 24px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--w-border); background: var(--w-bg); color: var(--w-text); font: 500 11px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.tr-btn:hover { border-color: var(--w-primary); }
.tr-btn.danger { color: var(--w-bad); }
.tr-btn.danger:hover { border-color: var(--w-bad); }
.tr-note { padding: 8px 10px 4px; font-size: 11.5px; color: var(--w-muted); }

.vx-detail { flex: 1; min-width: 0; padding: 26px 28px; overflow: auto; }
.vd-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.vd-head .i { font-size: 20px; }
.vd-head .vd-name { margin: 0; font: 650 17px/1.3 var(--font-display); color: var(--w-text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-sub { font-size: 12px; color: var(--w-muted); margin: 0 0 18px; }
.vd-grid { display: grid; grid-template-columns: 76px 1fr; gap: 10px 12px; font-size: 12.5px; align-items: center; margin-bottom: 20px; }
.vd-grid dt { color: var(--w-muted); }
.vd-grid dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-width: 0; }
.vd-mask { font: 12px var(--mono); letter-spacing: .1em; color: var(--w-muted); }
.vd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vd-btn { height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--w-border); background: var(--w-bg2); color: var(--w-text); font: 500 12px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s; }
.vd-btn:hover { border-color: var(--w-primary); }
.vd-btn .i { font-size: 12px; }
.vd-select { height: 28px; border-radius: 6px; border: 1px solid var(--w-border); background: var(--w-bg2); color: var(--w-text); font: 12px var(--font); padding: 0 6px; }
.vd-empty { height: 100%; display: grid; place-content: center; text-align: center; color: var(--w-muted); font-size: 13px; gap: 6px; }
.vd-empty .i { font-size: 26px; margin: 0 auto; color: var(--w-primary); opacity: .7; }
.vx-locked {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 20px;
  background: var(--w-bg); animation: fadeIn .4s var(--ease);
}
.vx-locked[hidden] { display: none; }
.vx-locked > .i { font-size: 34px; color: var(--w-primary); margin-bottom: 10px; }
.vx-locked-t { margin: 0; font: 650 16px var(--font-display); }
.vx-locked-s { margin: 0 0 16px; color: var(--w-muted); font-size: 12.5px; max-width: 30ch; }
@keyframes fadeIn { from { opacity: 0; } }
@media (max-width: 760px) {
  .vx { flex-direction: column; height: auto; }
  .vx-side { width: 100%; border-right: 0; border-bottom: 1px solid var(--w-border); }
  .vx-tree, .vx-trash { max-height: 330px; }
  .vx-detail { padding: 20px; }
}

/* tooltips (data-tip) */
[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translate(-50%, 4px);
  padding: 6px 10px; border-radius: 6px; background: var(--w-text); color: var(--w-bg); font: 500 11px/1.2 var(--font); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .2s var(--ease); z-index: 5;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip].tip-on::after { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 981px) { .cred-win .win-body { min-height: 430px; } }
.cred-tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: var(--w-bg2); border-bottom: 1px solid var(--w-border); overflow-x: auto; }
.cred-tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 0; border-radius: 7px 7px 0 0; background: none; cursor: pointer;
  font: 500 12.5px var(--font); color: var(--w-muted); white-space: nowrap; position: relative; transition: color .15s, background-color .15s;
}
.cred-tabs [role="tab"] .i { font-size: 13px; }
.cred-tabs [role="tab"]:hover { color: var(--w-text); }
.cred-tabs [aria-selected="true"] { background: var(--w-bg); color: var(--w-text); box-shadow: inset 0 2px 0 var(--w-primary); }
.cred-tabs [role="tab"]:focus-visible { outline-offset: -2px; }
.cred-panel { padding: 22px 24px 18px; display: grid; gap: 14px; align-content: start; animation: panelIn .35s var(--ease); }
[hidden] { display: none !important; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } }
.f { display: grid; gap: 5px; min-width: 0; }
.f > label, .f > .lbl { font-size: 11.5px; color: var(--w-muted); }
.f-row { display: flex; align-items: center; gap: 6px; min-width: 0; position: relative; }
.f input:not([type="checkbox"]):not([type="range"]), .f textarea {
  width: 100%; min-width: 0; height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--w-border);
  background: var(--w-bg3); color: var(--w-text); font: 13px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
:root[data-theme="light"] .f input:not([type="checkbox"]):not([type="range"]), :root[data-theme="light"] .f textarea { background: var(--w-bg2); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .f input:not([type="checkbox"]):not([type="range"]), :root:not([data-theme="dark"]) .f textarea { background: var(--w-bg2); } }
.f textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.f input:focus, .f textarea:focus { border-color: var(--w-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-primary) 18%, transparent); }
.f input[aria-invalid="true"] { border-color: var(--w-bad); }
.mono, .f .mono { font-family: var(--mono) !important; font-size: 12.5px !important; }
.f-pair { display: flex; gap: 12px; }
.f.grow { flex: 1; }
.f.port { width: 92px; flex-shrink: 0; }
.f-err { margin: -8px 0 0; font-size: 11.5px; color: var(--w-bad); }
.sbtn, .cp {
  flex-shrink: 0; height: 32px; min-width: 32px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--w-border); background: var(--w-bg2);
  color: var(--w-text); font: 500 12px var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s, transform .15s var(--ease); position: relative;
}
.sbtn:hover, .cp:hover { border-color: color-mix(in srgb, var(--w-primary) 60%, var(--w-border)); }
.sbtn:active, .cp:active { transform: scale(.94); }
.sbtn .i, .cp .i { font-size: 13px; }
.sbtn[aria-expanded="true"] { border-color: var(--w-primary); color: var(--w-primary); }
.cp { padding: 0; width: 32px; }
.cp .ring { position: absolute; inset: -4px; width: 40px; height: 40px; transform: rotate(-90deg); pointer-events: none; opacity: 0; transition: opacity .2s; }
.cp .ring circle { fill: none; stroke: var(--w-ok); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 0; stroke-linecap: round; }
.cp.is-copied { color: var(--w-ok); border-color: color-mix(in srgb, var(--w-ok) 55%, var(--w-border)); }
.cp.is-copied .ring { opacity: 1; }
.cp .ic-check { display: none; }
.cp.is-copied .ic-copy { display: none; }
.cp.is-copied .ic-check { display: block; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.pw-row { flex-wrap: nowrap; }
.gen-wrap { position: relative; display: inline-flex; gap: 6px; }
.totp { gap: 10px; }
.f .totp-code { font-size: 20px !important; letter-spacing: .12em; font-weight: 600; font-variant-numeric: tabular-nums; }
.totp-ring { width: 20px; height: 20px; transform: rotate(-90deg); }
.totp-ring circle { fill: none; stroke-width: 2.4; }
.totp-ring circle:first-child { stroke: var(--w-bg3); }
#totpArc { stroke: var(--w-primary); stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.totp-left { font-size: 11.5px; color: var(--w-muted); min-width: 26px; font-variant-numeric: tabular-nums; }
.totp.is-low #totpArc { stroke: var(--w-bad); }
.cred-foot { margin: 4px 0 0; font-size: 11.5px; color: var(--w-muted); min-height: 1.5em; }
.cred-foot.is-live { color: var(--w-ok); }

.pw-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 300px; padding: 14px; border-radius: 10px;
  background: var(--w-bg2); border: 1px solid var(--w-border); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); display: grid; gap: 12px;
  transform-origin: top right; animation: popIn .25s var(--ease);
}
.pw-pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.pw-preview { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 7px; background: var(--w-bg); border: 1px solid var(--w-border); }
.pw-preview output { flex: 1; min-width: 0; word-break: break-all; line-height: 1.45; font-size: 13px !important; }
.pw-preview .d { color: var(--w-accent); }
.pw-preview .s { color: var(--w-primary); }
.pw-preview .sbtn { height: 26px; min-width: 26px; }
.pw-meter { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--w-muted); font-variant-numeric: tabular-nums; }
.pw-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--w-bg3); overflow: hidden; }
.pw-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--w-ok); transform-origin: left; transition: transform .35s var(--ease), background-color .3s; }
.pw-len { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.pw-len input { flex: 1; accent-color: var(--w-primary); }
.pw-len output { min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.pw-grid label, .pw-one { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.pw-grid input, .pw-one input { accent-color: var(--w-primary); margin: 0; }
.pw-grid code, .pw-one code { margin-left: auto; font-size: 10.5px; color: var(--w-muted); background: none; padding: 0; }
.pw-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--w-border); }
.cmd { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 12px; border-radius: 7px; background: var(--w-bg2); border: 1px solid var(--w-border); }
.cmd code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; padding: 0; font-size: 12px; color: var(--w-text); }
.cmd .cp { height: 26px; width: 26px; min-width: 26px; }
.cmd .cp .ring { inset: -4px; width: 34px; height: 34px; }
#shKey { min-height: 92px; font-size: 11px !important; line-height: 1.45; white-space: pre; overflow: auto; }
.key-state { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--w-muted); min-height: 20px; }
.key-state .i { font-size: 14px; }
.key-state[data-state="ok"] { color: var(--w-ok); }
.key-state[data-state="encrypted"] { color: var(--w-primary); }
.key-state[data-state="bad"] { color: var(--w-bad); }
.key-state.flash { animation: flash .5s var(--ease); }
@keyframes flash { from { transform: translateX(-4px); opacity: .3; } }
.samples { display: flex; flex-wrap: wrap; gap: 6px; }
.samples .chip { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 11.5px; }
@media (max-width: 520px) {
  .cred-panel { padding: 18px 14px; }
  .pw-pop { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; z-index: 60; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .55); }
  .lg-gen-label { display: none; }
}

/* ── One file flow ──────────────────────────────────────── */
.flow { display: grid; grid-template-columns: 220px minmax(80px, 1fr) minmax(0, 420px); align-items: center; gap: 0; }
.flow-in { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(6, 52px); }
.flow-in li {
  align-self: center; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink);
}
.flow-in li .i { font-size: 16px; }
.flow-in .k-login { color: var(--sky-text); }
.flow-in .k-ssh { color: #22c55e; }
.flow-in .k-secret { color: #f97316; }
.flow-in .k-folder { color: var(--gold); }
.flow-in .k-note, .flow-in .k-tag { color: var(--muted); }
.flow-lines { width: 100%; height: 312px; overflow: visible; }
.flow-lines path { fill: none; vector-effect: non-scaling-stroke; }
.fl-base path { stroke: var(--line-2); stroke-width: 1.2; }
.fl-pulse path { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 8 92; stroke-dashoffset: 100; opacity: 0; }
.flow.is-playing .fl-pulse path { animation: pulse 3.2s cubic-bezier(.45, 0, .55, 1) infinite; }
.flow.is-playing .fl-pulse path:nth-child(2) { animation-delay: .5s; }
.flow.is-playing .fl-pulse path:nth-child(3) { animation-delay: 1.1s; }
.flow.is-playing .fl-pulse path:nth-child(4) { animation-delay: 1.6s; }
.flow.is-playing .fl-pulse path:nth-child(5) { animation-delay: 2.1s; }
.flow.is-playing .fl-pulse path:nth-child(6) { animation-delay: 2.6s; }
@keyframes pulse { 0% { stroke-dashoffset: 100; opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { stroke-dashoffset: 8; opacity: 0; } }
.vaultfile {
  border-radius: 16px; padding: 22px; background: var(--w-bg); color: var(--w-text);
  border: 1px solid color-mix(in srgb, var(--w-primary) 40%, var(--w-border)); box-shadow: var(--shadow-win);
}
.vf-top { display: flex; align-items: center; gap: 10px; }
.vf-top .i { font-size: 20px; color: var(--w-primary); }
.vf-name { font: 600 17px var(--mono); color: var(--w-primary); }
.vf-size { margin-left: auto; font-size: 12px; color: var(--w-muted); }
.vf-hex { margin: 16px 0; padding: 14px; border-radius: 10px; background: var(--w-bg2); font: 12px/1.75 var(--mono); color: var(--w-muted); white-space: pre; overflow: hidden; }
.vf-hex b { color: var(--w-text); font-weight: 400; }
.vf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.vf-steps li { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--w-border); transition: border-color .4s, background-color .4s; flex-wrap: wrap; }
.vf-steps li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--w-border); flex-shrink: 0; align-self: center; transition: background-color .4s, box-shadow .4s; }
.vf-steps li span { color: var(--w-muted); font-size: 12.5px; }
.vf-steps li.on { border-color: color-mix(in srgb, var(--w-primary) 55%, var(--w-border)); background: color-mix(in srgb, var(--w-primary) 7%, transparent); }
.vf-steps li.on::before { background: var(--w-primary); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-in { grid-template-rows: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .flow-lines { display: none; }
  .flow-in::after { content: ""; flex-basis: 100%; height: 48px; background: linear-gradient(var(--line-2), var(--line-2)) center / 1px 100% no-repeat; }
  .vaultfile { max-width: 460px; width: 100%; margin: 0 auto; }
  .vf-hex { font-size: 10.5px; }
}
@media (max-width: 420px) { .vf-hex { font-size: 9px; padding: 10px; } .vaultfile { padding: 16px; } }

.board { flex: 1; padding: 12px 16px 18px; display: grid; place-items: center; min-height: 220px; }
.board svg { width: 100%; max-width: 360px; }
.stroke { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.stroke.accent { stroke: var(--sky-text); }
.stroke.gold { stroke: var(--gold); }
.b-text { font: 600 17px "Segoe Print", "Comic Sans MS", "Chalkboard SE", var(--font); fill: var(--ink); }
.board.is-playing .stroke { animation: draw 7s var(--ease) infinite; }
.board.is-playing .s2 { animation-delay: .5s; } .board.is-playing .s3 { animation-delay: .8s; }
.board.is-playing .s4 { animation-delay: 1.1s; } .board.is-playing .s5 { animation-delay: 1.7s; } .board.is-playing .s6 { animation-delay: 2.2s; }
.board.is-playing .b-text { animation: ink 7s var(--ease) infinite; }
.board.is-playing .t2 { animation-delay: 1.4s; }
.board.is-paused .stroke, .board.is-paused .b-text { animation-play-state: paused; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 30%, 85% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ink { 0%, 12% { opacity: 0; } 25%, 85% { opacity: 1; } 95%, 100% { opacity: 0; } }
.chat { margin: 20px 24px 24px; padding: 14px; border-radius: 12px; background: var(--w-bg); border: 1px solid var(--w-border); display: grid; gap: 10px; font-size: 13.5px; color: var(--w-text); min-height: 176px; align-content: start; }
.chat-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--w-muted); }
.dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--w-ok); }
.msg { padding: 9px 12px; border-radius: 10px; max-width: 88%; line-height: 1.5; }
.msg.me { justify-self: end; background: color-mix(in srgb, var(--w-primary) 18%, var(--w-bg2)); }
.msg.ai { background: var(--w-bg2); }
.chat .caret, .term .caret { animation: blink 1.05s steps(1) infinite; }
.term {
  margin: 20px 24px 24px; padding: 14px 16px; min-height: 176px; border-radius: 12px; background: #0b1120; color: #cbd5e1; border: 1px solid #1e293b;
  font: 12.5px/1.7 var(--mono); white-space: pre-wrap; overflow: hidden;
}
.term .t-p { color: #4ade80; }
.term .t-ok { color: #4ade80; }
.term .t-dim { color: #8391a7; }
.term .caret { background: #e2e8f0; }

/* ── Spec lists (sync, autofill, guarantees) ────────────── */
.spec { list-style: none; margin: 0; padding: 0; display: grid; }
.spec-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.spec li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.spec li > .i { font-size: 20px; color: var(--gold-text); margin-top: 3px; }
.spec h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
.spec p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.spec b { color: var(--ink); font-weight: 600; }
.spec a { color: var(--sky-text); }
.spec a:hover { color: var(--ink); }
@media (max-width: 760px) { .spec-2 { grid-template-columns: 1fr; } }
.honest {
  margin-top: 40px; display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 10px;
  background: rgba(201, 168, 76, .07); border: 1px solid rgba(201, 168, 76, .35);
}
.honest .i { font-size: 22px; color: var(--gold-text); margin-top: 2px; }
.honest p { margin: 0; color: var(--ink-2); max-width: 80ch; }
.honest b { color: var(--ink); }

/* ── Sync map ───────────────────────────────────────────── */
.sync-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(40px, .6fr) minmax(0, 1.5fr) minmax(40px, .6fr) minmax(0, 1fr); align-items: center; margin-bottom: 56px; }
.sm-pc { display: grid; justify-items: start; gap: 6px; padding: 20px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.sm-pc > .i { font-size: 26px; color: var(--ink-2); stroke-width: 1.6; margin-bottom: 6px; }
.sm-pc b { font-weight: 650; }
.sm-pc span { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.sm-pc span .i { color: var(--gold-text); font-size: 13px; }
.sm-link { position: relative; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 10px); }
.sm-link i { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 2px; background: var(--gold); opacity: 0; }
.sync-map.is-playing .sm-link i { animation: packet 2.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.sync-map.is-playing .sm-link-r i { animation-name: packet-r; animation-delay: 1.3s; }
@keyframes packet { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }
@keyframes packet-r { 0% { left: calc(100% - 9px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.sm-drive { padding: 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ground-2); }
.sm-drive-h { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.sm-drive-h .i { font-size: 20px; color: var(--sky-text); }
.sm-folder { padding: 14px; border-radius: 8px; border: 1px solid rgba(201, 168, 76, .5); background: rgba(201, 168, 76, .06); }
.sm-folder-h { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sm-folder-h code { font-size: 11.5px; font-weight: 400; }
.sm-folder ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sm-folder li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.sm-folder li .i { font-size: 12px; color: var(--gold-text); }
.sm-other { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sm-other .i { font-size: 14px; }
@media (max-width: 900px) {
  .sync-map { grid-template-columns: 1fr; justify-items: stretch; max-width: 460px; margin-left: auto; margin-right: auto; }
  .sm-link { width: 1px; height: 36px; justify-self: center; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 10px); }
  .sm-link i { left: -4px; top: 0; }
  .sync-map.is-playing .sm-link i, .sync-map.is-playing .sm-link-r i { animation-name: packet-v; }
  @keyframes packet-v { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 9px); opacity: 0; } }
}

/* ── Autofill demo ──────────────────────────────────────── */
.af-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: start; }
.af-layout .spec li:first-child { border-top: 0; padding-top: 4px; }
.af { display: grid; gap: 14px; min-width: 0; }
.af-tabs { justify-self: start; max-width: 100%; overflow-x: auto; background: var(--surface); border-color: var(--line); }
.af-tabs > * { font-size: 13px; padding: 8px 12px; white-space: nowrap; color: var(--muted); }
.af-tabs [aria-pressed="true"] { background: var(--ground-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.af-tabs button:hover { color: var(--ink); }
.browser { font-size: 13px; }
.br-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px 0 14px; background: var(--w-bg2); border-bottom: 1px solid var(--w-border); }
.br-dots { display: flex; gap: 6px; }
.br-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--w-bg3); }
.br-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 13px; background: var(--w-bg); color: var(--w-text); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.br-url .i { font-size: 11px; color: var(--w-muted); }
.br-ext { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; transition: background-color .2s; }
.br-ext img { border-radius: 3px; }
.browser[data-scene="popup"] .br-ext { background: var(--w-bg3); }
.br-page { position: relative; height: 400px; padding: 40px; background: var(--w-bg); overflow: hidden; }
.br-form { width: 280px; max-width: 100%; display: grid; gap: 6px; }
.br-title { margin: 0 0 10px; font: 650 18px/1.3 var(--font-display); color: var(--w-text); }
.br-form label { font-size: 12.5px; color: var(--w-muted); }
.br-field { position: relative; margin-bottom: 8px; }
.br-field input {
  width: 100%; height: 34px; padding: 0 34px 0 10px; border-radius: 6px; border: 1px solid var(--w-border); background: var(--w-bg2);
  color: var(--w-text); font: 13px var(--font); outline: none; transition: border-color .3s, background-color .3s; pointer-events: none;
}
.br-field input[type="password"] { letter-spacing: .12em; }
.br-key { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: var(--w-bg3); }
.br-key img { border-radius: 2px; }
.browser.is-filled .br-field input { border-color: color-mix(in srgb, var(--w-ok) 55%, var(--w-border)); background: color-mix(in srgb, var(--w-ok) 8%, var(--w-bg2)); }
.br-submit { margin-top: 6px; display: grid; place-items: center; height: 34px; border-radius: 6px; background: var(--w-text); color: var(--w-bg); font-weight: 600; font-size: 13px; }

.af-ask, .af-menu, .af-pop {
  position: absolute; z-index: 3; border-radius: 8px; background: var(--w-bg2); border: 1px solid var(--w-border); color: var(--w-text);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .55), 0 6px 14px -8px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .3s;
}
.browser[data-scene="approve"]:not(.is-filled) .af-ask,
.browser[data-scene="menu"] .af-menu,
.browser[data-scene="popup"] .af-pop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.af-ask { right: 40px; top: 50%; margin-top: -132px; width: 270px; overflow: hidden; }
.af-ask-bar { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; font-size: 11.5px; font-weight: 600; color: var(--w-muted); border-bottom: 1px solid var(--w-border); }
.af-ask-bar img { border-radius: 2px; }
.af-ask-body { padding: 14px; display: grid; gap: 8px; }
.af-ask-t { margin: 0 0 4px; font-size: 13.5px; }
.af-acct { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 6px; border: 1px solid var(--w-border); font-size: 12px; color: var(--w-muted); }
.af-acct b { display: block; color: var(--w-text); font-weight: 600; font-size: 12.5px; }
.af-acct.is-on { border-color: var(--w-primary); background: color-mix(in srgb, var(--w-primary) 10%, transparent); }
.af-acct .i { font-size: 15px; }
.af-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--w-muted); margin-top: 2px; }
.af-check i { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid var(--w-muted); }
.af-ask-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.af-btn { padding: 6px 14px; border-radius: 6px; border: 1px solid var(--w-border); font-size: 12px; font-weight: 600; }
.af-btn-gold { background: var(--w-primary); border-color: var(--w-primary); color: var(--w-bg); transition: transform .15s var(--ease), box-shadow .2s; }
.browser.is-press .af-btn-gold { transform: scale(.94); box-shadow: 0 0 0 4px color-mix(in srgb, var(--w-primary) 25%, transparent); }

.af-menu { left: 210px; top: 112px; width: 168px; padding: 4px; font-size: 12.5px; }
.af-mi { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.af-mi img { border-radius: 2px; }
.af-mi.is-dim { color: var(--w-muted); }
.af-mi.is-on { background: var(--w-bg3); }
.af-chev { margin-left: auto; font-size: 11px; }
.af-sep { display: block; height: 1px; margin: 4px 6px; background: var(--w-border); }
.af-sub { position: absolute; left: calc(100% - 4px); top: 98px; width: 178px; padding: 4px; border-radius: 8px; background: var(--w-bg2); border: 1px solid var(--w-border); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); }
.af-sub .af-mi:first-child { background: color-mix(in srgb, var(--w-primary) 16%, transparent); }

.af-pop { right: 10px; top: 8px; width: 300px; max-width: calc(100% - 20px); padding: 8px; }
.af-pop-h { display: flex; align-items: center; gap: 8px; margin: 4px 6px 10px; font-size: 12.5px; font-weight: 600; }
.af-pop-h img { border-radius: 3px; }
.af-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; font-size: 12px; color: var(--w-muted); }
.af-row:first-of-type { background: var(--w-bg3); }
.af-row > span:not(.af-cps) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-row b { display: block; color: var(--w-text); font-size: 12.5px; font-weight: 600; }
.af-row .i { font-size: 14px; }
.af-cps { display: flex; gap: 2px; }
.af-cps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; color: var(--w-muted); }
.af-cps .i { font-size: 13px; }
.af-pop-f { margin: 8px 0 2px; padding: 8px 8px 2px; border-top: 1px solid var(--w-border); font-size: 12px; color: var(--w-primary); font-weight: 600; }
.af-cap { margin: 0; font-size: 14px; color: var(--muted); min-height: 3em; }
.af-more { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
.af-more a { color: var(--sky-text); }
.af-more a:hover { color: var(--ink); }
@media (max-width: 1080px) { .af-layout { grid-template-columns: 1fr; } .af-layout .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; } .af-layout .spec li:nth-child(2) { border-top: 0; padding-top: 4px; } }
@media (max-width: 760px) { .af-layout .spec { grid-template-columns: 1fr; } .af-layout .spec li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 22px; } }
@media (max-width: 600px) {
  .br-page { padding: 24px 18px; height: 420px; }
  .af-ask { left: 18px; right: 18px; width: auto; top: auto; bottom: 18px; margin-top: 0; }
  .af-menu { left: 18px; top: 120px; }
  .af-sub { left: 112px; top: 124px; width: 170px; }
}

/* ── More: tiles ────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.tile-copy { padding: 24px 24px 0; }
.tile h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
.tile h3 .i { color: var(--gold-text); font-size: 18px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; }
.t-board { grid-column: span 2; }
.t-ai { grid-column: span 4; }
.t-term { grid-column: span 6; }
@media (max-width: 980px) { .t-board, .t-ai, .t-term { grid-column: span 6; } }
.extras { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.extras li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.extras .i { font-size: 18px; color: var(--gold-text); margin-top: 3px; }
.extras b { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .extras { grid-template-columns: 1fr; } .chat, .term { margin: 18px 16px 16px !important; } .tile-copy { padding: 20px 18px 0; } }

/* ── Download ───────────────────────────────────────────── */
.dl-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.dl-copy h2 { margin-bottom: 16px; }
.dl-copy p { margin: 0 0 14px; color: var(--ink-2); font-size: 1.05rem; }
.dl-copy .dl-more { font-size: 15px; color: var(--muted); }
.dl-more a { color: var(--sky-text); }
.os-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.os {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s;
}
.os:hover { color: var(--ink); border-color: var(--gold); }
.os-ic { grid-row: span 2; font-size: 26px; color: var(--ink-2); stroke-width: 1.6; }
.os-name { font: 680 1.15rem var(--font-display); letter-spacing: -.01em; }
.os-sub { grid-column: 2; color: var(--muted); font-size: 14px; }
.os-go { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 12px; color: var(--gold-text); }
.os-go .i { font-size: 20px; transition: transform .25s var(--ease); }
.os:hover .os-go .i { transform: translateY(2px); }
.os-you { display: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; border: 1px solid currentColor; }
.os.is-you { background: rgba(201, 168, 76, .08); border-color: rgba(201, 168, 76, .55); }
.os.is-you .os-ic { color: var(--gold-text); }
.os.is-you .os-you { display: inline-block; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 420px) { .os { padding: 16px; column-gap: 12px; grid-template-columns: 30px minmax(0, 1fr) auto; } .os-you { display: none !important; } }

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) { .caret { display: none; } }

/* ── Remote file manager mock (the Servers band) ───────────────────────────── */
.fm { position: relative; min-height: 0; }
.fm-path, .fm-tools { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--w-border); }
.fm-path { background: var(--w-bg2); }
.fm-ib { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 6px; color: var(--w-muted); }
.fm-ib .i { font-size: 15px; }
.fm-crumbs { flex: 1; min-width: 0; padding: 4px 10px; border: 1px solid var(--w-border); border-radius: 6px; background: var(--w-bg); color: var(--w-muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.fm-crumbs b { color: var(--w-text); font-weight: 600; }
.fm-filter { display: inline-flex; align-items: center; gap: 6px; width: 110px; padding: 4px 9px; border: 1px solid var(--w-border); border-radius: 6px; background: var(--w-bg); color: var(--w-muted); font-size: 12px; }
.fm-filter .i { font-size: 12px; }
.fm-tools .sep { width: 1px; height: 16px; margin: 0 5px; background: var(--w-border); }
.fm-hint { margin-left: auto; color: var(--w-muted); font-size: 11.5px; white-space: nowrap; }
.fm-head, .fm-row { display: grid; grid-template-columns: minmax(0, 1fr) 62px 96px; gap: 8px; align-items: center; padding: 5px 12px; }
.fm-head { color: var(--w-muted); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--w-border); }
.fm-row { height: 30px; font-size: 12.5px; }
.fm-row > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.fm-row .i { font-size: 15px; color: var(--w-muted); }
.fm-row .i.k-folder { color: var(--w-primary); }
.fm-row > span:nth-child(n+2), .fm-head > span:nth-child(n+2) { color: var(--w-muted); font-size: 11.5px; }
.fm-row > span:nth-child(2), .fm-head > span:nth-child(2) { text-align: right; }
.fm-row.is-sel { background: color-mix(in srgb, var(--w-primary) 14%, var(--w-bg3)); }
.fm-xfer { position: absolute; right: 12px; bottom: 12px; width: 220px; border: 1px solid var(--w-border); border-radius: 9px; background: var(--w-bg2); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); overflow: hidden; }
.fm-xfer-h { padding: 8px 12px; background: var(--w-bg3); font-size: 12px; font-weight: 600; }
.fm-xfer-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; font-size: 12px; }
.fm-bar { flex: 1; max-width: 90px; height: 4px; border-radius: 3px; background: var(--w-bg3); overflow: hidden; }
.fm-bar i { display: block; height: 100%; background: var(--w-primary); }
.fm-ok { display: inline-flex; color: var(--w-ok); }
@media (max-width: 560px) { .fm-hint, .fm-filter { display: none; } .fm-xfer { position: static; width: auto; margin: 8px 12px 12px; } }

/* FAQ: plain disclosure list (crawlable text, no script) */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 28px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 620; font-size: 1.06rem; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg);
  transition: transform .18s ease-out;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:focus-visible { outline: 2px solid var(--gold-text, currentColor); outline-offset: 2px; border-radius: 4px; }
.faq-item p { margin: 0 0 20px; color: var(--ink-2); max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
