/*
  Bevel 2027: conference website (Screenery template)
  The page is the desktop of BevelOS, an invented 1990s operating system: lilac dithered wallpaper, butter-yellow window frames
  with chunky pillow bevels, teal title bars, dithered drop shadows, pixel type for the chrome and a plain sans for reading.
  Three layouts from one DOM: the desktop (JS, wide), full-screen sheets (JS, phones) and a stacked page (no JavaScript).

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. Components: buttons, fields, stepper, segmented choice, checkbox, empty state, keys
   4. Shelf (top bar), start menu, clock
   5. Desk: wallpaper, desktop icons, calendar gadget
   6. Window chrome: frame, title bar, controls, status bar, resize grip, dithered shadow
   7. Readme.txt
   8. Programme browser
   9. Speakers and speaker files
  10. Tickets.exe wizard and receipt
  11. Venue map
  12. Help
  13. Notes
  14. Boot screen, shut down, toasts, zoom rectangles
  15. Desktop layout (JS, wide screens)
  16. Phone layout (JS, narrow screens): sheets
  17. No JavaScript: stacked page
  18. Reduced motion
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --plum: #2b1a3f;          /* ink, outlines */
  --plum-soft: #4a3566;     /* secondary text on light grounds */
  --lilac: #b8a6ea;         /* wallpaper */
  --lilac-dot: #ab97e3;     /* wallpaper dither */
  --lilac-pale: #e7e0fa;    /* inactive frames, quiet buttons */
  --lilac-shade: #8f7ad2;   /* bevel shadow on lilac */
  --teal: #13777a;
  --teal-deep: #0f6466;     /* active title bar */
  --teal-dark: #0a4a4c;
  --mint: #9fd8d2;
  --butter: #ffe27a;        /* active frame, primary buttons */
  --butter-light: #fff6c4;  /* bevel highlight on butter */
  --butter-shade: #d9b843;  /* bevel shadow on butter */
  --cream: #fffbef;         /* window paper */
  --cream-shade: #efe6cf;
  --rose: #ffb7a6;
  --red: #a8322a;           /* errors (5.9:1 on cream) */
  --white: #ffffff;

  /* Type */
  --pixel: "Pixelify Sans", "Courier New", monospace;          /* chrome, titles, labels */
  --sans: "Reddit Sans", "Segoe UI", system-ui, sans-serif;      /* reading */
  --mono: "Reddit Mono", ui-monospace, "Courier New", monospace; /* times, prices, receipts, notes */

  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1rem;        /* 16, body */
  --fs-lg: 1.125rem;    /* 18 */
  --fs-xl: 1.375rem;    /* 22 */
  --fs-xxl: clamp(2.5rem, 1.6rem + 2.6vw, 3.75rem);

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;

  /* Shape */
  --r-win: 8px;
  --r-btn: 6px;
  --r-field: 4px;
  --line: 2px;
  --shelf-h: 48px;
  --bar-h: 40px;

  /* Bevels: highlight top-left, shade bottom-right (the BevelOS "pillow") */
  --bevel: inset 2px 2px 0 var(--white), inset -2px -3px 0 var(--lilac-shade);
  --bevel-butter: inset 2px 2px 0 var(--butter-light), inset -2px -3px 0 var(--butter-shade);
  --bevel-in: inset 2px 3px 0 var(--lilac-shade), inset -2px -2px 0 var(--white);
  --well: inset 2px 2px 0 var(--cream-shade);

  /* Dither: a 50% checker of ink used for shadows and disabled states */
  --dither: repeating-conic-gradient(var(--plum) 0 25%, transparent 0 50%) 0 0 / 4px 4px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 120ms;
  --t-mid: 260ms;
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--teal) var(--lilac-pale); }
body {
  margin: 0;
  font: 400 var(--fs-md)/1.55 var(--sans);
  color: var(--plum);
  background-color: var(--lilac);
  background-image: repeating-conic-gradient(var(--lilac-dot) 0 25%, transparent 0 50%);
  background-size: 4px 4px;
  accent-color: var(--teal);
  caret-color: var(--teal-deep);
  overflow-x: hidden;
}
::selection { background: var(--teal-deep); color: var(--cream); }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
a { color: var(--teal-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
kbd {
  font: 500 0.875em/1 var(--mono);
  padding: 2px 6px 3px;
  border: var(--line) solid var(--plum);
  border-radius: 4px;
  background: var(--lilac-pale);
  box-shadow: inset -1px -2px 0 var(--lilac-shade);
  white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: var(--s-3); top: var(--s-3); z-index: 9999;
  padding: var(--s-2) var(--s-3); background: var(--butter); border: var(--line) solid var(--plum);
  font-family: var(--pixel); transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Scrollbars inside windows: chunky, themed */
.win__body::-webkit-scrollbar { width: 16px; height: 16px; }
.win__body::-webkit-scrollbar-track { background: var(--lilac-pale); border-left: var(--line) solid var(--plum); }
.win__body::-webkit-scrollbar-thumb { background: var(--teal); border: var(--line) solid var(--plum); border-radius: 3px; box-shadow: inset 2px 2px 0 var(--mint); }

/* ---------- 3. Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 8px 18px 9px;
  font: 500 var(--fs-md)/1.1 var(--pixel);
  color: var(--plum); text-decoration: none;
  background: var(--lilac-pale);
  border: var(--line) solid var(--plum); border-radius: var(--r-btn);
  box-shadow: var(--bevel);
  transition: background-color var(--t-fast);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.btn:hover { background: var(--white); color: var(--plum); }
.btn:active { box-shadow: var(--bevel-in); transform: translateY(1px); }
.btn--primary { background: var(--butter); box-shadow: var(--bevel-butter); }
.btn--primary:hover { background: var(--butter-light); }
.btn--primary:active { box-shadow: inset 2px 3px 0 var(--butter-shade), inset -2px -2px 0 var(--butter-light); }
.btn--quiet { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn--quiet:hover { background: var(--lilac-pale); border-color: var(--plum); }
.btn--small { min-height: 34px; padding: 4px 12px 5px; font-size: var(--fs-sm); }
.btn--danger { background: var(--rose); }
.btn:disabled, .btn[aria-disabled="true"] { color: var(--plum-soft); background: var(--lilac-pale); cursor: not-allowed; box-shadow: none; border-style: dashed; }

.field { display: grid; gap: 6px; align-content: start; }
.field__label { font: 500 var(--fs-sm)/1.2 var(--pixel); }
.field__opt { font: 400 var(--fs-sm)/1.2 var(--sans); color: var(--plum-soft); margin-left: 4px; }
.input {
  width: 100%; min-height: 44px; padding: 9px 12px;
  background: var(--white);
  border: var(--line) solid var(--plum); border-radius: var(--r-field);
  box-shadow: var(--well);
}
.input::placeholder { color: #6b5a82; }
.input:focus-visible { outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--red); background: #fff2ef; }
select.input {
  appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--plum) 50%), linear-gradient(-45deg, transparent 50%, var(--plum) 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field__err { min-height: 0; font-size: var(--fs-sm); color: var(--red); font-weight: 500; }
.field__err:empty { display: none; }
.field__err::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: var(--red); vertical-align: 0; }

.stepper { display: inline-flex; align-items: stretch; width: max-content; }
.stepper button {
  width: 44px; min-height: 44px; display: grid; place-items: center;
  background: var(--lilac-pale); border: var(--line) solid var(--plum); box-shadow: var(--bevel);
}
.stepper button:first-child { border-radius: var(--r-btn) 0 0 var(--r-btn); }
.stepper button:last-child { border-radius: 0 var(--r-btn) var(--r-btn) 0; }
.stepper button:active { box-shadow: var(--bevel-in); }
.stepper button:disabled { background: var(--cream-shade); cursor: not-allowed; box-shadow: none; color: var(--plum-soft); }
.stepper svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.stepper input {
  width: 64px; text-align: center; font: 500 var(--fs-lg)/1 var(--mono);
  border: var(--line) solid var(--plum); border-inline: 0; background: var(--white); box-shadow: var(--well);
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.seg { display: inline-flex; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; min-height: 44px; padding: 8px 14px;
  font: 500 var(--fs-sm)/1.1 var(--pixel);
  background: var(--lilac-pale); border: var(--line) solid var(--plum); box-shadow: var(--bevel);
}
.seg label:first-child span { border-radius: var(--r-btn) 0 0 var(--r-btn); }
.seg label:last-child span { border-radius: 0 var(--r-btn) var(--r-btn) 0; border-left: 0; }
.seg input:checked + span { background: var(--teal-deep); color: var(--cream); box-shadow: inset 2px 3px 0 var(--teal-dark); }
.seg input:focus-visible + span { outline: 3px solid var(--teal-deep); outline-offset: 2px; }

.check { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; }
.check input {
  appearance: none; flex: none; width: 24px; height: 24px; margin: 0;
  background: var(--white); border: var(--line) solid var(--plum); border-radius: 3px; box-shadow: var(--well);
  display: grid; place-items: center; cursor: pointer;
}
.check input::after { content: ""; width: 12px; height: 7px; border: solid var(--plum); border-width: 0 0 3px 3px; transform: translate(0, -2px) rotate(-45deg); opacity: 0; }
.check input:checked { background: var(--butter); }
.check input:checked::after { opacity: 1; }
.check input[aria-invalid="true"] { border-color: var(--red); }

.empty {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4); border: var(--line) dashed var(--plum-soft); border-radius: var(--r-field);
  color: var(--plum-soft); max-width: 46ch;
}
.empty svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--plum-soft); stroke-width: 2; }
.empty b { display: block; color: var(--plum); font-family: var(--pixel); font-weight: 500; }

/* ---------- 4. Shelf, start menu, clock ---------- */
.shelf {
  position: relative; z-index: 5000;
  display: flex; align-items: center; gap: var(--s-2);
  height: var(--shelf-h); padding: 0 var(--s-2);
  background: var(--lilac-pale);
  border-bottom: var(--line) solid var(--plum);
  box-shadow: inset 0 2px 0 var(--white), inset 0 -3px 0 var(--lilac-shade);
}
.shelf__start-wrap { position: relative; }
.shelf__start {
  display: flex; align-items: center; gap: var(--s-2);
  height: 36px; padding: 0 14px 0 8px;
  font: 700 var(--fs-lg)/1 var(--pixel);
  background: var(--butter); border: var(--line) solid var(--plum); border-radius: var(--r-btn);
  box-shadow: var(--bevel-butter);
}
.shelf__start[aria-expanded="true"] { box-shadow: inset 2px 3px 0 var(--butter-shade), inset -2px -2px 0 var(--butter-light); }
.shelf__logo { width: 20px; height: 20px; }

.startmenu {
  position: absolute; left: 0; top: calc(100% + 8px);
  width: 270px;
  background: var(--lilac-pale);
  border: var(--line) solid var(--plum); border-radius: 0 0 var(--r-win) var(--r-win);
  box-shadow: var(--bevel);
  padding: 0 0 var(--s-2);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-mid) var(--ease-out), visibility 0s var(--t-mid);
}
.startmenu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--t-fast), transform var(--t-mid) var(--ease-out); }
.startmenu__side {
  font: 700 var(--fs-md)/1 var(--pixel); color: var(--cream);
  padding: 12px 14px;
  background: var(--teal-deep) repeating-linear-gradient(0deg, var(--teal) 0 2px, transparent 2px 6px);
  border-bottom: var(--line) solid var(--plum);
  margin-bottom: var(--s-2);
}
.startmenu a, .startmenu button {
  display: flex; align-items: center; gap: var(--s-3); width: 100%;
  min-height: 44px; padding: 6px 14px;
  font: 500 var(--fs-md)/1 var(--pixel); color: var(--plum); text-decoration: none;
  background: none; border: 0; text-align: left;
}
.startmenu a:hover, .startmenu button:hover, .startmenu a:focus-visible, .startmenu button:focus-visible { background: var(--teal-deep); color: var(--cream); outline: none; }
.startmenu svg { width: 28px; height: 28px; }
.startmenu__rule { height: 0; border-top: var(--line) solid var(--lilac-shade); margin: 6px 10px; }

.shelf__tasks { flex: 1; display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.task {
  display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 190px; height: 36px; padding: 0 12px 0 8px;
  font: 500 var(--fs-sm)/1 var(--pixel); color: var(--plum);
  background: var(--lilac-pale); border: var(--line) solid var(--plum); border-radius: var(--r-btn); box-shadow: var(--bevel);
}
.task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task svg { flex: none; width: 22px; height: 22px; }
.task[aria-pressed="true"] { background: var(--white); box-shadow: var(--bevel-in); }
.task.is-min { color: var(--plum-soft); border-style: dashed; }

.shelf__tray {
  display: flex; align-items: center; gap: var(--s-3);
  height: 36px; padding: 0 12px;
  border: var(--line) solid var(--plum); border-radius: var(--r-btn);
  background: var(--cream); box-shadow: var(--well);
  font: 500 var(--fs-sm)/1 var(--mono); font-variant-numeric: tabular-nums;
}
.shelf__count { color: var(--plum-soft); white-space: nowrap; }
.shelf__clock { font-weight: 700; min-width: 5ch; text-align: right; }

/* ---------- 5. Desk: wallpaper, icons, gadget ---------- */
.desk { position: relative; }
.wall { position: absolute; right: 4%; bottom: 9%; width: min(34vw, 520px); height: auto; pointer-events: none; }
.hello { display: none; }

.icons ul { display: grid; gap: var(--s-2); }
.dicon {
  display: grid; justify-items: center; gap: 6px;
  width: 104px; padding: 8px 4px 6px;
  text-decoration: none; color: var(--plum);
  border-radius: var(--r-field);
  outline-offset: 0;
}
.dicon__img { width: 48px; height: 48px; }
.dicon__label {
  font: 500 var(--fs-sm)/1.2 var(--pixel); text-align: center;
  padding: 2px 6px; border-radius: 3px;
  background: var(--lilac-pale);
  border: var(--line) solid transparent;
}
.dicon:hover .dicon__label { border-color: var(--plum); }
.dicon:focus-visible { outline: 2px dashed var(--plum); }
.dicon:focus-visible .dicon__label, .dicon.is-selected .dicon__label { background: var(--teal-deep); color: var(--cream); }
.dicon:focus-visible .dicon__img, .dicon.is-selected .dicon__img { filter: drop-shadow(2px 2px 0 var(--teal-deep)); }

.gadget {
  width: 236px; padding: 10px 12px 12px;
  background: var(--cream);
  border: var(--line) solid var(--plum); border-radius: var(--r-win);
  box-shadow: inset 0 0 0 4px var(--lilac-pale), inset 0 0 0 6px var(--plum);
}
.gadget__title { font: 700 var(--fs-md)/1 var(--pixel); padding: 6px 6px 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 6px; font: 500 0.9375rem/1 var(--mono); font-variant-numeric: tabular-nums; text-align: center; }
.cal span { padding: 5px 0; }
.cal__dow { font-family: var(--pixel); color: var(--plum-soft); }
.cal__on { background: var(--teal-deep); color: var(--cream); border-radius: 3px; box-shadow: inset 2px 2px 0 var(--teal), inset -2px -2px 0 var(--teal-dark); }
.gadget__note { display: grid; gap: 2px; padding: 10px 6px 0; font-size: var(--fs-sm); line-height: 1.35; }
.gadget__note b { font: 500 var(--fs-md)/1.2 var(--pixel); }

.colophon p { font-size: var(--fs-sm); color: var(--plum); }

/* ---------- 6. Window chrome ---------- */
.win {
  display: flex; flex-direction: column;
  background: var(--lilac-pale);
  border: var(--line) solid var(--plum); border-radius: var(--r-win);
  padding: 4px;
  box-shadow: inset 2px 2px 0 var(--white), inset -2px -2px 0 var(--lilac-shade);
  container-type: inline-size;   /* window contents reflow by the window's own width */
}
.win.is-active { background: var(--butter); box-shadow: inset 2px 2px 0 var(--butter-light), inset -2px -2px 0 var(--butter-shade); }

.win__bar {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: var(--bar-h); padding: 4px 4px 4px 8px;
  background: var(--lilac-pale);
  border: var(--line) solid var(--plum); border-radius: 5px 5px 0 0;
  color: var(--plum);
  user-select: none; -webkit-user-select: none;
}
.win.is-active .win__bar { background: var(--teal-deep); color: var(--cream); }
/* the pinstripe grip fills the space between title and controls */
.win__bar::after { content: ""; order: 3; flex: 1; align-self: stretch; margin: 6px 4px; min-width: 12px;
  background: repeating-linear-gradient(0deg, var(--lilac-shade) 0 2px, transparent 2px 5px); opacity: .55; }
.win.is-active .win__bar::after { background: repeating-linear-gradient(0deg, var(--teal) 0 2px, transparent 2px 5px); opacity: 1; }
.win__back { order: 0; display: none; }
.win__icon { order: 1; flex: none; width: 24px; height: 24px; }
.win__title { order: 2; font: 700 var(--fs-lg)/1 var(--pixel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.win__ctl { order: 4; display: flex; gap: 4px; flex: none; }
.win__ctl button, .win__back {
  width: 30px; height: 30px; padding: 0; display: grid; place-items: center;
  color: var(--plum);
  background: var(--lilac-pale); border: var(--line) solid var(--plum); border-radius: 4px; box-shadow: var(--bevel);
}
.win__ctl button:hover, .win__back:hover { background: var(--white); }
.win__ctl button:active, .win__back:active { box-shadow: var(--bevel-in); }
.win__ctl button[data-act="close"]:hover { background: var(--rose); }
.win__ctl svg, .win__back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; }

.win__tools {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2);
  padding: 8px 10px;
  background: var(--lilac-pale);
  border-inline: var(--line) solid var(--plum);
  border-bottom: var(--line) solid var(--plum);
}
.win__body {
  flex: 1; min-height: 0;
  background: var(--cream);
  border: var(--line) solid var(--plum); border-top: 0;
  overflow: auto;
}
.win__status {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  padding: 6px 2px 0;
  font: 500 var(--fs-sm)/1.2 var(--mono); font-variant-numeric: tabular-nums;
}
.win__status span { padding: 3px 8px; border: var(--line) solid var(--plum-soft); border-radius: 3px; background: var(--cream); }
.win__back { display: none; }
.win__grip { position: absolute; right: 2px; bottom: 2px; width: 20px; height: 20px; cursor: nwse-resize; touch-action: none; color: var(--plum); }
.win__grip svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- 7. Readme.txt ---------- */
.doc { padding: var(--s-5) clamp(16px, 5cqi, 40px) var(--s-6); }
.doc > * { max-width: 68ch; }
.doc__wordmark {
  font: 700 var(--fs-xxl)/0.95 var(--pixel); letter-spacing: -0.01em; color: var(--teal-deep);
  text-shadow: 3px 3px 0 var(--butter);
  margin-bottom: var(--s-3);
}
.doc__lede { font-size: var(--fs-xl); line-height: 1.35; font-weight: 500; text-wrap: balance; margin-bottom: var(--s-5); }
.doc h3 { font: 700 var(--fs-xl)/1.15 var(--pixel); margin: var(--s-6) 0 var(--s-2); text-wrap: balance; }
.doc p + p { margin-top: var(--s-3); }
.doc__list { display: grid; gap: var(--s-2); }
.doc__list li { position: relative; padding-left: 22px; }
.doc__list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; background: var(--teal); box-shadow: 2px 2px 0 var(--plum); }
.doc__sig { margin-top: var(--s-5) !important; font-style: italic; }
.facts { display: grid; border: var(--line) solid var(--plum); border-radius: var(--r-field); background: var(--white); }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: var(--s-3); padding: 10px 14px; }
.facts div + div { border-top: var(--line) dashed var(--lilac-shade); }
.facts dt { font: 500 var(--fs-md)/1.5 var(--pixel); color: var(--teal-deep); }
.doc__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* ---------- 8. Programme browser ---------- */
.crumbs { font: 500 var(--fs-sm)/1.3 var(--pixel); padding: 6px 12px; background: var(--white); border: var(--line) solid var(--plum); border-radius: var(--r-field); box-shadow: var(--well); flex: 1; min-width: 0; }
.crumbs span { color: var(--plum-soft); margin: 0 4px; }
.browser { display: grid; grid-template-columns: 188px minmax(0, 1fr) 270px; }
.tree { padding: var(--s-3) var(--s-2); border-right: var(--line) solid var(--plum); background: var(--white); }
.tree ul { display: grid; gap: 2px; }
.tree__item {
  display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: 40px; padding: 6px 8px;
  font: 500 var(--fs-sm)/1.2 var(--pixel); text-align: left;
  background: none; border: var(--line) solid transparent; border-radius: 3px;
}
.tree__item svg { flex: none; width: 20px; height: 20px; }
.tree__item:hover { border-color: var(--plum); }
.tree__item[aria-pressed="true"] { background: var(--teal-deep); color: var(--cream); }
.tree__count { margin-left: auto; font: 500 var(--fs-sm)/1 var(--mono); padding: 2px 6px; border-radius: 3px; background: var(--butter); color: var(--plum); }

.files { min-width: 0; padding-bottom: var(--s-3); }
.files__head, .file__row { display: grid; grid-template-columns: 24px 54px minmax(0, 1fr) 62px; column-gap: var(--s-2); align-items: center; }
.file__row { grid-template-areas: "ico time name len" "ico time who len"; }
.files__head { position: sticky; top: 0; z-index: 1; padding: 6px 12px; font: 500 var(--fs-sm)/1.2 var(--pixel); background: var(--lilac-pale); border-bottom: var(--line) solid var(--plum); }
.files__head span:first-child { grid-column: 2; }
.files__head span:nth-child(3) { display: none; }
.folder__name { padding: 12px 12px 4px; font: 700 var(--fs-md)/1.2 var(--pixel); }
.file__row {
  width: 100%; padding: 7px 12px; min-height: 44px;
  text-align: left; background: none; border: 0; border-block: 1px solid transparent;
}
.file--note .file__row { color: var(--plum-soft); }
.file__row:hover { background: var(--lilac-pale); }
.file__row[aria-pressed="true"] { background: var(--teal-deep); color: var(--cream); }
.file__row[aria-pressed="true"] .file__fname { color: var(--mint); }
.file__row:focus-visible { outline-offset: -3px; }
.file__ico { grid-area: ico; width: 20px; height: 20px; }
.file__time { grid-area: time; }
.file__len { grid-area: len; text-align: right; }
.file__name { grid-area: name; }
.file__who { grid-area: who; color: inherit; opacity: 1; }
.file__time, .file__len { font: 500 var(--fs-sm)/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.file__name { display: grid; min-width: 0; }
.file__title { font-weight: 500; line-height: 1.3; }
.file__fname { display: none; }
.file__who { font-size: var(--fs-sm); line-height: 1.3; }
.file__who:empty { display: none; }
.file__abs { display: none; }
.file.is-starred .file__ico { filter: drop-shadow(0 0 0 var(--butter)); }
.folder--starred .empty { margin: var(--s-4) 12px; }

.details { padding: var(--s-4); border-left: var(--line) solid var(--plum); background: var(--white); display: grid; align-content: start; gap: var(--s-3); }
.details__hint { color: var(--plum-soft); }
.details__back { display: none; justify-self: start; }
.details__ico { width: 56px; height: 56px; }
.details__title { font: 700 var(--fs-xl)/1.15 var(--pixel); text-wrap: balance; }
.details__meta { display: grid; gap: 2px; font: 500 var(--fs-sm)/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.details__who { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.details__who a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; min-height: 44px; }
.details__who svg { width: 32px; height: 32px; border: var(--line) solid var(--plum); }
.details__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.details__actions .btn[aria-pressed="true"] { background: var(--butter); }

@container (max-width: 860px) {
  .browser { grid-template-columns: 176px minmax(0, 1fr); }
  .details { grid-column: 1 / -1; border-left: 0; border-top: var(--line) solid var(--plum); }
}
@container (max-width: 560px) {
  .browser { grid-template-columns: minmax(0, 1fr); }
  .tree { border-right: 0; border-bottom: var(--line) solid var(--plum); padding: var(--s-2); }
  .tree ul { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .files__head { display: none; }
  .file__row { grid-template-columns: 24px 52px minmax(0, 1fr); grid-template-areas: "ico time name" "ico time who"; }
  .file__len { display: none; }
  .details__back { display: inline-flex; }
}

/* ---------- 9. Speakers ---------- */
.speakers { padding: var(--s-4) var(--s-4) var(--s-5); }
.speakers__intro { max-width: 60ch; margin-bottom: var(--s-4); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--s-2) var(--s-1); }
.dicon--sp { width: 100%; }
.dicon__av { width: 64px; height: 64px; border: var(--line) solid var(--plum); image-rendering: pixelated; box-shadow: 3px 3px 0 var(--lilac-shade); }
.dicon--sp .dicon__label { background: transparent; font-family: var(--mono); font-weight: 500; }
.dicon--sp:hover .dicon__label { background: var(--lilac-pale); }

.bio { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-top: var(--line) dashed var(--lilac-shade); }
.bio__av { width: 96px; height: 96px; border: var(--line) solid var(--plum); }
.bio__name { font: 700 var(--fs-xl)/1.15 var(--pixel); }
.bio__role { font-weight: 500; color: var(--plum-soft); margin: 2px 0 var(--s-2); }
.bio__text p + p { margin-top: var(--s-2); }
.bio__text { max-width: 64ch; }
.bio__talk a { font-weight: 500; }
.bio__when { display: block; font: 500 var(--fs-sm)/1.4 var(--mono); color: var(--plum-soft); }

.spfile { padding: var(--s-5); }
.spfile .bio { border: 0; padding: 0; grid-template-columns: 128px 1fr; }
.spfile .bio__av { width: 128px; height: 128px; box-shadow: 4px 4px 0 var(--lilac-shade); }
.spfile .bio__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.win__icon--av { border: 1.5px solid currentColor; }
@container (max-width: 440px) {
  .spfile .bio, .bio { grid-template-columns: 1fr; }
}

/* ---------- 10. Tickets.exe ---------- */
.wizard { display: grid; grid-template-columns: 168px minmax(0, 1fr); grid-template-rows: 1fr auto; }
.wizard__side { grid-row: 1 / 3; background: var(--teal-deep); border-right: var(--line) solid var(--plum); display: grid; align-content: start; }
.wizard__art { width: 100%; height: auto; border-bottom: var(--line) solid var(--plum); }
.wizard__steps { display: grid; gap: 4px; padding: var(--s-3) var(--s-2); counter-reset: st; }
.wizard__steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; padding: 6px 8px; font: 500 var(--fs-sm)/1.2 var(--pixel); color: #cdeeea; border-radius: 3px; }
.wizard__steps li::before { content: counter(st); display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: var(--line) solid currentColor; border-radius: 3px; font-family: var(--mono); }
.wizard__steps li.is-current { background: var(--cream); color: var(--plum); }
.wizard__steps li.is-done { color: var(--cream); }
.wizard__steps li.is-done::before {
  content: ""; border-color: var(--butter);
  background: var(--butter) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='%232b1a3f' stroke-width='2.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.wizard__main { padding: var(--s-5) var(--s-5) var(--s-4); min-width: 0; }
.wizard__nav { grid-column: 2; position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-top: var(--line) solid var(--plum); background: var(--lilac-pale); }
.wizard__nav [data-nav="cancel"] { order: -1; margin-right: auto; }
.step { display: grid; gap: var(--s-4); }
.step__title { font: 700 var(--fs-xl)/1.15 var(--pixel); text-wrap: balance; }
.step__intro { color: var(--plum-soft); }
h3.step__title + .step__intro { margin-top: -8px; }
legend.step__title { margin-bottom: 8px; }
.row { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); align-items: flex-start; }
.row--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); }

.tix { display: grid; gap: var(--s-2); }
.tix__opt {
  position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center;
  padding: 12px 14px; cursor: pointer;
  background: var(--white); border: var(--line) solid var(--plum); border-radius: var(--r-btn); box-shadow: var(--bevel);
}
.tix__opt input { appearance: none; margin: 0; width: 22px; height: 22px; border: var(--line) solid var(--plum); border-radius: 50%; background: var(--white); box-shadow: var(--well); display: grid; place-items: center; cursor: pointer; }
.tix__opt input::after { content: ""; width: 10px; height: 10px; background: var(--plum); opacity: 0; }
.tix__opt input:checked::after { opacity: 1; }
.tix__opt:has(input:checked) { background: var(--butter-light); box-shadow: inset 2px 3px 0 var(--butter-shade), inset -2px -2px 0 var(--white); border-color: var(--plum); }
.tix__opt:has(input:focus-visible) { outline: 3px solid var(--teal-deep); outline-offset: 2px; }
.tix__box { display: grid; gap: 2px; }
.tix__name { font: 700 var(--fs-md)/1.2 var(--pixel); }
.tix__desc { font-size: var(--fs-sm); line-height: 1.4; color: var(--plum-soft); }
.tix__price { font: 700 var(--fs-lg)/1 var(--mono); font-variant-numeric: tabular-nums; }
.total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px; border: var(--line) dashed var(--plum); border-radius: var(--r-field); font: 500 var(--fs-md)/1.2 var(--pixel); }
.total b { font: 700 var(--fs-xl)/1 var(--mono); font-variant-numeric: tabular-nums; }
.total span { font: 400 var(--fs-sm)/1.2 var(--sans); color: var(--plum-soft); }

.badgeprev {
  display: grid; justify-items: center; gap: 4px; width: 220px; padding: 0 0 14px;
  background: var(--white); border: var(--line) solid var(--plum); border-radius: 6px; overflow: hidden;
  box-shadow: 4px 4px 0 var(--lilac-shade);
}
.badgeprev__top { width: 100%; padding: 6px; text-align: center; font: 700 var(--fs-sm)/1 var(--pixel); letter-spacing: 0.08em; background: var(--teal-deep); color: var(--cream); margin-bottom: 8px; }
.badgeprev__name { font: 700 1.5rem/1.1 var(--pixel); max-width: 100%; padding: 0 10px; text-align: center; overflow-wrap: anywhere; }
.badgeprev__type { font: 500 var(--fs-sm)/1 var(--mono); padding: 3px 8px; background: var(--butter); border: var(--line) solid var(--plum); border-radius: 3px; }

.summary { display: grid; border: var(--line) solid var(--plum); border-radius: var(--r-field); background: var(--white); }
.summary div { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-3); padding: 9px 14px; }
.summary div + div { border-top: var(--line) dashed var(--lilac-shade); }
.summary dt { font: 500 var(--fs-sm)/1.5 var(--pixel); color: var(--teal-deep); }
.summary dd { font-variant-numeric: tabular-nums; }
.summary .summary__total { background: var(--butter-light); }
.summary .summary__total dd { font: 700 var(--fs-lg)/1.3 var(--mono); }

.meter { height: 30px; padding: 3px; background: var(--white); border: var(--line) solid var(--plum); border-radius: var(--r-field); box-shadow: var(--well); }
.meter span { display: block; height: 100%; width: 0%; background: repeating-linear-gradient(90deg, var(--teal) 0 14px, transparent 14px 18px); transition: width 300ms linear; }
.runlog { display: grid; gap: 4px; font: 400 var(--fs-sm)/1.45 var(--mono); }
.runlog li::before { content: "> "; color: var(--teal); font-weight: 700; }
.runlog li.ok::after { content: "  done"; color: var(--teal-deep); font-weight: 700; }
.tip { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); align-items: start; margin-top: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--lilac-pale); border: var(--line) solid var(--plum); border-radius: var(--r-field); max-width: 52ch; }
.tip svg { width: 40px; height: 40px; }
.tip b { display: block; font: 700 var(--fs-md)/1.3 var(--pixel); }

.alertbox { grid-template-columns: 48px 1fr; align-items: start; padding: var(--s-4); background: #fff2ef; border: var(--line) solid var(--red); border-radius: var(--r-btn); }
.alertbox__ico { width: 44px; height: 44px; fill: var(--butter); stroke: var(--plum); stroke-width: 1.6; stroke-linejoin: round; }
.alertbox p { margin-top: var(--s-2); max-width: 52ch; }
.alertbox__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

.receipt {
  position: relative; max-width: 420px; padding: 22px 20px 26px;
  font: 400 var(--fs-sm)/1.55 var(--mono); font-variant-numeric: tabular-nums;
  background: var(--white); border-inline: var(--line) solid var(--plum);
  --zig: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 7px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 7px repeat-x;
  border-top: var(--line) solid var(--plum);
  filter: drop-shadow(3px 3px 0 var(--lilac-shade));
}
.receipt h4 { margin: 0 0 4px; font: 700 var(--fs-lg)/1.2 var(--pixel); }
.receipt__row { display: flex; justify-content: space-between; gap: var(--s-3); }
.receipt__rule { border: 0; border-top: 2px dashed var(--plum-soft); margin: 10px 0; }
.receipt__total { font-weight: 700; font-size: var(--fs-md); }
.receipt__small { color: var(--plum-soft); }
.done__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

@container (max-width: 600px) {
  .wizard { grid-template-columns: minmax(0, 1fr); }
  .wizard__side { grid-row: auto; border-right: 0; border-bottom: var(--line) solid var(--plum); }
  .wizard__art { display: none; }
  .wizard__steps { grid-auto-flow: column; justify-content: start; overflow-x: auto; padding: 8px; }
  .wizard__nav { grid-column: 1; }
  .wizard__main { padding: var(--s-4); }
  .row--2 { grid-template-columns: minmax(0, 1fr); }
  .summary div { grid-template-columns: 1fr; gap: 0; }
  .tix__opt { grid-template-columns: 26px minmax(0, 1fr); }
  .tix__price { grid-column: 2; }
}

/* ---------- 11. Venue ---------- */
.venue { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); }
.map { padding: var(--s-3); border-right: var(--line) solid var(--plum); background: var(--white); }
.map__svg { width: 100%; height: auto; border: var(--line) solid var(--plum); }
.map__cap { margin-top: var(--s-2); font: 400 var(--fs-sm)/1.3 var(--mono); color: var(--plum-soft); }
.route-steps { display: grid; gap: var(--s-2); margin-top: var(--s-4); counter-reset: rs; max-width: 62ch; }
.route-steps li { counter-increment: rs; position: relative; padding-left: 42px; min-height: 28px; font-size: var(--fs-md); }
.route-steps li::before { content: counter(rs); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; font: 700 var(--fs-sm)/1 var(--mono); background: var(--butter); border: var(--line) solid var(--plum); border-radius: 3px; }
.pin__halo { opacity: 0; }
.pin.is-lit .pin__halo { opacity: 1; }
.pin--venue .pin__halo { opacity: 1; }
.venue__info { padding: var(--s-4); display: grid; align-content: start; gap: var(--s-3); }
.venue__info h3 { font: 700 var(--fs-xl)/1.15 var(--pixel); }
.venue__addr { font: 500 var(--fs-md)/1.45 var(--mono); }
.legend { display: grid; gap: 2px; }
.legend button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 8px;
  text-align: left; font-size: var(--fs-sm); line-height: 1.3;
  background: none; border: var(--line) solid transparent; border-radius: 3px;
}
.legend button:hover { border-color: var(--plum); }
.legend button[aria-pressed="true"] { background: var(--butter-light); border-color: var(--plum); }
.legend__sw { flex: none; width: 18px; height: 18px; border: var(--line) solid var(--plum); }
.legend__sw--venue { background: var(--butter); }
.legend__sw--metro { background: #c2412d; }
.legend__sw--taxi { background: var(--teal); }
.legend__sw--hotel { background: #d9cdf7; }
.legend__sw--bikes { background: var(--cream); }
.venue__access { font-size: var(--fs-sm); padding: 10px 12px; background: var(--lilac-pale); border-radius: var(--r-field); }
@container (max-width: 760px) {
  .venue { grid-template-columns: minmax(0, 1fr); }
  .map { border-right: 0; border-bottom: var(--line) solid var(--plum); }
}

/* ---------- 12. Help ---------- */
.help__tools .find { position: relative; flex: 1 1 220px; }
.find svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; fill: none; stroke: var(--plum); stroke-width: 2; pointer-events: none; }
.find .input { padding-left: 40px; }
.help { padding: var(--s-3); display: grid; align-content: start; gap: 6px; }
.topic { border: var(--line) solid var(--plum); border-radius: var(--r-field); background: var(--white); }
.topic summary {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px;
  font: 700 var(--fs-md)/1.2 var(--pixel); cursor: pointer; list-style: none;
}
.topic summary::-webkit-details-marker { display: none; }
.topic summary::before {
  content: ""; flex: none; width: 16px; height: 16px; border: var(--line) solid var(--plum); border-radius: 2px;
  background: linear-gradient(var(--plum) 0 0) center / 8px 2px no-repeat, linear-gradient(var(--plum) 0 0) center / 2px 8px no-repeat, var(--butter);
}
.topic[open] summary { background: var(--teal-deep); color: var(--cream); border-bottom: var(--line) solid var(--plum); }
.topic[open] summary::before { background: linear-gradient(var(--plum) 0 0) center / 8px 2px no-repeat, var(--butter); border-color: var(--cream); }
.topic__body { padding: var(--s-3) var(--s-4) var(--s-4); display: grid; gap: 6px; max-width: 66ch; }
.topic__body h3 { font: 700 var(--fs-md)/1.3 var(--sans); margin-top: 8px; }
.topic__body h3:first-child { margin-top: 0; }
.topic mark { background: var(--butter); color: inherit; }
.keys { display: grid; gap: 6px; }
.keys div { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: var(--s-3); align-items: baseline; }
.keys dt { font-weight: 500; }

/* ---------- 13. Notes ---------- */
.notes { display: flex; }
.notes__pad {
  flex: 1; width: 100%; min-height: 220px; resize: none; border: 0; padding: 4px 16px 16px 44px;
  font: 400 var(--fs-md)/28px var(--mono);
  color: var(--plum);
  background:
    linear-gradient(90deg, transparent 32px, var(--rose) 32px 34px, transparent 34px),
    repeating-linear-gradient(180deg, transparent 0 27px, #d9cdf7 27px 28px) 0 4px,
    var(--cream);
  background-attachment: local;
}
.notes__pad:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: -3px; }
.notes__pad::placeholder { color: #6b5a82; }
.notes__confirm { display: inline-flex; align-items: center; gap: 6px; font: 500 var(--fs-sm)/1 var(--pixel); }

/* Pixel.paint */
.paint__tools { justify-content: space-between; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatch {
  width: 32px; height: 32px; padding: 0;
  border: var(--line) solid var(--plum); border-radius: 4px; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .55);
}
.swatch[aria-checked="true"] { outline: 3px solid var(--plum); outline-offset: 2px; }
.swatch--erase { background: repeating-conic-gradient(var(--lilac-pale) 0 25%, var(--white) 0 50%) 0 0 / 8px 8px; }
.paint { display: grid; align-content: start; justify-items: center; gap: var(--s-3); padding: var(--s-4); }
.paint__canvas {
  width: min(100%, 330px); aspect-ratio: 1; image-rendering: pixelated; touch-action: none; cursor: crosshair;
  border: var(--line) solid var(--plum); background: var(--white);
}
.paint__hint { font-size: var(--fs-sm); color: var(--plum-soft); max-width: 40ch; text-align: center; }

/* ---------- 14. Boot, shut down, toasts, zoom ---------- */
.boot { display: none; }
.booting .boot {
  position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center;
  background: var(--plum); color: var(--cream);
}
.boot.is-leaving { opacity: 0; transition: opacity 380ms var(--ease-out); }
.boot__inner { width: min(460px, calc(100% - 40px)); display: grid; gap: var(--s-4); justify-items: start; }
.boot__logo { width: 200px; height: auto; image-rendering: pixelated; }
.boot__name { font: 700 2rem/1 var(--pixel); color: var(--butter); }
.boot__log { display: grid; gap: 2px; min-height: 9.5em; font: 400 var(--fs-sm)/1.5 var(--mono); color: var(--lilac-pale); width: 100%; }
.boot__log li span { color: var(--mint); }
.boot__bar { width: 100%; height: 22px; padding: 3px; border: var(--line) solid var(--lilac-pale); border-radius: 3px; }
.boot__bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--butter) 0 10px, transparent 10px 14px); }
.boot__skip {
  min-height: 44px; padding: 8px 14px; display: inline-flex; gap: 10px; align-items: center;
  font: 500 var(--fs-md)/1 var(--pixel); color: var(--cream);
  background: transparent; border: var(--line) solid var(--lilac-pale); border-radius: var(--r-btn);
}
.boot__skip:hover { background: var(--teal-deep); }
.boot__skip kbd { color: var(--plum); }
.booting .shelf, .booting .desk { visibility: hidden; }
.booting .desk > h1 { visibility: visible; } /* the page title stays exposed to assistive tech during the boot screen */

.off {
  position: fixed; inset: 0; z-index: 9100; display: grid; place-content: center; justify-items: center; gap: var(--s-5);
  background: var(--plum); text-align: center; padding: var(--s-5);
}
.off[hidden] { display: none; }
.off__msg { font: 700 clamp(1.6rem, 1rem + 2vw, 2.6rem)/1.15 var(--pixel); color: var(--butter); text-wrap: balance; max-width: 22ch; }

.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 8000; translate: -50% 0; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  font: 500 var(--fs-sm)/1.3 var(--pixel);
  background: var(--butter); border: var(--line) solid var(--plum); border-radius: var(--r-btn); box-shadow: var(--bevel-butter);
  animation: toast-in var(--t-mid) var(--ease-out);
}
.toast svg { width: 18px; height: 18px; fill: none; stroke: var(--plum); stroke-width: 2.5; flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.zoomrect { position: fixed; z-index: 7000; border: 2px dashed var(--plum); pointer-events: none; }

/* ---------- 15. Desktop layout (JS, wide) ---------- */
@media (min-width: 721px) {
  .js body { height: 100vh; height: 100dvh; overflow: hidden; }
  .js .desk { position: absolute; inset: var(--shelf-h) 0 0 0; overflow: hidden; }
  .js .icons { position: absolute; left: 12px; top: 12px; bottom: 12px; z-index: 1; }
  .js .icons ul { height: 100%; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 100px); gap: 0 var(--s-2); }
  .js .gadget { position: absolute; right: 24px; top: 24px; }
  .js .colophon { position: fixed; right: 24px; bottom: 14px; max-width: 46ch; text-align: right; }
  .js .wins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .js .win { position: absolute; pointer-events: auto; min-width: 300px; min-height: 220px; }
  .js .win:not(.is-open) { display: none; }
  .js .win::before {
    content: ""; position: absolute; top: 10px; left: 10px; right: -10px; bottom: -10px; z-index: -1;
    background: var(--dither); opacity: 0.6; pointer-events: none;
    clip-path: polygon(calc(100% - 10px) 0, 100% 0, 100% 100%, 0 100%, 0 calc(100% - 10px), calc(100% - 10px) calc(100% - 10px));
  }
  .js .win.is-max { border-radius: 0; }
  .js .win.is-max::before { display: none; }
  .js .win__bar { cursor: grab; touch-action: none; }
  .js .win.is-dragging .win__bar { cursor: grabbing; }
  .js .win.is-dragging { opacity: 0.94; }
  .js .bios { display: none; }
  .js .browser .folder:not(.is-active) { display: none; }
  .js .folder__name { display: none; }
}
@media (min-width: 721px) and (max-height: 640px) {
  .js .gadget { display: none; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .js .gadget, .js .wall { display: none; }
}

/* ---------- 16. Phone layout (JS, narrow): full-screen sheets ---------- */
@media (max-width: 720px) {
  :root { --shelf-h: 56px; }
  .js .shelf { position: sticky; top: 0; }
  .js .shelf__tasks { display: none; }
  .js .shelf__tray { margin-left: auto; }
  .js .desk { padding: var(--s-4) var(--s-4) var(--s-6); display: grid; gap: var(--s-5); }
  .js .wall { position: static; width: 100%; height: auto; }
  .js .hello { display: block; font: 500 var(--fs-xl)/1.3 var(--pixel); text-wrap: balance; margin-top: -8px; }
  .js .icons ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3) var(--s-2); }
  .js .dicon { width: 100%; padding: 12px 4px 10px; background: rgba(255, 251, 239, 0.5); border: var(--line) solid var(--plum); border-radius: 10px; box-shadow: var(--bevel); }
  .js .dicon__img { width: 56px; height: 56px; }
  .js .dicon__label { background: none; }
  .js .gadget { width: 100%; order: 4; }
  .js .icons { order: 3; }
  .js .wall { order: 1; }
  .js .hello { order: 2; }
  .js .colophon { padding: 0 var(--s-4) var(--s-6); }
  .js .wins { position: fixed; inset: 0; z-index: 6000; pointer-events: none; }
  .js .win {
    position: fixed; inset: 0; pointer-events: auto;
    border: 0; border-radius: 0; padding: 0;
    width: auto !important; height: auto !important; left: 0 !important; top: 0 !important;
  }
  .js .win:not(.is-open), .js .win.is-min { display: none; }
  .js .win.is-open { animation: sheet-in 320ms var(--ease-out); }
  .js .win__bar { min-height: 56px; border-width: 0 0 var(--line); border-radius: 0; padding: 6px 10px; background: var(--teal-deep); color: var(--cream); }
  .js .win__bar::after { opacity: 1; background: repeating-linear-gradient(0deg, var(--teal) 0 2px, transparent 2px 5px); }
  .js .win__back { display: grid; width: 44px; height: 44px; }
  .js .win__ctl { display: none; }
  .js .win__body { border-inline: 0; }
  .js .win__tools { border-inline: 0; }
  .js .win__status { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--lilac-pale); border-top: var(--line) solid var(--plum); }
  .js .win__grip { display: none; }
  .js .bios { display: none; }
  .js .browser .folder:not(.is-active) { display: none; }
  .js .folder__name { display: none; }
  .wall { position: static; width: 100%; }
  .startmenu { position: fixed; left: 8px; right: 8px; width: auto; top: calc(var(--shelf-h) + 4px); }
  .js .shelf__count { display: none; }
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }

/* ---------- 17. No JavaScript: windows stack as a plain page ---------- */
html:not(.js) .shelf__start-wrap, html:not(.js) .shelf__tasks, html:not(.js) .shelf__clock,
html:not(.js) .win__ctl, html:not(.js) .win__back, html:not(.js) .wall, html:not(.js) .startmenu,
html:not(.js) [data-phase], html:not(.js) [data-step="3"], html:not(.js) .wizard__nav [data-nav="back"],
html:not(.js) .wizard__nav [data-nav="cancel"], html:not(.js) .tree, html:not(.js) .details,
html:not(.js) .files__head, html:not(.js) [data-folder-panel="starred"], html:not(.js) .help__tools,
html:not(.js) .needs-js, html:not(.js) .notes__confirm, html:not(.js) .win--notes .win__tools, html:not(.js) .badgeprev { display: none; }
html:not(.js) .desk { max-width: 980px; margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-6); display: grid; gap: var(--s-5); }
html:not(.js) .hello { display: block; font: 700 clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem)/1.1 var(--pixel); color: var(--plum); text-wrap: balance; max-width: 26ch; }
html:not(.js) .hello__hint { display: none; }
html:not(.js) .icons ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
html:not(.js) .gadget { display: none; }
html:not(.js) .win { margin: 0; }
html:not(.js) .win__body { overflow: visible; }
html:not(.js) .file__abs { display: block; padding: 0 12px 10px 106px; font-size: var(--fs-sm); max-width: 70ch; }
html:not(.js) .browser { display: block; }
html:not(.js) [data-day-field] { display: grid !important; }
html:not(.js) .colophon { max-width: 980px; margin: 0 auto; padding: 0 var(--s-4) var(--s-6); }
html:not(.js) .bios { margin-top: var(--s-4); }
@media (max-width: 720px) {
  html:not(.js) .file__abs { padding-left: 12px; }
}

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
html:not(.js) .shelf__tray { margin-left: auto; }
