:root {
  --accent: #0a84ff;
  --green: #30d158;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --glass: rgba(255, 255, 255, 0.62);
  --stroke: rgba(255, 255, 255, 0.62);
  --shadow: 0 30px 70px rgba(80, 40, 60, 0.18);
  --win: rgba(246, 246, 248, 0.82);
  --side: rgba(255, 255, 255, 0.46);
  --line: rgba(0, 0, 0, 0.08);
  --hover: rgba(0, 0, 0, 0.06);
  --menu: rgba(255, 255, 255, 0.86);
  --ink: #1d1d1f;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

html[data-theme="dark"] {
  --text: #f5f5f7;
  --muted: #aeaeb2;
  --glass: rgba(28, 28, 32, 0.62);
  --stroke: rgba(255, 255, 255, 0.16);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.48);
  --win: rgba(28, 28, 32, 0.82);
  --side: rgba(18, 18, 22, 0.55);
  --line: rgba(255, 255, 255, 0.1);
  --hover: rgba(255, 255, 255, 0.08);
  --menu: rgba(44, 44, 48, 0.88);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #1a2f6e;
  overflow: hidden;
  overscroll-behavior: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
[hidden] { display: none !important; }

html:not(.js) .os { display: none; }
html:not(.js), html:not(.js) body { overflow: auto; height: auto; background: #f6f4f1; }
html.js .static { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -40px; z-index: 100;
  background: #fff; color: #000; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 8px; }

.os { position: relative; height: 100%; overflow: hidden; }

.wallpaper { position: absolute; inset: 0; overflow: hidden; pointer-events: none; filter: brightness(calc(0.4 + (var(--bright, 100) / 100) * 0.7)); }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, #2eb6ee 0%, #f4fbff 18%, #ffc531 36%, #ff4a3a 56%, #ff2d86 80%, #b43ad4 100%); }
.dunes { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
html[data-theme="dark"] .dunes { filter: saturate(.9) brightness(.78); }
html[data-theme="dark"][data-wall="bruxelles"] .dunes,
html[data-theme="dark"]:not([data-wall]) .dunes { filter: none; }
.sun {
  position: absolute; left: 48%; top: 46%; width: min(340px, 46vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #fff7ec 0%, #ffe3c8 36%, rgba(255, 210, 180, 0) 70%);
}
html[data-theme="dark"] .sun {
  width: min(200px, 28vw); top: 28%;
  background: radial-gradient(circle, #f7f4ee 0%, #d5d0e6 28%, rgba(40, 50, 90, 0) 70%);
}
.buildings { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; }
.buildings i { position: absolute; bottom: 0; display: block; border-radius: 8px 8px 0 0; }
.buildings i:nth-child(1) { left: 3%; width: 78px; height: 42%; background: #c989a4; }
.buildings i:nth-child(2) { left: 12%; width: 48px; height: 64%; background: #b87498; }
.buildings i:nth-child(3) { left: 20%; width: 100px; height: 34%; background: #d7a3b8; }
.buildings i:nth-child(4) { right: 30%; width: 42px; height: 28%; background: #d7a8be; }
.buildings i:nth-child(5) { right: 16%; width: 86px; height: 52%; background: #c48eaa; }
.buildings i:nth-child(6) { right: 4%; width: 58px; height: 72%; background: #a86b90; }
html[data-theme="dark"] .buildings i { filter: brightness(0.38) saturate(0.9); }
.atomium { position: absolute; width: min(380px, 46vw); right: 6%; bottom: 4%; }
.mounts, .waves, .code-bg { display: none; position: absolute; inset: 0; }
.wallpaper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

html[data-wall="aurore"] .sky {
  background:
    radial-gradient(640px 420px at 18% 18%, #ffd2a8, transparent 62%),
    radial-gradient(520px 420px at 82% 24%, #f7a4c8, transparent 60%),
    radial-gradient(700px 520px at 50% 88%, #c9b6ff, transparent 62%),
    #f7d7c8;
}
html[data-theme="dark"][data-wall="aurore"] .sky {
  background:
    radial-gradient(640px 420px at 18% 18%, #6a3a38, transparent 62%),
    radial-gradient(520px 420px at 80% 20%, #5a2a55, transparent 60%),
    radial-gradient(700px 520px at 50% 90%, #2a2458, transparent 62%),
    #140e22;
}
html[data-wall="code"] .sky { background: #0e1726; }
html[data-wall="code"] .code-bg {
  display: block; color: rgba(186, 230, 253, 0.28);
  font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre-wrap;
  padding: 56px 28px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(255,255,255,.05) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(255,255,255,.05) 28px);
}
html[data-wall="montagnes"] .sky { background: linear-gradient(180deg, #c5e4fb, #f7d7c2 58%, #d7e7d4); }
html[data-theme="dark"][data-wall="montagnes"] .sky { background: linear-gradient(180deg, #142033, #243044 50%, #1a2420); }
html[data-wall="montagnes"] .mounts { display: block; }
.mounts span { position: absolute; left: -5%; right: -5%; bottom: -10%; height: 58%; background: #8eab98; clip-path: polygon(0 70%, 12% 48%, 24% 62%, 38% 28%, 52% 58%, 66% 22%, 80% 50%, 100% 36%, 100% 100%, 0 100%); }
.mounts span:nth-child(2) { height: 42%; background: #6d907c; bottom: -16%; }
.mounts span:nth-child(3) { height: 28%; background: #4f6d5d; bottom: -20%; }
html[data-theme="dark"] .mounts span { filter: brightness(0.45); }
html[data-wall="vagues"] .sky { background: linear-gradient(180deg, #d7f0ff, #7eb6ea 55%, #3e7ec4); }
html[data-theme="dark"][data-wall="vagues"] .sky { background: linear-gradient(180deg, #102033, #16324e 50%, #0e2438); }
html[data-wall="vagues"] .waves { display: block; }
.waves span { position: absolute; left: -10%; right: -10%; height: 28%; border-radius: 50%; }
.waves span:nth-child(1) { bottom: -8%; background: rgba(255,255,255,.35); }
.waves span:nth-child(2) { bottom: -16%; background: rgba(255,255,255,.22); }
.waves span:nth-child(3) { bottom: -22%; background: rgba(20, 70, 120, .25); }
html[data-wall="uni"] .sky { background: #e4e1dc; }
html[data-theme="dark"][data-wall="uni"] .sky { background: #1c1c1e; }
html[data-wall="bruxelles"] .sun,
html[data-wall="bruxelles"] .buildings,
html[data-wall="bruxelles"] .atomium,
html:not([data-wall]) .sun,
html:not([data-wall]) .buildings,
html:not([data-wall]) .atomium { display: none; }
html[data-wall="aurore"] .dunes,
html[data-wall="code"] .dunes,
html[data-wall="montagnes"] .dunes,
html[data-wall="vagues"] .dunes,
html[data-wall="uni"] .dunes { display: none; }
html[data-wall="aurore"] .sun,
html[data-wall="aurore"] .buildings,
html[data-wall="aurore"] .atomium,
html[data-wall="code"] .sun,
html[data-wall="code"] .buildings,
html[data-wall="code"] .atomium,
html[data-wall="montagnes"] .sun,
html[data-wall="montagnes"] .buildings,
html[data-wall="montagnes"] .atomium,
html[data-wall="vagues"] .sun,
html[data-wall="vagues"] .buildings,
html[data-wall="vagues"] .atomium,
html[data-wall="uni"] .sun,
html[data-wall="uni"] .buildings,
html[data-wall="uni"] .atomium { display: none; }

.menubar {
  position: absolute; z-index: 40; top: 0; left: 0; right: 0; height: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 12px; font-size: 13px; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  backdrop-filter: blur(18px) saturate(1.4);
}
html[data-theme="dark"] .menubar { background: linear-gradient(180deg, rgba(0,0,0,.28), transparent); }
html[data-theme="dark"][data-wall="bruxelles"] .menubar,
html[data-theme="dark"]:not([data-wall]) .menubar { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0)); }
html[data-ink="light"] { --ink: #f5f5f7; }
html[data-ink="dark"] { --ink: #1d1d1f; }
.mb-left, .mb-right, .cluster { display: flex; align-items: center; gap: 2px; }
.mb-app { font-weight: 700; padding-inline: 8px; }
.mb-btn, .cluster button {
  border: 0; background: transparent; color: inherit; border-radius: 6px;
  padding: 3px 10px; line-height: 1.2;
}
.mb-btn:hover, .cluster button:hover, .dicon:hover { background: rgba(127,127,127,.16); }
.avatar {
  width: 22px; height: 22px; border-radius: 50%; display: block; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4);
}
.cluster {
  height: 26px; padding: 0 4px 0 10px; border-radius: 999px; gap: 2px;
  background: rgba(255,255,255,.32); border: 1px solid rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  backdrop-filter: blur(16px) saturate(1.6);
}
html[data-ink="light"] .cluster { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.12); }
.dispo { display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; font-weight: 600; }
.dispo i, .kicker i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, .18);
}
.clock-btn { font-variant-numeric: tabular-nums; }

.desktop { position: absolute; inset: 0; z-index: 1; }
.nc {
  position: fixed; z-index: 35; top: 42px; right: 10px; bottom: 12px;
  width: min(380px, calc(100vw - 20px));
  display: flex; flex-direction: column; gap: 12px; overflow: auto;
  padding: 4px 6px 8px;
}
.nc-bar { display: flex; justify-content: flex-end; flex: none; }
.nc-x, .notif-x {
  width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(60, 60, 67, .78); color: #fff; font-size: 15px; line-height: 1;
  display: grid; place-items: center;
}
.nc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: none; }
.cal-widget, .clock-widget {
  min-height: 158px; border-radius: 22px; border: 0; text-align: left;
  padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 10px 28px rgba(0,0,0,.16); cursor: default;
}
.cal-widget { background: #fff; color: #1d1d1f; }
.cal-wd { color: #ff3b30; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.cal-day { font-size: 64px; font-weight: 300; letter-spacing: -0.05em; line-height: .9; }
.cal-empty { color: #8e8e93; font-size: 14px; }
.clock-widget {
  background: rgba(28, 28, 32, .88); color: #f5f5f7;
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(1.4);
}
.cw-time { font-size: 42px; font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cw-date { font-size: 14px; color: rgba(245,245,247,.72); line-height: 1.3; }
.update-widget {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 12px; border-radius: 22px; text-decoration: none; color: var(--text);
  background: var(--glass); border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.55);
  backdrop-filter: blur(28px) saturate(1.8);
}
.update-widget:hover { filter: brightness(1.04); }
.uw-icon {
  width: 48px; height: 48px; flex: none; border-radius: 14px;
  display: block; object-fit: cover; object-position: center 22%;
  box-shadow: 0 8px 16px rgba(0,0,0,.22);
}
.uw-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uw-copy b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.uw-copy small { color: var(--muted); font-size: 13px; }
.uw-btn {
  flex: none; background: #007aff; color: #fff; font-weight: 650; font-size: 13px;
  border-radius: 999px; padding: 7px 12px;
}
.widget {
  position: relative; width: auto; flex: none;
  padding: 18px 18px 16px; border-radius: 22px; color: var(--text);
  background: var(--glass); border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.55);
  backdrop-filter: blur(28px) saturate(1.8);
}
.widget .kicker { margin: 0; color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.widget h2 { margin: 8px 0 2px; font-size: 34px; letter-spacing: -0.04em; line-height: 1.05; }
.widget .role { margin: 0 0 14px; font-size: 15px; }
.widget .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: rgba(255,255,255,.72); color: var(--accent); }
html[data-theme="dark"] .btn.ghost { background: rgba(255,255,255,.12); color: #8ec5ff; }

.icons {
  position: absolute; z-index: 1; left: 14px; top: 48px;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, 108px);
  grid-auto-columns: 104px; align-content: start;
}
.dicon {
  width: 96px; height: 100px; border: 0; background: transparent; color: var(--ink);
  border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px;
}
.dicon.on { background: rgba(10, 132, 255, .28); }
.dicon .glyph, .ditem .glyph, .iglyph { position: relative; display: grid; place-items: center; }
.dicon .glyph { width: 58px; height: 58px; }
.dicon .glyph svg, .ditem .glyph svg, .iglyph svg { width: 100%; height: 100%; display: block; }
.dicon .glyph svg { filter: drop-shadow(0 10px 12px rgba(0,0,0,.16)); }
.dicon .lb {
  font-size: 12px; line-height: 1.2; text-align: center; max-width: 96px;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html[data-ink="light"] .dicon .lb { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
html[data-wall="bruxelles"] .dicon .lb,
html:not([data-wall]) .dicon .lb {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 4px rgba(0,0,0,.45);
}
.dicon.on .lb { background: rgba(10,132,255,.85); color: #fff; border-radius: 6px; padding: 0 4px; text-shadow: none; }

.dock {
  position: absolute; z-index: 30; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 14px; padding: 12px 18px 8px;
  border-radius: 28px; background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 16px 40px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.55);
  backdrop-filter: blur(28px) saturate(1.8);
  overflow: visible;
}
html[data-theme="dark"] .dock { background: rgba(20,20,24,.38); border-color: rgba(255,255,255,.14); }
.ditem {
  position: relative; width: 54px; height: 58px; border: 0; background: transparent; padding: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
.ditem .glyph {
  width: 52px; height: 52px; border-radius: 22%; overflow: hidden;
  transform: scale(var(--s, 1)); transform-origin: bottom center;
  box-shadow: 0 8px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35);
}
.ditem .tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: rgba(40,40,44,.88); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none;
}
.ditem:hover .tip, .ditem:focus-visible .tip { opacity: 1; }
.ditem .dot {
  position: absolute; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; background: rgba(0,0,0,.55);
  opacity: 0;
}
html[data-theme="dark"] .ditem .dot { background: #fff; }
.ditem.running .dot { opacity: 1; }
.badge {
  position: absolute; top: -4px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; z-index: 1;
}
.ditem .glyph:has(svg.logo),
.dicon .glyph:has(svg.logo),
.iglyph:has(svg.logo) {
  border-radius: 0; overflow: visible; box-shadow: none; background: transparent;
}
.ditem .glyph:has(svg.logo) svg,
.iglyph:has(svg.logo) svg { filter: drop-shadow(0 8px 10px rgba(0,0,0,.22)); }
.dsep { width: 1px; height: 42px; align-self: center; background: rgba(0,0,0,.18); margin: 0 8px; }

#windows { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.window {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  min-width: 340px; min-height: 260px; border-radius: var(--radius); overflow: hidden;
  background: var(--win); color: var(--text); border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.4);
  backdrop-filter: blur(30px) saturate(1.6);
}
.window.min { display: none; }
.titlebar {
  height: 52px; display: grid; grid-template-columns: 88px 1px 1fr; align-items: center;
  padding: 0 12px; cursor: grab; user-select: none; flex: none;
}
.titlebar:active { cursor: grabbing; }
.traffic { display: flex; gap: 8px; }
.tl {
  width: 14px; height: 14px; border-radius: 50%; border: 0; padding: 0; position: relative;
}
.tl.close { background: #ff5f57; }
.tl.min { background: #febc2e; }
.tl.zoom { background: #28c840; }
.window:not(.front) .tl { filter: grayscale(1) brightness(1.15); }
.tl svg { position: absolute; inset: 0; margin: auto; opacity: 0; }
.window.front .titlebar:hover .tl svg { opacity: 1; }
.wtitle { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; }
.wtitle .mini { width: 16px; height: 16px; }
.wbody { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.resize {
  position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; z-index: 2;
}

.popup, .cc, .alert-card {
  position: fixed; z-index: 80; min-width: 230px; padding: 6px; border-radius: 14px;
  background: var(--menu); color: var(--text); border: 1px solid var(--stroke);
  box-shadow: var(--shadow); backdrop-filter: blur(24px) saturate(1.6);
}
.popup button, .ctx button {
  width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px;
  padding: 6px 10px; display: flex; justify-content: space-between; gap: 16px;
}
.popup button:hover:not(:disabled), .ctx button:hover { background: var(--accent); color: #fff; }
.popup button:disabled { opacity: .35; }
.popup hr, .ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.popup kbd { opacity: .55; font-family: var(--font); }

.cc {
  width: min(372px, calc(100vw - 16px)); padding: 12px; border-radius: 22px;
  max-height: calc(100vh - 64px); overflow: auto; color: #1d1d1f;
  background: rgba(196, 196, 202, .62); border-color: rgba(255,255,255,.45);
}
html[data-theme="dark"] .cc { color: #f5f5f7; background: rgba(44, 44, 48, .78); border-color: rgba(255,255,255,.12); }
.cc-top { display: grid; grid-template-columns: 1.18fr .92fr; grid-template-rows: 1fr auto; gap: 10px; }
.cc-stack {
  grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(255,255,255,.58); border-radius: 18px; padding: 6px;
}
.cc-link, .cc-tile, .cc-slide, .cc-music, .cc-lock {
  border: 0; color: inherit; background: rgba(255,255,255,.58);
}
.cc-link {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: transparent; border-radius: 14px; padding: 8px;
}
.cc-link b, .cc-link small { display: block; }
.cc-link b { font-size: 14px; font-weight: 650; }
.cc-link small { font-size: 12px; font-weight: 500; color: #6e6e73; }
.cc-ico {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #0a84ff; color: #fff;
}
.cc-link.off .cc-ico, .cc-tile.off .cc-ico { background: #8e8e93; }
.cc-tile.focus { grid-column: 2; grid-row: 1; min-height: 92px; }
.cc-pair { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-tile {
  border-radius: 18px; text-align: left; padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  min-height: 78px; font-size: 12px; font-weight: 650; line-height: 1.15;
}
.cc-tile.on { box-shadow: inset 0 0 0 2px rgba(10,132,255,.55); }
.cc-slide, .cc-music { display: block; width: 100%; margin-top: 10px; border-radius: 18px; padding: 10px 12px 12px; text-align: left; }
.cc-slide b, .cc-music b { font-size: 13px; font-weight: 650; }
.cc-range { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cc-range-ico { color: #3a3a3c; display: grid; }
.cc input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 28px; border-radius: 999px; margin: 0;
  background: linear-gradient(90deg, #fff var(--p, 80%), rgba(120,120,128,.38) var(--p, 80%));
}
.cc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.28); border: 0;
}
.cc-air {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(120,120,128,.28);
  color: #1d1d1f; display: grid; place-items: center; flex: none; padding: 0;
}
.cc-air.on { background: #0a84ff; color: #fff; }
.cc-music { display: flex; align-items: center; gap: 10px; }
.cc-note {
  width: 36px; height: 36px; border-radius: 8px; background: #ff2d55; color: #fff;
  display: grid; place-items: center; flex: none;
}
.cc-music b { flex: 1; }
.cc-transport { display: flex; gap: 2px; }
.cc-transport button {
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: inherit; padding: 0;
}
.cc-transport button:hover, .cc-link:hover, .cc-tile:hover, .cc-air:hover { filter: brightness(1.05); }
.cc-lock { width: 100%; margin-top: 10px; border-radius: 14px; padding: 10px 12px; font-weight: 650; }
html[data-theme="dark"] .cc-stack,
html[data-theme="dark"] .cc-tile,
html[data-theme="dark"] .cc-slide,
html[data-theme="dark"] .cc-music,
html[data-theme="dark"] .cc-lock { background: rgba(255,255,255,.12); }
html[data-theme="dark"] .cc-link small,
html[data-theme="dark"] .cc-range-ico { color: #d1d1d6; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs button { height: 52px; border-radius: 12px; border: 2px solid transparent; padding: 0; }
.thumbs button.on { border-color: var(--accent); }
.th-bruxelles { background: linear-gradient(145deg, #1a338f, #c12d66 58%, #ff8636); }
.th-aurore { background: linear-gradient(135deg, #ffd1a8, #f7a6c8 50%, #c7b6ff); }
.th-code { background: linear-gradient(180deg, #16324e, #0e1726); }
.th-montagnes { background: linear-gradient(#c5dff5, #6d907c); }
.th-vagues { background: linear-gradient(#b7e3ff, #3a7bd5); }
.th-uni { background: linear-gradient(#eee, #c8c4be); }

.notif {
  position: relative; width: 100%; flex: none;
  display: flex; gap: 10px; align-items: center; text-align: left;
  padding: 12px; border-radius: 18px; border: 1px solid rgba(0,0,0,.06);
  background: rgba(246, 246, 248, .94); color: #1d1d1f; box-shadow: 0 10px 28px rgba(0,0,0,.16);
  backdrop-filter: blur(20px) saturate(1.6); cursor: pointer;
}
.notif-x { position: absolute; top: -8px; left: -8px; }
.notif b { display: block; }
.notif small { color: var(--muted); }

.alert-back {
  position: fixed; inset: 0; z-index: 85; display: grid; place-items: center;
  background: rgba(0,0,0,.18);
}
.alert-card { position: relative; width: min(420px, calc(100% - 32px)); padding: 22px; text-align: center; }
.alert-card h2 { margin: 0 0 8px; font-size: 17px; }
.alert-card p { margin: 0 0 16px; color: var(--muted); }
.alert-card .btn { min-width: 120px; }

.finder { flex: 1; min-height: 0; display: flex; }
.fbar, .sheet-bar {
  display: flex; align-items: center; gap: 6px; padding: 0 10px 8px; flex: none;
}
.fbar button, .icon-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(127,127,127,.12);
}
.fbar button:disabled { opacity: .35; }
.fpath { font-size: 13px; font-weight: 650; }
.fcount { margin-left: auto; color: var(--muted); font-size: 12px; }
.side {
  width: 210px; flex: none; overflow: auto; padding: 8px; background: var(--side);
  border-right: 1px solid var(--line);
}
.side p { margin: 12px 8px 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.side button, .nlist button, .vs-file, .mside button {
  width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px;
  padding: 7px 8px; display: flex; gap: 8px; align-items: center;
}
.side button.on, .nlist button.on, .vs-file.on, .mside button.on { background: var(--accent); color: #fff; }
.side .tree { display: contents; }
.side .branch { position: relative; }
.side .branch > button { width: 100%; padding-right: 28px; }
.side .branch > button.twist {
  position: absolute; right: 2px; top: 0; bottom: 0; width: 26px; height: auto;
  padding: 0; justify-content: center; color: var(--muted); background: transparent;
}
.side .branch:has(> button.on) > .twist { color: #fff; }
.side .twist svg { transition: transform .15s ease; }
.side .tree:not(.folded) .twist svg { transform: rotate(90deg); }
.side .kids { display: flex; flex-direction: column; }
.side .tree.folded .kids { display: none; }
.side button.sub { padding-left: 30px; }
.main { flex: 1; min-width: 0; overflow: auto; padding: 18px 22px 28px; }
.places { display: flex; flex-wrap: wrap; gap: 8px; }
.place {
  width: 108px; border: 0; background: transparent; border-radius: 12px; padding: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.place:hover, .pcard:hover { background: var(--hover); }
.place .glyph { width: 52px; height: 52px; }
.rows { width: 100%; border-collapse: collapse; font-size: 14px; }
.rows th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px; }
.rows td { padding: 8px 6px; border-top: 1px solid var(--line); }
.rows button { border: 0; background: transparent; padding: 0; font-weight: 600; }

.doc h1 { margin: 0 0 8px; letter-spacing: -0.03em; }
.doc .lead { font-size: 17px; line-height: 1.45; }
.doc h2 { margin: 22px 0 8px; font-size: 18px; }
.item { padding: 12px 0; border-top: 1px solid var(--line); }
.item .when { color: var(--muted); font-size: 12px; }
.brief { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 16px 0; max-width: 560px; }
.brief dt { color: var(--muted); }
.brief dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; list-style: none; }
.chips li, .stack span {
  background: rgba(127,127,127,.12); border-radius: 999px; padding: 4px 10px; font-size: 13px;
}
.levels { display: grid; gap: 14px; }
.levels h3 { margin: 0 0 6px; font-size: 14px; }

.pcard {
  width: 100%; display: flex; gap: 14px; text-align: left; border: 0; background: transparent;
  border-radius: 16px; padding: 10px; margin-bottom: 8px;
}
.plogo, .plogo.fallback {
  width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none;
  background: rgba(127,127,127,.12); display: grid; place-items: center; font-weight: 700;
}
.pcard b, .pcard small, .pcard .muted { display: block; }
.pcard small, .muted { color: var(--muted); }
.project h1 { margin: 0; letter-spacing: -0.03em; }
.ph { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.kicker-p { color: var(--muted); margin: 0; }
.punch { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.gallery button, .gallery video {
  border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #111; width: 100%;
}
.gallery img, .gallery video { width: 100%; height: auto; max-height: 460px; object-fit: contain; display: block; background: #111; }
.photos-lib { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.album { margin: 0 0 22px; }
.album-title {
  border: 0; background: transparent; color: inherit; cursor: pointer;
  font: 650 17px/1.2 var(--font); padding: 0 0 8px;
}
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 3px; }
.photo-grid button { aspect-ratio: 1; border: 0; padding: 0; overflow: hidden; background: #1c1c1e; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbx {
  position: absolute; inset: 0; background: rgba(0,0,0,.82); display: grid; place-items: center; z-index: 3;
}
.lbx img { max-width: 92%; max-height: 92%; object-fit: contain; }
.lbx button { position: absolute; top: 12px; right: 12px; }

.paper {
  width: min(720px, 100%); margin: 8px auto; background: #fff; color: #1d1d1f;
  border-radius: 4px; padding: 36px 40px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
html[data-theme="dark"] .paper { background: #f4f4f5; }
.paper h1 { margin: 0; font-size: 28px; }
.paper h2 { font-size: 15px; border-bottom: 1px solid #ddd; padding-bottom: 4px; margin-top: 18px; }
.contact-card { display: flex; gap: 16px; align-items: center; }
.contact-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.textedit pre {
  margin: 0; padding: 22px 24px; white-space: pre-wrap; font-family: var(--font);
  font-size: 16px; line-height: 1.5;
}

.msgs { flex: 1; min-height: 0; display: flex; }
.mside { width: 230px; flex: none; border-right: 1px solid var(--line); padding: 8px; overflow: auto; }
.mside small { display: block; opacity: .8; font-weight: 400; }
.mconv { flex: 1; min-width: 0; display: flex; flex-direction: column; background: color-mix(in srgb, var(--win) 70%, transparent); }
.mstream { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: min(78%, 460px); padding: 8px 12px; border-radius: 18px; line-height: 1.35; }
.bubble.them { align-self: flex-start; background: rgba(127,127,127,.16); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; }
.bubble a { color: var(--accent); text-decoration: underline; }
.bubble.me a { color: #fff; }
.mreplies { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 12px; }
.mreplies button, .bubble.action button {
  border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); padding: 6px 10px;
}
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; background: rgba(127,127,127,.16); border-radius: 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }

.mail { display: flex; flex-direction: column; height: 100%; }
.mail label { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.mail label span { width: 64px; color: var(--muted); }
.mail input, .mail textarea {
  flex: 1; border: 0; background: transparent; outline: none; resize: none;
}
.mail textarea { min-height: 180px; padding: 12px; }
.mail-bar { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.sent { color: var(--green); margin: 0; font-size: 13px; }

.term {
  flex: 1; margin: 0 10px 10px; border-radius: 12px; background: #1c1c1e; color: #f2f2f2;
  font-family: var(--mono); font-size: 13px; padding: 12px; overflow: auto; min-height: 0;
}
.term .out { white-space: pre-wrap; }
.term .pr { color: #7ee787; }
.term input { border: 0; background: transparent; color: inherit; outline: none; width: min(100%, 420px); font: inherit; }

.vsc { flex: 1; min-height: 0; display: flex; background: #1e1e1e; color: #d4d4d4; }
html[data-theme="light"] .vsc { background: #f8f8f8; color: #1d1d1f; }
.vs-act { width: 48px; flex: none; background: #333; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 12px; }
html[data-theme="light"] .vs-act { background: #e8e8e8; }
.vs-act i { width: 22px; height: 22px; border-radius: 4px; background: currentColor; opacity: .7; }
.vs-tree { width: 210px; flex: none; overflow: auto; border-right: 1px solid rgba(127,127,127,.2); padding: 8px; font-size: 13px; }
.vs-h { margin: 4px 6px; font-size: 11px; letter-spacing: .06em; opacity: .6; }
.vs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vs-tabs { display: flex; background: rgba(127,127,127,.08); overflow: auto; }
.vs-tabs button { border: 0; background: transparent; color: inherit; padding: 8px 10px; display: flex; gap: 8px; align-items: center; opacity: .7; }
.vs-tabs button.on { background: rgba(127,127,127,.16); opacity: 1; }
.vs-code { flex: 1; overflow: auto; padding: 8px 0; }
.code { display: grid; grid-template-columns: auto 1fr; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
.ln { color: #888; text-align: right; padding: 0 12px; user-select: none; }
.k { color: #9cdcfe; } .s { color: #ce9178; } .n { color: #b5cea8; } .b { color: #569cd6; }
html[data-theme="light"] .k { color: #0451a5; }
html[data-theme="light"] .s { color: #a31515; }
.vs-status { height: 24px; background: #007acc; color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 10px; font-size: 12px; }

.notes { flex: 1; min-height: 0; display: flex; background: #fff8dc; color: #1d1d1f; }
.nlist { width: 200px; background: #f3e2a4; padding: 8px; overflow: auto; }
.nview { flex: 1; padding: 18px 20px; overflow: auto; }
.nview h1 { margin-top: 0; }
.notes code { background: #1d1d1f; color: #b6f5c2; padding: 2px 6px; border-radius: 6px; }

.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.walls button { border: 2px solid transparent; border-radius: 16px; overflow: hidden; padding: 0; background: transparent; text-align: left; color: inherit; }
.walls button.on { border-color: var(--accent); }
.walls .preview { height: 110px; }
.walls span { display: block; padding: 8px 10px; font-weight: 600; }

.clockapp { flex: 1; display: grid; place-items: center; text-align: center; padding: 12px; }
.face {
  width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 12px; position: relative;
  background: radial-gradient(circle at 40% 35%, #fff, #ececf1); box-shadow: inset 0 0 0 8px #1d1d1f, 0 12px 30px rgba(0,0,0,.12);
}
html[data-theme="dark"] .face { background: radial-gradient(circle at 40% 35%, #2c2c2e, #1c1c1e); box-shadow: inset 0 0 0 8px #f5f5f7; }
.hand { position: absolute; left: 50%; bottom: 50%; transform-origin: bottom center; border-radius: 4px; }
.hand.h { width: 4px; height: 48px; background: var(--text); margin-left: -2px; }
.hand.m { width: 3px; height: 68px; background: var(--text); margin-left: -1.5px; }
.hand.s { width: 2px; height: 74px; background: #ff453a; margin-left: -1px; }
.face .cap { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; transform: translate(-50%, -50%); }
.bigtime { font-size: 42px; font-weight: 700; letter-spacing: -0.04em; margin: 8px 0; font-variant-numeric: tabular-nums; }

.store { padding: 8px 8px 20px; overflow: auto; }
.st-h { display: flex; gap: 14px; align-items: center; }
.st-h img { width: 84px; height: 84px; border-radius: 22%; object-fit: cover; }
.st-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.st-info div { text-align: center; }
.st-info dt { color: var(--muted); font-size: 11px; }
.st-info dd { margin: 2px 0 0; font-weight: 650; }
.ver { display: grid; grid-template-columns: 88px 110px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }

.mm, .g2048 { position: relative; padding: 12px 16px 16px; overflow: auto; }
.term .line { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.main a { color: var(--accent); }
.mm-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pegs { display: flex; gap: 6px; }
.peg, .keypeg {
  width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(127,127,127,.16); box-shadow: inset 0 2px 4px rgba(0,0,0,.12);
}
.keypeg { width: 12px; height: 12px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 32px; }
.palette { display: flex; gap: 8px; margin: 12px 0; }
.c0 { background: #ff3b30; } .c1 { background: #0a84ff; } .c2 { background: #30d158; }
.c3 { background: #ffd60a; } .c4 { background: #bf5af2; } .c5 { background: #ff9f0a; }
.peg.filled { box-shadow: inset 0 -6px 8px rgba(0,0,0,.18); }
.keypeg.black { background: #1d1d1f; } .keypeg.white { background: #f2f2f7; box-shadow: inset 0 0 0 1px #bbb; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #bbada0; padding: 8px; border-radius: 12px; touch-action: none; }
.tile { height: 72px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 26px; background: rgba(238,228,218,.35); color: #776e65; }
.scores { display: flex; gap: 8px; margin-bottom: 10px; }
.scores div { background: #bbada0; color: #fff; border-radius: 8px; padding: 6px 10px; min-width: 72px; }
.scores b { display: block; font-size: 20px; }
.overlay {
  position: absolute; inset: 48px 16px 16px; background: rgba(255,255,255,.72); border-radius: 12px;
  display: grid; place-items: center; text-align: center; gap: 8px;
}

.ios { display: none; }
.lock { display: none; }

@media (max-width: 900px) {
  html .dunes,
  html[data-theme="dark"] .dunes,
  html[data-theme="dark"][data-wall="bruxelles"] .dunes,
  html[data-theme="dark"]:not([data-wall]) .dunes {
    transform: scale(1.12);
    filter: blur(18px);
  }
  .menubar, .desktop, .dock, #windows, .nc { display: none !important; }
  .ios { display: flex; flex-direction: column; height: 100%; position: relative; z-index: 2; }
  .status {
    height: calc(58px + env(safe-area-inset-top));
    padding: calc(12px + env(safe-area-inset-top)) 26px 0;
    display: flex; align-items: center; justify-content: space-between;
    color: #1d1d1f; font-weight: 650; position: relative; flex: none;
  }
  .st-time { font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; padding-bottom: 0; }
  .st-right { display: flex; align-items: center; gap: 5px; border: 0; background: transparent; color: inherit; padding-bottom: 0; }
  .st-right .dispo { display: none; }
  .island {
    position: absolute; left: 50%; top: calc(11px + env(safe-area-inset-top)); transform: translateX(-50%);
    width: 126px; height: 37px; background: #000; border-radius: 20px; z-index: 3;
    display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden;
    transition: width .35s ease, height .35s ease;
  }
  .ios.ping .st-time, .ios.ping .st-right { opacity: 0; }
  .island.exp { width: min(300px, 82vw); height: 58px; border-radius: 29px; justify-content: flex-start; padding: 0 14px; gap: 10px; }
  .island .ping-copy { display: none; text-align: left; }
  .island.exp .ping-copy { display: block; }
  .island small { display: block; opacity: .7; font-weight: 500; }
  .pages {
    flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .pages::-webkit-scrollbar { display: none; }
  .page { min-width: 100%; scroll-snap-align: start; padding: 4px 22px 0; box-sizing: border-box; }
  .ios-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
  .ios-w {
    position: relative; height: 158px; border: 0; padding: 0; border-radius: 22px; overflow: hidden;
    text-align: left; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18);
  }
  .clockw {
    background: linear-gradient(160deg, #5aa7ff 0%, #2f6fe0 55%, #1d4fb8 100%);
    display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
    padding: 14px 14px 12px;
  }
  .w-city { font-size: 15px; font-weight: 600; }
  .w-big { font-size: 42px; font-weight: 300; letter-spacing: -0.04em; line-height: .9; }
  .w-sub { font-size: 13px; font-weight: 500; opacity: .92; }
  .photow img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
  .w-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,.62));
    display: flex; flex-direction: column; gap: 1px;
  }
  .w-cap b, .w-cap small { display: block; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
  .w-cap b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .w-cap small { font-size: 12px; font-weight: 500; opacity: .95; }
  .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 6px; justify-items: center; }
  .app {
    position: relative;
    width: 76px; border: 0; background: transparent; color: #fff; padding: 0;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
  }
  .iglyph {
    width: 60px; height: 60px; border-radius: 22%; overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,.22);
  }
  .app small {
    font-size: 12px; font-weight: 500; color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.75);
    max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .ios-searchrow { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 10px; flex: none; }
  .dots { display: flex; justify-content: center; gap: 7px; padding: 0; }
  .dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; }
  .dots button.on { background: #fff; }
  .ios-dock {
    margin: 0 16px 2px; padding: 14px 12px; border-radius: 38px;
    display: flex; justify-content: space-evenly; align-items: center;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
    backdrop-filter: blur(28px) saturate(1.8);
    position: relative; flex: none;
  }
  html[data-theme="dark"] .ios-dock { background: rgba(30,30,34,.42); }
  .ios-dock .app { width: auto; }
  .ios-dock .iglyph { width: 58px; height: 58px; box-shadow: none; }
  .ios-dock .badge { top: -2px; right: -2px; }
  .home-ind {
    width: 136px; height: 5px; border-radius: 4px; margin: 8px auto calc(6px + env(safe-area-inset-bottom));
    background: rgba(0,0,0,.45); border: 0; padding: 0; flex: none;
  }
  .ios.busy .pages, .ios.busy .ios-dock, .ios.busy .ios-searchrow { filter: blur(18px) saturate(1.1); transform: scale(.97); pointer-events: none; }
  .sheet {
    position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; top: calc(58px + env(safe-area-inset-top));
    display: flex; flex-direction: column; border-radius: 26px 26px 0 0; overflow: hidden;
    background: var(--win); color: var(--text); box-shadow: var(--shadow);
  }
  .sheet-bar { height: 48px; padding: 0 8px; border-bottom: 1px solid var(--line); }
  .sheet-bar h2 { flex: 1; text-align: center; font-size: 16px; margin: 0; }
  .sheet-bar .back {
    appearance: none; width: auto; height: 44px; margin-left: -4px;
    padding: 0 8px 0 2px; border: 0; border-radius: 10px; background: transparent;
    color: #007aff; font: 400 17px/1 var(--font); letter-spacing: -0.024em;
    display: inline-flex; align-items: center; gap: 4px;
  }
  html[data-theme="dark"] .sheet-bar .back { color: #0a84ff; }
  .sheet-bar .back svg { display: block; flex: none; }
  .sheet-bar .back:active { opacity: .4; }
  .lock.show {
    display: flex; position: absolute; inset: 0; z-index: 25; flex-direction: column;
    align-items: center; justify-content: space-between; padding: calc(72px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
    color: var(--ink); text-align: center;
  }
  body:has(.lock.show) .status,
  body:has(.lock.show) .pages,
  body:has(.lock.show) .ios-searchrow,
  body:has(.lock.show) .ios-dock,
  body:has(.lock.show) .home-ind { visibility: hidden; }
  .lock-time { font-size: 86px; font-weight: 700; letter-spacing: -0.05em; line-height: .9; margin: 0; }
  .lock-date { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
  .lock-card {
    width: min(360px, 100%); text-align: left; padding: 14px 16px; border-radius: 22px;
    background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(16px);
  }
  .hint { opacity: .8; font-size: 13px; }
  .finder { flex-direction: column; }
  .side { width: auto; display: flex; gap: 4px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side p { display: none; }
  .side button { width: auto; white-space: nowrap; }
  .side .kids { flex-direction: row; gap: 4px; }
  .side button.sub { padding-left: 8px; }
  .mside { display: none; }
  .st-info { grid-template-columns: repeat(2, 1fr); }
  .brief { grid-template-columns: 1fr; }
  .paper { padding: 22px 16px; }
  .ver { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .island, .sheet, .window, .ditem .glyph { transition: none !important; animation: none !important; }
}

.static { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.static h1 { letter-spacing: -0.03em; }
.static a { color: var(--accent); }
.static article { border-top: 1px solid var(--line); padding-top: 8px; }
