/* Luca OS shell: boot, lock, menu bar, menus, dock, windows, desktop, widgets, stickers, wall, spotlight,
   notifications, finder, quick look, get info, popups. Owned by C1. macOS sizes and materials, nothing decorative. */

/* ======================================================= layers */
#os { position: fixed; inset: 0; overflow: hidden; background: var(--wall-bg, #000); }
#wallpaper { position: absolute; inset: 0; z-index: 0; }
#wall { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
#desktop { position: absolute; inset: 0; z-index: 2; outline: none; }
#stickers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#windows { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
#windows > * { pointer-events: auto; }
#dock-wrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; pointer-events: none; }
#menubar { position: absolute; left: 0; right: 0; top: 0; z-index: 6; }
#popovers { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
#popovers > * { pointer-events: auto; }
/* banners sit just left of the desktop icon column so they never cover an icon or its label */
#notifications { position: absolute; top: calc(var(--menubar-h) + 8px); right: calc(var(--icon-col, 112px) + 10px); z-index: 8; width: 356px; pointer-events: none; }
#notifications > * { pointer-events: auto; }
#lock { position: fixed; inset: 0; z-index: 50; }
#boot { position: fixed; inset: 0; z-index: 60; }
body.booting #os, body.locked #os { visibility: hidden; }
body.unlocking #os { visibility: visible; }

.sym { width: 16px; height: 16px; flex: none; }
.tb-spacer { flex: 1; }

/* ======================================================= boot */
#boot { background: #000; display: grid; place-items: center; transition: opacity .45s ease; }
#boot.out { opacity: 0; pointer-events: none; }
#boot[hidden] { display: none; }
.boot-mark { position: absolute; top: calc(50% - 78px); left: 50%; translate: -50% -50%; width: 74px; height: 92px; color: #fff; }
.boot-mark svg { width: 100%; height: 100%; }
.boot-bar { position: absolute; top: calc(50% + 36px); left: 50%; translate: -50% 0; width: 168px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.boot-bar i { display: block; height: 100%; background: #fff; border-radius: 3px; transform-origin: left; transform: scaleX(0); }
.shutdown { position: fixed; inset: 0; z-index: 70; background: #000; display: grid; place-items: center; }
.sd-start { color: rgba(255, 255, 255, .5); font-size: 13px; }
.sd-start:hover { color: #fff; }

/* ======================================================= lock screen */
#lock { color: #fff; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
#lock[hidden] { display: none; }
#lock.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.lk-bg { position: absolute; inset: -40px; background: var(--wall-bg, #000) var(--wall-thumb) center / cover no-repeat; filter: blur(22px) saturate(1.1) brightness(.78); }
.lk-bg.lk-wall { inset: 0; filter: none; background: #000; }
.lk-top { position: absolute; top: 9vh; left: 0; right: 0; text-align: center; text-shadow: 0 1px 24px rgba(0, 0, 0, .18); }
.lk-date { font: 600 22px/1.1 var(--font-display); letter-spacing: .005em; opacity: .9; }
.lk-time { font: 700 clamp(88px, 12vw, 132px)/1 var(--font-display); letter-spacing: -.035em; margin-top: 4px; opacity: .92; font-feature-settings: "tnum" 1, "ss01" 1; }
.lk-intro { position: absolute; left: 50%; top: 52%; translate: -50% -50%; width: min(540px, 84vw); margin: 0; text-align: left; font: 500 clamp(19px, 2.1vw, 25px)/1.45 var(--font-display); letter-spacing: -.012em; text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
.lk-rest { visibility: hidden; }
.lk-caret { display: inline-block; width: 0; height: 1.05em; vertical-align: -.14em; margin-left: 1px; box-shadow: 0 0 0 1px currentColor; border-radius: 1px; animation: lk-blink 1.05s steps(1) infinite; }
@keyframes lk-blink { 50% { opacity: 0; } }
.lk-bottom { position: absolute; left: 0; right: 0; bottom: 8vh; display: grid; place-items: center; }
.lk-user { display: grid; justify-items: center; gap: 8px; color: #fff; padding: 8px 16px; border-radius: 14px; }
.lk-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 6px 24px rgba(0, 0, 0, .3); background: rgba(255, 255, 255, .15); }
.lk-avatar-mark { display: grid; place-items: center; color: #fff; }
.lk-avatar-mark svg { width: 46%; height: 56%; }
.lk-name { font: 600 15px/1.2 var(--font); text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.lk-hint { font-size: 12px; opacity: .62; padding: 4px 12px; border-radius: 12px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.lk-user:focus-visible { outline: none; }
.lk-user:focus-visible .lk-hint { background: rgba(255, 255, 255, .24); }

/* ======================================================= wallpaper */
.wp-layer { position: absolute; inset: 0; }
.wp-thumb, .wp-full { position: absolute; inset: 0; background-size: cover; background-position: center; }
.wp-thumb { filter: blur(14px); transform: scale(1.04); transition: opacity .5s ease; }
.wp-thumb.only { filter: none; transform: none; }
.wp-thumb.done { opacity: 0; }
.wp-full { opacity: 0; transition: opacity .55s ease; object-fit: cover; width: 100%; height: 100%; }
.wp-full.ready { opacity: 1; }

/* ======================================================= the luca wall */
.wall-grid { display: grid; position: absolute; inset: 0; width: 100%; height: 100%; }
.wall-cell { min-width: 0; min-height: 0; perspective: 700px; overflow: hidden; }
.wall-card { width: 100%; height: 100%; opacity: 0; backface-visibility: hidden; will-change: transform; }
.wall-cell.on .wall-card { opacity: 1; }
.wall-card img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ======================================================= menu bar */
#menubar { height: var(--menubar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 10px; font: 500 13.5px/1 var(--font); letter-spacing: -.01em; color: #fff;
  background: rgba(0, 0, 0, .16); backdrop-filter: blur(50px) saturate(180%); -webkit-backdrop-filter: blur(50px) saturate(180%);
  text-shadow: 0 0 .5px rgba(0, 0, 0, .2); }
body.tone-light #menubar { color: rgba(0, 0, 0, .86); background: rgba(255, 255, 255, .28); text-shadow: none; }
.mb-left, .mb-right { display: flex; align-items: center; height: 100%; gap: 0; min-width: 0; }
.mb-left { overflow: hidden; }
.mb-item { height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 5px; white-space: nowrap; color: inherit; }
.mb-item.open, .mb-item.mb-icon.open, .mb-right .mb-item:active { background: rgba(255, 255, 255, .22); }
body.tone-light .mb-item.open, body.tone-light .mb-right .mb-item:active { background: rgba(0, 0, 0, .1); }
.mb-logo { padding: 0 11px 0 9px; }
.mb-mark { width: 13px; height: 16px; }
.mb-app { font-weight: 700; }
.mb-icon { padding: 0 8px; }
.mb-icon .sym { width: 16px; height: 16px; }
.mb-clock { padding: 0 8px 0 10px; font-variant-numeric: tabular-nums; }
.mb-right { gap: 2px; }

/* ======================================================= menus */
.menu { position: fixed; z-index: 1; min-width: 216px; max-width: 340px; padding: 5px; border-radius: 10px; font: 400 13px/1 var(--font); color: var(--menu-text);
  background: var(--material-menu); backdrop-filter: blur(40px) saturate(190%); -webkit-backdrop-filter: blur(40px) saturate(190%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .28), inset 0 0 0 .5px rgba(255, 255, 255, .22), 0 12px 38px rgba(0, 0, 0, .24), 0 2px 8px rgba(0, 0, 0, .1); outline: none; }
[data-theme="dark"] .menu { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .7), inset 0 0 0 .5px rgba(255, 255, 255, .16), 0 14px 40px rgba(0, 0, 0, .45); }
.menu-bar-menu { border-radius: 0 0 10px 10px; border-top-left-radius: 6px; border-top-right-radius: 6px; }
.menu-item { display: flex; align-items: center; height: 22px; padding: 0 10px 0 2px; border-radius: 5px; white-space: nowrap; gap: 0; }
.menu-item.active { background: var(--accent); color: #fff; }
.menu-item.active .menu-shortcut, .menu-item.active .menu-arrow { color: rgba(255, 255, 255, .9); }
.menu-item.disabled { color: var(--menu-text-2); }
.menu-check { width: 18px; flex: none; display: grid; place-items: center; }
.menu-check svg { width: 11px; height: 11px; }
.menu-icon { width: 16px; height: 16px; object-fit: contain; margin-right: 6px; }
.menu-swatch { width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.menu-label { flex: 1; overflow: hidden; text-overflow: ellipsis; padding-right: 22px; }
.menu-shortcut { color: var(--menu-text-2); display: inline-flex; gap: 1px; font-size: 13px; letter-spacing: .02em; }
.menu-shortcut span { min-width: 9px; text-align: center; }
.menu-arrow { width: 8px; height: 12px; color: var(--menu-text-2); margin-left: 4px; }
.menu-arrow svg { width: 100%; height: 100%; }
.menu-sep { height: 1px; margin: 5px 10px; background: var(--menu-sep); }
.menu-header { font-size: 11px; font-weight: 600; color: var(--menu-text-2); padding: 6px 10px 4px 20px; }
.menu-search-row { display: flex; align-items: center; gap: 4px; height: 26px; margin: 1px 2px 5px; padding: 0 6px; border-radius: 6px; background: var(--bg-field); box-shadow: inset 0 0 0 .5px var(--sep); }
.menu-search-glyph { color: var(--menu-text-2); }
.menu-search-glyph .sym { width: 13px; height: 13px; }
.menu-search { flex: 1; min-width: 0; height: 22px; border: 0; background: none; font-size: 13px; outline: none; }

/* ======================================================= control centre + popovers */
.cc, .popover { position: fixed; top: calc(var(--menubar-h) + 5px); right: 8px; border-radius: 16px; color: var(--text);
  background: var(--material-popover); backdrop-filter: blur(50px) saturate(190%); -webkit-backdrop-filter: blur(50px) saturate(190%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .26), inset 0 0 0 .5px rgba(255, 255, 255, .25), 0 16px 48px rgba(0, 0, 0, .28); }
.cc { width: 324px; padding: 10px; display: grid; gap: 10px; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-module { border-radius: 12px; background: rgba(255, 255, 255, .5); box-shadow: 0 .5px 2px rgba(0, 0, 0, .12); padding: 8px; }
[data-theme="dark"] .cc-module { background: rgba(255, 255, 255, .08); }
.cc-stack { display: grid; gap: 8px; padding: 9px 8px; }
.cc-toggle { display: flex; align-items: center; gap: 8px; text-align: left; }
.cc-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .1); flex: none; }
[data-theme="dark"] .cc-dot { background: rgba(255, 255, 255, .14); }
.cc-toggle.on .cc-dot { background: var(--accent); color: #fff; }
.cc-dot .sym { width: 14px; height: 14px; }
.cc-text { display: grid; gap: 1px; }
.cc-text b { font-size: 12px; font-weight: 600; }
.cc-text small { font-size: 11px; color: var(--text-2); }
.cc-now { display: flex; flex-direction: column; justify-content: center; gap: 3px; font-size: 12px; font-weight: 500; padding: 10px 12px; }
.cc-now small { color: var(--text-2); font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.cc-title { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 8px; font-size: 12px; }
.cc-link { color: var(--text-2); font-size: 12px; }
.cc-link:hover { color: var(--text); }
.cc-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cc-thumb { aspect-ratio: 16 / 10; border-radius: 6px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.cc-thumb.on { box-shadow: 0 0 0 2px var(--accent), inset 0 0 0 .5px rgba(0, 0, 0, .2); }

/* sticker drawer */
.sticker-drawer { width: 336px; padding: 12px 12px 10px; }
.sd-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 8px; font-size: 13px; }
.sd-head b { font-weight: 600; }
.sd-reset { font-size: 12px; color: var(--text-2); }
.sd-reset:hover { color: var(--text); }
.sd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sd-item { height: 74px; border-radius: 10px; display: grid; place-items: center; padding: 7px; min-width: 0; }
.sd-item:hover { background: var(--bg-hover); }
.sd-item img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2)); transition: transform .18s var(--ease); }
.sd-item:hover img { transform: scale(1.08) rotate(-3deg); }
.sd-item.placed img { opacity: .38; }
.sd-hint, .sd-empty { font-size: 11px; color: var(--text-2); padding: 8px 4px 0; text-align: center; }

/* ======================================================= dock */
#dock-wrap { display: flex; justify-content: center; padding-bottom: 4px; }
#dock { pointer-events: auto; display: flex; align-items: flex-end; height: calc(var(--dock-size) + 8px); padding: 4px 4px 4px; border-radius: 18px; position: relative;
  background: rgba(246, 246, 246, .32); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .35), 0 0 0 .5px rgba(0, 0, 0, .22), 0 10px 30px rgba(0, 0, 0, .18); }
[data-theme="dark"] #dock { background: rgba(40, 40, 44, .38); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18), 0 0 0 .5px rgba(0, 0, 0, .55), 0 10px 30px rgba(0, 0, 0, .3); }
.dock-item { --s: 1; position: relative; width: calc(var(--dock-size) * var(--s)); height: calc(var(--dock-size) * var(--s)); display: flex; justify-content: center; align-items: flex-end; transition: width .2s var(--ease), height .2s var(--ease); }
#dock.magnifying .dock-item { transition: width .07s linear, height .07s linear; }
.dock-icon { width: calc(var(--dock-size) * var(--s)); height: calc(var(--dock-size) * var(--s)); display: block; transition: inherit; transform-origin: bottom center; }
.dock-img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .22)); }
.dock-item:active .dock-img { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .22)) brightness(.62); }
.dock-dot { position: absolute; bottom: -3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(0, 0, 0, .7); opacity: 0; }
[data-theme="dark"] .dock-dot, body.tone-dark .dock-dot { background: rgba(255, 255, 255, .78); }
.dock-item.running .dock-dot { opacity: 1; }
.dock-sep { width: 1px; height: calc(var(--dock-size) - 12px); margin: 0 5px 6px; background: rgba(0, 0, 0, .2); align-self: flex-end; flex: none; }
[data-theme="dark"] .dock-sep { background: rgba(255, 255, 255, .22); }
.dock-trash.drop-target .dock-icon { transform: scale(1.1); }
.dock-tip { position: fixed; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: none; padding: 4px 10px 5px; border-radius: 7px; font-size: 13px; white-space: nowrap; color: var(--menu-text);
  background: var(--material-menu); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .24), 0 4px 14px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .12s; }
.dock-tip.on { opacity: 1; }
.dock-menu { min-width: 170px; }

/* fallback tiles while the blender renders are missing: the monogram on a neutral squircle, tinted per app */
.tile-fallback { display: grid; place-items: center; border-radius: 22.5%; color: #fff; --t: #2c2c30;
  background: linear-gradient(180deg, color-mix(in srgb, var(--t) 86%, white), var(--t));
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22), inset 0 -1px 1px rgba(0, 0, 0, .18); }
.tile-fallback-mark { width: 46%; height: 58%; }
.tile-fallback.dock-img { width: 88%; height: 88%; margin: 6%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.tile-fallback[data-key="app-finder"] { --t: #6E5BD9; }
.tile-fallback[data-key="app-projects"] { --t: #1F4FA8; }
.tile-fallback[data-key="app-photos"] { --t: #f2efe9; color: #6E5BD9; }
.tile-fallback[data-key="app-notes"] { --t: #efe3b8; color: #5b4a1c; }
.tile-fallback[data-key="app-music"] { --t: #232327; color: #b6abff; }
.tile-fallback[data-key="app-monogram"] { --t: #0d0d0f; }
.tile-fallback[data-key="app-terminal"] { --t: #1b1b1e; color: #d8d8d8; }
.tile-fallback[data-key="app-settings"] { --t: #c9c3cf; color: #3a3640; }
.tile-fallback[data-key="app-mail"] { --t: #2b67c9; }
.tile-fallback[data-key="app-linkedin"] { --t: #0a66c2; }
.tile-fallback[data-key="app-stickers"] { --t: #9FB79A; color: #1f3a22; }
.tile-fallback[data-key="app-preview"] { --t: #5D7FA6; }
.tile-fallback[data-key^="trash"] { --t: rgba(220, 225, 232, .5); background: none; box-shadow: none; }
.tile-fallback .trash-glyph { width: 86%; height: 86%; }

/* ======================================================= windows */
.win { position: absolute; left: 0; top: 0; border-radius: var(--radius-window); box-shadow: var(--shadow-window-blur); outline: none; contain: layout; transition: box-shadow .2s ease; }
.win.focused { box-shadow: var(--shadow-window); }
.win.minimized { pointer-events: none; }
.win.win-animating { transition: width .32s var(--ease), height .32s var(--ease), translate .32s var(--ease), box-shadow .2s; }
.win-frame { position: relative; display: flex; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; background: var(--bg-window); isolation: isolate; }
.win-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.win-bar { --bar-pad: 80px; flex: none; height: var(--bar-h); display: flex; align-items: center; position: relative; background: var(--bg-toolbar); box-shadow: 0 .5px 0 var(--sep); z-index: 1; color: var(--text); }
.win:not(.focused) .win-bar { color: var(--text-2); }
.win-title { flex: 1; text-align: center; font: 600 13px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 var(--bar-pad); pointer-events: none; }
.chrome-titlebar .win-bar { justify-content: center; }
.has-sidebar .win-bar { --bar-pad: 16px; }
.chrome-titlebar.has-sidebar .win-title { text-align: left; }
.chrome-unified .win-title { flex: 0 1 auto; text-align: left; font: 700 15px/1 var(--font-display); letter-spacing: -.015em; padding: 0 12px 0 var(--bar-pad); }
.chrome-unified.has-toolbar .win-title { display: none; }
.win-toolbar { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; }
.chrome-unified:not(.has-sidebar) .win-toolbar { padding-left: 78px; }
.win-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; background: var(--bg-content); overflow: hidden; }
.win-body > * { flex: 1; min-height: 0; }
.win-bar-bare { display: none; }
.chrome-bare .win-frame { background: var(--bg-window); }
.chrome-bare .ab-lights { display: none; }
.chrome-hud .win-frame { background: rgba(30, 30, 32, .84); backdrop-filter: blur(40px) saturate(170%); -webkit-backdrop-filter: blur(40px) saturate(170%); color: rgba(255, 255, 255, .9); }
.chrome-hud .win-bar { background: transparent; box-shadow: 0 .5px 0 rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .86); }
.chrome-hud:not(.focused) .win-bar { color: rgba(255, 255, 255, .5); }
.chrome-hud .win-body { background: transparent; }
.chrome-hud { --shadow-window: 0 0 0 .5px rgba(0, 0, 0, .7), inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 22px 70px rgba(0, 0, 0, .55); }

/* sidebar: full-height vibrancy, sits under the traffic lights */
.win-sidebar { flex: none; width: var(--sidebar-w, 196px); display: flex; flex-direction: column; background: var(--bg-sidebar);
  backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); box-shadow: inset -.5px 0 0 var(--sep); position: relative; z-index: 2; }
.win-sidebar-top { flex: none; height: var(--bar-h); }
.win-sidebar > :not(.win-sidebar-top) { flex: 1; min-height: 0; overflow: auto; }
.win.no-sidebar .win-sidebar { display: none; }
.win.no-sidebar .win-toolbar { padding-left: 78px; }

/* traffic lights */
.win-lights { position: absolute; z-index: 5; top: calc(var(--bar-h) / 2 - 6px); left: calc(var(--bar-h) / 2 - 4px); display: flex; gap: 8px; }
.chrome-titlebar .win-lights, .chrome-hud .win-lights { left: 9px; }
.chrome-bare .win-lights { top: 12px; left: 13px; }
.light { width: 12px; height: 12px; border-radius: 50%; padding: 0; position: relative; display: grid; place-items: center; color: rgba(0, 0, 0, .55); }
.light svg { width: 8px; height: 8px; opacity: 0; }
.light.close { background: var(--red-light); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.light.min { background: var(--yellow-light); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.light.zoom { background: var(--green-light); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.light.close svg { color: #4d0000; } .light.min svg { color: #985700; } .light.zoom svg { color: #006500; }
.win-lights:hover .light svg { opacity: 1; }
.light:active { filter: brightness(.82); }
.win:not(.focused) .win-lights:not(:hover) .light { background: var(--light-off); box-shadow: inset 0 0 0 .5px var(--light-off-border); }
.win.fixed-size .light.zoom { background: var(--light-off) !important; box-shadow: inset 0 0 0 .5px var(--light-off-border) !important; pointer-events: none; }
.win.fixed-size .light.zoom svg { display: none; }

/* resize handles */
.win-rz { position: absolute; z-index: 6; }
.rz-n, .rz-s { left: 8px; right: 8px; height: 8px; cursor: ns-resize; }
.rz-n { top: -4px; } .rz-s { bottom: -4px; }
.rz-e, .rz-w { top: 8px; bottom: 8px; width: 8px; cursor: ew-resize; }
.rz-e { right: -4px; } .rz-w { left: -4px; }
.rz-ne, .rz-nw, .rz-se, .rz-sw { width: 14px; height: 14px; }
.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; }
body.is-resizing, body.is-resizing * { user-select: none !important; }
body.rz-cursor-n *, body.rz-cursor-s * { cursor: ns-resize !important; }
body.rz-cursor-e *, body.rz-cursor-w * { cursor: ew-resize !important; }
body.rz-cursor-ne *, body.rz-cursor-sw * { cursor: nesw-resize !important; }
body.rz-cursor-nw *, body.rz-cursor-se * { cursor: nwse-resize !important; }
.win-ghost { position: absolute; left: 0; top: 0; border-radius: var(--radius-window); pointer-events: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 10px 40px rgba(0, 0, 0, .2); background: rgba(255, 255, 255, .06); }
.win-mobile { border-radius: 0; }

/* ======================================================= shared controls (PLAN 4.3) */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 10px; border-radius: 6px; font-size: 13px; color: var(--text); background: var(--bg-control); box-shadow: var(--shadow-control); white-space: nowrap; }
.btn:active { filter: brightness(.94); }
.btn:disabled { opacity: .45; }
.btn.primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 .5px 1.5px rgba(0, 0, 0, .2); }
.btn[hidden] { display: none; }
.seg { display: inline-flex; height: 26px; padding: 2px; gap: 2px; border-radius: 7px; background: var(--bg-field); }
.seg-b { width: 30px; display: grid; place-items: center; border-radius: 5px; color: var(--text-2); }
.seg-b .sym { width: 15px; height: 15px; }
.seg-b.on { background: var(--bg-control); color: var(--text); box-shadow: var(--shadow-control); }
.search { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 7px; background: var(--bg-field); color: var(--text-2); }
.search .search-glyph .sym { width: 13px; height: 13px; }
.search-input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 13px; color: var(--text); }
.search-input::placeholder { color: var(--text-3); text-transform: lowercase; }
.search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.list-row { display: flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 5px; }
.list-row.selected { background: var(--accent); color: #fff; }
.tb-group { display: flex; gap: 2px; }
.tb-btn { width: 30px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--text-2); }
.tb-btn:hover:not(:disabled) { background: var(--bg-hover); color: var(--text); }
.tb-btn:disabled { opacity: .35; }
.tb-btn .sym { width: 15px; height: 15px; }
.scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
.scroll::-webkit-scrollbar { width: 11px; height: 11px; }
.scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 6px; border: 3px solid transparent; background-clip: padding-box; }
.scroll::-webkit-scrollbar-track { background: transparent; }

/* ======================================================= desktop icons */
#icons { position: absolute; inset: 0; pointer-events: none; }
.d-icon { position: absolute; left: 0; top: 0; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 4px; pointer-events: auto; outline: none; }
.d-icon .ic { width: 76px; height: 76px; border-radius: 6px; padding: 2px; box-sizing: content-box; }
/* a faint light rim keeps dark folders (graphite cv) readable on black wallpapers, a soft shadow lifts light ones off white */
.d-icon .ic-folder + .d-label { margin-top: -7px; }
body.tone-dark .d-icon .ic-img { filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .55)) drop-shadow(0 0 5px rgba(255, 255, 255, .12)) drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
body.tone-light .d-icon .ic-img { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22)) drop-shadow(0 3px 8px rgba(0, 0, 0, .14)); }
.d-icon.selected .ic { background: rgba(0, 0, 0, .26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
body.tone-light .d-icon.selected .ic { background: rgba(0, 0, 0, .12); }
.d-label { max-width: 100px; padding: 1px 5px 2px; border-radius: 4px; font: 500 12px/1.22 var(--font); color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 3px rgba(0, 0, 0, .55), 0 0 10px rgba(0, 0, 0, .35);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.d-icon.selected .d-label { background: var(--accent); text-shadow: none; }
body.tone-light .d-label { color: rgba(0, 0, 0, .86); text-shadow: 0 0 2px rgba(255, 255, 255, .9), 0 0 10px rgba(255, 255, 255, .6); }
body.tone-light .d-icon.selected .d-label { color: #fff; text-shadow: none; }
.d-icon.dragging { opacity: .78; z-index: 2; }
.rubber-band { position: absolute; left: 0; top: 0; z-index: 3; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); pointer-events: none; }
body.tone-light .rubber-band { background: rgba(0, 0, 0, .07); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }

/* item icons (desktop, finder, spotlight, quick look) */
.ic { display: grid; place-items: center; position: relative; flex: none; }
.ic > * { max-width: 100%; max-height: 100%; }
.ic-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .18)); }
.ic-photo { max-width: 92%; max-height: 92%; object-fit: contain; border: 2px solid #fff; border-radius: 1px; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); background: #fff; }
.ic-page { max-width: 80%; max-height: 100%; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 1px 3px rgba(0, 0, 0, .25); }
.ic-badge { position: absolute; bottom: 10%; left: 50%; translate: -50% 0; padding: 1px 4px; border-radius: 3px; background: #d83b2e; color: #fff; font: 700 9px/1.2 var(--font); letter-spacing: .02em; }
.ic-doc .doc-svg { width: 76%; height: 96%; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .2)); }
.ic-case { width: 100%; height: 100%; }
.ic-casepage { position: relative; width: 74%; height: 94%; background: #fff; border-radius: 2px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .3); overflow: hidden; display: flex; flex-direction: column; }
.ic-casepage img { width: 100%; height: 58%; object-fit: cover; display: block; }
.ic-caselines { flex: 1; margin: 12% 14%; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .16) 0 1.5px, transparent 1.5px 18%); }
.tile-fallback.ic-img { width: 84%; height: 84%; }

/* ======================================================= widgets */
#widgets { position: absolute; top: calc(var(--menubar-h) + 20px); left: 20px; pointer-events: none; }
.w-col { display: grid; gap: 16px; }
.w-row { display: flex; gap: 16px; }
.widget { pointer-events: auto; position: relative; overflow: hidden; border-radius: 22px; color: #fff; text-align: left; display: block;
  background: rgba(30, 30, 34, .5); backdrop-filter: blur(40px) saturate(170%); -webkit-backdrop-filter: blur(40px) saturate(170%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 10px 30px rgba(0, 0, 0, .18); transition: transform .2s var(--ease); }
body.tone-light .widget { background: rgba(255, 255, 255, .55); color: rgba(0, 0, 0, .86); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .5), 0 0 0 .5px rgba(0, 0, 0, .08), 0 10px 30px rgba(0, 0, 0, .1); }
.widget:active { transform: scale(.98); }
.w-small { width: 170px; height: 170px; }
.w-medium { width: 356px; height: 170px; }
.w-clock { padding: 12px; display: grid; place-items: center; }
.w-clock-face { width: 146px; height: 146px; border-radius: 50%; background: #fbfbfb; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .1); }
.w-clock-face svg { width: 100%; height: 100%; }
.w-clock-nums text { font: 600 9.5px var(--font-display); fill: #111; }
.w-clock-city { font: 600 7px var(--font); fill: #8e8e93; }
.hand-h, .hand-m { stroke: #111; stroke-linecap: round; }
.hand-h { stroke-width: 3; } .hand-m { stroke-width: 2.2; }
.hand-s line { stroke: #ff9f0a; stroke-width: 1; } .hand-s circle { fill: #ff9f0a; }
.hand-pin { fill: #fff; }
.w-now { padding: 14px 16px; display: flex; flex-direction: column; }
.w-kicker { font: 600 13px/1 var(--font); color: #a99cff; margin-bottom: 10px; }
body.tone-light .w-kicker { color: var(--accent); }
.w-now ul { display: grid; gap: 5px; font: 600 15px/1.18 var(--font-display); letter-spacing: -.015em; }
.w-foot { margin-top: auto; font-size: 11px; opacity: .55; }
.w-photo { background: #111; }
.w-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-photo-label { position: absolute; left: 14px; bottom: 12px; z-index: 1; font: 600 13px/1 var(--font); color: #fff; text-shadow: 0 0 2px rgba(0, 0, 0, .55), 0 1px 8px rgba(0, 0, 0, .6); }
.w-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); border-radius: inherit; pointer-events: none; }

/* ======================================================= stickers */
.sticker { --size: 132px; position: absolute; left: 0; top: 0; width: var(--size); height: var(--size); pointer-events: auto; touch-action: none; cursor: grab; outline: none; transform-origin: 50% 50%; }
.sticker img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.st-front { position: absolute; inset: 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .28)) drop-shadow(0 3px 6px rgba(0, 0, 0, .12)); transition: filter .18s var(--ease), transform .18s var(--ease); }
/* peel: on hover the top-right corner folds back along a 45° line, showing the pale backing.
   The flap is the sticker itself reflected across the fold, so it follows any die-cut shape. */
.st-peel { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .14s var(--ease); filter: drop-shadow(-1.5px 2px 1.5px rgba(0, 0, 0, .28)); }
.st-back { position: absolute; inset: 0; transform-origin: 0 0; transform: translate(calc(var(--size) * .66), calc(var(--size) * -.66)) matrix(0, 1, 1, 0, 0, 0); clip-path: polygon(66% 0, 100% 34%, 100% 0); }
.st-back img { filter: brightness(0) invert(.93) sepia(.12); }
/* the mask sits on the image, inside .st-front, so the drop-shadows (which are outside the box) are never clipped by it */
.sticker:hover:not(.held) .st-front img { -webkit-mask: linear-gradient(225deg, transparent 0 17%, #000 17%); mask: linear-gradient(225deg, transparent 0 17%, #000 17%); }
.sticker:hover:not(.held) .st-peel { opacity: 1; }
.sticker:hover:not(.held) .st-front { transform: translateY(-1px) scale(1.015); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .24)) drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }
.sticker.held { cursor: grabbing; }
.sticker.held .st-front { transform: scale(1.06); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)) drop-shadow(0 18px 26px rgba(0, 0, 0, .32)); }
.sticker.held .st-peel { opacity: 0; }
.sticker:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }

/* ======================================================= notifications */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px 12px 12px; margin-bottom: 8px; border-radius: 18px; color: var(--text);
  background: var(--material-notification); backdrop-filter: blur(40px) saturate(190%); -webkit-backdrop-filter: blur(40px) saturate(190%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), inset 0 0 0 .5px rgba(255, 255, 255, .25), 0 8px 26px rgba(0, 0, 0, .2); }
.banner-icon { width: 34px; height: 34px; flex: none; object-fit: contain; margin-top: 1px; }
.banner-icon.tile-fallback { width: 32px; height: 32px; margin: 2px 1px 0; }
.banner-text { flex: 1; min-width: 0; }
.banner-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.banner-head b { font: 600 13px/1.3 var(--font); }
.banner-head time { font-size: 11px; color: var(--text-2); }
.banner p { font-size: 13px; line-height: 1.32; color: var(--text); margin-top: 1px; }

/* ======================================================= spotlight */
.spotlight { position: fixed; top: 22vh; left: 50%; translate: -50% 0; width: min(680px, calc(100vw - 32px)); border-radius: 14px; overflow: hidden; color: var(--text);
  background: var(--material-popover); backdrop-filter: blur(50px) saturate(190%); -webkit-backdrop-filter: blur(50px) saturate(190%);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3), inset 0 0 0 .5px rgba(255, 255, 255, .25), 0 24px 70px rgba(0, 0, 0, .35); }
.sp-field { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; }
.sp-glass { color: var(--text-2); }
.sp-glass .sym { width: 21px; height: 21px; }
.sp-input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 300 23px/1 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.sp-input::placeholder { color: var(--text-3); text-transform: lowercase; }
.sp-body { display: none; height: min(380px, 52vh); border-top: .5px solid var(--sep); }
.spotlight.has-results .sp-body { display: grid; grid-template-columns: 296px 1fr; }
.sp-list { overflow: auto; padding: 4px 0 8px; border-right: .5px solid var(--sep); scrollbar-width: thin; }
.sp-group { padding: 8px 16px 3px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.sp-row { display: flex; align-items: center; gap: 8px; height: 26px; margin: 0 6px; padding: 0 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; }
.sp-row.active { background: var(--accent); color: #fff; }
.sp-row.active .sp-sub { color: rgba(255, 255, 255, .78); }
.sp-icon { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.sp-icon .ic, .sp-img { width: 20px; height: 20px; }
.sp-thumb { object-fit: cover; border-radius: 3px; }
.sp-sym .sym { width: 15px; height: 15px; }
.sp-title { font-size: 13px; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.sp-sub { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; flex: 1; }
.sp-none { padding: 20px; color: var(--text-2); }
.sp-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px 24px; text-align: center; overflow: hidden; }
.sp-pv-img { max-width: 100%; max-height: 190px; object-fit: contain; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.sp-pv-page { background: #fff; border-radius: 2px; }
.sp-pv-icon .ic, .sp-pv-icon .sp-img, .sp-pv-icon .dock-img { width: 96px; height: 96px; }
.sp-pv-title { font: 600 17px/1.2 var(--font-display); margin-top: 6px; }
.sp-pv-kind { font-size: 12px; color: var(--text-2); }
.sp-pv-text { font-size: 12px; color: var(--text-2); line-height: 1.4; max-width: 300px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }


/* ======================================================= finder */
.win-finder { --sidebar-w: 180px; }
.fd-tb { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 10px 0 8px; }
.fd-title { font: 700 15px/1 var(--font-display); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; min-width: 0; }
.fd-search { width: 168px; }
.fd-empty { margin-right: 4px; }
.fd-side { padding: 0 10px 10px; }
.fd-sec { margin-bottom: 10px; }
.fd-sec-h { font-size: 11px; font-weight: 600; color: var(--text-3); padding: 6px 8px 4px; }
.fd-side-item { display: flex; align-items: center; gap: 7px; width: 100%; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 13px; text-align: left; }
.fd-side-sym { color: var(--icon-sym); display: grid; }
.fd-side-item.selected { background: var(--bg-selected-muted); }
.win.focused .fd-side-item.selected { background: color-mix(in srgb, var(--text) 11%, transparent); }
.fd { display: flex; flex-direction: column; }
.fd-view { flex: 1; min-height: 0; position: relative; outline: none; }
.fd-none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 13px; }
.fd-path { flex: none; display: flex; align-items: center; gap: 2px; height: 26px; padding: 0 10px; border-top: .5px solid var(--sep); background: var(--bg-content); font-size: 11.5px; color: var(--text-2); overflow: hidden; white-space: nowrap; }
.fd.no-pathbar .fd-path { display: none; }
.fd-crumb { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 4px; }
.fd-crumb:hover { background: var(--bg-hover); color: var(--text); }
.fd-crumb-ic .ic { width: 14px; height: 14px; }
.fd-path-sep .sym { width: 9px; height: 9px; opacity: .55; }
.fd-status { flex: none; height: 22px; display: grid; place-items: center; font-size: 11px; color: var(--text-2); border-top: .5px solid var(--sep); background: var(--bg-content); }
/* icons */
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); grid-auto-rows: 112px; padding: 12px 10px; align-content: start; min-height: 100%; }
.fd-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; }
.fd-icon .ic { width: 64px; height: 64px; padding: 3px; box-sizing: content-box; border-radius: 6px; }
.fd-label { max-width: 96px; padding: 1px 5px 2px; border-radius: 4px; font-size: 12px; line-height: 1.22; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.fd-icon.selected .ic { background: var(--bg-selected-muted); }
.fd-icon.selected .fd-label { background: var(--bg-selected-muted); }
.win.focused .fd-icon.selected .fd-label { background: var(--accent); color: #fff; }
/* list */
.fd-list-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr 110px 140px; height: 26px; align-items: center; padding: 0 18px 0 30px; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--bg-content); box-shadow: 0 .5px 0 var(--sep); }
.fd-list-body { padding: 2px 8px 8px; min-height: calc(100% - 26px); }
.fd-row { display: grid; grid-template-columns: 1fr 110px 140px; align-items: center; height: 24px; padding: 0 10px 0 6px; border-radius: 5px; font-size: 13px; }
.fd-row.odd { background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.fd-row.selected { background: var(--bg-selected-muted); }
.win.focused .fd-row.selected { background: var(--accent); color: #fff; }
.win.focused .fd-row.selected .fd-cell { color: #fff; }
.fd-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.fd-name { display: flex; align-items: center; gap: 6px; color: var(--text); }
.fd-row-ic .ic { width: 18px; height: 18px; }
.fd-row-ic .ic-badge { display: none; }
.fd-row-name { overflow: hidden; text-overflow: ellipsis; }
/* columns */
.fd-columns { overflow: hidden; }
.fd-cols { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; }
.fd-col { flex: none; width: 220px; height: 100%; padding: 4px 6px; border-right: .5px solid var(--sep); }
.fd-colrow { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px; border-radius: 5px; font-size: 13px; }
.fd-colrow .fd-row-name { flex: 1; white-space: nowrap; }
.fd-chev { color: var(--text-3); }
.fd-chev .sym { width: 10px; height: 10px; }
.fd-colrow.trail { background: var(--bg-selected-muted); }
.fd-colrow.selected { background: var(--bg-selected-muted); }
.win.focused .fd-colrow.selected { background: var(--accent); color: #fff; }
.win.focused .fd-colrow.selected .fd-chev { color: rgba(255, 255, 255, .8); }
.fd-col-preview { width: 260px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 18px; text-align: center; }
.fd-pv { width: 100%; display: grid; place-items: center; }
.fd-pv-img { max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 3px; box-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.fd-pv-icon .ic { width: 128px; height: 128px; }
.fd-pv-name { font-size: 13px; margin-top: 8px; }
.fd-pv-kind { font-size: 11px; color: var(--text-2); }
/* gallery */
.fd-gallery { display: flex; flex-direction: column; overflow: hidden; }
.fd-hero { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; }
.fd-hero-pic { flex: 1; min-height: 0; width: 100%; position: relative; }
.fd-hero-pic .fd-pv { position: absolute; inset: 0; display: grid; place-items: center; }
.fd-hero-pic .fd-pv-img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; box-shadow: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .22)); }
.fd-hero-pic .fd-pv-icon .ic { width: 160px; height: 160px; }
.fd-hero-meta { display: grid; justify-items: center; gap: 2px; }
.fd-hero-meta b { font-weight: 600; font-size: 13px; }
.fd-hero-meta span { font-size: 11px; color: var(--text-2); }
.fd-strip { flex: none; display: flex; gap: 6px; padding: 8px 12px 10px; overflow-x: auto; justify-content: safe center; border-top: .5px solid var(--sep); }
.fd-thumb { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 6px; }
.fd-thumb .ic { width: 48px; height: 48px; }
.fd-thumb.selected { box-shadow: 0 0 0 2.5px var(--accent); }

/* get info */
.gi-scroll { background: var(--bg-window); }
.gi { padding: 12px 14px 16px; font-size: 12px; }
.gi-head { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: .5px solid var(--sep); }
.gi-ic .ic { width: 40px; height: 40px; }
.gi-head b { display: block; font-size: 13px; font-weight: 600; }
.gi-head span { font-size: 11px; color: var(--text-2); }
.gi-sec { border-bottom: .5px solid var(--sep); padding: 7px 0; }
.gi-sec summary { font-weight: 600; font-size: 12px; cursor: default; list-style: none; display: flex; align-items: center; gap: 4px; }
.gi-sec summary::before { content: ""; width: 0; height: 0; border-left: 4px solid var(--text-2); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; transition: transform .15s; }
.gi-sec[open] summary::before { transform: rotate(90deg); }
.gi-sec summary::-webkit-details-marker { display: none; }
.gi dl { display: grid; gap: 3px; margin: 8px 0 2px; }
.gi-row { display: grid; grid-template-columns: 84px 1fr; gap: 6px; }
.gi dt { text-align: right; color: var(--text-2); }
.gi dd { margin: 0; word-break: break-word; }
.gi-comment { margin: 8px 4px 2px; color: var(--text-2); line-height: 1.4; }
.gi .fd-pv { margin-top: 8px; }

/* crumple (empty trash) */
.crumple { position: fixed; left: 0; top: 0; z-index: 80; width: 40px; height: 40px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.crumple svg { width: 100%; height: 100%; }

/* ======================================================= quick look */
.win-ql .win-bar { justify-content: center; }
.win-ql .win-title { display: block !important; position: absolute; inset: 0 150px; line-height: var(--bar-h); padding: 0; text-align: center; font: 600 13px/var(--bar-h) var(--font); }
.ql-tb { display: flex; align-items: center; width: 100%; padding: 0 6px 0 76px; gap: 4px; position: relative; z-index: 1; }
.ql-tb .tb-btn { color: rgba(255, 255, 255, .7); height: 24px; width: 28px; }
.ql-tb .tb-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ql-tb .tb-btn[hidden] { display: none; }
.ql-open { height: 20px; font-size: 12px; background: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .12); }
.ql-open[hidden] { display: none; }
.ql-body { display: flex; }
.ql-body > * { flex: 1; min-height: 0; }
.ql-stage { display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; }
.ql-photo { padding: 0; }
.ql-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ql-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .45); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.ql-doc { align-items: flex-start; padding: 14px; background: rgba(0, 0, 0, .25); }
.ql-pdf { width: 100%; height: auto; display: block; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.ql-card { flex-direction: column; gap: 6px; padding: 24px; text-align: center; color: rgba(255, 255, 255, .9); }
.ql-card b { font-size: 15px; font-weight: 600; margin-top: 8px; }
.ql-card span { font-size: 12px; color: rgba(255, 255, 255, .55); }
.ql-card p { font-size: 13px; color: rgba(255, 255, 255, .75); max-width: 300px; margin-top: 6px; line-height: 1.4; }
.ql-cover { max-width: 92%; max-height: 64%; border-radius: 6px; object-fit: contain; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.ql-big-ic .ic { width: 128px; height: 128px; }
.ql-icon { display: grid; justify-items: center; gap: 10px; color: rgba(255, 255, 255, .6); }
.ql-icon .ic { width: 128px; height: 128px; }
.ql-paper { background: rgba(0, 0, 0, .22); padding: 14px; }
.ql-page { max-width: 560px; margin: 0 auto; min-height: 100%; background: #fff; color: #1d1d1f; padding: 44px 50px 50px; box-shadow: 0 2px 14px rgba(0, 0, 0, .35); font: 400 14px/1.6 var(--font); }
.ql-page h1 { font: 700 24px/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 4px; }
.ql-page p { margin: 0 0 12px; }
.ql-page .ql-date { color: #86868b; font-size: 12px; margin-bottom: 18px; }
.ql-page-portrait { float: right; width: 120px; height: 150px; object-fit: cover; border-radius: 6px; margin: 0 0 12px 20px; }
.ql-entry { margin: 18px 0; }
.ql-entry-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ql-entry-h b { font-weight: 600; font-size: 15px; }
.ql-entry-h span { color: #86868b; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ql-entry-sub { color: #86868b; font-size: 12px; }
.ql-entry-role { font-style: italic; margin: 4px 0; }
.ql-entry ul { list-style: disc; padding-left: 18px; }
.ql-entry li { margin: 4px 0; }
.ql-tags { margin: 14px 0; }
.ql-tags b { font-weight: 600; }
.ql-info { display: grid; gap: 4px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #e5e5ea; font-size: 13px; }
.ql-info div { display: grid; grid-template-columns: 110px 1fr; }
.ql-info dt { color: #86868b; }
.ql-info dd { margin: 0; }

/* ======================================================= brand popups */
.win-ad .win-body { background: #000; }
.ad-art { display: block; width: 100%; height: 100%; padding: 0; cursor: pointer; }
.ad-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-art:active img { filter: brightness(.92); }

/* ======================================================= phones: the proper iPhone layout is C3's (css/mobile.css); this only keeps things usable */
@media (max-width: 759.98px) {
  :root { --dock-size: min(54px, calc((100vw - 70px) / 12.4)); }
  #dock { border-radius: 14px; padding: 4px; height: calc(var(--dock-size) + 10px); }
  .dock-sep { margin: 0 3px 2px; }
  #widgets { display: none; }
  .win-mobile { left: 0 !important; }
  #notifications { left: 8px; right: 8px; width: auto; }
  .spotlight.has-results .sp-body { grid-template-columns: 1fr; }
  .sp-preview { display: none; }
  .fd-search { width: 110px; }
  .win-finder { --sidebar-w: 0px; }
  .win-finder .win-sidebar { display: none; }
  .mb-left .mb-item:not(.mb-logo):not(.mb-app) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-thumb { filter: none; transform: none; }
}

