.code8-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.code8-step { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-1); color: var(--text-muted); font-size: 13px; }
.code8-step strong { display: block; color: var(--text-secondary); }
.code8-step__text { display: block; font-size: 12px; margin-top: 2px; }
.code8-step__no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-default); font: 600 12px/1 var(--font-sans); }
.code8-step.is-active { border-color: var(--gold-400); background: var(--accent-subtle); }
.code8-step.is-active strong { color: var(--text-primary); }
.code8-step.is-active .code8-step__no { border-color: var(--gold-400); color: var(--gold-200); }
.code8-step.is-done .code8-step__no { border-color: var(--success); background: var(--success-subtle); color: var(--success-fg); }
.code8-step.is-alarm { border-color: var(--danger); background: var(--danger-subtle); }
.code8-step.is-alarm .code8-step__no { border-color: var(--danger); color: var(--danger-fg); }
.code8-card--approved { border-left-color: var(--success); }
.code8-card--rejected { border-left-color: var(--text-disabled); opacity: .75; }
.code8-votes { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); font: 600 12px/1.2 var(--font-sans); color: var(--warning-fg); }
.code8-votes.is-ok { border-color: var(--success); color: var(--success-fg); background: var(--success-subtle); }
.code8-send { margin-bottom: 20px; }
.code8-send.is-ready { border-color: var(--danger); }
.code8-send__body { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.code8-send__btn { min-width: 150px; }
.code8-send__btn:disabled { opacity: .55; cursor: not-allowed; }
.speech { --speech-size: 18px; border: 1px solid var(--border-gold); border-radius: var(--radius-lg); background: var(--surface-1); overflow: hidden; }
.speech__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-2); }
.speech__bar-title { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--font-sans); color: var(--gold-200); }
.speech__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.speech__only-podium { display: none; }
.speech__doc { max-width: 46em; margin: 0 auto; padding: 2.2em 1.6em 2.6em; font-size: var(--speech-size); line-height: 1.55; color: var(--text-primary); }
.speech__head { display: flex; align-items: center; gap: 1em; padding-bottom: 1.1em; margin-bottom: 1.4em; border-bottom: 2px solid var(--border-gold); }
.speech__seal { width: 3.4em; height: 3.4em; flex: none; }
.speech__eyebrow { font-size: .62em; color: var(--text-muted); }
.speech__title { margin: .05em 0 .1em; font: 700 2.1em/1 var(--font-sans); color: var(--gold-200); }
.speech__date { font-size: .82em; color: var(--text-secondary); }
.speech__say { margin: 0 0 .8em; font-size: 1.04em; }
.speech__intro { margin-bottom: .6em; }
.speech__say--intro { font-size: 1.18em; font-weight: 600; margin-bottom: .45em; }
.speech__cue { display: flex; align-items: center; gap: .45em; margin: 0 0 .9em; padding: .35em .8em; width: fit-content; border: 1px dashed var(--border-default); border-radius: var(--radius-pill); font-size: .72em; font-style: italic; color: var(--text-muted); }
.speech__cue .ic { width: .9em; height: .9em; }
.speech__say--closing { margin-top: 1.8em; padding-top: 1em; border-top: 1px solid var(--border-subtle); font-size: 1.12em; font-weight: 500; }
.speech__section { margin-top: 1.9em; }
.speech__h { display: flex; align-items: center; gap: .5em; margin: 0 0 .55em; font: 700 1.28em/1.2 var(--font-sans); color: var(--text-primary); }
.speech__h .ic { width: .9em; height: .9em; color: var(--gold-300, var(--gold-200)); }
.speech__no { display: inline-flex; align-items: center; justify-content: center; width: 1.55em; height: 1.55em; flex: none; border-radius: 50%; border: 1.5px solid var(--gold-400); font: 700 .7em/1 var(--font-mono); color: var(--gold-200); }
.speech__section--demotion .speech__no, .speech__section--dismissal .speech__no { border-color: var(--danger); color: var(--danger-fg); }
.speech__group { margin: 1em 0 .35em; font-size: .72em; font-weight: 700; color: var(--gold-200); }
.speech__section--demotion .speech__group { color: var(--danger-fg); }
.speech__names, .speech__points { margin: 0; padding: 0; list-style: none; }
.speech__names li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .8em; padding: .5em 0 .5em .9em; border-left: 3px solid var(--border-default); margin-bottom: .35em; }
.speech__section--promotion .speech__names li { border-left-color: var(--gold-400); }
.speech__section--demotion .speech__names li, .speech__section--dismissal .speech__names li { border-left-color: var(--danger); }
.speech__name { font-size: 1.18em; font-weight: 700; }
.speech__badge, .speech__meta { font: .78em/1.3 var(--font-mono); color: var(--text-secondary); }
.speech__badge b { color: var(--gold-200); font-size: 1.15em; }
.speech__badge s { color: var(--text-muted); }
.speech__note { flex-basis: 100%; font-size: .8em; color: var(--text-secondary); }
.speech__names--compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); gap: 0 1em; }
.speech__names--compact .speech__name { font-size: 1em; font-weight: 600; }
.speech__points li { position: relative; padding: .3em 0 .3em 1.2em; font-size: 1.04em; }
.speech__points li::before { content: ""; position: absolute; left: 0; top: .95em; width: .45em; height: .45em; border-radius: 50%; background: var(--gold-400); }
.speech.is-podium { --speech-size: 28px; position: fixed; inset: 0; z-index: 2000; border: 0; border-radius: 0; overflow-y: auto; background: var(--bg-app); }
.speech.is-podium .speech__bar { position: sticky; top: 0; z-index: 1; background: var(--surface-head); border-bottom: 1px solid var(--border-default); }
.speech.is-podium .speech__only-podium { display: inline-flex; }
.speech.is-podium .speech__no-podium { display: none; }
.speech.is-podium .speech__doc { max-width: 40em; padding-top: 2.5em; padding-bottom: 5em; }
body.is-podium-open { overflow: hidden; }

@media (max-width: 600px) {
  .speech { --speech-size: 16px; }
  .speech.is-podium { --speech-size: 22px; }
  .speech__doc { padding: 1.4em 1em 2em; }
}

@media print {
  body.print-speech * { visibility: hidden !important; }
  body.print-speech .speech, body.print-speech .speech * { visibility: visible !important; }
  body.print-speech .speech { position: absolute; left: 0; top: 0; width: 100%; border: 0; background: #fff !important; --speech-size: 14pt; }
  body.print-speech .speech__bar { display: none !important; }
  body.print-speech .speech__doc { color: #000; max-width: none; padding: 0; }
  body.print-speech .speech__title, body.print-speech .speech__group, body.print-speech .speech__badge b, body.print-speech .speech__no { color: #000 !important; }
  body.print-speech .speech__date, body.print-speech .speech__badge, body.print-speech .speech__meta, body.print-speech .speech__note, body.print-speech .speech__eyebrow, body.print-speech .speech__cue { color: #333 !important; }
  body.print-speech .speech__section { break-inside: avoid; }
}
.code8-report .card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.code8-report .card__title { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 760px) {
  .code8-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
