/* The quiet meeting view: one screen for one question. What everyone sees is above a line; below it is the person's
   own draft, which they read back before it crosses. Uses the room's paper, ink and dots (style.css). */
.mt { height:100dvh; width:min(100%, 46rem); margin:0 auto; padding:max(12px, env(safe-area-inset-top)) var(--cell) max(12px, env(safe-area-inset-bottom)); display:grid; grid-template-rows:auto minmax(0, 1fr) auto auto; gap:10px; }
.mt[hidden] { display:none; }
.mt-top { display:grid; grid-template-columns:1fr auto; gap:2px 8px; align-items:center; }
.mt-room, .mt-label { font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-2); font-weight:400; }
a.mt-room { color:var(--ink-2); text-underline-offset:3px; min-height:28px; display:flex; align-items:center; }
.mt-home { align-content:start; width:min(100%, 40rem); } .mt-home .mt-list { max-height:60dvh; }
a.mt-disc { color:inherit; text-decoration:none; } a.mt-disc b { font-size:1.05rem; overflow-wrap:anywhere; } .mt-disc small { color:var(--ink-2); }
.mt-new { justify-self:start; font-size:.75rem; background:var(--ok); color:var(--paper); border-radius:999px; padding:0 8px; font-weight:650; }
.mt-own { display:flex; flex-wrap:wrap; gap:8px; align-items:center; } .mt-own button { min-height:40px; } .mt-own input { min-height:40px; padding:4px 8px; border-radius:8px; border:1px solid var(--line); background:var(--paper); color:inherit; font:inherit; } .mt-done { color:var(--ok); }
.mt-chip { justify-self:start; white-space:normal; border-radius:12px; font-size:.75rem; border:1px solid var(--ok); color:var(--ok); border-radius:999px; padding:0 8px; }
.mt-top h1 { grid-column:1 / -1; font-size:clamp(1.15rem, 4.6vw, 1.5rem); line-height:1.2; text-wrap:balance; overflow-wrap:anywhere; }
.mt-menu { min-height:32px; padding:2px 10px; font-size:.85rem; }
.mt-prop { grid-column:1 / -1; } .mt-prop summary { cursor:pointer; color:var(--ink-2); min-height:28px; }
.mt-prop div { white-space:pre-wrap; max-height:22dvh; overflow:auto; margin-top:4px; padding:10px; border:1px solid var(--line); border-radius:10px; background:var(--tint); }
.mt-shared { display:grid; grid-template-rows:auto minmax(0, 1fr); gap:6px; min-height:0; }
.mt-list { overflow:auto; display:grid; align-content:start; gap:8px; padding:2px; }
.mt-empty { color:var(--ink-2); padding:8px 2px; }
.mt-said, .mt-move { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:10px 12px; display:grid; gap:4px; }
.mt-said header, .mt-move header { font-size:.85rem; color:var(--ink-2); display:flex; flex-wrap:wrap; gap:2px 8px; align-items:baseline; }
.mt-said header b, .mt-move header b { color:var(--ink); }
.mt-said p, .mt-move p { white-space:pre-wrap; overflow-wrap:anywhere; }
.mt-ai { border:1px solid var(--line); border-radius:999px; padding:0 8px; }
.mt-said.new, .mt-move.new { animation:mt-arrive .5s ease-out; }
.mt-move { border-color:var(--ok); } .mt-move.decided { background:var(--tint); }
.mt-tag { font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color:var(--ok); font-weight:700; }
.mt-move .what { font-weight:650; font-size:1.05rem; }
.mt-move dl { display:grid; grid-template-columns:auto 1fr; gap:2px 10px; } .mt-move dt { color:var(--ink-2); } .mt-move dd { overflow-wrap:anywhere; }
.mt-tally { font-size:.9rem; color:var(--ink-2); }
.mt-stances { display:flex; flex-wrap:wrap; gap:6px; } .mt-stances button { min-height:40px; } .mt-stances button[aria-pressed="true"] { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.mt-why { display:grid; grid-template-columns:1fr auto; gap:6px; } .mt-why input { min-height:40px; padding:6px 10px; border-radius:8px; border:1px solid var(--line); background:var(--paper); min-width:0; }
.mt-line { display:grid; grid-template-columns:1fr auto 1fr; gap:10px; align-items:center; color:var(--ink-2); font-size:.75rem; }
.mt-line::before, .mt-line::after { content:""; border-top:2px dashed var(--line); }
.mt-mine { display:grid; gap:8px; }
.mt-minehead { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:32px; }
.mt-box select { width:100%; min-height:44px; padding:6px 10px; border-radius:10px; border:1px solid var(--line); background:var(--paper); color:inherit; font:inherit; }
.mt-mine form, #mtBack { display:grid; gap:8px; } #mtBack[hidden] { display:none; }
.mt-ask { font-weight:650; font-size:1.05rem; }
.mt-mine textarea, .mt-box textarea, .mt-box input { width:100%; font-size:1rem; line-height:1.4; padding:10px 12px; border-radius:10px; border:1px solid var(--line); background:var(--paper); resize:none; }
/* the draft box is one line until it is being used, so the room above keeps the screen */
.mt-mine textarea { height:2.9em; }
@media (prefers-reduced-motion: reduce) { .mt-mine textarea { transition:none; } }
.mt-acts { display:flex; flex-wrap:wrap; gap:8px; } .mt-acts button { min-height:44px; padding:8px 16px; }
blockquote { margin:0; padding:10px 12px; border-left:3px solid var(--ok); background:var(--tint); border-radius:0 10px 10px 0; white-space:pre-wrap; overflow-wrap:anywhere; max-height:24dvh; overflow:auto; }
.mt-msg { color:var(--up); font-size:.9rem; } .mt-msg:empty { display:none; } .mt-msg.good { color:var(--ok); }
.mt-sugg { border:1px dashed var(--ok); border-radius:12px; padding:8px 12px; display:grid; gap:6px; animation:mt-arrive .4s ease-out; }
.mt-sugg header { display:block; font-size:.85rem; color:var(--ink-2); } .mt-sugg p { white-space:pre-wrap; overflow-wrap:anywhere; max-height:16dvh; overflow:auto; }
.mt-sugg .mt-acts button { min-height:36px; padding:4px 12px; font-size:.9rem; }
.mt-box { margin:auto; border:1px solid var(--line); border-radius:14px; background:var(--paper); color:var(--ink); padding:var(--cell); width:min(92vw, 30rem); max-height:92dvh; overflow:auto; }
.mt-box::backdrop { background:rgb(0 0 0 / .45); }
.mt-box form, .mt-box #mtNextFields, .mt-box #mtNextBack { display:grid; gap:8px; } .mt-box [hidden] { display:none !important; }
.mt-box label { font-weight:650; } .mt-box label.mt-check { font-weight:400; display:grid; grid-template-columns:auto 1fr; gap:8px; align-items:start; font-size:.88rem; color:var(--ink-2); } .mt-check input { width:20px; height:20px; margin-top:2px; } .mt-box label span, .mt-note { font-weight:400; color:var(--ink-2); font-size:.88rem; }
.mt-box p { display:grid; gap:2px; margin:6px 0; } .mt-link { color:inherit; font-weight:650; }
:focus-visible { outline:3px solid var(--ok); outline-offset:2px; }
@keyframes mt-arrive { from { opacity:0; transform:translateY(14px); box-shadow:0 0 0 3px var(--ok); } to { box-shadow:0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .mt-said.new, .mt-move.new, .mt-sugg { animation:none; } }
@media (max-height: 560px) { .mt-mine textarea:focus, .mt-mine textarea:not(:placeholder-shown) { height:4.4em; } .mt-top h1 { font-size:1.05rem; } }

/* ── Feel ──────────────────────────────────────────────────────────────────────────────────────────────────────────
   The owner, 2026-11-19: not a default web page; living, breathing, moving, elegant; never silly, dizzying, or
   illusion for its own sake. So: motion only where it says something (your words cross the line; someone's words
   arrive; a page becomes the next one; a thing is waiting, thinking, settled), it eases out and it stops. Two things
   move on their own, slowly: the line, which is the one boundary that matters, and the light behind the page.
   Everything here is switched off for people who ask their device for less motion. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration:.34s; animation-timing-function:cubic-bezier(.2, .8, .2, 1); }
::view-transition-group(mt-question) { animation-duration:.46s; animation-timing-function:cubic-bezier(.2, .8, .2, 1); }
#mtQ, .entry h1 { view-transition-name:mt-question; } .mt-home h1 { view-transition-name:none; }
/* a slow light behind the dots */
body::before { content:""; position:fixed; inset:-25%; z-index:-1; pointer-events:none;
  background:radial-gradient(38% 32% at 28% 22%, color-mix(in srgb, var(--ok) 11%, transparent), transparent 70%), radial-gradient(34% 30% at 76% 78%, color-mix(in srgb, var(--warn) 7%, transparent), transparent 70%);
  animation:mt-drift 46s ease-in-out infinite alternate; }
@keyframes mt-drift { to { transform:translate3d(5%, -4%, 0) scale(1.1); } }
/* the line: a current running along it, both ways out from the middle; it brightens once when words cross or arrive */
.mt-line::before, .mt-line::after { border-top:0; height:2px; border-radius:2px; background:linear-gradient(90deg, transparent, var(--line) 25%, var(--ok) 50%, var(--line) 75%, transparent); background-size:220% 100%; animation:mt-flow 11s linear infinite; }
.mt-line::before { animation-direction:reverse; }
@keyframes mt-flow { to { background-position:-220% 0; } }
.mt-line.pulse { animation:mt-pulse 1s ease-out; }
@keyframes mt-pulse { 0% { filter:brightness(1.9) drop-shadow(0 0 8px var(--ok)); color:var(--ok); } 100% { filter:none; } }
/* things have a little weight, and answer a touch */
.mt-said, .mt-move, .mt-sugg { box-shadow:0 1px 0 rgb(0 0 0 / .04), 0 14px 28px -22px rgb(0 0 0 / .55); }
.mt button, .entry button, .mt-box button, .mt-disc { transition:transform .14s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background-color .22s ease, opacity .22s ease, border-color .22s ease; }
.mt button:active, .entry button:active, .mt-box button:active { transform:scale(.965); }
.mt button.primary, .entry button.primary, .mt-box button.primary { box-shadow:inset 0 1px 0 rgb(255 255 255 / .16), 0 10px 22px -12px color-mix(in srgb, var(--ink) 70%, transparent); }
.mt button.primary:not(:disabled):hover, .entry button.primary:not(:disabled):hover, .mt-box button.primary:not(:disabled):hover { transform:translateY(-1px); box-shadow:inset 0 1px 0 rgb(255 255 255 / .2), 0 14px 26px -12px color-mix(in srgb, var(--ink) 80%, transparent); }
.mt button.primary:disabled { opacity:.38; box-shadow:none; }
a.mt-disc:hover, a.mt-disc:focus-visible { transform:translateY(-2px); border-color:var(--ok); box-shadow:0 18px 32px -20px rgb(0 0 0 / .6); }
.mt-top h1, .entry h1 { letter-spacing:-.012em; }
/* arriving: up from the line, coming into focus */
@keyframes mt-arrive { from { opacity:0; transform:translateY(18px) scale(.985); filter:blur(3px); } }
.mt-said.new, .mt-move.new { animation:mt-arrive .62s cubic-bezier(.2, .8, .2, 1); }
.mt-sugg { animation:mt-condense .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes mt-condense { from { opacity:0; transform:scale(.97); filter:blur(7px); } }
/* your own words on their way across the line */
.mt-ghost { position:fixed; z-index:6; transform-origin:top left; padding:10px 12px; border-radius:12px; border-left:3px solid var(--ok); background:var(--tint); white-space:pre-wrap; overflow:hidden; pointer-events:none; max-height:30dvh; box-shadow:0 22px 44px -18px rgb(0 0 0 / .6); }
/* the draft box wakes as it is used, and grows with the words (public/meeting.js sets its height) */
.mt-mine textarea { transition:height .2s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, box-shadow .25s ease; }
.mt-mine textarea:focus, .mt-box textarea:focus, .mt-box input:focus, .entry textarea:focus { outline:none; border-color:var(--ok); box-shadow:0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
/* where you are in the opener breathes; the room's AI thinking is three quiet dots */
.entry-count i.now { animation:mt-breathe 2.6s ease-in-out infinite; }
@keyframes mt-breathe { 50% { opacity:.45; } }
.mt-dots { display:inline-flex; gap:5px; vertical-align:middle; } .mt-dots i { width:6px; height:6px; border-radius:50%; background:var(--ok); animation:mt-breathe 1.2s ease-in-out infinite; } .mt-dots i:nth-child(2) { animation-delay:.2s; } .mt-dots i:nth-child(3) { animation-delay:.4s; }
dialog.mt-box[open] { animation:mt-rise .28s cubic-bezier(.2, .8, .2, 1); } dialog.mt-box::backdrop { animation:mt-veil .28s ease-out; backdrop-filter:blur(3px); }
@keyframes mt-rise { from { opacity:0; transform:translateY(14px) scale(.98); } } @keyframes mt-veil { from { opacity:0; } }
.mt-move.decided .mt-tag { animation:mt-pulse 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .mt *, .entry *, .mt-box, .mt-box *, .mt-line, .mt-line::before, .mt-line::after, body::before, .mt-ghost { animation:none !important; transition:none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation:none !important; }
}

/* Presence: the others here now, as small initials with a slow breath. Nothing else on the page moves for it. */
.mt-topright { display:flex; align-items:center; gap:8px; }
.mt-here { display:inline-flex; align-items:center; } .mt-herewrap { justify-self:start; min-height:0; } .mt-herewrap:empty { display:none; }
.mt-here i { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; margin-left:-7px; font-style:normal; font-size:.72rem; font-weight:700; color:var(--ink); background:var(--tint); border:1.5px solid var(--ok); animation:mt-here 3.2s ease-in-out infinite; }
.mt-here i:first-child { margin-left:0; } .mt-here i:nth-child(2) { animation-delay:.5s; } .mt-here i:nth-child(3) { animation-delay:1s; }
@keyframes mt-here { 50% { box-shadow:0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); } }
@media (prefers-reduced-motion: reduce) { .mt-here i { animation:none !important; } }

/* the attendant speaks in the open, and looks like what it is: an agent, not a person */
.mt-att { border-style:dashed; border-color:var(--ok); background:color-mix(in srgb, var(--ok) 5%, var(--paper)); }
