/* Panel look (geolocation, Wi‑Fi, readiness) for the Windows page: sizes and colours taken from
   the panel's own profile editor (src/ui/styles.css, dark theme). */
.pl {
  --pl-text: #f5f5f7;
  --pl-muted: #98989d;
  --pl-dim: #6e6e73;
  --pl-line: rgba(255, 255, 255, 0.07);
  --pl-group: #1e1e20;
  --pl-row: #141416;
  --pl-seg: #1c1c1e;
  --pl-blue: #4da3ff;
  --pl-green: #34c759;
  --pl-mono: 'SF Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  color: var(--pl-text);
  font: 400 13px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  text-align: left;
  letter-spacing: 0;
}
.pl * { box-sizing: border-box; }
.pl svg { display: block; }

/* Blocked / Configure */
.pl-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--pl-seg); border: 1px solid var(--pl-line); }
.pl-seg b { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--pl-muted); }
.pl-seg b.on { background: #4a4a4e; color: #fff; }
.pl-seg svg { width: 13px; height: 13px; }

/* Map */
.pl-map { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--pl-line); background: #191816; height: 220px; }
.pl-map > svg.pl-map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-badge { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; flex-direction: column; padding: 7px 12px; border-radius: 999px; background: rgba(12, 12, 14, 0.88); border: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.pl-badge b { font-size: 12px; font-weight: 600; color: #fff; }
.pl-badge span { font-size: 11px; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.pl-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pl-zoom i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(12, 12, 14, 0.88); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; font-style: normal; font-size: 14px; line-height: 1; }
.pl-search { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 12px; background: rgba(16, 16, 18, 0.92); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--pl-muted); font-size: 12px; }
.pl-search svg { width: 13px; height: 13px; flex: none; }
.pl-search em { margin-left: auto; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); font-size: 10px; font-style: normal; }

/* Accuracy · motion · perimeter */
.pl-tune { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pl-tune > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; border-radius: 12px; background: var(--pl-row); border: 1px solid var(--pl-line); }
.pl-tune label { min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-tune label svg { width: 12px; height: 12px; flex: none; color: var(--pl-muted); }
.pl-sel { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 10px; background: var(--pl-group); border: 1px solid var(--pl-line); font: 600 11px/1.2 inherit; color: var(--pl-text); white-space: nowrap; }
.pl-sel::after { content: ''; width: 5px; height: 5px; border-right: 1.5px solid var(--pl-muted); border-bottom: 1.5px solid var(--pl-muted); transform: translateY(-2px) rotate(45deg); }
button.pl-sel { cursor: pointer; }
button.pl-sel:hover { border-color: rgba(255, 255, 255, 0.22); }
.pl-sel.is-num::after { display: none; }
.pl-sel.is-num small { color: var(--pl-muted); font-weight: 400; }

/* Wi‑Fi */
.pl-group { border-radius: 14px; background: var(--pl-group); border: 1px solid var(--pl-line); }
.pl-cell { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.pl-cell + .pl-cell { border-top: 1px solid var(--pl-line); }
.pl-cell-ico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #fff; color: #111; }
.pl-cell-ico svg { width: 15px; height: 15px; }
.pl-cell-text { min-width: 0; flex: 1; }
.pl-cell-text b { display: block; font-size: 13px; font-weight: 600; }
.pl-cell-text span { display: block; font-size: 11.5px; color: var(--pl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-switch { width: 38px; height: 22px; flex: none; border-radius: 999px; background: var(--pl-green); position: relative; }
.pl-switch::after { content: ''; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.pl-step { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pl-muted); }
.pl-step b { color: var(--pl-text); font-weight: 600; }
.pl-step i { width: 26px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--pl-row); border: 1px solid var(--pl-line); color: var(--pl-text); font-style: normal; }
.pl-nets-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; }
.pl-nets-head > span:first-child { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pl-muted); }
.pl-nets-head > span:first-child u { text-decoration: none; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #2c2c2e; letter-spacing: 0; }
.pl-nets-head .pl-btns { margin-left: auto; display: flex; gap: 6px; }
.pl-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: #2c2c2e; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pl-pill.is-white { background: #f5f5f7; color: #111; }
.pl-pill.is-round { padding: 6px; }
.pl-pill svg { width: 12px; height: 12px; }
.pl-nets { border-radius: 12px; background: var(--pl-group); border: 1px solid var(--pl-line); overflow: hidden; }
.pl-net { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 12px; }
.pl-net + .pl-net { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.pl-net .ck { color: var(--pl-text); font-size: 12px; }
.pl-net .nm { min-width: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.pl-net .nm b { min-width: 3.5em; flex: 0 1 auto; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pl-net .nm small { font-size: 11px; color: var(--pl-muted); }
.pl-net .nm u { text-decoration: none; padding: 1px 7px; border-radius: 999px; background: #2c2c2e; color: var(--pl-muted); font-size: 10.5px; }
.pl-net .mac { grid-column: 2; margin-top: 1px; font-family: var(--pl-mono); font-size: 10.5px; color: var(--pl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-net .sig { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--pl-muted); font-variant-numeric: tabular-nums; }
.pl-net .sig svg { width: 15px; height: 15px; }
.pl-net .sig path { transition: opacity 0.4s; }

/* Readiness */
.pl-ready-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pl-ready-head > b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pl-ready-head > b svg { width: 14px; height: 14px; }
.pl-score { text-align: right; line-height: 1.1; }
.pl-score b { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-score span { font-size: 10px; color: var(--pl-muted); }
.pl-ready-sub { margin: 6px 0 10px; font-size: 12px; color: var(--pl-muted); }
.pl-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.pl-checks li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--pl-group); border: 1px solid var(--pl-line); }
.pl-checks li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--pl-dim); transition: background 0.3s, box-shadow 0.3s; }
.pl-checks li.is-ok::before { background: var(--pl-text); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.pl-checks li b { display: block; font-size: 12px; font-weight: 600; }
.pl-checks li span { display: block; font-size: 11px; color: var(--pl-muted); transition: color 0.3s; }

/* Profile editor sheet over the hero app window (scenes geo and wifi) */
.pl-sheet { position: absolute; inset: 34px 0 0; z-index: 4; display: flex; align-items: center; justify-content: center; padding: 26px 30px 18px; background: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; pointer-events: none; }
.app-window[data-scope='geo'] .pl-sheet,
.app-window[data-scope='wifi'] .pl-sheet { opacity: 1; visibility: visible; }
.pl-card { width: min(640px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: rgba(22, 22, 24, 0.97); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); transform: translateY(10px) scale(0.98); transition: transform 0.35s; }
.app-window[data-scope='geo'] .pl-card,
.app-window[data-scope='wifi'] .pl-card { transform: none; }
.pl-card-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(0, 0, 0, 0.18); }
.pl-card-head h4 { margin: 0 auto 0 0; font-size: 14px; font-weight: 600; }
.pl-card-head h4 small { margin-left: 6px; font-weight: 400; color: var(--pl-muted); }
.pl-tabs { display: flex; gap: 2px; padding: 6px 14px; background: rgba(0, 0, 0, 0.18); border-top: 1px solid rgba(255, 255, 255, 0.04); }
.pl-tabs b { padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--pl-muted); }
.app-window[data-scope='geo'] .pl-tabs b[data-t='geo'],
.app-window[data-scope='wifi'] .pl-tabs b[data-t='wifi'] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pl-card-body { position: relative; padding: 12px 14px 14px; }
.pl-pane { display: none; flex-direction: column; gap: 10px; }
.app-window[data-scope='geo'] .pl-pane[data-t='geo'],
.app-window[data-scope='wifi'] .pl-pane[data-t='wifi'] { display: flex; }
.pl-pane[data-t='wifi'] .pl-nets-head { margin: 4px 0 0; }
.pl-sheet .pl-map { height: 180px; }
.pl-sheet .pl-tune { grid-template-columns: 1.2fr 0.9fr 1.2fr; }
.pl-sheet .pl-tune label svg { display: none; }
.pl-sheet .pl-net { padding: 6px 12px; }

/* Bento tiles on the page: they shrink with the column, so drop what the panel shows only when wide */
.pl-tile-geo, .pl-tile-wifi { container-type: inline-size; }
@container (max-width: 760px) {
  .pl-tune label svg { display: none; }
}
@container (max-width: 460px) {
  .pl-net .nm small, .pl-nets-head .pl-pill:not(.is-white), .pl-step { display: none; }
  .pl-cell-text span { white-space: normal; }
}

.pl-tile-geo { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.pl-tile-geo .pl-map { height: 250px; }
.pl-tile-wifi { margin-top: 20px; display: flex; flex-direction: column; }
.pl-tile-wifi .pl-cell { padding: 10px 12px; }
.pl-tile-ready { margin-top: 6px; padding: 16px; border-radius: 16px; background: var(--pl-row); border: 1px solid var(--pl-line); }

@media (max-width: 720px) {
  .pl-tune { grid-template-columns: 1fr; }
  .pl-tile-geo .pl-map { height: 210px; }
  .pl-nets-head .pl-pill:not(.is-white) { display: none; }
  .pl-sheet { padding: 12px; }
  .pl-sheet .pl-tune > div:not(:nth-child(2)) { display: none; }
  .pl-card-head h4 small, .pl-card-head .pl-pill.is-white { display: none; }
  .pl-sheet .pl-map { height: 150px; }
  .pl-sheet .pl-net .nm small, .pl-sheet .pl-step { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-sheet, .pl-card, .pl-checks li::before { transition: none; }
}

/* ——— Network tab (fields, UDP · QUIC · DNS, proxy check), from the panel's profile editor ——— */
.pl-lbl { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pl-muted); }
.pl-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; white-space: nowrap; overflow: hidden; }
.pl-in.is-sel::after { content: ''; flex: none; width: 6px; height: 6px; border-right: 1.5px solid var(--pl-muted); border-bottom: 1.5px solid var(--pl-muted); transform: translateY(-2px) rotate(45deg); }
.pl-in .mono { font-family: var(--pl-mono); font-size: 12px; }
.pl-in small { color: var(--pl-muted); font-size: 11.5px; }
.pl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-uq { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-uq > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 7px; border-radius: 999px; background: #2a2a2c; border: 1px solid var(--pl-line); font-size: 12px; white-space: nowrap; }
.pl-uq > span b { font-weight: 600; }
.pl-uq > span u { text-decoration: none; font-family: var(--pl-mono); font-size: 11px; color: var(--pl-muted); }
.pl-uq > span i { position: relative; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--pl-dim); transition: background 0.3s, border-color 0.3s; }
.pl-uq > span.is-run i { border-color: var(--pl-muted); border-top-color: transparent; animation: pl-spin 0.8s linear infinite; }
.pl-uq > span.is-ok i { background: #30d158; border-color: #30d158; }
.pl-uq > span.is-ok i::after { content: ''; position: absolute; left: 4px; top: 1.5px; width: 3px; height: 6px; border: solid #0b0b0d; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.pl-btn { display: flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; font-weight: 600; }
.pl-btn.is-white { background: #fff; border-color: #fff; color: #141416; }
.pl-banner { display: flex; gap: 10px; padding: 12px 14px; border-radius: 18px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--pl-muted); font-size: 12px; }
.pl-banner > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--pl-text); }
.pl-banner b { font-family: var(--pl-mono); font-size: 13px; font-weight: 600; color: var(--pl-text); }
.pl-banner em { margin-left: 8px; padding: 2px 7px; border-radius: 4px; background: #2a2a2c; border: 1px solid var(--pl-line); font-style: normal; font-size: 10px; font-weight: 600; }
.pl-banner p { margin: 3px 0 0; color: var(--pl-text); font-size: 12px; }
.pl-banner small { display: block; margin-top: 3px; font-size: 11px; }
.pl-rows { border-radius: 12px; background: #1a1a1c; border: 1px solid var(--pl-line); overflow: hidden; }
.pl-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 11px; font-size: 12px; color: var(--pl-muted); }
.pl-rows > div:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.pl-rows > div b { font-weight: 500; color: var(--pl-text); }
.pl-reveal { opacity: 0; transform: translateY(6px); transition: opacity 0.45s, transform 0.45s; }
.pl-reveal.is-on { opacity: 1; transform: none; }

/* ——— Cookies tab: warm-up timer, switches, run ——— */
.pl-ta { padding: 9px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--pl-mono); font-size: 11.5px; line-height: 1.6; color: var(--pl-text); white-space: pre; overflow: hidden; }
.pl-ta.is-json { color: var(--pl-muted); white-space: pre-wrap; word-break: break-word; }
.pl-ta .on { color: var(--pl-text); }
.pl-robot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pl-timer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); }
.pl-timer span { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.pl-timer b { font-family: var(--pl-mono); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-timer small { font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pl-muted); }
.pl-timer i { font-style: normal; font-size: 16px; color: var(--pl-muted); }
.pl-depth { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pl-muted); }
.pl-depth b { padding: 5px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; color: var(--pl-text); letter-spacing: 0; }
.pl-chk { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.pl-chk::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pl-text); }
.pl-chk.is-off { color: var(--pl-muted); border-color: rgba(255, 255, 255, 0.07); }
.pl-chk.is-off::before { background: transparent; border: 1px solid var(--pl-muted); }
.pl-status { min-height: 16px; margin: 0; font-size: 12px; color: var(--pl-muted); }
.pl-status b { color: var(--pl-text); font-weight: 500; }

/* Proxies page in the hero: “Check all” runs over the rows */
.app-px-tr.is-checking .app-px-dot { background: #98989d; animation: pl-blink 0.7s ease-in-out infinite; }
@keyframes pl-blink { 50% { opacity: 0.25; } }

.app-window[data-scope='cookies'] .pl-sheet { opacity: 1; visibility: visible; }
.app-window[data-scope='cookies'] .pl-card { transform: none; }
.app-window[data-scope='cookies'] .pl-tabs b[data-t='cookies'] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.app-window[data-scope='cookies'] .pl-pane[data-t='cookies'] { display: flex; }
.pl-sheet .pl-pane[data-t='cookies'] .pl-ta { max-height: 92px; }

/* Bento: network check and cookie robot */
.pl-tile-net, .pl-tile-robot { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; container-type: inline-size; }
.pl-tile-mini { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
@container (max-width: 520px) {
  .pl-fields { grid-template-columns: 1fr; }
  .pl-rows > div:nth-child(n + 5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-uq > span.is-run i, .app-px-tr.is-checking .app-px-dot { animation: none; }
  .pl-reveal { transition: none; }
}

/* Mac window has no title bar above the app */
.app-window[data-os='mac'] .pl-sheet { inset: 0; border-radius: inherit; }

/* ——— App windows (Windows and Mac pages): glass over soft wallpaper light, deep shadows ——— */
.hero-stage:has(.app-window[data-os]) { position: relative; isolation: isolate; }
.hero-stage:has(.app-window[data-os])::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 6%;
  right: 6%;
  top: 6%;
  height: 74%;
  border-radius: 40px;
  pointer-events: none;
  background:
    radial-gradient(38% 52% at 22% 34%, var(--os-c1), transparent 70%),
    radial-gradient(34% 48% at 78% 26%, var(--os-c2), transparent 70%),
    radial-gradient(40% 50% at 60% 84%, var(--os-c3), transparent 72%);
  filter: blur(56px);
  opacity: 0.8;
}
.app-window[data-os] {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 38%), rgba(14, 14, 18, 0.64);
  -webkit-backdrop-filter: blur(36px) saturate(1.5);
  backdrop-filter: blur(36px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -80px 90px -60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 24px 48px -16px rgba(0, 0, 0, 0.85),
    0 70px 150px -30px rgba(0, 0, 0, 0.98),
    0 0 140px -50px var(--os-glow, rgba(70, 110, 220, 0.18));
}
.app-window[data-os] .app-wintitle { border-bottom-color: rgba(255, 255, 255, 0.06); background: transparent; }
.app-window[data-os] .app-side {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}
.app-window[data-os] .app-main {
  border-color: rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 140px), rgba(8, 8, 11, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 34px -12px rgba(0, 0, 0, 0.7);
}
.app-window[data-os] .fp-card {
  background: rgba(22, 22, 28, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 18px 36px -12px rgba(0, 0, 0, 0.8), 0 44px 90px -24px rgba(0, 0, 0, 0.95);
}
.app-window[data-os] .pl-sheet { background: rgba(0, 0, 0, 0.42); }
.app-window[data-os] .pl-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 30%), rgba(20, 20, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  backdrop-filter: blur(30px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px -14px rgba(0, 0, 0, 0.85), 0 50px 110px -20px rgba(0, 0, 0, 0.95);
}
.hero-stage:has(.app-window[data-os]) .hero-dock {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 16px 34px -14px rgba(0, 0, 0, 0.9), 0 34px 70px -24px rgba(0, 0, 0, 0.95);
}

/* Wallpaper light per system: Windows blue bloom, macOS warm and neutral */
.hero-stage:has(.app-window[data-os='win']) { --os-c1: rgba(40, 92, 220, 0.34); --os-c2: rgba(96, 72, 200, 0.26); --os-c3: rgba(0, 120, 150, 0.2); }
.hero-stage:has(.app-window[data-os='mac']) { --os-c1: rgba(150, 110, 210, 0.26); --os-c2: rgba(220, 140, 90, 0.2); --os-c3: rgba(90, 120, 200, 0.18); }
.app-window[data-os='win'] { --os-glow: rgba(70, 110, 220, 0.18); }
.app-window[data-os='mac'] { --os-glow: rgba(200, 160, 220, 0.14); }

/* ——— Each window looks like its own system ——— */
/* macOS: traffic lights, rounder corners, frosted sidebar, rounded selection */
.mac-lights { display: none; }
.app-window[data-os='mac'] { border-radius: 16px; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; }
.app-window[data-os='mac'] .mac-lights { display: flex; gap: 8px; padding: 2px 0 12px 8px; }
.app-window[data-os='mac'] .mac-lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.35); }
.app-window[data-os='mac'] .mac-lights i:nth-child(1) { background: #ff5f57; }
.app-window[data-os='mac'] .mac-lights i:nth-child(2) { background: #febc2e; }
.app-window[data-os='mac'] .mac-lights i:nth-child(3) { background: #28c840; }
.app-window[data-os='mac'] .app-side {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}
.app-window[data-os='mac'] .app-main { border-radius: 12px; }
.app-window[data-os='mac'] .app-nav.is-active,
.app-window[data-os='mac'] .app-side .app-folder.is-active { border-radius: 7px; background: rgba(255, 255, 255, 0.12); }
.app-window[data-os='mac'] .app-nav, .app-window[data-os='mac'] .app-side .app-folder { border-radius: 7px; }

/* Windows 11: square-ish corners, Segoe UI, Mica, accent bar on the selected item */
.app-window[data-os='win'] { border-radius: 10px; font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif; }
.app-window[data-os='win'] .app-wintitle { border-radius: 10px 10px 0 0; }
.app-window[data-os='win'] .app-winctl i:last-child { border-top-right-radius: 10px; }
.app-window[data-os='win'] .app-side { border-radius: 8px; background: rgba(255, 255, 255, 0.02); }
.app-window[data-os='win'] .app-main { border-radius: 8px; }
.app-window[data-os='win'] .app-nav, .app-window[data-os='win'] .app-side .app-folder { position: relative; border-radius: 5px; }
.app-window[data-os='win'] .app-nav.is-active,
.app-window[data-os='win'] .app-side .app-folder.is-active { background: rgba(255, 255, 255, 0.06); }
.app-window[data-os='win'] .app-nav.is-active::before,
.app-window[data-os='win'] .app-side .app-folder.is-active::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 14px; margin-top: -7px; border-radius: 2px; background: #60cdff;
}
.app-window[data-os='win'] .pl-card { border-radius: 10px; }
.app-window[data-os='win'] .fp-card { border-radius: 8px; }
.app-window[data-os='mac'] .pl-card { border-radius: 14px; }
