/* Proofsheet - the site is a desktop: albums are folders, photos are files, pages are windows.
   Colours and fonts are tokens on :root. data-ui="light|dark" on <html> is the daylight / evening theme (switch in the shelf). */

:root {
  --f-ui: "Manrope", system-ui, sans-serif;
  --f-display: "Fraunces", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-s: 7px;
  --shelf-h: 50px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --win: rgba(251, 250, 247, .86);
  --win-solid: #fbfaf7;
  --bar: rgba(242, 240, 235, .72);
  --side: rgba(236, 233, 226, .55);
  --ink: #1c1b19;
  --mute: #77736b;
  --line: rgba(28, 27, 25, .09);
  --line-2: rgba(28, 27, 25, .16);
  --edge: rgba(255, 255, 255, .7);
  --sel: #c4553a;
  --sel-ink: #fff;
  --sel-soft: rgba(196, 85, 58, .13);
  --shelf: rgba(246, 244, 239, .7);
  --film: #151412;
  --film-ink: #e9a94a;
  --pencil: #d8332a;
  --live: #4f9d63;
}
:root[data-ui="dark"] {
  --win: rgba(30, 29, 27, .84);
  --win-solid: #22211f;
  --bar: rgba(40, 39, 36, .7);
  --side: rgba(20, 19, 18, .35);
  --ink: #f2efe9;
  --mute: #9a958c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --edge: rgba(255, 255, 255, .12);
  --sel: #e2a04a;
  --sel-ink: #1c1b19;
  --sel-soft: rgba(226, 160, 74, .16);
  --shelf: rgba(28, 27, 25, .66);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--f-ui); color: var(--ink); background: #2a2926; overflow: hidden; height: 100vh; height: 100dvh; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--sel); color: var(--sel-ink); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
.win:focus, .win:focus-visible { outline: none; }

/* ---------- desktop ---------- */
.desk { position: fixed; inset: 0; overflow: hidden; }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall-night, :root[data-ui="dark"] .wall-day { display: none; }
:root[data-ui="dark"] .wall-night { display: block; }
.desk::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.34), transparent 16%, transparent 84%, rgba(0,0,0,.3)); }

.icons { position: absolute; top: 18px; bottom: calc(var(--shelf-h) + 14px); z-index: 1;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 112px); grid-auto-columns: 100px; gap: 2px 6px; }
.icons-sys { left: 14px; }
.icons-albums { right: 14px; direction: rtl; }
.icons-albums .ico { direction: ltr; }
.ico { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px 6px; border-radius: 9px;
  color: #fff; text-decoration: none; user-select: none; -webkit-user-select: none; }
.ico:hover { background: rgba(255, 255, 255, .13); }
.ico.is-sel, .ico:focus-visible { background: rgba(255, 255, 255, .2); outline: 1px solid rgba(255, 255, 255, .45); outline-offset: 0; }
.ico-img { width: 64px; height: 56px; display: grid; place-items: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)); }
.ico-img svg { width: 56px; height: 56px; }
.ico-label { font-size: 12px; line-height: 1.25; font-weight: 500; text-align: center; padding: 1px 6px; border-radius: 4px;
  background: rgba(20, 19, 17, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: 0 1px 1px rgba(0,0,0,.45);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ico.is-sel .ico-label { background: var(--sel); color: var(--sel-ink); text-shadow: none; }
.ico[aria-current] .ico-label { box-shadow: inset 0 -2px 0 rgba(255,255,255,.8); }

/* folder icon: the cover photo of the album sits inside the folder, the front flap covers its lower half */
.folder { position: relative; width: 66px; height: 54px; display: block; }
.folder-back { position: absolute; inset: 5px 0 0; border-radius: 4px 6px 5px 5px; background: linear-gradient(#c8935a, #b57f45); }
.folder-back::before { content: ""; position: absolute; left: 0; top: -5px; width: 42%; height: 9px; border-radius: 4px 6px 0 0; background: #c8935a; }
.folder img { position: absolute; left: 13%; top: 3px; width: 74%; height: 72%; object-fit: cover; border: 2px solid #fff; border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); transform: rotate(-3deg); }
.folder-front { position: absolute; left: -1px; right: -1px; bottom: 0; height: 64%; border-radius: 4px 4px 5px 5px;
  background: linear-gradient(#ecc591, #d6a466 60%, #cd9a5b); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 -1px 2px rgba(0,0,0,.12);
  transform: perspective(160px) rotateX(-12deg); transform-origin: bottom; }
.folder-stack img:nth-of-type(1) { transform: rotate(-9deg) translate(-4px, 2px); }
.folder-stack img:nth-of-type(2) { transform: rotate(6deg) translate(5px, 1px); }
.folder-stack img:nth-of-type(3) { transform: rotate(-1deg); }
.folder-sm { width: 46px; height: 38px; }
.folder-lg { width: 124px; height: 100px; }
.folder-lg img { border-width: 3px; }
.folder-lg .folder-back::before { top: -7px; height: 12px; }
a:hover .folder img, .ico:hover .folder img { transform: rotate(-3deg) translateY(-4px); }
.folder img { transition: transform .35s var(--ease); }

/* ---------- windows ---------- */
.stage { position: absolute; inset: 0 0 var(--shelf-h); z-index: 2; pointer-events: none; }
.stage > * { pointer-events: auto; }
.win { --ww: min(var(--w, 760px), calc(100vw - 260px));
  position: absolute; left: var(--x, calc(50% - var(--ww) / 2)); top: var(--y, 4.5vh); width: var(--ww);
  max-height: calc(100% - var(--y, 4.5vh) - 14px); display: flex; flex-direction: column;
  background: var(--win); color: var(--ink); border-radius: var(--radius); overflow: hidden;
  -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 0 var(--edge), 0 34px 90px -24px rgba(0,0,0,.55), 0 12px 28px -10px rgba(0,0,0,.3); }
.win.is-back { box-shadow: 0 0 0 1px var(--line-2), 0 14px 40px -16px rgba(0,0,0,.4); }
.win.is-back .win-bar { opacity: .72; }
.win.is-max { left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px); max-height: none; z-index: 40; }
.win.is-min { display: none; }
.win-bar { flex: 0 0 auto; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px;
  background: var(--bar); border-bottom: 1px solid var(--line); user-select: none; -webkit-user-select: none; touch-action: none; }
.js .win-bar { cursor: grab; }
.win.is-drag .win-bar { cursor: grabbing; }
.win-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.win-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-ctl { display: flex; gap: 2px; }
.win-btn { width: 34px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--mute); text-decoration: none; }
.win-btn:hover { background: var(--line); color: var(--ink); }
.win-close:hover { background: var(--pencil); color: #fff; }
.win-close .ic-back { display: none; }
.win-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }

/* window opening: grows out of the icon it was opened from (JS sets --from-x/--from-y) */
.motion .win.is-opening { animation: win-in .42s var(--ease) both; }
.motion .win.is-closing { animation: win-out .22s ease-in both; }
@keyframes win-in { from { opacity: 0; transform: translate(var(--from-x, 0), var(--from-y, 20px)) scale(.18); } }
@keyframes win-out { to { opacity: 0; transform: scale(.94); } }

/* shared type */
.kicker, .label { font: 400 11.5px/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.display { font: 400 clamp(32px, 3.4vw, 46px)/1.04 var(--f-display); letter-spacing: -.012em; }
.lead { font-size: 16px; line-height: 1.6; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 8px; white-space: nowrap;
  font-size: 14px; font-weight: 500; text-decoration: none; background: var(--win-solid); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0,0,0,.06); transition: transform .15s; }
.btn:hover { box-shadow: 0 0 0 1px var(--mute), 0 2px 6px rgba(0,0,0,.08); }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--sel); color: var(--sel-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.2); }
.btn-main:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px -2px var(--sel); }

/* Welcome.txt */
.welcome { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 30px 32px 26px; }
.welcome-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-position: 50% 25%; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.welcome-text { display: flex; flex-direction: column; gap: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 4px; }
.facts div { padding: 10px 0; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts dt { font: 400 11px var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { font: 400 26px/1.2 var(--f-display); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.welcome-recent { border-top: 1px solid var(--line); padding: 16px 32px 22px; background: var(--side); }
.mini-folders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.mini-folders a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; text-decoration: none; }
.mini-folders a:hover { background: var(--line); }
.mini-folders strong { display: block; font-size: 13.5px; font-weight: 500; }
.mini-folders small { display: block; font-size: 12px; color: var(--mute); }
.welcome-hint { font-size: 13px; color: var(--mute); max-width: 60ch; }

/* sticky note on the desktop */
.sticky { position: absolute; right: 142px; top: 26px; width: 188px; padding: 20px 18px 16px; transform: rotate(2.5deg);
  background: linear-gradient(170deg, #fff3a8, #f7e27d); color: #3b3423; font: italic 400 17px/1.35 var(--f-display);
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 14px 22px -12px rgba(0,0,0,.5); border-radius: 2px 2px 6px 2px; z-index: 1; }
.sticky::before { content: ""; position: absolute; left: 50%; top: -8px; width: 64px; height: 18px; margin-left: -32px;
  background: rgba(255,255,255,.55); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.sticky p + p { margin-top: 6px; }
.sticky-sign { text-align: right; font-size: 22px; }

/* ---------- file browser (Albums, album) ---------- */
.files { flex: 1; min-height: 0; display: grid; grid-template-columns: 196px 1fr; height: min(74vh, 780px); }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 10px 8px; overflow: auto; }
.side-h { font: 400 11px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); padding: 12px 10px 6px; }
.side-item { width: 100%; display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px; border-radius: 6px;
  font-size: 13px; text-decoration: none; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item svg { flex: 0 0 auto; color: var(--mute); }
.side-item:hover { background: var(--line); }
.side-item.is-on, .side-item[aria-current] { background: var(--sel-soft); color: var(--sel); }
.side-item.is-on svg, .side-item[aria-current] svg { color: var(--sel); }
.files-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tool { display: flex; align-items: center; gap: 12px; height: 48px; flex: 0 0 auto; padding: 0 14px; border-bottom: 1px solid var(--line); }
.tool-h { font-size: 15px; font-weight: 600; }
.tool-meta { font-size: 12.5px; color: var(--mute); }
.tool-back { width: 30px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--mute); }
.tool-back:hover { background: var(--line); color: var(--ink); }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.seg { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 8px; background: var(--line); flex: 0 0 auto; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; color: var(--mute); }
.seg-btn.is-on { background: var(--win-solid); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.pane { flex: 1; min-height: 0; overflow: auto; padding: 22px 22px 28px; overscroll-behavior: contain; }
.status { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 16px; height: 30px; align-items: center; padding: 0 14px;
  border-top: 1px solid var(--line); font: 400 11.5px var(--f-mono); color: var(--mute); white-space: nowrap; overflow: hidden; }

.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 18px 8px; }
.folder-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px 12px; border-radius: 10px; text-decoration: none; }
.folder-item:hover { background: var(--line); }
.folder-item .folder { margin-bottom: 10px; }
.fi-name { font-size: 14px; font-weight: 500; }
.fi-meta { font-size: 12px; color: var(--mute); }
.fi-date, .fi-size { display: none; }
.folders li[hidden] { display: none; }
.pane.is-list .folders { grid-template-columns: 1fr; gap: 0; }
.pane.is-list .folder-item { display: grid; grid-template-columns: 44px 1.3fr 1.6fr 1fr 80px; align-items: center; text-align: left; gap: 14px;
  padding: 6px 10px; border-radius: 6px; }
.pane.is-list li:nth-child(odd) .folder-item { background: var(--line); }
.pane.is-list .folder { width: 40px; height: 32px; margin: 0; }
.pane.is-list .folder img { border-width: 1px; }
.pane.is-list .fi-date, .pane.is-list .fi-size { display: block; font-size: 12.5px; color: var(--mute); }

/* one album */
.album-head { max-width: 660px; padding: 4px 2px 26px; display: flex; flex-direction: column; gap: 8px; }
.album-head .display { font-size: clamp(38px, 4vw, 56px); }
.album-place { font: italic 400 20px var(--f-display); color: var(--mute); }
.album-story { display: grid; gap: 10px; margin-top: 6px; font-size: 15px; line-height: 1.65; }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 12px; }
.frame a { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: inherit; border-radius: 8px; }
.frame-img { position: relative; width: 100%; aspect-ratio: 1; display: block; border-radius: 8px; }
.frame-img img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); max-width: none; object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.frame-no { display: none; }
.frame-name { max-width: 100%; padding: 1px 6px; border-radius: 4px; font: 400 11px var(--f-mono); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame a:hover .frame-img, .frame a.is-sel .frame-img { background: var(--line); }
.frame a.is-sel .frame-name, .frame a:focus-visible .frame-name { background: var(--sel); color: var(--sel-ink); }
.frame a:focus-visible { outline: none; }
.frame a:focus-visible .frame-img { background: var(--sel-soft); }

/* proof sheet: frames on black film, edge numbers, favourites ringed with a red grease pencil */
.frames[data-view="sheet"] { background: var(--film); padding: 18px 18px 22px; border-radius: 3px; gap: 0 10px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); box-shadow: 0 10px 30px -14px rgba(0,0,0,.6); }
.frames[data-view="sheet"] .frame a { gap: 2px; padding: 12px 0 6px; border-radius: 0;
  background: repeating-linear-gradient(90deg, #34322d 0 7px, transparent 7px 13px) top / 100% 5px no-repeat,
              repeating-linear-gradient(90deg, #34322d 0 7px, transparent 7px 13px) bottom / 100% 5px no-repeat; }
.frames[data-view="sheet"] .frame-img { aspect-ratio: 1; padding: 0; border-radius: 0; background: none !important; position: relative; }
.frames[data-view="sheet"] .frame-img img { inset: 0; width: 100%; height: 100%; filter: none; }
.frames[data-view="sheet"] .frame-img img { object-fit: contain; }
.frames[data-view="sheet"] .frame-no { display: block; align-self: flex-start; font: 400 10.5px var(--f-mono); color: var(--film-ink); letter-spacing: .08em; }
.frames[data-view="sheet"] .frame-no::before { content: "\25B8 "; }
.frames[data-view="sheet"] .frame-name { display: none; }
.frames[data-view="sheet"] .is-pick .frame-img::after { content: ""; position: absolute; inset: -2px 4px; border: 2.5px solid var(--pencil);
  border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; transform: rotate(-4deg); opacity: .92; }
.frames[data-view="sheet"] .frame a.is-sel .frame-img img { outline: 2px solid var(--film-ink); }

.frames[data-view="strip"] { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 16px 14px; background: var(--film); border-radius: 3px; scroll-snap-type: x mandatory; }
.frames[data-view="strip"] .frame { flex: 0 0 auto; max-width: 100%; scroll-snap-align: center; }
/* each frame is shown whole: as tall as the strip allows, never wider than the window */
.frames[data-view="strip"] .frame-img { --strip-h: min(48vh, 440px); height: auto; width: auto; max-width: 100%; aspect-ratio: auto; padding: 0; background: none !important; }
.frames[data-view="strip"] .frame-img img { position: static; width: auto; height: auto; max-width: 100%; max-height: var(--strip-h); filter: none; }
.frames[data-view="strip"] .frame-name { color: var(--film-ink); }
.frames[data-view="strip"] .frame-no { display: none; }

.album-next { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.album-next a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; text-decoration: none; box-shadow: 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500; }
.album-next a:hover { background: var(--line); }
.album-next small { display: block; font: 400 11px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.album-next .is-next { justify-content: flex-end; text-align: right; }

/* ---------- About Tove.note ---------- */
.note { display: grid; grid-template-columns: 1fr 270px; min-height: 100%; }
.note-main { display: flex; flex-direction: column; gap: 14px; padding: 30px 36px 34px; }
.note-main > p { line-height: 1.7; max-width: 62ch; }
.note-date { font: 400 12px var(--f-mono); color: var(--mute); text-align: center; }
.note-h { font: 400 26px/1.2 var(--f-display); margin-top: 10px; }
.checks { display: grid; gap: 10px; max-width: 62ch; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.check { width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--sel); position: relative; }
.check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--sel-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.note-side { border-left: 1px solid var(--line); background: var(--side); padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.attachments { display: grid; gap: 14px; }
.attach { background: var(--win-solid); padding: 8px 8px 6px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(0,0,0,.5); }
.attach img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 3px; }
.attach figcaption { font: 400 11px var(--f-mono); color: var(--mute); padding-top: 6px; }
.attach + .attach { transform: rotate(1.5deg); }
.kit { display: grid; gap: 8px; font-size: 13.5px; }
.kit li { display: grid; padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.kit span { color: var(--mute); font-size: 12.5px; }

/* ---------- Collections.pdf: a page on a grey reader desk ---------- */
.pdf-tool { flex: 0 0 auto; display: flex; justify-content: center; gap: 22px; height: 32px; align-items: center; border-bottom: 1px solid var(--line);
  font: 400 11.5px var(--f-mono); color: var(--mute); background: var(--bar); }
.pdf-desk { background: #8d8a84; padding: 28px; }
:root[data-ui="dark"] .pdf-desk { background: #11100f; }
.page { max-width: 820px; margin: 0 auto; background: #fdfcf9; color: #1c1b19; padding: 48px 52px 40px; box-shadow: 0 2px 4px rgba(0,0,0,.18), 0 24px 50px -24px rgba(0,0,0,.6);
  --mute: #77736b; --line: rgba(28,27,25,.1); --line-2: rgba(28,27,25,.18); --ink: #1c1b19; }
.page-head { display: grid; gap: 10px; max-width: 560px; margin-bottom: 30px; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid #1c1b19; }
.package { padding: 18px 18px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.package + .package { padding-left: 18px; border-left: 1px solid var(--line-2); }
.package-badge { font: 400 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: #c4553a; min-height: 15px; }
.package-name { font: 400 28px/1.1 var(--f-display); }
.package-price { font: 500 20px var(--f-ui); }
.package-price span { font-size: 12px; color: var(--mute); font-weight: 400; }
.package-hours { font: 400 12px var(--f-mono); color: var(--mute); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.package ul { display: grid; gap: 7px; font-size: 13.5px; padding-top: 4px; }
.package li { padding-left: 16px; position: relative; }
.package li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: #1c1b19; }
.page-h { font: 400 22px var(--f-display); margin: 30px 0 8px; }
.extras { display: grid; border-top: 1px solid var(--line-2); }
.extras div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.extras dd { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.page-note { font-size: 13px; color: var(--mute); margin-top: 16px; }
.page-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 18px;
  border-top: 2px solid #1c1b19; font: 400 12px var(--f-mono); color: var(--mute); }
.page .btn-main { background: #c4553a; color: #fff; }

/* ---------- Kind words: a mail app ---------- */
.mail { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px 1fr; height: min(72vh, 720px); }
.mail-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--side); }
.letters { overflow: auto; padding: 6px; }
.letter-item { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 12px 10px; border-radius: 8px; text-decoration: none; }
.letter-item:hover { background: var(--line); }
.letter-item.is-on { background: var(--sel); color: var(--sel-ink); }
.letter-item.is-on .letter-date, .letter-item.is-on .letter-prev { color: inherit; opacity: .85; }
.letter-av { grid-row: span 3; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: block; }
.letter-av img { width: 100%; height: 100%; object-fit: cover; }
.letter-top { display: flex; justify-content: space-between; gap: 8px; }
.letter-from { font-weight: 600; font-size: 14px; }
.letter-date { font-size: 12px; color: var(--mute); white-space: nowrap; }
.letter-subj { font-size: 13px; }
.letter-prev { font-size: 12.5px; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail-read { overflow: auto; padding: 30px 40px; }
.letter { max-width: 600px; display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; line-height: 1.7; }
.letter + .letter { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.js .letter + .letter { margin-top: 0; padding-top: 0; border: 0; }
.js .letter[hidden] { display: none; }
.letter-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.letter-av-big { width: 48px; height: 48px; }
.letter-to { font-size: 12.5px; color: var(--mute); }
.letter-h { font: 400 32px/1.15 var(--f-display); }
.letter-attach { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: 8px; padding: 10px 16px 10px 10px; border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line-2); text-decoration: none; font-size: 13.5px; line-height: 1.3; }
.letter-attach:hover { background: var(--line); }
.letter-attach small { display: block; color: var(--mute); font-size: 12px; }
.mail-back { display: none; }

/* ---------- Questions.txt ---------- */
.txt { padding: 30px 36px 34px; display: flex; flex-direction: column; gap: 12px; }
.faq { border-top: 1px solid var(--line-2); margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: grid; grid-template-columns: 34px 1fr 22px; gap: 10px; align-items: baseline; padding: 15px 2px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-n { font: 400 11.5px var(--f-mono); color: var(--mute); }
.faq-q { font: 400 21px/1.3 var(--f-display); }
.faq-plus { position: relative; width: 14px; height: 14px; align-self: center; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-item summary:hover .faq-q { color: var(--sel); }
.faq-item p { padding: 0 32px 18px 46px; line-height: 1.65; max-width: 64ch; }
.txt-end { margin-top: 10px; color: var(--mute); }
.txt-end a { color: var(--sel); }

/* ---------- Write to me: a new message ---------- */
.compose { display: flex; flex-direction: column; }
.compose-intro { padding: 26px 26px 18px; display: grid; gap: 8px; }
.compose-intro p { color: var(--mute); }
.field { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 26px; border: 0; border-top: 1px solid var(--line); margin: 0; min-width: 0; }
.field-k { flex: 0 0 64px; font-size: 13px; color: var(--mute); padding: 0; }
.field input, .field textarea { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); padding: 12px 0; outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute); opacity: .75; }
.field:focus-within, .field-two > div:focus-within { background: var(--sel-soft); }
.field.is-bad, .field-two > div.is-bad { box-shadow: inset 3px 0 0 var(--pencil); }
.is-bad .field-k { color: var(--pencil); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 3px; border-radius: 15px; background: var(--line); font-size: 13.5px; }
.chip .avatar { width: 24px; height: 24px; box-shadow: none; }
.field-two { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.field-two > div { display: flex; align-items: center; gap: 12px; padding: 0 26px; min-width: 0; }
.field-two > div + div { border-left: 1px solid var(--line); }
.field-chips { flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.field-chips legend { float: left; margin-right: 4px; line-height: 34px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 17px; font-size: 13.5px; box-shadow: 0 0 0 1px var(--line-2); }
.pick input:checked + span { background: var(--sel); color: var(--sel-ink); box-shadow: none; }
.pick input:focus-visible + span { outline: 2px solid var(--sel); outline-offset: 2px; }
.field[hidden], .compose-foot[hidden] { display: none; }
.field-msg { align-items: stretch; }
.field-msg textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.form-err { margin: 0 26px 12px; padding: 10px 14px; border-radius: 8px; background: rgba(216,51,42,.1); color: var(--pencil); font-size: 13.5px; }
.compose-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 26px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.compose-foot a { color: var(--ink); }
.form-ok { margin: 0 26px 24px; padding: 14px 16px; border-radius: 10px; background: rgba(79,157,99,.14); }

/* dialog (404, file not found) */
.win-dialog { --w: 440px; top: var(--y, 22vh); }
.dialog-body { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 22px 22px 18px; }
.dialog-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #e9a94a; color: #fff; font: 600 22px var(--f-ui); }
.dialog-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.dialog-text { font-size: 14px; color: var(--mute); }
.dialog-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* ---------- shelf (bottom bar) ---------- */
.shelf { position: absolute; left: 0; right: 0; bottom: 0; height: var(--shelf-h); z-index: 60; display: flex; align-items: center; gap: 6px; padding: 0 8px;
  background: var(--shelf); color: var(--ink); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--edge), 0 -1px 0 var(--line-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.shelf-start { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 5px; border-radius: 9px; font-size: 13.5px; font-weight: 600; }
.shelf-start:hover, .shelf-start[aria-expanded="true"] { background: var(--line); }
.shelf-tasks { flex: 1; min-width: 0; display: flex; gap: 4px; padding: 0 8px; border-left: 1px solid var(--line-2); overflow: hidden; }
.task { position: relative; display: flex; align-items: center; height: 36px; border-radius: 8px; max-width: 210px; min-width: 0; font-size: 12.5px; }
.task-go { display: flex; align-items: center; gap: 8px; height: 100%; min-width: 0; padding: 0 12px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.task-x { display: none; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; margin-right: 6px; margin-left: -6px; border: 0; border-radius: 5px; background: none; color: inherit; cursor: pointer; }
.task-x:hover { background: var(--line-2); }
.task:hover .task-x, .task:focus-within .task-x { display: grid; }
@media (hover: none) { .task-x { display: grid; } }
.task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task svg { flex: 0 0 auto; }
.task:hover { background: var(--line); }
.task.is-on { background: var(--line); }
.task.is-on::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 2px; height: 3px; border-radius: 2px; background: var(--sel); }
.task.is-min { opacity: .6; }
.shelf-tray { display: flex; align-items: center; gap: 18px; padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
.tray-book { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 500; }
.tray-book span { color: var(--mute); font-weight: 400; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(79,157,99,.22); display: inline-block; }
.tray-place { color: var(--mute); }
.tray-clock { font-family: var(--f-mono); font-size: 12px; }
.theme-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: inherit; }
.theme-btn:hover { background: var(--line); }
.theme-btn .ic-sun, :root[data-ui="dark"] .theme-btn .ic-moon { display: none; }
:root[data-ui="dark"] .theme-btn .ic-sun { display: block; }
/* theme switch: the new mode pours down from the top with a soft edge */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: pour 1.1s cubic-bezier(.45, 0, .2, 1) both; -webkit-mask: linear-gradient(#000 40%, transparent 60%) 0 0 / 100% 250% no-repeat; mask: linear-gradient(#000 40%, transparent 60%) 0 0 / 100% 250% no-repeat; }
@keyframes pour { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.motion.theme-fade *, .motion.theme-fade *::before, .motion.theme-fade *::after { transition: background-color .45s ease, color .45s ease, box-shadow .45s ease !important; }

.start { position: absolute; left: 8px; bottom: calc(var(--shelf-h) + 8px); z-index: 61; width: 330px; padding: 18px; border-radius: 14px;
  background: var(--win); color: var(--ink); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 0 var(--edge), 0 30px 70px -20px rgba(0,0,0,.55); }
.motion .start:not([hidden]) { animation: start-in .28s var(--ease); }
@keyframes start-in { from { opacity: 0; transform: translateY(10px); } }
.start-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.avatar-big { width: 52px; height: 52px; }
.start-name { font: 400 22px/1.1 var(--f-display); }
.start-role { font-size: 12.5px; color: var(--mute); }
.start-nav { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); }
.start-nav a { padding: 8px 10px; border-radius: 7px; text-decoration: none; font-size: 14px; }
.start-nav a:hover, .start-nav a:focus-visible { background: var(--sel); color: var(--sel-ink); outline: none; }
.start-foot { display: grid; gap: 2px; padding-top: 12px; font-size: 12.5px; color: var(--mute); }
.start-foot a { color: var(--ink); }

/* ---------- lock screen (first visit only) ---------- */
.lock { position: fixed; inset: 0; z-index: 400; color: #fff; overflow: hidden; cursor: pointer; }
.lock-img { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(18px) brightness(.72); }
.lock-in { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; }
.lock-time { font: 300 clamp(80px, 13vw, 168px)/1 var(--f-display); letter-spacing: -.02em; }
.lock-date { font-size: 18px; opacity: .9; margin-bottom: 18vh; }
.lock-who { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.lock-who .avatar { width: 64px; height: 64px; }
.lock-hint { font: 400 12px var(--f-mono); opacity: .7; margin-top: 6px; }
.motion .lock.is-out { transition: transform .75s cubic-bezier(.7, 0, .2, 1), opacity .75s; transform: translateY(-100%); }
.lock.is-out { opacity: 0; pointer-events: none; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto 1fr auto; background: rgba(14, 13, 12, .95); color: #ece9e2;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lb[hidden] { display: none; }
.motion .lb:not([hidden]) { animation: lb-in .25s ease-out; }
@keyframes lb-in { from { opacity: 0; } }
.lb-bar { display: flex; align-items: center; gap: 18px; padding: 12px 14px 12px 22px; font: 400 12px var(--f-mono); }
.lb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { opacity: .6; }
.lb-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.lb-close:hover { background: rgba(255,255,255,.12); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 76px; touch-action: pan-y; }
.lb-img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; box-shadow: 0 20px 60px -20px #000; user-select: none; -webkit-user-drag: none; }
.motion .lb-img.is-in { animation: lb-img .35s var(--ease); }
@keyframes lb-img { from { opacity: 0; transform: scale(.985); } }
.lb-prev, .lb-next { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.18); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-strip { display: flex; gap: 6px; padding: 10px 20px 14px; min-height: 68px; overflow-x: auto; justify-content: safe center; }
.lb-strip button { flex: 0 0 auto; width: 62px; height: 44px; border-radius: 3px; overflow: hidden; opacity: .45; transition: opacity .2s; }
.lb-strip button:hover { opacity: .8; }
.lb-strip button.is-on { opacity: 1; box-shadow: 0 0 0 2px #ece9e2; }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }

/* phone only parts */
.phone-top, .dock { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .icons-albums, .sticky { display: none; }
  .win { --ww: min(var(--w, 760px), calc(100vw - 150px)); left: var(--x, calc(50% - var(--ww) / 2 + 56px)); }
  .tray-place { display: none; }
}
@media (max-width: 960px) {
  .welcome { grid-template-columns: 170px 1fr; gap: 22px; padding: 24px; }
  .mini-folders { grid-template-columns: 1fr 1fr; }
  .mini-folders li:nth-child(3) { display: none; }
  .files { grid-template-columns: 1fr; }
  .side { display: none; }
  .seg-t { display: none; }
  .tray-book span { display: none; }
  .note { grid-template-columns: 1fr; }
  .note-side { border-left: 0; border-top: 1px solid var(--line); }
  .attachments { grid-template-columns: 1fr 1fr; }
  .mail { grid-template-columns: 260px 1fr; }
  .packages { grid-template-columns: 1fr; }
  .package + .package { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }
}

/* ---------- phone: a home screen with app icons, windows open as full screen sheets ---------- */
@media (max-width: 760px) {
  body { overflow: auto; height: auto; }
  body.has-sheet { overflow: hidden; }
  body.has-sheet .phone-top { display: none; }
  body.has-sheet .dock { display: none; }
  .desk { position: relative; inset: auto; min-height: 100svh; overflow: visible; display: flex; flex-direction: column;
    padding: calc(46px + env(safe-area-inset-top)) 0 calc(118px + env(safe-area-inset-bottom)); }
  .wall { position: fixed; height: 100lvh; }
  .desk::before { position: fixed; background: linear-gradient(rgba(0,0,0,.34), rgba(0,0,0,.14) 22%, rgba(0,0,0,.14) 70%, rgba(0,0,0,.42)); }
  .phone-top { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 30; justify-content: space-between; align-items: center;
    height: calc(40px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 24px 0; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.4);; background: rgba(20,19,18,.16); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
  .phone-right { display: inline-flex; align-items: center; gap: 6px; }
  .phone-right .theme-btn { margin-right: -8px; }
  .phone-right .theme-btn:hover { background: none; }
  .phone-book { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 12.5px; }
  .stage { position: relative; inset: auto; order: -1; z-index: 2; pointer-events: auto; padding: 4px 14px 18px; }
  .icons { position: relative; inset: auto; display: grid; grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto;
    gap: 14px 6px; padding: 0 14px; direction: ltr; }
  .icons-albums { display: grid; margin-top: 14px; }
  .ico { padding: 4px 0; gap: 5px; }
  .ico:hover { background: none; }
  .ico-img { width: 62px; height: 62px; border-radius: 16px; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35); filter: none; }
  .ico-img svg { width: 44px; height: 44px; }
  .ico-img.folder { padding: 0; }
  .ico .folder { width: 62px; height: 62px; }
  .ico .folder img { left: 14%; top: 9px; width: 72%; height: 64%; }
  .ico .folder-back { inset: 12px 6px 7px; }
  .ico .folder-front { left: 5px; right: 5px; bottom: 7px; height: 52%; }
  .ico-label { font-size: 11px; -webkit-line-clamp: 1; display: block; white-space: nowrap; text-overflow: ellipsis; max-width: 76px; }
  .shelf, .start { display: none; }
  .dock { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
    padding: 10px 6px 8px; border-radius: 28px; background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px -10px rgba(0,0,0,.4); }
  .dock-app { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; font-size: 11px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
  .dock-img { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.9); box-shadow: 0 2px 6px rgba(0,0,0,.18); }

  /* the window of the open page = a sheet over the home screen */
  .win { position: fixed; inset: 0; left: 0; top: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; z-index: 50;
    background: var(--win-solid); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .win.is-max { inset: 0; width: 100%; height: 100%; }
  .win-bar { height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0 6px; flex-direction: row-reverse; background: var(--win-solid); cursor: default !important; }
  .win-icon, .win-min, .win-max { display: none; }
  .win-name { text-align: center; font-weight: 600; font-size: 15px; padding-right: 40px; }
  .win-close { width: auto; height: 40px; padding: 0 8px; color: var(--sel); }
  .win-close:hover { background: none; color: var(--sel); }
  .win-close .ic-x { display: none; }
  .win-close .ic-back { display: block; }
  .motion .win.is-opening { animation: sheet-in .42s var(--ease) both; }
  .motion .win.is-closing { animation: sheet-out .28s ease-in both; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }

  /* Welcome.txt is a widget on the home screen, not a sheet */
  .win-welcome { position: relative; inset: auto; height: auto; z-index: 2; border-radius: 22px; background: var(--win); -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5); box-shadow: 0 16px 40px -18px rgba(0,0,0,.5); }
  .win-welcome .win-bar { position: absolute; top: 10px; right: 10px; z-index: 3; height: auto; padding: 0; background: none; border: 0; }
  .win-welcome .win-body { overflow: visible; overscroll-behavior: auto; }
  .win-welcome .win-name { display: none; }
  .win-welcome .win-close { width: 32px; height: 32px; padding: 0; border-radius: 50%; color: var(--ink); background: var(--line); }
  .win-welcome .win-close .ic-x { display: block; }
  .win-welcome .win-close .ic-back { display: none; }
  .welcome { grid-template-columns: 96px 1fr; gap: 16px; padding: 18px; }
  .welcome-photo img { aspect-ratio: 4 / 5; border-radius: 12px; }
  .welcome-text { display: contents; }
  .welcome-text .kicker { grid-column: 2; grid-row: 1; align-self: center; }
  .welcome-text .display { grid-column: 1 / -1; font-size: 30px; }
  .welcome-text .lead { grid-column: 1 / -1; font-size: 15px; }
  .welcome-photo { grid-row: 1 / span 1; }
  .facts { grid-column: 1 / -1; }
  .facts dd { font-size: 22px; }
  .actions { grid-column: 1 / -1; }
  .actions .btn { flex: 1 1 auto; height: 44px; padding: 0 18px; }
  .welcome-recent, .sticky { display: none; }

  .files { height: auto; flex: 1; }
  .pane { padding: 16px 14px calc(26px + env(safe-area-inset-bottom)); }
  .status { display: none; }
  .tool { padding: 0 10px; }
  .folders { grid-template-columns: 1fr 1fr; }
  .folder-lg { width: 110px; height: 88px; }
  .pane.is-list .folder-item { grid-template-columns: 44px 1fr; }
  .pane.is-list .fi-meta, .pane.is-list .fi-date, .pane.is-list .fi-size { grid-column: 2; }
  .frames { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .frame a { gap: 0; }
  .frame-img { padding: 0; border-radius: 0; }
  .frame-img img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
  .frame-name { display: none; }
  .frames[data-view="sheet"] { grid-template-columns: repeat(3, 1fr); padding: 12px 10px; }
  .frames[data-view="strip"] .frame-img { --strip-h: 58vh; }
  .album-head .display { font-size: 40px; }
  .album-next { grid-template-columns: 1fr; }
  .lb-stage { padding: 0; }
  .lb-img { max-height: calc(100dvh - 140px); }
  .lb-prev, .lb-next { display: none; }
  .lb-strip { justify-content: flex-start; }
  .note-main, .txt { padding: 22px 18px 28px; }
  .pdf-tool { display: none; }
  .pdf-desk { padding: 12px; }
  .page { padding: 28px 20px 26px; }
  .mail { grid-template-columns: 1fr; height: auto; flex: 1; overflow: auto; }
  .mail-list { border-right: 0; }
  .mail-list .letters { overflow: visible; }
  .mail-read { overflow: visible; padding: 22px 18px 30px; border-top: 1px solid var(--line); }
  .js .mail-read { display: none; }
  .js .mail.is-reading .mail-list { display: none; }
  .js .mail.is-reading .mail-read { display: block; border-top: 0; }
  .mail-back { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 14px -6px; padding: 6px; color: var(--sel); font-size: 14px; }
  .letter-h { font-size: 27px; }
  .faq-item summary { grid-template-columns: 28px 1fr 18px; }
  .faq-q { font-size: 18px; }
  .faq-item p { padding: 0 6px 16px 38px; }
  .compose-intro { padding: 22px 18px 16px; }
  .field, .field-two > div { padding: 0 18px; }
  .field-two { grid-template-columns: 1fr; }
  .field-two > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .field-k { flex-basis: 52px; }
  .field-two { padding: 0; }
  .field-chips { padding-top: 14px; padding-bottom: 14px; }
  .compose-foot { padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); }
  .compose-foot .btn { flex: 1; }
}
@media (max-width: 380px) {
  .icons { gap: 12px 2px; padding: 0 8px; }
  .ico-img, .ico .folder { width: 56px; height: 56px; }
  .welcome-text .display { font-size: 27px; }
}

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