/* SpidroinOS — core/ui.css
 * Visual identity: "spider silk" — pearly translucent glass, an iridescent thread on the focused window,
 * soft depth. Apps add their own styles from inside their plugin file (OS.util.css).
 */

/* ---------- Tokens ---------- */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", ui-monospace, Consolas, "SF Mono", monospace;
  --fg: #eceaf6; --fg-2: #cbc8dc; --muted: #9b98b0;
  --glass: rgba(26, 25, 40, 0.68); --glass-strong: rgba(30, 29, 46, 0.9); --glass-border: rgba(255, 255, 255, 0.10);
  --bar: rgba(16, 15, 28, 0.42);
  --panel: rgba(255, 255, 255, 0.045); --panel-2: rgba(255, 255, 255, 0.085); --hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.085);
  --shadow: 0 28px 70px -16px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.28);
  --accent: #8b7cf6; --accent-rgb: 139, 124, 246;
  --silk: linear-gradient(135deg, #a5f3fc, #c4b5fd 50%, #f9a8d4);
  --danger: #f87171; --ok: #34d399; --warn: #fbbf24;
  --radius: 14px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --fg: #1e1c2b; --fg-2: #3c3950; --muted: #6d6a83;
  --glass: rgba(248, 247, 252, 0.74); --glass-strong: rgba(251, 250, 255, 0.94); --glass-border: rgba(255, 255, 255, 0.75);
  --bar: rgba(255, 255, 255, 0.45);
  --panel: rgba(30, 25, 60, 0.035); --panel-2: rgba(30, 25, 60, 0.07); --hover: rgba(30, 25, 60, 0.055);
  --border: rgba(30, 25, 60, 0.09);
  --shadow: 0 28px 70px -18px rgba(40, 30, 80, 0.35), 0 6px 18px rgba(40, 30, 80, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font: 13.5px/1.45 var(--font); color: var(--fg); background: #0b0c18; -webkit-font-smoothing: antialiased; user-select: none; }
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea, [contenteditable] { user-select: text; }
button { cursor: pointer; }
.hidden { display: none !important; }
.icon { flex-shrink: 0; display: block; }
::selection { background: rgba(var(--accent-rgb), 0.45); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
::-webkit-scrollbar-corner { background: transparent; }
:focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.8); outline-offset: 1px; }

/* ---------- Wallpapers ---------- */
#wallpaper { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; transition: background .6s; }
#wallpaper canvas { position: absolute; inset: 0; }
.wp-silk { background:
  radial-gradient(1200px 800px at 68% 28%, rgba(139, 124, 246, .38), transparent 60%),
  radial-gradient(900px 700px at 12% 82%, rgba(34, 184, 207, .26), transparent 60%),
  radial-gradient(700px 520px at 92% 92%, rgba(244, 114, 182, .2), transparent 60%),
  linear-gradient(160deg, #0d0e1c, #17153a 45%, #0b1828); }
.wp-live { background:
  radial-gradient(1000px 700px at 64% 38%, rgba(124, 108, 240, .28), transparent 62%),
  radial-gradient(800px 600px at 10% 90%, rgba(20, 160, 190, .18), transparent 60%),
  linear-gradient(165deg, #090a16, #13112e 50%, #08131f); }
.wp-aurora { background:
  radial-gradient(1000px 620px at 18% 18%, rgba(52, 211, 153, .45), transparent 60%),
  radial-gradient(900px 700px at 82% 28%, rgba(139, 92, 246, .5), transparent 62%),
  radial-gradient(1000px 600px at 50% 105%, rgba(14, 165, 233, .38), transparent 60%), #071021; }
.wp-lagoon { background:
  radial-gradient(1100px 700px at 75% 20%, rgba(34, 211, 238, .4), transparent 60%),
  radial-gradient(800px 600px at 10% 80%, rgba(59, 130, 246, .35), transparent 60%),
  linear-gradient(180deg, #0e3a5b, #072238 60%, #04121f); }
.wp-dawn { background:
  radial-gradient(900px 600px at 70% 15%, rgba(255, 255, 255, .45), transparent 60%),
  linear-gradient(160deg, #fbc2a5 0%, #f6a5c0 35%, #b9a5f6 70%, #8fb8f6 100%); }
.wp-graphite { background: radial-gradient(1400px 900px at 50% -10%, #44454f, transparent 70%), radial-gradient(800px 600px at 90% 100%, rgba(var(--accent-rgb), .18), transparent 60%), #18191f; }
.wp-pearl { background:
  radial-gradient(800px 600px at 20% 20%, rgba(196, 181, 253, .55), transparent 60%),
  radial-gradient(800px 600px at 85% 30%, rgba(165, 243, 252, .55), transparent 60%),
  radial-gradient(900px 700px at 60% 100%, rgba(249, 168, 212, .45), transparent 60%), #f4f2fa; }
.wp-meadow { background:
  radial-gradient(900px 600px at 80% 18%, rgba(250, 204, 21, .32), transparent 60%),
  radial-gradient(900px 700px at 10% 90%, rgba(45, 212, 191, .28), transparent 60%),
  linear-gradient(170deg, #12403d, #175c3a 55%, #3f6212); }
.wp-image { background-color: #111; }

/* ---------- Boot ---------- */
.screen { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; }
#boot { z-index: 1000; background: radial-gradient(800px 500px at 50% 45%, #1b1840, #0b0c18 70%); transition: opacity .5s; }
.fade-out { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; color: #d9d4ff; text-align: center; max-width: 420px; }
.boot-logo svg { color: #c4b5fd; filter: drop-shadow(0 0 18px rgba(196, 181, 253, .55)); }
.boot-logo path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.3s ease forwards; }
.boot-logo path:nth-child(2) { animation-delay: .35s; }
.boot-name { font-size: 22px; font-weight: 300; letter-spacing: .32em; text-transform: uppercase; background: var(--silk); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot-bar { width: 170px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; background: var(--silk); animation: load 1.35s ease-in-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes load { to { width: 100%; } }

/* ---------- Login & setup ---------- */
#login { flex-direction: column; justify-content: space-between; padding: 9vh 16px 22px; background: rgba(8, 8, 18, .22); backdrop-filter: blur(22px) saturate(1.25); color: #fff; }
.login-clock { text-align: center; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.login-time { font-size: 88px; font-weight: 200; line-height: 1; letter-spacing: -.02em; }
.login-date { font-size: 19px; font-weight: 400; opacity: .85; margin-top: 8px; }
.login-center { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.login-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.login-card.wide { width: 380px; max-width: calc(100vw - 32px); padding: 28px; border-radius: 22px; background: rgba(20, 18, 38, .55); border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow); }
.login-card h2 { margin: 2px 0 0; font-size: 20px; font-weight: 600; }
.login-card p { margin: 0 0 6px; }
.login-card .muted { color: rgba(255, 255, 255, .7); }
.login-card.busy { opacity: .85; }
.login-card.busy .login-go { animation: pulse 1s infinite; }
.login-name { font-size: 22px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.login-field { position: relative; width: 250px; }
.login-input { width: 100%; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff; outline: none; transition: border-color .2s, background .2s; }
.login-input::placeholder { color: rgba(255, 255, 255, .6); }
.login-input:focus { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.login-card.wide .login-input { width: 100%; }
.login-field .login-input { padding-right: 44px; }
.login-go { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .22); color: #fff; transition: background .2s; }
.login-go:hover:not(:disabled) { background: var(--accent); }
.login-go:disabled { opacity: .5; cursor: default; }
.login-msg { min-height: 20px; font-size: 13px; color: #ffd6d6; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.caps { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; }
.login-users { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.login-user { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: #fff; opacity: .8; font-size: 12.5px; padding: 6px; border-radius: 12px; transition: opacity .2s, background .2s; }
.login-user:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; opacity: .72; text-align: center; }
.login-sub { font-size: 12.5px; opacity: .7; margin-top: -8px; }
.login-options { display: flex; flex-direction: column; gap: 6px; align-self: stretch; text-align: left; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.login-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.login-options input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.recovery-code { font: 600 17px/1.7 var(--mono); letter-spacing: .06em; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .35); user-select: all; word-spacing: .3em; }
.recovery-input { resize: none; font-size: 13px !important; }
.login-foot.warn { color: #fcd34d; opacity: .9; }
.login-input.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.login-input.mono::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--font); }
.avatar { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35); flex-shrink: 0; }
.avatar-other { width: 40px; height: 40px; background: rgba(255, 255, 255, .16); }
.card-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.setup-logo { border-radius: 16px; box-shadow: 0 8px 30px rgba(139, 124, 246, .4); }
.strength { width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: -6px; }
.strength span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .25s, background .25s; }
.strength[data-level="0"] span { width: 10%; background: #f87171; }
.strength[data-level="1"] span { width: 28%; background: #fb923c; }
.strength[data-level="2"] span { width: 52%; background: #facc15; }
.strength[data-level="3"] span { width: 78%; background: #a3e635; }
.strength[data-level="4"] span { width: 100%; background: #34d399; }
.notice { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 12.5px; padding: 10px 12px; border-radius: 12px; background: rgba(251, 191, 36, .13); border: 1px solid rgba(251, 191, 36, .32); }
.notice .icon { margin-top: 2px; color: #fcd34d; }
.link { background: none; border: 0; color: inherit; opacity: .78; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { opacity: 1; }
.shake { animation: shake .42s; }
@keyframes shake { 15%, 55% { transform: translateX(-9px); } 35%, 75% { transform: translateX(9px); } }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- Desktop layers ---------- */
#desktop { position: fixed; inset: 0; z-index: 1; }
#desktop-icons { position: absolute; inset: 0; z-index: 1; }
#windows { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#snap-preview { position: fixed; z-index: 3; border-radius: 14px; background: rgba(var(--accent-rgb), .16); border: 2px solid rgba(var(--accent-rgb), .55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .15s, left .15s, top .15s, width .15s, height .15s; }
#snap-preview.visible { opacity: 1; }
body.wm-dragging { user-select: none; }
body.wm-dragging iframe { pointer-events: none; }

/* ---------- Menu bar ---------- */
#menubar { position: fixed; top: 0; left: 0; right: 0; height: 30px; z-index: 5000; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; background: var(--bar); backdrop-filter: blur(24px) saturate(1.6); border-bottom: 1px solid var(--border); font-size: 13px; }
.mb-left, .mb-right { display: flex; align-items: center; gap: 2px; min-width: 0; }
.mb-item { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 0; border-radius: 7px; background: none; white-space: nowrap; transition: background .12s; }
.mb-item:hover { background: var(--hover); }
.mb-logo { padding: 0 9px; }
.mb-logo .icon { color: #c4b5fd; }
.mb-app { font-weight: 650; }
.mb-clock { font-variant-numeric: tabular-nums; }
.sync-syncing .icon { animation: spin 1.2s linear infinite; }
.sync-error, .sync-conflict { color: var(--warn); }
.sync-offline { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Dock ---------- */
#dock { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 4000; max-width: calc(100vw - 20px); }
.dock-shelf { display: flex; align-items: flex-end; gap: 7px; padding: 7px 10px 4px; border-radius: 24px; background: var(--glass); backdrop-filter: blur(28px) saturate(1.7); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.dock-item { position: relative; width: calc(48px * var(--scale, 1)); display: flex; flex-direction: column; align-items: center; transition: width .12s ease-out; cursor: pointer; }
.no-magnify .dock-item { --scale: 1 !important; }
.dock-item .app-tile { width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: 27% !important; transition: transform .2s; }
.dock-item:active .app-tile { filter: brightness(.85); }
.dock-item.launching .app-tile { animation: bounce .7s ease; }
.dock-label { position: absolute; bottom: calc(100% + 12px); padding: 4px 11px; border-radius: 9px; background: var(--glass-strong); border: 1px solid var(--border); font-size: 12px; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.dock-item:hover .dock-label { opacity: 1; transform: none; }
.dock-dot { width: 4px; height: 4px; border-radius: 50%; margin: 3px 0 1px; }
.dock-item.running .dock-dot { background: var(--fg); box-shadow: 0 0 6px rgba(var(--accent-rgb), .9); }
.dock-sep { width: 1px; height: 42px; margin: 0 3px 8px; background: var(--border); align-self: flex-end; }
@keyframes bounce { 25% { transform: translateY(-14px); } 50% { transform: none; } 70% { transform: translateY(-6px); } }

/* ---------- App tiles & file icons ---------- */
.app-tile { position: relative; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 8px rgba(0, 0, 0, .22); }
.app-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .3), transparent 48%); pointer-events: none; }
.app-tile svg { width: 56%; height: 56%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }
.app-tile-emoji { line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2)); }
.dock-item .app-tile-emoji { font-size: calc(25px * var(--scale, 1)) !important; }
.file-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-icon svg { width: 100%; height: 100%; }
.file-icon-folder { color: #7aa7ff; }
.file-icon-folder svg path { fill: rgba(122, 167, 255, .38); }
.file-icon-doc, .file-icon-file { color: #8a8aa0; }
.file-icon-doc svg path:first-child, .file-icon-file svg path:first-child { fill: #f5f5fa; }
.file-icon-image { color: #8a8aa0; }
.file-icon-image svg rect { fill: #f5f5fa; }
.file-icon-image svg circle { fill: #fbbf24; stroke: #f59e0b; }
.file-icon.thumb { width: 52px; height: 52px; border-radius: 7px; background-size: cover; background-position: center; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }

/* ---------- Desktop icons ---------- */
.desk-icon { position: absolute; width: 88px; padding: 6px 4px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; outline: none; }
.desk-icon .file-icon { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.desk-label { font-size: 12px; line-height: 1.3; text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .75); padding: 1px 5px; border-radius: 5px; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.desk-icon.selected { background: rgba(255, 255, 255, .13); }
.desk-icon.selected .desk-label { background: var(--accent); text-shadow: none; }
.desk-icon.dragging { opacity: .8; z-index: 5; }
.desk-icon.drop-target { background: rgba(var(--accent-rgb), .35); }
#wallpaper.wp-pearl ~ #desktop .desk-label, #wallpaper.wp-dawn ~ #desktop .desk-label { color: #1e1c2b; text-shadow: 0 0 6px rgba(255, 255, 255, .7); }
#wallpaper.wp-pearl ~ #desktop .desk-icon.selected .desk-label { color: #fff; }

/* ---------- Windows ---------- */
.window { position: absolute; display: flex; flex-direction: column; pointer-events: auto; border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(34px) saturate(1.7); border: 1px solid var(--glass-border); box-shadow: var(--shadow); min-width: 0; }
.window::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--silk); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 2; }
.window.active::before { opacity: .75; }
.window.opening { animation: win-in .2s cubic-bezier(.2, .9, .3, 1.15); }
.window.closing { animation: win-out .16s ease forwards; pointer-events: none; }
.window.minimizing { animation: win-min .22s ease-in forwards; pointer-events: none; }
.window.animating { transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease; }
.window.maximized { border-radius: 0 0 12px 12px; }
@keyframes win-in { from { opacity: 0; transform: scale(.95) translateY(6px); } }
@keyframes win-out { to { opacity: 0; transform: scale(.95); } }
@keyframes win-min { to { opacity: 0; transform: translateY(45vh) scale(.15); } }
.titlebar { height: 40px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 7px 0 12px; border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; cursor: default; }
.title-left { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13px; }
.title-left .app-tile { border-radius: 6px !important; }
.window:not(.active) .title-left { color: var(--muted); }
.win-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-actions { display: flex; align-items: center; gap: 4px; }
.win-controls { display: flex; gap: 4px; margin-left: 4px; }
.win-btn { width: 28px; height: 26px; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; color: var(--muted); transition: background .12s, color .12s; }
.win-btn:hover { background: var(--hover); color: var(--fg); }
.win-close:hover { background: #e5484d; color: #fff; }
.window-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius); }
/* The frame inherits the page's color-scheme; a mismatch would make Chrome paint it opaque. */
.app-frame { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.rz { position: absolute; z-index: 3; }
.rz-n { top: -4px; left: 10px; right: 10px; height: 8px; cursor: ns-resize; }
.rz-s { bottom: -4px; left: 10px; right: 10px; height: 8px; cursor: ns-resize; }
.rz-e { right: -4px; top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; }
.rz-w { left: -4px; top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; }
.rz-ne, .rz-nw, .rz-se, .rz-sw { width: 16px; height: 16px; }
.rz-ne { top: -5px; right: -5px; cursor: nesw-resize; } .rz-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.rz-nw { top: -5px; left: -5px; cursor: nwse-resize; } .rz-se { bottom: -5px; right: -5px; cursor: nwse-resize; }
.window.maximized .rz { display: none; }

/* ---------- Controls shared by apps ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2); transition: background .12s, transform .06s, border-color .12s; white-space: nowrap; }
.btn:hover { background: color-mix(in srgb, var(--panel-2), var(--fg) 7%); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent), #fff 12%); }
.btn-danger.btn-primary, .btn-danger { background: #e5484d; border-color: transparent; color: #fff; }
.btn-danger:hover { background: #ef5b60; }
.btn-small { padding: 3px 10px; font-size: 12px; border-radius: 7px; }
.btn-wide { width: 100%; padding: 10px; border-radius: 12px; font-weight: 600; }
.icon-btn { width: 30px; height: 28px; border: 0; border-radius: 8px; background: transparent; display: inline-grid; place-items: center; color: var(--fg-2); transition: background .12s; flex-shrink: 0; }
.icon-btn:hover { background: var(--hover); color: var(--fg); }
.icon-btn.active { background: var(--panel-2); color: var(--accent); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.input, select.input { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input:focus { border-color: rgba(var(--accent-rgb), .8); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
select.input option { background: var(--glass-strong); color: var(--fg); }
.toolbar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.toolbar .sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.toolbar .grow { flex: 1; }
.statusbar { display: flex; gap: 14px; padding: 4px 12px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--border); flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 8px; }
.empty { padding: 30px 10px; text-align: center; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; background: var(--panel-2); color: var(--fg-2); }
.badge.accent { background: rgba(var(--accent-rgb), .2); color: var(--accent); }
.badge.warn { background: rgba(251, 191, 36, .16); color: #e9a800; }
.badge.danger { background: rgba(248, 113, 113, .16); color: var(--danger); }
.form-error { color: var(--danger); font-size: 12.5px; min-height: 18px; }
.switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; appearance: none; -webkit-appearance: none; border-radius: 22px; background: var(--panel-2); border: 1px solid var(--border); cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch:checked { background: var(--accent); border-color: transparent; }
.switch:checked::after { transform: translateX(16px); }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--panel-2); gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 4px 12px; border-radius: 8px; font-size: 12.5px; color: var(--fg-2); }
.segmented button.active { background: var(--glass-strong); color: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 12.5px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }

/* ---------- Modal dialogs ---------- */
#modal-layer { position: fixed; inset: 0; z-index: 8000; pointer-events: none; }
.modal-backdrop { position: fixed; inset: 0; pointer-events: auto; display: flex; align-items: center; justify-content: center; background: rgba(5, 5, 15, .3); animation: fade-in .15s; padding: 16px; }
.modal-backdrop.closing { animation: fade-out .15s forwards; }
.modal { max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; padding: 20px 22px 18px; border-radius: 18px; background: var(--glass-strong); backdrop-filter: blur(30px) saturate(1.6); border: 1px solid var(--glass-border); box-shadow: var(--shadow); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.modal.shake { animation: shake .4s; }
.modal-head { display: flex; align-items: center; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.modal-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .18); color: var(--accent); flex-shrink: 0; }
.modal-body { margin: 14px 0 18px; color: var(--fg-2); }
.modal-body p { margin: 0; white-space: pre-line; }
.modal-body .input { width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.about { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.about img { border-radius: 18px; }
.about dl { text-align: left; }
.perm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.perm-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); }
.perm-list li div { display: flex; flex-direction: column; }
.perm-list li span { font-size: 12px; color: var(--muted); }
.perm-list li .icon { margin-top: 2px; color: var(--accent); }
.perm-list li.risky .icon { color: var(--warn); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* ---------- File picker ---------- */
.picker-main { display: flex; height: 300px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--panel); }
.picker-side { width: 150px; padding: 6px; border-right: 1px solid var(--border); flex-shrink: 0; }
.picker-place { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.picker-place:hover { background: var(--hover); }
.picker-place.active { background: rgba(var(--accent-rgb), .18); color: var(--accent); }
.picker-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.picker-path { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.picker-list { flex: 1; overflow: auto; padding: 4px; }
.picker-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; cursor: default; }
.picker-row:hover { background: var(--hover); }
.picker-row.selected { background: var(--accent); color: #fff; }
.picker-row.selected .muted { color: rgba(255, 255, 255, .8); }
.picker-name { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.picker-name .input { flex: 1; }
.picker-extra { margin-top: 10px; }

/* ---------- Context menus ---------- */
#menu-layer { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.menu { position: fixed; pointer-events: auto; min-width: 210px; max-width: 320px; padding: 5px; border-radius: 12px; background: var(--glass-strong); backdrop-filter: blur(30px) saturate(1.6); border: 1px solid var(--glass-border); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); font-size: 13px; animation: fade-in .1s; }
.menu-item { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-radius: 7px; cursor: default; }
.menu-item:hover:not(.disabled) { background: var(--accent); color: #fff; }
.menu-item.disabled { opacity: .5; }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: #e5484d; color: #fff; }
.menu-icon { width: 16px; display: grid; place-items: center; opacity: .85; }
.menu-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-shortcut { margin-left: 14px; font-size: 11.5px; opacity: .6; display: flex; }
.menu-sep { height: 1px; margin: 4px 8px; background: var(--border); }

/* ---------- Notifications ---------- */
#notifications { position: fixed; top: 40px; right: 12px; z-index: 7000; display: flex; flex-direction: column; gap: 8px; width: 350px; max-width: calc(100vw - 24px); pointer-events: none; }
.toast { position: relative; pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 34px 12px 12px; border-radius: 16px; background: var(--glass-strong); backdrop-filter: blur(30px) saturate(1.6); border: 1px solid var(--glass-border); box-shadow: var(--shadow); animation: toast-in .3s cubic-bezier(.2, .9, .3, 1.15); }
.toast.leaving { animation: toast-out .25s forwards; }
.toast-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .2); color: var(--accent); flex-shrink: 0; }
.toast-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toast-text strong { font-size: 13px; }
.toast-text span { font-size: 12.5px; color: var(--fg-2); }
.toast-actions { display: flex; gap: 6px; margin-top: 6px; }
.toast-close { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; opacity: 0; transition: opacity .15s; }
.toast:hover .toast-close { opacity: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Spotlight ---------- */
#spotlight { position: fixed; inset: 0; z-index: 7500; background: rgba(5, 5, 15, .22); animation: fade-in .12s; }
.sp-box { position: absolute; top: 17vh; left: 50%; transform: translateX(-50%); width: min(660px, calc(100vw - 32px)); border-radius: 20px; background: var(--glass-strong); backdrop-filter: blur(36px) saturate(1.8); border: 1px solid var(--glass-border); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6); overflow: hidden; animation: sp-pop .18s cubic-bezier(.2, .9, .3, 1.15); }
.sp-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--silk); opacity: .8; }
@keyframes sp-pop { from { opacity: 0; transform: translateX(-50%) scale(.96); } }
.sp-bar { display: flex; align-items: center; gap: 12px; padding: 15px 18px; color: var(--muted); }
.sp-input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 20px; font-weight: 400; color: var(--fg); min-width: 0; }
.sp-input::placeholder { color: var(--muted); }
kbd { font: 11px var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); }
.sp-results { max-height: 54vh; overflow: auto; padding: 4px 8px 8px; border-top: 1px solid var(--border); }
.sp-results:empty { display: none; }
.sp-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 11px; cursor: default; }
.sp-row.selected { background: var(--accent); color: #fff; }
.sp-row .app-tile { border-radius: 8px !important; }
.sp-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); flex-shrink: 0; }
.sp-row.selected .sp-icon { background: rgba(255, 255, 255, .2); }
.sp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row.selected .sp-sub { color: rgba(255, 255, 255, .78); }
.sp-enter { opacity: 0; }
.sp-row.selected .sp-enter { opacity: .85; }
.sp-empty { padding: 22px; text-align: center; color: var(--muted); }

/* ---------- Common two-pane app layout ---------- */
.split { display: flex; flex: 1; min-height: 0; }
.sidebar { width: 180px; flex-shrink: 0; padding: 8px; border-right: 1px solid var(--border); overflow: auto; background: var(--panel); }
.sidebar-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 10px 10px 4px; }
.side-item { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; cursor: default; color: var(--fg-2); }
.side-item:hover { background: var(--hover); }
.side-item.active { background: rgba(var(--accent-rgb), .18); color: var(--fg); }
.side-item.active .icon { color: var(--accent); }
.pane { flex: 1; min-width: 0; overflow: auto; }

/* =====================================================================================================
   Touch screens (tablets and touch laptops keep the desktop, with bigger targets)
   ===================================================================================================== */
body { -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
.touch .titlebar, .touch .rz, .touch .desk-icon, .touch #dock, .touch .dock-item, .touch .home-app, .touch .f-item { touch-action: none; -webkit-touch-callout: none; }
.touch .f-item, .touch .home-app { touch-action: manipulation; }
.touch .titlebar { height: 46px; }
.touch .win-btn { width: 40px; height: 34px; }
.touch .rz-n, .touch .rz-s { height: 18px; } .touch .rz-n { top: -9px; } .touch .rz-s { bottom: -9px; }
.touch .rz-e, .touch .rz-w { width: 18px; } .touch .rz-e { right: -9px; } .touch .rz-w { left: -9px; }
.touch .rz-ne, .touch .rz-nw, .touch .rz-se, .touch .rz-sw { width: 26px; height: 26px; }
.touch .menu-item { padding: 10px 12px; }
.touch .icon-btn { width: 38px; height: 36px; }
.touch .mb-item { height: 28px; }
.mobile-only { display: none !important; }
.mobile .mobile-only { display: revert !important; }

/* =====================================================================================================
   Phone interface
   ===================================================================================================== */
#statusbar, #home, #homebar, #switcher { display: none; }
.mobile #menubar, .mobile #dock, .mobile #desktop-icons, .mobile #snap-preview { display: none; }
.mobile body { font-size: 15px; }

/* Status bar */
.mobile #statusbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 5000; align-items: center; gap: 10px;
  height: calc(40px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0 14px; font-size: 13.5px;
  background: var(--bar); backdrop-filter: blur(24px) saturate(1.6); border-bottom: 1px solid var(--border); }
.sb-clock { font-weight: 650; font-variant-numeric: tabular-nums; }
.sb-title { flex: 1; min-width: 0; text-align: center; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-right { display: flex; align-items: center; gap: 4px; }
.sb-btn { width: 36px; height: 32px; border: 0; border-radius: 9px; background: none; display: grid; place-items: center; color: var(--fg-2); }
.sb-btn:active { background: var(--hover); }
.sb-close { background: var(--panel-2); }
.sb-avatar { width: 30px; height: 30px; margin-left: 2px; border-radius: 50%; border: 0; color: #fff; font-weight: 650; font-size: 13px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }

/* Home screen */
.mobile #home { display: block; position: absolute; inset: 0; z-index: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(56px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); }
.home-greeting { text-align: center; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); margin: 22px 0 22px; }
.home-time { font-size: 60px; font-weight: 200; line-height: 1; letter-spacing: -.02em; }
.home-date { font-size: 15px; opacity: .88; margin-top: 8px; }
.home-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; margin: 0 auto 26px; padding: 13px 16px;
  border-radius: 16px; border: 1px solid var(--glass-border); background: var(--glass); backdrop-filter: blur(24px) saturate(1.6); color: var(--muted); font-size: 15px; text-align: left; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 20px 6px; max-width: 560px; margin: 0 auto; }
.home-app { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: #fff; font-size: 11.5px; text-shadow: 0 1px 4px rgba(0, 0, 0, .65); }
.home-app .app-tile { transition: transform .12s, filter .12s; }
.home-app:active .app-tile { transform: scale(.9); filter: brightness(.85); }
.home-app span { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-section { max-width: 560px; margin: 30px auto 14px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
#wallpaper.wp-pearl ~ #desktop .home-app, #wallpaper.wp-dawn ~ #desktop .home-app,
#wallpaper.wp-pearl ~ #desktop .home-greeting, #wallpaper.wp-dawn ~ #desktop .home-greeting,
#wallpaper.wp-pearl ~ #desktop .home-section, #wallpaper.wp-dawn ~ #desktop .home-section { color: #1e1c2b; text-shadow: 0 0 8px rgba(255, 255, 255, .7); }

/* Bottom bar */
.mobile #homebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6000; justify-content: space-around; align-items: center;
  height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--bar); backdrop-filter: blur(24px) saturate(1.6); border-top: 1px solid var(--border); }
.hb-btn { width: 72px; height: 46px; border: 0; border-radius: 14px; background: none; display: grid; place-items: center; color: var(--fg-2); }
.hb-btn:active { background: var(--hover); }
.hb-home span { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; }

/* Apps: one at a time, full screen between the status bar and bottom bar */
.mobile #windows { z-index: 3; }
.mobile .window { position: fixed !important; left: 0 !important; right: 0; width: auto !important; height: auto !important; min-width: 0 !important;
  top: calc(40px + env(safe-area-inset-top)) !important; bottom: calc(58px + env(safe-area-inset-bottom));
  border: 0; border-radius: 0; box-shadow: none; display: none; background: var(--glass-strong); }
.mobile .window.active { display: flex; }
.mobile .window::before, .mobile .titlebar, .mobile .rz { display: none; }
.mobile .window-body { border-radius: 0; }
.mobile .window.opening { animation: m-open .22s ease-out; }
.mobile .window.closing { display: none; }
@keyframes m-open { from { opacity: 0; transform: translateY(26px); } }

/* App switcher */
.mobile #switcher:not(.hidden) { display: block; position: fixed; inset: 0; z-index: 5500; overflow-y: auto; background: rgba(5, 5, 15, .45); backdrop-filter: blur(18px);
  padding: calc(52px + env(safe-area-inset-top)) 14px calc(80px + env(safe-area-inset-bottom)); animation: fade-in .15s; }
.sw-head { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: 4px auto 14px; color: #fff; }
.sw-head h2 { margin: 0; font-size: 21px; font-weight: 650; }
.sw-cards { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto; }
.sw-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.sw-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sw-text span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#switcher .empty { color: rgba(255, 255, 255, .8); }

/* Overlays */
.mobile #notifications { top: calc(46px + env(safe-area-inset-top)); left: 8px; right: 8px; width: auto; }
.mobile .sp-box { top: calc(46px + env(safe-area-inset-top)); width: calc(100vw - 16px); }
.mobile .sp-bar kbd { display: none; }
.mobile .sp-input { font-size: 18px; }
.mobile .sp-results { max-height: calc(100dvh - 190px); }
.mobile .sp-row { padding: 10px; }
.mobile .modal-backdrop { align-items: flex-end; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.mobile .modal { width: 100% !important; max-height: 88dvh; border-radius: 22px; animation: m-sheet .22s ease-out; }
.mobile .modal-actions { flex-wrap: wrap; }
.mobile .modal-actions .btn { flex: 1; padding: 11px 14px; }
@keyframes m-sheet { from { transform: translateY(40px); opacity: 0; } }
.menu.sheet { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)); max-width: none; max-height: 70dvh; overflow-y: auto; border-radius: 18px; padding: 6px; animation: m-sheet .18s ease-out; }
.menu.sheet .menu-item { padding: 13px 14px; font-size: 15.5px; border-radius: 11px; }
.mobile .picker-main { flex-direction: column; height: 50dvh; }
.mobile .picker-side { width: auto; display: flex; gap: 4px; overflow-x: auto; flex-shrink: 0; border-right: 0; border-bottom: 1px solid var(--border); padding: 6px; }
.mobile .picker-place { white-space: nowrap; }
.mobile .picker-row { padding: 10px 8px; }

/* App layouts: sidebars become drill-down lists, toolbars scroll, tables become cards */
.mobile .split > .sidebar { width: 100%; border-right: 0; background: transparent; }
.mobile .split:not(.show-pane):not(.no-drill) > :not(.sidebar) { display: none; }
.mobile .split.show-pane > .sidebar, .mobile .split.no-drill > .sidebar { display: none; }
.mobile-back { display: none; }
.mobile .mobile-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--accent); font-size: 15px; font-weight: 600; padding: 4px 4px 10px 0; }
.mobile .side-item { padding: 13px 14px; font-size: 15.5px; border-radius: 12px; }
.mobile .sidebar-title { padding: 14px 14px 6px; }
.mobile .toolbar { overflow-x: auto; scrollbar-width: none; }
.mobile .toolbar::-webkit-scrollbar { display: none; }
.mobile .icon-btn { width: 40px; height: 38px; }
.mobile .input, .mobile select.input { font-size: 16px; padding: 9px 11px; } /* 16px stops iOS zooming into inputs */
.mobile table.cards, .mobile table.cards tbody, .mobile table.cards tr, .mobile table.cards td { display: block; width: 100%; }
.mobile table.cards tr.head { display: none; }
.mobile table.cards tr { margin-bottom: 8px; padding: 6px 2px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.mobile table.cards tr:hover td { background: transparent; }
.mobile table.cards td { border: 0 !important; padding: 4px 12px !important; width: auto !important; white-space: normal !important; }
.mobile table.cards td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Sign-in screens on a phone */
.mobile #login { justify-content: flex-start; gap: 22px; overflow-y: auto; padding: calc(5dvh + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom)); }
.mobile .login-time { font-size: 62px; }
.mobile .login-date { font-size: 16px; }
.mobile .login-center { gap: 22px; }
.mobile .login-card.wide { padding: 22px 18px; border-radius: 22px; }
.mobile .login-foot { padding: 0 8px; }
#login { overflow-y: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
