/* =====================================================================
   DESIGN TOKENS — change the colour scheme / fonts here
   ===================================================================== */
:root {
  /* Palette — Navy #182132 · Deep #0E1422 · Gold Deep #A88C6E · Ivory #E8E2D8
     Dark tones lead; Gold Deep is a sparing accent; Ivory carries text and primary buttons. */
  --navy: #182132;
  --deep: #0E1422;
  --ink: #07090F;          /* near-black, for the darkest surfaces */
  --steel: #243048;        /* lifted navy for selected/hover states */
  --ivory: #E8E2D8;

  --bg: var(--deep);
  --bg-2: var(--navy);
  --panel: var(--navy);
  --line: rgba(232, 226, 216, .08);
  --line-2: rgba(232, 226, 216, .14);
  --text: var(--ivory);
  --muted: #A3A9B4;
  --dim: #69717F;

  --accent: #A88C6E;      /* gold deep — accents only */
  --accent-2: #8A7257;
  --accent-glow: rgba(168, 140, 110, .22);
  --gold: #A88C6E;
  --gold-2: #8A7257;
  --gold-hi: #B99D80;
  --up: #8FB59F;
  --down: #C98577;
  --blue: #69717F;
  --on-accent: #0E1422;

  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-hand: "Caveat", "Segoe Script", cursive;

  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.ic { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(232,226,216,.22); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .ic { width: 15px; height: 15px; }
.btn-gold {
  background: var(--ivory); color: var(--deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 20px rgba(0,0,0,.35);
}
.btn-gold:hover { background: #F3EEE6; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 28px rgba(0,0,0,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-light { background: #E8E2D8; color: #0E1422; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.btn-dark { background: rgba(14,20,34,.72); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.logo-tile { width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.logo-tile svg { width: 70%; height: 70%; color: var(--gold); }
.logo-tile.sm { width: 20px; height: 20px; }
.btn-light .logo-tile img, .btn-gold .logo-tile img { filter: none; }
/* two-tone logotype: FINAN ivory · SYS gold */
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: .07em; line-height: 1; white-space: nowrap; }
.wordmark .wm-a { color: var(--ivory); }
.wordmark .wm-b { color: var(--gold); }

/* ---------- top nav ---------- */
.topnav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 28px);
  transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.topnav.scrolled { background: rgba(14,20,34,.6); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav-r { display: flex; gap: 6px; align-items: center; }

/* ---------- accent word + hand-drawn underline ---------- */
.accent { font-family: var(--f-serif); font-weight: 400; position: relative; display: inline-block; letter-spacing: -.01em; color: #F3EEE6; white-space: nowrap; }
.accent .ul { position: absolute; left: -3%; width: 106%; bottom: -.14em; height: .34em; overflow: visible; }
.ul path { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.4s .35s cubic-bezier(.6,0,.2,1); }
.in .ul path { stroke-dashoffset: 0; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; height: 720vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0E1422; }

/* --- eye-level scene: green wall + perspective walnut desk --- */
.scene { position: absolute; inset: 0; }
.wall {
  position: absolute; inset: 0;
  background:
    linear-gradient(112deg, transparent 0 34%, rgba(232,226,216,.05) 34% 46%, transparent 46% 52%, rgba(232,226,216,.035) 52% 60%, transparent 60%),
    radial-gradient(70% 60% at 22% 18%, rgba(168,140,110,.12), transparent 65%),
    radial-gradient(90% 80% at 80% 10%, rgba(168,140,110,.14), transparent 60%),
    linear-gradient(180deg, #1d2739 0%, #141c2c 55%, #0E1422 100%);
}
.wall::after { /* plaster texture */
  content: ""; position: absolute; inset: 0; opacity: .25; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tabletop {
  position: absolute; left: 0; right: 0; bottom: 0; height: 27%;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), transparent 22%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.003 .09' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .23  0 0 0 0 .14  0 0 0 0 .08  0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E") 0 0 / 900px 300px,
    linear-gradient(180deg, #3b281b 0%, #2e2016 50%, #1a120c 100%);
}
.tabletop::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(168,140,110,.35), transparent); }
/* photo (content.js → stage.heroImage) replaces the drawn wall + desk */
.scene .wall { will-change: transform, filter; transform: scale(1.04); }
.scene.photo .wall { background: var(--hero-img) center 62% / cover no-repeat, var(--deep); }
.scene.photo .wall::after, .scene.photo .tabletop { display: none; }
.scene-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,20,34,.82) 0%, rgba(14,20,34,.45) 32%, rgba(14,20,34,.05) 55%, rgba(14,20,34,.35) 100%),
              radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(8,12,22,.55)); }
.scene-dim { position: absolute; inset: 0; background: radial-gradient(80% 70% at 40% 60%, rgba(8,12,22,.55), rgba(8,12,22,.95)); opacity: 0; }

/* --- hero copy --- */
.hero-copy { position: relative; z-index: 4; text-align: center; padding: clamp(92px, 13vh, 136px) 16px 0; will-change: transform, opacity; }
.hero h1 { margin: 0 auto; white-space: nowrap; font-size: clamp(24px, 3.3vw, 54px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-sub { margin: 18px auto 0; max-width: 470px; color: #C9C3B8; font-size: clamp(15px, 1.6vw, 17px); }
.hero-ctas { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* --- scroll-scrubbed brand film (content.js → stage.heroMode "video") --- */
.video-rig { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.video-canvas { width: 100%; height: 100%; display: block; }
.hero.video-mode .lap-wrap, .hero.video-mode .burst, .hero.video-mode .scene .wall, .hero.video-mode .scene .tabletop, .hero.video-mode .scene-shade { display: none; }
.hero.video-mode .desk-layer .typed { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; font-size: clamp(34px, 5vw, 60px); }
.hero.video-mode .desk-layer .typed .accent { color: inherit; }
.desk-layer.photo .desk-surface { background-position: center; }

/* --- photographed laptop (content.js → stage.heroMode "photo") --- */
.photo-rig { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.photo-frame { position: absolute; will-change: transform, filter; }
.photo-frame::after { /* melt the photo's edges into the page background */
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(to right, var(--deep) 0, transparent 9%, transparent 91%, var(--deep) 100%),
    linear-gradient(to bottom, var(--deep) 0, transparent 16%, transparent 88%, var(--deep) 100%);
}
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.photo-frame .cover { position: absolute; }
.photo-screen, .screen-glass { position: absolute; left: 0; top: 0; transform-origin: 0 0; backface-visibility: hidden; }
.photo-screen { display: block; filter: brightness(.9) saturate(.95); }
.screen-glass { /* glass sheen + slight edge falloff so the display sits *in* the bezel */
  background:
    linear-gradient(118deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.025) 34%, transparent 34.5%),
    radial-gradient(130% 120% at 50% 45%, transparent 62%, rgba(0,0,0,.28) 100%);
}
.screen-spill { position: absolute; border-radius: 50%; mix-blend-mode: screen; pointer-events: none;
  background: radial-gradient(closest-side, rgba(150,170,215,.16), rgba(150,170,215,.05) 60%, transparent); }
.hero.photo-mode .lap-wrap .lap, .hero.photo-mode .scene .wall, .hero.photo-mode .scene .tabletop, .hero.photo-mode .scene-shade { display: none; }

/* --- real-time 3D laptop (laptop3d.js); the CSS laptop below is the no-WebGL fallback --- */
.lap3d { position: absolute; inset: 0; pointer-events: none; }
.lap3d-canvas { width: 100%; height: 100%; display: block; }
.hero.has-3d .lap, .hero.has-3d .burst { display: none; }

/* --- CSS laptop (fallback) --- */
.lap-wrap { position: absolute; inset: 0; z-index: 3; perspective: 1500px; perspective-origin: 50% 20%; pointer-events: none; }
.lap {
  --lw: min(540px, 46vw, 62vh);
  position: absolute; left: 50%; top: calc(83svh - var(--lw) * .64); width: var(--lw); margin-left: calc(var(--lw) / -2);
  transform-style: preserve-3d; transform-origin: 50% 100%; transform: rotateX(-16deg); pointer-events: auto;
}
.lid {
  position: relative; width: 100%; aspect-ratio: 16 / 10.2; padding: 2.3% 2.3% 3%;
  background: linear-gradient(#161d2b, #0b101a); border-radius: 16px 16px 5px 5px; border: 1px solid rgba(255,255,255,.16);
  transform-origin: 50% 100%; transform: rotateX(12deg);
  box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0,0,0,.35);
}
.lid-cam { position: absolute; top: .9%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2c3647; }
.lid-screen { width: 100%; height: 100%; border-radius: 6px; overflow: hidden; position: relative;
  background: radial-gradient(70% 80% at 10% 0%, #243048, transparent 60%), radial-gradient(70% 70% at 100% 100%, #A88C6E, transparent 60%), #182132; }
.lid-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.1), transparent 40%); }
.scaler { width: 1180px; height: calc(100% / var(--k, .5)); transform: scale(var(--k, .5)); transform-origin: 0 0; padding: 34px 40px 40px; }
.scaler .win-host { height: 100%; }
.base {
  position: absolute; left: -5%; width: 110%; top: 100%; height: calc(var(--lw) * .52);
  transform-origin: 50% 0; transform: rotateX(90deg);
  border-radius: 4px 4px 22px 22px; background: linear-gradient(180deg, #353f52, #1d2433 70%, #111723);
  box-shadow: 0 0 60px 26px rgba(0,0,0,.45), inset 0 -3px 0 rgba(255,255,255,.08);
}
.kb { position: absolute; left: 9%; right: 9%; top: 7%; height: 46%; border-radius: 6px;
  background: repeating-linear-gradient(90deg, transparent 0 6.4%, #1b2333 6.4% 7.1%), repeating-linear-gradient(0deg, transparent 0 15.5%, #1b2333 15.5% 16.7%), #0a0e18; }
.pad { position: absolute; left: 33%; right: 33%; top: 59%; height: 32%; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }

/* --- burst of files --- */
.burst { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.bc { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.bc .th { aspect-ratio: 3 / 4; font-size: 7px; border-radius: 5px; box-shadow: 0 12px 26px rgba(0,0,0,.5); }
.bc .th-tick, .bc .th-chart { aspect-ratio: 4 / 3; }

/* --- top-down desk (search scene) --- */
.desk-layer { position: absolute; inset: 0; z-index: 5; opacity: 0; }
.scroll-hint {
  position: absolute; z-index: 4; left: 50%; bottom: 84px; transform: translateX(-50%);
  font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.scroll-hint i { width: 18px; height: 28px; border: 1.5px solid var(--line-2); border-radius: 10px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

/* =====================================================================
   APP WINDOW (shared by hero + showcase)
   ===================================================================== */
.win {
  display: flex; flex-direction: column; height: 100%; min-height: 0;
  background: rgba(20, 28, 43, .9); backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); font-size: 12px; color: #E8E2D8; text-align: left;
}
.win-bar { display: flex; align-items: center; gap: 12px; height: 40px; flex: none; padding: 0 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.win-nav { display: flex; gap: 2px; color: var(--dim); } .win-nav .ic { width: 16px; height: 16px; }
.crumb { display: flex; align-items: center; gap: 6px; margin: 0 auto; color: var(--muted); white-space: nowrap; overflow: hidden; min-width: 0; }
.crumb b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumb em { opacity: .4; font-style: normal; } .crumb .ic { width: 13px; height: 13px; color: var(--gold); }
.vsw { display: flex; gap: 2px; background: rgba(255,255,255,.05); padding: 3px; border-radius: 8px; flex: none; }
.vsw button { width: 26px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); transition: .15s; }
.vsw button:hover { color: var(--text); }
.vsw button.on { background: rgba(255,255,255,.13); color: var(--text); }
.vsw .ic { width: 14px; height: 14px; }

.win-body { flex: 1; display: grid; grid-template-columns: 172px minmax(0, 1fr) 270px; min-height: 0; }
.win-side { border-right: 1px solid var(--line); padding: 12px 8px; overflow: auto; }
.side-i { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-i.on { background: rgba(255,255,255,.08); color: var(--text); }
.side-i .ic { width: 14px; height: 14px; } .side-i.ai .ic { color: var(--accent); } .side-i .fold { color: var(--gold); }
.side-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 14px 8px 6px; }

.win-main { overflow: auto; padding: 14px; outline: none; min-width: 0; min-height: 0; }
.win-main.swap > * { animation: swap .38s var(--ease); }
@keyframes swap { from { opacity: 0; transform: scale(.98) translateY(6px); } }

/* grid view */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 10px; }
.file { display: flex; flex-direction: column; gap: 6px; align-items: center; border-radius: 8px; padding: 6px; cursor: default; transition: background .15s; user-select: none; }
.file .th { width: 100%; aspect-ratio: 3 / 4; transition: box-shadow .3s; }
.file:hover { background: rgba(255,255,255,.05); }
.file.sel { background: rgba(232,226,216,.07); box-shadow: inset 0 0 0 1px rgba(232,226,216,.28); }
.file.scan .th { box-shadow: 0 0 0 2px var(--accent), 0 0 18px var(--accent-glow); }
.fname { font-size: 11px; text-align: center; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #D6D0C6; }

/* list view */
.flist { width: 100%; border-collapse: collapse; }
.flist th { text-align: left; font-weight: 500; color: var(--dim); font-size: 10.5px; padding: 4px 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.flist td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.04); white-space: nowrap; color: var(--muted); }
.flist td:first-child { color: #E8E2D8; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.flist tr { cursor: default; }
.flist tbody tr:hover td { background: rgba(255,255,255,.035); }
.flist tr.sel td { background: rgba(232,226,216,.07); }
.flist tr.scan td { background: rgba(168,140,110,.16); }
.mini { width: 16px; height: 20px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.mini .th { width: 100%; height: 100%; padding: 0; border-radius: 2px; font-size: 2px; }
.mini .th > * { display: none; }
.tagc { display: inline-block; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.07); font-size: 10.5px; color: #D6D0C6; }

/* column view */
.fcols { display: grid; grid-template-columns: .9fr 1.3fr 1.2fr; height: calc(100% + 28px); margin: -14px; }
.fcols > div { border-right: 1px solid var(--line); padding: 8px; overflow: auto; min-width: 0; }
.fcols > div:last-child { border-right: 0; }
.crow { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; cursor: default; }
.crow span { overflow: hidden; text-overflow: ellipsis; }
.crow .ic { width: 13px; height: 13px; color: var(--gold); }
.crow.on { background: var(--steel); color: var(--ivory); } .crow.on .ic { color: var(--gold); }
.crow:not(.on):hover { background: rgba(255,255,255,.05); }
.crow.scan { box-shadow: inset 0 0 0 1px var(--accent); }
.cprev { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 6px; text-align: center; }
.cprev .th { width: 72%; aspect-ratio: 3 / 4; font-size: 8px; }
.cprev b { font-size: 12px; } .cprev small { color: var(--dim); }

/* gallery view */
.fgal { display: flex; flex-direction: column; height: 100%; gap: 10px; }
.gal-big { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 18px; }
.gal-big .th { height: 100%; max-height: 100%; aspect-ratio: 3 / 4; width: auto; font-size: 10px; }
.gal-info { display: flex; flex-direction: column; gap: 4px; max-width: 160px; }
.gal-info b { font-size: 13px; } .gal-info span { color: var(--dim); }
.gal-strip { display: flex; gap: 6px; overflow-x: auto; flex: none; padding-bottom: 4px; }
.gal-strip .file { width: 56px; flex: none; padding: 3px; }
.gal-strip .fname { display: none; }

/* advisor (AI) panel */
.win-agent { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: rgba(0,0,0,.18); }
.ag-head { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; flex: none; }
.ag-head .ic { width: 15px; height: 15px; color: var(--accent); }
.ag-model { margin-left: auto; font-weight: 500; font-size: 10.5px; color: var(--dim); border: 1px solid var(--line-2); padding: 1px 8px; border-radius: 99px; }
.ag-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ag-empty { margin: auto; text-align: center; color: var(--dim); font-size: 11.5px; padding: 0 10px; }
.msg { max-width: 94%; line-height: 1.55; font-size: 12px; animation: swap .3s var(--ease); }
.msg.user { align-self: flex-end; background: rgba(255,255,255,.09); padding: 7px 10px; border-radius: 12px 12px 3px 12px; }
.msg.bot { color: #DDD6CA; }
.msg.bot b { color: var(--gold); font-weight: 600; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11.5px; }
.steps li { display: flex; gap: 7px; align-items: center; animation: swap .3s var(--ease); }
.spin { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line-2); border-top-color: var(--accent); animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps .ok { display: none; color: var(--accent); width: 12px; height: 12px; }
.steps li.done .spin { display: none; } .steps li.done .ok { display: block; }
.cites { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cite { font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: rgba(232,226,216,.06); color: var(--ivory); border: 1px solid var(--line-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cite:hover { background: rgba(232,226,216,.12); border-color: rgba(168,140,110,.5); }
.ag-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); flex: none; }
.ag-form input { flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--text); font: inherit; font-size: 12px; outline: none; }
.ag-form input:focus { border-color: rgba(232,226,216,.35); }
.ag-form button { width: 30px; border-radius: 8px; background: var(--ivory); color: var(--deep); display: grid; place-items: center; flex: none; }
.ag-form button .ic { width: 14px; height: 14px; }

/* =====================================================================
   FILE THUMBNAILS (pure CSS, generated in app.js)
   ===================================================================== */
.th {
  position: relative; border-radius: 4px; overflow: hidden; background: #f6f3ea; color: #182132;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); font-size: 7px; line-height: 1.2;
  display: flex; flex-direction: column; padding: 10% 11%; gap: 5%;
}
.th .ln { display: block; height: .42em; border-radius: 2px; background: #d2d5cb; flex: none; }
.th .ln.h { height: .75em; background: #182132; }
.th .ln.g { background: var(--accent-2); }
.th-ttl { font-weight: 700; font-size: 1em; letter-spacing: .03em; text-transform: uppercase; opacity: .85; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-tbl { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .5em .6em; margin-top: auto; }
.th-tbl i { height: .42em; background: #c3c8be; border-radius: 2px; }
.th-tbl i:nth-child(3n+1) { background: #9ea79c; }

.th-chart { background: linear-gradient(180deg, #18213200, #0E1422), #182132; color: #E8E2D8; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 7%; min-height: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.bars i { flex: 1; background: linear-gradient(180deg, #E8E2D8, #9C978F); border-radius: 2px 2px 0 0; }
.bars i.last { background: linear-gradient(180deg, var(--gold-hi), var(--gold-2)); }
.th-k { font-size: 1.5em; font-weight: 700; color: #fff; flex: none; }

.th-pie { background: #182132; color: #E8E2D8; align-items: center; }
.pie { width: 68%; aspect-ratio: 1; border-radius: 50%; margin: auto 0;
  -webkit-mask: radial-gradient(circle, transparent 40%, #000 41%); mask: radial-gradient(circle, transparent 40%, #000 41%); }
.legend { display: flex; gap: 8%; width: 100%; justify-content: center; flex: none; }
.legend i { width: 18%; height: .5em; border-radius: 2px; }

.th-sheet { background: #fff; padding: 0; gap: 0; }
.th-sheet .row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; border-bottom: 1px solid #e3e6df; flex: 1; }
.th-sheet .row span { border-right: 1px solid #e3e6df; position: relative; }
.th-sheet .row span::after { content: ""; position: absolute; left: 18%; right: 22%; top: 42%; height: .35em; border-radius: 2px; background: #c6cbc2; }
.th-sheet .row span.e::after { display: none; }
.th-sheet .row.hd { background: var(--navy); flex: 1.3; }
.th-sheet .row.hd span::after { background: rgba(255,255,255,.65); }
.th-sheet .row.tot span::after { background: #182132; }

.th-notice { background: #fbf8ef; }
.th-notice .seal { width: 24%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #243048 50%, #2a3446 52%); align-self: center; flex: none; }
.stamp { position: absolute; right: 7%; bottom: 10%; transform: rotate(-14deg); border: .22em solid #c9483a; color: #c9483a; font-weight: 800; font-size: 1.05em; padding: .25em .5em; border-radius: .3em; letter-spacing: .08em; background: rgba(251,248,239,.85); }

.th-tick { background: linear-gradient(160deg, #1d2739, #0E1422); color: #e6eef8; justify-content: space-between; }
.th-tick b { font-size: 1.6em; letter-spacing: .02em; }
.th-tick .chg { font-weight: 700; font-size: 1.15em; }
.th-tick svg { width: 100%; flex: 1; min-height: 0; }
.th-tick path { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.th-tick .area { stroke: none; opacity: .18; }
.up { color: var(--up); } .dn { color: var(--down); }

.th-receipt { background: #fffdf7; padding: 10% 14%;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / .9em 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / .9em 100%; }
.th-receipt .amt { margin-top: auto; font-weight: 800; font-size: 1.3em; text-align: right; flex: none; }

.th-memo { background: #fffdf6; }
.memo-hd { height: 18%; margin: -11% -12% 4%; background: linear-gradient(135deg, var(--steel), var(--navy)); flex: none; display: flex; align-items: flex-end; padding: 0 12% 5%; color: #F3EEE6; font-weight: 700; font-size: 1em; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; }

/* =====================================================================
   DESK SEARCH SCENE (inside the hero stage)
   ===================================================================== */
.desk-surface { /* navy leather desk pad */
  position: absolute; inset: 0;
  background:
    linear-gradient(118deg, transparent 0 22%, rgba(0,0,0,.18) 22% 29%, transparent 29% 36%, rgba(0,0,0,.18) 36% 43%, transparent 43% 50%, rgba(0,0,0,.18) 50% 57%, transparent 57%),
    radial-gradient(60% 55% at 46% 40%, rgba(168,140,110,.16), transparent 65%),
    radial-gradient(120% 100% at 50% 35%, #1d2739 0%, #141c2c 50%, #0E1422 100%);
}
.desk-surface::before { /* leather grain */
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.desk-layer.photo .desk-surface { background: linear-gradient(rgba(14,20,34,.08), rgba(14,20,34,.08)), var(--desk-img) center / cover no-repeat, var(--deep); }
.desk-layer.photo .desk-surface::before { display: none; }
.desk-layer.photo .desk-surface::after { inset: 0; border: 0; border-radius: 0; box-shadow: none; background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(8,12,22,.45)); }
.desk-surface::after { content: ""; position: absolute; inset: 7% 5%; border: 1px dashed rgba(168,140,110,.22); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(8,12,22,.35); }
.desk-cards { position: absolute; inset: 0; z-index: 1; --ds: 1; }
.dcard {
  position: absolute; width: calc(var(--w) * var(--ds)); opacity: 0;
  transform: translate(-50%, 70vh) rotate(calc(var(--r) * 3)) scale(.85);
  transition: transform .9s var(--ease) var(--d), opacity .5s var(--d);
  pointer-events: none;
}
.dcard.on { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)); }
.dcard .th { aspect-ratio: 3 / 4; border-radius: 3px; font-size: calc(9px * var(--ds)); box-shadow: 0 1px 1px rgba(0,0,0,.35), 0 8px 14px -4px rgba(0,0,0,.45), 0 30px 50px -12px rgba(0,0,0,.6); }
.dcard .th::after { /* paper grain + lamp light falloff */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(135deg, rgba(255,255,255,0) 30%, rgba(60,45,30,.12)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .4  0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.dcard .th-tick, .dcard .th-chart { aspect-ratio: 4 / 3.2; }
.desk-center { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; padding: 16px; }
.desk-box { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.searchbar {
  width: min(540px, 88vw); height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  border-radius: 13px; background: rgba(24,33,50,.6); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.45); font-size: 15px; text-align: left;
}
.searchbar > .ic { width: 18px; height: 18px; color: var(--muted); }
.searchbar .q:empty::before { content: attr(data-ph); color: var(--dim); }
.caret { width: 1.5px; height: 18px; background: var(--accent); animation: blink 1s steps(1) infinite; margin-left: -8px; }
@keyframes blink { 50% { opacity: 0; } }
.searchbar kbd { margin-left: auto; font: 500 11px var(--f-sans); color: var(--dim); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px; }
.desk-meta { font-size: 13px; color: var(--muted); min-height: 20px; margin-top: -8px; transition: opacity .3s; }
.desk-meta b { color: var(--gold); font-weight: 600; }
.desk-layer .searchbar, .desk-meta { opacity: var(--sb, 0); transform: translateY(calc((1 - var(--sb, 0)) * 14px)); }
.desk-layer .searchbar { background: rgba(7,9,15,.6); border-color: rgba(232,226,216,.16); }
.typed { font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; min-height: 1.2em; color: #F3EEE6;
  text-shadow: 0 2px 24px rgba(0,0,0,.45); transition: opacity .45s, transform .45s var(--ease); }
.typed.off { opacity: 0; transform: translateY(14px); }
.typed.caret-on::after { content: ""; display: inline-block; width: 3px; height: .85em; margin-left: 4px; vertical-align: -.08em; background: var(--gold); animation: blink 1s steps(1) infinite; }

/* =====================================================================
   SHOWCASE
   ===================================================================== */
#showcase { padding: 110px 0 20px; background: linear-gradient(var(--bg), #050a09 40%, var(--bg)); }
.show { max-width: 1180px; margin: 0 auto; padding: 50px 16px 110px; display: flex; flex-direction: column; align-items: center; }
.show-head { text-align: center; position: relative; margin-bottom: 34px; }
.note { display: inline-flex; align-items: flex-end; gap: 4px; font-family: var(--f-hand); font-weight: 700; color: var(--gold); font-size: 26px; transform: rotate(-7deg) translateX(-55%); margin-bottom: -2px; }
.note svg { width: 34px; height: 30px; transform: translateY(10px); }
.note path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.show-head h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.show-stage { width: 100%; border-radius: 22px; padding: clamp(12px, 4vw, 48px); background: var(--wall); position: relative; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.show-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,.14), transparent 70%); pointer-events: none; }
.win-slot { position: relative; height: clamp(460px, 56vw, 600px); }
.perfect { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; font-weight: 600; font-size: 15px; }
.perfect > .ic { color: var(--gold); width: 20px; height: 20px; }
.chip { padding: 5px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: 13px; font-weight: 500; color: #DDD6CA; }

/* =====================================================================
   FEATURES (bento)
   ===================================================================== */
#features { padding: 110px 16px 40px; max-width: 1180px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 14px; grid-auto-flow: dense; }
.fc {
  position: relative; border-radius: var(--radius); padding: 22px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease), opacity .9s var(--ease);
}
.fc::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(232,226,216,.06), transparent 45%); }
.fc:hover { border-color: rgba(232,226,216,.18); }
.fc:hover::before { opacity: 1; }
.fc.wide { grid-column: span 2; } .fc.tall { grid-row: span 2; }
.fc-vis { flex: 1; display: grid; place-items: center; min-height: 130px; margin-bottom: 18px; position: relative; }
.fc-t { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; }
.fc-t .ic { color: var(--gold); width: 18px; height: 18px; }
.fc p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 46ch; }
.soon { font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: rgba(168,140,110,.15); color: var(--gold); margin-left: auto; }

/* feature visuals */
.vx-sync { display: flex; align-items: center; gap: 0; width: 100%; justify-content: center; }
.vx-sync .node { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
.vx-sync .hub { width: 52px; height: 52px; } .vx-sync .hub .logo-tile { width: 52px; height: 52px; padding: 9px; border-radius: 14px; background: linear-gradient(145deg, #1f2a40, var(--ink)); box-shadow: inset 0 0 0 1px rgba(168,140,110,.35); }
.vx-sync .wire { width: 46px; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.vx-sync .wire::after { content: ""; position: absolute; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: flow 1.8s linear infinite; }
.vx-sync .wire.rev::after { animation-direction: reverse; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
@keyframes flow { from { left: 0; } to { left: calc(100% - 6px); } }
.vx-sync .col { display: flex; flex-direction: column; gap: 10px; }

.vx-ctx { display: flex; align-items: center; gap: 30px; }
.vx-ctx .stack { position: relative; width: 90px; height: 110px; margin-right: 26px; flex: none; }
.vx-ctx .stack .th { position: absolute; inset: 0; transform: rotate(calc(var(--i) * 4deg - 8deg)) translateX(calc(var(--i) * 6px)); }
.vx-ctx .cnt b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.vx-ctx .cnt span { color: var(--muted); font-size: 13px; }
.vx-ctx .threads { display: flex; flex-direction: column; gap: 6px; }
.vx-ctx .threads span { font-size: 11.5px; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); display: flex; gap: 6px; align-items: center; }
.vx-ctx .threads .spin { width: 9px; height: 9px; }

.vx-ver { width: 100%; display: flex; flex-direction: column; gap: 4px; align-self: stretch; padding-top: 6px; }
.vx-ver li { list-style: none; display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 12.5px; position: relative; }
.vx-ver li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--dim); }
.vx-ver li.cur::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.vx-ver li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 26px; width: 1px; height: 22px; background: var(--line-2); }
.vx-ver li:hover { background: rgba(255,255,255,.04); }
.vx-ver small { display: block; color: var(--dim); font-size: 11px; }
.vx-ver button { font-size: 11px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-2); opacity: 0; transition: .2s; }
.vx-ver li:hover button { opacity: 1; }
.vx-ver li.cur button { opacity: 1; border-color: transparent; color: var(--accent); cursor: default; }

.vx-share { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 10px; }
.vx-share .lnk { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.vx-share .lnk span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-share .lnk button { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 7px; background: var(--ivory); color: var(--deep); }
.vx-share .perm { font-size: 11.5px; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.vx-share .perm .ic { color: var(--accent); }

.vx-views { width: 100%; max-width: 260px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.vx-views .vsw { background: rgba(255,255,255,.06); }
.vx-views .lay { width: 100%; height: 96px; display: grid; gap: 6px; transition: .3s; }
.vx-views .lay i { border-radius: 5px; background: rgba(255,255,255,.08); transition: .35s var(--ease); }
.vx-views .lay i:nth-child(3n+1) { background: rgba(168,140,110,.25); }
.vx-views[data-v="grid"] .lay { grid-template-columns: repeat(4, 1fr); }
.vx-views[data-v="list"] .lay { grid-template-columns: 1fr; gap: 3px; }
.vx-views[data-v="column"] .lay { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); grid-auto-flow: column; }
.vx-views[data-v="gallery"] .lay { grid-template-columns: repeat(4, 1fr); grid-template-rows: 3fr 1fr; }
.vx-views[data-v="gallery"] .lay i:first-child { grid-column: 1 / -1; }
.vx-views[data-v="gallery"] .lay i:nth-child(n+6) { display: none; }
.vx-views[data-v="list"] .lay i:nth-child(n+7), .vx-views[data-v="column"] .lay i:nth-child(n+10) { display: none; }

.vx-team { position: relative; width: 100%; height: 130px; }
.vx-team .avs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; }
.vx-team .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #0E1422; border: 3px solid var(--bg-2); margin-left: -10px; }
.vx-team .cur { position: absolute; display: flex; align-items: flex-start; gap: 2px; font-size: 10.5px; font-weight: 600; animation: drift 6s ease-in-out infinite; }
.vx-team .cur .ic { width: 14px; height: 14px; }
.vx-team .cur span { padding: 2px 7px; border-radius: 6px; margin-top: 10px; color: #0E1422; }
@keyframes drift { 50% { transform: translate(18px, -10px); } }

.vx-toggle { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vx-toggle .fileline { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 12.5px; transition: filter .4s, opacity .4s; }
.vx-toggle .fileline .mini { margin: 0; }
.vx-toggle.on .fileline { filter: blur(2.5px); opacity: .55; }
.vx-toggle button { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sw { width: 40px; height: 23px; border-radius: 99px; background: rgba(255,255,255,.14); position: relative; transition: .25s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .25s var(--ease); }
.vx-toggle.on .sw { background: var(--steel); box-shadow: inset 0 0 0 1px rgba(168,140,110,.6); } .vx-toggle.on .sw::after { left: 20px; }
.vx-toggle.on button { color: var(--text); }

.vx-props { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 520px; }
.vx-props span { font-size: 12px; padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); display: inline-flex; gap: 6px; transition: transform .3s var(--ease), border-color .3s; }
.vx-props span:hover { transform: translateY(-3px) rotate(-1deg); border-color: rgba(168,140,110,.45); }
.vx-props em { font-style: normal; color: var(--dim); }

.vx-shield { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.vx-shield > .ic { width: 52px; height: 52px; color: var(--accent); filter: drop-shadow(0 0 16px var(--accent-glow)); }
.vx-shield .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(168,140,110,.35); animation: ping 3s var(--ease) infinite; }
.vx-shield .ring.r2 { animation-delay: 1.5s; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

.vx-off { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vx-off .pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); transition: .3s; }
.vx-off .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.vx-off.online .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.vx-off .q { font-size: 11.5px; color: var(--dim); }

.vx-peek { display: flex; align-items: center; gap: 22px; }
.vx-peek kbd { font: 600 13px var(--f-sans); padding: 10px 30px; border-radius: 10px; background: linear-gradient(#182132, #18211e); border: 1px solid var(--line-2); box-shadow: 0 4px 0 #0a0f1a; color: var(--text); animation: press 2.8s infinite; }
.vx-peek .pk { width: 74px; animation: pop 2.8s infinite; transform-origin: left center; }
.vx-peek .pk .th { aspect-ratio: 3 / 4; }
@keyframes press { 0%, 12%, 100% { transform: none; box-shadow: 0 4px 0 #0a0f1a; } 6% { transform: translateY(3px); box-shadow: 0 1px 0 #0a0f1a; } }
@keyframes pop { 0%, 6% { transform: scale(.4); opacity: 0; } 18%, 80% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(.4); opacity: 0; } }

.vx-chat { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 8px; }
.vx-chat .b { font-size: 12px; padding: 8px 11px; border-radius: 12px; max-width: 85%; }
.vx-chat .b small { display: block; font-size: 10px; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.vx-chat .me { align-self: flex-end; background: rgba(255,255,255,.08); }
.vx-chat .adv { background: rgba(168,140,110,.12); border: 1px solid rgba(168,140,110,.25); }
.vx-chat .typing { display: flex; gap: 4px; padding: 10px 12px; }
.vx-chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: bounce 1.2s infinite; }
.vx-chat .typing i:nth-child(2) { animation-delay: .15s; } .vx-chat .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* =====================================================================
   CTA + FOOTER
   ===================================================================== */
#cta { position: relative; text-align: center; padding: 150px 16px 130px; overflow: hidden; }
#cta::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 55% at 50% 60%, rgba(36,48,72,.75), transparent 70%), radial-gradient(28% 36% at 62% 40%, rgba(168,140,110,.08), transparent 70%); }
.cta-in { position: relative; max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-in .logo-tile { width: 84px; height: 84px; }
.cta-in .logo-tile img { filter: drop-shadow(0 14px 30px rgba(0,0,0,.55)) drop-shadow(0 0 24px rgba(168,140,110,.18)); }
.cta-in h2 { font-size: clamp(32px, 5vw, 58px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.cta-in p { color: var(--muted); font-size: 17px; max-width: 520px; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.footer { border-top: 1px solid var(--line); padding: 30px clamp(16px, 3vw, 28px) 110px; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.footer .logo { color: var(--text); } .footer .logo-tile { width: 24px; height: 24px; } .footer .wordmark { font-size: 15px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a:hover { color: var(--text); }
.footer .disc { flex-basis: 100%; font-size: 11.5px; color: var(--dim); max-width: 760px; }

/* ---------- floating section pill ---------- */
.pillnav {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; gap: 4px; padding: 5px; border-radius: 14px;
  background: rgba(24,33,50,.72); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line-2); box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.pillnav button { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; white-space: nowrap; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); transition: .2s; }
.pillnav button:hover { color: var(--text); }
.pillnav button.on { background: rgba(255,255,255,.08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(232,226,216,.22); }
.pillnav .ic { width: 15px; height: 15px; } .pillnav button.on .ic { color: var(--gold); }

/* ---------- quick-look peek ---------- */
.peek { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8,12,22,.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.peek.open { opacity: 1; }
.peek-card { width: min(760px, 100%); max-height: 92vh; display: flex; flex-direction: column; background: #0f1a17; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; transform: scale(.94); transition: transform .28s cubic-bezier(.2,.9,.3,1.2); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.peek.open .peek-card { transform: none; }
.peek-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.peek-bar b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek-x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; } .peek-x:hover { background: rgba(255,255,255,.08); }
.peek-x .ic { width: 16px; height: 16px; }
.peek-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; padding: 22px; overflow: auto; }
.peek-thumb { display: grid; place-items: center; }
.peek-thumb .th { width: 100%; max-width: 380px; aspect-ratio: 3 / 4; font-size: 15px; border-radius: 8px; }
.peek dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 13px; align-content: start; }
.peek dt { color: var(--dim); } .peek dd { color: var(--text); }
.peek-hint { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.peek kbd { font: 600 11px var(--f-sans); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--muted); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .win-body { grid-template-columns: minmax(0, 1fr) 250px; }
  .win-side { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pillnav { max-width: calc(100vw - 24px); }
  .pillnav button { padding: 0 9px; gap: 5px; font-size: 12.5px; }
  /* one line would drop below ~14px on phones, so the tagline wraps here */
  .hero h1 { white-space: normal; max-width: 14ch; font-size: clamp(30px, 8.6vw, 38px); }
}
@media (max-width: 720px) {
  .topnav .btn-ghost { display: none; }
  .topnav .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .lap { --lw: 84vw; top: calc(80svh - var(--lw) * .64); }
  .props { --ps: .62; }
  .note-p, .plant { display: none; }
  .win-nav { display: none; }
  .win-slot { height: 660px; }
  .show-stage .win-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 270px; }
  .show-stage .win-agent { border-left: 0; border-top: 1px solid var(--line); }
  .fcols { grid-template-columns: 1fr 1fr; } .fcols > div:first-child { display: none; }
  .gal-info { display: none; }
  .desk-cards { --ds: .62; }
  .note { font-size: 22px; transform: rotate(-7deg) translateX(-30%); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .fc.wide { grid-column: auto; } .fc.tall { grid-row: auto; }
  .vx-ctx { gap: 18px; } .vx-ctx .threads { display: none; }
  .peek-body { grid-template-columns: 1fr; }
  .pillnav button { padding: 0 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- texture capture modes (?capture=screen | docs) ---------- */
body.capturing > *:not(.cap-root) { display: none !important; }
.cap-root { position: fixed; inset: 0; z-index: 999; }
.cap-screen { padding: 34px 40px 40px; background: radial-gradient(70% 80% at 10% 0%, #243048, transparent 60%), radial-gradient(70% 70% at 100% 100%, #A88C6E, transparent 60%), #182132; }
.cap-screen .win-host { height: 100%; }
.cap-docs { display: grid; grid-template-columns: repeat(4, 300px); grid-template-rows: repeat(2, 400px); background: #E8E2D8; }
.cap-cell { width: 300px; height: 400px; overflow: hidden; }
.cap-cell .th { width: 300px; height: 400px; font-size: 20px; border-radius: 0; box-shadow: none; }

/* search bar grows to fit long lines (the statements typed on scroll) instead of clipping them */
.desk-layer .searchbar { height: auto; min-height: 52px; padding: 13px 16px; align-items: flex-start; width: min(620px, 90vw); }
.desk-layer .searchbar > .ic { margin-top: 1px; }
.desk-layer .searchbar .q { flex: 1; min-width: 0; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.desk-layer .searchbar .caret { align-self: flex-end; margin-bottom: 3px; }
.desk-layer .searchbar kbd { flex: none; }
.desk-layer .searchbar .caret { display: none; }
.desk-layer .searchbar .q::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -.17em; background: var(--accent); animation: blink 1s steps(1) infinite; }

.desk-meta { letter-spacing: .02em; }
.desk-meta .dot { color: var(--gold); margin: 0 .55em; opacity: .8; }

/* =====================================================================
   WHAT WE DO — pinned service stack (services.js)
   ===================================================================== */
#showcase.svc-mode { padding: 110px 0 0; background: linear-gradient(var(--bg), #0b111d 30%, var(--bg)); }
.svc-intro { text-align: center; padding: 0 16px 10px; opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.svc-intro.in { opacity: 1; transform: none; }
.svc-intro h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
.svc-intro p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.svc-pin { position: relative; height: calc(var(--n) * 105vh + 30vh); }
.svc-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 86px 16px 86px; overflow: hidden; }
.svc-heads { position: relative; width: 100%; height: 112px; flex: none; margin-bottom: 18px; }
.svc-head { position: absolute; inset: 0; text-align: center; }
.svc-num { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--gold); margin-bottom: 8px; }
.svc-head h3 { font-size: clamp(24px, 3vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.svc-head p { color: var(--muted); max-width: 640px; margin: 8px auto 0; font-size: 15px; line-height: 1.5; }
.svc-stack { position: relative; width: min(1120px, 100%); flex: 1; min-height: 0; max-height: 600px; }
.svc-card { position: absolute; inset: 0; transform-origin: 50% 0; will-change: transform, opacity; }
.svc-win { height: 100%; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #151d2d, #0f1522); border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.45); }
.svc-win .crumb b { max-width: 46ch; }
.svc-tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--gold); padding: 3px 9px; border: 1px solid rgba(168,140,110,.4); border-radius: 99px; flex: none; }
.svc-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.3fr); }
.svc-list { list-style: none; padding: 16px; border-right: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.svc-list li { position: relative; padding: 11px 14px 11px 16px; border-radius: 12px; border: 1px solid transparent; display: grid; gap: 3px; transition: background .4s, border-color .4s; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--gold); transform: scaleY(0); transition: transform .4s var(--ease); }
.svc-list li b { font-size: 14px; font-weight: 600; color: var(--ivory); }
.svc-list li span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.svc-list li.on { background: rgba(232,226,216,.045); border-color: var(--line-2); }
.svc-list li.on::before { transform: scaleY(1); }
.svc-viz { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; justify-content: center; }
.svc-dots { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 5; }
.svc-dots button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--dim); font-size: 12px; font-weight: 600; }
.svc-dots button span { opacity: 0; transform: translateX(6px); transition: .3s var(--ease); white-space: nowrap; }
.svc-dots button i { width: 8px; height: 8px; border-radius: 50%; background: rgba(232,226,216,.22); transition: .3s; }
.svc-dots button:hover span, .svc-dots button:focus-visible span { opacity: 1; transform: none; }
.svc-dots { right: max(14px, calc((100vw - 1120px) / 2 - 34px)); }
.svc-dots button span { padding: 4px 9px; border-radius: 7px; background: rgba(11,16,27,.92); border: 1px solid var(--line-2); }
.svc-dots button.on { color: var(--ivory); } .svc-dots button.on i { background: var(--gold); box-shadow: 0 0 0 4px rgba(168,140,110,.18); }

/* charts */
.viz-fig { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.viz-fig figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--text); }
.viz-fig figcaption em { font-style: normal; font-weight: 500; color: var(--dim); margin-left: 4px; }
.viz-legend { display: flex; gap: 14px; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.viz-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.viz-legend i.st { border-radius: 50%; }
.viz-legend i.st.filed { background: #6FB28A; } .viz-legend i.st.due { background: #D98B62; } .viz-legend i.st.next { border: 1.5px solid #69717F; }
.viz-fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.viz-fig .gl { stroke: rgba(232,226,216,.08); stroke-width: 1; }
.viz-fig .tk { fill: #8C93A0; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.viz-fig .tk.now { fill: var(--ivory); font-weight: 700; }
.viz-fig .lbl { fill: var(--ivory); font-size: 11px; font-weight: 600; }
.viz-fig .hit { fill: transparent; }
.viz-fig .hit:hover { fill: rgba(232,226,216,.035); }
.col { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s var(--ease) calc(var(--i) * 90ms); }
.col.s0 { fill: #B8843D; } .col.s1 { fill: #5A86D8; }
.svc-card.active .col { transform: scaleY(1); }
.viz-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { padding: 10px 12px; border-radius: 10px; background: rgba(232,226,216,.04); border: 1px solid var(--line); display: grid; gap: 2px; }
.kpi span { font-size: 11px; color: var(--muted); } .kpi b { font-size: 18px; font-weight: 600; color: var(--ivory); letter-spacing: -.01em; }
/* diagrams */
.viz-fig .link { fill: none; stroke: rgba(232,226,216,.22); stroke-width: 1.6; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.1s var(--ease) calc(var(--i) * 140ms + 150ms); }
.viz-fig .link.on { stroke: rgba(168,140,110,.75); }
.svc-card.active .link { stroke-dashoffset: 0; }
.viz-fig .node rect { fill: #1b2436; stroke: var(--line-2); stroke-width: 1; }
.viz-fig .node.root rect, .viz-fig .node.hub rect { fill: #202a3e; stroke: rgba(168,140,110,.55); }
.viz-fig .node.focus rect { stroke: #B8843D; stroke-width: 1.6; }
.viz-fig .nt { fill: var(--ivory); font-size: 12.5px; font-weight: 600; }
.viz-fig .ns { fill: #8C93A0; font-size: 10.5px; }
.viz-fig .pkt { opacity: 0; transition: opacity .4s .9s; } .svc-card.active .pkt { opacity: 1; }
.viz-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.viz-steps li { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.viz-steps li .ic { width: 14px; height: 14px; color: #6FB28A; }
.viz-steps li.done { color: var(--text); } .viz-steps li.now { color: var(--ivory); border-color: rgba(184,132,61,.6); background: rgba(184,132,61,.08); }
.viz-steps .pulse { width: 9px; height: 9px; border-radius: 50%; background: #B8843D; box-shadow: 0 0 0 0 rgba(184,132,61,.6); animation: svcPulse 1.8s infinite; flex: none; }
.viz-steps .ring { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #69717F; flex: none; }
@keyframes svcPulse { 70% { box-shadow: 0 0 0 8px rgba(184,132,61,0); } 100% { box-shadow: 0 0 0 0 rgba(184,132,61,0); } }
.viz-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 12px; color: var(--muted); }
.meter b { color: var(--ivory); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(184,132,61,.18); overflow: hidden; }
.meter em { display: block; height: 100%; width: var(--w); border-radius: 99px; background: #B8843D; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease) calc(var(--i) * 120ms + 300ms); }
.svc-card.active .meter em { transform: scaleX(1); }
/* compliance calendar */
.viz-fig .rowlbl { fill: var(--muted); font-size: 11.5px; }
.viz-fig .nowband { fill: rgba(217,139,98,.07); stroke: rgba(217,139,98,.35); stroke-width: 1; }
.viz-fig .mk { opacity: 0; transition: opacity .4s var(--ease) calc(var(--i) * 45ms + 200ms); }
.svc-card.active .mk { opacity: 1; }
.viz-fig .mk .hitc { fill: transparent; }
.viz-fig .mk .dot { stroke: #151d2d; stroke-width: 2; }
.viz-fig .mk.filed .dot { fill: #6FB28A; } .viz-fig .mk.due .dot { fill: #D98B62; } .viz-fig .mk.next .dot { fill: #151d2d; stroke: #69717F; stroke-width: 1.5; }
.viz-fig .gly { fill: none; stroke: #0E1422; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.viz-etr { gap: 9px; }
.etr { display: grid; grid-template-columns: 128px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.etr i { height: 14px; border-radius: 0 4px 4px 0; background: transparent; }
.etr em { display: block; height: 100%; width: var(--w); border-radius: 0 4px 4px 0; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease) .3s; }
.svc-card.active .etr em { transform: scaleX(1); }
.etr b { color: var(--ivory); font-weight: 600; text-align: right; }
/* tooltip */
.viz-tip { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; padding: 7px 10px; border-radius: 8px; background: #0b101b; border: 1px solid var(--line-2); color: var(--ivory); font-size: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.viz-tip.on { opacity: 1; }
/* static fallback (no GSAP / reduced motion) */
.svc-static .svc-pin { height: auto; }
.svc-static .svc-sticky { position: static; height: auto; overflow: visible; padding-bottom: 40px; }
.svc-static .svc-heads, .svc-static .svc-dots { display: none; }
.svc-static .svc-stack { max-height: none; display: grid; gap: 70px; }
.svc-static .svc-card { position: relative; inset: auto; }
.svc-static .svc-card .svc-head { position: static; margin-bottom: 18px; }
.svc-static .svc-win { height: 560px; }
/* responsive */
@media (max-width: 1000px) {
  .svc-dots { display: none; }
  .svc-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .svc-list li span { display: none; }
}
@media (max-width: 760px) {
  .svc-heads { height: 150px; }
  .svc-head p { font-size: 13.5px; }
  .svc-stack { max-height: none; }
  .svc-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .svc-list { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; padding: 10px; gap: 6px; }
  .svc-list li { padding: 6px 10px; border-color: var(--line); }
  .svc-list li b { font-size: 11.5px; }
  .svc-list li::before { display: none; }
  .svc-viz { padding: 12px; gap: 10px; justify-content: flex-start; }
  .viz-kpis { display: none; }
  .viz-steps { grid-template-columns: repeat(2, 1fr); }
  .viz-meters { grid-template-columns: 1fr; }
  .viz-etr { display: none; }
  .svc-win .crumb b { max-width: 18ch; }
}

/* ---- service window v2: tabs in the title bar, toolbar with brief, status bar, bigger screen ---- */
.svc-sticky { padding: 78px 16px 84px; justify-content: center; }
.svc-stack { width: min(1280px, 100%); max-height: none; }
.svc-win { background: linear-gradient(180deg, #161f30 0, #121a29 120px, #0f1522); }
.svc-titlebar { display: flex; align-items: flex-end; gap: 14px; height: 46px; padding: 0 12px; background: #0b111c; border-bottom: 1px solid var(--line); flex: none; }
.svc-titlebar .lights { align-self: center; }
.svc-tabs { display: flex; align-items: flex-end; gap: 2px; min-width: 0; overflow: hidden; }
.svc-tab { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px 10px 0 0; font-size: 12.5px; font-weight: 500; color: var(--dim); white-space: nowrap; transition: color .2s, background .2s; }
.svc-tab .ic { width: 14px; height: 14px; }
.svc-tab:hover { color: var(--muted); background: rgba(232,226,216,.03); }
.svc-tab.on { color: var(--ivory); background: #161f30; box-shadow: inset 0 1px 0 rgba(232,226,216,.08), 1px 0 0 var(--line), -1px 0 0 var(--line); }
.svc-tab.on .ic { color: var(--gold); }
.svc-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #161f30; }
.svc-tab .x { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; color: var(--dim); }
.svc-tab .x .ic { width: 11px; height: 11px; }
.svc-tab:not(.on) + .svc-tab:not(.on)::before { content: ""; position: absolute; left: -1px; top: 11px; bottom: 11px; width: 1px; background: var(--line-2); }
.svc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex: none; }
.svc-ttl { min-width: 0; display: grid; gap: 4px; }
.svc-ttl .crumb { margin: 0; font-size: 13px; }
.svc-brief { color: var(--muted); font-size: 13.5px; line-height: 1.45; max-width: 70ch; }
.svc-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.sbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(232,226,216,.03); font-size: 12px; color: var(--muted); }
.sbtn .ic { width: 13px; height: 13px; }
.svc-status { display: flex; justify-content: space-between; gap: 12px; padding: 7px 16px; border-top: 1px solid var(--line); background: #0b111c; font-size: 11px; color: var(--dim); flex: none; }
.svc-status .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6FB28A; margin-right: 7px; box-shadow: 0 0 0 3px rgba(111,178,138,.15); }
.viz-fig .node.auth rect { fill: #1d2840; stroke: #5A86D8; stroke-width: 1.3; }
.svc-viz { gap: 18px; padding: 20px 26px; }
@media (max-width: 1000px) {
  .svc-tab span { display: none; }
  .svc-tab.on span { display: inline; }
  .sbtn { display: none; }
}
@media (max-width: 760px) {
  .svc-sticky { padding: 70px 10px 78px; }
  .svc-titlebar { height: 40px; gap: 8px; }
  .svc-tab { height: 32px; padding: 0 9px; font-size: 11.5px; }
  .svc-tab .x { display: none; }
  .svc-toolbar { padding: 10px 12px; }
  .svc-brief { font-size: 12px; }
  .svc-actions { display: none; }
  .svc-status span:last-child { display: none; }
}
