/* Beraad — editorial, calm, legible. Tenant colour arrives as --accent on <html>. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Fallbacks; the page head carries the environment's palette (see theme.py). */
  --accent: #038C4C; --on-accent: #fff; --link: #037e44;
  --btn: var(--accent); --on-btn: var(--on-accent); --btn-link: var(--link);
  --bg: #f6f4ef; --surface: #fffdf8; --ink: #17201b; --muted: #5d6660; --line: #dcd8cd;
  --soft: color-mix(in srgb, var(--accent) 9%, var(--surface));
  --danger: #a3291b; --warn: #8a5a00;
  --radius: 14px; --radius-btn: 999px; --radius-input: 10px; --radius-bubble: 18px;
  --display: "Fraunces", Georgia, serif; --display-weight: 560; --display-tracking: -0.01em;
  --body: "DM Sans", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.15; letter-spacing: var(--display-tracking); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .6rem; }
h2 { font-size: 1.55rem; margin: 2rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
.mono, code, .eyebrow { font-family: var(--mono); font-size: .82rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--link); margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top { position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; position: relative; }
header.top .brand { margin-right: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.brand img { height: 34px; width: auto; max-width: 160px; flex-shrink: 0; object-fit: contain; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
nav.top { display: flex; align-items: center; gap: 4px; font-size: .92rem; order: 1; }
nav.top a, nav.top .navbtn { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none;
  padding: 7px 10px; border-radius: var(--radius-input); font: inherit; background: none; border: 0; cursor: pointer; }
nav.top a:hover, nav.top .navbtn:hover { color: var(--ink); background: var(--soft); }
nav.top a[aria-current="page"] { color: var(--ink); background: var(--soft); }
nav.top form { display: contents; }
.top-actions { display: flex; align-items: center; gap: 8px; order: 2; }
.nav-langs { display: none; }
main { padding: 40px 0 72px; }
footer.bottom { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .85rem; }
footer.bottom .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.side { grid-template-columns: 1.5fr 1fr; } }
.notice { background: var(--soft); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 8px; font-size: .92rem; }
.notice.warn { border-color: var(--warn); }
.notice.danger { border-color: var(--danger); }

label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=url], input[type=tel], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-input); padding: 11px 13px; }
textarea { min-height: 190px; resize: vertical; }
/* Placeholders: hidden as soon as the field has focus; example texts cross-fade when they rotate. */
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; transition: color .45s var(--ease), opacity .45s var(--ease); }
input:focus::placeholder, textarea:focus::placeholder { opacity: 0; }
textarea.ph-swap::placeholder { opacity: 0; }
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 200px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .97rem var(--body);
  border: 1px solid var(--btn); background: var(--btn); color: var(--on-btn); border-radius: var(--radius-btn); padding: 11px 22px;
  cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--btn-link); border-color: var(--btn-link); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.small { padding: 7px 14px; font-size: .86rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; }

/* ------------------------------------------------------------------ icons */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn.small .icon { width: 1em; height: 1em; }
.eyebrow .icon { width: 1.25em; height: 1.25em; margin-right: 6px; vertical-align: -0.3em; }
.pill .icon { width: 1.05em; height: 1.05em; margin-right: 4px; vertical-align: -0.22em; }
summary .icon { margin-right: 8px; color: var(--link); }
.with-icon { display: inline-flex; align-items: center; gap: 8px; }
p.with-icon, div.with-icon { display: flex; align-items: flex-start; gap: 10px; }
p.with-icon .icon, div.with-icon > .icon { margin-top: .15em; color: var(--link); }
.notice { display: flex; gap: 10px; align-items: flex-start; }
.notice > .icon { margin-top: .2em; color: var(--link); }
.notice.warn > .icon { color: var(--warn); }
.notice.danger > .icon { color: var(--danger); }
.notice > div { flex: 1; min-width: 0; }
.big-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--link); margin-bottom: 14px; }
.big-icon .icon { width: 28px; height: 28px; }
footer .icon { margin-right: 5px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
.icon-btn .icon { width: 19px; height: 19px; }
.menu-cb { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }

.choice { display: grid; gap: 10px; }
@media (min-width: 640px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice label { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-input); padding: 14px 16px; cursor: pointer; font-weight: 400; background: var(--bg); }
.choice input { margin-right: 8px; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.choice strong { display: block; }

table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-family: var(--mono); font-weight: 400; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.scroll { overflow-x: auto; }
.pill { display: inline-block; font: .74rem var(--mono); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.done { color: var(--link); border-color: var(--link); }
.pill.failed { color: var(--danger); border-color: var(--danger); }
.pill.running, .pill.queued { color: var(--warn); border-color: var(--warn); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 10px 0 10px 44px; position: relative; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--soft); color: var(--link); font: 600 .85rem/28px var(--mono); text-align: center; }

/* Case thread */
.question { background: var(--soft); border-radius: var(--radius); padding: 16px 20px; white-space: pre-wrap; }
.memo { line-height: 1.7; }
.memo h2 { font-size: 1.3rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.memo h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.memo table { border-collapse: collapse; width: 100%; font-size: .92rem; display: block; overflow-x: auto; }
.memo th, .memo td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.memo blockquote { margin: 1rem 0; padding: .2rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.memo a { word-break: break-word; }
.progress { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.progress li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); border-bottom: 1px dashed var(--line); }
.progress li::before { content: "✓"; position: absolute; left: 4px; color: var(--link); }
.progress li:last-child { color: var(--ink); }
.progress.live li:last-child::before { content: ""; width: 10px; height: 10px; top: 14px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .progress.live li:last-child::before { animation: none; } }

.lawyer { display: grid; gap: 6px; }
.lawyer h3 { margin: 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; font-size: .92rem; }
.stat { font-family: var(--display); font-size: 2rem; line-height: 1; }
details summary { cursor: pointer; font-weight: 600; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 40ch; }

@media print {
  header.top, footer.bottom, .noprint, form { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card { border: 0; padding: 0; }
  .memo a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
}

/* fixes after visual review */
.grid > .card + .card { margin-top: 0; }
.brand { white-space: nowrap; }
/* ------------------------------------------------------------------ mobile menu */
@media (max-width: 760px) {
  .menu-toggle { display: inline-grid; }
  nav.top { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; order: 3;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgb(0 0 0 / .35);
    font-size: 1.02rem; }
  nav.top a, nav.top .navbtn { padding: 12px 12px; width: 100%; justify-content: flex-start; }
  nav.top .icon { width: 1.3em; height: 1.3em; color: var(--link); }
  .menu-cb:checked ~ .menu-toggle .i-open { display: none; }
  .menu-cb:checked ~ .menu-toggle .i-close { display: block; }
  header.top:has(.menu-cb:checked) nav.top { display: flex; animation: menu-in .2s var(--ease) both; }
  .nav-langs { display: flex; align-items: center; gap: 14px; padding: 12px 12px 4px; margin-top: 6px; border-top: 1px solid var(--line); color: var(--muted); }
  .nav-langs a, .nav-langs strong { padding: 0 !important; width: auto !important; }
  .nav-langs strong { color: var(--ink); }
  .send-btn { padding: 0; width: 52px; height: 52px; }
  .send-btn .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .send-btn .icon { width: 22px; height: 22px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { header.top nav.top { animation: none !important; } }

/* ------------------------------------------------------------------ intake chat */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.persona { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.chat { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.bubble { display: flex; gap: 10px; align-items: flex-end; max-width: 760px; }
.bubble .text { padding: 11px 15px; border-radius: var(--radius-bubble); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.bubble.bot .text { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; justify-content: flex-end; }
.bubble.me .text { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble.typing .text { color: var(--muted); font-style: italic; }
.bubble.typing .text .dots::after { content: ""; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.lex-word { transition: opacity .25s var(--ease); }
.lex-word.swap { opacity: 0; }
details .chat { margin-bottom: 0; }
.composer { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: flex-end; margin-top: 16px;
  padding: 12px 0 16px; background: linear-gradient(to bottom, transparent, var(--bg) 18px); }
.composer textarea { min-height: 52px; max-height: 220px; flex: 1; transition: opacity .2s; }
.composer.busy textarea { opacity: .6; }
.btn[disabled] { opacity: .65; cursor: progress; }
.summary .memo ul { padding-left: 1.2rem; }
.lex-status { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.lex-status .lex-word { margin: 2px 0 0; font-family: var(--display); font-size: 1.15rem; }

/* entrances: soft rise + fade, never a flash */
.enter { animation: rise .42s var(--ease) both; }
.bubble.me.enter { animation-name: rise-right; }
.summary.enter { animation-duration: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rise-right { from { opacity: 0; transform: translate(8px, 6px) scale(.985); } to { opacity: 1; transform: none; } }
.leave { animation: fade-out .18s ease both; }
@keyframes fade-out { to { opacity: 0; transform: translateY(-4px); } }

/* page-to-page: cross-fade instead of a white flash (Chromium; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ------------------------------------------------------------------ Lex, the character */
.lex { display: inline-block; flex: none; width: var(--s, 36px); height: var(--s, 36px); line-height: 0; }
.lex svg { width: 100%; height: 100%; overflow: visible; }
.lex--img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--soft); }
.lex-bg { fill: color-mix(in srgb, var(--accent) 20%, #eef2ef); }
.lex-toga { fill: #17201b; }
.lex-neck rect { fill: #9aa49d; }
.lex-stalk { stroke: #6f7a73; stroke-width: 2.5; stroke-linecap: round; }
.lex-light { fill: var(--accent); }
.lex-ear { fill: #9aa49d; }
.lex-face { fill: #f7f8f7; stroke: #c4cbc7; stroke-width: 1; }
.lex-visor { fill: #17201b; }
.lex-eye { fill: #3fe0a0; }
.lex-mouth { fill: none; stroke: #6f7a73; stroke-width: 2; stroke-linecap: round; }
.lex-lens { fill: color-mix(in srgb, #d8f3ff 40%, transparent); stroke: #4f5a54; stroke-width: 3; }
.lex-handle { stroke: #6f7a73; stroke-width: 4; stroke-linecap: round; }
.lex-pen-body { fill: var(--accent); }
.lex-pen-tip { fill: #17201b; }
.lex-glass, .lex-pen { opacity: 0; transition: opacity .3s var(--ease); }
.lex g, .lex circle, .lex path, .lex rect { transform-box: fill-box; }
.lex-head { transform-origin: 50% 90%; transition: transform .5s var(--ease); }
.lex-eyes { transform-origin: center; animation: blink 6s infinite; }
.lex-pupils { transition: transform .4s var(--ease); }

@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes look-around { 0%, 100% { transform: translate(-2.5px, -1.5px); } 50% { transform: translate(2.5px, -2px); } }
@keyframes scan { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes tilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes nod { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(-2deg) translateY(1.5px); } }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bob { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-3px, -3px) rotate(-8deg); } }
@keyframes scribble { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-2px, 1px) rotate(-6deg); } 75% { transform: translate(2px, -1px) rotate(5deg); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-7deg); } 80% { transform: rotate(5deg); } 90% { transform: rotate(-3deg); } }

.lex.lex-wave .lex-head { animation: wave 5s var(--ease) 1s 2; }
.lex.is-pondering .lex-head { animation: tilt 3.2s ease-in-out infinite; }
.lex.is-pondering .lex-pupils { animation: look-around 3.2s ease-in-out infinite; }
.lex.is-pondering .lex-light { animation: glow 1.6s ease-in-out infinite; }
.lex.is-sleuthing .lex-pupils { animation: scan 1.1s ease-in-out infinite; }
.lex.is-sleuthing .lex-glass { opacity: 1; animation: bob 2.2s ease-in-out infinite; transform-origin: 80% 90%; }
.lex.is-sleuthing .lex-light { animation: glow .9s ease-in-out infinite; }
.lex.is-writing .lex-pupils { transform: translate(1.5px, 2.5px); }
.lex.is-writing .lex-head { animation: nod 1.4s ease-in-out infinite; }
.lex.is-writing .lex-pen { opacity: 1; animation: scribble .7s ease-in-out infinite; transform-origin: 0% 100%; }
.lex.is-writing .lex-light { animation: glow 1.2s ease-in-out infinite; }
.lex--img.is-pondering img, .lex--img.is-sleuthing img, .lex--img.is-writing img { animation: nod 1.6s ease-in-out infinite; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .lex *, .lex--img img, .enter, .leave { animation: none !important; transition: none !important; }
  .lex.is-sleuthing .lex-glass, .lex.is-writing .lex-pen { opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ------------------------------------------------------------------ legal scope */
.scope-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--soft);
  color: var(--ink); font-size: .9rem; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.chip .icon { color: var(--link); }
.scope-line { display: flex; align-items: flex-start; gap: 7px; margin: 4px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.scope-line .icon { color: var(--link); margin-top: .175em; } /* centred on the first line: (1.5em - 1.15em) / 2 */

/* ------------------------------------------------------------------ lawyer suggestions */
.lawyer-suggestions { margin-top: 36px; }
.lawyer-suggestions h2 { margin-top: 0; }
.group-title { font-family: var(--body); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 22px 0 10px; }
.lawyer-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.lawyer-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.lawyer-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px);
  box-shadow: 0 12px 24px -18px rgb(0 0 0 / .35); }
.lawyer-card.is-partner { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(var(--soft), var(--surface) 70%); }
.lc-head { display: flex; gap: 12px; align-items: flex-start; }
.lc-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.lc-initials { display: grid; place-items: center; font: 600 1.05rem var(--body); color: #fff;
  background: hsl(var(--h, 150) 32% 42%); letter-spacing: .02em; }
.lc-who h3 { margin: 4px 0 0; font-size: 1.1rem; }
.lc-firm { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 600 .7rem var(--body); text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 999px; }
.badge .icon { width: 1.1em; height: 1.1em; }
.badge-partner { background: var(--accent); color: var(--on-accent); }
.badge-dir { background: var(--soft); color: var(--link); }
.lc-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .9rem; }
.lc-facts li { display: flex; gap: 8px; align-items: flex-start; }
.lc-facts li > .icon { color: var(--link); margin-top: .15em; }
.tag { display: inline-block; padding: 1px 8px; margin: 0 4px 4px 0; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; }
.tag-hit { border-color: var(--link); color: var(--link); font-weight: 600; }
.stars { --pct: calc(var(--r) / 5 * 100%); display: inline-block; font-size: .9rem; line-height: 1; letter-spacing: 1px;
  background: linear-gradient(90deg, #e3a008 var(--pct), color-mix(in srgb, var(--muted) 35%, transparent) var(--pct));
  -webkit-background-clip: text; background-clip: text; color: transparent; vertical-align: -1px; }
.stars::before { content: "★★★★★"; }
.lc-cta { margin-top: auto; align-self: flex-start; }
.disclosure { margin-top: 16px; color: var(--muted); }
.disclosure summary { font-weight: 500; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.summary-box { max-height: 260px; overflow: auto; font-size: .92rem; }

.money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--bg); }
.money span { padding: 0 4px 0 12px; color: var(--muted); }
.money input { border: 0; background: transparent; padding-left: 4px; }
.money:focus-within { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; }
.money input:focus { outline: none; }

/* ------------------------------------------------------------------ call to action: pick a lawyer */
.lawyer-cta { display: flex; gap: 18px; align-items: flex-start; margin-top: 24px; padding: 24px;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%); }
.lawyer-cta h2 { margin: 0 0 8px; font-size: 1.45rem; }
.lawyer-cta p { margin: 0 0 14px; }
.cta-kicker { font: 600 .78rem var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--link); margin-bottom: 4px !important; }
.cta-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta-faces { display: inline-flex; }
.cta-faces img, .cta-faces .lc-initials { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface);
  margin-left: -8px; object-fit: cover; font-size: .75rem; }
.cta-faces > :first-child { margin-left: 0; }
.cta-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; justify-content: center;
  align-items: center; gap: 8px; padding: 14px; border-radius: var(--radius-btn); background: var(--accent);
  color: var(--on-accent); font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .45);
  transition: transform .3s var(--ease), opacity .3s; }
.cta-bar.off { transform: translateY(140%); opacity: 0; }
@media (max-width: 760px) {
  .cta-bar:not([hidden]) { display: flex; }
  .lawyer-cta { flex-direction: column; padding: 20px; }
  .cta-lex { display: none; }
}

/* ------------------------------------------------------------------ back to top */
.to-top { position: fixed; right: 16px; bottom: calc(16px + var(--to-top-lift, 0px)); z-index: 29;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / .45); text-decoration: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), bottom .25s var(--ease); }
.to-top .icon { width: 20px; height: 20px; }
.to-top:hover { border-color: var(--link); color: var(--link); }
.to-top.off { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }
@media (min-width: 761px) { .to-top { right: 24px; bottom: calc(24px + var(--to-top-lift, 0px)); } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ------------------------------------------------------------------ cost report */
.filter-row { max-width: 520px; margin-bottom: 16px; }
.stat.neg, .bad { color: var(--danger); }
.stat.pos, .ok { color: var(--link); }
.breakeven .stat { font-size: 2.6rem; }
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 190px 1fr 110px; gap: 12px; align-items: center; font-size: .92rem; }
.funnel-bar { height: 14px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; min-width: 2px; }
.funnel-n { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .funnel-row { grid-template-columns: 1fr 70px; } .funnel-bar { grid-column: 1 / -1; order: 3; } }

/* ------------------------------------------------------------------ lawyer portal */
.photo-edit { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.photo-lg { width: 120px; height: 120px; font-size: 2rem; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.area-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { margin: 0; font-weight: 400; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: .9rem; }
.pick input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pick input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.dossier { max-width: 820px; }
.dossier-meta th { width: 130px; }
@media print { .dossier h2 { break-after: avoid; } }

/* ------------------------------------------------------------------ header controls, footer */
/* settings menu (gear) */
.icon-btn { margin: 0; flex: none; box-sizing: border-box; }
.settings { position: relative; }
.settings > summary { list-style: none; display: flex; align-items: center; justify-content: center; }
.settings > summary::-webkit-details-marker { display: none; }
.settings > summary::marker { content: ""; }
.settings > summary .icon { margin: 0; color: inherit; }  /* not the 'summary .icon' spacing used in disclosures */
.settings[open] > summary { color: var(--ink); border-color: var(--muted); background: var(--soft); }
.settings-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(300px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .4); animation: menu-in .18s var(--ease) both; }
.settings-title { margin: 0 0 10px; font: 600 .78rem var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.setting + .setting { margin-top: 14px; }
.setting-label { display: flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; margin-bottom: 7px; }
.setting-label .icon { color: var(--link); }
.segmented { display: flex; gap: 3px; padding: 3px; border-radius: var(--radius-input); background: var(--bg); border: 1px solid var(--line); }
.segmented a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 6px;
  border-radius: calc(var(--radius-input) - 3px); color: var(--muted); text-decoration: none; font-size: .84rem; white-space: nowrap; }
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.segmented .icon { width: 1em; height: 1em; }
.langs { margin-left: 10px; white-space: nowrap; }
.langs a { color: var(--muted); }

/* ------------------------------------------------------------------ branding admin */
.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type=color] { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--bg); flex: none; }
.brand-preview { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
body.preview { min-height: 0; }
@media (max-width: 520px) { .bubble { max-width: 100%; } }

.choice label.is-disabled { opacity: .55; cursor: not-allowed; }
.budget-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 14px; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.budget.is-paused .meter > span { background: var(--danger); }
.phone-notice { border-color: var(--accent); }
.code-input { font-size: 1.6rem; letter-spacing: .35em; text-align: center; max-width: 220px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ jump to an existing case */
.ongoing { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 18px; }
.ongoing-title { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 6px; font-size: .95rem; line-height: 1.5; }
.ongoing-title .icon { color: var(--link); margin-top: .175em; }
.ongoing ul { list-style: none; margin: 0; padding: 0; }
.ongoing li + li { border-top: 1px solid var(--line); }
.ongoing a { display: flex; align-items: center; gap: 10px; padding: 9px 0; text-decoration: none; color: var(--ink); }
.ongoing a > .icon { margin-left: auto; color: var(--link); }
.ongoing-name { font-weight: 600; flex: 1 1 auto; min-width: 0; }
.ongoing a .muted { flex: none; }
@media (max-width: 520px) { .ongoing a { flex-wrap: wrap; row-gap: 2px; } .ongoing-name { flex-basis: calc(100% - 30px); } }
.related-case { display: flex; align-items: center; gap: 12px; margin: 14px 0 0 46px; padding: 12px 14px;
  border: 1px solid var(--accent); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  animation: rise .4s var(--ease); }
.related-case > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.related-case > .icon { color: var(--link); }
.related-case > .icon:last-child { margin-left: auto; }
.related-name { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .related-case { animation: none; } }
.related-case strong { font-size: .8rem; font-weight: 600; color: var(--link); letter-spacing: .02em; }

/* ------------------------------------------------------------------ documents in the chat */
.attach { position: relative; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 12px;
  border: 1px dashed var(--line); border-radius: var(--radius-btn); color: var(--muted); font-size: .92rem;
  cursor: pointer; max-width: 100%; }
.attach:hover, .attach:focus-within { border-color: var(--link); color: var(--link); }
.attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.attach .icon { flex: none; }
.attach-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach.has-file { border-style: solid; border-color: var(--accent); color: var(--ink); background: var(--soft); }
.start-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.start-tools .hint { margin: 0; flex: 1 1 220px; }
.composer { flex-wrap: wrap; }
.composer-tools { flex-basis: 100%; display: flex; }
.composer-note { flex-basis: 100%; margin: 0 0 8px; }
.bubble.me .text > span { display: block; }
.doc-chip { margin-top: 6px; }
.bubble.me .doc-chip { background: rgb(255 255 255 / .16); border-radius: 10px; padding: 6px 10px; }
.doc-chip summary { display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; font-weight: 600; }
.doc-chip summary::-webkit-details-marker { display: none; }
.doc-chip summary .icon { color: inherit; margin: 0; }
.doc-note { font-size: .8rem; opacity: .85; margin: 8px 0 4px; }
.doc-text { white-space: pre-wrap; font-size: .85rem; max-height: 260px; overflow: auto; opacity: .95; }
.doc-chip--sending { opacity: .8; }
.bubble .text.has-doc { white-space: normal; }
.bubble .text.has-doc > span { white-space: pre-wrap; }

/* ------------------------------------------------------------------ rating and deadlines */
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 4px 0; font-size: .92rem; color: var(--muted); }
.rate-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-btn);
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.rate-btn:hover { border-color: var(--link); color: var(--link); }
.rate-btn.on { border-color: var(--accent); background: var(--soft); color: var(--ink); }
.rate-thanks { color: var(--link); }
.rate-more { flex-basis: 100%; display: flex; gap: 8px; }
.rate-more input { flex: 1; margin: 0; }
.deadlines ul { list-style: none; margin: 0; padding: 0; }
.deadlines li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 2px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.deadlines li:first-child { border-top: 0; }
.deadlines li.past { opacity: .55; }
.dl-date { display: flex; flex-direction: column; }
.dl-what { font-weight: 600; }
.deadlines form { grid-column: 2; margin: 0; }
.dl-remind { margin: 4px 0 0; }
@media (max-width: 520px) { .deadlines li { grid-template-columns: 1fr; } .deadlines form { grid-column: 1; } }
.check.withdrawal { margin-top: 12px; }
.check.withdrawal[hidden] { display: none; }

/* ------------------------------------------------------------------ notifications */
.push-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding: 12px 14px;
  border: 1px solid var(--accent); border-radius: var(--radius); background: var(--soft); }
.push-offer > span { flex: 1 1 200px; }
.push-offer > .icon { color: var(--link); }
.push-offer[hidden], [data-push-setting][hidden] { display: none; }
.push-toggle { margin-top: 6px; }
.push-hint { margin: 6px 0 0; }
.device-list { list-style: none; padding: 0; margin: 0 0 12px; }
.device-list li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.device-list li:first-child { border-top: 0; }
.device-list .muted { margin-left: auto; }
[data-push-toggle][hidden] { display: none; }

/* ------------------------------------------------------------------ pilot and sign-up */
.lawyer-card.is-preview { outline: 2px dashed var(--accent); outline-offset: 3px; }
.preview-flag { display: flex; gap: 6px; align-items: flex-start; font-size: .82rem; color: var(--link); margin: 0 0 8px; }
.pilot-note { margin-bottom: 16px; }
.pilot-banner { border-color: var(--accent); background: var(--soft); }
.survey fieldset { border: 0; border-top: 1px solid var(--line); padding: 16px 0 6px; margin: 0; }
.survey fieldset:first-of-type { border-top: 0; padding-top: 0; }
.survey legend { font-weight: 600; padding: 0; margin-bottom: 10px; }
.survey textarea { min-height: 70px; }
.scale { display: flex; flex-wrap: wrap; gap: 6px; }
.scale-opt { margin: 0; }
.scale-opt input { position: absolute; opacity: 0; pointer-events: none; }
.scale-opt span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border: 1px solid var(--line);
  border-radius: var(--radius-input); cursor: pointer; font-weight: 600; }
.scale-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.scale-opt input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.scale-wrap { display: inline-block; max-width: 100%; }
.scale-ends { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); margin: 4px 0 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.check-list { display: grid; gap: 2px; margin-bottom: 8px; }
.applicant { display: grid; grid-template-columns: 1fr auto auto; gap: 10px 16px; align-items: end; padding: 14px 0; border-top: 1px solid var(--line); }
.applicant:first-of-type { border-top: 0; }
.approve { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin: 0; }
.approve label { margin: 0; }
.approve input { width: 7rem; margin: 2px 0 0; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.copy-row code { word-break: break-all; }
@media (max-width: 760px) { .applicant { grid-template-columns: 1fr; } }

/* Existing cases on the start screen: collapsed by default */
details.ongoing { padding: 0; }
details.ongoing > summary { list-style: none; cursor: pointer; padding: 11px 14px; margin: 0; align-items: center; }
details.ongoing > summary::-webkit-details-marker { display: none; }
details.ongoing > summary .icon:first-child { margin-top: 0; }
details.ongoing > summary > span { flex: 1; }
.ongoing-chevron { flex: none; color: var(--link); transition: transform .2s var(--ease); }
details.ongoing[open] .ongoing-chevron { transform: rotate(90deg); }
details.ongoing[open] > summary { border-bottom: 1px solid var(--line); }
details.ongoing > ul, details.ongoing > .hint { padding: 0 14px; }
details.ongoing > .hint { padding-bottom: 12px; }
details.ongoing:hover > summary { color: var(--link); }
@media (prefers-reduced-motion: reduce) { .ongoing-chevron { transition: none; } }

/* ------------------------------------------------------------------ reading on phones */
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .card.memo, .memo.card { padding: 18px 16px; }
  .memo { line-height: 1.6; }
  .memo h2 { font-size: 1.18rem; padding-top: 1rem; margin-top: 1.4rem; }
  .memo h3 { font-size: 1.05rem; }
  .memo ul, .memo ol { padding-left: 1.15rem; }
  .memo li { margin: .35rem 0; }
  .memo li > p { margin: .3rem 0; }
  /* Tables become a stack of small cards: one card per row, each cell labelled with its column. */
  .memo table.cards, .memo table.cards tbody, .memo table.cards tr, .memo table.cards td { display: block; width: 100%; }
  .memo table.cards { overflow: visible; border: 0; font-size: .95rem; }
  .memo table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .memo table.cards tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0;
    background: var(--bg); }
  .memo table.cards td { border: 0; padding: 3px 0; }
  .memo table.cards td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
  .memo table.cards td:first-child { font-weight: 600; }
  .memo table.cards td:first-child::before { margin-top: 0; }
  .memo table.cards td:empty { display: none; }
  .memo a { overflow-wrap: anywhere; word-break: normal; }
}
.rate-more[hidden], .rate-thanks[hidden] { display: none; }

/* ------------------------------------------------------------------ after a quick scan: next steps */
.next-steps { margin-top: 16px; border-color: var(--accent); }
.next-steps h2 { margin-top: 0; }
.options { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.option { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); display: flex;
  flex-direction: column; gap: 8px; }
.option h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; }
.option h3 .icon { color: var(--link); }
.option p { margin: 0; }
.option .btn { align-self: flex-start; margin-top: auto; }
.option form { margin-top: auto; }
.option-main { grid-row: span 2; background: var(--soft); border-color: var(--accent); }
.option-quiet { background: transparent; }
.price { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.ticks { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 4px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks .icon { color: var(--link); margin-top: .2em; flex: none; }
.upgrade-mark { margin-top: 22px; }
.value-note, .option .value-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 12px; padding: 10px 12px;
  border-radius: 10px; background: var(--surface); border: 1px dashed var(--line); color: var(--ink); }
.value-note .icon { color: var(--link); margin-top: .2em; flex: none; }
.package-line { display: flex; gap: 6px; align-items: center; margin: 0 0 10px; color: var(--muted); }
.package-line .icon { color: var(--link); }
.memo.letter { font-family: Georgia, "Times New Roman", serif; line-height: 1.6; }
.memo.letter h2:first-child { font-family: inherit; }
.letter-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
#brief select { width: 100%; }
.lawyer-direct { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; }
.lawyer-direct .icon { color: var(--link); }
@media (max-width: 760px) { .options { grid-template-columns: 1fr; } .option-main { grid-row: auto; } }

/* Busy submit button: a spinner takes the icon's place */
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.spinner { display: inline-block; width: 1.1em; height: 1.1em; flex: none; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.send-btn .spinner { width: 20px; height: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* AI notice (AI Act art. 50) and consent */
.ai-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); margin: 10px 0 0; }
.ai-note .icon { flex: none; margin-top: .15em; color: var(--link); }
#intake > .ai-note { margin: 0 0 12px; }
.consent-page .persona { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.consent-page .ticks span { flex: 1; }
.consent-page form.card { margin-top: 16px; }
.legal .table-wrap { overflow-x: auto; margin: 12px 0; }
.privacy-table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 640px; }
.privacy-table th, .privacy-table td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.privacy-table th { font-weight: 600; color: var(--muted); }

/* Sharing */
.share-new { margin: 8px 0 12px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.share-row input { flex: 1 1 200px; min-width: 0; font-family: var(--mono, monospace); font-size: .85rem; }
.share-list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.share-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; }
.share-list form { margin: 0; }
.share-card select { width: 100%; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.shared-banner { margin-bottom: 16px; }
.shared-cta { margin-top: 28px; text-align: left; }

/* Areas of law picker (NOvA register list) */
.nova-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; margin: 6px 0; }
.nova-area details { margin: 2px 0 6px 28px; }
.nova-area summary { cursor: pointer; }
.nova-subs { display: grid; gap: 2px; margin-top: 4px; }
.nova-subs .check { margin: 0; }
.option-quiet a.small { display: block; margin-top: 4px; }
.register-link { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; }

/* ------------------------------------------------------------------ public landing: start card, offer, topics */
.start-card textarea { width: 100%; }
.start-card .hint { margin: 6px 0 0; }
.offer, .topics { margin-top: 32px; }
.offer h2, .topics h2 { margin: 0 0 12px; }
.offer-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .offer-grid { grid-template-columns: 1fr 1.25fr 1fr; align-items: stretch; } }
.offer-grid .option-main { grid-row: auto; }
.offer-grid .option .btn { margin-top: auto; }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .topic-list { grid-template-columns: 1fr 1fr; } }
.topic-list a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px;
  align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); text-decoration: none; }
.topic-list a:hover { border-color: var(--accent); }
.topic-list a > .muted { grid-column: 1; }
.topic-list a > span:not(.muted) { grid-column: 1; font-weight: 600; }
.topic-list a > .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--link); }
.deadline-note { margin: 0 0 16px; }
.topic-body h2:first-child { margin-top: 0; }
