/* =========================================================
   DigiGovah — Concept 08 «میز کار» (Desktop OS / گواه‌OS)
   ========================================================= */

:root {
  --desk: #DCD9EC;
  --paper: #F5F4FA;
  --paper-2: #FBFAFE;
  --ink: #1C1A2E;
  --ink-2: #3A3754;
  --muted: #5D5A73;
  --line: rgba(28, 26, 46, .12);
  --line-2: rgba(28, 26, 46, .2);
  --coral: #FF6B57;
  --mint: #2BB673;
  --blue: #3D7BFF;
  --lemon: #FFD43B;
  --lilac: #B9B3DA;
  --coral-ink: #C2402C;
  --mint-ink: #157446;
  --blue-ink: #2457D6;
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  --fun: 'Lemonada', 'Vazirmatn', sans-serif;
  --shadow-win: 0 0 0 1px rgba(28, 26, 46, .09), 0 22px 44px -16px rgba(44, 32, 110, .38), 0 4px 12px -4px rgba(44, 32, 110, .18);
  --shadow-soft: 0 0 0 1px rgba(28, 26, 46, .07), 0 10px 26px -14px rgba(44, 32, 110, .35);
  --ease-pop: cubic-bezier(.2, 1.2, .3, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --bar-h: 56px;
}

/* ---------- color utilities (svg currentColor + --c) ---------- */
.c-coral { --c: var(--coral); color: var(--coral); }
.c-mint { --c: var(--mint); color: var(--mint); }
.c-blue { --c: var(--blue); color: var(--blue); }
.c-lemon { --c: var(--lemon); color: var(--lemon); }
.c-lilac { --c: var(--lilac); color: var(--lilac); }
.c-ink { --c: var(--ink); color: var(--ink); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.4; }
a { color: var(--blue-ink); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
kbd { font-family: inherit; font-size: 12px; font-weight: 800; background: #fff; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid var(--ink); border-radius: 13px;
  background: #fff; color: var(--ink);
  font-weight: 800; font-size: 15.5px; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn--coral { background: var(--coral); }
.btn--mint { background: var(--mint); }
.btn--lemon { background: var(--lemon); }
.btn--blue { background: var(--blue-ink); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 4px 0 var(--coral); }
.btn--ink:hover { box-shadow: 0 5px 0 var(--coral); }
.btn--ink:active { box-shadow: 0 0 0 var(--coral); }
.btn--ghost { background: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 11px; }
.btn--block { width: 100%; }
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .6); color: inherit; cursor: pointer; }
.iconbtn:hover { background: #fff; color: var(--ink); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.25; }
.logo__word { font-family: var(--fun); font-weight: 700; font-size: 18px; }
.logo__sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.logo--light { color: #fff; }
.logo--light .logo__sub { color: #B9B6D3; }

/* ---------- menubar ---------- */
.menubar {
  position: sticky; top: 0; z-index: 120;
  background: rgba(245, 244, 250, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.menubar__in { max-width: 1440px; margin: 0 auto; height: var(--bar-h); padding: 0 16px; display: flex; align-items: center; gap: 18px; }
.menubar__nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menubar__nav a { display: block; padding: 6px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.menubar__nav a:hover { background: #fff; }
.menubar__nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.menubar__tray { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.menubar__tel { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--ink); text-decoration: none; }
.clock--bar { font-size: 14px; font-weight: 800; padding: 3px 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.menubar__menu { display: none; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
@media (max-width: 1279px) { .menubar__tel { display: none; } }
@media (max-width: 1023px) {
  .menubar__nav, .clock--bar { display: none; }
  .menubar__menu { display: inline-grid; }
  .menubar__in { gap: 10px; }
}
@media (max-width: 560px) {
  .logo__sub { display: none; }
  .menubar__cta { padding: 0 12px; font-size: 13.5px; min-height: 38px; }
}
@media (max-width: 359px) { .menubar__cta { display: none; } }

/* ---------- control center (mobile menu) ---------- */
.cc { position: fixed; inset: 0; z-index: 400; }
.cc__scrim { position: absolute; inset: 0; background: rgba(28, 26, 46, .42); opacity: 0; transition: opacity .25s; }
.cc__panel {
  position: absolute; top: 8px; inset-inline: 8px; max-height: calc(100% - 16px); overflow: auto;
  background: rgba(250, 249, 255, .97); border-radius: 26px; padding: 14px 16px 18px;
  box-shadow: var(--shadow-win);
  transform: translateY(-16px) scale(.98); opacity: 0; transition: transform .3s var(--ease-pop), opacity .2s;
}
.cc.is-open .cc__scrim { opacity: 1; }
.cc.is-open .cc__panel { transform: none; opacity: 1; }
.cc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cc__title { margin: 0; font-weight: 900; font-size: 17px; }
.cc__head .clock { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.cc__apps { list-style: none; margin: 0 0 12px; padding: 12px 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.cc__apps a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.cc__apps svg { width: 52px; height: 52px; }
.cc__links { list-style: none; margin: 0 0 12px; padding: 0; background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.cc__links a { display: block; padding: 12px 16px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.cc__links li + li { border-top: 1px solid var(--line); }
.cc__toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc__tg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 12.5px; }
.cc__tg--mint { background: var(--mint); box-shadow: none; }
.cc__tg--blue { background: var(--blue-ink); color: #fff; box-shadow: none; }
body.is-locked { overflow: hidden; }

/* =========================================================
   HERO — the desktop
   ========================================================= */
.desk {
  position: relative;
  background-color: var(--desk);
  background-image: radial-gradient(circle at 1px 1px, rgba(28, 26, 46, .14) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
  overflow: hidden;
}
.desk__wall { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.desk__seal { position: absolute; width: 560px; height: 560px; inset-inline-end: -90px; bottom: -150px; }
.desk__seal-txt { font-family: var(--fun); font-size: 19px; font-weight: 700; fill: #fff; opacity: .8; }
.sticky {
  position: absolute; inset-inline-start: 22px; bottom: 96px; z-index: 1;
  width: 196px; margin: 0; padding: 14px 16px 12px;
  background: #FFE680; color: var(--ink);
  font-family: var(--fun); font-size: 13px; line-height: 1.9; font-weight: 600;
  transform: rotate(-3deg);
  box-shadow: 0 14px 20px -12px rgba(28, 26, 46, .45);
  border-radius: 3px 3px 18px 3px;
}
.sticky span { display: block; font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--muted); }
.home-status { display: none; }

/* desktop icons */
.desk__icons { list-style: none; margin: 0; padding: 0; }
.dicon {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 94px; padding: 8px 4px 6px; border: 0; border-radius: 14px; background: transparent;
  color: var(--ink); text-decoration: none; text-align: center; cursor: pointer;
  font-size: 12.5px; font-weight: 800; line-height: 1.45;
  transition: background-color .15s;
}
.dicon svg { width: 54px; height: 54px; filter: drop-shadow(0 6px 6px rgba(44, 32, 110, .22)); transition: transform .25s var(--ease-pop); }
.dicon:hover { background: rgba(255, 255, 255, .45); }
.dicon:hover svg { transform: translateY(-3px); }
.dicon:active svg { transform: scale(.9); }
.dicon[aria-expanded="true"] { background: rgba(255, 255, 255, .6); }

/* ---------- windows ---------- */
.win {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-win);
  --dx: 0px; --dy: 0px; --s: 1; --my: 0px;
}
.win__bar {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 8px; flex: none;
  background: var(--app, var(--lilac)); border-radius: 16px 16px 0 0;
  user-select: none; -webkit-user-select: none;
}
.win__grip { flex: none; width: 30px; height: 30px; display: grid; place-content: center; gap: 3px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .4); cursor: grab; padding: 0; }
.win__grip i { display: block; width: 13px; height: 2px; border-radius: 2px; background: var(--ink); opacity: .75; }
.win__title {
  display: inline-flex; align-items: center; gap: 7px; margin: 0;
  padding-block: 5px; padding-inline: 8px 13px;
  background: #fff; color: var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 800; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(28, 26, 46, .12);
}
.win__title svg { width: 20px; height: 20px; flex: none; }
.win__ctrls { margin-inline-start: auto; display: flex; gap: 6px; }
.win__ctrls button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); color: var(--ink); cursor: pointer; transition: background-color .15s, color .15s; }
.win__ctrls button svg { width: 18px; height: 18px; }
.win__ctrls button:hover { background: #fff; }
.win__ctrls [data-close]:hover { background: var(--ink); color: #fff; }
.win__body { padding: 16px 18px 18px; }

/* welcome */
.welcome__hi { margin: 0 0 12px; padding: 8px 12px; background: var(--paper); border-radius: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.welcome h1 { margin: 0 0 12px; font-size: clamp(28px, 2.85vw, 42px); font-weight: 900; line-height: 1.38; }
.hl { background: linear-gradient(180deg, transparent 60%, rgba(255, 212, 59, .85) 60%, rgba(255, 212, 59, .85) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.welcome__lead { margin: 0 0 20px; font-size: 16.5px; color: var(--ink-2); max-width: 54ch; }
.welcome__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.welcome__stats { display: flex; margin: 22px 0 0; padding: 14px 0 0; list-style: none; border-top: 1.5px dashed var(--line-2); }
.welcome__stats li { flex: 1; display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.welcome__stats li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
.welcome__stats b { font-size: 22px; font-weight: 900; color: var(--ink); }

/* shared field atoms */
.field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend, .est__lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; padding: 0; font-size: 13.5px; font-weight: 800; }
.field small { font-weight: 500; color: var(--muted); }
.field input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), .field textarea, .select select {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff;
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 10px 14px; resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61, 123, 255, .2); }
.field [aria-invalid="true"] { border-color: var(--coral-ink) !important; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-inline-end: 38px; cursor: pointer; }
.select svg { position: absolute; inset-inline-end: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }
.err { margin: 6px 0 0; color: var(--coral-ink); font-size: 13px; font-weight: 700; }
::placeholder { color: #8C89A3; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input, .seg input, .tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; padding: 5px 13px; border: 1.5px solid var(--line-2); border-radius: 999px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s, transform .15s var(--ease-pop); }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; transform: scale(1.04); }
.chip input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* finder */
.finder__out { margin: 4px 0 14px; padding: 8px; min-height: 120px; background: var(--paper); border-radius: 12px; }
.finder__empty { margin: 0; padding: 18px 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.ffiles { list-style: none; margin: 0; padding: 0; }
.ffile { display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; align-items: center; padding: 6px 8px; border-radius: 10px; animation: file-in .4s var(--ease-pop) both; animation-delay: calc(var(--i, 0) * 70ms); }
.ffile:hover { background: #fff; }
.ffile svg { grid-row: span 2; width: 30px; height: 36px; }
.ffile b { font-size: 14px; font-weight: 900; line-height: 1.4; }
.ffile span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
@keyframes file-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

/* estimator */
.est__lbl output { color: var(--blue-ink); font-weight: 900; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: var(--desk); box-shadow: inset 0 0 0 1px var(--line); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: var(--desk); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.est__row { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { width: 38px; height: 38px; border: 0; background: var(--paper); font-size: 19px; font-weight: 800; cursor: pointer; }
.stepper button:hover { background: var(--desk); }
.stepper output { min-width: 36px; text-align: center; font-weight: 900; }
.seg { display: flex; gap: 3px; padding: 3px; background: var(--paper); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.seg label { position: relative; flex: 1; }
.seg span { display: block; padding: 6px 4px; border-radius: 9px; text-align: center; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.seg input:checked + span { background: #fff; box-shadow: 0 1px 0 var(--line-2), 0 0 0 1.5px var(--ink); }
.est__out { margin-top: 4px; padding: 12px 14px 10px; background: var(--ink); color: #fff; border-radius: 14px; }
.est__k { margin: 0; font-size: 12.5px; color: #C9C6DE; }
.est__v { margin: 0 0 8px; font-size: 26px; font-weight: 900; line-height: 1.4; color: var(--lemon); }
.est__v.is-tick { animation: tick .35s var(--ease-pop); }
@keyframes tick { 0% { transform: scale(.94); opacity: .5; } 100% { transform: none; opacity: 1; } }
.est__bar { display: flex; gap: 3px; height: 10px; }
.est__bar i { flex: 1; border-radius: 3px; transform-origin: right center; }
.est__bar i:nth-child(1) { background: var(--coral); }
.est__bar i:nth-child(2) { background: var(--lemon); }
.est__bar i:nth-child(3) { background: var(--mint); }
.est__bar i:nth-child(4) { background: var(--blue); }
.est__legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 11.5px; color: #C9C6DE; }

/* audit */
.audit__dots { display: flex; gap: 6px; margin-bottom: 12px; }
.audit__dots i { width: 28px; height: 6px; border-radius: 4px; background: var(--desk); transition: background-color .2s; }
.audit__dots i.is-yes { background: var(--mint); }
.audit__dots i.is-no { background: var(--coral); }
.audit__dots i.is-cur { background: var(--ink); }
.js .audit__qs { display: none; }
.audit__qs { margin: 0 0 12px; padding-inline-start: 20px; font-size: 14px; }
.audit__intro { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }
.audit__q { margin: 0 0 16px; font-size: 17px; font-weight: 800; line-height: 1.75; min-height: 3.5em; animation: file-in .35s var(--ease-pop) both; }
.audit__q:focus, .audit__score:focus, .is-sent-msg:focus, .win:focus, .istep h2:focus, .wz__h:focus { outline: none; }
.audit__n { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.audit__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.audit__score { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.audit__score b { font-size: 44px; font-weight: 900; line-height: 1.2; }
.meter { height: 12px; margin: 6px 0 14px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--mint); transform-origin: right center; transform: scaleX(0); transition: transform .9s var(--ease-out); }
.audit__verdict { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); }
.audit__acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat__log { list-style: none; margin: 0; padding: 4px 2px; display: flex; flex-direction: column; gap: 8px; max-height: 250px; overflow-y: auto; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.75; animation: msg-in .3s var(--ease-pop) both; }
.msg--in { align-self: flex-start; background: var(--paper); border-start-start-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--lemon); border-start-end-radius: 4px; font-weight: 700; }
.msg--typing { display: flex; gap: 4px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chat__quick button { padding: 5px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.chat__quick button:hover { background: var(--lemon); }
.chat__form { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; font-size: 15px; }
.chat__form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61, 123, 255, .2); }
.chat__form input[aria-invalid="true"] { border-color: var(--coral-ink); }
.chat__send { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--ink); color: #fff; cursor: pointer; }
.chat__send svg { transform: scaleX(-1); }
.chat__alt { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* trash */
.trash__files { list-style: none; margin: 0 0 10px; padding: 0; }
.trash__files li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; font-weight: 700; transition: transform .45s var(--ease-out), opacity .3s; transition-delay: calc(var(--i, 0) * 90ms); }
.trash__files svg { width: 20px; height: 24px; flex: none; }
.trash__files.is-gone li { transform: translateY(18px) scale(.5) rotate(-8deg); opacity: 0; }
.trash p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }

/* ---------- taskbar ---------- */
.taskbar { display: none; }
.ghost-cursor { display: none; }

/* ---------- DESKTOP MODE (≥1024px) ---------- */
@media (min-width: 1024px) {
  .desk { height: clamp(700px, calc(100vh - var(--bar-h)), 880px); z-index: 0; }
  .desk__icons { position: absolute; top: 18px; inset-inline-start: 14px; z-index: 2; display: grid; grid-template-columns: repeat(2, 94px); gap: 4px 6px; }
  .dicon span { text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }

  .win {
    position: absolute; z-index: 10;
    transform: translate3d(var(--dx), calc(var(--dy) + var(--my)), 0) scale(var(--s));
    transition: transform .42s var(--ease-pop), opacity .22s ease, visibility 0s 0s, box-shadow .2s;
  }
  .win__bar { cursor: grab; touch-action: none; }
  .win.is-dragging { transition: none; box-shadow: 0 0 0 1px rgba(28, 26, 46, .1), 0 34px 60px -18px rgba(44, 32, 110, .5); }
  .win.is-dragging .win__bar, .win.is-dragging .win__grip { cursor: grabbing; }
  .win:not(.is-active) { box-shadow: 0 0 0 1px rgba(28, 26, 46, .09), 0 12px 26px -14px rgba(44, 32, 110, .3); }
  .win:not(.is-active) .win__title { opacity: .82; }
  .win.is-closed, .win.is-min { opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s var(--ease-out), opacity .2s ease, visibility 0s .3s; }
  .win.is-closed { --s: .9; }
  .win.is-min { --s: .35; --my: 260px; }
  .no-anim, .no-anim * { transition: none !important; }
  .js-boot .win[data-boot] { opacity: 0; visibility: hidden; }

  .win__body { overflow: auto; }
  .win--welcome { inset-inline-start: 226px; top: 34px; width: min(560px, 44vw); }
  .win--finder { inset-inline-end: 3%; top: 24px; width: 360px; }
  .win--timer { inset-inline-end: 7%; bottom: 82px; width: 340px; }
  .win--audit { inset-inline-start: 34%; top: 70px; width: 380px; }
  .win--chat { inset-inline-end: 4%; bottom: 82px; width: 360px; }
  .win--trash { inset-inline-start: 140px; top: 250px; width: 340px; }

  .taskbar {
    position: absolute; inset-inline: 12px; bottom: 12px; z-index: 900;
    display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 8px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
    border-radius: 18px; box-shadow: var(--shadow-soft);
  }
  .tb-start { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 8px 14px; border: 0; border-radius: 13px; background: var(--ink); color: #fff; font-family: var(--fun); font-weight: 700; font-size: 14px; cursor: pointer; }
  .tb-start svg { width: 28px; height: 28px; }
  .tb-start[aria-expanded="true"] { background: var(--coral); color: var(--ink); }
  .tb-search { flex: 0 1 270px; display: flex; align-items: center; gap: 6px; height: 42px; padding-inline: 12px; background: #fff; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--line); }
  .tb-search:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
  .tb-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 14px; outline: none; }
  .tb-apps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
  .tb-app { position: relative; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 13px; background: transparent; cursor: pointer; transition: background-color .15s; }
  .tb-app svg { width: 34px; height: 34px; transition: transform .25s var(--ease-pop); }
  .tb-app:hover { background: rgba(255, 255, 255, .9); }
  .tb-app:hover svg { transform: translateY(-2px); }
  .tb-app::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 0; height: 4px; margin-left: -2px; border-radius: 3px; background: var(--ink); opacity: 0; transition: opacity .2s, transform .25s var(--ease-pop); }
  .tb-app.is-open::after { width: 4px; opacity: .45; }
  .tb-app[aria-pressed="true"]::after { width: 16px; margin-left: -8px; opacity: 1; }
  .tb-app.is-bounce svg { animation: tb-bounce .6s var(--ease-pop); }
  @keyframes tb-bounce { 0%, 100% { transform: none; } 40% { transform: translateY(-10px); } 70% { transform: translateY(1px); } }
  .tb-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
  .tb-app:hover .tb-tip, .tb-app:focus-visible .tb-tip { opacity: 1; transform: translate(-50%, 0); }
  .tb-tray { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
  .tb-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--ink); }
  .tb-ic:hover { background: #fff; }
  .clock--tb { display: flex; flex-direction: column; align-items: flex-end; padding-inline: 8px 6px; line-height: 1.3; font-weight: 800; font-size: 14.5px; }
  .clock--tb [data-clock-date] { font-size: 11.5px; font-weight: 600; color: var(--muted); }

  .startmenu {
    position: absolute; bottom: 68px; inset-inline-start: 0; width: 360px; padding: 16px;
    background: rgba(255, 255, 255, .97); border-radius: 20px; box-shadow: var(--shadow-win);
    transform-origin: bottom right; animation: menu-in .25s var(--ease-pop);
  }
  @keyframes menu-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
  .startmenu__h { margin: 0 0 10px; font-family: var(--fun); font-weight: 700; font-size: 16px; }
  .startmenu__pins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .startmenu__pins a { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 800; line-height: 1.5; }
  .startmenu__pins a:hover, .startmenu__list a:hover { background: var(--paper); }
  .startmenu__pins svg { width: 34px; height: 34px; flex: none; }
  .startmenu__sub { margin: 12px 0 4px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
  .startmenu__list { list-style: none; margin: 0; padding: 0; }
  .startmenu__list a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
  .startmenu__foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

  .ghost-cursor { display: block; position: absolute; top: 0; left: 0; z-index: 950; pointer-events: none; opacity: 0; filter: drop-shadow(0 4px 4px rgba(28, 26, 46, .3)); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .win--finder { width: 330px; inset-inline-end: 2%; }
  .win--timer { width: 320px; inset-inline-end: 2%; }
  .tb-search { display: none; }
  .sticky { display: none; }
}
@media (min-width: 1600px) {
  .win--welcome { inset-inline-start: 260px; }
  .win--timer { inset-inline-end: 24%; }
}

/* ---------- PHONE MODE (<1024px) ---------- */
@media (max-width: 1023px) {
  .desk { padding: 18px 16px 30px; }
  .desk__seal { width: 360px; height: 360px; inset-inline-end: -150px; top: 30px; bottom: auto; opacity: .6; }
  .sticky { display: none; }
  .home-status { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin: 0 0 16px; color: var(--ink); line-height: 1.3; }
  .home-status [data-clock-date] { font-size: 13.5px; font-weight: 700; }
  .home-status__t { font-size: 52px; font-weight: 900; letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .win { position: relative; z-index: 1; }
  .win--welcome { margin: 0 auto 22px; max-width: 640px; border-radius: 22px; }
  .win--welcome .win__bar { border-radius: 22px 22px 0 0; }
  .win--welcome .win__grip, .win--welcome .win__ctrls { display: none; }
  .desk__icons { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; max-width: 640px; margin: 0 auto; }
  .dicon { width: 100%; font-size: 12px; }
  .dicon svg { width: 58px; height: 58px; }
  .win:not(.win--welcome) { display: none; }
  .win.is-sheet {
    display: flex; position: fixed; inset: 10px 0 0 0; z-index: 300;
    border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(28, 26, 46, .3);
    transform: translateY(102%); transition: transform .38s var(--ease-out);
  }
  .win.is-sheet.is-in { transform: none; }
  .win.is-sheet .win__bar { height: 56px; border-radius: 24px 24px 0 0; padding: 0 12px; }
  .win.is-sheet .win__bar::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(28, 26, 46, .35); }
  .win.is-sheet .win__grip, .win.is-sheet [data-min] { display: none; }
  .win.is-sheet .win__ctrls button { width: 38px; height: 38px; }
  .win.is-sheet .win__body { flex: 1; overflow-y: auto; padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .win.is-sheet .chat__log { max-height: none; flex: 1; }
  .win.is-sheet .chat { min-height: 100%; }
  .sheet-scrim { position: fixed; inset: 0; z-index: 290; background: rgba(28, 26, 46, .45); opacity: 0; transition: opacity .3s; }
  .sheet-scrim.is-in { opacity: 1; }
}
@media (max-width: 380px) {
  .desk__icons { grid-template-columns: repeat(3, 1fr); }
  .welcome__stats b { font-size: 18px; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec__head { max-width: 700px; margin-bottom: 32px; }
.sec__head h2 { margin: 0 0 10px; font-size: clamp(26px, 3.3vw, 40px); font-weight: 900; }
.sec__head p { margin: 0; font-size: 17px; color: var(--ink-2); }
.path { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 2px 10px; background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.path span { opacity: .6; }
.sec__more { margin: 28px 0 0; text-align: center; }

/* ---------- folders ---------- */
.sec--folders { background: var(--paper); }
.bundle {
  position: relative; display: grid; grid-template-columns: 108px 1fr auto; align-items: center; gap: 24px;
  margin-bottom: 36px; padding: 24px 26px; border-radius: 22px;
  background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 22px 40px -22px rgba(28, 26, 46, .7);
}
.bundle__zip svg { width: 104px; height: 104px; transition: transform .45s var(--ease-pop); }
.bundle:hover .bundle__zip svg { transform: rotate(-8deg) scale(1.05); }
.bundle__txt { display: flex; flex-direction: column; gap: 4px; }
.bundle__name { font-size: 13px; font-weight: 800; color: var(--lemon); }
.bundle__h { font-size: clamp(19px, 2vw, 24px); font-weight: 900; line-height: 1.5; }
.bundle__p { font-size: 15px; color: #D4D1E6; max-width: 60ch; }
.bundle__files { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bundle__files li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; font-size: 11.5px; font-weight: 700; color: #E9E7F5; text-align: center; line-height: 1.4; transition: transform .4s var(--ease-pop); }
.bundle__files svg { width: 34px; height: 40px; }
.bundle:hover .bundle__files li { transform: translateY(-6px); }
.bundle:hover .bundle__files li:nth-child(2) { transition-delay: .04s; }
.bundle:hover .bundle__files li:nth-child(3) { transition-delay: .08s; }
.bundle:hover .bundle__files li:nth-child(4) { transition-delay: .12s; }
.bundle:hover .bundle__files li:nth-child(5) { transition-delay: .16s; }
.bundle__go { position: absolute; top: -14px; inset-inline-end: 26px; padding: 3px 14px; border-radius: 999px; background: var(--lemon); color: var(--ink); font-size: 13px; font-weight: 900; box-shadow: 0 3px 0 var(--ink); }

.folders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 14px; }
.folder { display: flex; flex-direction: column; align-items: center; padding: 18px 10px 16px; border-radius: 18px; color: var(--ink); text-align: center; text-decoration: none; transition: background-color .2s; }
.folder:hover, .folder:focus-visible { background: #fff; }
.folder__art { position: relative; width: 124px; height: 100px; color: var(--c); perspective: 400px; }
.folder__art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.folder__art::before { content: ""; position: absolute; inset: 4px 0 0; border-radius: 10px; background: currentColor; filter: brightness(.82); clip-path: polygon(0 10%, 4% 0, 36% 0, 44% 10%, 100% 10%, 100% 100%, 0 100%); }
.folder__sheet {
  position: absolute; inset-inline: 14px; top: 14px; height: 60px; padding: 5px 9px;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 6px;
  font-size: 11.5px; font-weight: 800; line-height: 1.3; text-align: start;
  transform: rotate(-5deg); transition: transform .4s var(--ease-pop);
}
.folder__sheet + .folder__sheet { transform: rotate(3deg) translateY(4px); inset-inline: 20px 10px; }
.folder__art > svg { top: 40px; height: 60px; transform-origin: bottom center; transition: transform .4s var(--ease-pop); }
.folder:hover .folder__sheet, .folder:focus-visible .folder__sheet { transform: rotate(-9deg) translateY(-14px); }
.folder:hover .folder__sheet + .folder__sheet, .folder:focus-visible .folder__sheet + .folder__sheet { transform: rotate(6deg) translateY(-8px); }
.folder:hover .folder__art > svg, .folder:focus-visible .folder__art > svg { transform: rotateX(-24deg); }
.folder__name { margin-top: 12px; font-size: 17px; font-weight: 900; line-height: 1.5; }
.folder__meta { margin-top: 2px; max-width: 28ch; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
@media (max-width: 900px) { .folders { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .bundle { grid-template-columns: 72px 1fr; padding: 22px 18px 18px; gap: 14px; }
  .bundle__zip svg { width: 72px; height: 72px; }
  .bundle__files { grid-column: 1 / -1; justify-content: space-between; gap: 4px; }
}
@media (max-width: 420px) {
  .folder { padding: 14px 4px; }
  .folder__art { width: 104px; height: 86px; }
  .folder__art > svg { top: 34px; height: 52px; }
  .folder__meta { font-size: 12.5px; }
}

/* ---------- process (copy dialog) ---------- */
.sec--process { background: #fff; }
.pwin { background: #fff; border-radius: 22px; box-shadow: var(--shadow-win); overflow: clip; }
.pwin__bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; background: var(--app); }
.pwin__route { font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); }
.pwin__body { padding: clamp(22px, 4vw, 44px); }
.pwin__head { max-width: 720px; }
.pwin__head h2 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 38px); font-weight: 900; }
.pwin__head p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.pbar { position: relative; height: 16px; margin: 28px 0 30px; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); overflow: hidden; }
.pbar i { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, var(--blue) 0 10px, #7CA4FF 10px 20px); transform-origin: right center; transform: scaleX(.02); transition: transform 2.6s cubic-bezier(.35, .1, .2, 1); }
.pwin.is-run .pbar i { transform: scaleX(1); }
.js .pwin:not(.is-run) .steps li { opacity: .55; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.steps li { transition: opacity .4s; transition-delay: calc(var(--i, 0) * 380ms); }
.steps__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font-weight: 900; font-size: 16px; transition: background-color .3s, transform .4s var(--ease-pop); transition-delay: inherit; }
.pwin.is-run .steps__n { background: var(--lemon); transform: rotate(-6deg); }
.steps h3 { margin: 12px 0 0; font-size: 17px; font-weight: 900; }
.steps__t { margin: 0; font-size: 13px; font-weight: 800; color: var(--blue-ink); }
.steps p:last-child { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.pwin__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 18px; border-top: 1.5px dashed var(--line-2); }
.pwin__foot p { margin: 0; font-size: 15px; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .pwin__route { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
  .steps__n { grid-row: span 3; }
  .steps h3 { margin: 0; }
}

/* ---------- trust ---------- */
.sec--trust { background: var(--paper); }
.trust { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.about { background: #fff; border-radius: 22px; box-shadow: var(--shadow-win); overflow: clip; }
.about__bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.about__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); }
.about__bar span:nth-child(2) { background: var(--lemon); }
.about__bar span:nth-child(3) { background: var(--mint); margin-inline-end: 8px; }
.about__body { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 28px; align-items: start; }
.about__cert { margin: 0; transform: rotate(-3deg); }
.about__cert svg { width: 100%; height: auto; filter: drop-shadow(0 14px 16px rgba(44, 32, 110, .22)); }
.about__txt h2 { margin: 0 0 12px; font-size: clamp(23px, 2.5vw, 30px); font-weight: 900; }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.spec dt { font-size: 13.5px; font-weight: 800; color: var(--muted); }
.spec dd { margin: 0; font-size: 15px; }
.sysstats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.sysstats li { padding: 8px 14px; border-radius: 12px; background: var(--paper); font-size: 13px; color: var(--muted); font-weight: 700; }
.sysstats b { display: block; font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.settings { padding: 24px; border-radius: 22px; background: var(--ink); color: #fff; }
.settings__h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; font-weight: 900; }
.settings__h svg { color: var(--mint); }
.settings__p { margin: 4px 0 0; font-size: 13.5px; color: #C9C6DE; }
.toggles { list-style: none; margin: 14px 0 0; padding: 0; }
.toggles li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; line-height: 1.7; }
.toggles li:last-child { border-bottom: 0; }
.toggles small { grid-column: 1; font-size: 12px; font-weight: 800; color: #FF9B8C; }
.tg { position: relative; width: 46px; height: 27px; border-radius: 14px; background: rgba(255, 255, 255, .22); }
.tg::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.tg.is-on { background: var(--mint); }
.tg.is-on::after { inset-inline-start: auto; inset-inline-end: 3px; }
@media (max-width: 1023px) { .trust { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .about__body { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .about__cert { max-width: 220px; }
  .spec div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- industries (app drawer) ---------- */
.sec--apps {
  background-color: var(--desk);
  background-image: radial-gradient(circle at 1px 1px, rgba(28, 26, 46, .12) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
}
.drawer { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dapp { display: flex; flex-direction: column; align-items: center; padding: 16px 8px 14px; border-radius: 20px; text-align: center; text-decoration: none; transition: background-color .2s; }
.dapp, .dapp:visited { color: var(--ink); }
.dapp:hover, .dapp:focus-visible { background: rgba(255, 255, 255, .55); }
.dapp__ic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 32%; background: var(--c); color: var(--ink); box-shadow: inset 0 -4px 0 rgba(28, 26, 46, .14), 0 10px 18px -10px rgba(28, 26, 46, .55); transition: transform .3s var(--ease-pop); }
.dapp__ic svg { width: 36px; height: 36px; }
.dapp:hover .dapp__ic { transform: translateY(-5px) rotate(-4deg); }
.dapp__n { margin-top: 10px; font-size: 15px; font-weight: 900; line-height: 1.5; }
.dapp__s { margin-top: 2px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 1023px) { .drawer { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .drawer { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* ---------- docs (articles) ---------- */
.sec--docs { background: #fff; }
.docs { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.doc { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 18px; padding: 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.doc:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.doc--lead { grid-row: span 3; grid-template-columns: 1fr; align-content: start; background: var(--paper); box-shadow: none; }
.doc__thumb { position: relative; width: 78px; height: 96px; padding: 8px 9px; background: #fff; border: 2px solid var(--ink); border-radius: 8px; color: var(--ink); }
.doc__thumb::before { content: ""; position: absolute; top: -2px; inset-inline-end: -2px; width: 22px; height: 22px; background: linear-gradient(135deg, #fff 50%, var(--c) 50%); border-bottom-left-radius: 5px; border-inline-start: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.doc--lead .doc__thumb::before { background: linear-gradient(135deg, var(--paper) 50%, var(--c) 50%); }
.doc__thumb i { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: var(--ink); opacity: .14; }
.doc__thumb i:nth-of-type(2n) { width: 70%; }
.doc__ext { display: inline-block; padding: 1px 6px; border-radius: 5px; background: var(--c); font-size: 10.5px; font-weight: 900; color: var(--ink); line-height: 1.6; }
.doc--lead .doc__thumb { width: 100%; height: 220px; padding: 20px 22px; transform: rotate(-1.2deg); box-shadow: 0 18px 30px -18px rgba(28, 26, 46, .5); }
.doc--lead .doc__thumb::before { width: 40px; height: 40px; }
.doc--lead .doc__thumb i { height: 9px; margin-top: 14px; }
.doc--lead .doc__ext { font-size: 13px; padding: 2px 10px; }
.doc__meta { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.doc__meta span { color: var(--coral-ink); }
.doc h3 { margin: 2px 0 6px; font-size: 17.5px; font-weight: 900; line-height: 1.65; }
.doc--lead h3 { font-size: clamp(20px, 2vw, 24px); }
.doc h3 a { color: var(--ink); text-decoration: none; }
.doc h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.doc h3 a:focus-visible { outline: none; }
.doc:focus-within { box-shadow: inset 0 0 0 3px var(--blue); }
.doc p:last-child { margin: 0; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .doc--lead { grid-row: auto; } .doc--lead .doc__thumb { height: 150px; } }

/* ---------- FAQ (help window) ---------- */
.sec--faq { background: var(--paper); }
.help { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-win); overflow: clip; }
.help__bar, .compose__bar, .notes__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 48px; padding: 0 12px; background: var(--app, var(--lemon)); }
.help__body { padding: clamp(20px, 4vw, 38px); }
.help__body h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.faq details { border-bottom: 1.5px dashed var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; font-size: 16.5px; font-weight: 800; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--paper); font-size: 20px; font-weight: 700; line-height: 1; transition: transform .25s var(--ease-pop), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--mint); }
.faq summary:hover::after { background: var(--desk); }
.faq details p { margin: 0 0 18px; font-size: 15.5px; color: var(--ink-2); max-width: 70ch; }

/* ---------- contact (compose window) ---------- */
.sec--contact {
  background-color: var(--desk);
  background-image: radial-gradient(circle at 1px 1px, rgba(28, 26, 46, .12) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
}
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.compose { background: #fff; border-radius: 22px; box-shadow: var(--shadow-win); overflow: clip; }
.compose__body { padding: clamp(20px, 3.4vw, 34px); }
.compose__body h2 { margin: 0 0 6px; font-size: clamp(23px, 2.6vw, 30px); font-weight: 900; }
.compose__to { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.compose__to span { color: var(--muted); }
.compose__to small { margin-inline-start: auto; padding: 1px 10px; border-radius: 999px; background: #DDF4E8; color: var(--mint-ink); font-size: 12px; font-weight: 800; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.compose__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.compose__send p { margin: 0; font-size: 13px; color: var(--muted); }
.vcard { padding: 22px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.vcard__file { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; font-weight: 800; color: var(--muted); }
.vcard__file svg { width: 22px; height: 26px; }
.vcard h3 { margin: 0 0 8px; font-size: 19px; font-weight: 900; }
.vcard ul { list-style: none; margin: 0; padding: 0; }
.vcard li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: 14.5px; font-weight: 600; }
.vcard li:last-child { border-bottom: 0; }
.vcard li svg { flex: none; color: var(--blue-ink); }
.vcard a { color: var(--ink); font-weight: 800; text-decoration: none; }
.vcard a:hover { text-decoration: underline; }
.vcard--route p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-2); }
.vcard__big { width: 64px; height: 64px; margin-bottom: 8px; }
.is-sent-msg { padding: 28px 8px; text-align: center; }
.is-sent-msg svg { width: 64px; height: 64px; color: var(--mint); }
.is-sent-msg h3 { margin: 8px 0 4px; font-size: 21px; font-weight: 900; }
.is-sent-msg p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #E9E7F5; padding: 56px 0 0; }
.foot__in { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot__brand p { margin: 14px 0; font-size: 14.5px; color: #C9C6DE; max-width: 40ch; }
.foot__contact { list-style: none; margin: 0; padding: 0; }
.foot__contact li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0; font-size: 14px; }
.foot__contact svg { color: var(--lemon); flex: none; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--lemon); }
.foot__h { margin: 0 0 12px; font-size: 15px; font-weight: 900; color: #fff; }
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col li { margin: 5px 0; }
.foot__col a { color: #C9C6DE; font-size: 14px; }
.foot__bar { max-width: 1200px; margin: 40px auto 0; padding: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #A8A4C4; }
.foot__bar p { margin: 0; }
.foot__ver span { color: var(--mint); }
@media (max-width: 1023px) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot__in { grid-template-columns: 1fr; } .foot { padding-bottom: 76px; } }

/* ---------- floating contact + toasts ---------- */
.fab { position: fixed; bottom: 14px; inset-inline-end: 14px; z-index: 150; display: flex; gap: 8px; transition: opacity .25s, transform .3s var(--ease-out); }
.fab.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.fab__btn { display: inline-flex; align-items: center; gap: 6px; height: 50px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 10px 22px -8px rgba(28, 26, 46, .55); }
.fab__btn--wa { background: var(--mint); color: var(--ink); }
.fab__btn--call { background: var(--ink); color: #fff; }
@media (min-width: 1024px) {
  .fab { bottom: 24px; inset-inline-end: 24px; }
  .fab__btn--call { display: none; }
}
@media (max-width: 560px) { .page-start .fab { bottom: 86px; } }
body.is-locked .fab { opacity: 0; pointer-events: none; }

.toasts { position: fixed; z-index: 500; bottom: 90px; inset-inline-end: 18px; display: flex; flex-direction: column; gap: 10px; width: min(370px, calc(100vw - 28px)); pointer-events: none; }
.toast {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: start;
  padding: 12px 12px 12px 14px; border-radius: 18px; pointer-events: auto;
  background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-win);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: toast-in .45s var(--ease-pop) both;
}
.toast.is-out { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(-30px); } }
.toast__ic { width: 42px; height: 42px; }
.toast__app { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.toast__t { margin: 0; font-size: 14.5px; font-weight: 900; line-height: 1.6; }
.toast__b { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.toast__act { margin-top: 8px; }
.toast__x { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--paper); cursor: pointer; }
@media (max-width: 1023px) {
  .toasts { top: 10px; bottom: auto; inset-inline: 10px; width: auto; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(-24px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* =========================================================
   SERVICES — File Explorer
   ========================================================= */
.xpage { max-width: 1440px; margin: 0 auto; padding: 14px 16px 56px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); font-weight: 700; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; opacity: .6; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.xwin { display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--shadow-win); overflow: clip; }
.xwin__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; padding: 0 12px; background: var(--blue); }
.xwin__hint { padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .78); font-size: 12.5px; font-weight: 800; }
.xwin__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.addr, .xsearch { display: flex; align-items: center; gap: 6px; height: 42px; margin: 0; padding: 0 12px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 700; }
.addr { flex: 1 1 240px; color: var(--muted); }
.addr b { color: var(--ink); }
.addr__sep { opacity: .5; }
.xsearch { flex: 1 1 300px; }
.xsearch:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.xsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 15px; font-weight: 500; }
.views { display: flex; gap: 2px; padding: 3px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.views button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.views button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.xwin__body { display: grid; grid-template-columns: 252px minmax(0, 1fr) 300px; min-height: 640px; }
.xside { padding: 12px 10px; background: var(--paper-2); border-inline-end: 1px solid var(--line); }
.xside__h { margin: 0 8px 4px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.xside ul { list-style: none; margin: 0; padding: 0; }
.fx-folder { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: start; font-size: 14px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.fx-folder svg { flex: none; }
.fx-folder:hover { background: var(--paper); }
.fx-folder[aria-pressed="true"] { background: var(--desk); }
.fx-folder__n { margin-inline-start: auto; padding: 0 8px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--muted); }
.fx-folder__star { color: #E8B400; }
.xside__bundle { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--ink); color: #D4D1E6; font-size: 12px; line-height: 1.6; text-decoration: none; }
.xside__bundle svg { width: 42px; height: 42px; }
.xside__bundle b { display: block; color: var(--lemon); font-size: 12.5px; }
.xmain { padding: 18px 22px 30px; min-width: 0; }
.xmain__head h1 { margin: 0 0 4px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; }
.xmain__head p { margin: 0 0 14px; font-size: 15.5px; color: var(--ink-2); max-width: 72ch; }
.fx-cols, .fx-item { display: grid; grid-template-columns: 40px minmax(170px, 1.05fr) minmax(0, 2fr) 104px; column-gap: 14px; align-items: center; }
.fx-cols { position: sticky; top: var(--bar-h); z-index: 2; padding: 6px 10px; background: #fff; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--muted); }
.fx-cols span:first-child { grid-column: 1 / 3; }
.fx-group { margin-top: 16px; }
.fx-group__h { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 4px; font-size: 15.5px; font-weight: 900; scroll-margin-top: 120px; }
.fx-group__n { font-size: 12px; font-weight: 700; color: var(--muted); }
.fx-list { list-style: none; margin: 0; padding: 0; }
.fx-row { scroll-margin-top: 130px; }
.fx-item { position: relative; width: 100%; padding: 7px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); text-align: start; cursor: pointer; transition: background-color .12s; }
.fx-row:nth-child(even) .fx-item { background: var(--paper-2); }
.fx-item:hover, .fx-row:nth-child(even) .fx-item:hover { background: var(--paper); }
.fx-item[aria-pressed="true"], .fx-row:nth-child(even) .fx-item[aria-pressed="true"] { background: #E6EDFF; box-shadow: inset 0 0 0 2px var(--blue); }
.fx-file { position: relative; display: block; width: 34px; height: 40px; }
.fx-file > svg:first-child { width: 100%; height: 100%; }
.fx-tag { position: absolute; bottom: 5px; inset-inline: 2px; padding: 0 1px; border-radius: 3px; background: var(--c); color: var(--ink); font-size: 8.5px; font-weight: 900; line-height: 1.6; text-align: center; direction: ltr; overflow: hidden; white-space: nowrap; }
.fx-glyph { position: absolute; top: 15px; left: 50%; width: 18px; height: 18px; margin-left: -9px; color: var(--ink); }
.fx-name { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.fx-code { font-size: 14.5px; font-weight: 900; }
.fx-fa { font-size: 13px; color: var(--ink-2); }
.fx-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-time { font-size: 13px; font-weight: 700; color: var(--muted); }
.fx-star { position: absolute; top: 4px; inset-inline-start: 4px; color: #E8B400; }
.fx-row.is-hit .fx-item { animation: hit 1.2s ease; }
@keyframes hit { 0%, 60% { box-shadow: inset 0 0 0 3px var(--lemon); } 100% { box-shadow: none; } }
[data-view-mode="grid"] .fx-cols { display: none; }
[data-view-mode="grid"] .fx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; }
[data-view-mode="grid"] .fx-item { grid-template-columns: 1fr; justify-items: center; row-gap: 6px; padding: 14px 6px 10px; text-align: center; }
[data-view-mode="grid"] .fx-row:nth-child(even) .fx-item { background: transparent; }
[data-view-mode="grid"] .fx-file { width: 50px; height: 60px; }
[data-view-mode="grid"] .fx-tag { font-size: 11px; bottom: 8px; }
[data-view-mode="grid"] .fx-glyph { top: 22px; width: 24px; height: 24px; margin-left: -12px; }
[data-view-mode="grid"] .fx-desc, [data-view-mode="grid"] .fx-time { display: none; }
[data-view-mode="grid"] .fx-name { align-items: center; }
.fx-empty { padding: 40px 16px; text-align: center; }
.fx-empty svg { width: 72px; height: 72px; margin: 0 auto 8px; }
.fx-empty p { max-width: 46ch; margin: 0 auto 16px; color: var(--ink-2); }
.xdetails { padding: 18px; background: var(--paper-2); border-inline-start: 1px solid var(--line); }
.xdetails__in { position: sticky; top: calc(var(--bar-h) + 16px); }
.xdetails__close { display: none; }
.xdetails__art { display: grid; place-items: center; margin: 6px 0 12px; }
.xdetails__art > svg { width: 92px; height: 76px; }
.xd-file { position: relative; width: 72px; height: 86px; margin: 4px auto 14px; animation: file-in .4s var(--ease-pop); }
.xd-file > svg { width: 100%; height: 100%; }
.xd-file .fx-tag { font-size: 13px; bottom: 10px; inset-inline: 4px; }
.xd-file .fx-glyph { top: 30px; width: 30px; height: 30px; margin-left: -15px; }
.xdetails__h { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.5; text-align: center; }
.xd-fa { margin: 0 0 10px; text-align: center; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.xd-cat { display: table; margin: 0 auto 14px; padding: 1px 12px; border-radius: 999px; background: var(--c); color: var(--ink); font-size: 12.5px; font-weight: 800; }
.xdetails__p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); }
.xdetails__tip { font-size: 13px; color: var(--muted); }
.xd-dl { margin: 0 0 16px; }
.xd-dl div { padding: 8px 0; border-top: 1px dashed var(--line-2); }
.xd-dl dt { font-size: 12px; font-weight: 800; color: var(--muted); }
.xd-dl dd { margin: 0; font-size: 14.5px; font-weight: 700; }
.xd-acts { display: grid; gap: 8px; }
.xwin__status { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; background: var(--paper); border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.xcta { display: flex; align-items: center; gap: 20px; margin-top: 28px; padding: 24px 26px; border-radius: 22px; background: var(--ink); color: #fff; }
.xcta > svg { width: 64px; height: 64px; flex: none; }
.xcta h2 { margin: 0 0 2px; font-size: 22px; font-weight: 900; }
.xcta p { margin: 0; color: #C9C6DE; font-size: 15px; }
.xcta .btn { margin-inline-start: auto; }
@media (max-width: 1279px) { .xwin__body { grid-template-columns: 220px minmax(0, 1fr) 270px; } .fx-cols, .fx-item { grid-template-columns: 40px minmax(150px, 1fr) minmax(0, 1.6fr) 92px; } }
@media (max-width: 1023px) {
  .xwin__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .xside { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 10px 0 10px; }
  .xside__h, .xside__bundle { display: none; }
  .xside ul { display: flex; gap: 6px; overflow-x: auto; padding: 2px 12px 6px; scrollbar-width: thin; }
  .fx-folder { width: auto; white-space: nowrap; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
  .xmain { padding: 16px 12px 24px; }
  .fx-cols { display: none; }
  .fx-item { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .fx-desc { display: none; }
  .fx-time { font-size: 12px; }
  .xdetails {
    position: fixed; inset: auto 0 0 0; z-index: 300; max-height: 86vh; overflow-y: auto;
    border-inline-start: 0; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(28, 26, 46, .3);
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform .35s var(--ease-out); visibility: hidden;
  }
  .xdetails.is-open { transform: none; visibility: visible; }
  .xdetails__in { position: static; }
  .xdetails__close { display: grid; position: absolute; top: 12px; inset-inline-end: 12px; background: var(--paper); }
  .xcta { flex-direction: column; align-items: flex-start; }
  .xcta .btn { margin-inline-start: 0; }
}
@media (max-width: 560px) { .xwin__tools .addr { display: none; } .xwin__hint { display: none; } }

/* =========================================================
   ISO 9001 — Installer
   ========================================================= */
.isopage > .crumbs { max-width: 1200px; margin: 14px auto 0; padding: 0 16px; }
.inst { max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-win); overflow: clip; }
@media (max-width: 1232px) { .inst { margin-inline: 16px; } }
.inst__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 48px; padding: 0 12px; background: var(--blue); }
.inst__ver { padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 12.5px; font-weight: 800; }
.inst__body { display: grid; grid-template-columns: 380px minmax(0, 1fr); }
.inst__side {
  padding: 28px 26px; border-inline-end: 1px solid var(--line);
  background-color: var(--desk);
  background-image: radial-gradient(circle at 1px 1px, rgba(28, 26, 46, .12) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
}
.inst__art { position: relative; width: 110px; height: 110px; margin-bottom: 10px; }
.inst__box { width: 110px; height: 110px; animation: float 4.5s ease-in-out infinite; filter: drop-shadow(0 14px 12px rgba(44, 32, 110, .25)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.inst__spark { position: absolute; width: 10px; height: 10px; background: var(--lemon); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.4s ease-in-out infinite; }
.inst__spark:nth-of-type(1) { top: 4px; inset-inline-start: 110px; }
.inst__spark:nth-of-type(2) { top: 50px; inset-inline-start: 124px; width: 14px; height: 14px; animation-delay: .8s; background: var(--coral); }
.inst__spark:nth-of-type(3) { top: 86px; inset-inline-start: 100px; animation-delay: 1.5s; background: #fff; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }
.inst__side h1 { margin: 0 0 10px; font-size: clamp(26px, 2.8vw, 36px); font-weight: 900; line-height: 1.4; }
.inst__lead { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.inst__facts { list-style: none; margin: 14px 0; padding: 0; }
.inst__facts li { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; font-weight: 800; }
.inst__facts svg { color: var(--blue-ink); flex: none; }
.inst__steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: s; }
.inst__steps li { counter-increment: s; }
.inst__steps button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); text-align: start; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.inst__steps button::before { content: counter(s, persian); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink); background: #fff; font-size: 12.5px; font-weight: 900; transition: background-color .2s, transform .3s var(--ease-pop); }
.inst__steps button:hover { background: rgba(255, 255, 255, .55); }
.inst__steps .is-done button::before { content: "✓"; background: var(--mint); }
.inst__steps .is-cur button { background: #fff; font-weight: 900; box-shadow: 0 1px 0 var(--line-2); }
.inst__steps .is-cur button::before { background: var(--lemon); transform: rotate(-8deg); }
.inst__main { display: flex; flex-direction: column; padding: 24px 28px; min-width: 0; }
.inst__prog { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.inst__pt, .inst__pct { margin: 0; font-size: 14px; font-weight: 900; }
.inst__pct { color: var(--blue-ink); min-width: 3ch; }
.inst__track { position: relative; height: 14px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); overflow: hidden; }
.inst__track i { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, var(--blue) 0 10px, #7CA4FF 10px 20px); transform-origin: right center; transform: scaleX(var(--p, .11)); transition: transform .6s var(--ease-out); }
.inst__panels { flex: 1; margin-top: 22px; }
.js .istep { display: none; }
.js .istep.is-cur { display: block; animation: step-next .4s var(--ease-out) both; }
.js .istep.is-cur.from-prev { animation-name: step-prev; }
@keyframes step-next { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes step-prev { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.istep + .istep { margin-top: 34px; }
.js .istep + .istep { margin-top: 0; }
.istep__k { display: inline-block; margin: 0 0 8px; padding: 1px 12px; border-radius: 999px; background: #E6EDFF; color: var(--blue-ink); font-size: 12.5px; font-weight: 900; }
.istep h2 { margin: 0 0 10px; font-size: clamp(21px, 2.3vw, 28px); font-weight: 900; }
.istep > p { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 64ch; }
.istep__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 0; }
.istep__meta div { padding: 12px 14px; border-radius: 14px; background: var(--paper); }
.istep__meta dt { font-size: 12px; font-weight: 800; color: var(--muted); }
.istep__meta dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.istep__done { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 16px 6px 12px; border-radius: 999px; background: var(--mint); font-weight: 900; animation: pop-in .5s var(--ease-pop) both .2s; }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.inst__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1.5px dashed var(--line-2); }
.inst__skip { font-size: 14px; font-weight: 800; color: var(--blue-ink); }
.inst__btns { display: flex; gap: 10px; }
.inst__btns [disabled] { opacity: .4; pointer-events: none; }
html:not(.js) .inst__foot, html:not(.js) .inst__prog { display: none; }
@media (max-width: 1023px) {
  .inst__body { grid-template-columns: minmax(0, 1fr); }
  .inst__side { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 22px 18px; }
  .inst__art { display: none; }
  .inst__steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-inline: -4px; }
  .inst__steps li { flex: none; }
  .inst__steps button { white-space: nowrap; background: rgba(255, 255, 255, .6); }
  .inst__main { padding: 20px 18px; }
}
@media (max-width: 640px) {
  .inst__ver { display: none; }
  .istep__meta { grid-template-columns: 1fr; }
  .inst__prog { grid-template-columns: 1fr auto; }
  .inst__track { grid-column: 1 / -1; grid-row: 2; }
}

.isosec { background: #fff; }
.isosec--tint { background: var(--paper); }
.readme { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: start; }
.readme__doc { padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.readme__file { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 2px 10px; border-radius: 8px; background: var(--paper); font-size: 13px; font-weight: 800; color: var(--muted); }
.readme__doc h2 { margin: 0 0 10px; font-size: clamp(25px, 3vw, 36px); font-weight: 900; }
.readme__doc p { margin: 0 0 12px; font-size: 16.5px; line-height: 2; }
.principles { padding: 24px; border-radius: 20px; background: var(--desk); }
.principles h3 { margin: 0 0 12px; font-size: 19px; font-weight: 900; }
.principles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.principles li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 13px; background: #fff; font-size: 15px; font-weight: 800; }
.principles svg { width: 28px; height: 28px; flex: none; color: var(--blue-ink); }
.tree { display: grid; grid-template-columns: 250px minmax(0, 1fr); background: #fff; border-radius: 20px; box-shadow: var(--shadow-soft); overflow: clip; }
.tree__nav { display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--paper-2); border-inline-end: 1px solid var(--line); }
.tree__nav button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); text-align: start; font-size: 15px; font-weight: 800; cursor: pointer; }
.tree__nav button:hover { background: var(--paper); }
.tree__nav button[aria-selected="true"] { background: var(--desk); }
.tree__n { display: grid; place-items: center; width: 32px; height: 28px; border-radius: 4px 9px 9px 9px; background: var(--lemon); font-size: 14px; font-weight: 900; box-shadow: inset 0 -3px 0 rgba(28, 26, 46, .12); }
.tree__nav [aria-selected="true"] .tree__n { background: var(--ink); color: var(--lemon); }
.clause { padding: clamp(18px, 3vw, 30px); }
.clause:focus-visible { outline-offset: -4px; }
.clause h3 { margin: 0 0 4px; font-size: clamp(20px, 2.2vw, 25px); font-weight: 900; }
.clause > p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.clause__subs { list-style: none; margin: 14px 0; padding: 0; }
.clause__subs li { position: relative; padding: 7px 0; padding-inline-start: 28px; font-size: 15px; }
.clause__subs li::before { content: ""; position: absolute; inset-inline-start: 8px; top: 0; bottom: 0; border-inline-start: 2px dotted var(--line-2); }
.clause__subs li:last-child::before { bottom: 50%; }
.clause__subs li::after { content: ""; position: absolute; inset-inline-start: 8px; top: 50%; width: 13px; border-top: 2px dotted var(--line-2); }
.clause__subs b { margin-inline-end: 8px; color: var(--blue-ink); font-weight: 900; }
.clause__ev { margin: 0; padding: 12px 16px; border-radius: 14px; background: #FFF6CF; font-size: 14.5px; }
@media (max-width: 860px) {
  .readme { grid-template-columns: minmax(0, 1fr); }
  .tree { grid-template-columns: minmax(0, 1fr); }
  .tree__nav { flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .tree__nav button { flex: none; white-space: nowrap; }
}
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { padding: clamp(20px, 3vw, 30px); border-radius: 22px; }
.panel h2 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; }
.panel > p { margin: 0 0 8px; color: var(--ink-2); }
.panel--mint { background: #E2F5EB; }
.panel--sys { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; margin: 12px 0; padding-inline-start: 36px; font-size: 15.5px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 24px; height: 24px; border-radius: 8px; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231C1A2E' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ticks b { color: var(--ink); }
.sysreq { list-style: none; margin: 0; padding: 0; }
.sysreq li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.sysreq li:last-child { border-bottom: 0; }
.sysreq svg { width: 32px; height: 32px; color: var(--coral-ink); }
.sysreq span { font-size: 14.5px; color: var(--ink-2); }
.sysreq b { display: block; font-size: 15.5px; font-weight: 900; color: var(--ink); }
@media (max-width: 860px) { .twin { grid-template-columns: 1fr; } }
.meters { list-style: none; margin: 0; padding: 0; }
.meters li { display: grid; grid-template-columns: 210px 200px 1fr; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1.5px dashed var(--line-2); }
.meters__n { font-size: 16px; font-weight: 900; }
.meters__bar { height: 14px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); overflow: hidden; }
.meters__bar i { display: block; height: 100%; background: var(--coral); transform-origin: right center; transform: scaleX(var(--v)); transition: transform 1s var(--ease-out); }
.js .meters:not(.is-in) .meters__bar i { transform: scaleX(0); }
.meters li:nth-child(2) i { transition-delay: .08s; }
.meters li:nth-child(3) i { transition-delay: .16s; }
.meters li:nth-child(4) i { transition-delay: .24s; }
.meters li:nth-child(5) i { transition-delay: .32s; }
.meters li:nth-child(6) i { transition-delay: .4s; }
.meters__d { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 860px) { .meters li { grid-template-columns: 1fr; gap: 6px; } .meters__bar { max-width: 260px; } }
.notes { max-width: 980px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-win); overflow: clip; }
.notes__bar { --app: var(--lemon); }
.notes__tag { padding: 2px 12px; border-radius: 999px; background: var(--ink); color: var(--lemon); font-size: 12.5px; font-weight: 900; }
.notes__body { padding: clamp(20px, 3.6vw, 36px); }
.notes__body h2 { margin: 0 0 12px; font-size: clamp(23px, 2.8vw, 32px); font-weight: 900; }
.notes__lead { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--paper); border-inline-start: 4px solid var(--lemon); font-size: 14.5px; color: var(--ink-2); }
.changelog { list-style: none; margin: 0; padding: 0; }
.changelog li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.changelog p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.changelog b { color: var(--ink); }
.cl { display: block; padding: 2px 8px; border-radius: 7px; text-align: center; font-size: 12px; font-weight: 900; }
.cl--new { background: var(--mint); }
.cl--mod { background: #E6EDFF; color: var(--blue-ink); }
.cl--keep { background: var(--paper); color: var(--muted); }
.notes__upgrade { margin-top: 22px; padding: 20px 22px; border-radius: 16px; background: var(--ink); color: #fff; }
.notes__upgrade h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; color: var(--lemon); }
.notes__upgrade p { margin: 0; color: #D4D1E6; font-size: 15px; }
@media (max-width: 560px) { .changelog li { grid-template-columns: 1fr; gap: 4px; } .cl { display: inline-block; justify-self: start; } }

/* =========================================================
   START — setup assistant
   ========================================================= */
.setup-page { max-width: 1320px; margin: 0 auto; padding: 16px 16px 48px; }
.setup { display: flex; flex-direction: column; min-height: calc(100vh - var(--bar-h) - 32px); background: #fff; border-radius: 24px; box-shadow: var(--shadow-win); overflow: clip; }
.setup__bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 12px; background: var(--mint); flex: none; }
.setup__count { padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 900; }
.setup__body { flex: 1; display: grid; grid-template-columns: 310px minmax(0, 1fr); }
.setup__side { padding: 28px 26px; background: var(--lemon); }
.setup__art svg { width: 76px; height: 76px; filter: drop-shadow(0 10px 10px rgba(28, 26, 46, .25)); transform: rotate(-6deg); }
.setup__side h1 { margin: 12px 0 8px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 900; line-height: 1.45; }
.setup__side > p { margin: 0; font-size: 15px; }
.setup__list { list-style: none; margin: 20px 0 0; padding: 0; counter-reset: w; }
.setup__list li { counter-increment: w; display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; font-weight: 700; opacity: .55; transition: opacity .2s; }
.setup__list li::before { content: counter(w, persian); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--ink); font-size: 13px; font-weight: 900; }
.setup__list li.is-done, .setup__list li.is-cur { opacity: 1; }
.setup__list li.is-done::before { content: "✓"; background: var(--ink); color: var(--lemon); }
.setup__list li.is-cur { font-weight: 900; }
.setup__list li.is-cur::before { background: #fff; }
.setup__privacy { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 13px; font-weight: 800; }
.setup__main { display: flex; flex-direction: column; padding: clamp(20px, 3.4vw, 40px); min-width: 0; }
.setup__main form { flex: 1; display: flex; flex-direction: column; }
.wz { margin: 0; padding: 0; border: 0; min-width: 0; }
.js .wz { display: none; }
.js .wz.is-cur { display: block; animation: step-next .4s var(--ease-out) both; }
.js .wz.is-cur.from-prev { animation-name: step-prev; }
html:not(.js) .wz + .wz { margin-top: 36px; }
html:not(.js) .wz--result, html:not(.js) .wz-nav { display: none; }
.wz__h { display: block; margin: 0 0 6px; padding: 0; font-size: clamp(22px, 2.5vw, 30px); font-weight: 900; line-height: 1.45; }
.wz__h:focus { outline: none; }
.wz__hint { margin: 0 0 20px; font-size: 15px; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px; border-radius: 18px; background: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(28, 26, 46, .12);
  transition: box-shadow .15s, transform .2s var(--ease-pop), background-color .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px rgba(28, 26, 46, .35); }
.tile.is-on { background: #FFFBEA; box-shadow: inset 0 0 0 2.5px var(--ink), 0 4px 0 var(--ink); transform: translateY(-2px); }
.tile.is-on::after { content: ""; position: absolute; top: 12px; inset-inline-end: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FFD43B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; animation: pop-in .3s var(--ease-pop); }
.tile.is-focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.tile__ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 32%; background: var(--c); color: var(--ink); }
.tile__ic svg { width: 28px; height: 28px; }
.tile__t { font-size: 15.5px; font-weight: 900; line-height: 1.5; }
.tile__s { font-size: 13px; color: var(--muted); line-height: 1.6; }
.tile__big { font-size: 26px; font-weight: 900; line-height: 1.3; }
.tile--sm { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
.tile--sm .tile__ic { width: 42px; height: 42px; }
.tiles--4 .tile--sm { flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 16px 8px; }
.sites { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 16px; border-radius: 16px; background: var(--paper); font-weight: 800; }
.stds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.std { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; padding: 14px; border-radius: 16px; background: #fff; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(28, 26, 46, .12); transition: box-shadow .15s, background-color .15s; animation: file-in .35s var(--ease-pop) both; animation-delay: calc(var(--i, 0) * 50ms); }
.std:has(input:checked) { background: #F2FBF6; box-shadow: inset 0 0 0 2.5px var(--mint-ink); }
.std input { grid-row: span 2; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 3px 0 0; border: 2px solid var(--ink); border-radius: 7px; background: #fff; cursor: pointer; }
.std input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.std__t { font-size: 15px; font-weight: 900; line-height: 1.55; }
.std__t bdi { margin-inline-end: 6px; }
.std__badge { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; background: var(--lemon); font-size: 11px; font-weight: 900; vertical-align: 2px; }
.std__w { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.stds-more { margin-top: 14px; }
.stds-more summary { cursor: pointer; font-weight: 800; color: var(--blue-ink); padding: 6px 0; }
.stds--more { margin-top: 8px; }
.stds-cat { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.stds-cat legend { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0; font-size: 14.5px; font-weight: 900; }
.stds-more .std { animation: none; }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 26px; }
.wz-nav [data-wz-prev][disabled] { visibility: hidden; }
.setup__dock { display: flex; gap: 8px; width: fit-content; max-width: calc(100% - 24px); margin: 0 auto 16px; padding: 8px 12px; list-style: none; border-radius: 22px; background: rgba(220, 217, 236, .8); box-shadow: inset 0 0 0 1px var(--line); }
.setup__dock li { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 56px; font-size: 11px; font-weight: 800; color: var(--muted); }
.setup__dock span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 32%; border: 2px dashed rgba(28, 26, 46, .28); color: var(--ink); }
.setup__dock svg { width: 24px; height: 24px; opacity: .3; }
.setup__dock li.is-cur span { border: 2px solid var(--ink); background: #fff; }
.setup__dock li.is-cur svg { opacity: .8; }
.setup__dock li.is-done { color: var(--ink); }
.setup__dock li.is-done span { border: 0; background: var(--c); box-shadow: inset 0 -3px 0 rgba(28, 26, 46, .15), 0 6px 10px -6px rgba(28, 26, 46, .5); animation: dock-pop .55s var(--ease-pop); }
.setup__dock li.is-done svg { opacity: 1; }
.setup__dock li:nth-child(1) { --c: var(--coral); }
.setup__dock li:nth-child(2) { --c: var(--blue); }
.setup__dock li:nth-child(3) { --c: var(--lemon); }
.setup__dock li:nth-child(4) { --c: var(--mint); }
.setup__dock li:nth-child(5) { --c: var(--coral); }
.setup__dock li:nth-child(6) { --c: var(--blue); }
.setup__dock li:nth-child(7) { --c: var(--lemon); }
@keyframes dock-pop { 0% { transform: scale(.3) translateY(10px); } 60% { transform: scale(1.15) translateY(-6px); } 100% { transform: none; } }
html:not(.js) .setup__dock { display: none; }

.result { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 14px; }
.pdfv { border-radius: 18px; background: #34314C; overflow: clip; }
.pdfv__bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; color: #fff; font-size: 13px; font-weight: 800; }
.pdfv__name { display: inline-flex; align-items: center; gap: 6px; }
.pdfv__meta { margin-inline-start: auto; color: #B9B6D3; font-weight: 600; }
.pdfv__bar .iconbtn { width: 36px; height: 36px; background: rgba(255, 255, 255, .1); color: #fff; }
.pdfv__bar .iconbtn:hover { background: #fff; color: var(--ink); }
.pdfv__stage { padding: 18px; max-height: 680px; overflow: auto; background: #46425F; }
.paper { padding: 26px 24px 18px; border-radius: 4px; background: #fff; font-size: 13.5px; box-shadow: 0 16px 34px rgba(0, 0, 0, .35); animation: print-in .7s var(--ease-out) both; }
@keyframes print-in { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
.paper__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 2.5px solid var(--ink); }
.paper__brand { display: flex; align-items: center; gap: 10px; }
.paper__t { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.5; }
.paper__s { margin: 0; font-size: 11.5px; color: var(--muted); }
.paper__ref { margin: 0; font-size: 12px; }
.paper__ref div { display: flex; gap: 6px; }
.paper__ref dt { color: var(--muted); }
.paper__ref dd { margin: 0; font-weight: 800; }
.paper__sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.paper__sum div { padding: 6px 10px; border-radius: 8px; background: var(--paper); }
.paper__sum dt { font-size: 11px; font-weight: 700; color: var(--muted); }
.paper__sum dd { margin: 0; font-size: 13.5px; font-weight: 800; }
.paper__h { margin: 16px 0 8px; padding-bottom: 4px; font-size: 14px; font-weight: 900; border-bottom: 1px dashed var(--line-2); }
.paper__stds { list-style: none; margin: 0; padding: 0; }
.paper__stds li { display: grid; grid-template-columns: 14px 1fr; gap: 0 10px; margin: 8px 0; line-height: 1.7; }
.paper__stds li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; border-radius: 4px; background: var(--c, var(--blue)); grid-row: span 2; }
.paper__stds b { font-weight: 900; }
.paper__stds span { font-size: 12.5px; color: var(--ink-2); }
.paper__est { margin: 14px 0; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.paper__est p { margin: 0; }
.paper__est p:first-child { font-size: 12px; color: #C9C6DE; }
.paper__big { font-size: 26px; font-weight: 900; color: var(--lemon); line-height: 1.5; }
.paper__note { font-size: 12px; color: #D4D1E6; }
.gantt { list-style: none; margin: 0; padding: 0; }
.gantt li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; margin: 5px 0; font-size: 12px; line-height: 1.5; }
.gantt__lbl { font-weight: 700; }
.gantt__track { position: relative; height: 14px; border-radius: 4px; background: var(--paper); }
.gantt__bar { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--s); width: var(--w); min-width: 6px; border-radius: 4px; background: var(--c, var(--blue)); transform-origin: right center; animation: grow .6s var(--ease-out) both; animation-delay: calc(.5s + var(--i, 0) * 90ms); }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.gantt__axis { display: flex; justify-content: space-between; margin: 4px 0 0; padding-inline-start: 160px; font-size: 10.5px; color: var(--muted); }
.paper__foot { margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 11px; color: var(--muted); }
.leadbox { padding: 22px; border-radius: 20px; background: var(--desk); }
.leadbox h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.leadbox > p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-2); }
.leadbox .field input, .leadbox .select select { background: #fff; }
.leadbox__alt { margin: 12px 0 0; font-size: 13px; text-align: center; color: var(--ink-2); }
@media (max-width: 1100px) { .result { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023px) {
  .setup__body { grid-template-columns: minmax(0, 1fr); }
  .setup { min-height: 0; }
  .setup__body { align-content: start; }
  .setup__side { padding: 18px; display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; align-items: center; }
  .setup__art svg { width: 56px; height: 56px; }
  .setup__side h1 { margin: 0; font-size: 21px; }
  .setup__side > p { grid-column: 1 / -1; margin-top: 8px; font-size: 14px; }
  .setup__list, .setup__privacy { display: none; }
  .tiles, .tiles--3 { grid-template-columns: 1fr 1fr; }
  .stds { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .setup-page { padding: 10px 10px 40px; }
  .tiles, .tiles--3 { grid-template-columns: 1fr; }
  .tiles--4 { grid-template-columns: 1fr 1fr; }
  .tile { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .tile__s { flex-basis: 100%; }
  .setup__dock { gap: 2px; padding: 6px 8px; }
  .setup__dock li { width: auto; font-size: 0; }
  .setup__dock span { width: 38px; height: 38px; }
  .setup__dock svg { width: 20px; height: 20px; }
  .gantt li { grid-template-columns: 1fr; gap: 2px; }
  .gantt__axis { padding-inline-start: 0; }
  .paper { padding: 18px 14px; }
  .paper__head { flex-direction: column; }
  .pdfv__stage { padding: 10px; }
  .wz-nav { position: sticky; bottom: 0; margin-inline: -4px; padding: 14px 4px; background: linear-gradient(transparent, #fff 30%); }
}

/* ---------- print: only the roadmap ---------- */
@media print {
  body * { visibility: hidden !important; }
  .paper, .paper * { visibility: visible !important; }
  .paper { position: absolute; top: 0; left: 0; right: 0; box-shadow: none; animation: none; }
  .gantt__bar { animation: none; }
  .pdfv__stage { max-height: none; overflow: visible; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
