@font-face { font-family: "Schibsted Grotesk"; src: url("/static/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
             font-weight: 400 900; font-style: normal; font-display: swap; }
:root {
  --bg: #f4f2ee; --card: #fff; --ink: #1c1b19; --muted: #6b665e; --line: #e2ded6;
  --accent: #1f4d3a; --accent-ink: #fff; --warn: #8a2c1a; --warn-bg: #fbeae5; --ok-bg: #e4f1e9;
  --mark: #0C1E2E; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #151614; --card: #1f201d; --ink: #ecebe6; --muted: #a09c92; --line: #33342f;
          --accent: #7fc8a4; --accent-ink: #10231a; --warn: #f0a391; --warn-bg: #3a1d16; --ok-bg: #1c3327;
          --mark: #fff; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #151614; --card: #1f201d; --ink: #ecebe6; --muted: #a09c92; --line: #33342f;
          --accent: #7fc8a4; --accent-ink: #10231a; --warn: #f0a391; --warn-bg: #3a1d16; --ok-bg: #1c3327;
          --mark: #fff; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.5 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px;
         padding: 12px 16px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em;
         display: flex; align-items: center; gap: 8px; font-size: 18px; }
.brand .mark { flex: none; color: var(--mark); }
.theme { display: flex; align-items: center; }
.theme button { font-size: 18px; line-height: 1; padding: 6px 8px; min-height: 0; text-decoration: none; }
/* Without a stored choice, show the switch for whatever the device is using. */
.theme .to-dark { display: inline; } .theme .to-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .to-dark { display: none; }
                                      :root:not([data-theme="light"]) .theme .to-light { display: inline; } }
:root[data-theme="dark"] .theme .to-dark { display: none; } :root[data-theme="dark"] .theme .to-light { display: inline; }
:root[data-theme="light"] .theme .to-dark { display: inline; } :root[data-theme="light"] .theme .to-light { display: none; }
/* Header: the ask box on every page, and the Autopilot / HQ pills */
header { flex-wrap: wrap; }
.hask { display: flex; align-items: center; gap: 4px; flex: 1 1 260px; max-width: 460px; min-width: 0;
        background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 12px; }
.hask input[name="question"] { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; padding: 6px 0; outline: none; }
.hask input[name="question"]:focus { box-shadow: none; }
.hask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ok-bg); }
.hask select { border: 0; background: transparent; font-size: 12.5px; color: var(--muted); max-width: 120px; padding: 4px 0; }
.hask button { font-size: 18px; line-height: 1; padding: 4px 8px; min-height: 0; border-radius: 999px; }
.pills { display: flex; gap: 6px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); text-decoration: none;
        border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--card); white-space: nowrap; }
.pill b { font-weight: 700; }
.pill .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.pill.on .dot { background: var(--lamp-green); box-shadow: 0 0 6px var(--lamp-green); }
.pill.warn .dot { background: var(--lamp-amber); box-shadow: 0 0 6px var(--lamp-amber); }
.pill.warn b { color: #b7791f; }
.pill.held .dot { background: var(--muted); }
.pill.held b { color: var(--muted); }
.pill.hq.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill:hover { border-color: var(--muted); }
.autopilot { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap;
             padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin: 0 0 18px; }
.autopilot h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.autopilot p { margin: 0; }
.autopilot form { flex: none; }
@media (max-width: 799px) {
  .hask { order: 10; flex-basis: 100%; max-width: none; }
  .pills { order: 9; }
  .pill .dot { display: none; }
}
.who { margin-left: auto; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-size: 24px; margin: 16px 0; }
h2 { font-size: 19px; margin: 0; }
h2.section { margin: 32px 0 8px; font-size: 16px; color: var(--muted); }
a { color: var(--accent); }
.count { color: var(--muted); font-weight: 400; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
        padding: 16px; margin: 0 0 16px; }
.narrow { max-width: 440px; margin: 32px auto; }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.chapter { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sub { margin: 2px 0 0; color: var(--muted); }
.amount { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; margin: 14px 0; }
dt { font-size: 12px; color: var(--muted); }
dd { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.flags { list-style: none; padding: 0; margin: 12px 0; font-size: 14px; }
.flags li { padding: 8px 10px; border-left: 3px solid var(--line); margin-bottom: 6px; color: var(--muted); }
.flags li.serious { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.problem { color: var(--warn); }
.banner, .notice { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; }
.banner { background: var(--warn-bg); font-weight: 600; }
.notice { background: var(--ok-bg); }
.empty { color: var(--muted); }
label { display: block; font-size: 14px; margin-bottom: 4px; }
h3 { font-size: 15px; margin: 20px 0 6px; }
.card form { margin-top: 8px; }
label input { margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; }
/* Every box a person types or picks in looks the same: same height, same
   border, full width. Date, time and number boxes used to fall back to the
   browser's small default. */
input[type=email], input[type=text], input[type=date], input[type=time], input[type=datetime-local],
input[type=number], input[type=url], input[type=tel], input[type=search], input[type=password],
input:not([type]), textarea { width: 100%; padding: 12px; font: inherit; border: 1px solid var(--line);
                    border-radius: 8px; background: var(--card); color: var(--ink); margin-bottom: 12px;
                    min-height: 46px; box-sizing: border-box; display: block; }
input[type=date], input[type=time], input[type=datetime-local] { appearance: none; -webkit-appearance: none; line-height: 1.3; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator { cursor: pointer; padding: 4px; opacity: .7; }
select { min-height: 46px; box-sizing: border-box; }
textarea { min-height: 0; }
button, .button { font: inherit; font-weight: 600; padding: 12px 18px; border-radius: 8px; cursor: pointer;
                  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
                  text-decoration: none; display: inline-block; min-height: 44px; }
button.secondary, .button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
button.quiet { background: transparent; color: var(--muted); border: 0; padding: 4px; min-height: 0; font-weight: 400; text-decoration: underline; }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.buttons { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.buttons button { flex: 1; }
@media (min-width: 520px) { .buttons button { flex: 0 0 auto; min-width: 140px; } }
.recent { list-style: none; padding: 0; font-size: 14px; }
.recent li { padding: 8px 0; border-top: 1px solid var(--line); }
.status { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-right: 6px; }
.status.failed, .status.approved { color: var(--warn); }
.small { font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.row form, .card form.row { margin: 0; }
.status.on { color: var(--accent); font-weight: 600; }
.status.off { color: var(--muted); }
select { width: 100%; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); margin-bottom: 12px; }

/* Left navigation: open by default on wide screens, behind the menu button on phones. No script. */
.nav-toggle { display: none; }
.burger { font-size: 22px; cursor: pointer; padding: 4px 8px; margin-right: 4px; user-select: none; }
.shell { display: flex; align-items: flex-start; }
.side { display: flex; flex-direction: column; gap: 2px; width: 220px; flex: none; padding: 16px 12px;
        border-right: 1px solid var(--line); min-height: calc(100vh - 57px); position: sticky; top: 0; }
.side a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.side a:hover { background: var(--card); }
.side a.current { background: var(--accent); color: var(--accent-ink); }
.shell > main { flex: 1; min-width: 0; max-width: 1080px; }
/* Your team: one line per module with a presence dot. */
.team { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0; }
.team-h { margin: 0 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side .tm { display: grid; grid-template-columns: 10px 1fr; grid-template-rows: auto auto; gap: 0 8px; align-items: center;
            padding: 5px 12px; font-size: 13px; font-weight: 500; line-height: 1.25; }
.tm .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); grid-row: 1 / 3; }
.tm.idle .dot { background: var(--lamp-green); opacity: .55; }
.tm.working .dot { background: var(--lamp-green); box-shadow: 0 0 6px var(--lamp-green); }
.tm.paused .dot { background: var(--lamp-amber); box-shadow: 0 0 6px var(--lamp-amber); }
.tm.failed .dot { background: var(--lamp-red); box-shadow: 0 0 6px var(--lamp-red); }
@media (prefers-reduced-motion: no-preference) { .tm.working .dot { animation: breathe 1.6s ease-in-out infinite; } }
.tm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tm-state { font-size: 11px; color: var(--muted); grid-column: 2; }
.tm.paused .tm-state { color: var(--lamp-amber); } .tm.failed .tm-state { color: var(--warn); }
@media (max-width: 799px) { .team { margin-top: 8px; } }
@media (min-width: 800px) {
  .nav-toggle:checked ~ .shell .side { display: none; }
}
@media (max-width: 799px) {
  .shell { display: block; }
  .side { display: none; position: fixed; top: 57px; left: 0; right: 0; width: auto; min-height: 0;
          background: var(--bg); border-right: 0; border-bottom: 1px solid var(--line);
          box-shadow: 0 12px 24px rgba(0,0,0,.12); z-index: 5; }
  .nav-toggle:checked ~ .shell .side { display: flex; }
  .who button { white-space: nowrap; }
}

/* Module and account cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.module { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--bg); min-width: 0; }
.module h4 { margin: 0; font-size: 16px; }
.module h4 .small { font-weight: 400; margin-left: 6px; }
.module.on { border-color: var(--accent); }
.module.locked { opacity: .7; }
.module-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.module-top form { margin: 0; }
.module .state { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.module .state.ok { color: var(--accent); font-weight: 600; }
.module .state.problem { color: var(--warn); font-weight: 600; }
.module.account form { margin-top: 10px; }
.module.account input:not([type]) { width: 100%; }
.switch { width: 46px; height: 26px; min-height: 0; padding: 0; border-radius: 13px; border: 1px solid var(--line);
          background: var(--line); position: relative; cursor: pointer; flex: none; }
.switch span { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
               background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.switch.is-on { background: var(--accent); border-color: var(--accent); }
.switch.is-on span { left: 22px; }
.switch:disabled { opacity: .4; cursor: not-allowed; }
.item { padding: 8px 0; border-top: 1px solid var(--line); }
h3 .count { font-size: 13px; margin-left: 6px; }
details summary { cursor: pointer; margin: 8px 0; }
input[type=file] { display: block; margin: 4px 0 12px; }
pre.doc { white-space: pre-wrap; font: inherit; margin: 0; }
.status.planned { color: var(--accent); } .status.closed { color: var(--muted); }
.card .grid { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; margin-bottom: 6px; }
label.choice { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 15px; }
label.choice input { margin: 0; width: 18px; height: 18px; }
.card > h3:first-child { margin-top: 0; }

/* ---------- Today ---------- */
main.wide { max-width: 1180px; }
.today-root, main.wide {
  --band: #0c1e2e; --band-ink: #eef3f7; --band-muted: #9cb2c4; --band-line: #22394d; --band-today: #163049;
  --m-event: #7fd0a8; --m-vendor: #f2b43c; --m-mine: #ffffff; --m-item: #9cb2c4; --m-late: #ff9a85;
  --ok: #1f7a55; --late: #b8432a;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main.wide {
  --band: #0f2436; --band-line: #213a50; --band-today: #1a3954; --ok: #4fbf8c; --late: #f0806a;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; } }
:root[data-theme="dark"] main.wide {
  --band: #0f2436; --band-line: #213a50; --band-today: #1a3954; --ok: #4fbf8c; --late: #f0806a;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; }

h1.hello { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 12px 0 16px; }

/* The two-week band: the one loud thing on the page. */
.band { background: var(--band); color: var(--band-ink); border-radius: 18px; padding: 20px 20px 14px; margin: 0 0 16px; }
.band-where { margin: 0; color: var(--band-muted); font-size: 14px; }
.band-say { margin: 2px 0 16px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; max-width: 60ch; }
.tl { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(88px, 1fr); gap: 4px; overflow-x: auto;
      padding-bottom: 6px; scrollbar-width: thin; }
.tl-col { display: flex; flex-direction: column; gap: 4px; min-height: 132px; padding: 8px 6px; border-radius: 10px;
          border: 1px solid var(--band-line); min-width: 0; }
.tl-col.weekend { background: rgba(255,255,255,.025); }
.tl-col.is-today { background: var(--band-today); border-color: var(--m-event); }
.tl-late { border-style: dashed; }
.tl-late.has { border-color: var(--m-late); border-style: solid; background: rgba(255,154,133,.08); }
.tl-day { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.tl-dow { font-size: 12px; color: var(--band-muted); }
.is-today .tl-dow { color: var(--m-event); font-weight: 700; }
.tl-num { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.tl-late.has .tl-num, .tl-late.has .tl-dow { color: var(--m-late); }
.mk { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.25; color: var(--band-ink);
      text-decoration: none; border-radius: 6px; padding: 3px 5px; min-width: 0; }
.mk span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; hyphens: auto; }
.mk::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--m-item); }
.mk.event { background: var(--m-event); color: #0c1e2e; font-weight: 700; }
.mk.event::before { display: none; }
.mk.vendor::before { background: var(--m-vendor); border-radius: 1px; transform: rotate(45deg); }
.mk.mine::before { background: var(--m-mine); }
.mk.other::before { background: transparent; border: 1.5px solid var(--m-item); }
.mk.late::before { background: var(--m-late); }
.mk.late { color: #ffd9d0; }
.mk.more { color: var(--band-muted); }
.mk.more::before { display: none; }
.mk:hover, .mk:focus-visible { background: rgba(255,255,255,.1); }
.mk.event:hover { background: #a3e3c3; }
.tl-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 2px 0; padding: 0; font-size: 12px; color: var(--band-muted); }
.tl-key li { display: flex; align-items: center; gap: 6px; }
.k { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.k.event { background: var(--m-event); border-radius: 3px; width: 14px; }
.k.vendor { background: var(--m-vendor); border-radius: 1px; transform: rotate(45deg); }
.k.mine { background: var(--m-mine); } .k.other { border: 1.5px solid var(--m-item); } .k.late { background: var(--m-late); }

/* Icons (the old stat tiles are gone; chooser tiles are styled further down) */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }

/* Two-up sections */
.dash { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 900px) { .dash { grid-template-columns: 3fr 2fr; } .dash + .dash { grid-template-columns: 1fr 1fr; } }
main.wide .card { border-radius: 14px; }
.priorities ol { list-style: none; margin: 4px 0 0; padding: 0; }
.priorities li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.priorities li:last-child { border-bottom: 0; }
.rank { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
        font-size: 13px; font-weight: 700; background: var(--bg); color: var(--muted); transform: translateY(-1px); }
.priorities li.warn .rank { background: var(--late); color: #fff; }
.priorities li.accent .rank { background: var(--accent); color: var(--accent-ink); }
.priorities li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.priorities li a:hover { text-decoration: underline; }

/* Ownership */
.track { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.ring { width: 76px; height: 76px; flex: none; }
.ring circle { fill: none; stroke-width: 10; }
.ring-late { stroke: var(--late); } .ring-ok { stroke: var(--ok); stroke-linecap: butt; }
.track-pct { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.track-say { font-size: 13px; color: var(--muted); }
ul.owner-list { list-style: none; padding: 0; margin: 0; }
ul.owner-list li { display: grid; grid-template-columns: 30px minmax(70px, 9em) 1fr 22px; align-items: center; gap: 10px; padding: 5px 0; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.av.s1 { background: var(--s1); } .av.s2 { background: var(--s2); } .av.s3 { background: var(--s3); color: #0b1d14; }
.av.s4 { background: var(--s4); color: #2a1d00; } .av.s5 { background: var(--s5); color: #2b0f1a; } .av.s6 { background: var(--s6); }
.who-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-bar { width: 100%; height: 10px; }
.seg-late { fill: var(--late); } .seg-ok { fill: var(--ok); }
.who-n { font-size: 14px; font-weight: 700; text-align: right; }
.key-line { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.k-late, .k-ok { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.k-late { background: var(--late); } .k-ok { background: var(--ok); margin-left: 10px; }

/* Events */
.events-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 16px; }
.ev { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; background: var(--card);
      border: 1px solid var(--line); color: var(--ink); text-decoration: none; border-top: 4px solid var(--m-event); }
.ev:hover { border-color: var(--accent); }
.ev-count { display: flex; align-items: baseline; gap: 6px; }
.ev-n { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ev-unit { font-size: 14px; color: var(--muted); }
.ev-name { font-size: 18px; font-weight: 700; margin-top: 6px; letter-spacing: -.01em; }
.ev-meta { font-size: 13px; color: var(--muted); }
.ev-facts { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.ev-facts b { color: var(--ink); font-size: 16px; }
.ev-facts .problem b { color: var(--late); }
svg.bar { display: block; width: 100%; height: 6px; margin: 8px 0 0; }
svg.bar .track { fill: var(--line); } svg.bar .fill { fill: var(--ok); } svg.bar.over .fill { fill: var(--late); }

/* Lists */
.row-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.row-item > div { flex: 1; min-width: 0; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.dot.d-late { background: var(--late); } .dot.d-mine { background: var(--accent); } .dot.d-other { border: 2px solid var(--muted); }
.dot.d-vendor { background: var(--m-vendor); border-radius: 2px; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .band { animation: band-in .5s ease-out both; }
  @keyframes band-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
/* Files */
.search { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.search label { flex: 1; min-width: 200px; margin: 0; } .search input { width: 100%; }
label.choice.file { align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
label.choice.file input { margin-top: 4px; }
.folder-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.crumbs { font-size: 14px; margin: 0 0 8px; }
/* Recordings */
.recordings form.rec { border-top: 1px solid var(--line); padding: 12px 0; margin: 0; }
.rec-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rec-links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-top: 12px; }
.rec-links form { margin: 0; display: flex; align-items: center; gap: 8px; }
/* Activity feed */
ol.feed { list-style: none; margin: 0; padding: 0; }
ol.feed li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
ol.feed li:first-child { border-top: 0; }
.f-av { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
        font-size: 13px; font-weight: 700; background: var(--bg); color: var(--muted); }
.f-av.agent { background: var(--accent); color: var(--accent-ink); }
.f-av.person { border-radius: 50%; }
.f-who { font-weight: 700; }
.f-label { font-size: 13px; color: var(--muted); }
.f-failed .f-label, .f-rejected .f-label { color: var(--warn); font-weight: 600; }
.f-needs_approval .f-label { color: var(--accent); font-weight: 600; }
.f-text { font-size: 14px; overflow-wrap: anywhere; }
.team h3 { display: flex; justify-content: space-between; align-items: baseline; }
/* Ask */
.ask { margin: 0 0 18px; }
.ask-label { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ask-row { display: flex; gap: 8px; }
.ask-row input { flex: 1; min-width: 0; font-size: 17px; padding: 14px 16px; border-radius: 12px; }
.ask-form select { margin-bottom: 8px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 10px; }
.qa .q { margin: 0 0 6px; font-weight: 700; }
.qa .a { margin: 0; white-space: pre-line; }
.qa .thinking { color: var(--muted); }
.qa.failed .a { color: var(--warn); }
ul.props { list-style: none; padding: 0; margin: 10px 0 0; }
ul.props li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
ul.props form { margin: 0; flex: none; }
.small.ok { color: var(--accent); font-weight: 600; }
details.qa-old { margin-top: 6px; }
details.qa-old summary { cursor: pointer; font-size: 14px; color: var(--muted); padding: 4px 2px; }
/* Corrections */
.lines-edit .pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lines-edit select { font-size: 13px; padding: 6px 8px; max-width: 100%; }
.lines-edit > button { margin-top: 10px; }
.learned { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.lines-edit > button + .small { display: block; margin-top: 6px; }
/* Routines */
.routine { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.routine:first-child { border-top: 0; }
.routine.off { opacity: .55; }
.routine form { margin: 0; }
.when { display: flex; flex-wrap: wrap; gap: 8px; }
.routine-form label { margin-bottom: 10px; }
.routine-form input[type=number] { display: block; width: 100%; font: inherit; padding: 12px; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
ul.finds { list-style: none; padding: 0; margin: 0 0 14px; }
ul.finds li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 9px 0; border-top: 1px solid var(--line); }
ul.finds label { flex: 1 1 14em; overflow-wrap: anywhere; }
pre.filter { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.item.done strong { text-decoration: line-through; color: var(--muted); }
.item.done .small { color: var(--muted); }
form.inline-done { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }
.pbody { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.pick { margin-left: auto; display: inline-flex; align-items: baseline; gap: 14px; font-size: 13px; white-space: nowrap; }
.pick form { margin: 0; }
.priorities li .pick a, .priorities li .pick button.link { font-weight: 400; text-decoration: underline; color: var(--muted); }
/* roadmap */
.roadmap { padding: 18px 20px; margin-bottom: 18px; }
.rm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rm-head h2 { margin: 0; font-size: 20px; }
.rm-count { font-weight: 700; color: var(--accent); }
.rm-bar { display: block; width: 100%; height: 8px; margin: 10px 0 8px; }
.rm-bar-bg { fill: var(--line); }
.rm-bar-done { fill: var(--accent); }
.rm-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.rm-steps li { border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.rm-steps li.all { border-color: var(--accent); color: var(--accent); }
.rm-next { border: 2px solid var(--accent); border-radius: 10px; padding: 14px 16px; background: var(--ok-bg); }
.rm-next.all-done { border-style: dashed; }
.rm-label { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.rm-next h3 { margin: 0 0 6px; font-size: 18px; }
.rm-next p { margin: 0 0 10px; }
.rm-go { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.rm-go .button, .rm-go button { margin: 0; }
.rm-form { display: inline; margin: 0 !important; }
.rm-list { list-style: none; padding: 0; margin: 14px 0 0; }
.rm-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.rm-list details { flex: 1; min-width: 0; }
.rm-list summary { cursor: pointer; list-style: none; }
.rm-list summary::-webkit-details-marker { display: none; }
.rm-list details p { margin: 6px 0; color: var(--muted); font-size: 14px; }
.rm-list .rm-go { font-size: 13px; }
.rm-title { font-weight: 600; }
.rm-step { font-size: 12px; color: var(--muted); margin-left: 6px; }
.rm-list li.later .rm-title { color: var(--muted); }
.rm-list li.done .rm-title { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.box, button.box { flex: none; width: 26px; height: 26px; border: 2px solid var(--accent); border-radius: 6px; background: var(--card); padding: 0; margin: 0; cursor: pointer; display: inline-block; }
button.box { min-height: 0; min-width: 0; line-height: 0; }
button.box:hover { background: var(--ok-bg); }
button.link { min-height: 0; font-weight: 400; }
.box.auto { border-style: dashed; border-color: var(--muted); cursor: default; }
.box.checked { background: var(--accent); position: relative; }
.box.checked::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dash.one { grid-template-columns: 1fr !important; }
.cover-pick { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); margin: 6px 0 0 !important; }
.cover-pick select { font: inherit; padding: 2px 4px; }
.cover-note { margin-bottom: 16px; }
/* team rooms */
.room-note { margin-bottom: 14px; }
.room { max-width: 760px; }
#room-msgs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-width: 92%; }
.msg.mine { align-self: flex-end; border-color: var(--accent); }
.msg.claude { border-left: 4px solid var(--accent); background: var(--ok-bg); }
.msg-head { font-size: 14px; margin-bottom: 3px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--accent); border-radius: 8px; background: var(--card); }
.offer-q { flex: 1 1 14em; font-weight: 600; }
.offer form { margin: 0 !important; }
.offer button { min-height: 34px; padding: 6px 12px; }
.offer.declined { opacity: .6; border-style: dotted; }
.composer { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0; background: var(--bg); padding: 8px 0; }
.composer textarea { flex: 1; }
.storage-row { border-top: 1px solid var(--line); padding: 8px 0; }
.storage-row p { margin: 0 0 4px; }
img.shot { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; }
/* settings */
.settings { margin-bottom: 28px; }
.settings-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.settings-head h2 { margin: 0; }
.settings h3 { margin: 22px 0 6px; }
.grid.team .module { display: flex; flex-direction: column; }
.module .manage { margin: auto 0 0; padding-top: 8px; }
.module .manage .button { padding: 8px 14px; min-height: 36px; font-size: 14px; }
.conn-list { list-style: none; padding: 0; margin: 0; }
.conn-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.conn-list li a { margin-left: auto; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dot.ok { background: var(--accent); } .dot.warn { background: var(--warn); }
.agent-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.agent-head h1 { margin: 0; } .agent-head p { margin: 2px 0 0; }
.card.acct h4.acct-title { margin-top: 0; }
.brand { display: inline-block; vertical-align: middle; margin-right: 8px; border-radius: 5px; }
.brand.chip { width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .02em; background: var(--accent); color: var(--accent-ink); }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.pill.ok { border-color: var(--accent); color: var(--accent); }
h4.acct-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h4.acct-title .pill { margin-left: auto; }
.purge { border-color: var(--warn); }

/* Integrations directory: every outside service by name, one button each. */
.int-callout { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--accent);
  border-radius: 10px; background: var(--bg); margin: 8px 0 18px; font-size: 14px; }
.int-callout .button { flex: none; }
.int-summary { margin: 4px 0 8px; }
.int-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.int-jump a { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.int-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.int-tile { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--bg); min-width: 0; display: flex; flex-direction: column; }
.int-tile.on, .int-tile.you { border-color: var(--accent); }
.int-tile.soon { opacity: .6; }
.int-tile h4 { margin: 0; font-size: 16px; flex: 1; min-width: 0; }
.int-head { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.int-head .brand { width: 28px; height: 28px; line-height: 28px; }
.int-tile p { margin: 6px 0 0; }
.int-note { font-weight: 600; overflow-wrap: anywhere; }
.int-go { margin-top: auto !important; padding-top: 10px; }
.uses { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.uses .use { display: inline-flex; align-items: center; gap: 2px; }
.uses .brand { width: 18px; height: 18px; line-height: 18px; font-size: 8px; margin-right: 2px; }
.pill.warn { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }
.int-tile.warn { border-color: var(--warn); }
.int-state { margin: 8px 0 0 !important; }

/* ---------------------------------------------------------------- Today: the cockpit
   One dark instrument deck carries the boldness; everything below it is quiet.
   Lamps follow annunciator convention: amber needs you, red is late, green is clear. */
:root { --deck: #0f1b2a; --deck-2: #16273b; --deck-line: #253a52; --deck-ink: #e8eef5; --deck-muted: #8fa4ba;
        --lamp-amber: #f5b544; --lamp-red: #ff7a66; --lamp-green: #5ed19a; }
.deck { background: var(--deck); color: var(--deck-ink); border-radius: 20px; padding: 18px; margin: 0 0 18px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.deck-where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0 4px 14px; }
.deck-place { margin: 0; font-weight: 700; font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.deck-place span { font-weight: 400; color: var(--deck-muted); }
.deck-say { margin: 0; flex: 1 1 320px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.35; color: var(--deck-ink); }
.deck-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .deck-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .deck-row { grid-template-columns: 1.3fr repeat(7, minmax(0, 1fr)); } }
.dial, .inst { background: var(--deck-2); border: 1px solid var(--deck-line); border-radius: 14px; color: inherit;
               text-decoration: none; min-width: 0; }
.dial:hover, .inst:hover { border-color: var(--deck-muted); }
.dial:focus-visible, .inst:focus-visible { outline: 2px solid var(--lamp-amber); outline-offset: 2px; }
.dial { display: flex; align-items: center; gap: 12px; padding: 10px 14px; grid-column: span 2; }
@media (min-width: 1100px) { .dial { grid-column: auto; flex-direction: column; justify-content: center; gap: 4px; } }
.dial svg { width: 78px; height: 78px; flex: none; }
.dial-track { fill: none; stroke: var(--deck-line); stroke-width: 7; }
.dial-fill { fill: none; stroke: var(--lamp-green); stroke-width: 7; stroke-linecap: round; }
.dial-num { fill: var(--deck-ink); font-size: 19px; font-weight: 800; text-anchor: middle; font-variant-numeric: tabular-nums; }
.dial-of { fill: var(--deck-muted); font-size: 12px; font-weight: 600; }
.dial-sub { fill: var(--deck-muted); font-size: 9px; text-anchor: middle; }
.dial-label { font-size: 13px; color: var(--deck-muted); }
.inst { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 12px 14px; }
.inst-val { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inst-label { font-size: 12.5px; color: var(--deck-ink); line-height: 1.25; }
.inst-note { font-size: 11.5px; color: var(--deck-muted); line-height: 1.3; overflow: hidden; display: -webkit-box;
             -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.spark { width: 100%; height: 24px; margin-top: auto; padding-top: 6px; display: block; overflow: visible; }
.spark-line { fill: none; stroke: var(--deck-muted); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-area { fill: var(--deck-muted); opacity: .12; }
.spark-dot { fill: var(--deck-ink); }
.inst.warn .spark-line { stroke: var(--lamp-red); } .inst.warn .spark-area { fill: var(--lamp-red); }
.inst.accent .spark-line { stroke: var(--lamp-amber); } .inst.accent .spark-area { fill: var(--lamp-amber); }
.inst.ok .spark-line { stroke: var(--lamp-green); } .inst.ok .spark-area { fill: var(--lamp-green); }
@media (max-width: 639px) { .spark { height: 16px; padding-top: 4px; } }
.lamp { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--deck-line); }
.inst.accent .lamp { background: var(--lamp-amber); box-shadow: 0 0 8px var(--lamp-amber); }
.inst.warn .lamp { background: var(--lamp-red); box-shadow: 0 0 8px var(--lamp-red); }
.inst.ok .lamp { background: var(--lamp-green); }
.inst.warn .inst-val { color: var(--lamp-red); }
.inst.accent .inst-val { color: var(--lamp-amber); }
.inst.warn { border-color: rgba(255,122,102,.45); }
@media (prefers-reduced-motion: no-preference) {
  .inst.warn .lamp { animation: lamp 2.4s ease-in-out infinite; }
  @keyframes lamp { 50% { box-shadow: 0 0 2px var(--lamp-red); opacity: .65; } }
}

/* Only you can do these: at most three cards on the deck; the rest is one link. */
.deck-h { margin: 16px 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
          color: var(--deck-muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.deck-h span { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.you-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .you-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.you-card { position: relative; background: var(--deck-2); border: 1px solid var(--deck-line); border-left: 4px solid var(--lamp-amber);
            border-radius: 14px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.you-card.ask { border-left-color: var(--lamp-red); }
.you-card.fix { border-left-color: var(--lamp-red); }
.you-card.deadline, .you-card.chase { border-left-color: var(--lamp-amber); }
.you-card.do, .you-card.prepare, .you-card.reply { border-left-color: var(--lamp-green); }
.you-pill { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
            color: var(--deck-ink); background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px 8px; }
.you-title { margin: 2px 0 0; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--deck-ink);
             overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.you-why { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--deck-muted);
           overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.you-go { margin-top: auto; align-self: flex-start; padding-top: 6px; }
.you-card .button { margin-top: 8px; }
.you-more { display: flex; align-items: center; }
.you-more a { color: var(--deck-muted); font-size: 14px; padding: 6px 4px; }
@media (min-width: 720px) { .you-more { grid-column: 1 / -1; justify-content: flex-end; } }

/* Running itself: one chip per module with a lamp and its last line of work. */
.run-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.run { position: relative; display: flex; color: inherit; text-decoration: none; flex-direction: column; gap: 1px; background: var(--deck-2); border: 1px solid var(--deck-line);
       border-radius: 10px; padding: 8px 10px 8px 26px; min-width: 0; }
.run .lamp { top: 13px; left: 10px; right: auto; width: 8px; height: 8px; }
.run.working .lamp { background: var(--lamp-green); box-shadow: 0 0 8px var(--lamp-green); }
.run.idle .lamp { background: var(--lamp-green); opacity: .55; }
.run.paused .lamp { background: var(--lamp-amber); box-shadow: 0 0 6px var(--lamp-amber); }
.run.failed .lamp { background: var(--lamp-red); box-shadow: 0 0 6px var(--lamp-red); }
.run:hover { border-color: var(--deck-muted); }
@media (prefers-reduced-motion: no-preference) {
  .run.working .lamp { animation: breathe 1.6s ease-in-out infinite; }
  @keyframes breathe { 50% { opacity: .45; } }
}
.run-job { font-size: 12.5px; font-weight: 700; color: var(--deck-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-line { font-size: 12px; line-height: 1.3; color: var(--deck-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run.paused .run-line { color: var(--lamp-amber); }
.run.failed .run-line { color: var(--lamp-red); }
.run-ago { opacity: .8; }

/* Ticker: the last five things any module did, one line each, under the deck. */
.ticker { list-style: none; margin: -8px 0 18px; padding: 0 6px; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 13px; color: var(--muted); }
.ticker li { display: inline-flex; gap: 5px; align-items: baseline; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lamp-green); flex: none; align-self: center; opacity: .7; }
.ticker b { color: var(--ink); font-weight: 600; }
.tk-ago { opacity: .75; }
@media (max-width: 639px) { .ticker { flex-direction: column; } }

.ck-main { display: grid; grid-template-columns: 1fr; gap: 0 18px; align-items: start; }
@media (min-width: 960px) { .ck-main { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.ck-main .roadmap { margin-top: 0; }
.ck-right > * { margin-top: 0; }
.ck-right .card + .card, .ck-right .card + a, .ck-right a + a { margin-top: 12px; }
.ck-grid3 { display: grid; grid-template-columns: 1fr; gap: 0 16px; margin-top: 4px; align-items: start; }
@media (min-width: 900px) { .ck-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.horizon h3 { margin: 0 0 8px; }
.hz { list-style: none; margin: 0; padding: 0; }
.hz-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.hz-row:first-child { border-top: 0; }
.hz-day { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); line-height: 1.1; }
.hz-day b { font-size: 22px; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hz-row.today .hz-day, .hz-row.today .hz-day b { color: var(--accent); }
.hz-row.late .hz-day, .hz-row.late .hz-day b { color: var(--late, var(--warn)); }
.hz-marks { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hz-marks .mk { display: block; font-size: 13.5px; line-height: 1.3; padding: 3px 8px 3px 10px; border-radius: 6px;
                text-decoration: none; color: var(--ink); border-left: 3px solid var(--line); background: var(--bg);
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-marks .mk.event { border-left-color: var(--accent); font-weight: 700; }
.hz-marks .mk.vendor { border-left-color: var(--lamp-amber); }
.hz-marks .mk.mine { border-left-color: var(--ink); }
.hz-marks .mk.late { border-left-color: var(--lamp-red); color: var(--warn); }
.hz-marks .mk.more { color: var(--muted); }
.hz-clear { font-size: 13px; color: var(--muted); padding-top: 4px; }
.hz-key { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 10px 0 0; }
.hz-key .k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.hz-key .k.event { background: var(--accent); } .hz-key .k.vendor { background: var(--lamp-amber); }
.hz-key .k.mine { background: var(--ink); } .hz-key .k.other { background: var(--line); } .hz-key .k.late { background: var(--lamp-red); }

.ck-right .ev { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.ev-top { display: flex; align-items: baseline; gap: 6px; }
.ck-right .ev-n { font-size: 40px; }
.gauge { width: 100%; max-width: 200px; height: auto; margin: 10px auto 0; display: block; }
.g-track { fill: none; stroke: var(--line); stroke-width: 9; stroke-linecap: round; }
.g-fill { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; }
.gauge.over .g-fill { stroke: var(--lamp-red); }
.g-num { fill: var(--ink); font-size: 17px; font-weight: 800; text-anchor: middle; font-variant-numeric: tabular-nums; }
.ev-budget { font-size: 12.5px; color: var(--muted); text-align: center; }
.ev-budget.problem { color: var(--warn); }
.hz-key span { white-space: nowrap; }
@media (max-width: 639px) {
  .deck { padding: 14px; border-radius: 16px; }
  .deck-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dial { grid-column: span 3; padding: 8px 12px; }
  .dial svg { width: 60px; height: 60px; }
  .inst { padding: 10px 8px 10px 10px; }
  .inst-val { font-size: 24px; }
  .inst-label { font-size: 11.5px; }
  .inst-note { display: none; }
  .lamp { top: 9px; right: 9px; width: 8px; height: 8px; }
}

/* ---------------------------------------------------------------- Daily Brief as a work queue
   One card per thing, a Done button on each, a tick box for doing several at once,
   and filter chips that work without scripts (radio buttons + sibling selectors). */
.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.button.small-btn { padding: 8px 14px; font-size: 14px; min-height: 0; }
.bq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 0 0 16px; }
.bq-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.bq-title { flex: 1 1 360px; min-width: 0; }
.bq-title h2 { font-size: clamp(18px, 2vw, 22px); line-height: 1.3; margin: 2px 0 4px; }
.bq-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 8px 10px; border-radius: 10px;
        background: var(--bg); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.2; }
.stat b { font-size: 22px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat.reply b { color: #b7791f; } .stat.late b { color: var(--warn); } .stat.wait b { color: #2b6cb0; } .stat.up b { color: var(--accent); }
.bf { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.bq-form { position: relative; }
.bq-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.bq-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.bq-filters label { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; color: var(--ink); background: var(--bg); }
.bq-filters label b { font-weight: 600; color: var(--muted); margin-left: 4px; }
.bq-filters label:hover { border-color: var(--accent); }
.bq-form .bf:nth-of-type(1):checked ~ .bq-bar label:nth-child(1),
.bq-form .bf:nth-of-type(2):checked ~ .bq-bar label:nth-child(2),
.bq-form .bf:nth-of-type(3):checked ~ .bq-bar label:nth-child(3),
.bq-form .bf:nth-of-type(4):checked ~ .bq-bar label:nth-child(4),
.bq-form .bf:nth-of-type(5):checked ~ .bq-bar label:nth-child(5) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bq-form .bf:nth-of-type(1):checked ~ .bq-bar label:nth-child(1) b,
.bq-form .bf:nth-of-type(2):checked ~ .bq-bar label:nth-child(2) b,
.bq-form .bf:nth-of-type(3):checked ~ .bq-bar label:nth-child(3) b,
.bq-form .bf:nth-of-type(4):checked ~ .bq-bar label:nth-child(4) b,
.bq-form .bf:nth-of-type(5):checked ~ .bq-bar label:nth-child(5) b { color: inherit; opacity: .8; }
.bq-form .bf:nth-of-type(2):checked ~ .bq-list .bq-card:not(.reply),
.bq-form .bf:nth-of-type(3):checked ~ .bq-list .bq-card:not(.wait),
.bq-form .bf:nth-of-type(4):checked ~ .bq-list .bq-card:not(.late),
.bq-form .bf:nth-of-type(5):checked ~ .bq-list .bq-card:not(.up) { display: none; }
.bq-empty { display: none; color: var(--muted); padding: 18px 0 6px; text-align: center; }
.bq-list:empty + .bq-empty,
.bq-form .bf:nth-of-type(2):checked ~ .bq-list:not(:has(.reply)) + .bq-empty,
.bq-form .bf:nth-of-type(3):checked ~ .bq-list:not(:has(.wait)) + .bq-empty,
.bq-form .bf:nth-of-type(4):checked ~ .bq-list:not(:has(.late)) + .bq-empty,
.bq-form .bf:nth-of-type(5):checked ~ .bq-list:not(:has(.up)) + .bq-empty { display: block; }
.bq-bulk { font-size: 14px; padding: 8px 14px; min-height: 0; }
.bq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bq-card { display: grid; grid-template-columns: 24px 10px 1fr auto; gap: 0 12px; align-items: center; padding: 14px 16px;
           border: 1px solid var(--line); border-radius: 14px; background: var(--bg); min-width: 0; }
.bq-card:has(.bq-pick input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bq-pick { display: flex; align-items: center; justify-content: center; }
.bq-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.bq-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.bq-card.reply .bq-dot { background: #f5b544; box-shadow: 0 0 0 3px rgba(245,181,68,.22); }
.bq-card.wait .bq-dot { background: #4299e1; box-shadow: 0 0 0 3px rgba(66,153,225,.2); }
.bq-card.late .bq-dot { background: #ff7a66; box-shadow: 0 0 0 3px rgba(255,122,102,.22); }
.bq-card.up .bq-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(31,77,58,.15); }
.bq-body { min-width: 0; }
.bq-body p { margin: 0; }
.bq-who { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.bq-what { font-size: 15.5px; line-height: 1.4; margin-top: 2px !important; }
.bq-why { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px !important; }
.tag { font-size: 11.5px; font-weight: 700; letter-spacing: .01em; padding: 3px 9px; border-radius: 6px; line-height: 1.2; white-space: nowrap; }
.tag.reply { background: rgba(245,181,68,.18); color: #8a5a00; }
.tag.wait { background: rgba(66,153,225,.16); color: #1f4f80; }
.tag.late { background: var(--warn-bg); color: var(--warn); }
.tag.up { background: var(--ok-bg); color: var(--accent); }
.bq-act { display: flex; gap: 8px; align-items: center; }
.bq-act .button, .bq-act button { font-size: 14px; padding: 9px 16px; min-height: 0; white-space: nowrap; }
.bq-done { margin-top: 12px; color: var(--muted); font-size: 14px; }
.bq-done summary { cursor: pointer; }
.bq-done summary b { color: var(--ink); margin-left: 4px; }
.bq-done ul { margin: 8px 0 0; padding-left: 18px; }
.bq-done li { text-decoration: line-through; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.reply { color: #f5b544; }
  :root:not([data-theme="light"]) .tag.wait { color: #8ec5ff; } :root:not([data-theme="light"]) .stat.reply b { color: #f5b544; }
  :root:not([data-theme="light"]) .stat.wait b { color: #8ec5ff; } }
:root[data-theme="dark"] .tag.reply { color: #f5b544; } :root[data-theme="dark"] .tag.wait { color: #8ec5ff; }
:root[data-theme="dark"] .stat.reply b { color: #f5b544; } :root[data-theme="dark"] .stat.wait b { color: #8ec5ff; }
@media (max-width: 640px) {
  .bq { padding: 14px; }
  .bq-stats { grid-template-columns: repeat(4, 1fr); width: 100%; }
  .stat { min-width: 0; padding: 6px 4px; }
  .bq-card { grid-template-columns: 22px 8px 1fr; padding: 12px; }
  .bq-act { grid-column: 1 / -1; justify-content: flex-end; margin-top: 10px; }
  .bq-act .button, .bq-act button { flex: 1; text-align: center; }
  .bq-who { font-size: 16px; }
}

/* Today, same language everywhere: a card per thing, a dot, a tag, a Done button. */
.q-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.q-card { display: grid; grid-template-columns: 10px 1fr auto; gap: 0 12px; align-items: center; padding: 12px 14px;
          border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.q-card .bq-who { font-size: 15.5px; }
.q-card .bq-what { font-size: 14.5px; }
.q-card .bq-why { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.q-card.late .bq-dot { background: #ff7a66; box-shadow: 0 0 0 3px rgba(255,122,102,.22); }
.q-card.mine .bq-dot { background: var(--ink); box-shadow: 0 0 0 3px rgba(28,27,25,.12); }
.q-card.other .bq-dot { background: #4299e1; box-shadow: 0 0 0 3px rgba(66,153,225,.2); }
.q-card.vendor .bq-dot { background: #f5b544; box-shadow: 0 0 0 3px rgba(245,181,68,.22); }
.q-act { margin: 0; }
.q-act button { font-size: 13.5px; padding: 8px 14px; min-height: 0; }
.q-empty { color: var(--muted); padding: 10px 2px; }
.tag:not(.reply):not(.wait):not(.late):not(.up) { background: var(--line); color: var(--muted); }

/* Roadmap rows in the same style */
.rm-list { display: flex; flex-direction: column; gap: 8px; }
.rm-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 0 12px; align-items: center; padding: 12px 14px;
              border: 1px solid var(--line); border-radius: 12px; background: var(--bg); border-top: 1px solid var(--line); }
.rm-list li.later { opacity: .7; }
.rm-title { font-size: 15.5px; }
.rm-list summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rm-list .rm-form button:not(.link) { font-size: 13.5px; padding: 8px 14px; min-height: 0; }
.auto-note { color: var(--muted); white-space: nowrap; }
.bq-dot.st-fix { background: #ff7a66; box-shadow: 0 0 0 3px rgba(255,122,102,.22); }
.bq-dot.st-decide { background: #f5b544; box-shadow: 0 0 0 3px rgba(245,181,68,.22); }
.bq-dot.st-reply { background: #f5b544; box-shadow: 0 0 0 3px rgba(245,181,68,.22); }
.bq-dot.st-do { background: var(--ink); box-shadow: 0 0 0 3px rgba(28,27,25,.12); }
.bq-dot.st-deadline { background: #ff7a66; box-shadow: 0 0 0 3px rgba(255,122,102,.22); }
.bq-dot.st-chase { background: #4299e1; box-shadow: 0 0 0 3px rgba(66,153,225,.2); }
.bq-dot.st-prepare { background: var(--accent); box-shadow: 0 0 0 3px rgba(31,77,58,.15); }
.tag.st-fix, .tag.st-deadline { background: var(--warn-bg); color: var(--warn); }
.tag.st-decide, .tag.st-reply { background: rgba(245,181,68,.18); color: #8a5a00; }
.tag.st-chase { background: rgba(66,153,225,.16); color: #1f4f80; }
.tag.st-do { background: var(--line); color: var(--ink); }
.tag.st-prepare { background: var(--ok-bg); color: var(--accent); }
.rm-next { border-radius: 14px; }
.owner-list li { padding: 8px 0; }
@media (max-width: 640px) {
  .q-card, .rm-list li { grid-template-columns: 10px 1fr; }
  .q-act, .rm-list li > .rm-form, .rm-list li > .auto-note { grid-column: 2; justify-self: end; margin-top: 8px; }
}

/* Guest pages: no navigation, the chapter's name up top, one question. */
body.guest { display: flex; flex-direction: column; min-height: 100vh; }
.guest-head { justify-content: center; }
.guest-head .brand { font-size: 18px; }
.guest-main { flex: 1; padding: 24px 16px; }
.guest-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px 16px 28px; }

/* Status pages: stages with ticks, a ring, a Latest feed */
.prog { max-width: 620px; margin: 8px auto 0; }
.prog-top { display: flex; align-items: center; gap: 16px; margin: 12px 0 18px; }
.prog-ring { width: 84px; height: 84px; flex: none; }
.prog-ring .dial-track { stroke: var(--line); } .prog-ring .dial-fill { stroke: var(--accent); }
.prog-ring .dial-num { fill: var(--ink); font-size: 17px; }
.prog-count { margin: 0; font-size: 15px; } .prog-count b { font-size: 22px; }
.prog-next { margin: 2px 0 0; font-weight: 600; }
.stages { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.stages li { display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; align-items: baseline; padding: 11px 14px; border-top: 1px solid var(--line); }
.stages li:first-child { border-top: 0; }
.stage-mark { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
              font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--line); align-self: center; }
.stages li.done .stage-mark { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stages li.now .stage-mark { border-color: var(--lamp-amber); color: var(--ink); box-shadow: 0 0 0 3px var(--warn-bg); }
.stage-name { font-weight: 600; }
.stages li.todo .stage-name { color: var(--muted); font-weight: 500; }
.stage-note { grid-column: 2; font-size: 13px; color: var(--muted); }
.prog-h { font-size: 15px; margin: 22px 0 8px; }
.prog-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.prog-feed li { padding-left: 14px; position: relative; }
.prog-feed li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
.prog-foot { margin-top: 20px; }
.prog-back { margin: 18px 0 0; }

/* Sharing an ask with someone outside Chapter360 */
.share { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.share h2 { margin: 0 0 4px; font-size: 17px; }
.share-form { display: grid; gap: 10px; margin-top: 12px; }
.share-form label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.share-form input { font-weight: 400; }
.share-form button { justify-self: start; }
.share-link { margin: 8px 0; display: grid; gap: 4px; }
.share-link code { display: block; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
                   font-size: 12.5px; word-break: break-all; user-select: all; }
.share-sent { list-style: none; margin: 14px 0 0; padding: 0; }
.share-sent li { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.share-sent li > span:first-child { font-weight: 600; }
@media (max-width: 639px) { .share-sent li { grid-template-columns: 1fr; } }

/* Onboarding wizard: step bar, chooser tiles, set-up progress */
.wide-wiz { max-width: 760px; }
.wizbar { list-style: none; margin: 4px 0 2px; padding: 0; display: flex; gap: 4px; }
.wizbar li { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.wizbar li::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line); }
.wizbar li.done::before { background: var(--accent); }
.wizbar li.now::before { background: var(--lamp-amber); }
.wb-mark { display: none; }
.wb-label { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wizbar li.now .wb-label { color: var(--ink); font-weight: 700; }
.wizbar li.done .wb-label { color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 40px; border: 1px solid var(--line);
        border-radius: 12px; background: var(--card); cursor: pointer; min-height: 56px; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-box { position: absolute; left: 13px; top: 14px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--muted); background: var(--bg); }
.tile input:checked ~ .tile-box { background: var(--accent); border-color: var(--accent); }
.tile input:checked ~ .tile-box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tile input:checked ~ .tile-name { color: var(--accent); }
.tile:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--ok-bg); }
.tile input:focus-visible ~ .tile-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.tile-line { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.wiz-two { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 600px) { .wiz-two { grid-template-columns: 1fr 1fr; } }
.setup-uses { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.setup-uses li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.setup-uses .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.setup-uses li.on .dot, .setup-uses li.you .dot { background: var(--lamp-green); }
.setup-uses li.warn .dot { background: var(--lamp-amber); }
.setup-uses li.off .dot { background: var(--lamp-red); opacity: .7; }
.setup-uses .button { margin-left: auto; }

/* Task library and the set-up conversation */
.tl-say { display: grid; gap: 10px; margin: 10px 0 6px; }
.tl-say textarea { font-size: 16px; padding: 12px 14px; border-radius: 12px; min-height: 64px; }
.tl-say button { justify-self: start; }
.tl-h { font-size: 15px; margin: 22px 0 8px; }
.tl-cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tl-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 14px;
           background: var(--card); color: var(--ink); text-decoration: none; min-height: 132px; }
.tl-card:hover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--ok-bg); }
.tl-card strong { font-size: 15px; line-height: 1.3; padding-right: 0; }
.tl-card .small { line-height: 1.4; }
.tl-job { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; color: var(--accent); }
.tl-state { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .03em; border-radius: 999px; padding: 2px 8px; margin-bottom: 4px;
            background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tl-state.ready { background: var(--ok-bg); color: var(--accent); border-color: transparent; }
.tl-state.partly { background: rgba(240, 173, 30, .2); color: var(--ink); border-color: transparent; }
.tl-new { margin: 14px 0 0; }
.tl-two { display: grid; grid-template-columns: 1fr; gap: 0 24px; }
@media (min-width: 640px) { .tl-two { grid-template-columns: 1fr 1fr; } }
.tl-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.tl-list li { position: relative; padding-left: 24px; }
.tl-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.tl-list.yes li::before { content: "\2713"; color: var(--accent); }
.tl-list.no li::before { content: "\2715"; color: var(--warn); }
.tl-answers { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 14px; margin: 0 0 18px; font-size: 14px; }
.tl-answers dt { color: var(--muted); } .tl-answers dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 599px) { .tl-answers { grid-template-columns: 1fr; gap: 0; } .tl-answers dd { margin-bottom: 8px; } }
.tl-lib { margin-top: 24px; }
.tile.radio .tile-box { border-radius: 50%; }
.tile.radio input:checked ~ .tile-box::after { left: 4px; top: 4px; width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--accent-ink); transform: none; }
.tiles-tight { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
fieldset.wiz-field { border: 0; padding: 0; margin: 0 0 6px; }
.wiz-num { max-width: 120px; }

/* Asks: a short wizard page, and a card on Today */
.wiz { max-width: 560px; margin: 8px auto 0; }
.wiz-eyebrow { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.wiz-title { font-size: clamp(24px, 4vw, 32px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.wiz-why { font-size: 16px; color: var(--muted); margin: 0 0 20px; }
.wiz-form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.wiz-field { display: block; margin-bottom: 16px; }
.wiz-label { display: block; font-weight: 600; margin-bottom: 6px; }
.wiz-field input, .wiz-field select, .wiz-field textarea { width: 100%; font-size: 16px; }
.wiz-code { font-size: 24px !important; letter-spacing: .25em; text-align: center; max-width: 220px; }
.wiz-hint { display: block; margin-top: 4px; }
/* File cards: one per file asked for, with its state */
.file-card { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
.file-card.got { border-style: solid; background: var(--ok-bg); border-color: transparent; }
.file-drop { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; cursor: pointer; }
.file-drop input { width: 100%; font-size: 15px; margin-bottom: 4px; }
.file-cta { font-weight: 600; }
.file-got { margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.file-tick { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
             font-size: 13px; line-height: 20px; text-align: center; }
.file-swap { display: block; margin-top: 4px; }
.file-swap input { font-size: 13px; }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.wiz-go { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.q-card.ask .bq-dot { background: #f5b544; box-shadow: 0 0 0 3px rgba(245,181,68,.22); }
.card.asks { border-color: #f5b544; }
.q-act .button { font-size: 13.5px; padding: 8px 14px; min-height: 0; }

/* Membership pipeline */
.mp-row { border-top: 1px solid var(--line); padding: 10px 0; }
.mp-row:first-of-type { border-top: 0; }
.mp-row summary { cursor: pointer; display: grid; gap: 2px; list-style: none; }
.mp-row summary::-webkit-details-marker { display: none; }
.mp-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.mp-row.stalled .mp-name strong { color: var(--warn, #9a5b00); }
.mp-quiet { background: #fdf0d5; color: #7a4a00; }
.mp-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 10px 0; align-items: end; }
.mp-edit label { display: grid; gap: 4px; font-size: .85rem; }
.mp-edit .mp-wide { grid-column: 1 / -1; }
.mp-edit button { justify-self: start; }
.mp-note { margin: 4px 0; }
.mp-by { opacity: .6; }
.mp-decide { display: flex; gap: 8px; }
.me-connect { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.role-form { display: flex; gap: 8px; align-items: center; }
.role-form select { min-width: 120px; }
.wiz-field input[type=text] { padding: 12px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.legal { max-width: 720px; margin: 0 auto; line-height: 1.6; }
.legal h1 { margin-bottom: 4px; } .legal h2 { margin-top: 28px; font-size: 18px; }
.legal li { margin-bottom: 8px; }
.guest-head a.brand { color: inherit; text-decoration: none; }
.prop-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.qa-dismiss { margin-top: 8px; text-align: right; }
.room-reading { opacity: .7; font-style: italic; margin: 6px 0 0; }

/* Event setup */
.setup-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin: 12px 0 16px; border: 1px solid var(--line);
              border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.setup-card:hover { border-color: var(--accent); }
.setup-card .small { display: block; margin-top: 2px; }
.setup-top { display: flex; gap: 14px; align-items: center; margin: 8px 0 16px; }
.setup-ring { --p: 0; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
              background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.setup-ring span { width: 44px; height: 44px; border-radius: 50%; background: var(--card); display: grid; place-items: center;
                   font-size: 13px; font-weight: 700; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.steps a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; text-decoration: none; color: var(--ink); background: var(--card); }
.steps a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps a.gap:not(.on)::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--warn, #c77700); vertical-align: middle; }
.setup-form label { display: block; }
.setup-form .hint { display: block; margin: -6px 0 12px; }
.setup-form label > .hint:first-of-type { margin: 2px 0 4px; }
.setup-form .need { font-size: 11.5px; font-weight: 600; color: var(--warn, #c77700); margin-left: 4px; }
.setup-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.setup-form fieldset.pick { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 4px; margin: 0 0 12px; }
.setup-form fieldset.pick legend { padding: 0 6px; font-size: 14px; }
.setup-form label.choice { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.setup-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.draft-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.draft { border: 1px dashed var(--accent); border-radius: 10px; padding: 12px; margin: 0 0 14px; }
.draft pre.doc, .card pre.doc { white-space: pre-wrap; }
.banner-preview { display: block; width: 100%; max-width: 600px; height: auto; border-radius: 6px; border: 1px solid var(--line); margin: 8px 0; }
.absorb summary { cursor: pointer; font-weight: 600; }
.logo-preview { display: block; max-width: 220px; max-height: 110px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 6px; margin: 6px 0 12px; }
.logo-thumb { height: 34px; width: auto; background: #fff; padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; }

/* Public front page */
.about { max-width: 720px; margin: 32px auto 0; }
.about .lede { font-size: 17px; }
.about h2 { margin-top: 22px; }
.about li { margin: 6px 0; }

/* New-chapter set-up: a dialog over a dimmed page, one question at a time */
.dlg-back { position: fixed; inset: 0; z-index: 50; overflow-y: auto; padding: 24px 12px;
            background: color-mix(in srgb, var(--ink) 55%, transparent); display: flex; align-items: flex-start; justify-content: center; }
.dlg { position: relative; width: 100%; max-width: 600px; margin: auto; background: var(--card); color: var(--ink);
       border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.dlg .wizbar { margin-right: 40px; }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
             border-radius: 50%; color: var(--muted); text-decoration: none; font-size: 18px; }
.dlg-close:hover { background: var(--bg); color: var(--ink); }
.dlg-form { margin-top: 14px; }
.dlg-form .wiz-title { font-size: clamp(22px, 4vw, 28px); }
.dlg-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0 0 12px;
           display: grid; grid-template-columns: 1fr; gap: 8px 12px; }
@media (min-width: 560px) { .dlg-row { grid-template-columns: 2fr 1fr 1fr; } }
.dlg-row label { margin: 0; min-width: 0; }
.dlg-review { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0 0 8px; }
.dlg-review dt { color: var(--muted); font-size: 14px; }
.dlg-review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dlg-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.dlg-nav button, .dlg-nav .button { margin: 0; }
