/* The Agora — themed debate halls. Flat arch niches, gold line colonnades, warm dark. */
:root {
  --ag-gold: #d4af7b; --ag-gold-hi: #ffcf7a; --ag-line: rgba(212,175,123,0.26); --ag-ink: #f2ebdf; --ag-mute: rgba(242,235,223,0.55);
  --ag-for: #3fb4a6; --ag-against: #e0607e; --ag-und: #d4af7b; --ag-bg: #0d0c0a;
}
#themesPage.agora-open { height: auto !important; min-height: calc(100svh - var(--site-header-height, 101px)); overflow: visible !important; background: var(--ag-bg); }
#themesPage.agora-open .theme-menu { display: none; }
.agora-view { display: none; position: relative; color: var(--ag-ink); }
#themesPage.agora-open .agora-view { display: block; animation: agIn 380ms cubic-bezier(.2,.7,.2,1); }
@keyframes agIn { from { opacity: 0; transform: translateY(10px); } }

/* line-art colonnade backdrop */
.ag-colonnade { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.55; }
.ag-colonnade svg { width: 100%; height: 100%; display: block; }
.theme-menu .ag-colonnade { opacity: 0.32; }

/* ── Index aside: motion of the week + residents (index keeps the original oversized list) ── */
.theme-aside { width: min(300px, 30vw) !important; }
.ag-aside-motion { margin-top: 22px; font-family: 'Bodoni Moda', Didot, Georgia, serif; font-size: 22px; line-height: 1.22; color: #fff7e8; text-wrap: balance; }
.ag-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(212,175,123,0.5); border-radius: 999px; padding: 5px 12px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ag-gold); }
.ag-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ag-gold); }
.ag-aside-niches { display: flex; gap: 10px; margin-top: 20px; }
.ag-aside-niches .ag-niche { width: 66px; }
.ag-aside-meta { margin-top: 14px; font-size: 11px; letter-spacing: 0.06em; color: var(--ag-mute); }
.ag-aside-meta b { color: var(--ag-gold); font-weight: 500; }
.ag-live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ag-for); margin: 0 6px 1px 10px; box-shadow: 0 0 0 0 rgba(63,180,166,0.6); animation: agPulse 1.8s infinite; }
@keyframes agPulse { 70% { box-shadow: 0 0 0 7px rgba(63,180,166,0); } 100% { box-shadow: 0 0 0 0 rgba(63,180,166,0); } }

/* ── Buttons ── */
.ag-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(212,175,123,0.55); border-radius: 999px; background: transparent; color: #eee3cf; font: inherit; font-size: 11px; letter-spacing: 0.06em; padding: 10px 18px; cursor: pointer; transition: background 160ms, border-color 160ms, color 160ms, transform 120ms; white-space: nowrap; }
.ag-btn:hover { border-color: var(--ag-gold); color: #fff; background: rgba(212,175,123,0.08); }
.ag-btn:active { transform: scale(0.97); }
.ag-btn.is-solid { background: var(--ag-gold); border-color: var(--ag-gold); color: #17130d; font-weight: 600; }
.ag-btn.is-solid:hover { background: var(--ag-gold-hi); border-color: var(--ag-gold-hi); }
.ag-btn[disabled] { opacity: 0.45; pointer-events: none; }
.ag-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ag-gold); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ag-link:hover { color: var(--ag-gold-hi); }
.theme-aside .ag-btn { margin-top: 20px; pointer-events: auto; }

/* ── Arch niche (person) ── */
.ag-niche { position: relative; flex: none; width: 112px; display: flex; flex-direction: column; align-items: center; border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
.ag-niche-arch { position: relative; width: 100%; aspect-ratio: 5 / 7; border-radius: 999px 999px 4px 4px; overflow: hidden; background: linear-gradient(180deg, var(--c2, #555), var(--c1, #333)); box-shadow: 0 0 0 1px rgba(212,175,123,0.55), 0 0 0 4px var(--ag-bg), 0 0 0 5px rgba(212,175,123,0.28); }
.ag-niche-arch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 40%, rgba(0,0,0,0.18)); pointer-events: none; }
/* same geometry as the advisor cards (5:7, 286px reference) so PORTRAIT_ADJUSTMENTS carry over; --k = niche width / 286 */
.ag-niche-arch img { position: absolute; left: 52%; bottom: 0; width: 108%; height: 88%; object-fit: contain; object-position: center center; transform: translateX(calc(-50% + var(--px, 0) * var(--k, 0.4) * 1px)) translateY(calc(-8% + var(--py, 0) * var(--k, 0.4) * 1px)) scale(calc(var(--ps, 1) * var(--pf, 1)), var(--ps, 1)); transform-origin: center center; }
.ag-niche-plate { margin-top: 9px; max-width: 100%; padding: 4px 8px; background: #16130f; border: 1px solid rgba(212,175,123,0.3); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #eadcc2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-niche-check { position: absolute; top: -6px; right: -6px; z-index: 3; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: var(--ag-gold); color: #17130d; font-size: 12px; font-weight: 700; }
.ag-niche.is-picked { transform: translateY(-10px); }
.ag-niche.is-picked .ag-niche-check { display: grid; }
.ag-niche.is-picked .ag-niche-arch { box-shadow: 0 0 0 2px var(--ag-gold), 0 0 0 5px var(--ag-bg), 0 0 0 6px rgba(212,175,123,0.6), 0 14px 30px rgba(212,175,123,0.18); }
.ag-niche:hover .ag-niche-arch { box-shadow: 0 0 0 1.5px var(--ag-gold), 0 0 0 4px var(--ag-bg), 0 0 0 5px rgba(212,175,123,0.45); }
.ag-niche-x { position: absolute; top: -7px; right: -7px; z-index: 3; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(212,175,123,0.6); background: #16130f; color: #eee; font-size: 12px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ag-niche-x:hover { background: var(--ag-against); border-color: var(--ag-against); }
.ag-plinth { height: 10px; margin-top: -2px; border: 1px solid rgba(212,175,123,0.3); border-top: 0; }

/* ── Hall ── */
.ag-hall { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: calc(100svh - var(--site-header-height, 101px)); }
.ag-hall-main { position: relative; z-index: 1; padding: 34px clamp(22px, 4vw, 58px) 40px; min-width: 0; }
.ag-crumb { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ag-mute); }
.ag-crumb button { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; }
.ag-crumb button:hover { color: var(--ag-gold); }
.ag-h1 { font-family: 'Bodoni Moda', Didot, Georgia, serif; font-weight: 600; font-size: clamp(44px, 5.4vw, 82px); line-height: 1; letter-spacing: -0.035em; margin: 14px 0 0; }
.ag-h1 em { font-style: italic; color: var(--ag-gold); }
.ag-motion-box { margin-top: 26px; max-width: 760px; }
.ag-motion-text { margin-top: 14px; font-family: 'Bodoni Moda', Didot, Georgia, serif; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.18; color: #fff7e8; text-wrap: balance; }
.ag-motion-input { width: 100%; margin-top: 12px; background: transparent; border: 0; border-bottom: 1px solid rgba(212,175,123,0.5); color: #fff7e8; font-family: 'Bodoni Moda', Didot, Georgia, serif; font-size: clamp(22px, 2.2vw, 30px); padding: 6px 0 8px; outline: none; }
.ag-motion-input:focus { border-color: var(--ag-gold); }
.ag-motion-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.ag-chip { border: 1px solid rgba(212,175,123,0.28); border-radius: 999px; background: transparent; color: #cfc2a9; font: inherit; font-size: 11px; padding: 5px 11px; cursor: pointer; }
.ag-chip:hover, .ag-chip.is-on { border-color: var(--ag-gold); color: #fff; }

.ag-gallery-head { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ag-mute); }
.ag-gallery-head::after { content: ''; flex: 1; height: 1px; background: var(--ag-line); }
.ag-round { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(212,175,123,0.5); background: transparent; color: #eee; cursor: pointer; font-size: 14px; }
.ag-round:hover { border-color: var(--ag-gold); color: var(--ag-gold); }
.ag-gallery { position: relative; display: flex; gap: 22px; overflow-x: auto; padding: 22px 6px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(212,175,123,0.35) transparent; }
.ag-gallery .ag-niche { scroll-snap-align: start; }
.ag-steps { height: 16px; margin: 0 -6px; background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(212,175,123,0.28) 5px 6px); border-bottom: 1px solid rgba(212,175,123,0.35); }

.ag-floor { margin-top: 26px; padding: 20px 22px 22px; border: 1px solid rgba(212,175,123,0.3); border-radius: 18px; background: linear-gradient(180deg, rgba(212,175,123,0.06), rgba(212,175,123,0.015)); }
.ag-floor-head { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ag-gold); }
.ag-floor-head::after { content: ''; flex: 1; height: 1px; background: var(--ag-line); }
.ag-floor-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.ag-floor-row .ag-niche { width: 92px; cursor: default; }
.ag-slot { width: 92px; aspect-ratio: 5 / 7; border: 1px dashed rgba(212,175,123,0.5); border-radius: 999px 999px 4px 4px; background: transparent; color: var(--ag-gold); font-size: 22px; cursor: pointer; display: grid; place-items: center; margin-bottom: 30px; }
.ag-slot:hover { background: rgba(212,175,123,0.07); border-style: solid; }
.ag-floor-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; }
.ag-floor-hint { font-size: 11px; color: var(--ag-mute); }

.ag-side { position: relative; z-index: 1; border-left: 1px solid var(--ag-line); padding: 34px 26px 40px; }
.ag-side-head { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ag-gold); padding-bottom: 12px; border-bottom: 1px solid var(--ag-line); }
.ag-past { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(212,175,123,0.14); padding: 16px 0; color: inherit; font: inherit; cursor: pointer; }
.ag-past:hover .ag-past-q { color: var(--ag-gold-hi); }
.ag-past-q { font-family: 'Bodoni Moda', Didot, Georgia, serif; font-size: 16px; line-height: 1.28; color: #fff7e8; transition: color 160ms; }
.ag-past-by { margin-top: 6px; font-size: 10px; color: var(--ag-mute); letter-spacing: 0.04em; }
.ag-past-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 10px; color: var(--ag-mute); }
.ag-faces { display: flex; }
.ag-faces span { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; margin-right: -6px; border: 1.5px solid var(--ag-bg); background: var(--c1, #333); }
.ag-faces img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ag-mini-tally { display: flex; gap: 2px; height: 3px; width: 54px; border-radius: 2px; overflow: hidden; margin-left: auto; }
.ag-mini-tally i { display: block; }
.ag-side-note { margin-top: 16px; font-size: 10px; color: rgba(242,235,223,0.35); line-height: 1.6; }

/* ── Debate ── */
.ag-debate { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: calc(100svh - var(--site-header-height, 101px)); }
.ag-debate-main { position: relative; z-index: 1; min-width: 0; padding: 26px clamp(18px, 3.4vw, 50px) 30px; display: flex; flex-direction: column; }
.ag-stage { position: relative; text-align: center; padding: 8px 0 0; }
.ag-stage .ag-pill { margin-top: 8px; }
.ag-stage-motion { font-family: 'Bodoni Moda', Didot, Georgia, serif; font-weight: 600; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -0.02em; max-width: 900px; margin: 14px auto 0; text-wrap: balance; }
.ag-tally { display: flex; max-width: 560px; margin: 20px auto 0; gap: 3px; }
.ag-tally > div { flex: var(--n, 0) 1 0; min-width: 0; transition: flex 600ms cubic-bezier(.2,.7,.2,1); }
.ag-tally > div[style*="--n:0"] { flex: 0.0001 1 0; }
.ag-tally-label { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; overflow: hidden; margin-bottom: 6px; }
.ag-tally-label b { font-family: Georgia, serif; font-size: 15px; font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.ag-tally-bar { height: 4px; border-radius: 2px; }
.is-for { color: var(--ag-for); } .is-against { color: var(--ag-against); } .is-undecided { color: var(--ag-und); }
.bg-for { background: var(--ag-for); } .bg-against { background: var(--ag-against); } .bg-undecided { background: var(--ag-und); }
.ag-camps { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(16px, 3vw, 44px); margin-top: 26px; min-height: 214px; }
.ag-camp { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ag-camp-label { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; }
.ag-camp-people { display: flex; justify-content: center; align-items: flex-end; gap: 16px; min-height: 160px; }
.ag-camp.is-mid .ag-camp-people { min-width: 110px; }
.ag-camp-people .ag-niche { width: 98px; cursor: default; animation: agIn 500ms both; }
.ag-camp-people .ag-niche.is-speaking .ag-niche-arch { box-shadow: 0 0 0 2px var(--ag-gold-hi), 0 0 0 5px var(--ag-bg), 0 0 0 6px rgba(255,207,122,0.6), 0 0 34px rgba(255,207,122,0.32); }
.ag-camp-people .ag-niche.is-thinking .ag-niche-arch { animation: agThink 1.2s ease-in-out infinite; }
@keyframes agThink { 50% { box-shadow: 0 0 0 1.5px var(--ag-gold), 0 0 0 4px var(--ag-bg), 0 0 0 5px rgba(212,175,123,0.5), 0 0 26px rgba(212,175,123,0.3); } }
.ag-camp-empty { width: 98px; aspect-ratio: 5 / 7; border: 1px dashed rgba(212,175,123,0.16); border-radius: 999px 999px 4px 4px; margin-bottom: 30px; }
.ag-stage-base { height: 14px; margin: 4px 0 0; background: repeating-linear-gradient(180deg, transparent 0 4px, rgba(212,175,123,0.26) 4px 5px); border-bottom: 1px solid rgba(212,175,123,0.35); }

.ag-log { flex: 1; margin-top: 20px; min-height: 200px; }
.ag-round-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(212,175,123,0.7); }
.ag-round-sep::before, .ag-round-sep::after { content: ''; flex: 1; height: 1px; background: rgba(212,175,123,0.16); }
.ag-turn { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(212,175,123,0.1); animation: agIn 420ms both; }
.ag-turn-av { width: 40px; height: 52px; border-radius: 999px 999px 3px 3px; overflow: hidden; background: linear-gradient(180deg, var(--c2), var(--c1)); box-shadow: 0 0 0 1px rgba(212,175,123,0.45); position: relative; }
.ag-turn-av img { position: absolute; left: 50%; bottom: 0; width: 130%; height: 100%; object-fit: contain; object-position: center bottom; transform: translateX(-50%); }
.ag-turn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-turn-name { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #eadcc2; }
.ag-tag { font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; }
.ag-move { font-size: 9px; letter-spacing: 0.1em; color: var(--ag-mute); font-style: italic; }
.ag-shift { font-size: 9px; color: var(--ag-gold); letter-spacing: 0.06em; }
.ag-turn-text { margin-top: 7px; font-family: Georgia, serif; font-size: 15px; line-height: 1.62; color: #f4ecdd; text-wrap: pretty; }
.ag-turn.is-user { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.ag-turn.is-user .ag-turn-body { max-width: 72%; padding: 12px 16px; border: 1px solid rgba(212,175,123,0.45); border-radius: 14px 14px 3px 14px; background: #1d1913; }
.ag-turn.is-user .ag-turn-text { margin-top: 4px; font-size: 14px; }
.ag-turn.is-pending .ag-turn-text { color: var(--ag-mute); font-style: italic; }
.ag-dots::after { content: '…'; animation: agDots 1.2s steps(3) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes agDots { from { width: 0; } }
.ag-error { margin: 16px 0; padding: 12px 16px; border: 1px solid rgba(224,96,126,0.5); border-radius: 12px; color: #f3c7d1; font-size: 12px; }

.ag-composer { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 8px 8px 20px; border: 1px solid rgba(212,175,123,0.5); border-radius: 999px; background: rgba(18,16,13,0.94); backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.ag-composer input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff7e8; font: inherit; font-size: 13px; }
.ag-composer input::placeholder { color: rgba(242,235,223,0.4); }
.ag-at-menu { position: absolute; left: 18px; bottom: calc(100% + 8px); display: flex; gap: 6px; flex-wrap: wrap; }
.ag-at-menu button { border: 1px solid rgba(212,175,123,0.45); background: #16130f; color: #eadcc2; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 11px; cursor: pointer; }
.ag-at-menu button:hover { border-color: var(--ag-gold); color: #fff; }

.ag-floor-side { position: relative; z-index: 1; border-left: 1px solid var(--ag-line); padding: 28px 22px; }
.ag-seat { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(212,175,123,0.12); }
.ag-seat .ag-turn-av { width: 38px; height: 50px; }
.ag-seat-name { font-family: 'Bodoni Moda', Didot, Georgia, serif; font-size: 15px; line-height: 1.2; color: #fff7e8; }
.ag-seat .ag-tag { display: inline-block; margin-top: 6px; }
.ag-seat-x { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(212,175,123,0.4); background: transparent; color: #ddd; cursor: pointer; }
.ag-seat-x:hover { background: var(--ag-against); border-color: var(--ag-against); color: #fff; }
.ag-seat-at { background: none; border: 0; color: var(--ag-mute); font: inherit; font-size: 10px; padding: 0; margin-left: 8px; cursor: pointer; }
.ag-seat-at:hover { color: var(--ag-gold); }
.ag-pull { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; padding: 14px; border: 1px dashed rgba(212,175,123,0.55); border-radius: 12px; background: transparent; color: var(--ag-gold); font: inherit; font-size: 12px; cursor: pointer; }
.ag-pull:hover { background: rgba(212,175,123,0.07); border-style: solid; }

/* ── Verdict ── */
.ag-verdict { position: relative; padding: 30px clamp(18px, 4vw, 60px) 50px; display: flex; flex-direction: column; align-items: center; min-height: calc(100svh - var(--site-header-height, 101px)); }
.ag-stele { position: relative; z-index: 1; width: min(980px, 100%); margin-top: 10px; padding: clamp(46px, 6vw, 80px) clamp(22px, 5vw, 70px) 40px; background: #ece2cf; color: #1d1914; border-radius: 999px 999px 10px 10px / 340px 340px 10px 10px; box-shadow: inset 0 0 0 10px #ece2cf, inset 0 0 0 11px rgba(160,120,60,0.55), 0 30px 80px rgba(0,0,0,0.45); text-align: center; animation: agIn 520ms both; }
.ag-stele-kicker { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: #8a6a35; }
.ag-stele-kicker svg { display: block; margin: 0 auto 10px; }
.ag-stele h2 { font-family: 'Bodoni Moda', Didot, Georgia, serif; font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.02em; margin: 14px auto 0; max-width: 760px; text-wrap: balance; }
.ag-stele-motion { margin-top: 10px; font-size: 12px; letter-spacing: 0.06em; color: #6d5b40; }
.ag-stele-rule { width: 60px; height: 1px; background: #a47c3f; margin: 20px auto; }
.ag-stele-summary { max-width: 720px; margin: 0 auto; font-family: Georgia, serif; font-size: 16px; line-height: 1.66; color: #2b241b; text-wrap: pretty; }
.ag-stele-cols { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; text-align: left; }
.ag-stele-col { padding: 0 22px; border-left: 1px solid rgba(164,124,63,0.45); }
.ag-stele-col:first-child { border-left: 0; padding-left: 0; }
.ag-stele-col h4 { margin: 0 0 12px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid rgba(164,124,63,0.35); }
.ag-stele-col h4.is-for { color: #1f7f74; } .ag-stele-col h4.is-against { color: #b23a58; } .ag-stele-col h4.is-undecided { color: #8a6a35; }
.ag-stele-col p { margin: 0 0 10px; font-family: Georgia, serif; font-size: 14px; line-height: 1.5; color: #2b241b; }
.ag-stele-tension { margin: 26px auto 0; max-width: 680px; font-family: Georgia, serif; font-style: italic; font-size: 15px; color: #6d5b40; }
.ag-stele-cast { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.ag-stele-cast .ag-niche { width: 84px; cursor: default; }
.ag-stele-cast .ag-niche-arch { box-shadow: 0 0 0 1px rgba(164,124,63,0.8), 0 0 0 4px #ece2cf, 0 0 0 5px rgba(164,124,63,0.4); }
.ag-stele-cast .ag-niche-plate { background: #1d1914; }
.ag-stele-pos { margin-top: 6px; max-width: 120px; font-size: 10.5px; line-height: 1.35; color: #4a3f30; }
.ag-final-tally { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 26px; margin-top: 22px; padding: 14px 30px; border: 1px solid rgba(212,175,123,0.45); border-radius: 12px; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; }
.ag-final-tally b { font-family: 'Bodoni Moda', Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: 0; margin-left: 8px; }
.ag-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.ag-actions-note { position: relative; z-index: 1; margin-top: 14px; font-size: 10px; letter-spacing: 0.12em; color: rgba(242,235,223,0.4); text-align: center; }

/* ── Picker modal ── */
.ag-modal { position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; background: rgba(8,7,6,0.7); backdrop-filter: blur(6px); animation: agIn 200ms; }
.ag-modal[hidden] { display: none; }
.ag-modal-panel { width: min(980px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #12110e; border: 1px solid rgba(212,175,123,0.35); border-radius: 20px; padding: 24px 26px; }
.ag-modal-head { display: flex; align-items: center; gap: 14px; }
.ag-modal-head h3 { margin: 0; font-family: 'Bodoni Moda', Didot, Georgia, serif; font-size: 26px; font-weight: 600; }
.ag-modal-head input { flex: 1; min-width: 0; background: transparent; border: 1px solid rgba(212,175,123,0.4); border-radius: 999px; padding: 9px 16px; color: #fff; font: inherit; font-size: 13px; outline: none; }
.ag-modal-head input:focus { border-color: var(--ag-gold); }
.ag-modal-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ag-modal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 24px 16px; margin-top: 18px; padding: 10px 4px 4px; overflow-y: auto; }
.ag-modal-grid .ag-niche { width: 100%; }
.ag-modal-grid .ag-niche.is-seated { opacity: 0.35; pointer-events: none; }
.ag-modal-foot { margin-top: 14px; font-size: 11px; color: var(--ag-mute); }

/* ── Debate reader (past debates) ── */
.ag-reader .st-panel { width: min(760px, 100%); }
.ag-reader-tally { display: flex; gap: 18px; margin-top: 16px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.ag-reader-tally b { font-family: Georgia, serif; font-size: 18px; font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.ag-reader-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 16px; border: 1px solid rgba(212,175,123,0.22); border-radius: 14px; overflow: hidden; }
.ag-reader-cols > div { padding: 14px 16px; border-left: 1px solid rgba(212,175,123,0.16); }
.ag-reader-cols > div:first-child { border-left: 0; }
.ag-reader-cols h5 { margin: 0 0 8px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.ag-reader-cols p { margin: 0 0 8px; font-size: 12px; line-height: 1.5; color: rgba(242,235,223,0.8); }
.ag-reader .ag-turn-text { font-size: 14px; }
.ag-reader-continue { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 980px) {
  .ag-hall, .ag-debate { grid-template-columns: 1fr; }
  .ag-side, .ag-floor-side { border-left: 0; border-top: 1px solid var(--ag-line); }
  .ag-stele-cols, .ag-reader-cols { grid-template-columns: 1fr; }
  .ag-stele-col { border-left: 0; padding: 0 0 14px; }
  .ag-camps { grid-template-columns: 1fr; }
  .theme-aside { width: min(260px, 40vw) !important; }
  .ag-aside-niches { display: none; }
}

/* Index aside — roomier, motion is the focal point (list on the right stays original) */
#themesPage .theme-aside { top: 11%; width: min(340px, 27vw); }
.ag-aside-motion { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.14; }
.ag-aside-niches { gap: 14px; margin-top: 24px; }
.ag-aside-niches .ag-niche { flex: none; margin: 0; }
.ag-aside-meta { margin-top: 16px; text-transform: uppercase; letter-spacing: 0.16em; font-size: 10px; }
.ag-aside-meta .ag-live-dot { margin-left: 0; }
.ag-aside .ag-btn { margin-top: 22px; padding: 11px 22px; font-size: 12px; }
#themesPage .theme-aside-kicker { color: var(--ag-gold, #d4af7b); letter-spacing: 0.18em; text-transform: uppercase; font-size: 10px; }
@media (max-width: 1100px) { .ag-aside-niches .ag-niche { width: 56px !important; } }

/* Hall polish */
.ag-hall .ag-colonnade, .ag-debate .ag-colonnade, .ag-verdict .ag-colonnade { opacity: 0.22; }
.ag-motion-input { resize: none; display: block; line-height: 1.2; field-sizing: content; min-height: 1.3em; max-height: 3.8em; overflow: hidden; }
.ag-h1 { font-size: clamp(40px, 4.4vw, 68px); }
.ag-gallery-head { margin-top: 24px; }
.ag-gallery { padding-top: 16px; gap: 20px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
.ag-niche.is-picked { transform: translateY(-6px); }
.ag-floor { margin-top: 18px; }
.ag-past-row { flex-wrap: wrap; row-gap: 6px; }
.ag-side-note { color: rgba(234,220,194,0.55); }

/* Debate floor: page stays put, only the transcript scrolls; colonnade only behind the stage */
.ag-debate { height: calc(100svh - var(--site-header-height, 101px)); min-height: 620px; }
.ag-debate-main { height: 100%; overflow: hidden; }
.ag-debate .ag-colonnade { bottom: auto; height: 470px; }
.ag-log { min-height: 0; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(212,175,123,0.3) transparent; }
.ag-log > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.ag-camps { min-height: 0; }
.ag-camp-people { min-height: 0; }
.ag-camp-empty { width: 70px; margin-bottom: 0; opacity: 0.6; }
.ag-floor-side { overflow-y: auto; }
.ag-move { color: rgba(234,220,194,0.6); }
@media (max-width: 900px) { .ag-debate { height: auto; } .ag-debate-main { height: auto; overflow: visible; } .ag-log { max-height: 60svh; } }

/* Verdict: compact enough that the cast + actions sit near the fold */
.ag-stele { padding-top: clamp(34px, 4vw, 54px); padding-bottom: 30px; }
.ag-stele h2, .ag-aside-motion, .ag-stage-motion, .ag-h1 { font-family: 'DM Serif Display', 'Bodoni Moda', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.ag-stele h2 { font-size: clamp(30px, 3.2vw, 46px); }
.ag-stele-rule { margin: 14px auto; }
.ag-stele-summary { font-size: 15px; line-height: 1.58; }
.ag-stele-cols { margin-top: 22px; }
.ag-stele-col h4 { text-align: center; }
.ag-stele-col p { position: relative; padding-left: 12px; font-size: 13.5px; }
.ag-stele-col p::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: #a47c3f; }
.ag-stele-tension { margin-top: 16px; }
.ag-stele-cast { margin-top: 22px; }
.ag-stele-cast .ag-niche { width: 74px; }
.ag-verdict .ag-colonnade { opacity: 0.34; }
.ag-reader .st-meta { font-size: 12px; color: rgba(234,220,194,0.7); }
.ag-reader-cols p { font-size: 12.5px; color: rgba(242,235,223,0.88); }
.ag-reader-tally b { vertical-align: -1px; }

@media (max-width: 640px) {
  .ag-hall-main { padding: 22px 16px 30px; }
  .ag-h1 { font-size: 40px; }
  .ag-motion-input { font-size: 21px; max-height: 5em; }
  .ag-hall .ag-colonnade { display: none; }
  .ag-gallery { gap: 14px; padding-left: 8px; }
  .ag-gallery .ag-niche { width: 96px !important; }
  .ag-niche-plate { white-space: normal; text-align: center; line-height: 1.3; font-size: 8px; }
  .ag-floor { padding: 16px 12px; }
  .ag-floor-row { gap: 14px; padding-top: 10px; }
  .ag-floor-row .ag-niche { width: 74px !important; }
  .ag-niche-check, .ag-niche-x { top: -9px; right: -9px; }
}
.ag-camp-people .ag-niche-plate, .ag-stele-cast .ag-niche-plate { white-space: normal; text-align: center; line-height: 1.3; overflow: visible; }
.ag-camp-people { gap: 20px; }
.ag-floor-side { position: relative; z-index: 2; background: var(--ag-bg); }
.ag-composer { position: relative; max-width: 820px; width: 100%; margin: 12px auto 0; }
.ag-composer::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; background: linear-gradient(transparent, var(--ag-bg)); pointer-events: none; }
.ag-camp-label, .ag-tally-label { color: rgba(234,220,194,0.82); }
#themesPage .theme-aside { width: min(380px, 29vw); }
.ag-stele-cast > div { width: 150px; }
.ag-stele-cast .ag-niche { margin: 0 auto; }
.ag-stele-cast { gap: 30px; align-items: flex-start; }
.ag-stele-pos { max-width: 150px; font-family: Georgia, serif; font-size: 12px; color: #3a3125; }
.ag-stele .ag-tag.is-for { color: #1f7f74; border-color: #1f7f74; }
.ag-stele .ag-tag.is-against { color: #b23a58; border-color: #b23a58; }
.ag-stele .ag-tag.is-undecided { color: #8a6a35; border-color: #8a6a35; }
.ag-stele-motion { margin-top: 14px; font-family: Georgia, serif; font-style: italic; font-size: 14px; letter-spacing: 0; }
/* Final polish: uniform name plates, no clipped first niche, quieter linework behind text */
.ag-niche-plate { white-space: normal; text-align: center; line-height: 1.3; min-height: 2.9em; display: flex; align-items: center; justify-content: center; overflow: visible; }
.ag-gallery { padding-left: 10px; scroll-padding-left: 10px; }
.ag-niche.is-picked { transform: none; }
.ag-hall .ag-colonnade { opacity: 0.12; }
.ag-debate .ag-colonnade { opacity: 0.14; }
.ag-camp-empty { display: none; }
.ag-log { padding-bottom: 20px; }

/* ── v2 feedback: visible thin-line Roman colonnade everywhere ── */
.ag-colonnade, .ag-hall .ag-colonnade, .ag-debate .ag-colonnade, .ag-verdict .ag-colonnade { opacity: 0.5; }
.ag-debate .ag-colonnade { height: auto; bottom: 0; -webkit-mask-image: radial-gradient(ellipse 34% 62% at 50% 66%, rgba(0,0,0,0.28), #000 100%); mask-image: radial-gradient(ellipse 34% 62% at 50% 66%, rgba(0,0,0,0.28), #000 100%); }
.ag-hall .ag-colonnade { -webkit-mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,0.35) 30%, rgba(0,0,0,0.35) 70%, #000 100%); mask-image: linear-gradient(90deg, #000 0, rgba(0,0,0,0.35) 30%, rgba(0,0,0,0.35) 70%, #000 100%); }

/* ── Debate floor: compact stage, dialogue gets the room ── */
.ag-debate-main { padding-top: 16px; padding-bottom: 18px; }
.ag-stage { padding: 0; }
.ag-stage-motion { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.15; margin-top: 6px; max-width: 760px; }
.ag-tally { margin-top: 10px; max-width: 420px; }
.ag-tally-label { margin-bottom: 4px; }
.ag-tally-label b { font-size: 13px; }
.ag-camps { margin-top: 10px; gap: 22px; }
.ag-camp { gap: 6px; }
.ag-camp-people { gap: 12px; }
.ag-camp-people .ag-niche { width: 64px !important; }
.ag-camp-people .ag-niche-plate { font-size: 7.5px; padding: 3px 5px; margin-top: 5px; min-height: 0; }
.ag-camp.is-mid .ag-camp-people { min-width: 64px; }
.ag-stage-base { margin-top: 2px; height: 8px; }
.ag-log { flex: 1 1 auto; margin-top: 10px; }
.ag-turn-text { font-size: 15.5px; }

/* ── Right sidebar: bigger arched portraits ── */
.ag-debate { grid-template-columns: minmax(0, 1fr) 320px; }
.ag-floor-side { padding: 22px 22px 24px; }
.ag-seat { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; }
.ag-seat .ag-niche { width: 72px !important; cursor: default; }
.ag-seat-name { font-family: 'DM Serif Display', Georgia, serif; font-size: 18px; }
.ag-seat-at { display: block; margin: 8px 0 0; font-size: 11px; color: rgba(234,220,194,0.7); }
.ag-seat.is-speaking .ag-niche-arch { box-shadow: 0 0 0 2px var(--ag-gold-hi, #ffcf7a), 0 0 0 5px var(--ag-bg), 0 0 22px rgba(255,207,122,0.35); }

/* ── Index: faint wall of every resident of the hovered theme ── */
.theme-menu .ag-wall { position: absolute; inset: 0 0 0 30%; z-index: 0; pointer-events: none; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 18px 16px; padding: 24px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 90%, transparent); }
.ag-wall .ag-niche { width: 92px !important; cursor: default; opacity: 0; transform: translateY(10px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); }
.ag-wall .ag-niche-arch { box-shadow: 0 0 0 1px rgba(212,175,123,0.4); filter: grayscale(0.55) brightness(0.8); }
.ag-wall.is-in .ag-niche { opacity: 0.14; transform: none; }
.ag-wall.is-in .ag-niche.is-lit { opacity: 0.62; }
.ag-wall.is-in .ag-niche.is-lit .ag-niche-arch { filter: none; box-shadow: 0 0 0 1.5px var(--ag-gold, #d4af7b), 0 0 0 4px #050505, 0 0 0 5px rgba(212,175,123,0.4); }
.ag-wall .ag-niche[data-d="1"] { transition-delay: 30ms; } .ag-wall .ag-niche[data-d="2"] { transition-delay: 60ms; } .ag-wall .ag-niche[data-d="3"] { transition-delay: 90ms; }
.ag-wall .ag-niche[data-d="4"] { transition-delay: 120ms; } .ag-wall .ag-niche[data-d="5"] { transition-delay: 150ms; } .ag-wall .ag-niche[data-d="6"] { transition-delay: 180ms; }
.ag-wall .ag-niche[data-d="7"] { transition-delay: 210ms; } .ag-wall .ag-niche[data-d="8"] { transition-delay: 240ms; } .ag-wall .ag-niche[data-d="9"] { transition-delay: 270ms; }
.ag-wall .ag-niche[data-d="10"] { transition-delay: 300ms; } .ag-wall .ag-niche[data-d="11"] { transition-delay: 330ms; }
#themesPage .theme-index { z-index: 1; }
#themesPage .theme-aside { z-index: 2; }
@media (max-width: 980px) { .theme-menu .ag-wall { inset: 0; } .ag-wall .ag-niche { width: 64px !important; } .ag-debate { grid-template-columns: 1fr; } }

/* ── v2b: colonnade frames the floor; dialogue sits on a quiet veil ── */
.ag-debate .ag-colonnade { top: 44px; opacity: 0.55; -webkit-mask-image: none; mask-image: none; }
.ag-debate-main > .ag-crumb { position: relative; z-index: 2; }
.ag-stage { margin: 0 auto; width: min(100%, 880px); padding: 10px 18px 0; background: radial-gradient(ellipse at 50% 40%, rgba(8,6,4,0.85), rgba(8,6,4,0.55) 60%, transparent 80%); }
.ag-tally > div { min-width: 64px; }
.ag-tally > div[style*="--n:0"] { flex: 0 0 64px; opacity: 0.5; }
.ag-tally > div[style*="--n:0"] .ag-tally-bar { opacity: 0.25; }
.ag-log { position: relative; z-index: 1; margin: 12px auto 0; width: min(100%, 900px); padding: 4px 26px 8px; background: rgba(9,7,5,0.86); border: 1px solid rgba(212,175,123,0.14); border-radius: 6px; box-shadow: 0 0 60px 30px rgba(9,7,5,0.6); }
.ag-composer { width: min(100%, 900px); margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.ag-move { font-size: 11px; color: rgba(234,220,194,0.72); }
.ag-turn-head .ag-tag { font-size: 9.5px; }
.ag-seat-at, .ag-side-note { color: rgba(234,220,194,0.72); }
.ag-composer { margin-top: 14px; }
.ag-composer::before { display: none; }
.theme-menu > .ag-colonnade { opacity: 0.3; z-index: 0; }
.theme-menu .ag-wall { inset: 28px 0 0 31%; align-content: flex-start; gap: 22px 18px; padding: 10px 40px; }
.ag-wall .ag-niche { width: 84px !important; }
.ag-wall.is-in .ag-niche { opacity: 0.1; }
.ag-wall.is-in .ag-niche.is-lit { opacity: 0.55; }
.theme-menu > .ag-colonnade { opacity: 0.24; -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 26%, #000 40%); mask-image: linear-gradient(90deg, transparent 0, transparent 26%, #000 40%); }
.theme-menu .ag-wall { inset: 0 0 0 31%; padding: 36px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 92%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent); mask-composite: intersect; }
.ag-wall.is-in .ag-niche.is-lit { opacity: 0.4; }
/* lit residents live only in the gaps between words; anything under a word steps back */
.ag-wall.is-in .ag-niche.is-under { opacity: 0.05; }
.ag-wall.is-in .ag-niche.is-glow { opacity: 0.26; }
.ag-wall.is-in .ag-niche.is-glow .ag-niche-arch { filter: grayscale(0.2) brightness(0.9); }
.ag-wall.is-in .ag-niche.is-lit { opacity: 0.6; }
.ag-wall .ag-lit-float { position: absolute; z-index: 1; width: 78px !important; }
.ag-wall.is-in .ag-lit-float.is-lit { opacity: 0.85; }
.ag-wall.is-in .ag-lit-float.is-glow { opacity: 0.4; }
.ag-wall.is-in .ag-lit-float.is-glow { opacity: 0.6; }
.ag-wall .ag-lit-float.is-glow .ag-niche-arch { filter: none; box-shadow: 0 0 0 1px rgba(212,175,123,0.7), 0 0 0 4px #050505, 0 0 0 5px rgba(212,175,123,0.25); }
/* v3: no lit residents on the wall — a faint field of the hall's people that dissolves before it reaches the words */
.theme-menu .ag-wall { inset: 0 0 0 26%; padding: 28px 24px; gap: 20px 16px; align-content: center; justify-content: flex-start;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 24%, rgba(0,0,0,0.35) 40%, transparent 56%), linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 24%, rgba(0,0,0,0.35) 40%, transparent 56%), linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent); }
.ag-wall.is-in .ag-niche, .ag-wall.is-in .ag-niche.is-lit, .ag-wall.is-in .ag-niche.is-under { opacity: 0.2; }
.ag-wall .ag-niche.is-lit .ag-niche-arch { filter: grayscale(0.55) brightness(0.8); box-shadow: 0 0 0 1px rgba(212,175,123,0.4); }
.ag-wall .ag-lit-float { display: none; }
@media (max-width: 980px) { .theme-menu .ag-wall { inset: 0; -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,0.4) 60%, transparent); mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,0.4) 60%, transparent); } }
.theme-menu .ag-wall { align-content: flex-start; padding-top: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 26%, rgba(0,0,0,0.35) 41%, transparent 56%), linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 26%, rgba(0,0,0,0.35) 41%, transparent 56%), linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%); }
.theme-menu .ag-wall {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 24%, rgba(0,0,0,0.3) 36%, transparent 47%), linear-gradient(180deg, transparent 0, #000 18%, #000 66%, transparent 94%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 24%, rgba(0,0,0,0.3) 36%, transparent 47%), linear-gradient(180deg, transparent 0, #000 18%, #000 66%, transparent 94%); }
.ag-wall.is-in .ag-niche, .ag-wall.is-in .ag-niche.is-lit, .ag-wall.is-in .ag-niche.is-under { opacity: 0.15; }
.ag-wall .ag-niche .ag-niche-arch, .ag-wall .ag-niche.is-lit .ag-niche-arch { filter: grayscale(0.75) brightness(0.75); }
.theme-menu .ag-wall {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 22%, rgba(0,0,0,0.3) 30%, transparent 37%), linear-gradient(180deg, transparent 4%, #000 22%, #000 64%, transparent 92%);
  mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 22%, rgba(0,0,0,0.3) 30%, transparent 37%), linear-gradient(180deg, transparent 4%, #000 22%, #000 64%, transparent 92%); }
.theme-menu .ag-wall { padding-top: 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 13%, #000 18%, rgba(0,0,0,0.3) 25%, transparent 30%), linear-gradient(180deg, transparent 6%, #000 26%, #000 62%, transparent 90%);
  mask-image: linear-gradient(90deg, transparent 2%, #000 13%, #000 18%, rgba(0,0,0,0.3) 25%, transparent 30%), linear-gradient(180deg, transparent 6%, #000 26%, #000 62%, transparent 90%); }
.theme-menu > .ag-colonnade { -webkit-mask-image: linear-gradient(90deg, transparent 26%, #000 38%, #000 52%, rgba(0,0,0,0.25) 62%, rgba(0,0,0,0.12)); mask-image: linear-gradient(90deg, transparent 26%, #000 38%, #000 52%, rgba(0,0,0,0.25) 62%, rgba(0,0,0,0.12)); }
/* soft oval of faces: no rectangular block edges, gone before the words */
.theme-menu .ag-wall {
  -webkit-mask-image: radial-gradient(ellipse 17% 40% at 17% 46%, #000 0, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.3) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 17% 40% at 17% 46%, #000 0, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.3) 72%, transparent 100%);
  -webkit-mask-composite: source-over; mask-composite: add; }
.theme-menu > .ag-colonnade { opacity: 0.32; }
/* v4: background line art = the approved design plate, traced 1:1 (no masks, no SVG approximation) */
.ag-lines { background: url("agora-debate-lines.webp") center / cover no-repeat; -webkit-mask-image: none !important; mask-image: none !important; }
.ag-lines svg { display: none; }
.theme-menu > .ag-lines--index { position: fixed; inset: 0; z-index: 0; opacity: 0.62; background-image: url("agora-index-lines.webp"); background-position: center; }
.ag-debate .ag-lines, .ag-hall .ag-lines, .ag-verdict .ag-lines { opacity: 0.5; }
.ag-debate .ag-lines { top: 0; bottom: 0; height: auto; }
/* faces: clearly visible, still behind the words */
.ag-wall.is-in .ag-niche, .ag-wall.is-in .ag-niche.is-lit, .ag-wall.is-in .ag-niche.is-under { opacity: 0.42; }
.ag-wall .ag-niche .ag-niche-arch, .ag-wall .ag-niche.is-lit .ag-niche-arch { filter: grayscale(0.35) brightness(0.9); }
.theme-menu .ag-wall {
  -webkit-mask-image: radial-gradient(ellipse 22% 48% at 18% 48%, #000 0, #000 45%, rgba(0,0,0,0.5) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 22% 48% at 18% 48%, #000 0, #000 45%, rgba(0,0,0,0.5) 72%, transparent 100%); }
.theme-menu > .ag-lines--index { opacity: 0.7; background-size: cover; background-position: center top; }
.ag-debate .ag-log { background: rgba(9,7,5,0.94); }
/* match the plate: lines barely above the ground (#101010 ground, lines ≈ rgb(53,41,30)) */
.theme-menu > .ag-lines--index { opacity: 0.24; }
.ag-wall.is-in .ag-niche, .ag-wall.is-in .ag-niche.is-lit, .ag-wall.is-in .ag-niche.is-under { opacity: 0.3; }
.ag-wall.is-in .ag-niche, .ag-wall.is-in .ag-niche.is-lit, .ag-wall.is-in .ag-niche.is-under { opacity: 0.24; }
.ag-wall .ag-niche .ag-niche-arch, .ag-wall .ag-niche.is-lit .ag-niche-arch { filter: grayscale(0.5) brightness(0.8); }
.ag-wall.is-in .ag-niche, .ag-wall.is-in .ag-niche.is-lit, .ag-wall.is-in .ag-niche.is-under { opacity: 0.2; }
.ag-wall .ag-niche .ag-niche-arch, .ag-wall .ag-niche.is-lit .ag-niche-arch { filter: grayscale(0.6) brightness(0.78); }
/* inner pages: same quiet line art as the index — dark flat ground like the reference (~#0f0e0d), faint lines */
.ag-hall .ag-lines, .ag-debate .ag-lines, .ag-verdict .ag-lines { opacity: 0.13 !important; }
.ag-hall, .ag-debate, .ag-verdict { background: #0e0d0b; }
.ag-hall .ag-floor { background: rgba(10,9,7,0.7); border-color: rgba(212,175,123,0.16); }
.ag-debate .ag-stage { background: none; }
.ag-debate .ag-log { background: rgba(10,9,7,0.6); box-shadow: none; border-color: rgba(212,175,123,0.1); }
.ag-hall .ag-niche-arch, .ag-debate .ag-niche-arch { filter: brightness(0.85); }

/* ── v7: quiet hall (one screen) + single-column debate floor ── */
.ag-hall--v7 { height: calc(100svh - var(--site-header-height, 101px)); min-height: 560px; overflow: hidden; grid-template-columns: minmax(0, 1fr) 300px; }
.ag-hall--v7 .ag-hall-main { display: flex; flex-direction: column; padding: 28px clamp(24px, 4.5vw, 72px) 26px; min-height: 0; }
.ag-hall--v7 .ag-h1 { font-size: clamp(40px, 4.4vw, 68px); margin-top: 12px; }
.ag-hall--v7 .ag-motion-box { margin-top: 18px; max-width: 820px; }
.ag-hall--v7 .ag-motion-input { margin-top: 0; resize: none; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.25; border-bottom-color: rgba(212,175,123,0.32); }
.ag-hall--v7 .ag-motion-alt { gap: 6px 18px; margin-top: 10px; }
.ag-motion-or { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,235,223,0.35); }
.ag-alt { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: rgba(234,220,194,0.55); cursor: pointer; text-align: left; transition: color 160ms; }
.ag-alt:hover { color: var(--ag-gold-hi); }
.ag-pick-head { display: flex; align-items: baseline; gap: 14px; margin-top: auto; padding-top: 22px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ag-mute); }
.ag-pick-head b { font-weight: 400; color: var(--ag-gold); letter-spacing: 0.1em; }
.ag-pick-head .ag-alt { margin-left: auto; font-size: 11px; letter-spacing: 0.04em; text-transform: none; }
.ag-hall--v7 .ag-gallery { gap: 18px; padding: 18px 4px 10px; margin: 0 -4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.ag-hall--v7 .ag-gallery::-webkit-scrollbar { display: none; }
.ag-hall--v7 .ag-gallery .ag-niche { opacity: 0.55; transition: opacity 220ms, transform 220ms; }
.ag-hall--v7 .ag-gallery .ag-niche:hover, .ag-hall--v7 .ag-gallery .ag-niche.is-picked { opacity: 1; }
.ag-hall--v7 .ag-gallery .ag-niche.is-picked { transform: translateY(-6px); }
.ag-hall--v7 .ag-niche-plate { font-size: 8px; min-height: 0; border: 0; background: none; padding: 2px 0; color: rgba(234,220,194,0.75); }
.ag-hall--v7 .ag-niche.is-picked .ag-niche-plate { color: var(--ag-gold-hi); }
.ag-hall--v7 .ag-niche-check { width: 18px; height: 18px; font-size: 10px; top: -4px; right: -4px; }
.ag-hall-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(212,175,123,0.14); }
.ag-hall-foot .ag-floor-hint { font-size: 12px; color: rgba(234,220,194,0.6); letter-spacing: 0.04em; }
.ag-hall--v7 .ag-side { display: flex; flex-direction: column; min-height: 0; padding: 28px 24px 20px; }
.ag-side-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
.ag-side-list::-webkit-scrollbar { display: none; }
.ag-hall--v7 .ag-past-q { font-size: 15px; }
@media (max-width: 900px) { .ag-hall--v7 { height: auto; overflow: visible; grid-template-columns: 1fr; } .ag-hall--v7 .ag-side { max-height: 60svh; } }

.ag-debate--v7 { grid-template-columns: 1fr; height: calc(100svh - var(--site-header-height, 101px)); }
.ag-debate--v7 .ag-debate-main { max-width: 980px; width: 100%; margin: 0 auto; padding: 14px 24px 18px; overflow: hidden; display: flex; flex-direction: column; }
.ag-debate--v7 .ag-stage { flex: none; padding: 0; background: none; width: 100%; }
.ag-debate--v7 .ag-stage-motion { margin-top: 2px; font-size: clamp(20px, 1.8vw, 26px); }
.ag-debate--v7 .ag-tally { margin-top: 8px; max-width: 360px; }
.ag-debate--v7 .ag-camps { margin-top: 8px; min-height: 0; gap: 28px; }
.ag-debate--v7 .ag-camp-people { min-height: 112px; gap: 14px; }
.ag-debate--v7 .ag-camp-people .ag-niche { width: 66px !important; animation: none; cursor: pointer; transition: transform 220ms, opacity 220ms; }
.ag-debate--v7 .ag-camp-people .ag-niche:hover { transform: translateY(-3px); }
.ag-debate--v7 .ag-camp-people .ag-niche-plate { font-size: 7.5px; border: 0; background: none; padding: 2px 0; margin-top: 4px; color: rgba(234,220,194,0.72); }
.ag-debate--v7 .ag-niche-x { width: 18px; height: 18px; font-size: 11px; top: -5px; right: -5px; opacity: 0; transition: opacity 160ms; }
.ag-debate--v7 .ag-niche:hover .ag-niche-x { opacity: 1; }
.ag-debate--v7 .ag-niche.is-target .ag-niche-arch { box-shadow: 0 0 0 2px var(--ag-gold-hi), 0 0 0 5px var(--ag-bg), 0 0 0 6px rgba(255,207,122,0.55); }
.ag-debate--v7 .ag-niche.is-target .ag-niche-plate { color: var(--ag-gold-hi); }
.ag-debate--v7 .ag-niche.is-thinking .ag-niche-arch { animation: agThink 1.6s ease-in-out infinite; }
.ag-slot--sm { width: 50px; margin-bottom: 24px; font-size: 16px; border-color: rgba(212,175,123,0.3); color: rgba(212,175,123,0.7); }
.ag-debate--v7 .ag-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; width: 100%; margin-top: 10px; padding: 4px 28px 12px; scrollbar-width: thin; scrollbar-color: rgba(212,175,123,0.25) transparent; }
.ag-debate--v7 .ag-turn { animation: agSoftIn 520ms ease both; }
@keyframes agSoftIn { from { opacity: 0; } }
.ag-turn-text.is-typing::after { content: ''; display: inline-block; width: 6px; height: 1em; margin-left: 3px; vertical-align: -2px; background: rgba(212,175,123,0.6); animation: agBlink 0.9s steps(2) infinite; }
@keyframes agBlink { 50% { opacity: 0; } }
.ag-debate--v7 .ag-composer { flex: none; position: relative; bottom: auto; width: 100%; margin-top: 12px; padding: 6px 6px 6px 18px; gap: 6px; }
.ag-at-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,207,122,0.6); border-radius: 999px; background: rgba(212,175,123,0.1); color: var(--ag-gold-hi); font: inherit; font-size: 12px; padding: 4px 10px; cursor: pointer; }
.ag-at-chip i { font-style: normal; opacity: 0.6; }
.ag-send { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ag-gold); color: #17130d; font-size: 15px; font-weight: 700; cursor: pointer; }
.ag-send[disabled] { opacity: 0.35; cursor: default; }
.ag-comp-sep { width: 1px; height: 20px; background: rgba(212,175,123,0.25); margin: 0 4px; }
.ag-comp-act { flex: none; border: 0; background: none; color: rgba(234,220,194,0.7); font: inherit; font-size: 12px; padding: 8px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.ag-comp-act:hover { color: #fff; background: rgba(212,175,123,0.08); }
.ag-comp-act.is-gold { color: var(--ag-gold); }
.ag-comp-act[disabled] { opacity: 0.3; pointer-events: none; }
@media (max-width: 700px) { .ag-comp-act { padding: 8px 6px; font-size: 11px; } .ag-debate--v7 .ag-log { padding: 4px 6px 12px; } }
/* v7b */
.ag-hall--v7 .ag-hall-main { justify-content: center; }
.ag-hall--v7 .ag-crumb { position: absolute; top: 26px; }
.ag-hall--v7 .ag-hall-main { position: relative; }
.ag-pick-head { margin-top: 44px; }
.ag-hall--v7 .ag-gallery { -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }
.ag-hall--v7 .ag-niche-plate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: 8.5px; letter-spacing: 0.08em; color: rgba(242,235,223,0.82); }
.ag-hall--v7 .ag-gallery .ag-niche { opacity: 0.62; }
.ag-hall--v7 .ag-niche-check { top: 2px; right: 2px; }
.ag-hall-foot { margin-top: 6px; }
.ag-past--line { padding: 14px 0; }
.ag-past--line .ag-past-q { font-size: 14.5px; line-height: 1.35; color: rgba(242,235,223,0.88); }
.ag-past--line .ag-past-row { margin-top: 8px; gap: 10px; font-size: 11px; color: rgba(234,220,194,0.55); }
.ag-hall--v7 .ag-side-head { color: rgba(234,220,194,0.6); }

.ag-debate--v7 .ag-tally > div { min-width: 92px; }
.ag-debate--v7 .ag-tally-label { white-space: nowrap; }
.ag-seat-row { display: flex; justify-content: center; align-items: flex-start; gap: 26px; margin-top: 14px; }
.ag-seat-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ag-seat-col .ag-niche { width: 70px !important; cursor: pointer; transition: transform 220ms; }
.ag-seat-col .ag-niche:hover { transform: translateY(-3px); }
.ag-seat-col .ag-niche-plate { white-space: nowrap; font-size: 8px; border: 0; background: none; padding: 2px 0; margin-top: 4px; min-height: 0; color: rgba(242,235,223,0.8); }
.ag-seat-col .ag-tag { font-size: 9px; }
.ag-seat-col .ag-slot--sm { width: 58px; height: 78px; margin: 0; border-radius: 29px 29px 4px 4px; }
.ag-debate--v7 .ag-stage { text-align: center; }
.ag-debate--v7 .ag-stage-motion { margin-left: auto; margin-right: auto; }
.ag-debate--v7 .ag-tally { margin: 8px auto 0; }
.ag-debate--v7 .ag-crumb { align-self: flex-start; }
.ag-debate--v7 .ag-log { padding: 4px 24px 14px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 22px), transparent); }
.ag-debate--v7 .ag-composer { margin-top: 8px; }
.ag-debate--v7 .ag-comp-sep { background: rgba(212,175,123,0.4); height: 22px; margin: 0 8px; }
.ag-debate--v7 .ag-niche.is-speaking .ag-niche-arch { box-shadow: 0 0 0 1.5px var(--ag-gold-hi), 0 0 18px rgba(255,207,122,0.3); }
.ag-hall--v7 .ag-niche-plate { overflow: visible; text-overflow: clip; width: 120%; margin-left: -10%; font-size: 8px; letter-spacing: 0.05em; }
.ag-hall--v7 .ag-gallery { gap: 26px; padding-left: 14px; padding-right: 60px; }
.ag-hall--v7 .ag-gallery .ag-niche.is-picked { transform: none; }
.ag-hall--v7 .ag-gallery .ag-niche.is-picked .ag-niche-arch { box-shadow: 0 0 0 1.5px var(--ag-gold-hi), 0 0 0 4px var(--ag-bg), 0 0 0 5px rgba(255,207,122,0.4); }
.ag-hall--v7 .ag-h1 { font-size: clamp(48px, 5.2vw, 84px); }
.ag-hall--v7 .ag-motion-box { margin-top: 26px; }
.ag-seat-col .ag-niche-plate { overflow: visible; }
.ag-seat-row { gap: 34px; }
.ag-debate--v7 .ag-composer { padding: 6px 8px 6px 20px; }
.ag-debate--v7 .ag-comp-act { padding: 8px 14px; }
.ag-debate--v7 .ag-log { padding-bottom: 28px; }
.ag-slot-cap { font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(212,175,123,0.6); margin-top: 6px; }
.ag-seat-col .ag-slot--sm { transition: border-color 160ms, color 160ms; }
.ag-seat-col .ag-slot--sm:hover { border-color: var(--ag-gold-hi); color: var(--ag-gold-hi); }
.ag-seat-col .ag-slot--sm { width: 70px; height: 98px; aspect-ratio: auto; border-radius: 999px 999px 4px 4px; }
.ag-slot-cap { margin-top: 8px; font-size: 8px; color: rgba(242,235,223,0.7); }
.ag-debate--v7 .ag-log { margin-top: 14px; }
/* v9: wall faces a touch brighter — legible, still behind the words */
.ag-wall.is-in .ag-niche, .ag-wall.is-in .ag-niche.is-lit, .ag-wall.is-in .ag-niche.is-under { opacity: 0.36; }
.ag-wall .ag-niche .ag-niche-arch, .ag-wall .ag-niche.is-lit .ag-niche-arch { filter: grayscale(0.3) brightness(1); }

/* v10: no flash between speakers */
.ag-turn.is-settled, .ag-debate--v7 .ag-turn.is-settled { animation: none; }
#agStage.is-settled *, .is-settled .ag-seat-col { animation: none !important; }
#agLog { overflow-anchor: none; }
