/* A Week at Agileana · chat with Sam */
:root {
  --bg: #fff7ec; --bg-2: #fbeedd; --line: #f0e1cc;
  --sam: #ffffff; --me: #ff6b4a; --me-deep: #c8452a;
  --claude: #f3f0fd; --claude-edge: #d9d1f5; --claude-ink: #3f3290;
  --ink: #2b2521; --soft: #7a6f65; --faint: #b0a291;
  --promise: #eaf6ef; --promise-edge: #3c9a6a; --promise-ink: #1f5c3d;
  --hl: #ffe45c;
  --shadow: 0 1px 2px rgba(80, 50, 20, .08), 0 6px 18px -8px rgba(80, 50, 20, .25);
  --focus: #2b6de8;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1916; --bg-2: #28221d; --line: #3a322b;
    --sam: #2d2621; --me: #ff6b4a; --me-deep: #ff9a82;
    --claude: #2a2640; --claude-edge: #463f6e; --claude-ink: #cfc6ff;
    --ink: #f3ebe2; --soft: #b7aa9c; --faint: #7d7064;
    --promise: #16301f; --promise-edge: #4cb883; --promise-ink: #bfead0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -8px rgba(0, 0, 0, .6);
    --focus: #7aa7ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#app { height: 100%; }

.app { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; max-width: 900px; margin: 0 auto; overflow: hidden; }
@media (min-width: 800px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* header */
.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.ava { flex: none; width: 32px; height: 32px; }
.ava svg { width: 100%; height: 100%; display: block; }
.ava--top { width: 40px; height: 40px; }
.ava.ghost { visibility: hidden; }
.who { line-height: 1.15; min-width: 0; flex: 1; }
.who strong { font-weight: 800; font-size: 17px; }
.who span { display: block; font-size: 12.5px; color: var(--soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3cbf7a; margin-right: 5px; vertical-align: 1px; }
.week { margin-left: auto; display: flex; gap: 5px; }
.week i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--font); background: var(--bg-2); color: var(--soft); position: relative; }
.week i.done { background: #d6f0e0; color: #1f5c3d; }
.week i.done::after { content: "✓"; position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #3c9a6a; color: #fff; font-size: 9px; display: grid; place-items: center; }
.week i.today { background: var(--me); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--me) 30%, transparent); }

/* thread */
.thread { overflow-y: auto; padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.sys { align-self: center; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--soft); background: var(--bg-2); padding: 4px 12px; border-radius: 999px; margin: 10px 0; max-width: 90%; animation: pop .3s both; }
.row { display: flex; gap: 8px; align-items: flex-end; animation: pop .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.row--me { justify-content: flex-end; margin-top: 6px; }
.row--me + .row:not(.row--me) { margin-top: 6px; }
.row.wide > .col { flex: 1; max-width: 560px; min-width: 0; }
/* Wednesday's two sheets get the whole width: they are read side by side. */
.row.wide:has(> .col > .sheets) > .col { max-width: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.col { min-width: 0; }
.bubwrap { position: relative; max-width: min(84%, 540px); }
.row .col { max-width: 100%; }
.row:not(.wide) .col { max-width: min(84%, 540px); }
.row:not(.wide) .bubwrap { max-width: 100%; }
.bub { padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: var(--sam); box-shadow: var(--shadow); font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.bub strong { font-weight: 800; }
.row--me .col { max-width: 78%; }
.row--me .bub { background: var(--me); color: #fff; border-radius: 20px 20px 6px 20px; }
.bub--claude { background: var(--claude); box-shadow: inset 0 0 0 1.5px var(--claude-edge); }
.bub__who { display: block; font: 800 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--claude-ink); margin-bottom: 6px; }
.md p { margin: 0 0 8px; } .md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 4px 0 8px; padding-left: 20px; }
.md code, .md pre { font: 13px var(--mono); }
.md pre { white-space: pre-wrap; background: color-mix(in srgb, var(--claude-edge) 35%, transparent); padding: 8px; border-radius: 8px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing b { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: dot 1s infinite; }
.typing b:nth-child(2) { animation-delay: .15s; } .typing b:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); opacity: .6; } }

/* reactions */
.react-btn { position: absolute; right: -10px; bottom: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--sam); box-shadow: var(--shadow); font-size: 14px; opacity: 0; transition: opacity .15s; }
.bubwrap:hover .react-btn, .react-btn:focus-visible, .bubwrap.show-react .react-btn { opacity: 1; }
.react-pick { position: absolute; right: -6px; bottom: 26px; display: flex; gap: 2px; background: var(--sam); border-radius: 999px; padding: 4px 6px; box-shadow: 0 8px 24px -8px rgba(80, 50, 20, .45); z-index: 3; animation: pop .2s both; }
.react-pick button { border: 0; background: none; font-size: 20px; width: 34px; height: 34px; border-radius: 50%; transition: transform .12s; }
.react-pick button:hover { transform: scale(1.25); background: var(--bg-2); }
.reactions { display: flex; gap: 4px; margin: 4px 0 0 6px; }
.reactions:empty { display: none; }
.reactions span { background: var(--sam); border: 1.5px solid color-mix(in srgb, var(--me) 35%, transparent); border-radius: 999px; padding: 0 8px; font-size: 14px; }

/* dock */
.dock { border-top: 1px solid var(--line); background: var(--bg); padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-height: 34vh; overflow-y: auto; overscroll-behavior: contain; }
.chips:empty { display: none; }
.chips button { border: 2px solid var(--me); background: var(--sam); color: var(--me-deep); border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 15px; text-align: left; animation: pop .25s both; transition: transform .12s; }
.chips button:hover:not(:disabled) { transform: translateY(-2px); }
.chips button.go { background: var(--me); color: #fff; }
.chips small { display: block; font-weight: 600; font-size: 12.5px; opacity: .8; }
.chips--vertical { flex-direction: column; align-items: stretch; }
.chips--vertical { gap: 6px; }
.chips--vertical button { border-radius: 14px; padding: 8px 14px; font-size: 14.5px; line-height: 1.3; }
@media (max-height: 700px) { .chips { max-height: 30vh; } }
.composer { display: flex; gap: 8px; align-items: flex-end; background: var(--sam); border-radius: 24px; padding: 6px 6px 6px 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.composer textarea { flex: 1; border: 0; resize: none; background: none; padding: 8px 0; outline: none; font-size: 16px; max-height: 140px; }
.composer textarea::placeholder { color: var(--faint); }
.composer button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--me); color: #fff; display: grid; place-items: center; }
.composer button:disabled { opacity: .35; }
.composer button svg { width: 18px; height: 18px; }
.composer:focus-within { box-shadow: inset 0 0 0 2px var(--me); }

/* pills */
.pill { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14px; background: var(--bg-2); color: var(--ink); }
.pill:hover { filter: brightness(.97); }
.pill--go { background: var(--me); color: #fff; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--soft); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* promise */
.promise { border-radius: 20px; background: var(--promise); border: 2px solid var(--promise-edge); padding: 14px 18px; box-shadow: var(--shadow); color: var(--promise-ink); max-width: 540px; }
.promise__tag { display: flex; align-items: center; gap: 8px; font: 800 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.promise__tag .icon { width: 18px; height: 18px; }
.icon svg, .tool__icon svg, .sticker__icon svg, .multi__tick svg { width: 100%; height: 100%; display: block; }
.promise p { margin: 0 0 8px; } .promise p:last-child { margin: 0; }
.promise__big { font-size: 19px; font-weight: 800; line-height: 1.3; }

/* things that land */
.thing { border-radius: 18px; overflow: hidden; background: var(--sam); box-shadow: var(--shadow); max-width: 520px; }
.thing__tag { background: color-mix(in srgb, var(--me) 16%, var(--sam)); color: var(--me-deep); font: 800 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; }
.thing__body { padding: 12px 14px 14px; font-weight: 700; line-height: 1.4; }
.thing--task .thing__tag { background: color-mix(in srgb, var(--claude-edge) 60%, var(--sam)); color: var(--claude-ink); }

/* deck */
.deckmsg { background: var(--bg-2); border-radius: 22px; padding: 14px 14px 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.deck__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 4px 10px; }
.deck__title { font: 800 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--me-deep); }
.dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.dots i.done { background: var(--me); }
.dots i.now { transform: scale(1.4); background: color-mix(in srgb, var(--me) 45%, var(--sam)); }
.deck { position: relative; height: 196px; margin: 4px 0 12px; touch-action: none; }
.dcard { position: absolute; inset: 0; background: var(--sam); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 22px; display: grid; align-content: center; gap: 8px; user-select: none; transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .32s; }
.dcard.under1 { transform: translateY(8px) scale(.96); opacity: .8; }
.dcard.under2 { transform: translateY(16px) scale(.92); opacity: .5; }
.dcard.top { cursor: grab; animation: deal .35s cubic-bezier(.2, .9, .3, 1.15) both; z-index: 2; }
.dcard.drag { transition: none; cursor: grabbing; }
@keyframes deal { from { transform: translateY(-14px) scale(1.02); opacity: 0; } }
.dcard p { margin: 0; font-weight: 800; font-size: 20px; line-height: 1.3; }
.dcard small { font: 800 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.hint { position: absolute; top: 12px; padding: 6px 10px; border-radius: 10px; font: 800 13px/1.2 var(--font); opacity: 0; transition: opacity .1s; pointer-events: none; color: #fff; }
.hint.l { left: 12px; background: #2b2521; } .hint.r { right: 12px; background: var(--me); } .hint.u { left: 50%; transform: translateX(-50%); background: #3c9a6a; }
.deck__btns { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; }
.deck__btns button { border: 0; border-radius: 14px; padding: 11px 6px; font-weight: 800; font-size: 14px; line-height: 1.2; background: var(--sam); box-shadow: var(--shadow); transition: transform .12s; }
.deck__btns button:hover { transform: translateY(-2px); }
.deck__btns button[data-v="draft"] { color: #2b7a52; } .deck__btns button[data-v="ai"] { color: var(--me-deep); }
.deck__btns kbd { display: block; font: 700 11px/1 var(--font); color: var(--faint); margin-top: 4px; }
.deck__foot { display: flex; justify-content: space-between; gap: 10px; margin: 10px 4px 0; font-size: 13.5px; }
.deck__done { display: grid; place-items: center; gap: 4px; padding: 22px 0; text-align: center; font-weight: 800; color: #2b7a52; }
.deck__done span { font-size: 30px; }

/* attachment + document viewer */
.attach { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--sam); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); max-width: 480px; }
.fileic { flex: none; width: 42px; height: 52px; border-radius: 6px; background: color-mix(in srgb, var(--me) 18%, var(--sam)); display: grid; place-items: end center; padding-bottom: 6px; font: 800 10px/1 var(--font); color: var(--me-deep); }
.attach__name { flex: 1; min-width: 140px; }
.attach__name strong { display: block; font-weight: 800; }
.attach__name span { font-size: 13px; color: var(--soft); }
.attach__btns { display: flex; gap: 6px; }
.docview { width: min(760px, 96vw); max-height: 90vh; border: 0; border-radius: 18px; padding: 0 22px 22px; background: var(--sam); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.docview::backdrop { background: rgba(30, 20, 10, .45); }
.docview__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; background: var(--sam); border-bottom: 1px solid var(--line); }
.docview__head span { display: block; font-size: 13px; color: var(--soft); }
.docview h2 { font-size: 22px; margin: 18px 0 10px; }
.docview h3 { font-size: 16px; margin: 20px 0 6px; }
.docview p, .docview li { line-height: 1.6; margin: 0 0 10px; }
.docview pre { font: 12.5px/1.5 var(--mono); background: var(--bg-2); padding: 12px; border-radius: 10px; overflow-x: auto; }

/* Wednesday sheets */
.sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.sheet { position: relative; background: var(--sam); border-radius: 16px; box-shadow: var(--shadow); padding: 26px 16px 14px; min-width: 0; }
.sheet__clip { position: absolute; top: -10px; left: 14px; margin: 0; padding: 5px 10px; font: 800 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; background: var(--bg-2); color: var(--soft); border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.sheet h3 { font-size: 15px; margin: 0 0 10px; }
.sheet pre { font: 11.5px/1.45 var(--mono); margin: 0; overflow-x: auto; white-space: pre; }
.sheet--output p { margin: 0 0 10px; line-height: 1.55; }
.sheet--output { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M4 24 L8 16 L20 4 L24 8 L12 20 Z' fill='%23ffe45c' stroke='%232b2521' stroke-width='1.5'/%3E%3Cpath d='M4 24 L8 16 L12 20 Z' fill='%232b2521'/%3E%3C/svg%3E") 3 25, pointer; }
.seg { border-radius: 3px; padding: 1px 2px; margin: 0 -2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; background-image: linear-gradient(100deg, transparent 0 2%, var(--hl) 3% 97%, transparent 98%); background-repeat: no-repeat; background-size: 0% 80%; background-position: 0 60%; transition: background-size .25s; }
.seg:hover { background-color: color-mix(in srgb, var(--hl) 25%, transparent); }
.seg[aria-pressed="true"] { background-size: 100% 80%; color: #2b2521; text-decoration: underline 2px var(--me); text-underline-offset: 3px; }
.sheet code { font: 13px var(--mono); }
.sheets.is-locked .sheet--output { cursor: default; }
.sheets.is-locked .seg:hover { background-color: transparent; }
@media (max-width: 620px) { .sheets { grid-template-columns: 1fr; } }

/* Thursday board */
.board { display: grid; gap: 12px; }
.tray { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.tool { display: inline-flex; align-items: center; gap: 8px; text-align: left; padding: 8px 12px; border-radius: 12px; border: 0; background: var(--sam); box-shadow: var(--shadow); font-size: 14px; line-height: 1.25; font-weight: 700; transition: transform .12s; }
.tool:hover { transform: translateY(-1px); }
.tool[aria-pressed="true"] { background: var(--me); color: #fff; }
.tool__icon { flex: none; width: 20px; height: 20px; color: var(--me-deep); }
.tool[aria-pressed="true"] .tool__icon { color: #fff; }
.tool--ghost { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; }
.tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .tasks { grid-template-columns: 1fr; } }
.task { background: var(--sam); border-radius: 16px; box-shadow: var(--shadow); padding: 4px 4px 12px; transition: box-shadow .15s; }
.task.is-over, .board.has-pick .task:hover { box-shadow: var(--shadow), inset 0 0 0 2px var(--me); }
.task__pick { display: grid; gap: 4px; width: 100%; text-align: left; background: none; border: 0; padding: 10px 10px 6px; border-radius: 12px; }
.task__label { font-weight: 800; line-height: 1.3; }
.task__cue { font: 800 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--me-deep); min-height: 11px; }
.task__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px; }
.sticker { display: inline-flex; align-items: center; gap: 5px; padding: 4px 4px 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--me) 14%, var(--sam)); font-size: 13.5px; font-weight: 700; animation: pop .25s both; }
.sticker__icon { width: 15px; height: 15px; color: var(--me-deep); }
.sticker__x { width: 24px; height: 24px; border-radius: 50%; border: 0; background: none; font-size: 16px; line-height: 1; color: var(--soft); }
.sticker--empty { background: none; padding: 4px 0; font-weight: 600; color: var(--soft); animation: none; }
.board__done { justify-self: end; }

/* multi-select */
.multi { display: flex; flex-wrap: wrap; gap: 6px; max-width: 560px; }
.multi__opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 0; background: var(--sam); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; text-align: left; }
.multi__opt[aria-pressed="true"] { background: #d6f0e0; color: #1f5c3d; }
.multi__tick { width: 16px; height: 16px; opacity: 0; }
.multi__opt[aria-pressed="true"] .multi__tick { opacity: 1; }
.multi .pill { margin-left: auto; }
.multi__opt:disabled { cursor: default; }

/* Friday's card */
.wkcard { background: var(--sam); border-radius: 24px; box-shadow: 0 20px 40px -18px rgba(80, 50, 20, .45), inset 0 0 0 1.5px var(--line); padding: 22px 22px 18px; max-width: 560px; animation: pinned .7s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes pinned { from { transform: translateY(-24px) rotate(-3deg); opacity: 0; } }
.wkcard__head { display: flex; justify-content: space-between; gap: 10px; font: 800 11.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.wkcard__name { letter-spacing: 0; text-transform: none; font-size: 15px; color: var(--ink); }
.ridge svg { display: block; width: 100%; height: auto; margin: 16px 0 4px; }
.ridge__land { fill: color-mix(in srgb, #3c9a6a 18%, var(--sam)); }
.ridge__trail { fill: none; stroke: #3c9a6a; stroke-width: 1.5; stroke-dasharray: 3 4; }
.ridge__stop { fill: #3c9a6a; }
.ridge__you { fill: var(--me); stroke: var(--sam); stroke-width: 2; }
.ridge__flag { fill: var(--me); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.wkcard__stage { margin: 0; font: 800 12.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--me-deep); }
.wkcard__headline { font-size: 22px; line-height: 1.25; margin: 8px 0 12px; }
.wkcard__headline span { font-weight: 600; font-size: 17px; color: var(--soft); }
.wkcard h4 { font: 800 11.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin: 16px 0 8px; }
.wkcard ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.wkcard__next p { margin: 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--hl) 45%, var(--sam)); font-weight: 700; color: var(--ink); }
.wkcard__note { margin: 16px 0 0; font-style: italic; }
.wkcard__from { display: block; font: 800 11.5px/1 var(--font); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.wkcard__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.wkcard__foot div { display: flex; gap: 6px; }
.wkcard__foot p { margin: 0; font-size: 13px; color: var(--soft); }

/* no link, bad link */
.notice-page { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.notice-card { max-width: 420px; background: var(--sam); border-radius: 22px; box-shadow: var(--shadow); padding: 26px 24px; text-align: center; }
.notice-card h1 { font-size: 22px; margin: 0 0 8px; }
.notice-card p { margin: 0; color: var(--soft); }

@media (max-width: 440px) {
  .top { gap: 8px; padding: 10px 12px; }
  .ava--top { width: 34px; height: 34px; }
  .week { gap: 3px; }
  .week i { width: 24px; height: 24px; font-size: 10px; }
  .thread { padding: 14px 10px 12px; }
  .row { gap: 6px; }
  .ava { width: 28px; height: 28px; }
  .deck__btns button { font-size: 13px; padding: 10px 4px; }
  .dcard p { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Tuesday: the Claude session bar and the deliverable box */
.sessionbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--claude); box-shadow: inset 0 0 0 1.5px var(--claude-edge); color: var(--claude-ink); animation: pop .25s both; }
.sessionbar__who { display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.sessionbar__who strong { display: block; font-weight: 800; }
.sessionbar__who span:not(.ava) { font-size: 13px; opacity: .8; }
.sessionbar__btns { display: flex; gap: 6px; margin-left: auto; }
.composer--claude { box-shadow: inset 0 0 0 2px var(--claude-edge); background: var(--claude); }
.composer--claude:focus-within { box-shadow: inset 0 0 0 2px var(--claude-ink); }
.composer--claude button { background: var(--claude-ink); }
.thing--deliver { max-width: 560px; }
.thing--deliver .thing__tag { background: #d6f0e0; color: #1f5c3d; }
.thing__body--plain { font-weight: 500; white-space: pre-wrap; }
.deliver { padding: 12px 14px 14px; display: grid; gap: 8px; }
.deliver__text { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); color: var(--ink); resize: vertical; min-height: 120px; }
.deliver__text:focus { outline: none; border-color: var(--me); }
.deliver__btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Wednesday: the practice highlight */
.markdemo { max-width: 420px; }
.markdemo__label { display: block; font: 800 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.markdemo p { margin: 0; }
.markdemo .seg { cursor: pointer; }

.attachments { display: grid; gap: 8px; max-width: 480px; }
.wkcard__path { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.wkcard__path li { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--hl) 35%, var(--sam)); font-weight: 600; }
.wkcard__path li:last-child { background: var(--bg-2); font-weight: 500; }

/* Wednesday's source: shown as what it is, wrapping, never scrolling sideways */
.src { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.src p { margin: 0 0 8px; }
.src--board table { width: 100%; border-collapse: collapse; }
.src--board th { text-align: left; font: 800 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 0 0 6px; }
.src--board td { padding: 5px 0; border-top: 1px solid var(--line); vertical-align: top; }
.src--board td + td, .src--board th + th { text-align: right; padding-left: 8px; white-space: nowrap; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--bg-2); color: var(--soft); }
.status--done { background: var(--promise); color: var(--promise-ink); }
.status--blocked { background: color-mix(in srgb, var(--me) 22%, transparent); color: var(--me-deep); }
.src__total { margin-top: 8px !important; font-weight: 700; }
.src .diff { font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-2); border-radius: 10px; padding: 8px 10px; margin: 6px 0 8px; }
.src .diff .add { background: color-mix(in srgb, var(--promise-edge) 22%, transparent); }
.src .diff .del { background: color-mix(in srgb, var(--me) 18%, transparent); }
.src--notes h4 { margin: 10px 0 4px; font-size: 14px; }
.src--notes h4:first-child { margin-top: 0; }
.src--notes ul { margin: 0 0 6px; padding-left: 18px; }
.src--plain { white-space: pre-wrap; font: 12px/1.5 var(--mono); }
