/* H/Suite day walk (/day/). Lifted from the approved design reference (design-reference.dc.html), classes renamed
   hs- to dw-. Fonts and the alpha bar come from site.css.
   Without JavaScript the page is a readable scroll in the order of the day; each part paints its own light.
   With JavaScript (html.dw-js) the body is the stage: one view at a time, the light on <body>, nothing scrolls on a desktop. */

/* ------------------------------------------------ the light of the day: one ground per time of day */
.dw, html:not(.dw-js) .dw-sec[data-light] {
  --g: #E3E5DF; --ink: #0D1814; --mut: #46524C; --acc: #0A5C3E; --onacc: #FFFFFF;
  --line: rgba(13, 24, 20, .17); --tbl: #D3D7CE; --card: #EEF0EA; --sh: rgba(13, 24, 20, .4);
}
.dw[data-light="night"], html:not(.dw-js) .dw-sec[data-light="night"] {
  --g: #0B1512; --ink: #EAEDE7; --mut: #A4B1AA; --acc: #8FD9B4; --onacc: #0B1512;
  --line: rgba(234, 237, 231, .2); --tbl: #13211C; --card: #182822; --sh: rgba(0, 0, 0, .65);
}
.dw[data-light="dawn"], html:not(.dw-js) .dw-sec[data-light="dawn"] {
  --g: #1C2D27; --ink: #EEF0EA; --mut: #AEBBB3; --acc: #9ADFBC; --onacc: #0B1512;
  --line: rgba(238, 240, 234, .2); --tbl: #253932; --card: #2A4038; --sh: rgba(0, 0, 0, .5);
}
.dw[data-light="noon"], html:not(.dw-js) .dw-sec[data-light="noon"] { --g: #EAECE6; --tbl: #DADDD5; --card: #F4F5F0; }
.dw[data-light="late"], html:not(.dw-js) .dw-sec[data-light="late"] { --g: #E7E2D6; --mut: #4A4F45; --tbl: #D8D2C3; --card: #F1EDE3; }
.dw[data-light="dusk"], html:not(.dw-js) .dw-sec[data-light="dusk"] {
  --g: #1A2420; --ink: #EDEBE4; --mut: #B0B4A9; --acc: #E0B872; --onacc: #1A2420;
  --line: rgba(237, 235, 228, .2); --tbl: #232F2A; --card: #27352F; --sh: rgba(0, 0, 0, .55);
}
html.dw-page { background: #0B1512; }
body.dw {
  background: var(--g); color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  transition: background-color .9s ease, color .5s ease; display: block;
}
html:not(.dw-js) .dw-sec { background: var(--g); color: var(--ink); }
.dw a { color: inherit; }
.dw a:hover { color: inherit; }
.dw button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.dw button:focus-visible, .dw a:focus-visible, .dw input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.dw .skip { background: var(--ink); color: var(--g); }
.dw ul, .dw ol { list-style: none; margin: 0; padding: 0; }
.dw h1, .dw h2, .dw h3, .dw p { margin: 0; }
.dw svg { flex: none; }
.dw .alpha-bar { position: relative; z-index: 61; color: #0D1814; font-size: 13px; }
.dw .alpha-bar .wrap { max-width: none; padding: 4px 28px; }
.dw-ml { font: 500 10.5px/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; color: var(--mut); }
.dw-sl { color: var(--acc); }
.dw-fine { margin: 0; font-size: 13px; line-height: 1.45; color: var(--mut); }
.dw-fine a { color: var(--ink); }

/* ------------------------------------------------ top bar: brand, ask, promises, language, demo */
.dw-top { display: flex; align-items: center; gap: 20px; padding: 12px 28px; border-bottom: 1px solid var(--line); position: relative; z-index: 60; background: var(--g); transition: background-color .9s ease; }
.dw-brand { display: flex; align-items: baseline; gap: 12px; min-height: 44px; align-self: center; padding-top: 10px; }
.dw-brand-w { font: 600 24px/1 "Inter Tight", Inter, sans-serif; letter-spacing: -.02em; text-decoration: none; }
.dw-brand-s { font: 500 11.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .04em; color: var(--mut); text-decoration: none; }
.dw .dw-brand-s:hover { color: var(--ink); text-decoration: underline; }
.dw-ask { flex: 1; min-width: 0; max-width: 560px; margin: 0 auto; display: none; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); transition: background-color .9s ease; }
.dw-js .dw-ask { display: flex; }
.dw-ask:focus-within { outline: 2px solid var(--acc); outline-offset: 1px; }
.dw-ask input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font: inherit; font-size: 15px; color: inherit; outline: none; }
.dw .dw-ask input:focus-visible { outline: none; }
.dw-ask input::placeholder { color: var(--mut); opacity: 1; }
.dw .dw-ask-go { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 7px; background: var(--ink); color: var(--g); font-size: 13px; font-weight: 600; white-space: nowrap; }
.dw-top-r { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.dw-js .dw-top-r { margin-left: 0; }
.dw .dw-prom { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border-radius: 8px; }
.dw-js .dw .dw-prom { display: flex; }
.dw-prom-m { display: flex; gap: 3px; font: 600 21px/1 "Inter Tight", Inter, sans-serif; }
.dw-pm { color: var(--mut); opacity: .4; transition: color .4s ease, opacity .4s ease; }
.dw-pm.on { color: var(--acc); opacity: 1; }
.dw-prom-t { font: 500 11px/1.25 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); }
.dw-lang { display: flex; align-items: center; gap: 2px; font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; }
.dw-lang > * { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 44px; padding: 0 4px; border-radius: 7px; text-decoration: none; }
.dw-lang span { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.dw-lang a { color: var(--mut); }
.dw .dw-lang a:hover { color: var(--ink); }
.dw .dw-demo { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 9px; background: var(--acc); color: var(--onacc); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .9s ease; }
.dw .dw-demo:hover { color: var(--onacc); }

/* ------------------------------------------------ shared parts of a view */
.dw-main { position: relative; }
.dw-kicker { font: 500 11.5px/1.45 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; color: var(--mut); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.dw-kicker.dw-two { display: grid; gap: 3px; }
.dw-k1 { color: var(--ink); }
.dw-k2 { font-size: 10.5px; letter-spacing: .09em; }
.dw-clock { font: 600 clamp(60px, 14vh, 150px)/.86 "Inter Tight", Inter, sans-serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin: 4px 0 2px -4px; }
.dw-clock, .dw-clock time { display: flex; align-items: baseline; }
.dw-colon { color: var(--acc); padding: 0 .015em; transform: translateY(-.07em); transition: color .9s ease; }
.dw-clock.dw-mod { font-size: clamp(42px, 9.5vh, 92px); letter-spacing: -.04em; }
.dw-clock.dw-mod .dw-colon { transform: none; }
.dw-title { font: 600 clamp(25px, 3.7vh, 36px)/1.08 "Inter Tight", Inter, sans-serif; letter-spacing: -.02em; text-wrap: balance; }
.dw-body { font-size: 16.5px; line-height: 1.5; max-width: 46ch; text-wrap: pretty; }
.dw-said { display: grid; gap: 6px; }
.dw-said-q { font: 500 23px/1.2 "Inter Tight", Inter, sans-serif; letter-spacing: -.01em; }
.dw-said-a { font-size: 15px; line-height: 1.45; color: var(--mut); }
.dw-said-a b { font: 500 10.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; margin-right: 8px; }
.dw-ans { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.dw-ans-q { font: 600 16px/1.3 "Inter Tight", Inter, sans-serif; margin-top: 3px; }
.dw-ans-a { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; }

.dw-info { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.dw-info:empty { display: none; }
.dw-chore { display: flex; flex-direction: column; gap: 3px; }
.dw-chore-t { font: 500 17px/1.3 "Inter Tight", Inter, sans-serif; letter-spacing: -.005em; }
.dw-x.struck { color: var(--mut); background: linear-gradient(var(--acc), var(--acc)) no-repeat 0 56% / 100% 2px; }
.dw-x.struck.draw { animation: dw-strike .8s .2s cubic-bezier(.3, .7, .2, 1) both; }
.dw-shows { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.dw-pv { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13.5px; color: var(--mut); }
.dw-pv-s { font: 600 16px/1 "Inter Tight", Inter, sans-serif; color: var(--mut); opacity: .45; transition: color .4s ease, opacity .4s ease; }
.dw-pv.on { color: var(--ink); }
.dw-pv.on .dw-pv-s { color: var(--acc); opacity: 1; }
.dw-nav { display: flex; align-items: center; gap: 10px; }
.dw .dw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 9px; font: 600 15px/1.2 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.dw .dw-btn.pri { background: var(--acc); color: var(--onacc); transition: background-color .9s ease; }
.dw .dw-btn.pri:hover { color: var(--onacc); }
.dw .dw-btn.gho { border: 1px solid var(--line); }
.dw .dw-btn.sq { padding: 0; width: 48px; }
.dw-count { margin-left: auto; display: flex; flex-direction: column; gap: 2px; font: 500 11px/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; color: var(--mut); text-align: right; text-transform: uppercase; white-space: nowrap; }

.dw-table { position: relative; min-height: 0; border-radius: 16px; background: var(--tbl); transition: background-color .9s ease; display: flex; align-items: center; justify-content: center; padding: 26px; }
.dw-shot { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; cursor: zoom-in; }
.dw-door .dw-shot { cursor: pointer; }
.dw-shot picture { display: contents; }
.dw-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 9px; box-shadow: 0 0 0 1px rgba(13, 24, 20, .16), 0 22px 44px -20px var(--sh); }
.dw-img.ph { border-radius: 30px; box-shadow: 0 0 0 7px #0D1814, 0 0 0 8px rgba(255, 255, 255, .16), 0 30px 60px -24px var(--sh); }
.dw-zoomtag { position: absolute; right: 12px; top: 12px; display: none; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--g); color: var(--ink); font: 500 10.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity .2s ease, background-color .9s ease; }
.dw-js .dw-zoomtag { display: inline-flex; }
.dw-table:hover .dw-zoomtag, .dw-shot:focus-visible + .dw-zoomtag { opacity: 1; }
.dw-under { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.dw-beats { display: flex; flex-wrap: wrap; gap: 6px; }
.dw .dw-beat { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--mut); white-space: nowrap; }
.dw-beat b { font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; }
.dw .dw-beat[aria-pressed="true"] { background: var(--ink); color: var(--g); border-color: var(--ink); }
.dw-credit { font: 500 10.5px/1.45 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); text-align: right; max-width: 50ch; }
.dw-stepname { font: 500 11px/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; color: var(--mut); }
.dw-stepname b { color: var(--acc); margin-right: 6px; }

/* ------------------------------------------------ the door */
.dw-door-h { margin: 0; font: 600 clamp(42px, 8.4vh, 84px)/.98 "Inter Tight", Inter, sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.dw-door-p { font-size: 18px; line-height: 1.5; max-width: 60ch; text-wrap: pretty; }
.dw-walks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dw-walk { display: flex; flex-direction: column; gap: 5px; height: 100%; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); min-height: 44px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.dw-walk:hover { border-color: var(--acc); transform: translateY(-2px); }
.dw-walk-n { font: 500 11px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.dw-walk-t { font: 600 19px/1.15 "Inter Tight", Inter, sans-serif; letter-spacing: -.01em; }
.dw-walk-d { font-size: 13.5px; line-height: 1.4; color: var(--mut); }
.dw-walk-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.dw-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.dw-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.dw-chip:hover { border-color: var(--acc); }
.dw-door-r .dw-credit { max-width: 32ch; }

/* ------------------------------------------------ 17:30, the list */
.dw-list-h { font-size: clamp(30px, 5.4vh, 52px); letter-spacing: -.03em; line-height: 1; }
.dw-chores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.dw-cr { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: baseline; min-height: 44px; height: 100%; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.35; text-decoration: none; }
.dw-cr-t { font: 500 11.5px/1.5 "JetBrains Mono", ui-monospace, monospace; color: var(--acc); }
.dw-cr:hover .dw-cr-x { color: var(--acc); }
.dw-cr .dw-x.struck { background-size: 100% 1.5px; }
.dw-pq { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dw-pql { border-top: 1px solid var(--line); }
.dw-pr-s { font: 600 24px/1 "Inter Tight", Inter, sans-serif; color: var(--mut); opacity: .4; }
.dw-pq.on .dw-pr-s { color: var(--acc); opacity: 1; }
.dw-pr-t { font: 600 16.5px/1.25 "Inter Tight", Inter, sans-serif; }
.dw-pr-d { font-size: 13.5px; line-height: 1.4; color: var(--mut); margin-top: 2px; }
.dw-js .dw-list .dw-pr-d { display: none; }
.dw-pr-w { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.dw-pf { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font: 500 11.5px/1 "JetBrains Mono", ui-monospace, monospace; text-decoration: none; }
.dw .dw-pf:hover { border-color: var(--acc); color: var(--acc); }
.dw-js .dw-list .dw-pf:nth-of-type(n+4) { display: none; }
.dw-cta { margin-top: auto; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.dw-cta h3 { font: 600 22px/1.15 "Inter Tight", Inter, sans-serif; letter-spacing: -.015em; }
.dw-cta p { font-size: 14.5px; color: var(--mut); }
.dw-cta-b { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------ the index (a section without JavaScript, a panel with it) */
.dw-p-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dw-p-head h2 { font: 600 20px/1.2 "Inter Tight", Inter, sans-serif; letter-spacing: -.01em; }
.dw-idx-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; }
.dw-idx-g h3, .dw-qa h3 { padding: 0 8px 4px; }
.dw-il { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: baseline; width: 100%; min-height: 30px; padding: 4px 8px; border-radius: 8px; font-size: 14px; line-height: 1.35; text-decoration: none; }
.dw-site { display: flex; }
.dw-il:hover, .dw-kw:hover { background: color-mix(in srgb, var(--acc) 11%, transparent); }
.dw-il-t { font: 500 11.5px/1.5 "JetBrains Mono", ui-monospace, monospace; color: var(--acc); }
.dw-kws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.dw-kw { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 34px; padding: 5px 8px; border-radius: 8px; font-size: 14px; text-decoration: none; }
.dw-kw-t { font: 500 10.5px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--mut); }
.dw-site-h { margin-top: 16px; }
.dw-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.dw-idx-g .dw-fine { padding: 12px 8px 0; }
.dw-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; margin-bottom: 28px; }
.dw-q { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.dw-q-q { font: 600 16px/1.3 "Inter Tight", Inter, sans-serif; }
.dw-q-a { font-size: 14px; line-height: 1.45; color: var(--mut); margin-top: 3px; }
.dw-q-go { display: inline-flex; align-items: center; min-height: 32px; font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.dw-js .dw-qa { display: none; }

/* ------------------------------------------------ the day line */
.dw-line { padding: 6px 28px 12px; border-top: 1px solid var(--line); position: relative; z-index: 5; background: var(--g); transition: background-color .9s ease; }
.dw-line-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.dw-tours { display: none; flex-wrap: wrap; align-items: center; gap: 6px; }
.dw-js .dw-tours { display: flex; }
.dw-tour, .dw-idx { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; white-space: nowrap; text-decoration: none; }
.dw-tour { color: var(--mut); }
.dw .dw-tour:hover { color: var(--mut); }
.dw-tour b { font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; }
.dw .dw-tour[aria-pressed="true"] { background: var(--ink); color: var(--g); border-color: var(--ink); }
.dw-idx { margin-left: auto; }
.dw-idx:hover, .dw-tour:hover { border-color: var(--acc); }
.dw-arc { position: relative; height: 84px; margin-top: 2px; }
.dw-arc-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.dw-arc-svg path { fill: none; vector-effect: non-scaling-stroke; }
.dw-arc-h { stroke: var(--line); stroke-width: 1; }
.dw-arc-d { stroke: var(--mut); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 2 4; }
.dw-arc-done { stroke: var(--acc); stroke-width: 2; stroke-linecap: round; }
.dw-arc-grp { position: absolute; left: 79%; top: 22px; font: 500 9.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.dw-pts { position: absolute; inset: 0; }
.dw-pt { position: absolute; top: 0; height: 100%; display: block; text-decoration: none; }
.dw-dm { position: absolute; left: 50%; top: var(--y); width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); border: 1.5px solid var(--ink); background: var(--g); transition: width .3s ease, height .3s ease, background-color .5s ease, border-color .5s ease, box-shadow .3s ease; }
.dw-pt.seen .dw-dm { background: var(--ink); }
.dw-pt[aria-current] .dw-dm { width: 15px; height: 15px; background: var(--acc); border-color: var(--acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 24%, transparent); }
.dw-pt.dim .dw-dm { width: 6px; height: 6px; opacity: .6; }
.dw-pt.dim[aria-current] .dw-dm { width: 15px; height: 15px; opacity: 1; }
.dw-pt:hover .dw-dm { border-color: var(--acc); }
.dw-dl { position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .02em; color: var(--mut); white-space: nowrap; }
.dw-pt.dim .dw-dl { opacity: .72; }
.dw-pt[aria-current] .dw-dl { color: var(--ink); font-weight: 600; opacity: 1; }
.dw-pt:hover .dw-dl { color: var(--ink); }

/* ------------------------------------------------ panels: the ask list, promises, index, the enlarged screen */
.dw-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(6, 12, 10, .46); }
.dw-scrim[hidden] { display: none; }
.dw-pop { position: fixed; z-index: 62; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); padding: 16px; animation: dw-pop .22s ease both; overflow: auto; }
.dw-pop[hidden] { display: none; }
.dw-p-ask { left: 0; right: 0; margin: 0 auto; width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 110px); }
dialog.dw-dlg { position: fixed; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); max-height: calc(100vh - 96px); overflow: auto; }
dialog.dw-dlg[open] { animation: dw-pop .22s ease both; }
dialog.dw-dlg::backdrop { background: rgba(6, 12, 10, .46); }
.dw-dlg-in { padding: 16px; }
.dw-p-prom { top: 74px; right: 28px; left: auto; width: min(500px, calc(100% - 32px)); }
dialog.dw-p-idx { top: 74px; left: 0; right: 0; margin: 0 auto; width: min(1120px, calc(100% - 32px)); }
.dw-p-prom .dw-pq { grid-template-columns: 22px minmax(0, 1fr); padding: 10px 0; }
.dw-x-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; flex: none; }
.dw .dw-x-btn:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); }
.dw-res-list { display: grid; }
.dw-res { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: start; width: 100%; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.dw-res.stay { cursor: default; }
.dw-res:hover:not(.stay), .dw-res[aria-selected="true"] { background: color-mix(in srgb, var(--acc) 11%, transparent); }
.dw-res[aria-selected="true"] { outline: 2px solid var(--acc); outline-offset: -2px; }
.dw-res-t { font: 500 13px/1.5 "JetBrains Mono", ui-monospace, monospace; color: var(--acc); }
.dw-res-q { display: block; font: 600 16px/1.3 "Inter Tight", Inter, sans-serif; }
.dw-res-a { display: block; font-size: 14px; line-height: 1.45; color: var(--mut); margin-top: 3px; }
.dw-res-go { font: 500 11px/1.9 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.dw-res-list.sugs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
.dw-res.sug { display: flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 9px; font-size: 14.5px; }
.dw-p-label { padding: 2px 12px 6px; }
.dw-p-none { padding: 4px 12px 10px; font-size: 14.5px; color: var(--ink); }
.dw-p-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.dw-p-foot .dw-fine { flex: 1 1 320px; }
.dw .dw-lb { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13.5px; font-weight: 600; color: var(--acc); }
dialog.dw-zoom { position: fixed; inset: 20px 24px; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #EAEDE7; overflow: hidden; cursor: zoom-out; }
dialog.dw-zoom[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
dialog.dw-zoom::backdrop { background: rgba(6, 12, 10, .86); }
.dw-zoom picture { display: contents; }
.dw-zoom img { display: block; max-width: 100%; max-height: calc(100% - 64px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px #000; animation: dw-pop .25s ease both; }
.dw-zoom-b { display: flex; align-items: center; gap: 16px; cursor: default; }
.dw-zoom-b .dw-credit { color: #C9D1CB; text-align: left; max-width: none; }
.dw .dw-zoom-b .dw-btn { border: 1px solid rgba(234, 237, 231, .4); color: #EAEDE7; min-height: 44px; }

/* ------------------------------------------------ motion */
@keyframes dw-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dw-shot-in { from { opacity: 0; transform: translateX(26px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dw-strike { from { background-size: 0% 2px; } to { background-size: 100% 2px; } }
@keyframes dw-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dw-enter .dw-head, .dw-enter .dw-step.on .dw-say, .dw-enter .dw-ans, .dw-enter.dw-door .dw-door-l, .dw-enter.dw-list .dw-list-l, .dw-enter.dw-list .dw-list-r { animation: dw-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.dw-enter .dw-step.on .dw-img, .dw-enter.dw-door .dw-img { animation: dw-shot-in .55s .05s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .dw, .dw *, .dw *::backdrop { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------ without JavaScript: the day as a page that scrolls */
html:not(.dw-js) .dw-top { flex-wrap: wrap; }
html:not(.dw-js) .dw-sec { padding: 40px 28px; border-bottom: 1px solid var(--line); }
html:not(.dw-js) .dw-door, html:not(.dw-js) .dw-list { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 48px; }
html:not(.dw-js) .dw-door-l, html:not(.dw-js) .dw-list-l, html:not(.dw-js) .dw-list-r { display: flex; flex-direction: column; gap: 22px; }
html:not(.dw-js) .dw-door-r { display: flex; flex-direction: column; gap: 10px; }
html:not(.dw-js) .dw-door-r .dw-table { height: 560px; }
html:not(.dw-js) .dw-stop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 1100px; }
html:not(.dw-js) .dw-head { display: flex; flex-direction: column; gap: 12px; }
html:not(.dw-js) .dw-clock { font-size: 96px; }
html:not(.dw-js) .dw-clock.dw-mod { font-size: 64px; }
html:not(.dw-js) .dw-step { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 12px 32px; align-items: start; }
html:not(.dw-js) .dw-fig { display: flex; flex-direction: column; gap: 8px; }
html:not(.dw-js) .dw-fig .dw-table { max-height: 620px; }
html:not(.dw-js) .dw-fig .dw-shot { height: auto; }
html:not(.dw-js) .dw-fig .dw-img { max-height: 560px; }
html:not(.dw-js) .dw-credit { text-align: left; }
html:not(.dw-js) .dw-say { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
html:not(.dw-js) .dw-info { max-width: 60ch; }
html:not(.dw-js) .dw-index { padding: 40px 28px; background: var(--card); }
html:not(.dw-js) .dw-index .dw-p-head h2 { font-size: 28px; }
html:not(.dw-js) .dw-line { position: static; }
html:not(.dw-js) .dw-stepname { display: block; }
.dw-js .dw-stepname { display: none; }
@media (max-width: 900px) {
  html:not(.dw-js) .dw-door, html:not(.dw-js) .dw-list, html:not(.dw-js) .dw-step { grid-template-columns: minmax(0, 1fr); }
  html:not(.dw-js) .dw-sec { padding: 28px 16px; }
  html:not(.dw-js) .dw-door-r .dw-table { height: auto; }
}

/* ------------------------------------------------ with JavaScript: the stage. One view at a time. */
.dw-js body.dw {
  position: relative; height: 100vh; height: 100dvh; min-height: 620px; overflow: hidden;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
}
.dw-js .dw .alpha-bar { grid-row: 1; }
.dw-js .dw-top { grid-row: 2; }
.dw-js .dw-main { grid-row: 3; min-height: 0; padding: 18px 28px 12px; }
.dw-js .dw-line { grid-row: 4; }
.dw-js .dw-stops { display: contents; }
.dw-js .dw-door:not(.on), .dw-js .dw-stop:not(.on), .dw-js .dw-list:not(.on) { display: none; }
.dw-js .dw-index:not(.dw-dlg-in) { display: none; }

.dw-js .dw-door { height: 100%; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 48px; }
.dw-js .dw-door-l { min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-bottom: 6px; }
.dw-js .dw-door-r, .dw-js .dw-stage-col { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.dw-js .dw-door-r .dw-table { flex: 1; }

.dw-js .dw-stop {
  height: 100%; display: grid; column-gap: 40px;
  grid-template-columns: minmax(330px, 30%) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  grid-template-areas: "head table" "ans table" "say table" "info table" "nav under";
}
.dw-js .dw-step, .dw-js .dw-fig { display: contents; }
.dw-js .dw-step:not(.on) { display: none; }
.dw-js .dw-head { grid-area: head; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; margin-bottom: 14px; }
.dw-js .dw-ans { grid-area: ans; margin-bottom: 14px; }
.dw-js .dw-say { grid-area: say; min-height: 0; overflow: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 14px; }
.dw-js .dw-info { grid-area: info; margin-top: 14px; }
.dw-js .dw-nav { grid-area: nav; margin-top: 12px; }
.dw-js .dw-stop .dw-table { grid-area: table; margin-bottom: 10px; }
.dw-js .dw-beats { grid-area: under; justify-self: start; align-self: end; }
.dw-js .dw-stop .dw-credit { grid-area: under; justify-self: end; align-self: center; margin-top: 12px; }
.dw-js .dw-stop.has-ans .dw-clock, .dw-js .dw-stop.has-ans .dw-info { display: none; }

.dw-js .dw-list { height: 100%; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; }
.dw-js .dw-list-l, .dw-js .dw-list-r { min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow: auto; scrollbar-width: thin; }

/* Shorter windows, a 1366 by 768 laptop for example. The reference switches at 740 high; the alpha bar takes a
   row of its own here, so the compact set starts at 800. */
@media (max-height: 800px) and (min-width: 901px) {
  .dw-js .dw-top { padding-top: 8px; padding-bottom: 8px; }
  .dw-js .dw-main { padding-top: 12px; padding-bottom: 8px; }
  .dw-js .dw-head, .dw-js .dw-say { gap: 10px; }
  .dw-js .dw-head { margin-bottom: 10px; }
  .dw-js .dw-clock { font-size: clamp(44px, 9.5vh, 80px); margin-top: 2px; }
  .dw-js .dw-clock.dw-mod { font-size: clamp(36px, 7.5vh, 60px); }
  .dw-js .dw-title { font-size: 24px; }
  .dw-js .dw-body { font-size: 15.5px; line-height: 1.45; }
  .dw-js .dw-said-q { font-size: 20px; }
  .dw-js .dw-info { gap: 8px; padding-top: 8px; margin-top: 10px; }
  .dw-js .dw-chore-t { font-size: 15.5px; }
  .dw-js .dw-stop .dw-shows, .dw-js .dw-list .dw-pr-d, .dw-js .dw-list .dw-pr-w { display: none; }
  .dw-js .dw-nav { margin-top: 8px; }
  .dw .dw-btn { min-height: 46px; }
  .dw-js .dw-table { padding: 18px; }
  .dw-line-row { min-height: 34px; }
  .dw-js .dw-door-l { gap: 14px; }
  .dw-door-p { font-size: 16px; }
  .dw-walk-d { display: none; }
  .dw-js .dw-list-l, .dw-js .dw-list-r { gap: 10px; }
  .dw-js .dw-list-h { font-size: 30px; }
  .dw-js .dw-cr { min-height: 0; padding: 6px 0; font-size: 13.5px; }
  .dw-js .dw-list-l .dw-fine { display: none; }
  .dw-js .dw-pq { padding: 7px 0; }
  .dw-cta { padding: 12px 14px; gap: 8px; }
  .dw-cta h3 { font-size: 19px; }
}
@media (max-width: 1180px) {
  .dw-brand-s, .dw-prom-t, .dw-count { display: none; }
  .dw-js .dw-stop { column-gap: 28px; }
  .dw-js .dw-stop .dw-credit, .dw-js .dw-door-r .dw-credit { display: none; }
  .dw-dl { font-size: 10px; }
  .dw-arc-grp { display: none; }
  .dw-lang > * { min-width: 28px; }
}

/* ------------------------------------------------ phone and small tablet: a short stack that scrolls */
@media (max-width: 900px) {
  .dw-top { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .dw-ask { order: 3; flex: 0 0 100%; width: 100%; max-width: none; margin: 0; }
  .dw-ask input { width: 0; }
  .dw-top-r { margin-left: auto; gap: 8px; }
  .dw-js .dw-top-r { margin-left: auto; }
  .dw .dw-demo { padding: 0 14px; font-size: 14px; }
  .dw-js body.dw { height: auto; min-height: 100vh; display: block; overflow: visible; padding-bottom: 80px; }
  .dw-js .dw-main { padding: 14px 16px 18px; }
  .dw-js .dw-door, .dw-js .dw-list { display: flex; flex-direction: column; height: auto; gap: 18px; }
  .dw-js .dw-door.on, .dw-js .dw-list.on { display: flex; }
  .dw-js .dw-stop {
    height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "table" "under" "credit" "head" "ans" "say" "info";
  }
  .dw-js .dw-stop .dw-table { margin-bottom: 8px; }
  .dw-js .dw-beats { align-self: start; }
  .dw-js .dw-stop .dw-credit { grid-area: credit; justify-self: start; text-align: left; display: block; margin: 8px 0 16px; }
  .dw-js .dw-door-r .dw-credit { display: block; text-align: left; }
  .dw-js .dw-door-r { order: 2; }
  .dw-js .dw-door-r .dw-table { flex: none; }
  .dw-table { padding: 14px; }
  .dw-shot { height: auto; }
  .dw-img { max-height: 58vh; }
  .dw-js .dw-say, .dw-js .dw-list-l, .dw-js .dw-list-r { overflow: visible; }
  .dw-js .dw-clock { font-size: 68px; }
  .dw-js .dw-clock.dw-mod { font-size: 52px; }
  .dw-under { flex-direction: column; align-items: flex-start; }
  .dw-door-h { font-size: 44px; }
  .dw-walks, .dw-chores, .dw-res-list.sugs, .dw-idx-g, .dw-qs { grid-template-columns: minmax(0, 1fr); }
  .dw-kws, .dw-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-walk-d { display: block; }
  .dw-js .dw-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--g); border-top: 1px solid var(--line); transition: background-color .9s ease;
  }
  .dw-js .dw-nav .dw-btn.pri { flex: 1; min-width: 0; }
  .dw-js .dw-nav .dw-btn.pri span { overflow: hidden; text-overflow: ellipsis; }
  .dw-line { padding: 8px 0 16px; }
  .dw-line-row { padding: 0 16px; flex-wrap: wrap; }
  .dw-tour, .dw-idx { min-height: 44px; }
  .dw-arc { height: auto; margin-top: 8px; }
  .dw-arc-svg, .dw-arc-grp, .dw-dm { display: none; }
  .dw-pts { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: thin; }
  .dw-pts li { flex: none; }
  .dw-pt { position: static; width: auto !important; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; }
  .dw-dl { position: static; transform: none; font-size: 12.5px; line-height: 42px; display: block; }
  .dw-pt[aria-current] { background: var(--ink); border-color: var(--ink); }
  .dw-pt[aria-current] .dw-dl { color: var(--g); }
  .dw-pf, .dw-il, .dw-kw, .dw-lb { min-height: 44px; }
  .dw-p-ask, .dw-p-prom, .dw-p-idx { left: 8px; right: 8px; width: auto; margin: 0; }
  .dw-p-ask { max-height: calc(100vh - 150px); }
  dialog.dw-dlg { top: 64px; max-height: calc(100vh - 80px); }
  .dw-res { grid-template-columns: 50px minmax(0, 1fr); }
  .dw-res-go { display: none; }
}
@media (max-width: 480px) {
  .dw-brand-w { font-size: 21px; }
  .dw-prom-m { font-size: 18px; }
}

@media print {
  .dw-js body.dw { height: auto; overflow: visible; display: block; }
}
