/* SendMyAgent — papel quente, tinta escura, verde para o que foi acordado. */

:root {
  --bg: #f4f0e8;
  --surface: #fffdf8;
  --surface-2: #efe9dd;
  --ink: #1c1a17;
  --muted: #6b6459;
  --faint: #9a9284;
  --line: #e1d9ca;
  --line-strong: #cbc1ad;
  --accent: #1e5c49;
  --accent-ink: #fffdf8;
  --accent-soft: #e2eee8;
  --warn: #9a5d0c;
  --warn-soft: #f6ead2;
  --bad: #a3352a;
  --bad-soft: #f6e0db;
  --c0: #1e5c49; --c1: #3b4ea8; --c2: #b0532b; --c3: #7a3f86; --c4: #666a1c; --c5: #2a6c8c;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(28, 26, 23, .04), 0 10px 28px -18px rgba(28, 26, 23, .28);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --surface: #1b1916;
    --surface-2: #24211c;
    --ink: #ece6da;
    --muted: #a59d8f;
    --faint: #766f63;
    --line: #2e2a24;
    --line-strong: #403a32;
    --accent: #6cc3a4;
    --accent-ink: #0e1d17;
    --accent-soft: #1b2b25;
    --warn: #e0a94f;
    --warn-soft: #2e2616;
    --bad: #e58476;
    --bad-soft: #331d19;
    --c0: #6cc3a4; --c1: #94a3f2; --c2: #e89a72; --c3: #cc95d8; --c4: #c2c66a; --c5: #7fbfe0;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; }
a { color: inherit; }
p { margin: 0 0 .7em; }
small { font-size: .85em; color: var(--muted); }
em { font-style: normal; color: var(--faint); font-weight: 400; }

.muted { color: var(--muted); }
.grow { flex: 1 1 auto; min-width: 0; }
.stack { display: grid; gap: 16px; }

/* ---------- barra superior */

.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-family: var(--serif); font-size: 18px; font-weight: 500; white-space: nowrap;
}
.brand svg { width: 28px; height: 28px; }
.brand circle { fill: none; stroke: var(--accent); stroke-width: 2; }
.brand .lens { fill: var(--accent); }
.tag {
  font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px; padding: 4px 8px;
}
.room-title { flex: 1 1 auto; min-width: 0; border-left: 1px solid var(--line); padding-left: 18px; }
.room-title h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.link { color: var(--accent); text-underline-offset: 3px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.pill.live { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.live i { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.pill.reporting, .pill.paused { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.reporting i, .pill.paused i { background: var(--warn); }
.pill.finished { background: var(--ink); color: var(--bg); border-color: transparent; }
.pill.finished i { background: var(--bg); }
.pill.cancelled { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.cancelled i { background: var(--bad); }

@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.banner { background: var(--warn-soft); color: var(--warn); text-align: center; padding: 8px 16px; font-size: 13.5px; }

/* ---------- peças */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card > h2, .card-head h2 { font-size: 18px; margin-bottom: 10px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.step {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px;
  border-radius: 50%; background: var(--ink); color: var(--bg);
  font: 600 12px/1 var(--sans); vertical-align: 2px;
}

.btn {
  appearance: none; cursor: pointer; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 500 14px/1 var(--sans); color: var(--ink);
  padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, .tabs button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn.big { width: 100%; padding: 14px 18px; font-size: 15.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.chip {
  display: inline-block; white-space: nowrap;
  font: 500 11.5px/1 var(--sans); padding: 5px 9px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted);
}
.chip.approved { background: var(--accent-soft); color: var(--accent); }
.chip.pending_ratification, .chip.open { background: var(--warn-soft); color: var(--warn); }
.chip.rejected, .chip.refused, .chip.no_quorum { background: var(--bad-soft); color: var(--bad); }

.field { display: block; border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.field > span, .field > legend {
  display: block; padding: 0; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.field em { margin-left: 6px; font-size: 12px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 11px;
}
textarea { resize: vertical; min-height: 44px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=radio] { width: auto; }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.error { color: var(--bad); background: var(--bad-soft); border-radius: 9px; padding: 9px 12px; font-size: 13.5px; }

.inline { display: flex; gap: 10px; align-items: flex-end; margin-top: 10px; }
.inline select, .inline input[type=number] { width: auto; }
.inline .field { margin-bottom: 0; }

.rows { display: grid; gap: 8px; margin-bottom: 8px; }
.row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; align-items: center; }
.x {
  appearance: none; border: 0; background: none; cursor: pointer; color: var(--faint);
  font-size: 20px; line-height: 1; width: 28px; height: 28px; border-radius: 7px;
}
.x:hover { background: var(--surface-2); color: var(--bad); }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; background: var(--bg); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 13px; border-radius: 7px; font-size: 13.5px; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); font-weight: 500; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

details.more { margin: 12px 0 0; border-top: 1px dashed var(--line-strong); padding-top: 10px; }
details.more > summary { cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--muted); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-block; width: 16px; font-family: var(--mono); color: var(--faint); }
details.more[open] > summary::before { content: "–"; }
details.more[open] > summary { margin-bottom: 12px; color: var(--ink); }

.codebox { position: relative; margin: 10px 0 0; }
.codebox pre {
  margin: 0; padding: 14px 14px 46px; max-height: 240px; overflow: auto;
  font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
}
.codebox .btn { position: absolute; right: 10px; bottom: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }

.avatar {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font: 600 12px/1 var(--sans); color: var(--surface); background: var(--muted);
}
.avatar.c0 { background: var(--c0); } .avatar.c1 { background: var(--c1); } .avatar.c2 { background: var(--c2); }
.avatar.c3 { background: var(--c3); } .avatar.c4 { background: var(--c4); } .avatar.c5 { background: var(--c5); }
.avatar.rel { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-strong); font-size: 14px; }
.name.c0 { color: var(--c0); } .name.c1 { color: var(--c1); } .name.c2 { color: var(--c2); }
.name.c3 { color: var(--c3); } .name.c4 { color: var(--c4); } .name.c5 { color: var(--c5); }

.dots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .3; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 40% { opacity: 1; } }

/* ---------- página inicial */

.home-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px;
  max-width: 1160px; margin: 0 auto; padding: 56px 24px 40px; align-items: start;
}
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.intro h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -.025em; max-width: 12ch; }
.lead { font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 46ch; margin: 22px 0 34px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0; max-width: 50ch; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 13px;
  font: 500 22px/1 var(--serif); color: var(--accent); width: 30px;
}
.steps b { color: var(--ink); font-weight: 600; }
#mine { margin-top: 40px; }
#mine h2 { font-size: 18px; margin-bottom: 10px; }
#mine h2 small { font: 400 12.5px var(--sans); margin-left: 6px; }
.mine { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-width: 50ch; }
.mine a {
  display: flex; justify-content: space-between; gap: 12px; text-decoration: none;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.mine a:hover { border-color: var(--ink); }
.mine-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

.form-card { padding: 26px; }
.form-card > h2 { font-size: 24px; margin-bottom: 18px; }
.foot { text-align: center; color: var(--faint); font-size: 13px; padding: 12px 24px 40px; }

/* ---------- sala */

.room-grid {
  display: grid; gap: 20px; align-items: start;
  grid-template-columns: 270px minmax(0, 1fr) 320px;
  max-width: 1440px; margin: 0 auto; padding: 22px 24px 48px;
}
.col-left, .col-right { display: grid; gap: 16px; position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow: auto; }
.col-main { display: grid; gap: 16px; min-width: 0; }

.objective { color: var(--muted); font-size: 13.5px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.agenda { list-style: none; padding: 0; margin: 0; }
.ag { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.ag:first-child { border-top: 0; }
.ag-n {
  flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font: 500 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-strong);
}
.ag-title { font-weight: 500; line-height: 1.35; }
.ag-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ag-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ag.pending { color: var(--muted); }
.ag.active .ag-n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ag.active .ag-note { color: var(--accent); font-weight: 500; }
.ag.done .ag-n { background: var(--surface-2); border-color: transparent; color: var(--accent); }
.ag.done.no_agreement .ag-note, .ag.skipped .ag-note { color: var(--warn); }

.people, .invites, .decisions, .whispers, .checks, .pending-list { list-style: none; padding: 0; margin: 0; }
.person, .invites li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.person.relator { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.p-name { font-weight: 500; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.p-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.you { font: 500 10.5px/1 var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 99px; padding: 3px 6px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dot.on { background: var(--accent); }
.dot.away { background: var(--warn); }
.speaking-dots { flex: none; color: var(--accent); margin-left: 0; }
.speaking-dots i { opacity: .35; }
.person.speaking .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.invites li { border-top: 1px solid var(--line); padding: 10px 0; }
.invites li:first-child { border-top: 0; }

.card.start { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card.start h2 { margin-bottom: 4px; }
.card.start p { margin: 0; }

/* transcrição */
.transcript-card { padding: 0; overflow: hidden; }
.transcript { padding: 8px 24px 20px; max-height: calc(100vh - 190px); min-height: 320px; overflow: auto; scroll-behavior: smooth; }
.ev { margin-top: 16px; }
.ev.speech { display: flex; gap: 12px; }
.who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.who .name { font-weight: 600; }
.who .agent, .who time { font-size: 12px; color: var(--faint); }
.ev.line { font-size: 13px; color: var(--muted); padding-left: 44px; margin-top: 8px; }
.ev.line b { color: var(--ink); font-weight: 500; }
.ev.line.strong { color: var(--ink); font-weight: 500; }
.ev.line .reason { font-style: italic; }
.ev.line.result { font-weight: 600; }
.ev.line.result.approved, .vote-line.accept b { color: var(--accent); }
.ev.line.result.pending_ratification { color: var(--warn); }
.ev.line.result.rejected, .ev.line.result.no_quorum { color: var(--bad); }
.ev.divider {
  display: flex; align-items: baseline; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
}
.ev.divider:first-child { border-top: 0; margin-top: 8px; }
.ev.divider span { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.ev.divider h3 { font-size: 20px; }

.ev.proposal {
  margin: 18px 0 6px 44px; padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--warn);
}
.ev.proposal.st-approved { border-left-color: var(--accent); }
.ev.proposal.st-rejected, .ev.proposal.st-refused, .ev.proposal.st-no_quorum { border-left-color: var(--bad); }
.prop-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.prop-id { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); padding: 4px 7px; border-radius: 6px; }
.prop-kind { font-size: 12.5px; color: var(--muted); flex: 1 1 auto; }
.prop-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.prop-meta b { color: var(--ink); font-weight: 500; }
.votes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vote { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.vote b { color: var(--ink); font-weight: 500; }
.vote.accept, .vote.accept_pending_human { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.vote.reject { border-color: color-mix(in srgb, var(--bad) 55%, transparent); color: var(--bad); }

.elapsed { font: 12px var(--mono); color: var(--faint); }
.floor {
  display: flex; align-items: center; padding: 12px 24px; border-top: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted); font-size: 13.5px;
}

/* markdown */
.md { overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: .35em 0 .6em; }
.md ul, .md ol { margin: .4em 0 .7em; padding-left: 1.4em; }
.md li { margin: .2em 0; }
.md code { font: .88em var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.md pre { background: var(--surface-2); padding: 12px; border-radius: 10px; overflow: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: .6em 0; padding: 2px 14px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.md a { color: var(--accent); }
.md h1, .md h2, .md h3, .md h4 { margin: 1.1em 0 .4em; line-height: 1.25; }
.md h1 { font-size: 1.5em; } .md h2 { font-size: 1.25em; } .md h3 { font-size: 1.1em; }
.md h4 { font: 600 1em var(--sans); }
.tablewrap { overflow-x: auto; margin: .6em 0; }
.md table { border-collapse: collapse; font-size: .93em; min-width: 100%; }
.md th, .md td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.md th { font-weight: 600; color: var(--muted); font-size: .9em; }

/* resultados */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  appearance: none; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 500 14px/1 var(--sans); color: var(--muted); padding: 12px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.card.paper { padding: 0; }
.paper-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.md.doc { padding: 28px clamp(20px, 5vw, 48px) 36px; font-size: 15.5px; line-height: 1.65; max-width: 78ch; }
.md.doc h1 { font-size: 1.9em; letter-spacing: -.02em; }
.card.wait { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.card.wait p { margin: 0 0 0 8px; }
.card.callout { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 55%, var(--surface)); }
.pending-list li { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.pending-list .prop-id { display: inline-block; margin-bottom: 6px; }
.ratify { display: flex; gap: 6px; flex: none; }
.checks li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 500; }
.checks li:first-child { border-top: 0; }
.checks span { font-weight: 400; color: var(--muted); font-size: 13px; }
.checks li.ok span { color: var(--accent); }

/* coluna direita */
.mandate-box summary small { display: block; margin: 2px 0 0 16px; }
.levels { display: grid; gap: 6px; margin-bottom: 14px; }
.level { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.level:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.level input { margin-top: 3px; accent-color: var(--accent); }
.level b { display: block; font-weight: 600; font-size: 13.5px; }
.level small { display: block; font-size: 12.5px; line-height: 1.4; }
.form-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.saved { font-size: 12.5px; color: var(--accent); }
.whisper { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.whisper .field { margin-bottom: 8px; }
.whispers { margin-top: 10px; }
.whispers li { font-size: 13px; padding: 8px 0; border-top: 1px dashed var(--line); display: grid; gap: 2px; }
.whispers small.ok { color: var(--accent); }
.decisions li { padding: 12px 0; border-top: 1px solid var(--line); }
.decisions li:first-child { border-top: 0; padding-top: 2px; }
.decisions p { font-size: 13.5px; margin: 0; }
.decisions .ratify { margin-top: 10px; }
.controls { display: flex; flex-wrap: wrap; gap: 6px; }

.fatal { max-width: 460px; margin: 12vh auto; padding: 0 24px; text-align: center; }
.fatal h1 { font-size: 30px; margin-bottom: 12px; }
.fatal p { color: var(--muted); margin-bottom: 22px; }

/* ---------- telas menores */

@media (max-width: 1180px) {
  .room-grid { grid-template-columns: 250px minmax(0, 1fr); }
  .col-left { grid-row: 1 / span 2; }
  .col-right { grid-column: 2; position: static; max-height: none; overflow: visible; }
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .intro h1 { max-width: none; }
}
@media (max-width: 760px) {
  .topbar { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .brand span { display: none; }
  .room .topbar #status { order: 2; margin-left: auto; }
  .room-title { order: 3; flex-basis: 100%; border-left: 0; padding-left: 0; }
  .room-title h1 { font-size: 18px; white-space: normal; }
  .room-grid { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 40px; }
  .col-left { position: static; max-height: none; overflow: visible; order: 2; grid-row: auto; }
  .col-main { order: 1; }
  .col-right { order: 3; grid-column: auto; }
  .transcript { max-height: none; padding: 4px 16px 16px; }
  .ev.line { padding-left: 0; }
  .ev.proposal { margin-left: 0; }
  .floor { padding: 12px 16px; position: sticky; bottom: 0; }
  .row { grid-template-columns: 1fr auto; }
  .row input[data-k=description], .row input[data-k=email] { grid-column: 1; grid-row: 2; }
  .home-grid { padding: 24px 16px; }
  .form-card { padding: 20px; }
  .card { padding: 16px; }
  .card.paper, .transcript-card { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .transcript { scroll-behavior: auto; }
}
