/* DailyDoors: three looks on one page.
 * <body class="th-street|th-bell|th-today dc-none|dc-december|dc-newyear">
 * Colors per look and per decoration come from site.json → looks (written into <style id="dd-tokens"> as variables).
 * A Door Street (default), B Bell Board, C Today's Door. No night sky, no lights, no gift boxes. */
/* fonts: hosted on this site as assets (OFL, files and licences in sites/hearthline/fonts). Paths must match site.json → fonts. */
@font-face { font-family: "Nunito"; src: url(/_a/nunito-latin.ba344451ea.woff2) format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url(/_a/jost-latin.7726a5cd6f.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(/_a/caveat-latin.891951df5e.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: "Nunito", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --fut: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --helv: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { overflow-x: hidden; }
body {
  position: relative;
  min-height: 100vh;
  background: var(--u-bg);
  color: var(--u-fg);
  font-family: var(--u-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.hand { font-family: var(--hand); }

/* shared vocabulary each look fills in */
.th-street {
  --u-bg: var(--paper); --u-fg: var(--ink); --u-muted: var(--muted); --u-card: var(--card); --u-line: var(--ink);
  --u-btn: var(--ink); --u-btnfg: var(--paper); --u-shadow: 4px 4px 0 var(--accent); --u-accent: var(--accent);
  --u-display: var(--round); --u-body: var(--sans); --u-radius: 14px; --u-field: #fff;
  background: linear-gradient(var(--sky) 0, var(--paper) 520px) var(--paper);
}
.th-bell {
  --u-bg: var(--wall); --u-fg: var(--ink); --u-muted: var(--muted); --u-card: var(--paper); --u-line: var(--ink);
  --u-btn: var(--ink); --u-btnfg: #fff; --u-shadow: none; --u-accent: var(--signal);
  --u-display: var(--helv); --u-body: var(--helv); --u-radius: 6px; --u-field: var(--paper);
  background: var(--wall) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .09 0'/></filter><rect width='240' height='240' filter='url%28%23n%29'/></svg>");
}
.th-today {
  --u-bg: var(--paper); --u-fg: var(--ink); --u-muted: #4a4339; --u-card: var(--paper); --u-line: var(--ink);
  --u-btn: var(--ink); --u-btnfg: var(--paper); --u-shadow: 6px 6px 0 var(--c1); --u-accent: var(--c1);
  --u-display: var(--fut); --u-body: var(--fut); --u-radius: 0; --u-field: #fff;
}
.th-today::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .45; mix-blend-mode: multiply;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .15  0 0 0 0 .1  0 0 0 .22 0'/></filter><rect width='220' height='220' filter='url%28%23n%29'/></svg>");
}

/* ---------- header ---------- */
.top { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 40px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--u-display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.brand .gf-site-icon, .brand img, .brand svg { width: 30px; height: 30px; border-radius: 8px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; border: 2px solid var(--u-line); border-radius: 99px; overflow: hidden; background: var(--u-card); }
.langs a { padding: 3px 11px; text-decoration: none; font-weight: 800; font-size: 13px; text-transform: uppercase; }
.langs a[aria-current="page"] { background: var(--u-fg); color: var(--u-bg); }
.th-bell .langs { border-radius: 4px; border-width: 1.5px; font-family: var(--mono); }
.th-today .langs { border-radius: 0; border-width: 3px; font-family: var(--fut); }

.look-switch { display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: color-mix(in srgb, var(--u-fg) 8%, transparent); }
.ls { width: 32px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 99px; background: transparent; cursor: pointer; }
.ls[aria-pressed="true"] { background: var(--u-fg); }
.ls svg { width: 17px; height: 17px; display: block; fill: var(--u-fg); }
.ls svg .cut { fill: var(--u-bg); }
.ls[aria-pressed="true"] svg { fill: var(--u-bg); }
.ls[aria-pressed="true"] svg .cut { fill: var(--u-fg); }
.th-bell .look-switch, .th-bell .ls { border-radius: 5px; }
.th-today .look-switch, .th-today .ls { border-radius: 0; }
.look-toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 70; margin: 0; padding: 8px 16px; border-radius: 99px; background: var(--u-fg); color: var(--u-bg); font-size: 14px; font-weight: 600; box-shadow: 0 6px 18px rgb(0 0 0 / .2); max-width: calc(100% - 32px); text-align: center; }

/* ---------- buttons & fields ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--u-btn); color: var(--u-btnfg); font-family: var(--u-display); font-weight: 800; font-size: 18px;
  padding: 14px 26px; border-radius: var(--u-radius); box-shadow: var(--u-shadow); text-decoration: none; white-space: nowrap;
}
.cta:disabled { opacity: .6; cursor: progress; }
.cta.small { font-size: 15px; padding: 9px 16px; box-shadow: none; }
.ghost { border: 2px solid var(--u-line); background: transparent; border-radius: var(--u-radius); padding: 9px 14px; font-weight: 700; cursor: pointer; }
.link-btn { border: 0; background: none; padding: 0; text-decoration: underline; cursor: pointer; color: var(--u-muted); }
.field { display: grid; gap: 6px; margin: 0 0 12px; border: 0; padding: 0; font-weight: 700; font-size: 14px; }
.field legend { padding: 0; margin-bottom: 6px; }
.field input, .field select, .field textarea, .more select {
  width: 100%; font: inherit; font-weight: 500; font-size: 16px; color: var(--u-fg); background: var(--u-field);
  border: 2px solid var(--u-line); border-radius: calc(var(--u-radius) * .7); padding: 10px 12px;
}
.counter { justify-self: end; font-size: 12px; color: var(--u-muted); font-weight: 600; }
.msg { min-height: 1.2em; margin: 6px 0 0; font-size: 14px; color: var(--u-accent); font-weight: 700; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.for-other { display: none; }
body:not(.th-street) .for-street { display: none; }
body:not(.th-street) .for-other { display: inline; }

.card { background: var(--u-card); border: 2px solid var(--u-line); border-radius: calc(var(--u-radius) + 4px); padding: 20px 22px; }
.th-street .card { box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 18%, transparent); }
.th-bell .card { border: 0; box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgb(0 0 0 / .15), 0 10px 22px -12px rgb(60 45 20 / .45); }
.th-today .card { border-width: 4px; box-shadow: 8px 8px 0 var(--ink); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--u-muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend b { width: 12px; height: 17px; border: 2px solid var(--u-line); border-radius: 2px; display: inline-block; background: #fff; position: relative; }
.legend li:nth-child(1) b { background: #74828f; }
.legend li:nth-child(2) b::after { content: ""; position: absolute; left: 2px; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--u-accent); }
.legend li:nth-child(3) b { background: linear-gradient(90deg, var(--u-fg) 60%, var(--light, var(--signal, var(--c3))) 60%); }
.legend li:nth-child(4) b { background: linear-gradient(90deg, var(--u-fg) 25%, #fff1c9 25%); }
.th-bell .legend b { width: 16px; height: 12px; border-width: 1.5px; }
.th-bell .legend li:nth-child(1) b { background: #d5d3cb; }
.th-bell .legend li:nth-child(3) b { background: #ffe3ad; box-shadow: 0 0 6px var(--glow); }
:root { --empty-door: #c4bba9; }
.th-today .legend li:nth-child(1) b { background: var(--empty-door); }
.th-today .legend li:nth-child(2) b { background: var(--c1); }
.th-today .legend li:nth-child(3) b { background: var(--c2); border-color: var(--c3); }
.th-today .legend li:nth-child(4) b { background: var(--inside); border-left-width: 5px; }

/* ---------- home: shared ---------- */
.m-home { display: block; }
.hero { position: relative; }
.kicker { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--u-muted); font-weight: 700; }
.hero h1 { margin: 0; font-family: var(--u-display); }
.lede { margin: 0 0 12px; font-size: 17px; max-width: 34em; }
.mine { grid-column: 1 / -1; margin-top: 14px; }
.mine h2 { margin: 0 0 6px; font-size: 14px; }
.mine-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mine-list a { display: grid; padding: 8px 14px; border: 2px solid var(--u-line); border-radius: var(--u-radius); background: var(--u-card); text-decoration: none; font-weight: 700; line-height: 1.25; }
.mine-list small { font-family: var(--mono); font-weight: 500; color: var(--u-muted); }
.stage { position: relative; }
.sun { display: none; }
.sheet-close { display: none; }
.create-h { display: none; margin: 0 0 12px; font-family: var(--u-display); }
.picks { display: flex; gap: 10px; flex-wrap: wrap; }
.pick { position: relative; flex: 1 1 150px; cursor: pointer; }
.pick input, .style-card input { position: absolute; opacity: 0; pointer-events: none; }
.pick-box { display: block; height: 100%; border: 2px solid var(--u-line); border-radius: 12px; padding: 8px 12px; background: #fff; font-size: 12.5px; line-height: 1.35; color: var(--u-muted); font-weight: 500; }
.pick-box b { display: block; font-size: 15px; color: var(--u-fg); }
.pick-box small { font-size: 12.5px; }
.pick.small { flex: 0 0 auto; }
.pick.small .pick-box { display: flex; align-items: center; }
.pick input:checked + .pick-box { background: #fff3cf; box-shadow: 3px 3px 0 var(--u-line); }
.pick input:focus-visible + .pick-box, .style-card input:focus-visible + .thumb { outline: 3px solid var(--u-accent); outline-offset: 2px; }
.styles { display: flex; gap: 10px; }
.style-card { position: relative; display: grid; gap: 4px; justify-items: center; cursor: pointer; font-size: 12.5px; font-weight: 700; }
.style-card .thumb { display: block; width: 96px; height: 58px; border: 2px solid var(--u-line); border-radius: 10px; overflow: hidden; background: #fff; }
.style-card .thumb svg { display: block; width: 100%; height: 100%; }
.style-card input:checked + .thumb { box-shadow: 0 0 0 3px var(--u-bg), 0 0 0 6px var(--u-accent); }
.more summary { cursor: pointer; font-size: 13px; color: var(--u-muted); font-weight: 600; }
.more select { margin-top: 6px; }
.create-cta { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.create-cta .msg { margin: 0; }
.aside { margin: 0; font-size: 12.5px; color: var(--u-muted); }
.aside a { font-weight: 800; color: var(--u-fg); }

.steps { display: flex; gap: 14px; max-width: 1100px; margin: 34px auto 18px; padding: 0 40px; list-style: none; counter-reset: s; }
.steps li { flex: 1; position: relative; padding: 14px 16px 14px 56px; font-weight: 700; counter-increment: s; border: 2px solid var(--u-line); border-radius: var(--u-radius); background: var(--u-card); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--u-fg); color: var(--u-bg); font-family: var(--u-display); }
.recover, .m-home .prose, .m-home .faq { max-width: 860px; margin: 18px auto; }
.recover summary { cursor: pointer; font-weight: 800; }
.recover form { margin-top: 12px; }

/* ---------- A: Door Street ---------- */
.th-street .hero-copy { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 56px; align-items: end; padding: 14px 40px 28px; }
.th-street .hero-copy .kicker { grid-column: 1 / -1; }
.th-street .hero h1 { font-size: 48px; line-height: 1.04; font-weight: 800; letter-spacing: -.015em; }
.th-street:lang(de) .hero h1, :lang(de) .th-street .hero h1 { font-size: 44px; }
.th-street .stage, .th-street .board { position: static; }
.th-street .sun { display: block; position: absolute; right: -90px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: var(--sun); opacity: .7; z-index: -1; pointer-events: none; }
.street { display: grid; grid-template-columns: 1fr 1fr; }
.half { display: grid; grid-template-columns: repeat(6, 1fr); }
.pave { grid-column: 1 / -1; position: relative; display: block; height: 22px; background: var(--pave); border-bottom: 4px solid var(--curb); }
.cat { position: absolute; right: 19%; bottom: 4px; width: 34px; }
.house { position: relative; display: block; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.house svg { display: block; width: 100%; height: auto; }
.house svg .lt { fill: var(--light); }
span.house { cursor: default; }
button.house:hover svg, button.house:focus-visible svg { filter: brightness(1.05) drop-shadow(0 -3px 0 var(--accent)); }
button.house:focus-visible { outline: none; }
.house.is-picked svg { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 -4px 0 var(--plate)); }
.flag { position: absolute; left: 50%; top: 36%; z-index: 2; transform: translateX(-50%) rotate(-5deg); background: #ffd21f; color: #2b2a33; border: 2.5px solid #2b2a33; font-family: var(--round); font-weight: 900; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 12px; border-radius: 99px; white-space: nowrap; box-shadow: 0 4px 0 #2b2a33, 0 0 14px 4px rgb(255 210 31 / .7); pointer-events: none; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-4px) rotate(-3deg); } }
.s-today.house svg { filter: saturate(1.2) brightness(1.06); animation: breathe 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 50% { filter: saturate(1.2) brightness(1.12) drop-shadow(0 0 12px rgb(255 200 40 / .9)); } }
@media (prefers-reduced-motion: reduce) { .flag, .s-today.house svg { animation: none; } }
.th-street .create { display: flex; gap: 22px; align-items: center; padding: 16px 40px 18px; background: var(--card); border-top: 3px solid var(--ink); }
.th-street .create-fields { flex: 1; display: grid; grid-template-columns: 300px 1fr; gap: 10px 18px; align-items: center; }
.th-street .create .field { margin: 0; }
.th-street .f-title { background: var(--plate); border-radius: 10px; padding: 5px; box-shadow: 0 3px 0 rgb(0 0 0 / .2); }
.th-street .f-title .lbl { display: block; border: 2px solid #fff; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 5px 12px 0; color: #cfd9f5; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.th-street .f-title input { border: 2px solid #fff; border-top: 0; border-radius: 0 0 6px 6px; background: transparent; color: #fff; font-family: var(--round); font-weight: 800; font-size: 21px; padding: 0 12px 6px; }
.th-street .f-title input::placeholder { color: rgb(255 255 255 / .55); }
.th-street .f-start legend, .th-street .f-style legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.th-street .f-style { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.th-street .f-style .styles { gap: 8px; }
.th-street .style-card { grid-template-columns: auto auto; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 2px solid transparent; border-radius: 12px; }
.th-street .style-card .thumb { width: 64px; height: 38px; border-radius: 7px; }
.th-street .f-day { grid-column: 2; }
.th-street .more { grid-column: 1 / -1; }
.th-street .cta { font-family: var(--round); }

/* ---------- B: Bell Board ---------- */
.th-bell .brand { font-family: var(--helv); font-weight: 700; }
.th-bell .kicker { font-family: var(--mono); font-weight: 500; letter-spacing: .14em; }
.th-bell .hero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 610px) 1fr; grid-template-areas: "copy stage slice" "create stage slice"; column-gap: 44px; padding-left: 56px; align-items: start; }
.th-bell .hero-copy { grid-area: copy; padding-top: 34px; }
.th-bell .hero h1 { font-size: 50px; line-height: .98; letter-spacing: -.035em; font-weight: 700; margin-bottom: 18px; }
:lang(de) .th-bell .hero h1 { font-size: 42px; }
.th-bell .legend { display: none; }
.th-bell .stage { display: contents; }
.th-bell .create { grid-area: create; padding-bottom: 30px; }
.th-bell .create .field { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.th-bell .f-title input { height: 48px; border: 0; border-radius: 4px; background: var(--paper); box-shadow: inset 0 2px 5px rgb(0 0 0 / .28), 0 1px 0 #fff; font-family: var(--hand); font-size: 26px; color: var(--pen); letter-spacing: 0; text-transform: none; }
.th-bell .picks { display: grid; gap: 8px; }
.th-bell .pick-box { border: 0; background: none; padding: 0 0 0 30px; position: relative; text-transform: none; letter-spacing: 0; font-family: var(--helv); }
.th-bell .pick-box::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.th-bell .pick input:checked + .pick-box { background: none; box-shadow: none; }
.th-bell .pick input:checked + .pick-box::before { background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 30%, transparent); }
.th-bell .style-card { text-transform: none; letter-spacing: 0; font-family: var(--helv); color: var(--ink); }
.th-bell .style-card .thumb { border-radius: 5px; border-width: 1.5px; }
.th-bell .create-cta { align-items: flex-start; }
.th-bell .cta { border-radius: 6px; font-family: var(--helv); font-weight: 700; }
.panel {
  grid-area: stage; position: relative; margin-top: 30px; border-radius: 14px; padding: 18px 18px 12px;
  background: linear-gradient(180deg, #d9dcde, var(--metal) 45%, #cfd2d4), repeating-linear-gradient(90deg, rgb(255 255 255 / 0) 0 2px, rgb(0 0 0 / .03) 2px 3px);
  background-blend-mode: multiply;
  box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgb(0 0 0 / .25) inset, 0 18px 30px -12px rgb(60 45 20 / .45), 0 2px 4px rgb(0 0 0 / .3);
}
.screw { position: absolute; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #eee, #888); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3); }
.screw.l { left: 9px; }
.screw.r { right: 9px; }
.p-head { display: grid; grid-template-columns: 84px 1fr 44px; gap: 16px; align-items: center; margin: 8px 10px 14px; }
.grille { height: 52px; border-radius: 6px; background: radial-gradient(circle, #2a2c2e 1.6px, transparent 2px) 0 0 / 8px 8px; opacity: .8; }
.lcd { display: grid; background: #18221c; border-radius: 5px; padding: 8px 12px; color: #ffbf5e; font: 600 13px/1.35 var(--mono); box-shadow: inset 0 2px 6px #000; text-shadow: 0 0 8px rgb(255 170 60 / .7); min-height: 52px; }
.lcd small { color: #b98a45; font-size: 11px; font-weight: 400; }
.lens { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #56606a, #0d0f11 60%); box-shadow: 0 0 0 4px #9da1a5, 0 1px 0 5px #fff; }
.bells { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: column; grid-template-rows: repeat(8, auto); column-gap: 14px; border-top: 1px solid rgb(0 0 0 / .18); }
.bell { display: grid; grid-template-columns: 22px 1fr 30px; gap: 8px; align-items: center; width: 100%; padding: 12px 4px; margin: 0; border: 0; border-bottom: 1px solid rgb(0 0 0 / .14); box-shadow: 0 1px 0 rgb(255 255 255 / .6); background: none; cursor: pointer; text-align: left; }
span.bell { cursor: default; }
.no { font: 600 11px var(--mono); color: #4b4f53; text-shadow: 0 1px 0 rgb(255 255 255 / .7); }
.slip { height: 34px; border-radius: 3px; background: var(--paper); box-shadow: inset 0 2px 4px rgb(0 0 0 / .35); display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 9px; overflow: hidden; white-space: nowrap; font-size: 12px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.knob { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c3c6c9 55%, #8d9196); box-shadow: 0 0 0 3px #a3a7ab, 0 2px 3px 2px rgb(0 0 0 / .3); position: relative; transition: transform .12s; }
.s-empty .slip { background: #d5d3cb; color: #4f4c46; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 0 2px 4px rgb(0 0 0 / .25); }
.s-empty .knob { opacity: .75; }
.slip i { flex: 1; height: 14px; background: no-repeat left center / auto 100%; }
.slip i.w0 { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='70' height='14'><path d='M2,9c3-8 5-8 6,0s4,3 6-2 4-3 5,1 3,4 6-2 5,1 6,2 5-9 7-1 4,2 7-2 5,2 8,1 6-3 9-1' fill='none' stroke='%2327479e' stroke-width='1.5' stroke-linecap='round'/></svg>"); }
.slip i.w1 { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='52' height='14'><path d='M2,4c6,8 5,8 8,0 1,9 5,6 7,3s4-2 4,2 5,2 7-3 3,6 6,5 5-6 8-3 4,2 7,0' fill='none' stroke='%2327479e' stroke-width='1.5' stroke-linecap='round'/></svg>"); }
.slip i.w2 { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='14'><path d='M2,10c2-9 6-9 5,0 3-6 6-5 6-1s5,2 6-3 5-2 4,4 6-1 8-4 4,5 7,3 5-8 8-2 5,1 9-2 6,4 9,0 6-2 10,1' fill='none' stroke='%2327479e' stroke-width='1.5' stroke-linecap='round'/></svg>"); }
.slip em { font-style: normal; color: #c9412c; letter-spacing: 1px; font-size: 13px; }
.s-today .slip { background: #ffe3ad; box-shadow: inset 0 2px 4px rgb(0 0 0 / .25), 0 0 14px 2px var(--glow); }
.s-today .slip b { font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #7a3d00; }
.s-today .knob { box-shadow: 0 0 0 3px var(--signal), 0 0 16px 6px var(--glow), 0 2px 3px rgb(0 0 0 / .3); background: radial-gradient(circle at 35% 30%, #fff, #ffe1b0 55%, #f0a94a); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px var(--signal), 0 0 4px 2px var(--glow), 0 2px 3px rgb(0 0 0 / .3); } }
.s-open .slip b { font: 400 19px/1 var(--hand); color: var(--pen); overflow: hidden; text-overflow: ellipsis; }
.s-open .knob { background: radial-gradient(circle at 50% 60%, #c9ccce, #a9adb1); box-shadow: 0 0 0 3px #a3a7ab, inset 0 2px 4px rgb(0 0 0 / .4); }
.s-open .knob::after { content: ""; position: absolute; left: 9px; top: 9px; width: 9px; height: 5px; border-left: 2.5px solid #3c7a4e; border-bottom: 2.5px solid #3c7a4e; transform: rotate(-45deg); }
button.bell:hover .knob, button.bell:focus-visible .knob { box-shadow: 0 0 0 3px var(--signal), 0 2px 3px 2px rgb(0 0 0 / .3); }
button.bell:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.bell.is-picked .slip { outline: 2px solid var(--pen); outline-offset: 1px; }
.bell.ringing .knob { transform: scale(.86); animation: ring .35s ease-in-out 2; }
@keyframes ring { 50% { box-shadow: 0 0 0 3px var(--signal), 0 0 22px 10px var(--glow); } }
.bell.slide .slip { transform: translateX(12px) scale(1.08); }
.p-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; margin: 10px 4px 0; font: 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #4b4f53; text-shadow: 0 1px 0 rgb(255 255 255 / .6); }
.b-slice { grid-area: slice; align-self: stretch; position: relative; min-height: 640px; margin-top: 0; background: #f4efe4; border-left: 14px solid #f8f4ea; box-shadow: -3px 0 0 rgb(0 0 0 / .12), inset 10px 0 14px -8px rgb(0 0 0 / .35); overflow: hidden; }
.b-slice .leaf { position: absolute; inset: 0 0 34px 0; background: var(--door); }
.b-slice .leaf::before { content: ""; position: absolute; left: 26px; right: -40px; top: 70px; height: 300px; border: 3px solid rgb(255 255 255 / .14); }
.b-slice .leaf::after { content: ""; position: absolute; left: 26px; right: -40px; top: 520px; bottom: 40px; border: 3px solid rgb(255 255 255 / .14); }
.b-slice .slot { position: absolute; left: 34px; top: 420px; width: 150px; height: 22px; border-radius: 4px; background: linear-gradient(#e7c66f, #b98f35); box-shadow: inset 0 0 0 5px #d1aa4b, inset 0 0 0 9px #33290f; }
.b-slice .letter { position: absolute; left: 58px; top: 392px; width: 120px; height: 44px; background: var(--paper); transform: rotate(-7deg); box-shadow: 0 2px 4px rgb(0 0 0 / .35); font-size: 19px; padding: 6px 10px; color: var(--pen); }
.b-slice .slot2 { position: absolute; left: 34px; top: 431px; width: 150px; height: 11px; border-radius: 0 0 4px 4px; background: linear-gradient(#cfa94a, #b98f35); }
.b-slice .mat { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: #cfc6b4; border-top: 6px solid #b8ae9a; }

/* ---------- C: Today's Door ---------- */
.th-today .brand { font-family: var(--fut); font-weight: 700; }
.th-today .hero { display: grid; grid-template-columns: 1fr 430px; grid-template-areas: "copy door" "create door" "strip strip"; column-gap: 20px; padding: 0 44px; }
.th-today .hero::before { content: ""; position: absolute; left: 0; bottom: 150px; width: 34%; height: 90px; background: var(--c4); z-index: 0; }
.th-today .hero-copy { grid-area: copy; align-self: end; position: relative; z-index: 2; padding-top: 10px; }
.th-today .hero .lede { margin-bottom: 14px; }
.th-today .hero h1 { font: 700 56px/.95 var(--fut); letter-spacing: -.04em; text-transform: uppercase; margin-bottom: 20px; }
:lang(de) .th-today .hero h1 { font-size: 52px; }
.th-today .lede { font-size: 18px; font-weight: 500; }
.th-today .legend { display: none; }
.th-today .stage { display: contents; }
.th-today .create { grid-area: create; position: relative; z-index: 2; padding-bottom: 28px; }
.th-today .create-fields { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 14px; }
.th-today .create .field { margin: 0; font-family: var(--fut); }
.th-today .f-title { flex: 1 1 220px; }
.th-today .f-title input, .th-today .field input, .th-today .field textarea, .th-today .more select { border: 3px solid var(--ink); border-radius: 0; font-family: var(--fut); }
.th-today .f-start legend, .th-today .f-style legend { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.th-today .pick-box { border: 3px solid var(--ink); border-radius: 0; background: var(--paper); font-family: var(--fut); }
.th-today .pick input:checked + .pick-box { background: var(--c3); box-shadow: 4px 4px 0 var(--ink); }
.th-today .style-card .thumb { border-radius: 0; border-width: 3px; }
.th-today .create-cta { align-items: flex-start; }
.th-today .cta { font-family: var(--fut); font-weight: 700; border-radius: 0; }
.c-door { grid-area: door; position: relative; z-index: 1; justify-self: center; align-self: end; width: 310px; margin-top: 30px; }
.m-home .c-door .bd-frame { height: 470px; }
.disc { position: absolute; right: -150px; top: -60px; width: 520px; height: 520px; border-radius: 50%; background: var(--c3); z-index: -1; display: grid; place-items: center; }
.disc .yr { display: none; font: 700 120px/1 var(--fut); color: var(--ink); opacity: .16; transform: translate(-40px, -80px); }
.sticker { position: absolute; left: -74px; top: 44px; z-index: 5; width: 124px; height: 124px; border-radius: 50%; background: var(--c4); border: 4px solid var(--ink); display: grid; place-items: center; text-align: center; font: 700 17px/1.05 var(--fut); text-transform: uppercase; transform: rotate(-12deg); padding: 6px; cursor: pointer; color: var(--ink); }
span.sticker { cursor: default; }
.sticker small { display: block; font-size: 11px; letter-spacing: .08em; }
button.sticker:hover { transform: rotate(-6deg) scale(1.04); }
.slipout { position: absolute; bottom: 10px; z-index: 4; width: 118px; height: 64px; background: #fff; border: 3px solid var(--ink); font-size: 17px; padding: 6px 9px; line-height: 1.05; color: var(--c2); }
.s1 { left: -150px; transform: rotate(-9deg); }
.s2 { left: -60px; bottom: 2px; transform: rotate(5deg); background: var(--c4); color: var(--ink); }
.c-strip { grid-area: strip; margin: 0 -44px; background: var(--ink); color: var(--paper); padding: 44px 44px 18px; position: relative; z-index: 1; }
.minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; }
.m { display: flex; flex-direction: column; align-items: center; gap: 5px; }
/* 24 small doors: paper frame + lintel + threshold step, a leaf with two panels and a brass knob, number below */
.mini { display: block; width: 32px; height: 52px; position: relative; padding: 0; background: var(--inside); border: solid var(--paper); border-width: 4px 3px 0; box-shadow: 0 -3px 0 -1px var(--paper); cursor: pointer; perspective: 140px; color: inherit; }
span.mini { cursor: default; }
.mini::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -4px; height: 4px; background: var(--paper); }
.mini .lf { position: absolute; inset: 0; background: var(--c); transform-origin: left center; transition: transform .5s ease; box-shadow: inset -2px 0 0 rgba(0, 0, 0, .18); }
.mini .lf::before, .mini .lf::after { content: ""; position: absolute; left: 22%; right: 22%; border: 1.5px solid rgba(0, 0, 0, .3); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .28); }
.mini .lf::before { top: 12%; height: 22%; }
.mini .lf::after { top: 44%; bottom: 10%; }
.mini i { position: absolute; z-index: 1; right: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #f3c969; border: 1px solid var(--ink); }
.mini u { display: none; position: absolute; z-index: 2; left: 2px; bottom: -8px; width: 18px; height: 10px; background: #fff; border: 2px solid var(--ink); transform: rotate(-10deg); }
.m b { font: 700 13px var(--fut); }
/* nobody home yet: a solid door in a pale, low-saturation taupe, no paper slip */
.m.s-empty .mini .lf { background: var(--empty-door); }
.m.s-empty .mini .lf::before, .m.s-empty .mini .lf::after { border-color: rgba(0, 0, 0, .16); }
.m.s-empty .mini i { background: #8d867a; border-color: #6f685d; }
.m.s-empty b { color: #a39b8d; }
.m.s-filled .mini u { display: block; }
/* today: yellow frame, door ajar with warm light behind it */
.m.s-today .mini { width: 40px; height: 66px; border-color: var(--c3); box-shadow: 0 -4px 0 -1px var(--c3), 0 0 18px 2px var(--c3); background: radial-gradient(circle at 70% 45%, #fff6d6 0 30%, var(--c3) 75%); }
.m.s-today .mini::after { background: var(--c3); }
.m.s-today .mini .lf { background: var(--c2); transform: rotateY(-32deg); }
.m { position: relative; }
.tl { position: absolute; top: -26px; font: 700 11px var(--fut); font-style: normal; letter-spacing: .1em; color: var(--c3); text-transform: uppercase; white-space: nowrap; }
.m.s-today b { color: var(--ink); background: var(--c3); padding: 0 5px; border-radius: 3px; }
/* opened: leaf swung wide, room inside with a heart */
.m.s-open .mini { background: var(--inside); }
.m.s-open .mini .lf { transform: rotateY(-72deg); }
.m.s-open .mini .lf::before, .m.s-open .mini .lf::after, .m.s-open .mini i { display: none; }
.m.s-open .mini::before { content: "\2665"; position: absolute; left: 0; right: 0; top: 50%; margin-top: -8px; text-align: center; font-size: 15px; line-height: 1; color: var(--c1); }
.m.s-open.nn .mini::before { content: none; }
.m.is-picked .mini { outline: 3px solid var(--c3); outline-offset: 5px; }
.mini.flip .lf { animation: swing .7s ease-in-out; }
@keyframes swing { 50% { transform: rotateY(-80deg); } }
@keyframes flip { 50% { transform: perspective(200px) rotateY(70deg); } }
.key { display: flex; gap: 22px; justify-content: center; margin: 16px 0 0; font-size: 12px; color: #cfc7b6; letter-spacing: .04em; }
.key span::before { content: ""; display: inline-block; width: 9px; height: 13px; margin-right: 7px; vertical-align: -2px; border: 2px solid var(--paper); }
.key .e::before { background: var(--empty-door); }
.key .f::before { background: var(--c1); }
.key .t::before { background: var(--c2); border-color: var(--c3); }
.key .o::before { background: var(--inside); border-left-width: 5px; }

/* the big door: C's hero, and A's full-screen door when a host opens one */
.bigdoor { position: relative; width: 310px; }
.bd-frame { position: relative; height: 520px; background: var(--frame, var(--c1, #e2553d)); padding: 16px 16px 0; border: 4px solid var(--ink); border-bottom: 0; box-shadow: 12px 0 0 var(--ink); }
.bd-inside { position: relative; height: 100%; background: var(--inside, #fff1c9); perspective: 1100px; border: 4px solid var(--ink); border-bottom: 0; }
.bd-glow { position: absolute; inset: 0; background: radial-gradient(circle at 30% 60%, var(--light, var(--c3, #ffd978)), transparent 70%); opacity: 0; transition: opacity .5s .2s; }
.bd-peek { position: absolute; right: 8px; top: 120px; width: 150px; padding: 12px 12px 14px; background: #fff; border: 3px solid var(--ink); transform: rotate(4deg); font-size: 20px; line-height: 1.15; color: var(--c2, #21409a); }
.bd-peek small { display: block; font: 700 10px var(--fut); letter-spacing: .12em; color: var(--ink); margin-bottom: 6px; text-transform: uppercase; }
.bd-leaf { position: absolute; inset: 0; background: var(--leaf, #2747d8); transform-origin: left center; transform: rotateY(0deg); transition: transform .6s cubic-bezier(.3, .7, .25, 1); box-shadow: inset 0 0 0 4px var(--ink); }
.c-door .bd-leaf { transform: rotateY(40deg); }
.bigdoor.is-open .bd-leaf { transform: rotateY(105deg); }
.bigdoor.is-open .bd-glow { opacity: 1; }
.bd-num { position: absolute; left: 0; right: 0; top: 44px; text-align: center; font: 700 170px/1 var(--fut); color: var(--c3, #ffd978); text-shadow: 6px 6px 0 var(--ink); }
.bd-eye { position: absolute; left: 50%; top: 26px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--c3, #ffd978); }
.bd-pan { position: absolute; left: 28px; right: 28px; top: 270px; bottom: 34px; border: 4px solid rgb(255 255 255 / .3); }
.bd-slot { position: absolute; left: 50%; top: 232px; width: 96px; height: 14px; margin-left: -48px; background: var(--ink); box-shadow: 0 0 0 4px var(--c3, #ffd978); }
.bd-knob { position: absolute; right: 16px; top: 296px; width: 34px; height: 10px; border-radius: 5px; background: var(--c3, #f2c94c); border: 3px solid var(--ink); transform-origin: 80% 50%; transition: transform .25s; }
.bigdoor.turning .bd-knob { transform: rotate(38deg); }

/* ---------- calendar page ---------- */
.m-calendar { display: block; padding-bottom: 20px; }
.cal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; padding: 8px 40px 14px; }
.cal-head h1 { margin: 0; font-family: var(--u-display); font-size: 40px; line-height: 1.05; }
.th-today .cal-head h1 { text-transform: uppercase; letter-spacing: -.03em; font-weight: 700; }
.eyebrow { margin: 0 0 4px; font-size: 14px; color: var(--u-muted); font-weight: 600; }
.cal-meta { display: flex; align-items: center; gap: 10px; }
.pill { margin: 0; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--u-fg) 8%, transparent); font-weight: 700; font-size: 14px; }
.hint { min-height: 1.4em; margin: 0 40px 10px; font-weight: 700; color: var(--u-muted); }
.board { position: relative; min-height: 200px; }
.board-loading { height: 420px; margin: 0 40px; border-radius: 16px; background: color-mix(in srgb, var(--u-fg) 6%, transparent); animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .5; } }
.m-calendar > .legend { justify-content: center; margin: 14px 40px; }
.m-calendar .card { max-width: 760px; margin: 18px auto; }
.m-calendar .b-slice { display: none; }
.th-bell .m-calendar .panel { max-width: 640px; margin: 6px auto 0; }
.th-today .m-calendar .board { display: grid; justify-items: center; overflow: hidden; }
.th-today .m-calendar .c-door, .th-today .m-calendar .c-strip { grid-area: auto; }
.th-today .m-calendar .c-door { margin: 10px 0 0; }
.th-today .m-calendar .c-door .bd-frame { height: 420px; }
.th-today .m-calendar .c-strip { margin: 0; width: 100%; }
.invite { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.invite h2 { margin: 0 0 6px; font-family: var(--u-display); }
.invite p { margin: 0 0 6px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-msg { font-size: 13px; color: var(--u-muted); }
.code-line b { font-size: 18px; letter-spacing: .08em; }
.phrase { font: 700 24px var(--mono); letter-spacing: .04em; margin: 10px 0; }
.viral, .danger, .cal-lede { text-align: center; margin: 14px 20px; }
.cal-lede { color: var(--u-muted); }
.cta-link { font-weight: 800; }

/* sheets: note form, reading a door, C's zoomed door picker */
.backdrop { position: fixed; inset: 0; z-index: 38; background: rgb(20 18 24 / .45); }
.sheet { position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); max-height: 88vh; overflow: auto; margin: 0; padding: 22px 22px 18px; background: var(--u-card); color: var(--u-fg); border: 3px solid var(--u-line); border-radius: 20px; animation: rise .32s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, -40%) scale(.92); } }
.sheet h2 { margin: 0 34px 14px 0; font-family: var(--u-display); font-size: 22px; }
.sheet-x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--u-fg) 8%, transparent); font-size: 22px; line-height: 1; cursor: pointer; }
.door-tag { white-space: nowrap; }
.read-by { margin: 0 0 8px; font-weight: 700; color: var(--u-muted); }
.read-text { margin: 0 0 12px; white-space: pre-wrap; font-size: 20px; line-height: 1.4; }
.th-street .sheet { box-shadow: 6px 6px 0 var(--accent); }
.th-bell .sheet .door-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 4px; background: #1d2a22; color: var(--signal, #ff9a1f); font: 700 13px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; vertical-align: 2px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.th-today .sheet .door-tag { display: inline-block; margin-left: 6px; padding: 0 7px; background: var(--c2, #2747d8); color: var(--paper, #fff); border: 3px solid var(--ink); font-size: .66em; letter-spacing: 0; vertical-align: 2px; transform: rotate(-3deg); }
.th-street .sheet .door-tag { display: inline-block; padding: 1px 10px; border: 2px solid #fff; outline: 3px solid var(--plate); border-radius: 6px; background: var(--plate); color: #fff; font-size: 16px; vertical-align: 3px; }
.th-street .read .read-text { padding: 14px 16px; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; transform: rotate(-1deg); box-shadow: 0 6px 14px rgb(0 0 0 / .12); }
.th-street .read .read-text::after { content: " \2665"; color: var(--accent); }
.th-bell .sheet { border: 0; border-radius: 6px; background: var(--paper); box-shadow: 0 2px 4px rgb(0 0 0 / .35), 0 24px 40px -18px rgb(0 0 0 / .5); }
.th-bell .sheet h2 { font: 700 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.th-bell .note textarea { font: 26px/1.25 var(--hand); color: var(--pen); background: repeating-linear-gradient(180deg, transparent 0 31px, color-mix(in srgb, var(--pen) 18%, transparent) 31px 32px), var(--paper); border: 0; box-shadow: inset 0 2px 5px rgb(0 0 0 / .2); }
.th-bell .read .read-text, .th-bell .read .read-by { font-family: var(--hand); color: var(--pen); font-size: 28px; line-height: 1.15; }
.th-today .sheet { border: 4px solid var(--ink); border-radius: 0; box-shadow: 10px 10px 0 var(--c1); }
.th-today .sheet h2 { text-transform: uppercase; letter-spacing: -.01em; font-weight: 700; }
.th-today .read .read-text { font-family: var(--hand); color: var(--c2); font-size: 28px; line-height: 1.15; }
.th-today .sheet-x { border-radius: 0; }
.zoom { width: min(560px, calc(100% - 24px)); }
.zoom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.zm { position: relative; display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; }
.zm i { display: block; width: 100%; max-width: 74px; aspect-ratio: 5 / 8; background: var(--c); border: 3px solid var(--ink); position: relative; }
.zm i::after { content: ""; position: absolute; right: 7px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.zm b { font: 700 16px var(--fut); }
.zm.s-empty i { background: var(--empty-door); }
.zm.s-filled i::before { content: ""; position: absolute; left: 5px; bottom: -8px; width: 26px; height: 14px; background: #fff; border: 2px solid var(--ink); transform: rotate(-8deg); }
.zm.s-today i { background: var(--c2); box-shadow: 0 0 0 3px var(--c3); }
.zm.s-open i { background: var(--inside); border-left-width: 10px; border-left-color: var(--c); }
.zm.is-picked i { outline: 4px solid var(--c1); outline-offset: 3px; }

/* opening */
.opening { position: fixed; inset: 0; z-index: 36; display: grid; place-items: center; background: rgb(43 42 51 / .55); transition: background .5s; }
.flooded .backdrop { background: transparent; }
.flooded .opening { background: color-mix(in srgb, var(--light, #ffd978) 85%, transparent); }
.opening .bigdoor { transform: scale(.9); animation: grow .35s cubic-bezier(.3, 1.3, .5, 1) both; }
.od-street .bd-frame { --ink: #2b2a33; background: #fbf6ea; box-shadow: 10px 0 0 rgb(0 0 0 / .25); }
.od-street .bd-num { font-family: var(--round); font-weight: 800; font-size: 130px; color: #fff; text-shadow: none; top: 70px; }
.od-street .bd-num::before { content: ""; position: absolute; left: 50%; top: 4px; width: 150px; height: 140px; margin-left: -75px; background: var(--plate); border: 5px solid #fff; border-radius: 16px; z-index: -1; outline: 4px solid var(--plate); }
@keyframes grow { from { opacity: 0; transform: scale(.4); } }
.flash { animation: flash .8s ease-out; }
@keyframes flash { 30% { background: var(--flash); } }
.just-lit { animation: lit 1.2s ease-out; }
@keyframes lit { 0% { filter: brightness(1.4) drop-shadow(0 0 16px var(--light, var(--signal, var(--c3)))); } }

/* ---------- other pages: code, help, legal ---------- */
.page-head { max-width: 860px; margin: 18px auto 16px; padding: 0 20px; }
.page-head h1 { margin: 0 0 8px; font-family: var(--u-display); font-size: 44px; line-height: 1.05; }
.th-today .page-head h1 { text-transform: uppercase; letter-spacing: -.03em; }
.th-bell .page-head h1 { letter-spacing: -.03em; }
.page-head .lede { color: var(--u-muted); }
.m-code .card, .m-help .prose, .m-legal .prose { max-width: 860px; margin: 18px auto; }
.code-card { display: grid; gap: 10px; }
.big { font-size: 26px !important; letter-spacing: .1em; }
.prose { overflow-wrap: anywhere; }
.prose h2 { font-family: var(--u-display); margin: 22px 0 6px; }
.th-bell .prose h2 { font: 700 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.th-today .prose h2 { text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.faq h2 { margin: 0 0 8px; font-family: var(--u-display); }
.faq details { border-top: 2px solid color-mix(in srgb, var(--u-line) 15%, transparent); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 8px 0 0; }

/* footer */
.foot { margin-top: 40px; padding: 26px 40px 34px; border-top: 3px solid var(--u-line); font-size: 14px; color: var(--u-muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.foot nav a { font-weight: 700; color: var(--u-fg); }
.foot p { margin: 0; }
.th-today .foot { background: var(--ink); color: #cfc7b6; border-top: 0; }
.th-today .foot nav a { color: var(--paper); }
.noscript { text-align: center; }

/* ---------- decorations (December / New Year) ---------- */
.dz { display: none; }
.dc-december .dz-dec, .dc-newyear .dz-ny { display: inline; }
.sun .yr { position: absolute; left: 34%; bottom: 26%; font: 800 64px/1 var(--round); color: var(--ink); opacity: .75; display: none; }
.dc-newyear .sun .yr, .dc-newyear .disc .yr { display: block; }
.dc-december.th-bell .panel::before { content: ""; position: absolute; left: 50%; top: -18px; width: 90px; height: 26px; margin-left: -45px; background: radial-gradient(circle at 50% 70%, #d23b2e 5px, transparent 6px), radial-gradient(ellipse at 30% 50%, #2f6b3f 18px, transparent 19px), radial-gradient(ellipse at 70% 50%, #3a7d4b 18px, transparent 19px); }
.dc-newyear.th-bell .bell.s-filled:nth-child(3n) .slip { background: #ffd9e2; }
.dc-newyear.th-bell .bell.s-filled:nth-child(3n + 1) .slip { background: #d8f0e4; }
.dc-newyear.th-bell .bell.s-filled:nth-child(3n + 2) .slip { background: var(--paper); }
.dc-newyear.th-street { background: linear-gradient(var(--sky) 0, var(--paper) 560px) var(--paper); }

/* ---------- phones ---------- */
.s-open .slip.nn b { color: var(--muted); }

@media (max-width: 900px) {
  .th-bell .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "create"; padding: 0 16px; column-gap: 0; }
  .b-slice { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  /* 手机首页给底部固定的建日历按钮留的位置在 build.ts → homeBarCss()（写进 dd-tokens，测试核对） */
  .tl { top: -19px; font-size: 8.5px; }
  .top { padding: 12px 16px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand .gf-site-icon, .brand img, .brand svg { width: 26px; height: 26px; }
  .top-right { gap: 6px; }
  .ls { width: 28px; height: 26px; }
  .langs a { padding: 2px 8px; font-size: 12px; }
  .lede { font-size: 14.5px; line-height: 1.4; margin: 0; }
  .kicker { display: none; }
  .steps { flex-direction: column; padding: 0 16px; margin: 20px 0; }
  .recover, .m-home .prose, .m-home .faq, .m-code .card, .m-help .prose, .m-legal .prose, .m-calendar .card { margin: 16px; }
  .card { padding: 16px; }
  .page-head { padding: 0 16px; }
  .page-head h1 { font-size: 32px; }
  .foot { padding: 20px 16px 26px; }

  /* create: one fixed button; tapping it opens a sheet with the options */
  .m-home .create { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: block; padding: 10px 16px 12px; background: var(--u-bg); border-top: 3px solid var(--u-line); }
  .m-home .create:not(.is-open) .create-fields { display: none; }
  .m-home .create-cta { width: 100%; }
  .m-home .create .cta { width: 100%; font-size: 17px; padding: 12px; }
  .m-home .create.is-open { top: auto; max-height: 90vh; overflow: auto; padding-top: 18px; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 50px rgb(0 0 0 / .3); }
  .m-home .create.is-open .sheet-close { display: block; position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--u-fg) 8%, transparent); font-size: 22px; cursor: pointer; }
  .m-home .create.is-open .create-h { display: block; }
  .m-home .create.is-open .create-fields { display: block; margin-bottom: 12px; }
  .m-home .create.is-open .field { margin-bottom: 12px; }
  .th-street .m-home .create.is-open .create-fields { display: block; }
  .th-street .m-home .create.is-open .f-title { display: grid; }
  .m-home .create.is-open .f-style { display: block; }
  .m-home .create.is-open .f-start legend, .m-home .create.is-open .f-style legend { position: static; width: auto; height: auto; clip: auto; margin-bottom: 6px; }
  .m-home .create.is-open .styles { gap: 8px; }
  .m-home .create.is-open .style-card { display: grid; grid-template-columns: 1fr; justify-items: center; padding: 0; flex: 1; }
  .m-home .create.is-open .style-card .thumb { width: 100%; height: 56px; }
  .sheet-up { overflow: hidden; }

  /* A */
  .th-street .hero-copy { grid-template-columns: 1fr; gap: 6px; padding: 0 16px 14px; }
  .th-street .hero h1 { font-size: 31px; }
  :lang(de) .th-street .hero h1 { font-size: 27px; }
  .th-street .legend { display: none; }
  .th-street .sun { width: 200px; height: 200px; right: -70px; top: -80px; }
  .street { grid-template-columns: 1fr; }
  .house { aspect-ratio: 56 / 106; overflow: hidden; }
  .house svg { position: absolute; width: calc(100% * 100 / 56); left: calc(-100% * 22 / 56); top: calc(-100% * 99 / 106); }
  .flag { top: 24%; font-size: 11px; padding: 1px 7px; border-width: 2px; box-shadow: 0 3px 0 #2b2a33, 0 0 10px 3px rgb(255 210 31 / .7); }
  .pave { height: 9px; border-bottom-width: 3px; }
  .cat { display: none; }
  .th-street .create { display: block; }

  /* B */
  .th-bell .hero-copy { padding-top: 6px; }
  .th-bell .hero h1 { font-size: 30px; margin-bottom: 8px; }
  :lang(de) .th-bell .hero h1 { font-size: 26px; }
  .panel { margin-top: 12px; padding: 12px 12px 10px; }
  .p-head { grid-template-columns: 1fr 30px; margin: 6px 6px 10px; gap: 10px; }
  .grille { display: none; }
  .lens { width: 28px; height: 28px; }
  .lcd { font-size: 12px; padding: 6px 10px; min-height: 0; }
  .bells { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(12, auto); column-gap: 10px; }
  .bell { padding: 4px 2px; gap: 6px; grid-template-columns: 18px 1fr 26px; }
  .slip { height: 25px; padding: 0 7px; }
  .knob { width: 23px; height: 23px; }
  .s-open .slip b { font-size: 17px; }
  .s-open .knob::after { left: 7px; top: 6px; }
  .s-today .slip b { font-size: 10.5px; }
  .p-foot { display: none; }
  .th-bell .m-calendar .panel { margin: 0 12px; }

  /* C */
  .th-today .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "door" "strip"; padding: 0 16px; }
  .th-today .hero::before { display: none; }
  .th-today .hero-copy { padding-top: 0; }
  .th-today .hero h1 { font-size: 34px; margin-bottom: 8px; }
  :lang(de) .th-today .hero h1 { font-size: 28px; }
  .th-today .lede { font-size: 14.5px; }
  .c-door { width: 160px; margin: 12px 0 0 120px; justify-self: start; }
  .disc { width: 290px; height: 290px; right: -190px; top: -40px; }
  .disc .yr { font-size: 64px; transform: translate(-60px, -40px); }
  .bigdoor { width: 160px; }
  .bd-frame, .m-home .c-door .bd-frame, .th-today .m-calendar .c-door .bd-frame { height: 250px; padding: 10px 10px 0; border-width: 3px; box-shadow: 8px 0 0 var(--ink); }
  .bd-inside { border-width: 3px; }
  .bd-peek { width: 84px; font-size: 13px; padding: 6px; top: 50px; right: 4px; border-width: 2px; }
  .bd-peek small { font-size: 8px; margin-bottom: 3px; }
  .bd-num { font-size: 84px; top: 24px; text-shadow: 4px 4px 0 var(--ink); }
  .bd-eye { top: 14px; width: 9px; height: 9px; margin-left: -4px; box-shadow: 0 0 0 3px var(--c3, #ffd978); }
  .bd-pan { left: 14px; right: 14px; top: 140px; bottom: 18px; border-width: 3px; }
  .bd-slot { top: 120px; width: 56px; margin-left: -28px; height: 9px; box-shadow: 0 0 0 3px var(--c3, #ffd978); }
  .bd-knob { top: 150px; right: 8px; width: 22px; height: 8px; border-width: 2px; }
  .slipout { width: 84px; height: 44px; font-size: 13px; padding: 4px 6px; border-width: 2px; bottom: 6px; }
  .s1 { left: -118px; }
  .s2 { left: -58px; bottom: 0; }
  .sticker { width: 86px; height: 86px; left: -84px; top: 30px; font-size: 12.5px; border-width: 3px; }
  .sticker small { font-size: 8.5px; }
  .c-strip { margin: 0 -16px; padding: 34px 10px 18px; }
  .minis { grid-template-columns: repeat(12, 1fr); row-gap: 22px; }
  .mini { width: 22px; height: 36px; border-width: 3px 2px 0; }
  .mini::after { left: -4px; right: -4px; height: 3px; bottom: -3px; }
  .mini .lf::before, .mini .lf::after { border-width: 1px; left: 20%; right: 20%; }
  .mini i { right: 1px; width: 4px; height: 4px; margin-top: -2px; border-width: .5px; }
  .m b { font-size: 11px; }
  .m.s-today .mini { width: 27px; height: 44px; box-shadow: 0 -3px 0 -1px var(--c3), 0 0 12px 1px var(--c3); }
  .m.s-today b { padding: 0 3px; }
  .mini u { width: 12px; height: 7px; bottom: -6px; left: 1px; border-width: 1.5px; }
  .m.s-open .mini::before { font-size: 11px; margin-top: -6px; }
  .key { display: none; }
  .th-today .m-calendar .c-door { margin: 8px 0 0; justify-self: center; }
  .th-today .m-calendar .c-strip { padding: 30px 6px 16px; }

  /* calendar */
  .cal-head { padding: 0 16px 8px; align-items: center; }
  .cal-head h1 { font-size: 26px; }
  .eyebrow { font-size: 12.5px; margin: 0 0 2px; }
  .pill { font-size: 12.5px; padding: 3px 9px; }
  .cta.small { font-size: 14px; padding: 7px 12px; }
  .hint { margin: 0 16px 8px; font-size: 13.5px; }
  .board-loading { margin: 0 16px; height: 480px; }
  .m-calendar > .legend { margin: 12px 16px; font-size: 12px; gap: 4px 12px; }
  .sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; transform: none; border-radius: 20px 20px 0 0; border-bottom: 0; max-height: 86vh; animation: up .3s cubic-bezier(.3, 1.2, .5, 1); padding: 18px 16px 22px; }
  .th-today .sheet { border-radius: 0; box-shadow: 0 -8px 0 var(--c1); }
  .th-street .sheet { box-shadow: 0 -5px 0 var(--accent); }
  @keyframes up { from { transform: translateY(40%); opacity: 0; } }
  .zoom { width: auto; }
  .zoom-grid { gap: 14px 12px; }
  .opening .bigdoor { width: 220px; }
  .opening .bd-frame { height: 360px; }
  .od-street .bd-num { font-size: 84px; top: 40px; }
  .od-street .bd-num::before { width: 100px; height: 92px; margin-left: -50px; }
}

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

/* ---------- 中文（/zh）：系统字体栈，不引外链 ----------
 * 拉丁字体（Nunito / Jost / Caveat）只有拉丁字形，汉字按下面的顺序落到系统字体。
 * 门铃板的手写字：先找手札体 / 楷体，没有再用黑体；今日之门的大字用黑体的最粗一档，不压字距。 */
:lang(zh) {
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei";
  --cjk-hand: "Hannotate SC", "Kaiti SC", STKaiti, KaiTi, "Noto Serif CJK SC", var(--cjk);
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--cjk), system-ui, sans-serif;
  --round: "Nunito", ui-rounded, "SF Pro Rounded", var(--cjk), system-ui, sans-serif;
  --fut: "Jost", "Futura", "Century Gothic", var(--cjk), sans-serif;
  --hand: "Caveat", "Bradley Hand", var(--cjk-hand), cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, var(--cjk), monospace;
  --helv: "Helvetica Neue", Helvetica, Arial, var(--cjk), system-ui, sans-serif;
}
.langs a.cjk { text-transform: none; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-weight: 600; }
:lang(zh) body { line-height: 1.65; }
:lang(zh) .lede, :lang(zh) .prose p { text-wrap: pretty; }
/* 首页副标题也只在标点处换行，免得最后两三个字落单 */
:lang(zh) .hero .lede { word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) .kicker { letter-spacing: .04em; font-size: 13px; }
/* 标题只在标点处换行，不会剩一个字落单 */
:lang(zh) .hero h1, :lang(zh) .page-head h1, :lang(zh) .cal-head h1 { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
:lang(zh) .th-street .hero h1 { font-size: 44px; line-height: 1.22; letter-spacing: .01em; font-weight: 800; }
:lang(zh) .th-bell .hero h1 { font-size: 44px; line-height: 1.2; letter-spacing: 0; font-weight: 600; }
:lang(zh) .th-today .hero h1 { font-size: 50px; line-height: 1.14; letter-spacing: .02em; font-weight: 900; }
:lang(zh) .cal-head h1, :lang(zh) .page-head h1 { line-height: 1.25; letter-spacing: 0; }
:lang(zh) .th-today .cal-head h1, :lang(zh) .th-today .page-head h1 { letter-spacing: .01em; font-weight: 900; }
:lang(zh) .th-street .f-title .lbl { font-size: 12px; letter-spacing: .02em; }
:lang(zh) .th-street .f-title input { font-size: 20px; }
:lang(zh) .th-bell .f-title input { font-size: 21px; }
:lang(zh) .th-bell .create .field, :lang(zh) .th-bell .kicker { letter-spacing: .04em; font-size: 12px; }
:lang(zh) .th-bell .sheet h2, :lang(zh) .th-bell .prose h2 { font-size: 15px; letter-spacing: .04em; }
:lang(zh) .th-today .sheet h2 { letter-spacing: .01em; }
:lang(zh) .p-foot { font-size: 11px; letter-spacing: .02em; }
:lang(zh) .lcd { font-size: 14px; }
:lang(zh) .s-empty .slip, :lang(zh) .s-today .slip b { letter-spacing: .04em; font-size: 12px; }
:lang(zh) .sticker { font-size: 16px; line-height: 1.2; }
:lang(zh) .sticker small { font-size: 12px; letter-spacing: .02em; }
:lang(zh) .slipout { font-size: 15px; line-height: 1.2; white-space: nowrap; padding-top: 10px; }
:lang(zh) .bd-peek small { font-size: 11px; letter-spacing: .04em; }
:lang(zh) .flag { letter-spacing: .06em; }
@media (max-width: 760px) {
  :lang(zh) .th-street .hero h1 { font-size: 28px; line-height: 1.25; }
  :lang(zh) .th-bell .hero h1 { font-size: 27px; line-height: 1.22; }
  :lang(zh) .th-today .hero h1 { font-size: 31px; line-height: 1.18; }
  :lang(zh) .cal-head h1 { font-size: 25px; }
  :lang(zh) .page-head h1 { font-size: 29px; }
  :lang(zh) .slipout { font-size: 12px; padding-top: 7px; }
}

/* 首页的语言提示（浏览器语言有对应版本时，用那种语言写；不自动跳转） */
.lang-offer { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 40px 12px; padding: 9px 14px; border: 2px solid var(--u-line); border-radius: var(--u-radius); background: var(--u-card); font-size: 14px; font-weight: 600; }
.lang-offer:lang(zh) { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
.lang-offer a { font-weight: 800; color: var(--u-accent); }
.lang-offer button { margin-left: auto; border: 0; background: none; padding: 0; color: var(--u-muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
@media (max-width: 760px) {
  .lang-offer { margin: 0 16px 10px; font-size: 13px; }
}

/* ---------- 门数可变（1–31）、入口卡、21 天 flag（dd-build-9） ----------
 * 24 扇时三套的排法不变（不带 .var / 内联变量，走上面原来的规则）；其余门数按 look.ts 的 streetRows / bellGrid / miniRows / zoomCols。 */

/* 首页：四张入口卡（电脑一行四张，手机 2 × 2）、结果条、每张卡自己的控件 */
.picks, .th-bell .picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pick { flex: none; min-width: 0; }
.pick-box small { display: block; }
.plan { margin: 10px 0 4px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--u-fg) 7%, transparent); font-weight: 800; font-size: 13.5px; line-height: 1.35; }
.ctl { display: grid; gap: 8px; margin-top: 6px; }
.ctl .field { margin: 0; }
.ctl .f-day { grid-column: auto; }
.plan-note { margin: 0; font-size: 12.5px; color: var(--u-muted); font-weight: 600; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 5px 12px; border: 2px solid var(--u-line); border-radius: 99px; font-size: 13px; font-weight: 700; background: #fff; color: var(--u-fg); }
.seg input:checked + span { background: var(--u-fg); color: var(--u-bg); }
.seg input:focus-visible + span { outline: 3px solid var(--u-accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 11px; border: 1.5px solid var(--u-line); border-radius: 99px; background: #fff; color: var(--u-fg); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; min-height: 32px; }
.chip:hover, .chip:focus-visible { background: #fff3cf; }
.f-days { display: grid; gap: 6px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border: 2px solid var(--u-line); border-radius: 10px; background: #fff; color: var(--u-fg); font-size: 20px; font-weight: 800; cursor: pointer; }
.field .stepper input { width: 70px; text-align: center; }
.scene-tag { display: block; font-size: 11px; font-weight: 600; color: var(--u-muted); line-height: 1.25; }
.th-street .style-card .scene-tag { grid-column: 2; margin-top: -6px; }
.th-street .create-fields { grid-template-columns: 300px minmax(0, 1fr); }

/* A：不满的行两边补路灯 / 树；人行道上写短日期；新年小标；打卡小勾 */
.street.var { display: flex; flex-wrap: wrap; justify-content: center; }
.street.var .half { grid-template-columns: repeat(var(--m), minmax(0, 1fr)); width: calc(var(--m) * 86px); max-width: 100%; }
.deco { display: block; align-self: end; pointer-events: none; }
.deco svg { display: block; width: 100%; height: auto; }
.pave .pd { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--m, 6), minmax(0, 1fr)); align-items: center; font: 700 10px/1 var(--round); color: var(--muted); text-align: center; pointer-events: none; }
.house .nyb { position: absolute; left: 50%; top: 34%; z-index: 2; transform: translateX(-50%) rotate(4deg); background: var(--plate); color: #fff; border: 2px solid #fff; font: 900 11px/1.2 var(--round); padding: 1px 7px; border-radius: 99px; white-space: nowrap; pointer-events: none; }
.house .ck { position: absolute; right: 8%; top: 46%; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: #1f9d6b; color: #fff; border: 2px solid #fff; font: 900 11px/14px var(--round); text-align: center; pointer-events: none; }

/* B：行列数走内联变量；排不满的格子是一块空白面板；新年角标；打卡后按钮圈变绿 */
.bells[style] { grid-template-columns: repeat(var(--cd), minmax(0, 1fr)); grid-template-rows: repeat(var(--rd), auto); }
.bell.blank { display: block; cursor: default; border-bottom: 1px solid rgb(0 0 0 / .14); background: linear-gradient(180deg, rgb(255 255 255 / .28), rgb(0 0 0 / .04)); }
.bell.blank:not(.bd) { display: none; }
.bells.n1 .bell { padding: 16px 8px; min-height: 56px; }
.slip .nyb { margin-left: auto; padding: 0 5px; border-radius: 3px; background: var(--signal); color: #fff; font: 700 9.5px/1.6 var(--mono); letter-spacing: .04em; text-transform: none; }
.bell.is-checked .knob { background: radial-gradient(circle at 35% 30%, #e6fff1, #3ccf8e 55%, #1f9d6b); box-shadow: 0 0 0 3px #1f9d6b, 0 2px 3px 2px rgb(0 0 0 / .3); }
.bell.is-checked .knob::after { border-color: #fff; }

/* C：小门条不止 24 扇时用 flex（手机按行断开、不满的行居中）；只有 1 扇不出小门条；新年小字；打卡小圆点 */
.minis.var { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; }
.minis.var .m { position: relative; flex: 0 0 calc(100% / var(--n)); max-width: 60px; }
.minis.var .mini { width: min(32px, 86%); }
.minis.var .br { display: none; }
.m { position: relative; }
.tl.nyb { color: #fff; background: var(--c1); padding: 0 4px; letter-spacing: .04em; }
.ckd { position: absolute; top: -12px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #1f9d6b; box-shadow: 0 0 0 2px var(--paper); }
.m.s-today .ckd, .m .tl ~ .ckd { top: -36px; }
.c-strip.solo { padding-top: 18px; }
.sticker .sd { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .04em; }
.zoom-grid[style] { grid-template-columns: repeat(var(--zc, 4), minmax(0, 1fr)); }
.zm small { font: 600 11px var(--fut); color: var(--u-muted); margin-top: -4px; }

/* 日历页：flag 横幅、进度、弹窗里的日期小字、打卡按钮、「也建一个」卡 */
.flag-banner { margin: 6px 0 0; font-weight: 800; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.flag-progress { display: inline-block; margin: 6px 0 0; padding: 3px 11px; border-radius: 99px; background: #1f9d6b; color: #fff; font-weight: 800; font-size: 13px; }
.flag-progress.is-unsynced { background: #a86a12; }
.sheet-when { margin: -8px 0 12px; font-size: 13px; color: var(--u-muted); font-weight: 700; }
.sheet-when:empty { display: none; }
.check { display: block; width: 100%; margin-top: 12px; background: #1f9d6b; border-color: #1f9d6b; }
.check.is-on { background: transparent; color: var(--u-fg); border: 2px solid var(--u-line); }
.card.viral { max-width: 760px; margin: 18px auto; text-align: left; }
.card.viral h2 { margin: 0 0 6px; font-family: var(--u-display); }
.card.viral p { margin: 0 0 8px; }

@media (max-width: 760px) {
  .picks, .th-bell .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick-box b { font-size: 15px; }
  .pick-box small { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .street.var .half { width: min(100%, calc(var(--m) * 96px)); margin: 0 auto; }
  .deco { aspect-ratio: 56 / 106; overflow: hidden; }
  .pave.dated { height: 14px; }
  .pave .pd { font-size: 9px; }
  .house .nyb { top: 22%; font-size: 9px; padding: 0 5px; border-width: 1.5px; }
  .house .ck { top: 4px; right: 4px; width: 15px; height: 15px; font-size: 9px; line-height: 11px; border-width: 1.5px; }
  .bells[style] { grid-template-columns: repeat(var(--cp), minmax(0, 1fr)); grid-template-rows: repeat(var(--rp), auto); }
  .bell.blank:not(.bd) { display: block; }
  .bell.blank:not(.bp) { display: none; }
  .bells.tight .bell { padding-top: 2px; padding-bottom: 2px; }
  .bells.n1 .bell { padding: 12px 6px; min-height: 56px; }
  .minis.var .m { flex-basis: calc(100% / var(--pc)); max-width: 44px; }
  .minis.var .mini { width: 22px; }
  .minis.var .m.s-today .mini { width: 27px; }
  .minis.var .br { display: block; flex: 0 0 100%; height: 0; }
  .ckd { top: -8px; width: 7px; height: 7px; margin-left: -3.5px; }
  .m.s-today .ckd, .m .tl ~ .ckd { top: -27px; }
  .flag-banner { font-size: 14px; }
  .flag-progress { font-size: 12px; }
  /* 点击区域至少 44px 高（grok 12-04 复测：门铃 34 / 30px，今日之门小门 36px）。门铃整行就是按钮，直接给最小高度；
     小门看起来不变，按钮里垫一块透明的 .hit 往上下左右扩出去，盖住门下面的门号，不碰到旁边和下一排 */
  button.bell, .bells.tight button.bell { min-height: 44px; }
  .mini .hit { inset: -6px -4px -16px; }
}
.mini .hit { position: absolute; inset: -4px -6px -18px; z-index: 3; background: transparent; text-decoration: none; }
/* 反馈：页脚一行小字链接；帮助页底下一张表单和「你发过的反馈」 */
.foot .fb-foot { margin-top: 10px; font-size: 13px; }
.foot .fb-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fb-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--u-accent); color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
.fb-badge[hidden] { display: none; }
.m-help .feedback { max-width: 860px; margin: 18px auto; scroll-margin-top: 16px; }
.feedback h2 { margin: 0 0 6px; font-family: var(--u-display); }
.feedback > p { margin: 0 0 14px; color: var(--u-muted); }
.fb-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-form textarea { resize: vertical; min-height: 96px; }
.fb-list { display: grid; gap: 12px; margin-top: 16px; }
.fb-list[hidden] { display: none; }
.fb-mine-h { margin: 0; font-size: 17px; font-family: var(--u-display); }
.fb-ticket { border-top: 2px solid color-mix(in srgb, var(--u-line) 15%, transparent); padding-top: 10px; }
.fb-ticket-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.fb-ticket-status { color: var(--u-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.fb-ticket[data-unread] .fb-ticket-status { color: var(--u-accent); }
.fb-ticket-msg { margin-top: 8px; padding: 8px 10px; border-radius: calc(var(--u-radius) * .7); background: color-mix(in srgb, var(--u-fg) 5%, transparent); }
.fb-ticket-msg[data-from="site"] { background: color-mix(in srgb, var(--u-accent) 10%, transparent); }
.fb-ticket-who { font-size: 12px; color: var(--u-muted); }
.fb-ticket-text { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .m-help .feedback { margin: 16px; }
}
