/* The Hall (D-036): every owner page as dark warm glass over the 3D library.
   Mahogany, oxblood, deep green and candle-gold; Fraunces for display,
   Inter for reading. The room shows through and around the panels; on a
   page change the panel slides away while the camera walks to the next spot. */
@font-face { font-family: "Inter"; font-weight: 400; src: url("../../fonts/inter-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 600; src: url("../../fonts/inter-latin-600-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 800; src: url("../../fonts/inter-latin-800-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; font-weight: 400; src: url("../../fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fraunces"; font-weight: 700; src: url("../../fonts/fraunces-latin-700-normal.woff2") format("woff2"); font-display: swap; }

html[data-theme="hall"] {
  --bg: #0b0705; --scene-dim: transparent; --veil: none;
  --ink: #f3ead8; --ink-soft: #c9bda6;
  --surface: rgba(24, 15, 10, .78); --surface-2: rgba(255, 236, 200, .05); --surface-text: #efe6d2;
  --panel: rgba(255, 236, 200, .06); --panel-text: #efe6d2; --muted: #b3a58c; --faint: #9c8f7b; --line: rgba(232, 200, 140, .14);
  --accent: #d2b072; --accent-text: #1a1008; --accent-2: #9ec3a6; --link: #e2c387;
  --ok: #9ec3a6; --warn: #e7b465; --bad: #e08f7c; --info: #9fb8e0;
  --ok-bg: rgba(158, 195, 166, .12); --warn-bg: rgba(231, 180, 101, .12); --bad-bg: rgba(224, 143, 124, .12); --info-bg: rgba(159, 184, 224, .12);
  --acc-a: #d2b072; --acc-b: #9ec3a6; --acc-c: #e08f7c; --acc-d: #b9a3e0;
  --chart-1: #e9d8b0; --chart-2: #e08f7c; --chart-3: #9ec3a6; --chart-4: #d2b072; --chart-5: #b9a3e0;
  --tip: rgba(30, 20, 14, .96); --lcd: rgba(10, 6, 4, .55); --glow-a: .35;
  --f-body: "Inter", system-ui, sans-serif; --f-display: "Fraunces", Georgia, serif; --f-head: "Fraunces", Georgia, serif; --head-weight: 400;
  --radius: 16px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow: 0 0 0 1px rgba(232, 200, 140, .1), 0 24px 50px -24px rgba(0, 0, 0, .8); --shadow-lg: 0 40px 90px rgba(0, 0, 0, .7);
  --btn-bg: rgba(255, 236, 200, .07); --btn-text: #efe6d2; --btn-line: rgba(232, 200, 140, .22);
  --field-bg: rgba(8, 5, 3, .55); --field-line: rgba(232, 200, 140, .22);
  --bar-bg: rgba(14, 9, 6, .72); --bar-text: #efe6d2; --bar-blur: 18px;
  --tile-bg: rgba(24, 15, 10, .74); --tile-text: #efe6d2; --tile-sub: #b3a58c; --tile-radius: 18px;
  --sheet-bg: rgba(18, 12, 8, .78); --sheet-radius: 22px; --sheet-shadow: 0 0 0 1px rgba(232, 200, 140, .12), 0 40px 90px rgba(0, 0, 0, .55);
  --backdrop: rgba(4, 2, 1, .66);
  --rail-bg: rgba(14, 9, 6, .68); --rail-text: #e9dcc0; --rail-shadow: 1px 0 0 rgba(232, 200, 140, .12); --rail-pill: rgba(210, 176, 114, .16); --rail-pill-text: #f3d79a;
  --tabs-bg: rgba(20, 13, 9, .66); --askbox-bg: rgba(12, 8, 5, .62); --top-bg: rgba(12, 8, 5, .7);
  --sheen: rgba(255, 210, 140, .07); --glow: rgba(210, 176, 114, .4);
  --glass: blur(12px) saturate(1.1); /* only on the bars and menus: big panels are tinted, not blurred (re-blurring the moving room under them every frame is costly) */
  /* the older dashboard parts (lists, tables, charts, small boxes) */
  --text: #efe6d2; --text-dim: #c9bda6; --text-faint: #a29581; --head-color: #f3ead8;
  --win: rgba(255, 236, 200, .04); --win-alt: rgba(255, 236, 200, .07); --win-text: #efe6d2;
  --face: rgba(255, 236, 200, .06); --face-lt: rgba(255, 236, 200, .1); --face-hi: rgba(255, 236, 200, .14); --face-sh: rgba(232, 200, 140, .2); --face-dk: rgba(0, 0, 0, .4);
  --sunken: inset 0 0 0 1px rgba(232, 200, 140, .12); --sunken-soft: inset 0 0 0 1px rgba(232, 200, 140, .09);
  --raised: 0 0 0 1px rgba(232, 200, 140, .14); --raised-soft: 0 0 0 1px rgba(232, 200, 140, .1); --pressed: inset 0 0 0 1px rgba(232, 200, 140, .3);
  --sel: #b8924e; --sel-text: #1a1008; --aqua: #b8924e; --gloss: none; --title-text: #f3ead8;
  color-scheme: dark;
}
html[data-theme="hall"] body.app { background: #0b0705; color: var(--surface-text); }

/* the room */
.hall { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #0b0705; }
.hall-still { position: absolute; inset: 0; background: center / cover no-repeat; transition: opacity .9s ease, background-image .6s ease; }
.hall-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
html.hall-live .hall-canvas { opacity: 1; }
html.hall-live .hall-still { opacity: 0; }
.hall-veil { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8, 5, 3, .72) 0, rgba(8, 5, 3, .25) 34%, rgba(8, 5, 3, 0) 60%),
  linear-gradient(180deg, rgba(8, 5, 3, .35) 0, rgba(8, 5, 3, 0) 22%, rgba(8, 5, 3, 0) 60%, rgba(8, 5, 3, .55) 100%); }
html[data-theme="hall"] .scene { display: none; }

/* side bar and top */
html[data-theme="hall"] .rail { -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); }
html[data-theme="hall"] .rail-brand { font-family: var(--f-display); color: #f3e3bd; }
html[data-theme="hall"] .rail-brand .ff-mark { color: #d2b072; }
html[data-theme="hall"] .rl { font-weight: 600; }
html[data-theme="hall"] .rl-pill { background: linear-gradient(180deg, rgba(210, 176, 114, .2), rgba(210, 176, 114, .1)); box-shadow: inset 0 0 0 1px rgba(210, 176, 114, .3), 0 8px 24px -10px rgba(210, 176, 114, .4); }
html[data-theme="hall"] .top-sec { font-family: var(--f-display); font-weight: 400; color: #f3ead8; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
html[data-theme="hall"] .askbox { -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); box-shadow: 0 0 0 1px rgba(232, 200, 140, .18), 0 12px 30px -12px rgba(0, 0, 0, .7); }
html[data-theme="hall"] .agent-btn { background: linear-gradient(135deg, #e3c584, #a8823f); color: #1a1008; }
html[data-theme="hall"] .tabs-row { -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); }
html[data-theme="hall"] .tb-pill { background: linear-gradient(180deg, #e3c584, #b8924e); }
html[data-theme="hall"] .tb.is-on { color: #1a1008; }
html[data-theme="hall"] .tabbar { -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); }
html[data-theme="hall"] .tbb-ask-o { background: linear-gradient(135deg, #e3c584, #a8823f); color: #1a1008; }
html[data-theme="hall"] .statusline { color: rgba(239, 230, 210, .55); }

/* the page: glass over the room, leaving the room in view on wide screens */
html[data-theme="hall"] .sheet {
  max-width: 1180px; background: var(--sheet-bg); border-radius: var(--sheet-radius); box-shadow: var(--sheet-shadow);
}
html[data-theme="hall"] .sheet::before { content: none; }
html[data-theme="hall"] h1, html[data-theme="hall"] h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; }
html[data-theme="hall"] .adm-head h1 { font-size: clamp(30px, 3vw, 42px); text-shadow: none; }
html[data-theme="hall"] .card { background: rgba(255, 236, 200, .035); box-shadow: 0 0 0 1px rgba(232, 200, 140, .12); }
html[data-theme="hall"] .sheet .tabs { margin-bottom: 12px; }
html[data-theme="hall"] .card-h { box-shadow: none; border-bottom-color: rgba(232, 200, 140, .12); }
html[data-theme="hall"] .card-h h2 { font-family: var(--f-body); font-weight: 600; font-size: 14px; }
html[data-theme="hall"] .card:hover, html[data-theme="hall"] .card:focus-within { box-shadow: 0 0 0 1px rgba(232, 200, 140, .26), 0 0 30px -10px rgba(210, 176, 114, .35); }
html[data-theme="hall"] .btn.primary, html[data-theme="hall"] form .btn[type="submit"]:not(.ghost):not(.sm):not(.danger):not(.linkish) { background: linear-gradient(135deg, #e3c584, #a8823f); color: #1a1008; border-color: transparent; }
html[data-theme="hall"] .lcd-read { background: rgba(8, 5, 3, .45); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .12); }
html[data-theme="hall"] .lcd-read .v { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; }
html[data-theme="hall"] .lcd-read { color: #f3e3bd; }
html[data-theme="hall"] .lcd-read.acc-c { color: #f0b3a3; } html[data-theme="hall"] .lcd-read.acc-b { color: #bfe0c6; }
html[data-theme="hall"] .flash { background: rgba(30, 20, 14, .9); }
html[data-theme="hall"] dialog { --surface: #1a110c; }
html[data-theme="hall"] .tb-more-list.is-float { background: #1a110c; box-shadow: 0 0 0 1px rgba(232, 200, 140, .22), 0 30px 70px rgba(0, 0, 0, .75); } /* (6.19.0) a menu you can read, over whatever the page shows */
html[data-theme="hall"] .sheet-dlg .sd-wrap, html[data-theme="hall"] .cmdk-wrap { background: rgba(26, 17, 12, .94); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); box-shadow: 0 0 0 1px rgba(232, 200, 140, .2), 0 40px 90px rgba(0, 0, 0, .7); }
html[data-theme="hall"] .agent { background: rgba(18, 12, 8, .9); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); }

/* the room is never snapshotted by a view transition: it keeps drawing under the moving panels */
html[data-hall] { view-transition-name: none; }

/* changing pages in place: the panel slides off while the camera walks */
#main { transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .25, 1), filter .35s ease; }
#main.nav-out { opacity: 0; transform: translateY(14px) scale(.99); filter: blur(4px); pointer-events: none; }
#main.nav-wait { opacity: .7; filter: saturate(.8); transition-duration: .4s; }
#main.nav-in { opacity: 0; transform: translateY(-10px) scale(1.005); filter: blur(4px); transition: none; }
/* another section: the panel steps aside, the room comes up while the camera walks, the new page rises in */
#main.nav-leave { opacity: 0; transform: translateY(30px) scale(.97); filter: blur(8px); pointer-events: none;
  transition: opacity .42s ease, transform .55s cubic-bezier(.5, 0, .75, 0), filter .42s ease; }
#main.nav-arrive { animation: hall-panel-in 1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes hall-panel-in { from { opacity: 0; transform: translateY(46px) scale(.965); filter: blur(10px); } 55% { filter: blur(0); } }
.hall-veil { transition: opacity .7s ease; }
/* the heading takes focus after an in-place change (for screen readers); it isn't a control, so no ring */
#main [tabindex="-1"]:focus { outline: none; }
html.hall-walking .hall-veil { opacity: .2; }
html.hall-walking .tabs-row, html.hall-walking .statusline { opacity: .35; transition: opacity .5s ease; }
html[data-fx="off"] #main { transition: none; filter: none; }

/* the first page of a visit: the room draws itself in gold and lights up while the panels wait
   (hall-hold), then they arrive (hall-arrive). boot.js times it by the room's own clock. */
html.hall-hold .rail, html.hall-hold .shell-main, html.hall-hold .tabbar { opacity: 0; transform: translateY(18px); pointer-events: none; }
html.hall-hold .wd { animation: none; opacity: 0; }
html[data-fx="on"].hall-arrive .rail { animation: hall-ui-in 1.1s cubic-bezier(.2, .9, .25, 1) both; }
html[data-fx="on"].hall-arrive .shell-main, html[data-fx="on"].hall-arrive .tabbar { animation: hall-ui-in 1.1s cubic-bezier(.2, .9, .25, 1) .25s both; }

/* clicking FijyOS: the page steps away before the opening plays again */
html.hall-out .rail, html.hall-out .shell-main, html.hall-out .tabbar { opacity: 0; transform: translateY(14px); filter: blur(6px); pointer-events: none;
  transition: opacity .48s ease, transform .5s cubic-bezier(.5, 0, .75, 0), filter .48s ease; }

/* the FijyOS logo after the opening (boot.js showLogo): Ryan's FF mark traces itself in gold and fills,
   the name settles in, a gold rule opens under it, then it lifts away as the page arrives */
.hall-logo { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none; }
/* (6.13.1) the room's lights go down: shadow closes in from the edges of the frame to a pool of lamplight
   round the logo, slowly, like a dimmer, and opens back out past the edges as the page arrives. No blur and
   no glass: the room stays sharp, only darker. One large layer that is only scaled, so nothing is repainted. */
.hall-logo::before { content: ""; position: absolute; left: 50%; top: 48%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; pointer-events: none;
  background: radial-gradient(15.5% 12.4% at 50% 50%, rgba(9, 6, 3, .03) 0%, rgba(9, 6, 3, .09) 35%, rgba(8, 5, 3, .28) 60%, rgba(7, 4, 2, .52) 80%, rgba(6, 4, 2, .7) 100%);
  will-change: transform, opacity; animation: hl-dim 1.8s cubic-bezier(.45, .05, .2, 1) both; }
.hl-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.4vw, 30px); }
.hl-seal { position: relative; width: clamp(170px, 18vw, 270px); aspect-ratio: 1; display: grid; place-items: center; }
/* the warmth the mark gives off once it is lit: comes up once and stays, no pulse */
.hl-glow { position: absolute; inset: -70%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 232, 186, .2), rgba(243, 208, 142, .08) 42%, rgba(231, 190, 120, 0) 72%);
  animation: hl-show 1.4s 1s ease forwards; }
/* the ring: one gold hairline drawn round, a bead of light riding the head of the stroke.
   (6.13.1) Lengths are in the ring's own units (r 96, 603.2 round) and the strokes scale with it: a stroke
   measured in screen pixels against a length in drawing units stopped three quarters of the way round. */
.hl-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.hl-ring circle { fill: none; }
.hl-ring .r0 { stroke: rgba(231, 201, 138, .16); stroke-width: .8; opacity: 0; animation: hl-show .8s .3s ease forwards; }
.hl-ring .r1 { stroke: #efd39a; stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 604; stroke-dashoffset: 604; filter: drop-shadow(0 0 4px rgba(243, 220, 160, .85));
  animation: hl-draw 1.3s .3s cubic-bezier(.65, 0, .25, 1) forwards; }
.hl-ring .rc { stroke: #fffaf0; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1.2 602.8; stroke-dashoffset: 0; opacity: 0; filter: drop-shadow(0 0 5px #fff3cf) drop-shadow(0 0 12px rgba(243, 220, 160, .95));
  animation: hl-bead 1.3s .3s cubic-bezier(.65, 0, .25, 1) forwards; }
.hl-mark { position: relative; width: 44%; color: #e7c98a; animation: hl-mark 1.7s .15s cubic-bezier(.16, 1, .3, 1) both, hl-markglow 2.8s 1.1s ease-in-out both; }
.hl-mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.hl-ff path { fill-opacity: 0; stroke: #f3dca0; stroke-width: 6; stroke-linejoin: round; stroke-dasharray: var(--len, 6000); stroke-dashoffset: var(--len, 6000);
  animation: hl-trace 1.15s .2s cubic-bezier(.65, 0, .35, 1) forwards, hl-fill .75s 1.05s ease forwards; }
.hl-sheen { position: absolute; inset: 0; pointer-events: none; }
.hl-sheen .band { transform-box: view-box; transform: translateX(0) skewX(-18deg); animation: hl-band 1.05s 1.7s cubic-bezier(.4, 0, .2, 1) forwards; }
/* FijyOS: the letters rise in one at a time out of a blur; then OS lights up, flares once, and keeps glowing */
.hl-word { position: relative; display: flex; align-items: baseline; font: 400 clamp(42px, 5.2vw, 74px)/1 var(--f-display); color: #f6eedc; letter-spacing: .05em; perspective: 700px;
  text-shadow: 0 2px 18px rgba(8, 5, 3, .75); }
.hl-l { display: inline-block; transform-origin: 50% 100%; animation: hl-letter .95s calc(.85s + var(--i) * 75ms) cubic-bezier(.16, 1, .3, 1) both; }
.hl-os { position: relative; display: inline-flex; margin-left: .06em; color: #f1d491;
  text-shadow: 0 0 10px rgba(255, 226, 160, .8), 0 0 26px rgba(243, 200, 120, .55), 0 0 60px rgba(231, 180, 100, .35);
  animation: hl-os-on 1.1s 1.25s cubic-bezier(.2, .8, .2, 1) both, hl-os-glow 2.4s 2.35s ease-in-out infinite alternate; }
.hl-os .hl-l { animation-name: hl-letter-os; animation-duration: 1.05s; }
/* a band of light crossing OS once it has lit, the same word laid over itself and lit only under the band */
.hl-os::after { content: attr(data-w); position: absolute; inset: 0; color: transparent; text-shadow: none; letter-spacing: inherit; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 253, 244, 0) 40%, rgba(255, 253, 244, .98) 50%, rgba(255, 253, 244, 0) 60%) 140% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text;
  animation: hl-wsheen 1s 2.05s cubic-bezier(.4, 0, .2, 1) forwards; }
/* leaving: the mark and the name lift away; the ring opens out past the edges of the screen and the room comes back */
.hall-logo.out .hl-mark, .hall-logo.out .hl-word { transition: opacity .75s ease, transform .9s cubic-bezier(.4, 0, .2, 1), filter .75s ease; opacity: 0; transform: translateY(-16px) scale(.97); filter: blur(8px); }
.hall-logo.out .hl-word { transition-delay: .06s; }
.hall-logo.out .hl-ring { transition: transform 1.15s cubic-bezier(.55, 0, .3, 1), opacity 1.15s ease .1s; transform: rotate(-90deg) scale(9); opacity: 0; }
.hall-logo.out .hl-ring circle { transition: stroke-width 1.15s cubic-bezier(.55, 0, .3, 1); stroke-width: .3; }
.hall-logo.out .hl-glow { transition: opacity .8s ease; opacity: 0 !important; animation-play-state: paused; }
.hall-logo.out::before { animation: hl-undim 1.15s cubic-bezier(.55, 0, .3, 1) forwards; }
@keyframes hl-dim { 0% { transform: scale(4.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes hl-undim { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }
@keyframes hl-show { to { opacity: 1; } }
@keyframes hl-draw { to { stroke-dashoffset: 0; } }
@keyframes hl-bead { 0% { opacity: 0; stroke-dashoffset: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -604; } }
@keyframes hl-mark { from { opacity: 0; transform: scale(.86); } }
@keyframes hl-markglow { 0% { filter: drop-shadow(0 0 0 rgba(243, 220, 160, 0)); } 25% { filter: drop-shadow(0 0 30px rgba(255, 236, 190, .95)) brightness(1.22); } 100% { filter: drop-shadow(0 0 14px rgba(243, 220, 160, .45)); } }
@keyframes hl-trace { to { stroke-dashoffset: 0; } }
@keyframes hl-fill { to { fill-opacity: 1; stroke-opacity: .22; } }
@keyframes hl-band { to { transform: translateX(210%) skewX(-18deg); } }
@keyframes hl-letter { 0% { opacity: 0; transform: translateY(.55em) rotateX(-70deg); filter: blur(10px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes hl-letter-os { 0% { opacity: 0; transform: translateY(.3em) scale(1.35); filter: blur(12px) brightness(2.2); } 55% { opacity: 1; filter: blur(0) brightness(1.6); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes hl-os-on { 0% { text-shadow: 0 0 0 rgba(255, 226, 160, 0), 0 0 0 rgba(243, 200, 120, 0), 0 0 0 rgba(231, 180, 100, 0); }
  45% { text-shadow: 0 0 14px rgba(255, 240, 200, 1), 0 0 42px rgba(255, 214, 140, .9), 0 0 110px rgba(243, 190, 110, .7); } }
@keyframes hl-os-glow { to { text-shadow: 0 0 14px rgba(255, 232, 175, .95), 0 0 34px rgba(243, 205, 128, .7), 0 0 80px rgba(231, 185, 105, .5); } }
@keyframes hl-wsheen { to { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) { .hl-os { animation-iteration-count: 1; } }
.rail-brand { cursor: pointer; }

/* the sign-in page, standing at the doors of the hall */
html[data-hall-door] body.front-body { background: #0b0705; }
html[data-hall-door] .front-card { background: rgba(18, 12, 8, .8); box-shadow: 0 0 0 1px rgba(232, 200, 140, .18), 0 40px 90px rgba(0, 0, 0, .6); }
html[data-hall-door] .front-card h1 { font-family: var(--f-display); font-weight: 400; }
html[data-hall-door].hall-hold .front, html[data-hall-door].hall-hold .front-foot { opacity: 0; transform: translateY(18px); pointer-events: none; }
html[data-hall-door].hall-hold .front-card { animation: none; }
html[data-fx="on"][data-hall-door].hall-arrive .front { animation: hall-ui-in 1.1s cubic-bezier(.2, .9, .25, 1) both; }
html[data-fx="on"][data-hall-door].hall-arrive .front-foot { animation: hall-ui-in 1.1s cubic-bezier(.2, .9, .25, 1) .35s both; }
html[data-hall-door] .hall-veil { background: radial-gradient(70% 70% at 50% 50%, rgba(8, 5, 3, .35), rgba(8, 5, 3, 0) 70%), linear-gradient(180deg, rgba(8, 5, 3, .3) 0, rgba(8, 5, 3, 0) 25%, rgba(8, 5, 3, 0) 70%, rgba(8, 5, 3, .5) 100%); }
@keyframes hall-ui-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ---------- Today: the hero and the desk of boxes ---------- */
.sample-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 18px; padding: 14px 18px; border-radius: 14px;
  background: rgba(20, 13, 9, .86); box-shadow: inset 4px 0 0 var(--warn), 0 0 0 1px rgba(231, 180, 101, .3); }
.sample-note p { margin: 0; max-width: 70ch; }
.link-acts { gap: 8px; margin-top: 8px; align-items: center; }
.link-join summary { cursor: pointer; color: var(--muted); }
.hall-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 8px 4px 26px; }
.hall-hero .date { margin: 0 0 10px; font: 600 12px/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #d2b072; }
.hall-hero .date .he { margin-left: 10px; font-family: var(--f-hebrew, serif); letter-spacing: 0; font-size: 15px; text-transform: none; opacity: .85; }
.hall-hero .date .note { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(232, 200, 140, .3); font: italic 400 15px/1.3 var(--f-display); letter-spacing: 0; text-transform: none; color: #e7d6ad; }
.hall-hero h1 { margin: 0; font: 400 clamp(36px, 4.4vw, 60px)/1.02 var(--f-display); color: #f6eedc; letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.hall-hero .chips { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 16px; }
.hall-hero .chips a { display: block; padding: 0 20px; border-left: 1px solid rgba(232, 200, 140, .22); color: inherit; text-decoration: none; }
.hall-hero .chips a:first-child { padding-left: 0; border: 0; }
.hall-hero .chips b { display: block; font: 400 24px/1.15 var(--f-display); color: #f3ead8; }
.hall-hero .chips span { font-size: 12.5px; color: #b3a58c; }
.hall-hero .tools { display: flex; gap: 8px; }
.hall-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; font: 600 13.5px/1 var(--f-body); color: #efe6d2; background: rgba(20, 13, 9, .78); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .22); }
.hall-btn:hover { box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .45); color: #f3d79a; }
.hall-btn .ico { width: 16px; height: 16px; }
.hall-btn.quiet { background: none; box-shadow: none; color: #c9bda6; }
.hall-btn[aria-pressed="true"] { color: #f3d79a; box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .5); }
.lock-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lock-ico .shackle { transition: transform .3s ease; transform-origin: 16px 11px; transform-box: view-box; }
[data-desk-lock][aria-pressed="false"] .lock-ico .shackle { transform: translateY(-2px) rotate(28deg); }

/* on Today the boxes float straight over the room (no sheet behind them); the section's other
   pages (Assistant, Weather) keep the sheet, so their words never sit on the chandelier */
html[data-theme="hall"] body.sec-home .sheet:has(> .hall-hero, > .desk) { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; max-width: none; padding-left: 0; padding-right: 0; }
.desk { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 56px; gap: 16px; }
.desk.is-busy { user-select: none; }
.wd { position: relative; min-width: 0; min-height: 0; }
.wd-obj {
  position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 17, 11, .8), rgba(15, 10, 7, .86));
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, .06), 0 0 0 1px rgba(232, 200, 140, .12), 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: box-shadow .3s ease, transform .35s cubic-bezier(.2, .9, .25, 1.1);
}
.wd:hover .wd-obj { box-shadow: inset 0 1px 0 rgba(255, 236, 200, .08), 0 0 0 1px rgba(232, 200, 140, .26), 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 40px -16px rgba(210, 176, 114, .35); }
.wd-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; }
.wd-plate { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; max-width: 70%; padding: 0 10px; border: 0; border-radius: 10px; background: none; cursor: grab; touch-action: none; color: #efe6d2; font: 600 13.5px/1 var(--f-body); }
.wd-plate:hover { background: rgba(255, 236, 200, .05); }
.wd-plate:active { cursor: grabbing; }
.wd-plate span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-plate .screw { width: 6px; height: 10px; flex: none; background: radial-gradient(circle, rgba(232, 200, 140, .55) 1.2px, transparent 1.6px) 0 0 / 6px 5px; opacity: .7; }
.wd-plate .screw + span + .screw { display: none; }
.wd-acts { display: flex; align-items: center; gap: 12px; }
.wd-acts form { display: contents; }
.wd-link { border: 0; padding: 0; background: none; cursor: pointer; color: #d2b072; font: 600 12.5px/1 var(--f-body); text-decoration: none; white-space: nowrap; }
.wd-link:hover { color: #f3d79a; }
.wd-x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 8px; cursor: pointer; color: #b3a58c; background: rgba(255, 236, 200, .06); font: 18px/1 var(--f-body); opacity: 0; transition: opacity .2s; }
.wd:hover .wd-x, .wd-x:focus-visible { opacity: 1; }
.wd-body { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 0 18px 16px; scrollbar-width: thin; scrollbar-color: rgba(232, 200, 140, .25) transparent; container: wb / inline-size; }
/* contents run past the foot of the box: fade them out there, so it reads as "scroll for more" and never as a cut-off line */
/* boxes made of figure tiles: the tiles share out whatever height the box has, so a tall box has no empty strip at its foot */
.wd-body > .lcd-row:only-child, .wd-body > .stats:only-child { min-height: 100%; }
.wd-body[data-more] { -webkit-mask-image: linear-gradient(#000 calc(100% - 44px), transparent); mask-image: linear-gradient(#000 calc(100% - 44px), transparent); }
/* moving and resizing: grab a box anywhere; the gold corner (and the right and bottom edges) resize it */
.wd-obj { cursor: grab; }
.wd-obj a, .wd-obj button, .wd-obj input, .wd-obj select, .wd-obj textarea, .wd-obj label { cursor: pointer; }
.wd-obj input[type="text"], .wd-obj textarea { cursor: text; }
.desk.is-locked .wd-obj { cursor: default; }
.wd-resize { position: absolute; z-index: 4; right: 2px; bottom: 2px; width: 26px; height: 26px; cursor: nwse-resize; touch-action: none; opacity: .45; transition: opacity .2s, transform .2s;
  background: #e7c98a;
  -webkit-mask: linear-gradient(#000, #000) right 5px bottom 5px / 12px 2px no-repeat, linear-gradient(#000, #000) right 5px bottom 5px / 2px 12px no-repeat;
          mask: linear-gradient(#000, #000) right 5px bottom 5px / 12px 2px no-repeat, linear-gradient(#000, #000) right 5px bottom 5px / 2px 12px no-repeat; }
.wd:hover .wd-resize, .wd.resizing .wd-resize { opacity: 1; transform: translate(1px, 1px); }
.wd-edge { position: absolute; z-index: 3; touch-action: none; }
.wd-edge-r { top: 14px; bottom: 26px; right: -5px; width: 10px; cursor: ew-resize; }
.wd-edge-b { left: 14px; right: 26px; bottom: -5px; height: 10px; cursor: ns-resize; }
.wd-edge::after { content: ""; position: absolute; border-radius: 2px; background: #e7c98a; opacity: 0; transition: opacity .2s; }
.wd-edge-r::after { top: 30%; bottom: 30%; left: 4px; width: 2px; }
.wd-edge-b::after { left: 30%; right: 30%; top: 4px; height: 2px; }
.wd-edge:hover::after { opacity: .8; }
.desk.is-locked .wd-resize, .desk.is-locked .wd-edge, .desk.is-locked .wd-x { display: none; }
.desk .wd { z-index: 1; }
.desk .wd.dragging, .desk .wd.resizing { z-index: 50; }
.wd.wd-arrived .wd-obj { box-shadow: 0 0 0 2px rgba(231, 201, 138, .85), 0 0 46px rgba(231, 201, 138, .4), 0 30px 60px -30px rgba(0, 0, 0, .9); transition: box-shadow .6s ease; }
/* the grid, lit while something moves */
.wd-grid { position: absolute; z-index: 0; left: 0; right: 0; top: 0; pointer-events: none; border-radius: 10px;
  background: rgba(232, 200, 140, .11); -webkit-mask: var(--cols), var(--rows); -webkit-mask-composite: source-in; mask: var(--cols), var(--rows); mask-composite: intersect;
  animation: wd-grid-in .25s ease both; }
.wd-grid.out { opacity: 0; transition: opacity .25s ease; }
@keyframes wd-grid-in { from { opacity: 0; } }
/* short notes at the bottom of the screen (Undo, locked) */
.wd-note { position: fixed; z-index: 400; left: 50%; bottom: calc(24px + var(--safe-b, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px; border-radius: 14px; color: #efe6d2; background: rgba(20, 13, 9, .94);
  box-shadow: 0 0 0 1px rgba(232, 200, 140, .3), 0 24px 50px rgba(0, 0, 0, .6); animation: wd-note-in .35s cubic-bezier(.16, 1, .3, 1) both; }
.wd-note.out { opacity: 0; transform: translate(-50%, 10px); transition: opacity .35s, transform .35s; }
.wd-note-b { min-height: 38px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer; font: 600 14px/1 var(--f-body); color: #1a1008; background: linear-gradient(180deg, #e3c584, #b8924e); }
.wd-note-x { width: 32px; height: 32px; border: 0; border-radius: 8px; cursor: pointer; color: #b3a58c; background: none; font: 20px/1 var(--f-body); }
@keyframes wd-note-in { from { opacity: 0; transform: translate(-50%, 14px); } }
@media (max-width: 899px) { .wd-note { bottom: calc(96px + var(--safe-b, 0px)); } }
.desk.is-locked .wd-plate { cursor: default; }
.wd.dragging { z-index: 50; opacity: 1; }
.wd.dragging .wd-obj { box-shadow: 0 0 0 1px rgba(232, 200, 140, .45), 0 50px 80px -20px rgba(0, 0, 0, .9); }
.wd.resizing .wd-obj { box-shadow: 0 0 0 2px rgba(232, 200, 140, .6); }
.wd-ghost { border-radius: 16px; background: rgba(210, 176, 114, .06); box-shadow: inset 0 0 0 1.5px rgba(232, 200, 140, .4); pointer-events: none; }
.wd.leaving .wd-obj { transition: transform .4s ease, opacity .4s; transform: translateY(20px) scale(.95); opacity: 0; }
html[data-fx="on"] .wd { animation: wd-in .7s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--i, 0) * 45ms + .1s); }
html[data-fx="on"].hall-arrive .wd { animation-delay: calc(var(--i, 0) * 70ms + .5s); }
@keyframes wd-in { from { opacity: 0; transform: translateY(16px); } }
.desk-empty { padding: 40px; text-align: center; color: #c9bda6; font: 400 20px var(--f-display); }
.cabinet .cab-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.cabinet .cab-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 236, 200, .04); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .12); }
.cabinet .cab-ico .ico { width: 22px; height: 22px; color: #d2b072; }
.cabinet .cab-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cabinet .cab-txt small { color: #b3a58c; }
.cabinet .cab-group { margin: 18px 0 8px; font: 600 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #b3a58c; }

/* box contents in the hall */
/* the clock box (6.5.0): everything is sized from the box itself (cqw/cqh), so the dial and the time fit whatever
   size the box is given. Tall or square: the dial above the time. Wide or short: side by side. Tiny: the time alone. */
.wd-body.box-clock { overflow: hidden; padding-bottom: 14px; }
.hall-clock { container-type: size; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqh 5cqw; }
.hall-clock .dial { flex: none; height: min(60cqh, 90cqw); width: auto; max-width: none; aspect-ratio: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.hall-clock .dial .ticks line { stroke: #d2b072; stroke-opacity: .5; stroke-width: 1; }
.hall-clock .dial .ticks line.b { stroke-opacity: .95; stroke-width: 2; }
.hall-clock .dial .nums text { font: 400 17px/1 var(--f-display); fill: #efe6d2; text-anchor: middle; letter-spacing: .02em; }
.hall-clock .dial .hh, .hall-clock .dial .mh { stroke: #f1e3bf; stroke-linecap: round; }
.hall-clock .dial .hh { stroke-width: 5; }
.hall-clock .dial .mh { stroke-width: 3; }
.hall-clock .dial .sh { stroke: #d98a5c; stroke-width: 1.2; stroke-linecap: round; }
.hall-clock .txt { min-width: 0; text-align: center; white-space: nowrap; }
.hall-clock .t { font: 400 clamp(20px, min(14cqh, 17cqw), 64px)/1 var(--f-display); color: #f6eedc; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hall-clock .t small { font: 600 .3em/1 var(--f-body); letter-spacing: .1em; color: #d2b072; margin-left: .35em; }
.hall-clock .d { margin-top: .5em; color: #c9bda6; font-size: clamp(12px, min(5cqh, 6.2cqw), 17px); line-height: 1.25; }
.hall-clock .he { margin-top: .15em; color: #d2b072; font-family: var(--f-hebrew, serif); font-size: clamp(11.5px, min(4.5cqh, 5.6cqw), 15px); line-height: 1.25; }
@container (aspect-ratio > 1.3) or (max-height: 190px) {
  .hall-clock { flex-direction: row; }
  .hall-clock .dial { height: min(94cqh, 44cqw); }
  .hall-clock .txt { text-align: left; }
  .hall-clock .t { font-size: clamp(20px, min(30cqh, 10.5cqw), 72px); }
  .hall-clock .d { font-size: clamp(12px, min(11cqh, 4.2cqw), 18px); }
  .hall-clock .he { font-size: clamp(11.5px, min(10cqh, 3.8cqw), 16px); }
}
@container (max-width: 235px) and (max-height: 190px) { .hall-clock { flex-direction: column; gap: 4cqh; } .hall-clock .dial { height: min(62cqh, 90cqw); } .hall-clock .txt { text-align: center; } .hall-clock .t { font-size: clamp(17px, min(17cqh, 16cqw), 30px); } .hall-clock .d, .hall-clock .he { display: none; } }
@container (max-height: 110px) { .hall-clock .he { display: none; } }
/* on a phone a box is as tall as what's in it, so the clock is given a height of its own there */
@media (max-width: 899px) { .hall-clock { height: 176px; flex-direction: row; } .hall-clock .txt { text-align: left; } }   /* (6.16.0) side by side there: the box above it can't be asked its height on a phone, so the row is said outright */
@container (max-width: 520px) { .brief-grid { grid-template-columns: 1fr !important; } }
/* (6.13.0) the to-do list takes the height the box has: side by side it fills the column, stacked it takes about half */
.box-briefing .todo-g { background: rgba(26, 17, 11, .96); }
@container wd (min-width: 560px) { .box-briefing .todo-list { max-height: calc(100cqh - 150px); } }
@container wd (max-width: 559px) { .box-briefing .todo-list { max-height: clamp(150px, 46cqh, 420px); } }

/* dashboard parts that were drawn for light paper */
html[data-theme="hall"] .wx-days li, html[data-theme="hall"] .gal-item, html[data-theme="hall"] .home-empty { background: rgba(255, 236, 200, .05); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .12); color: var(--text); }
html[data-theme="hall"] .curio { background: rgba(255, 236, 200, .05); }
html[data-theme="hall"] .nw-range { box-shadow: 0 0 0 1px rgba(232, 200, 140, .25); border-radius: 9px; }
html[data-theme="hall"] .nw-range a { color: var(--text-dim); background: rgba(255, 236, 200, .04); box-shadow: inset -1px 0 0 rgba(232, 200, 140, .18); padding: 6px 12px; }
html[data-theme="hall"] .nw-range a.on { color: #1a1008; background: linear-gradient(180deg, #e3c584, #b8924e); }
html[data-theme="hall"] .cal-grid td.today span { color: #1a1008; background: radial-gradient(circle at 50% 30%, #f1d898, #b8924e); box-shadow: 0 0 14px rgba(210, 176, 114, .45); }
html[data-theme="hall"] .sticky textarea { color: #efe6d2; background: rgba(8, 5, 3, .4) !important; background-image: repeating-linear-gradient(transparent 0 calc(1.6em - 1px), rgba(232, 200, 140, .14) calc(1.6em - 1px) 1.6em) !important; box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .18) !important; }
html[data-theme="hall"] .seg span { background: rgba(255, 236, 200, .05); }
html[data-theme="hall"] .seg input:checked + span { background: linear-gradient(180deg, #e3c584, #b8924e); color: #1a1008; }
html[data-theme="hall"] .qr { background: #fff; } /* a QR code needs white */

html[data-theme="hall"] .lk-why { color: #e2c387; }

/* messages after saving something, at the top of the screen (nav.js moves them here) */
.flash-dock { position: fixed; z-index: 360; top: calc(14px + var(--safe-t, 0px)); left: 50%; transform: translateX(-50%); width: min(620px, calc(100vw - 32px)); display: grid; gap: 8px; pointer-events: none; }
.flash-dock .flash { margin: 0; pointer-events: auto; cursor: pointer; background: rgba(24, 16, 11, .96); box-shadow: inset 4px 0 0 var(--info), 0 0 0 1px rgba(232, 200, 140, .3), 0 24px 50px rgba(0, 0, 0, .6); animation: fl-in .45s cubic-bezier(.16, 1, .3, 1) both; }
.flash-dock .flash.ok { box-shadow: inset 4px 0 0 var(--ok), 0 0 0 1px rgba(158, 195, 166, .4), 0 24px 50px rgba(0, 0, 0, .6); }
.flash-dock .flash.warn { box-shadow: inset 4px 0 0 var(--warn), 0 0 0 1px rgba(231, 180, 101, .4), 0 24px 50px rgba(0, 0, 0, .6); }
.flash-dock .flash.error { box-shadow: inset 4px 0 0 var(--bad), 0 0 0 1px rgba(224, 143, 124, .6), 0 24px 50px rgba(0, 0, 0, .6); }
.flash-dock .flash.out { opacity: 0; transform: translateY(-10px); transition: opacity .45s ease, transform .45s ease; }
@keyframes fl-in { from { opacity: 0; transform: translateY(-14px); } }

/* the one-time note when the computer asks for less motion */
.hall-note { position: fixed; z-index: 400; left: 50%; bottom: calc(24px + var(--safe-b, 0px)); transform: translateX(-50%); width: min(520px, calc(100vw - 32px));
  padding: 16px 18px; border-radius: 16px; color: #efe6d2; background: rgba(20, 13, 9, .92); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
  box-shadow: 0 0 0 1px rgba(232, 200, 140, .3), 0 30px 60px rgba(0, 0, 0, .6); }
.hall-note p { margin: 0 0 12px; line-height: 1.45; }
.hall-note-b { display: flex; flex-wrap: wrap; gap: 8px; }
.hall-note .hall-btn:first-child { color: #1a1008; background: linear-gradient(180deg, #e3c584, #b8924e); box-shadow: none; min-height: 44px; }
.hall-note .hall-btn.quiet { min-height: 44px; }
@media (max-width: 899px) { .hall-note { bottom: calc(96px + var(--safe-b, 0px)); } }

/* ---------- phones ---------- */
@media (max-width: 899px) {
  .hall-veil { background: linear-gradient(180deg, rgba(8, 5, 3, .3) 0, rgba(8, 5, 3, .1) 30%, rgba(8, 5, 3, .65) 70%, rgba(8, 5, 3, .85) 100%); }
  html[data-theme="hall"] .sheet { border-radius: 18px; }
  .desk { display: flex; flex-direction: column; gap: 14px; }
  .wd { order: var(--po); grid-area: auto !important; }
  .wd-obj { position: relative; inset: auto; }
  .wd-body { overflow: visible; }
  .wd-resize, .wd-edge { display: none; }
  .wd-obj { cursor: default; }
  .wd-x { opacity: 1; }
  .wd.lifted .wd-obj { transform: scale(1.03); box-shadow: 0 0 0 1px rgba(232, 200, 140, .4), 0 30px 50px -10px rgba(0, 0, 0, .9); }
  .wd.lifted { z-index: 40; }
  .hall-hero { padding-top: 0; }
  html[data-theme="hall"] body.sec-home .sheet:has(> .hall-hero, > .desk) { padding-left: 14px; padding-right: 14px; }
  .hall-hero .chips a { padding: 0 14px; }
  .hall-hero .chips b { font-size: 20px; }
}
@media (prefers-reduced-transparency: reduce) { html[data-theme="hall"] { --glass: none; --sheet-bg: rgba(20, 13, 9, .96); } .wd-obj { background: #160e09; } }

/* Today already says the date and the Hebrew date in its greeting, so the status line doesn't repeat them there */
html[data-theme="hall"] .shell-main:has(> .sheet > .hall-hero) .statusline [data-today], html[data-theme="hall"] .shell-main:has(> .sheet > .hall-hero) .statusline .he { display: none; }

/* ───────── 6.4.0: a little of the future in the old hall ─────────
   One cool accent, "captured moonlight" (--holo), used sparingly beside the candle gold: status dots,
   the corner marks on panels when you point at them, the instrument ring of the opening. */
html[data-theme="hall"] { --holo: #a6e9dd; --holo-dim: rgba(166, 233, 221, .55); }

/* the instrument line under Today's greeting: small real readings, each a link */
.sysline { flex: 1 1 100%; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 7px 16px; border-radius: 12px; background: rgba(14, 9, 6, .62); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sysline li { margin: 0; }
.sysline a { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 16px 0 0; margin-right: 16px; border-right: 1px solid rgba(232, 200, 140, .14); color: inherit; text-decoration: none; white-space: nowrap; }
.sysline li:last-child a, .sysline li:nth-last-child(2) a { border-right: 0; }
/* (6.14.0) the last item: choose what the line shows */
.sysline .sl-edit { margin-left: auto; }
.sysline .sl-edit a { gap: 7px; margin-right: 0; padding: 0 2px 0 10px; color: #a8997e; }
.sysline .sl-edit a:hover, .sysline .sl-edit a:focus-visible { color: var(--holo); }
.sysline .sl-edit .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.sysline .sl-edit-t { font: 500 12.5px/1 var(--f-body); }
.sysline.is-empty .sl-edit { margin-left: 0; }
.sysline.is-empty .sl-edit a { padding-left: 0; }
.sysline .k { font: 600 10.5px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: #a8997e; }
.sysline .v { font: 500 13px/1 var(--f-body); color: #efe6d2; font-variant-numeric: tabular-nums; }
.sysline a:hover .v { color: var(--holo); }
/* every dot is its reading's own colour (6.15.0, D-049; the .h-* classes in admin.css): all lit the same way, so the
   line reads as a row of instruments. A problem colours the value and its dot pulses; nothing is ever greyed out. */
.sysline .sd { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--c, #8a7d68);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c, #8a7d68) 22%, transparent), 0 0 9px color-mix(in srgb, var(--c, #8a7d68) 60%, transparent); }
.sysline a:hover .sd { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, #8a7d68) 35%, transparent), 0 0 12px color-mix(in srgb, var(--c, #8a7d68) 80%, transparent); }
.sysline .is-warn .v { color: #f0c072; } .sysline .is-bad .v { color: #f39a8a; }
html[data-fx="on"] .sysline .is-warn .sd, html[data-fx="on"] .sysline .is-bad .sd { animation: sd-breathe 2.4s ease-in-out infinite; }
@keyframes sd-breathe { 50% { opacity: .45; box-shadow: 0 0 2px color-mix(in srgb, var(--c, #8a7d68) 50%, transparent); } }
@media (max-width: 899px) { .sysline { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .sysline::-webkit-scrollbar { display: none; } }

/* panels read as instruments: short brighter marks where the hairline turns each corner (gold; moonlight when pointed at) */
.wd::before, html[data-theme="hall"] .sheet:not(:has(> .hall-hero, > .desk))::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; --tk: rgba(231, 201, 138, .75); --o: 20px; --l: 16px;
  background:
    linear-gradient(var(--tk), var(--tk)) left var(--o) top 0 / var(--l) 1px no-repeat, linear-gradient(var(--tk), var(--tk)) left 0 top var(--o) / 1px var(--l) no-repeat,
    linear-gradient(var(--tk), var(--tk)) right var(--o) top 0 / var(--l) 1px no-repeat, linear-gradient(var(--tk), var(--tk)) right 0 top var(--o) / 1px var(--l) no-repeat,
    linear-gradient(var(--tk), var(--tk)) left var(--o) bottom 0 / var(--l) 1px no-repeat, linear-gradient(var(--tk), var(--tk)) left 0 bottom var(--o) / 1px var(--l) no-repeat,
    linear-gradient(var(--tk), var(--tk)) right var(--o) bottom 0 / var(--l) 1px no-repeat, linear-gradient(var(--tk), var(--tk)) right 0 bottom var(--o) / 1px var(--l) no-repeat;
  transition: opacity .3s;
}
.wd:hover::before { --tk: var(--holo); }
html[data-theme="hall"] .sheet { position: relative; }
html[data-theme="hall"] .sheet:not(:has(> .hall-hero, > .desk))::after { --o: 26px; --l: 22px; --tk: rgba(231, 201, 138, .6); }

/* the section you're in: a thin line of moonlight down the side bar pill's leading edge */
html[data-theme="hall"] .rl.is-on .rl-pill::after { content: ""; position: absolute; left: -1px; top: 22%; bottom: 22%; width: 2px; border-radius: 2px; background: var(--holo); box-shadow: 0 0 10px var(--holo-dim); }

/* big figures: lining, tabular numerals everywhere they are read as numbers */
html[data-theme="hall"] .lcd-read .v, html[data-theme="hall"] .hall-hero .chips b, html[data-theme="hall"] .stat .v { font-variant-numeric: lining-nums tabular-nums; }

.hall-hero .tools { margin-left: auto; align-self: flex-end; }
/* the greeting stays crisp with the orrery turning behind it */
.hall-hero h1 { text-shadow: 0 0 2px rgba(8, 5, 3, .95), 0 2px 14px rgba(8, 5, 3, .8), 0 2px 34px rgba(0, 0, 0, .6); }
.hall-hero .chips b, .hall-hero .chips span, .hall-hero .date { text-shadow: 0 1px 10px rgba(8, 5, 3, .9); }

/* ───────── 6.5.0: a slight glow ─────────
   Ryan: "a SLIGHT bit more of glowing effects, especially on red and green text for displaying net worth and
   stuff". Figures glow faintly in their own colour (greens and reds a touch more), chart lines and bars carry
   a little light, and nothing else changes. All of it is one soft shadow in the text's own colour. */
html[data-theme="hall"] { --glow-a: .55; --fig-glow: 0 0 16px color-mix(in srgb, currentColor 30%, transparent), 0 0 2px color-mix(in srgb, currentColor 18%, transparent); --fig-glow-strong: 0 0 18px color-mix(in srgb, currentColor 50%, transparent), 0 0 3px color-mix(in srgb, currentColor 30%, transparent); }
html[data-theme="hall"] .lcd-read .v, html[data-theme="hall"] .stat .v, html[data-theme="hall"] .nw-big, html[data-theme="hall"] .hold-total b, html[data-theme="hall"] .hall-clock .t,
html[data-theme="hall"] .streak-n b, html[data-theme="hall"] .count-n b, html[data-theme="hall"] .vis-top b, html[data-theme="hall"] .big-line b { text-shadow: var(--fig-glow); }
html[data-theme="hall"] .pos, html[data-theme="hall"] .neg, html[data-theme="hall"] .up, html[data-theme="hall"] .down, html[data-theme="hall"] .nw-chg,
html[data-theme="hall"] .lcd-read.acc-b .v, html[data-theme="hall"] .lcd-read.acc-c .v, html[data-theme="hall"] .stat .v.pos, html[data-theme="hall"] .stat .v.neg,
html[data-theme="hall"] .lcd-read .n .up, html[data-theme="hall"] .lcd-read .n .down { text-shadow: var(--fig-glow-strong); }
html[data-theme="hall"] .hall-hero .chips b { text-shadow: 0 0 22px rgba(231, 201, 138, .45), 0 1px 10px rgba(8, 5, 3, .9); }
/* bars and lines carry a little light of their own */
html[data-theme="hall"] .gauge-fill { box-shadow: 0 0 12px color-mix(in srgb, var(--gauge-c, var(--accent)) 55%, transparent); }
html[data-theme="hall"] .chart polyline, html[data-theme="hall"] .chart path.line { filter: drop-shadow(0 0 5px color-mix(in srgb, currentColor 60%, transparent)); }
html[data-theme="hall"] .chart rect { filter: drop-shadow(0 0 4px color-mix(in srgb, currentColor 35%, transparent)); }
html[data-theme="hall"] .donut .slice, html[data-theme="hall"] .ring-v { filter: drop-shadow(0 0 5px color-mix(in srgb, currentColor 45%, transparent)); }
html[data-theme="hall"] .btn.primary { box-shadow: 0 0 0 1px rgba(255, 236, 200, .18) inset, 0 6px 26px -8px rgba(231, 201, 138, .65); }
html[data-theme="hall"] .tb.is-on .tb-pill, html[data-theme="hall"] .tabs .active { box-shadow: 0 0 22px -6px rgba(231, 201, 138, .7); }

/* ───────── 6.5.0: every box fits the size it's given ─────────
   Ryan: "audit all the boxes and optimize them for each size I could possibly reasonably want".
   On a big screen each box is a size container (named wd), so what's inside can ask how wide and how tall
   the box is. Charts, rings, dials, photos and the calendar grow and shrink with the box; lists tighten when
   the box is small and run in two columns when it is wide; a few lines step aside when there's no room.
   Width questions are asked of the box's inside (the container named wb), height questions of the whole box (wd).
   Units: cqw is the width of the box's inside (.wd-body), cqh the height of the whole box (.wd-obj).
   A box that is h rows tall is 72h - 16 px (2: 128, 3: 200, 4: 272, 5: 344, 6: 416, 7: 488).
   On a phone the boxes are as tall as what's in them, so none of this applies there. */
@media (min-width: 900px) {
  .wd-obj { container: wd / size; }
  @container wd (max-width: 250px) { .wd-h .wd-link { display: none; } .wd-plate { max-width: 100%; } }
  @container wd (max-width: 330px) { .wd-acts { gap: 6px; } .wd-plate { padding: 0 6px; } }

  /* boxes whose contents fill the box rather than run down it */
  .wd-body.box-networth, .wd-body.box-cashflow, .wd-body.box-visitors, .wd-body.box-streak, .wd-body.box-fitweek, .wd-body.box-sticky, .wd-body.box-weather { display: flex; flex-direction: column; }
  .wd-body.box-networth, .wd-body.box-cashflow, .wd-body.box-sticky, .wd-body.box-photo, .wd-body.box-onthisday, .wd-body.box-calendar { overflow: hidden; }
  .wd-body .chart-fit { flex: 1 1 200px; height: auto; min-height: 60px; }
  .wd-body > .legend { flex: none; }

  /* net worth */
  .box-networth .nw-top { flex: none; margin-bottom: 6px; gap: 6px 14px; }
  .box-networth .nw-big { font-size: clamp(24px, 9.5cqw, 44px); }
  @container wd (max-height: 300px) { .box-networth > .legend, .box-networth .nw-label { display: none; } }
  @container wd (max-height: 300px) and (max-width: 520px) { .box-networth .nw-range { display: none; } }
  @container wd (max-height: 230px) { .box-networth .nw-range { display: none; } .box-networth .nw-top { margin-bottom: 2px; } }
  /* money in and out, visitors */
  @container wd (max-height: 230px) { .box-cashflow > .legend { display: none; } }
  .box-visitors .vis-top { flex: none; }

  /* money snapshot: the two readings share the box, side by side when there's room */
  .box-money .ms { height: 100%; }
  .box-money .lcd-row { flex: 1 1 auto; min-height: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
  .box-money .lcd-read { justify-content: center; padding-block: 4px; }
  /* (6.17.0) as the box shrinks: first the net worth line goes, then the tiles' notes, then the month's bar keeps only its words */
  .box-money .lcd-read .l { font-size: 11px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .box-money .lcd-read .n { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @container wd (max-height: 250px) { .box-money .ms-all { display: none; } }
  @container wd (max-height: 215px) { .box-money .lcd-read { padding: 4px 12px; } .box-money .ms { gap: 6px; } }
  @container wd (max-height: 130px) { .box-money .ms-bar, .box-money .lcd-read .n { display: none; } }
  @container wd (max-width: 330px) { .box-money .lcd-read .n { display: none; } .box-money .ms-line { font-size: 11.5px; } .box-money .ms-line span:nth-child(2) { display: none; } }

  /* little readings (fitness, backups, storage, FF's brain): closer together, and the figure shrinks before it is cut off */
  .wd-body .stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .wd-body .stat .v { font-size: clamp(14px, 15cqi, var(--fs-4)); }
  .wd-body.box-fitness > .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 0; height: min(100%, 150px); }
  .box-fitness .stat { justify-content: center; }
  .box-fitness .stat .v { font-size: clamp(15px, 24cqi, 30px); }
  /* in a narrow box each reading is one line: what it is on the left, the figure on the right */
  @container wb (max-width: 300px) {
    .wd-body .stats, .wd-body.box-fitness > .stats { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(38px, auto); height: auto; align-content: start; }
    .wd-body .stat { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; }
    .wd-body .stat .v, .box-fitness .stat .v { font-size: 19px; }
    .wd-body .stat .n { display: none; }
  }
  @container wd (max-height: 210px) { .box-backups > p, .box-storage > p { display: none; } }

  /* calendar: the weeks share the height of the box */
  .box-calendar .cal { --rh: clamp(20px, calc((100cqh - 142px) / var(--weeks, 5)), 64px); }
  .box-calendar .cal-grid td { height: auto; padding: 0; }
  .box-calendar .cal-grid td a { display: grid; place-items: center; height: var(--rh); border-radius: 0; }
  .box-calendar .cal-grid td span { width: min(calc(var(--rh) - 4px), 40px); height: min(calc(var(--rh) - 4px), 40px); font-size: clamp(12.5px, calc(var(--rh) * .42), 19px); }
  .box-calendar .cal-grid td i { bottom: max(0px, calc(var(--rh) * .06 - 1px)); width: 5px; height: 5px; margin-left: -2.5px; }
  @container wd (max-height: 300px) { .box-calendar .cal-key { display: none; } .box-calendar .cal { --rh: clamp(20px, calc((100cqh - 114px) / var(--weeks, 5)), 64px); } }
  /* (6.17.0) a narrow calendar keeps its month on one line (the Hebrew month goes), so the last week isn't pushed out of the box */
  @container wd (max-width: 250px) { .box-calendar .cal-head { margin-bottom: 2px; } .box-calendar .cal-head b { font-size: 15px; white-space: nowrap; } .box-calendar .cal-head .he { display: none; }
    .box-calendar .cal-grid th { padding: 0; font-size: 11px; } .box-calendar .cal { --rh: clamp(18px, calc((100cqh - 108px) / var(--weeks, 5)), 64px); } }

  /* coming up: days side by side in a wide box */
  @container wb (min-width: 500px) { .soon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 26px; align-items: start; } }

  /* weather (6.12.0): what shows depends on the room the box has */
  .wd-body.box-weather { overflow: hidden; }
  .box-weather .wxb { height: 100%; min-height: 0; gap: clamp(5px, 2cqh, 12px); justify-content: space-between; }
  .box-weather .wxb-top { flex: none; }
  .box-weather .wxb-now .wx { width: clamp(38px, min(16cqh, 13cqw), 84px); height: auto; }   /* (6.17.0) capped by the width too, so the °F never runs into "Feels like" */
  .box-weather .wxb-temp { font-size: clamp(28px, 11cqh, 60px); }
  .box-weather .wxb-hours { flex: none; }
  .box-weather .wxb-hours .wx { width: clamp(20px, 6cqh, 30px); height: auto; }
  .box-weather .wxb-week { flex: 0 1 auto; min-height: 0; }
  .box-weather .wxb-week li { background: rgba(255, 236, 200, .05); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .1); }
  .box-weather .wxb-week li:first-child { box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .42); }
  .box-weather .wxb-week .wx { width: clamp(20px, 8cqh, 36px); height: auto; }
  .box-weather .wx-credit { flex: none; line-height: 1.3; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* columns too slim for "78° 55°" side by side: the low goes under the high, and today is named by its weekday */
  @container wb (max-width: 470px) {
    .box-weather .wxb-week li { grid-template-columns: auto; padding: 4px 1px; }
    .box-weather .wxb-long { display: none; } .box-weather .wxb-short { display: inline; }
  }
  /* a box four rows tall: everything a little closer so the week keeps its rain line */
  @container wd (max-height: 300px) {
    .box-weather .wxb { gap: 5px; }
    .box-weather .wxb-facts { gap: 2px 14px; line-height: 1.2; }
    .box-weather .wxb-facts dd { font-size: 13px; }
    .box-weather .wxb-text { font-size: 14px; }
    .box-weather .wxb-week { font-size: 12.5px; }
    .box-weather .wxb-week li { line-height: 1.22; padding: 3px 1px; }
    .box-weather .wxb-week .wx { width: 20px; }
  }
  /* not tall enough for the hours */
  @container wd (max-height: 400px) { .box-weather .wxb-hours { display: none; } }
  /* short: now and the week only */
  @container wd (max-height: 235px) { .box-weather .wxb-facts, .box-weather .wxb-week .wxb-r, .box-weather .wx-credit { display: none; } }
  /* narrow: the readings go under the temperature; four hours instead of eight */
  @container wb (max-width: 300px) {
    .box-weather .wxb-top { flex-direction: column; align-items: stretch; gap: 6px; }
    .box-weather .wxb-hours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .box-weather .wxb-hours li:nth-child(n + 5) { display: none; }
    .box-weather .wx-stale { display: none; }
    .box-weather .wxb-week .wxb-r { display: none; }
    .box-weather .wxb-week li { grid-template-columns: auto; }
  }
  @container wb (max-width: 300px) { @container wd (max-height: 400px) { .box-weather .wxb-facts { display: none; } } }
  /* tall and not wide: the week as rows, each day's range on a bar */
  @container wd (min-height: 470px) and (max-aspect-ratio: 11 / 10) {
    .box-weather .wxb-week { grid-template-columns: minmax(0, 1fr); gap: 3px; flex: 1 1 auto; align-content: space-evenly; }
    .box-weather .wxb-week li { display: grid; grid-template-columns: 3.3em 30px 2.6em 2.4em minmax(30px, 1fr) 2.4em; align-items: center; justify-items: start; gap: 8px; padding: 3px 12px; }
    .box-weather .wxb-week .wx { width: 26px; }
    .box-weather .wxb-week .wxb-bar { display: block; width: 100%; }
    .box-weather .wxb-week .wxb-d, .box-weather .wxb-week .wx, .box-weather .wxb-week .wxb-r { grid-column: auto; }
    .box-weather .wxb-long { display: inline; } .box-weather .wxb-short { display: none; }
    .box-weather .wxb-week .wxb-hi, .box-weather .wxb-week .wxb-lo, .box-weather .wxb-week .wxb-r { order: 0; display: block; }
    .box-weather .wxb-week .wxb-hi { justify-self: end; }
  }
  /* wide and short: now on the left, the week on the right */
  @container wd (min-aspect-ratio: 26 / 10) and (max-height: 300px) {
    .box-weather .wxb { flex-flow: row wrap; align-items: center; align-content: center; gap: 6px 22px; }
    .box-weather .wxb-top { flex: 1 1 300px; }
    .box-weather .wxb-week { flex: 1 1 320px; }
    .box-weather .wx-credit { flex: 1 0 100%; }
  }

  /* sun & moon */
  .wd-body.box-sky { display: flex; align-items: center; }
  .box-sky .sky-box { width: 100%; }
  .box-sky .moon { width: auto; height: clamp(44px, calc(100cqh - 112px), 150px); max-width: 38cqw; aspect-ratio: 1; }
  .box-sky .sky-name { font-size: clamp(16px, 5cqw, 28px); }
  @container wb (max-width: 200px) {
    .box-sky .sky-box { flex-direction: column; text-align: center; gap: 6px; }
    .box-sky .moon { height: clamp(40px, calc(100cqh - 156px), 120px); max-width: 80cqw; }
    .box-sky .sun-times { justify-content: center; margin-top: 4px; gap: 0 10px; font-size: 12.5px; }
    .box-sky .sun-times .wx { display: none; }
  }
  @container wd (max-width: 236px) and (max-height: 230px) { .box-sky .sky-box .small { display: none; } }
  @container wb (max-width: 300px) { .box-sky .sky-box { gap: 12px; } .box-sky .sun-times { gap: 0 10px; font-size: 12.5px; } }

  /* sticky note: the paper is the box */
  .box-sticky .sticky { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .box-sticky .sticky textarea { flex: 1 1 150px; min-height: 0; resize: none; }
  .box-sticky .sticky-foot { flex: none; }
  @container wd (max-height: 150px) { .box-sticky .sticky-foot { display: none; } .box-sticky .sticky textarea { padding: 6px 10px; } }

  /* waiting for you */
  @container wd ((max-width: 250px) or (max-height: 150px)) {
    .inbox-list { gap: 4px; }
    .inbox-list a { padding: 4px 6px; gap: 8px; font-size: 12.5px; line-height: 1.2; }
    .inbox-n { min-width: 22px; height: 22px; font-size: 12px; }
    .inbox-l { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  }
  @container wd (max-height: 150px) { .inbox-l { -webkit-line-clamp: 1; } .inbox-list a { padding: 3px 6px; } }
  @container wb (min-width: 480px) { .inbox-list { grid-template-columns: 1fr 1fr; } }

  /* where it went: the ring is as big as the box allows, the list sits beside it (or under it in a narrow box) */
  .wd-body.box-spending { display: flex; }
  .box-spending .donut-box { flex: 1; min-width: 0; flex-wrap: nowrap; }
  .box-spending .donut { width: auto; height: min(clamp(84px, calc(100cqh - 76px), 240px), 46cqw); aspect-ratio: 1; }
  .box-spending .donut-key { min-width: 0; max-width: 380px; }
  .box-spending .donut-key .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  @container wb (max-width: 300px) {
    .box-spending .donut-box { flex-direction: column; justify-content: center; gap: 10px; }
    .box-spending .donut { height: min(clamp(96px, calc(100cqh - 196px), 220px), 86cqw); }
    .box-spending .donut-key { flex: none; width: 100%; }
  }
  @container wd (max-width: 340px) and (max-height: 230px) { .box-spending .donut-key { display: none; } .box-spending .donut { height: min(calc(100cqh - 72px), 86cqw); } }

  /* accounts */
  .wd-body .acct-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wd-body .acct-name small { display: block; overflow: hidden; text-overflow: ellipsis; }
  @container wb (max-width: 300px) { .acct-list li { grid-template-columns: minmax(0, 1fr) auto; } .acct-list .spark { display: none; } }
  @container wb (min-width: 600px) { .acct-list { columns: 2; column-gap: 30px; } .acct-list li { break-inside: avoid; } }

  /* savings rate */
  .wd-body.box-savings { display: flex; align-items: center; }
  .box-savings .ring-row { width: 100%; }
  .box-savings .ring-row .ring { width: auto; height: min(clamp(60px, calc(100cqh - 84px), 190px), 40cqw); aspect-ratio: 1; }
  .box-savings .ring-row p { margin: 0 0 4px; }
  .box-savings .big-line { font-size: clamp(13.5px, 4.4cqw, 22px); line-height: 1.35; }
  @container wb (max-width: 200px) {
    .box-savings .ring-row { flex-direction: column; text-align: center; gap: 6px; }
    .box-savings .ring-row .ring { height: min(clamp(56px, calc(100cqh - 112px), 150px), 80cqw); }
    .box-savings .big-line { font-size: 13px; }
  }
  @container wd (max-width: 236px) and (max-height: 280px) { .box-savings .ring-row .faint { display: none; } }
  @container wd (max-width: 330px) and (max-height: 230px) { .box-savings .ring-row .faint { display: none; } }
  @container wd (max-width: 300px) { .box-savings .sv-note { display: none; } }

  /* stocks & crypto, renewals, countdown */
  .wd-body .renew-list > li { padding: 5px 0; }
  @container wb (max-width: 330px) { .hold-table td .faint.small { display: none; } .hold-total { margin-bottom: 4px; } }
  @container wb (min-width: 500px) { .renew-list, .box-notes > .list, .box-updates > .list, .box-devices > .list { columns: 2; column-gap: 30px; } .renew-list > li, .box-notes > .list > li, .box-updates > .list > li, .box-devices > .list > li { break-inside: avoid; } }
  @container wb (max-width: 200px) {
    .count-list li { gap: 8px; }
    .count-n { min-width: 44px; height: auto; min-height: 42px; padding: 4px 0; }
    .count-n b { font-size: 17px; }
    .count-list li > span:last-child { font-size: 12.5px; }
    .renew-list .date-chip { width: 34px; height: 34px; }
  }
  .wd-body .count-list li > span:last-child { min-width: 0; }
  @container wd (max-height: 150px) { .count-list small { display: none; } .count-list li > span:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } }
  @container wb (min-width: 480px) { .count-list { grid-template-columns: 1fr 1fr; gap: 10px 24px; } }

  /* goal progress and goal rings */
  @container wb (min-width: 500px) { .box-goals .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; } .box-goals .stack > * { margin: 0; } }
  .wd-body.box-rings { display: flex; align-items: center; }
  .box-rings .rings { width: 100%; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .box-rings .rings[data-one-row] { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
  .box-rings .rings .ring { width: 100%; max-width: 110px; height: auto; aspect-ratio: 1; }
  .box-rings .rings[data-one-row] .ring { max-width: clamp(44px, calc(100cqh - 122px), 190px); }
  .box-rings figcaption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.3; }
  @container wd (max-height: 230px) { .box-rings figcaption { -webkit-line-clamp: 1; } .box-rings .rings[data-one-row] .ring { max-width: clamp(44px, calc(100cqh - 104px), 190px); } }
  @container wd (max-aspect-ratio: 3 / 4) {
    .box-rings .rings[data-one-row] { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .box-rings .rings[data-one-row] .ring { max-width: clamp(44px, calc((100cqh - 70px) / var(--n, 3) - 52px), 170px); }
  }

  /* this week, fitness week: the bars take the height that's left */
  .box-streak .streak-top { flex: none; margin-bottom: 6px; }
  .box-fitweek > p { flex: none; margin: 0 0 6px; }
  .box-streak .week-bars, .box-fitweek .week-bars { flex: 1 1 120px; height: auto; min-height: 34px; }
  .wd-body .wb-bar { max-width: min(56px, 78%); }
  @container wd (max-height: 150px) { .box-streak .streak-top .small, .box-streak .wb-n { display: none; } .box-streak .streak-top { margin-bottom: 2px; } .box-streak .streak-n b { font-size: 17px; } }
  @container wd (max-height: 300px) { .box-fitweek .cal-key { display: none; } }

  /* photo frame and on this day: the picture is the box */
  .wd-body.box-photo, .wd-body.box-onthisday { display: flex; }
  .box-photo .frame { flex: 1; min-width: 0; min-height: 0; }
  .box-photo .frame-slide { aspect-ratio: auto; height: 100%; }
  .box-onthisday .otd { flex: 1; min-width: 0; min-height: 0; grid-template-columns: none; grid-template-rows: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .box-onthisday .otd-item { aspect-ratio: auto; min-height: 0; }
  .box-onthisday .otd-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @container wd (max-aspect-ratio: 1 / 1) { .box-onthisday .otd { grid-template-rows: none; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-auto-rows: minmax(0, 1fr); } }

  /* curiosity of the day: the words grow with the box */
  .wd-body.box-curiosity { display: flex; }
  .box-curiosity .curio { margin: auto 0; width: 100%; font-size: clamp(13px, min(7cqw, calc(100cqh * .085)), 26px); }
  @container wd (max-height: 150px) { .box-curiosity .curio { padding: 4px 10px; line-height: 1.25; font-size: 12.5px; } .box-curiosity .curio footer { margin-top: 2px; } }

  /* guestbook, music, connections, data sources: two columns in a wide box, tighter in a narrow one */
  @container wb (min-width: 500px) { .gb-mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 26px; align-items: start; } }
  /* music (6.12.0): the controls stay put, the list under them scrolls; a wide box puts range and views on one line */
  .wd-body.box-music { overflow: hidden; display: flex; flex-direction: column; }
  .box-music .mus { flex: 1 1 auto; min-height: 0; height: 100%; }
  .box-music .mus-body { overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(232, 200, 140, .25) transparent; padding-right: 2px; }
  .box-music .mus-seg { background: rgba(255, 236, 200, .07); }
  .box-music .mus-seg button[aria-pressed="true"] { background: linear-gradient(180deg, #e3c584, #b8924e); color: #1a1008; }
  .box-music .mus-top { background: linear-gradient(180deg, rgba(255, 236, 200, .07), rgba(255, 236, 200, .025)); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .1); }
  .box-music .mus-top:hover { background: linear-gradient(180deg, rgba(255, 236, 200, .11), rgba(255, 236, 200, .04)); }
  @container wb (min-width: 520px) {
    .box-music .mus-bar { flex-direction: row; align-items: center; gap: 14px; }
    .box-music .mus-tabs { flex: 1 1 auto; }
    .box-music .mus-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 22px; }
    .box-music .mus-tops { grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); }
    .box-music .mus-top.hero { grid-column: auto; flex-direction: column; text-align: center; }
    .box-music .mus-top.hero .mus-top-t { align-items: center; }
    .box-music .mus-top.hero img, .box-music .mus-top.hero .mus-ph { width: min(100%, 132px); }
  }
  @container wb (max-width: 280px) { .box-music .mus-tabs button { padding: 5px 1px 6px; font-size: 12px; } .box-music .mus-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .box-music .mus-faces { display: none; } }
  @container wd (max-height: 300px) { .box-music .mus-genres, .box-music .mus-faces, .box-music .mus-h { display: none; } .box-music .mus-top img, .box-music .mus-top .mus-ph { width: 56px; } .box-music .mus-top.hero img { width: 64px; } }
  @container wb (max-width: 330px) { .box-music .mus-row { flex-direction: column; align-items: flex-start; } .box-music .mus-stats .mt-n { font-size: 15px; } }
  @container wb (max-width: 260px) { .box-music .mus-tops { grid-template-columns: minmax(0, 1fr); } .box-music .mus-top:not(.hero) { flex-direction: row; text-align: left; } .box-music .mus-top:not(.hero) img { width: 52px; } .box-music .mus-top:not(.hero) .mus-top-t { align-items: flex-start; } }
  .wd-body .cx-mini { grid-template-columns: minmax(0, 1fr); }
  .wd-body .cx-mini a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wd-body .cx-mini .pill { flex: none; }
  @container wb (min-width: 480px) { .wd-body .cx-mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px 28px; } }
  @container wb (max-width: 300px) {
    .source-row { grid-template-columns: minmax(0, 1fr) auto; }
    .source-row > .pill:first-child, .source-row br, .source-row .small { display: none; }
    .source-row .when { font-size: 0; }
    .source-row .when .pill { font-size: 11px; }
  }
  @container wd (min-width: 716px) { .wd-body.box-sources { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 30px; align-content: start; } }

  /* computer meters: computers side by side, dials no bigger than they need to be */
  .wd-body.box-meters { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 12px 20px; align-content: start; }
  @container wd (min-aspect-ratio: 3 / 1) { .wd-body.box-meters { grid-template-columns: repeat(auto-fill, minmax(clamp(146px, calc((100cqh - 100px) * 2.2), 280px), 1fr)); } }
  @container wd (min-height: 400px) and (min-width: 480px) { .wd-body.box-meters { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
  .box-meters > p { grid-column: 1 / -1; }
  .box-meters .meter-dev + .meter-dev { margin-top: 0; padding-top: 0; border-top: 0; }
  .box-meters .meter-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 13px; }
  .box-meters .meter-name a { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .box-meters .dial { max-width: 132px; }
  .box-meters .dial-v { font-size: 17px; }
  .box-meters .meter-name .pill { font-size: 10.5px; }

  /* server & drives */
  @container wd (max-height: 210px) { .box-server .dr-foot { display: none; } }
  @container wb (min-width: 620px) { .box-server .drives { grid-template-columns: 1fr 1fr; gap: 12px 30px; } }
}
/* 6.6.0: the line on Today that says the photo folder is being read */
.autoread { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex-basis: 100%; margin: 8px 0 0; padding: 8px 14px; border-radius: 12px; color: #dccfb6; font-size: 14px; background: rgba(20, 13, 9, .6); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .16); }
.autoread a { color: #e7c98a; font-weight: 600; }

.autoread .sd { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #e8b04a; box-shadow: 0 0 8px rgba(232, 176, 74, .5); animation: ar-pulse 1.4s ease-in-out infinite; }
.autoread .sd.ok { background: var(--holo); box-shadow: 0 0 8px var(--holo-dim); animation: none; }
@keyframes ar-pulse { 50% { opacity: .35; } }

/* ── 6.7.0: easier to read ──
   The heading on Today stands straight on the room, sometimes on a moon shaft or a chandelier. A soft
   shadow gathers behind it (no edge, no box) so the date and the small words under the figures hold up;
   the small labels on the instrument line are a touch larger and lighter. (The faint text colour was
   also lifted at the top of this file: it was under the 4.5:1 that small print needs on these panels.) */
.hall-hero > div:first-child { position: relative; isolation: isolate; }
.hall-hero > div:first-child::before { content: ""; position: absolute; z-index: -1; inset: -34px -120px -30px -80px; pointer-events: none; background: radial-gradient(closest-side at 42% 55%, rgba(8, 5, 3, .6), rgba(8, 5, 3, .38) 58%, rgba(8, 5, 3, 0)); }
.hall-hero .date { text-shadow: 0 1px 10px rgba(0, 0, 0, .75); }
.hall-hero .chips b, .hall-hero .chips span { text-shadow: 0 1px 12px rgba(0, 0, 0, .65); }
.hall-hero .chips span { font-size: 13px; color: #cdc1aa; }
.sysline .k { font-size: 11px; color: #b7a98f; }
.sysline .v { font-size: 13.5px; }
@media (max-width: 700px) { .hall-hero > div:first-child::before { inset: -18px -14px -16px; } }

/* ── 6.8.0: the net worth chart in the Hall ── */
html[data-theme="hall"] .nw-range button { color: var(--text-dim); background: rgba(255, 236, 200, .04); box-shadow: inset -1px 0 0 rgba(232, 200, 140, .18); }
html[data-theme="hall"] .nw-range button:hover { color: #f3d79a; }
html[data-theme="hall"] .nw-range button.on { color: #1a1008; background: linear-gradient(180deg, #e3c584, #b8924e); }
html[data-theme="hall"] .worth .w-line { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--w-col) 60%, transparent)); }
html[data-theme="hall"] .worth-tip { background: rgba(20, 13, 9, .95); box-shadow: 0 0 0 1px rgba(232, 200, 140, .28), 0 10px 24px -8px #000; }
html[data-theme="hall"] .w-dot { stroke: #140d09; }
@media (min-width: 900px) {
  /* in its box on Today the chart takes whatever room the box has */
  .box-networth .worth { height: 100%; }
  .box-networth .worth-plot { min-height: 56px; }
  @container wd (max-height: 380px) { .box-networth .worth-note { display: none; } }
  @container wd (max-width: 440px) { .box-networth .nw-range button { padding: 4px 6px; } }
}
/* (6.14.0) the line chooser's sticky headings and foot match the window behind them */
html[data-theme="hall"] .line-dlg .le-sec h3, html[data-theme="hall"] .line-dlg .le-foot { background: rgb(25, 16, 11); }
/* (6.14.0) To do in the hall: rows of glass like the boxes, solid where things stack */
html[data-theme="hall"] .td-row, html[data-theme="hall"] .td-add, html[data-theme="hall"] .td-suggest summary, html[data-theme="hall"] .td-finished summary { background: rgba(28, 19, 13, .72); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-theme="hall"] .td-row:hover { background: rgba(40, 28, 18, .8); }
html[data-theme="hall"] .td-row.sel, html[data-theme="hall"] .td-add:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
html[data-theme="hall"] .td-row.done { background: rgba(28, 19, 13, .5); }
html[data-theme="hall"] .td-nav, html[data-theme="hall"] .td-detail { background: rgba(22, 15, 10, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html[data-theme="hall"] .tdd-steps, html[data-theme="hall"] .tdd-opt, html[data-theme="hall"] .tdd-notes textarea { background: rgba(255, 236, 200, .04); }
@media (max-width: 860px) { html[data-theme="hall"] .td-detail { background: rgb(24, 16, 11); } }

/* ── 6.15.0: Investments in the Hall: a dark terminal over the library (admin.css has the layout) ──
   Faint ruled lines and one sweep of light when it opens; the moonlight dot says it's live. No frosted glass. */
html[data-theme="hall"] { --inv-bg: rgb(13, 9, 7); --inv-panel: rgba(255, 236, 200, .035); --inv-up: #7fd8a0; --inv-down: #ef7d6b; }
html[data-theme="hall"] .inv-dlg { background:
    linear-gradient(rgba(232, 200, 140, .028) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(232, 200, 140, .028) 1px, transparent 1px) 0 0 / 32px 100%,
    radial-gradient(120% 90% at 50% 0%, rgb(24, 16, 11), rgb(11, 7, 5)); box-shadow: 0 0 0 1px rgba(232, 200, 140, .26), 0 0 60px -20px rgba(210, 176, 114, .35), 0 60px 140px rgba(0, 0, 0, .8); }
html[data-theme="hall"] .inv.framed .inv-bar { background: rgb(14, 9, 7); }
html[data-theme="hall"] .inv-fig, html[data-theme="hall"] .inv-chart, html[data-theme="hall"] .inv-mix, html[data-theme="hall"] .inv-hold, html[data-theme="hall"] .inv-picks, html[data-theme="hall"] .fx-stage, html[data-theme="hall"] .fx-side {
  background: linear-gradient(180deg, rgba(255, 236, 200, .045), rgba(255, 236, 200, .015)); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .13), inset 0 1px 0 rgba(255, 236, 200, .05); }
/* corner marks, like the boxes' */
html[data-theme="hall"] .inv-fig::before, html[data-theme="hall"] .inv-chart::before, html[data-theme="hall"] .inv-mix::before, html[data-theme="hall"] .inv-hold::before, html[data-theme="hall"] .inv-picks::before, html[data-theme="hall"] .fx-stage::before, html[data-theme="hall"] .fx-side::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none; opacity: .55;
  background: linear-gradient(#e7c98a, #e7c98a) 0 0 / 9px 1px no-repeat, linear-gradient(#e7c98a, #e7c98a) 0 0 / 1px 9px no-repeat,
    linear-gradient(#e7c98a, #e7c98a) 100% 100% / 9px 1px no-repeat, linear-gradient(#e7c98a, #e7c98a) 100% 100% / 1px 9px no-repeat; }
html[data-theme="hall"] .inv-fig .v { text-shadow: 0 0 18px rgba(232, 200, 140, .12); }
html[data-theme="hall"] .inv .up .v { text-shadow: 0 0 16px rgba(127, 216, 160, .35); }
html[data-theme="hall"] .inv .down .v { text-shadow: 0 0 16px rgba(239, 125, 107, .35); }
html[data-theme="hall"] .inv-table tbody tr:hover { background: rgba(232, 200, 140, .05); }
html[data-theme="hall"] .inv-dlg::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: repeating-linear-gradient(180deg, rgba(255, 236, 200, .012) 0 1px, transparent 1px 3px); }
html[data-fx="on"][data-theme="hall"] .inv-dlg.ready::before { content: ""; position: absolute; z-index: 9; left: 0; right: 0; top: 0; height: 120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(166, 233, 221, .07) 70%, rgba(166, 233, 221, .22) 98%, transparent); animation: inv-sweep 1.3s cubic-bezier(.5, 0, .3, 1) .1s both; }
@keyframes inv-sweep { from { transform: translateY(-130px); } to { transform: translateY(calc(100dvh + 10px)); opacity: 0; } }
html[data-theme="hall"] .inv-boot { color: #a8997e; }
html[data-theme="hall"] .inv-tick { border-top-color: rgba(232, 200, 140, .12); }
html[data-theme="hall"] .worth-open { background: rgba(20, 13, 9, .85); color: #e2c387; }
@media (min-width: 900px) {
  /* in its box: the line takes whatever room the box has, the tape runs under it; small boxes keep the figure and the line */
  .wd-body.box-holdings { display: flex; flex-direction: column; overflow: hidden; }
  .box-holdings .invb { flex: 1; min-height: 0; }
  .box-holdings .worth { min-height: 0; }
  .box-holdings .nw-top { flex: none; margin-bottom: 4px; gap: 6px 14px; }
  .box-holdings .nw-big { font-size: clamp(22px, 9cqw, 40px); }
  .box-holdings .worth-plot { min-height: 40px; }
  .box-holdings .worth-open, .box-networth .worth-open { display: none; }   /* the box's own link and ⤢ at the top do it (6.17.0: net worth too; the chip sat on the chart's last date) */
  @container wd (max-height: 380px) { .box-holdings .worth-note { display: none; } }
  @container wd (max-height: 300px) { .box-holdings .nw-label { display: none; } }
  @container wd (max-height: 300px) and (max-width: 520px) { .box-holdings .nw-range { display: none; } }
  @container wd (max-height: 230px) { .box-holdings .nw-range, .box-holdings .inv-tick { display: none; } }
  @container wd (max-width: 440px) { .box-holdings .nw-range button { padding: 4px 6px; } }
}

/* ── 6.15.0: every box can get really small (D-049) ──
   Ryan: "make it so every widget can get really small and scale gracefully". Any box goes down to 2 columns by
   1 row (HomeCards::DESK). Down to its old smallest size a box shows its own contents, tightening as it shrinks
   (the rules above). Smaller than that (2 rows or less, or 2 columns by 3 rows or less) it shows its one figure
   instead (.wd-glance, HomeCards::glance), with its reading's colour; at a single row that figure runs along one
   line and the name plate steps aside. The dial, the photos and the note pad have no figure: they just scale.
   On a phone the boxes stack at their natural height, so the figure never shows there. */
.wd-glance { display: none; }
@media (min-width: 900px) {
  .wd-glance .sd { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c, #8a7d68); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c, #8a7d68) 22%, transparent), 0 0 10px color-mix(in srgb, var(--c, #8a7d68) 60%, transparent); }
  .wd-glance .g-l { font: 600 10.5px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: #a8997e; white-space: nowrap; }
  .wd-glance .g-v { min-width: 0; color: #f3ead8; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wd-glance .g-s { min-width: 0; font-size: 12.5px; color: #b3a58c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wd-glance.is-none .g-v { font-family: var(--f-body) !important; font-size: 14px !important; color: #a8997e; }
  .wd-glance.is-up .g-s { color: #8fdca9; } .wd-glance.is-down .g-s, .wd-glance.is-bad .g-v { color: #f39a8a; } .wd-glance.is-warn .g-v { color: #f0c072; }

  @container wd (max-height: 150px) or ((max-width: 215px) and (max-height: 215px)) {
    .wd-body:has(+ .wd-glance) { display: none; }
    .wd-glance { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "d v" "d s"; align-content: center; column-gap: 10px; row-gap: 3px; flex: 1; min-height: 0; padding: 0 16px 12px; }
    .wd-glance .sd { grid-area: d; align-self: center; }
    .wd-glance .g-l { display: none; }
    .wd-glance .g-v { grid-area: v; font-family: var(--f-display); font-size: clamp(16px, min(11cqw, 26cqh), 30px); line-height: 1.1; }
    .wd-glance .g-s { grid-area: s; }
    .wd-h .wd-link { display: none; }
  }
  /* one row: no room for the name plate, so the figure says what it is; the × still comes on hover */
  @container wd (max-height: 80px) {
    .wd-h { position: absolute; z-index: 3; top: 0; right: 0; min-height: 0; padding: 4px 4px 0 0; pointer-events: none; }
    .wd-h .wd-acts { pointer-events: auto; }
    .wd-h .wd-plate { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
    .wd-h .wd-x { width: 22px; height: 22px; font-size: 15px; }
    .wd-glance { display: flex; align-items: center; gap: 9px; padding: 0 30px 0 16px; }
    .wd-glance .g-l { display: block; flex: none; }
    .wd-glance .g-v { flex: 0 1 auto; font-family: var(--f-body); font-size: clamp(13px, 28cqh, 17px); }
    .wd-glance .g-s { flex: 1 1 0; }
    .wd-body:not(:has(+ .wd-glance)) { padding: 6px 12px; }
  }
  /* one row and two columns: what it is above the figure */
  @container wd (max-height: 80px) and (max-width: 215px) {
    .wd-glance { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "d l" "d v"; align-content: center; column-gap: 9px; row-gap: 3px; padding: 0 26px 0 13px; }
    .wd-glance .sd { grid-area: d; align-self: center; }
    .wd-glance .g-l { grid-area: l; font-size: 9.5px; letter-spacing: .14em; overflow: hidden; text-overflow: ellipsis; }
    .wd-glance .g-v { grid-area: v; font-size: 14.5px; }
    .wd-glance .g-s { display: none; }
  }
  /* narrow (two columns): the boxes that keep their contents tighten up */
  @container wb (max-width: 200px) {
    .plan-rundown .btn { white-space: normal; text-align: left; height: auto; min-height: 34px; padding-top: 6px; padding-bottom: 6px; line-height: 1.25; }
    .plan-rundown .faint { display: none; }
    .box-music .mus-live { display: none; }
    .box-music .mus-tabs button { font-size: 11.5px; padding-left: 0; padding-right: 0; }
    .box-music .mus-seg button { padding: 4px 8px; }
    .week-bars .wb-d { font-size: 10px; letter-spacing: -.02em; }
    .week-bars { gap: 2px !important; }
    .box-backups .stat, .box-storage .stat { flex-direction: column; align-items: flex-start; gap: 2px; }
    .box-backups .stat .v, .box-storage .stat .v { font-size: 15px; white-space: normal; }
    .box-todo .td-add .btn { padding: 0 10px; }
    .box-todo .td-add-i { min-width: 0; }
  }
  /* the photo frame at its smallest: just the picture, smaller arrows */
  @container wd (max-height: 150px) { .box-photo .frame-slide figcaption { display: none; } .box-photo .frame-btn { width: 26px; height: 26px; font-size: 17px; } .wd-body.box-photo { padding: 0 10px 10px; } }
  @container wd (max-height: 80px) { .wd-body.box-photo { padding: 6px; } .box-photo .frame { height: 100%; border-radius: 10px; overflow: hidden; } }
}
/* ── the focus window in the Hall (6.15.1; rebuilt 6.16.0): a box drawn large keeps no glass of its own (the window
   is the glass); the drawer's front tab is the window's own dark so it joins the panel under it ── */
html[data-theme="hall"] { --inv-tab: rgb(21, 14, 10); }
html[data-theme="hall"] .fx .fx-obj { background: none; box-shadow: none; }
html[data-theme="hall"] .fx-stage::before, html[data-theme="hall"] .fx-side::before { z-index: 0; }
.fx .fx-obj, .fx-side > * { position: relative; z-index: 1; }
html[data-theme="hall"] .fx-title { color: #f6eedc; }
html[data-theme="hall"] .fx-fig dd { color: #f3ead8; text-shadow: 0 0 18px rgba(232, 200, 140, .1); }
html[data-theme="hall"] .fx-fig.up dd { color: var(--inv-up); text-shadow: 0 0 16px rgba(127, 216, 160, .3); }
html[data-theme="hall"] .fx-fig.down dd { color: var(--inv-down); text-shadow: 0 0 16px rgba(239, 125, 107, .3); }
html[data-theme="hall"] .fx-toast { background: rgba(20, 13, 9, .97); color: #efe6d2; }
html[data-theme="hall"] .fx-field input, html[data-theme="hall"] .fx-field textarea { background: rgba(8, 5, 3, .55); }
@media (min-width: 900px) {
  /* drawn large, a few boxes use the room: taller calendar rows, bigger covers and faces, bigger music figures */
  .fx .box-calendar .cal { --rh: clamp(40px, calc((100cqh - 150px) / var(--weeks, 5)), 118px); }
  .fx .box-music .mus-top img, .fx .box-music .mus-top .mus-ph { max-width: 230px; }
  .fx .box-music .mus-top.hero img, .fx .box-music .mus-top.hero .mus-ph { width: min(100%, 210px); }
  .fx .box-music .mus-stats .mt-n { font-size: 24px; }
  .fx .box-music .mus-faces { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .fx .box-music .mus-faces img, .fx .box-music .mus-faces .mus-ph { max-width: 84px; }
  .fx .box-spending .donut { height: min(calc(100cqh - 70px), 44cqw, 420px); }
  .fx .box-spending .donut-box { gap: 34px; }
  .fx .box-spending .donut-key { gap: 9px; font-size: 15px; }
  .fx .box-savings .ring-row { gap: 34px; justify-content: center; }
  .fx .box-savings .ring-row .ring { height: min(62cqh, 40cqw, 340px); }
  .fx .box-savings .big-line { font-size: clamp(18px, 3.4cqw, 28px); }
  .fx .box-savings .ring-row .small { font-size: 15px; }
  .fx .box-money .ms-line { font-size: 15px; } .fx .box-money .ms-bar { height: 9px; border-radius: 5px; } .fx .box-money .ms-all { display: none; }
  .fx .wd-body.box-fitness > .stats { height: min(100%, 230px); gap: 12px; }
  .fx .box-fitness .stat .v { font-size: 40px; }
}

/* ── 6.16.0: the clock beside the greeting ──
   Ryan: "fit the clock somewhere up in the free space above". The room's dial, the time and the next sunrise or
   sunset sit to the right of the greeting, with the Desktop's two buttons under the time. A click opens the Clock
   large (timer, stopwatch, the day). On a phone there is no room (and the phone has a clock), so only the buttons show. */
.hall-hero > div:first-child { flex: 1 1 420px; min-width: 0; }
.hero-side { display: flex; align-items: center; gap: 22px; margin-left: auto; align-self: flex-end; }
.hero-clock { display: block; flex: none; width: 138px; height: 138px; border-radius: 50%; outline-offset: 4px; transition: transform .35s cubic-bezier(.2, .9, .25, 1.1), filter .3s; }
.hero-clock:hover { transform: scale(1.03); filter: drop-shadow(0 0 18px rgba(231, 201, 138, .35)); }
.hero-clock .dial { display: block; width: 100%; height: 100%; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .6)); }
.hero-clock .dial .ticks line { stroke: #d2b072; stroke-opacity: .5; stroke-width: 1; }
.hero-clock .dial .ticks line.b { stroke-opacity: .95; stroke-width: 2; }
.hero-clock .dial .nums text { font: 400 17px/1 var(--f-display); fill: #efe6d2; text-anchor: middle; letter-spacing: .02em; }
.hero-clock .dial .hh, .hero-clock .dial .mh { stroke: #f1e3bf; stroke-linecap: round; }
.hero-clock .dial .hh { stroke-width: 5; } .hero-clock .dial .mh { stroke-width: 3; }
.hero-clock .dial .sh { stroke: #d98a5c; stroke-width: 1.2; stroke-linecap: round; }
.hero-read { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.hc-t { font: 400 clamp(38px, 3.6vw, 52px)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; color: #f6eedc; text-decoration: none; text-shadow: 0 0 2px rgba(8, 5, 3, .95), 0 2px 14px rgba(8, 5, 3, .8); }
.hc-t small { margin-left: .35em; font: 600 .3em/1 var(--f-body); letter-spacing: .1em; color: #d2b072; }
.hc-s { font-size: 13px; font-weight: 500; color: #e4d9c1; text-shadow: 0 0 2px rgba(8, 5, 3, .95), 0 1px 10px rgba(8, 5, 3, .95); }
.hero-read .tools { margin: 9px 0 0; align-self: flex-start; }
.hall-btn .sm { display: none; }
/* on a phone: one row under the greeting — a small dial, the time and the sun's next turn on the left (a press
   opens the Clock large, with its timer and stopwatch), the Desktop's two buttons on the right */
@media (max-width: 899px) {
  .hero-side { width: 100%; gap: 12px; align-self: auto; }
  .hero-clock { width: 54px; height: 54px; }
  .hero-clock:hover { transform: none; filter: none; }
  .hero-clock .dial .nums { display: none; }
  .hero-clock .dial .ticks line { stroke-width: 2; } .hero-clock .dial .ticks line.b { stroke-width: 4; }
  .hero-clock .dial .hh { stroke-width: 8; } .hero-clock .dial .mh { stroke-width: 5; } .hero-clock .dial .sh { stroke-width: 2.5; }
  .hero-read { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 10px; }
  .hc-t { grid-column: 1; align-self: end; font-size: 28px; }
  .hc-s { grid-column: 1; align-self: start; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hc-t:only-of-type { grid-row: 1 / span 2; align-self: center; }
  .hero-read .tools { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
  .hero-read .hall-btn { min-height: 44px; }
}
@media (max-width: 480px) { .hero-read .hall-btn .lg { display: none; } .hero-read .hall-btn .sm { display: inline; } }
