/* Fuqaa 2000 — Y2K desktop, RTL. Liquid chrome, ice-blue jelly, lilac. */
:root {
  --sky: #e6eef8;
  --pearl: #f7f9fc;
  --ink: #1b2140;
  --ink-2: #3a4268;
  --lilac: #5b3fc0;
  --lilac-d: #452f9c;
  --bubble: #8fd3f4;
  --line: #a9b8d0;
  --shade: rgba(27, 33, 64, .16);
  --holo: conic-gradient(from 210deg at 40% 50%, #f5c9f2, #c6e6ff, #d6fff0, #fff1c2, #e6d2ff, #f5c9f2);
  --chrome: linear-gradient(180deg, #ffffff 0%, #dfe7f3 42%, #b4c2d8 50%, #e7eef8 100%);
  --jelly: linear-gradient(180deg, #d9f3ff 0%, #a6dcf7 46%, #8fd3f4 54%, #c3eafc 100%);
  --r: 16px;
  --display: 'Blaka', 'Readex Pro', system-ui, sans-serif;
  --body: 'Readex Pro', 'Segoe UI', system-ui, sans-serif;
  --tb-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.125rem/1.8 var(--body);
  color: var(--ink);
  background: var(--sky) radial-gradient(120% 70% at 15% 0%, #e9dcff 0%, transparent 60%) no-repeat;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--lilac); text-underline-offset: 3px; }
a:hover { color: var(--lilac-d); }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .6em; }
h2 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999; background: var(--lilac); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }
.ico { width: 1.4em; height: 1.4em; flex: none; vertical-align: -.35em; }
.ico-s { width: 1.25em; height: 1.25em; margin-inline-end: .45em; }
.ico-xs { width: 1.1em; height: 1.1em; margin-inline-end: .4em; }

/* ---------- wordmark ---------- */
.logo-mark { width: 34px; height: 34px; flex: none; }
.wordmark { font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--ink); white-space: nowrap; }
.wordmark b { font-family: var(--body); font-size: .62em; font-weight: 700; margin-inline-start: .35em; padding: 1px 7px; vertical-align: .2em; border-radius: 999px; background: var(--holo); border: 1px solid var(--ink); }

/* ---------- taskbar (top menu bar on mobile / no-wm, fixed bottom in wm) ---------- */
.taskbar {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; gap: 10px;
  min-height: var(--tb-h); padding: 6px 12px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px var(--shade);
}
.tb-nav { order: 0; }
.tb-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-inline-end: auto; }
.tb-brand .logo-mark { display: none; }
.tray { display: flex; align-items: center; gap: 8px; padding-block: 4px; padding-inline: 10px 6px; border-radius: 999px; background: rgba(255,255,255,.65); border: 1px solid var(--line); }
.tray-18 { display: inline-grid; place-items: center; min-height: 36px; min-width: 44px; font-weight: 800; font-size: .85rem; color: #fff; background: var(--lilac); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.tray-18:hover { color: #fff; background: var(--lilac-d); }
.tray-clock { font-family: var(--body); font-weight: 600; font-size: .8rem; direction: ltr; color: var(--ink); min-width: 3.4em; text-align: center; }
html:not(.js) .tray-clock { display: none; }
.tasks, .tb-mode { display: none; }

/* Start menu: <details> works without JS */
.start { position: relative; }
.start-btn {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding-block: 4px; padding-inline: 4px 14px; border-radius: 999px;
  background: var(--jelly); border: 1px solid #5f9cc0;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px var(--shade);
  font-weight: 700; font-size: 1rem; color: var(--ink);
}
.start-btn::-webkit-details-marker { display: none; }
.start-btn::marker { content: ''; }
.start-bubble .logo-mark { width: 36px; height: 36px; }
.start[open] .start-btn { background: linear-gradient(180deg, #b9e6fb, #7cc6ec); }
.start-panel {
  position: absolute; inset-inline-start: 0; top: calc(100% + 8px);
  display: flex; width: min(320px, calc(100vw - 24px));
  background: var(--pearl); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 18px 40px var(--shade); overflow: hidden;
}
.start-side {
  writing-mode: vertical-rl;
  margin: 0; padding: 14px 8px; font-family: var(--display); font-size: 1.4rem;
  background: linear-gradient(0deg, var(--lilac), #8a6cf0); color: #fff;
}
.start-list { list-style: none; margin: 0; padding: 8px; flex: 1; }
.start-list a { display: flex; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.start-list a:hover, .start-list a:focus-visible { background: #dceffb; }
.start-list a[aria-current="page"] { background: var(--holo); }
.start-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- windows (base = stacked document panels) ---------- */
.wall { padding: 18px 12px 32px; }
.win {
  position: relative;
  background: var(--pearl);
  border: 1px solid #93a6c4; border-radius: var(--r);
  box-shadow: 0 1px 0 #fff inset, 0 14px 34px var(--shade);
  margin: 0 auto 22px; max-width: 980px;
  overflow: hidden;
}
.titlebar {
  display: flex; align-items: center; gap: 8px;
  min-height: 42px; padding-block: 4px; padding-inline: 14px 6px;
  background: var(--jelly);
  border-bottom: 1px solid #6fa9cb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.tb-title { display: flex; align-items: center; margin: 0; flex: 1; min-width: 0; font-family: var(--display); font-size: 1.45rem; line-height: 1.3; color: var(--ink); }
.tb-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-ctl { display: flex; gap: 6px; }
.tb-ctl button, .tb-x {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border-radius: 50%; border: 1px solid #5d7598; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, #dbe5f3 40%, #9fb0cb 100%);
  color: var(--ink); font: 800 1rem/1 var(--body); text-decoration: none;
}
.tb-ctl button:hover, .tb-x:hover { background: radial-gradient(circle at 35% 30%, #fff 0 18%, #d9ccff 45%, #8f74ea 100%); color: var(--ink); }
.tb-ctl button[data-act="close"]:hover { background: radial-gradient(circle at 35% 30%, #fff 0 18%, #ffd0e6 45%, #e07aa8 100%); }
.win-body { padding: 20px 18px 8px; }
.win-body > h2:first-child { margin-top: 2px; }
.more { font-weight: 600; }

/* ---------- desktop (base: icon strip on top) ---------- */
.icons ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.d-icon {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: 14px; text-decoration: none; color: var(--ink); text-align: center;
  font-size: .82rem; font-weight: 600; line-height: 1.25;
}
.d-icon span { background: rgba(247, 249, 252, .92); border-radius: 8px; padding: 2px 6px; }
.ico-d { width: 46px; height: 46px; filter: drop-shadow(0 4px 5px rgba(27,33,64,.22)); transition: transform .18s ease; }
.d-icon:hover .ico-d, .d-icon:focus-visible .ico-d { transform: translateY(-3px) scale(1.06); }
.d-icon:hover span, .d-icon:focus-visible span { background: var(--lilac); color: #fff; }

/* ---------- welcome ---------- */
.welcome { display: grid; gap: 18px; }
.kicker { font-family: var(--display); font-size: 1.5rem; color: var(--lilac); margin-bottom: .7em; }
.welcome h1 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); font-weight: 700; line-height: 1.45; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.welcome-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-art { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #dfe8f5; }
.hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.btn {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-ok { background: linear-gradient(180deg, #7b5fe0, var(--lilac) 55%, #4d33ad); color: #fff; border-color: #36237f; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 10px rgba(91,63,192,.35); }
.btn-ok:hover { color: #fff; background: linear-gradient(180deg, #6b4fd6, var(--lilac-d)); }
.btn-ghost { background: var(--chrome); color: var(--ink); border-color: #8396b7; }
.btn-ghost:hover { color: var(--ink); background: #fff; }
.answer-box, .props { margin: 18px 0; padding: 0 16px 14px; border-radius: 14px; background: #fff; border: 1px solid #6fa9cb; overflow: hidden; }
.answer-box .props-t, .props .props-t { margin: 0 -16px 12px; padding: 8px 16px; background: var(--jelly); border-bottom: 1px solid #6fa9cb; }
.props-t { display: flex; align-items: center; margin: 0 0 .35em; font-family: var(--display); font-size: 1.45rem; color: var(--ink); }
.answer-box p:last-child, .props p:last-child { margin: 0; }
.sysprops { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.sysprops li { display: grid; padding: 12px 14px; border-radius: 14px; background: var(--holo); border: 1px solid #9c8fd0; }
.hl-l { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.hl-v { font-family: var(--display); font-size: 1.75rem; line-height: 1.3; margin: 2px 0; }
.hl-n { font-size: .9rem; }

/* ---------- compare panes ---------- */
.cmp-cap { font-size: .92rem; color: var(--ink-2); }
.cmp { display: grid; gap: 12px; margin-bottom: 16px; }
.cmp-pane { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.cmp-h { display: flex; align-items: center; margin: 0; padding: 10px 12px; font-weight: 800; background: var(--chrome); border-bottom: 1px solid var(--line); }
.cmp-pane:last-child .cmp-h { background: linear-gradient(180deg, #f1ebff, #d9ccff); }
.cmp dl { margin: 0; padding: 4px 12px 8px; }
.cmp dl div { padding: 8px 0; border-bottom: 1px dashed #c8d2e3; }
.cmp dl div:last-child { border: 0; }
.cmp dt { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.cmp dd { margin: 0; font-weight: 600; }

/* ---------- scan ---------- */
.scan { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; margin-bottom: 12px; }
.scan-head { display: flex; gap: 12px; align-items: center; }
.scan-fly { width: 72px; height: 72px; border-radius: 50%; flex: none; background: #efe9ff; object-fit: cover; }
.scan-msg { margin: 0; font-weight: 600; }
.scan-bar { height: 16px; margin: 12px 0; border-radius: 999px; background: #dfe7f3; border: 1px solid var(--line); overflow: hidden; }
.scan-bar span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: right; background: repeating-linear-gradient(90deg, var(--lilac) 0 14px, #7d63e3 14px 18px); border-radius: inherit; transition: transform .3s ease; }
html:not(.js) .scan-bar { display: none; }
.scan-list { margin: 0; padding-inline-start: 1.4em; }
.scan-item { margin-bottom: 12px; }
.scan-q { font-weight: 800; margin: 0 0 .2em; }
.scan-fix { margin: 0; font-size: .95rem; color: var(--ink-2); }
/* JS: one question at a time */
.scan.is-live .scan-list { padding: 0; list-style: none; }
.scan.is-live .scan-item { display: none; }
.scan.is-live .scan-item.is-current { display: block; }
.scan.is-live .scan-fix { display: none; }
.scan-ans { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.scan-ans button, .scan-restart {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font: 700 .95rem var(--body); color: var(--ink); background: var(--chrome); border: 1px solid #8396b7;
}
.scan-ans button:hover, .scan-restart:hover { background: #dceffb; }
.scan-ans button[data-a="oui"] { background: linear-gradient(180deg, #e7fff3, #b8f0d4); border-color: #4f9a77; }
.scan-report h3 { font-size: 1.1rem; }
.scan-report ul { padding-inline-start: 1.2em; }
.scan-report li { margin-bottom: .6em; }
.fine-dark { font-size: .85rem; color: var(--ink-2); }

/* ---------- coupon dialog ---------- */
.coupon {
  margin: 18px 0; border-radius: 18px; overflow: hidden;
  border: 2px solid #36237f; background: linear-gradient(160deg, #fbf9ff, #eef4ff);
  box-shadow: 0 0 0 5px rgba(143, 211, 244, .45), 0 16px 34px rgba(91, 63, 192, .22);
}
.coupon-bar { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 8px 12px; background: linear-gradient(180deg, #8a6cf0, var(--lilac) 52%, #4b32a8); color: #fff; }
.cb-name { display: flex; align-items: center; font-family: var(--display); font-size: 1.45rem; }
.cb-tag { font-size: .75rem; font-weight: 800; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.6); padding: 1px 8px; border-radius: 999px; }
.coupon-body { display: grid; gap: 14px; padding: 16px; align-items: center; }
.coupon-art { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto; border: 3px solid #fff; box-shadow: 0 6px 16px var(--shade); }
.coupon-from { font-weight: 800; margin-bottom: .5em; }
.sticker { margin: 0 0 14px; }
.sticker span {
  position: relative; display: inline-block; padding-block: 12px; padding-inline: 18px 22px; border-radius: 14px;
  background: var(--holo); border: 2px dashed #6d58c9; color: var(--ink);
  font-family: var(--display); font-size: 1.7rem; line-height: 1.5;
  transform: rotate(1.5deg); box-shadow: 0 6px 14px var(--shade);
}
.sticker span::after { content: ''; position: absolute; inset-inline-end: -2px; top: -2px; width: 22px; height: 22px; border-radius: 12px 0 10px 0; background: linear-gradient(135deg, var(--sky) 50%, #c9bdf3 50%); }
.frozen { height: 14px; border-radius: 999px; border: 1px solid #8a7bd0; background: #fff; overflow: hidden; margin-bottom: 10px; }
.frozen span { display: block; width: 38%; height: 100%; margin-inline-start: 22%; background: repeating-linear-gradient(45deg, #8fd3f4 0 8px, #c8b8ff 8px 16px); border-radius: inherit; }
.coupon-note { font-size: .92rem; color: var(--ink-2); }
.coupon-actions { margin-bottom: .6em; }
.fine { font-size: .8rem; font-weight: 600; color: var(--ink-2); margin: 0; }

/* ---------- monitor ---------- */
.mon-pick { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; background: #fff; }
.mon-pick legend { font-weight: 800; padding: 0 6px; }
.mon-pick label { display: flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; }
.mon-pick input { accent-color: var(--lilac); width: 18px; height: 18px; }
html:not(.js) .mon-pick, html:not(.js) .meters, html:not(.js) .meters + .fine-dark { display: none; }
.meters { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.meters li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.m-l { display: flex; align-items: center; font-weight: 600; }
.m-bar { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 18px; }
.m-bar i { border-radius: 6px; background: #dfe7f3; border: 1px solid var(--line); transition: background .25s; }
.m-bar[data-level="1"] i:nth-child(-n+1), .m-bar[data-level="2"] i:nth-child(-n+2), .m-bar[data-level="3"] i:nth-child(-n+3), .m-bar[data-level="4"] i { background: linear-gradient(180deg, #a98ef5, var(--lilac)); border-color: var(--lilac-d); }
.m-v { font-family: var(--body); font-weight: 600; font-size: .9rem; }

/* ---------- trash ---------- */
.trash-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.t-file { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.t-name { display: flex; align-items: flex-start; margin: 0 0 .3em; font-weight: 800; }
.t-name .ico { margin-top: .2em; }
.t-fix { margin: 0; font-size: .95rem; }
.t-act { margin-top: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; cursor: pointer; font: 700 .9rem var(--body); color: var(--ink); background: var(--chrome); border: 1px solid #8396b7; display: inline-flex; align-items: center; }
.t-act:hover { background: #ffe1ef; }
.trash.is-live .t-file:not(.is-binned) .t-fix { display: none; }
.t-file.is-binned { background: #f1ebff; border-style: dashed; }
.t-file.is-binned .t-name span { text-decoration: line-through; text-decoration-color: rgba(91,63,192,.6); }
.t-file.is-binned .t-act { display: none; }
.trash-count { font-weight: 700; margin: 10px 0 0; }

/* ---------- help ---------- */
.help-q { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.help-q summary { cursor: pointer; padding-block: 12px; padding-inline: 40px 14px; font-weight: 700; position: relative; list-style: none; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::before { content: '?'; position: absolute; inset-inline-start: 10px; top: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #fff; background: var(--lilac); }
.help-q[open] summary::before { content: '−'; }
.help-q p { padding-block: 0 12px; padding-inline: 40px 14px; margin: 0; }

/* ---------- blocks ---------- */
.bullets { padding-inline-start: 0; list-style: none; }
.bullets li { position: relative; padding-inline-start: 26px; margin-bottom: .5em; }
.bullets li::before { content: ''; position: absolute; inset-inline-start: 3px; top: .55em; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 20%, #b8e5fa 45%, #5b3fc0 100%); }
.numbered li { margin-bottom: .5em; }
.wizard { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.wizard-head { display: flex; align-items: center; margin: 0; padding: 9px 14px; font-family: var(--display); font-size: 1.4rem; background: var(--chrome); border-bottom: 1px solid var(--line); }
.wizard-list { list-style: none; margin: 0; padding: 6px 14px; }
.wizard-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #c8d2e3; }
.wizard-list li:last-child { border: 0; }
.wz-n { display: grid; place-items: center; min-width: 46px; height: 30px; border-radius: 999px; background: var(--jelly); border: 1px solid #6fa9cb; font-weight: 700; font-size: .85rem; direction: ltr; }
.wizard-list p { margin: .2em 0 0; }
.details-view { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.details-view figcaption { display: flex; align-items: center; padding: 9px 14px; font-weight: 800; font-size: .95rem; background: var(--chrome); border-bottom: 1px solid var(--line); }
.dv-scroll { overflow-x: auto; }
.details-view table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 460px; }
.details-view th, .details-view td { text-align: start; padding: 9px 12px; border-bottom: 1px solid #e1e7f1; vertical-align: top; }
.details-view thead th { font-size: .8rem; font-weight: 800; color: var(--ink-2); background: #eef3fa; }
.details-view tbody tr:nth-child(even) { background: #f6f8fd; }
.details-view tbody th { font-weight: 700; }
.balloon { display: grid; grid-template-columns: 64px 1fr; gap: 12px; margin: 18px 0; padding: 14px; border-radius: 18px; background: #f1ebff; border: 1px solid #a998e6; align-items: start; }
.balloon-fly { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; }
.balloon-t { font-weight: 800; margin-bottom: .2em; }
.balloon p:last-child { margin: 0; }
.calc { margin: 18px 0; border-radius: 14px; overflow: hidden; border: 1px solid #93a6c4; background: #fff; }
.calc-bar { margin: 0; padding: 7px 12px; background: var(--jelly); font-family: var(--display); font-size: 1.4rem; border-bottom: 1px solid #6fa9cb; }
.calc-body { padding: 12px 14px; font-variant-numeric: tabular-nums; }
.calc-t { font-weight: 800; }
.calc-body p:last-child { margin: 0; }

/* ---------- inner pages: explorer window ---------- */
.wall-inner { min-height: 70vh; }
.addr { display: flex; gap: 8px; align-items: center; margin: 0; padding: 6px 12px; background: #eef3fa; border-bottom: 1px solid var(--line); font-size: .82rem; }
.addr-l { font-weight: 700; color: var(--ink-2); }
.addr-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-family: var(--body); font-size: .75rem; text-align: left; }
.explorer { display: grid; gap: 18px; }
.pane { border: 1px solid var(--line); border-radius: 14px; background: #f0f5fb; padding: 10px; font-size: .92rem; }
.pane-t { font-family: var(--display); font-size: 1.4rem; margin: 4px 6px 6px; color: var(--ink-2); }
.pane ul { list-style: none; margin: 0 0 10px; padding: 0; }
.pane a { display: flex; align-items: flex-start; padding: 6px; border-radius: 8px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.pane a .ico { margin-top: .1em; }
.pane a:hover { background: #dceffb; }
.doc { min-width: 0; }
.doc-hero { margin: 0 0 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.doc-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.doc-kicker { font-family: var(--display); font-size: 1.45rem; color: var(--lilac); margin-bottom: .4em; }
.doc h1 { font-size: clamp(1.55rem, 3.8vw, 2.2rem); font-weight: 700; line-height: 1.45; }
.doc-intro { font-size: 1.1rem; color: var(--ink-2); }
.doc-sec { padding-top: 10px; scroll-margin-top: 80px; }
.help { margin-top: 26px; scroll-margin-top: 80px; }
.help h2 { display: flex; align-items: center; }
.statusbar { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 6px 14px; font-size: .8rem; color: var(--ink-2); background: #eef3fa; border-top: 1px solid var(--line); }
.win-care .titlebar { background: linear-gradient(180deg, #f3eeff, #d8ccff 50%, #c7b6ff 52%, #ece5ff); border-bottom-color: #9c8ad8; }
.win-note .titlebar, .win-props .titlebar { background: var(--chrome); border-bottom-color: var(--line); }
.win-note .win-body { background: repeating-linear-gradient(180deg, transparent 0 31px, #e7edf6 31px 32px); }
.wall-404 { display: grid; place-items: center; }
.win-error { max-width: 560px; width: 100%; }
.err-body { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding-bottom: 14px; }
.err-ico { width: 64px; height: 64px; }
.err-body h1 { font-family: var(--display); font-size: 2.2rem; font-weight: 400; }

/* ---------- footer ---------- */
.site-foot { background: #dde6f3; border-top: 1px solid var(--line); padding: 26px 16px 34px; font-size: .92rem; }
.foot-in { max-width: 980px; margin: 0 auto; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 12px 0 0; }
.foot-links a { color: var(--ink); font-weight: 600; }

/* ---------- boot ---------- */
.boot { display: none; }
html.js .is-home .boot.is-on {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(circle at 50% 40%, #ffffff, #d7e6f7 50%, #c7b8f5);
  transition: opacity .3s ease;
}
.boot.is-off { opacity: 0; pointer-events: none; }
.boot-in { text-align: center; }
.boot .logo-mark { width: 96px; height: 96px; margin: 0 auto 10px; filter: drop-shadow(0 10px 16px rgba(91,63,192,.35)); }
.boot-name { font-family: var(--display); font-size: 2.4rem; }
.boot-bar { width: 200px; height: 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; overflow: hidden; margin: 0 auto; }
.boot-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bubble), var(--lilac)); animation: boot .7s ease-out forwards; }
@keyframes boot { to { width: 100%; } }

/* ---------- ≥ 640: small refinements ---------- */
@media (min-width: 640px) {
  .wall { padding: 24px 20px 40px; }
  .win-body { padding: 24px 26px 10px; }
  .tb-brand .logo-mark { display: block; }
  .cmp { grid-template-columns: 1fr 1fr; }
  .sysprops { grid-template-columns: repeat(3, 1fr); }
  .coupon-body { grid-template-columns: 180px 1fr; }
  .coupon-art { width: 180px; height: 180px; }
  .balloon { grid-template-columns: 84px 1fr; }
  .balloon-fly { width: 84px; height: 84px; }
}
@media (min-width: 900px) {
  .welcome { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .explorer { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .pane { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
  .wall-inner { background: url(../img/wallpaper-1600.webp) center top / cover no-repeat fixed, var(--sky); }
}

/* ---------- window manager mode (JS, ≥ 900px) ---------- */
html.wm body.is-home { padding-bottom: var(--tb-h); }
html.wm .is-home .taskbar {
  position: fixed; top: auto; bottom: 0; left: 0; right: 0;
  border-bottom: 0; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px var(--shade);
}
html.wm .is-home .start-panel { top: auto; bottom: calc(100% + 10px); }
html.wm .is-home .tb-brand { margin-inline-end: 0; }
html.wm .is-home .tasks { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; padding: 2px; }
html.wm .is-home .tb-mode, html.wm-off .is-home .tb-mode { display: inline-flex; }
.task, html.wm .is-home .tb-mode, html.wm-off .is-home .tb-mode {
  display: inline-flex; align-items: center; flex: none; max-width: 200px;
  min-height: 38px; padding: 4px 12px; border-radius: 10px; cursor: pointer;
  font: 600 .82rem var(--body); color: var(--ink);
  background: rgba(255,255,255,.55); border: 1px solid var(--line);
}
.task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task[aria-pressed="true"] { background: var(--jelly); border-color: #6fa9cb; box-shadow: inset 0 1px 0 #fff; }
.task.is-active { box-shadow: inset 0 -3px 0 var(--lilac); }
.task.is-closed { display: none; }
html.js .is-home .tb-mode { align-items: center; background: var(--chrome); border-color: #8396b7; }
html.js .is-home .tb-mode[aria-pressed="true"] { background: var(--holo); }

html.wm .wall-home {
  padding: 0; height: calc(100vh - var(--tb-h)); min-height: 620px;
  background: url(../img/wallpaper-1600.webp) center / cover no-repeat, var(--sky);
}
html.wm .desktop { position: relative; height: 100%; display: grid; grid-template-columns: 210px 1fr; }
html.wm .icons { padding: 14px 8px; overflow-y: auto; }
html.wm .icons ul { grid-template-columns: 1fr 1fr; gap: 2px; margin: 0; }
html.wm .stage { position: relative; height: 100%; overflow: hidden; }
html.wm .stage .win {
  position: absolute; margin: 0; max-width: none;
  display: flex; flex-direction: column;
  max-height: calc(100% - 24px);
}
html.wm .stage .win[hidden] { display: none; }
html.wm .stage .win .win-body { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
html.wm .stage .titlebar { cursor: grab; touch-action: none; user-select: none; }
html.wm .stage .titlebar:active { cursor: grabbing; }
html.wm .stage .win:not(.is-active) .titlebar { background: linear-gradient(180deg, #f4f7fb, #dbe3ee 50%, #cfd9e7 52%, #eef2f8); border-bottom-color: var(--line); }
html.wm .stage .win.is-active { box-shadow: 0 1px 0 #fff inset, 0 24px 50px rgba(27,33,64,.28); }
html.wm .welcome { grid-template-columns: 1.1fr 1fr; }
html.wm .welcome h1 { font-size: 1.8rem; }
html:not(.wm) .tb-ctl { display: none; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .is-home .boot.is-on { display: none; }
}

/* ---------- small screens ---------- */
.coupon-bare { margin-top: 10px; border-width: 1px; box-shadow: 0 0 0 4px rgba(143, 211, 244, .4); }
@media (max-width: 899px) {
  .icons ul { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 92px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .icons li { scroll-snap-align: start; }
}
@media (max-width: 520px) {
  .taskbar { gap: 6px; padding: 6px 8px; }
  .tray-clock { display: none; }
  .tray { padding: 3px; }
  .start-btn { padding-inline-end: 10px; font-size: .95rem; }
  .start-bubble .logo-mark { width: 30px; height: 30px; }
  .wordmark { font-size: 1.45rem; }
}
/* focus rings inside clipped windows */
.titlebar:focus-visible, .dv-scroll:focus-visible, .win-body:focus-visible { outline-offset: -4px; border-radius: 12px; }
.scan-q:focus, .t-fix:focus, .scan-report h3:focus { outline: none; }
.scan-q:focus-visible, .t-fix:focus-visible, .scan-report h3:focus-visible { outline: 2px dashed var(--lilac); outline-offset: 3px; }

/* ---------- Arabic type: no tracking, no case transforms; Latin runs isolated ---------- */
bdi { unicode-bidi: isolate; }
.lead { line-height: 1.85; }
.hl-n, .cmp dd, .t-fix, .scan-fix { line-height: 1.7; }
.d-icon { font-size: .9rem; line-height: 1.45; }
.task { font-size: .9rem; }
