:root {
  --red: #9f1428;
  --red-dark: #721021;
  --blue: #07547b;
  --blue-ink: #023552;
  --yellow: #ffdc63;
  --paper: #f7f3e9;
  --line: #1b1b1b;
  --ink: #101418;
  --muted: #61717e;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(18, 28, 38, 0.16);
}

* {
  box-sizing: border-box;
}

.hidden,
.auth-hidden {
  display: none !important;
}

.public-route-initial .login-screen,
.public-route-initial .app-shell {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 42px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(159, 20, 40, 0.09), transparent 34%),
    linear-gradient(135deg, #eef4f6 0%, #f9f5ea 48%, #edf2f4 100%);
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #eef4f6 0%, #fffaf0 54%, #f2f6f7 100%);
}

.manual-login-link {
  display: grid;
  place-items: center;
  min-height: 38px;
  color: var(--blue-ink);
  background: #eef5f7;
  border: 1px solid #d4e1e7;
  text-decoration: none;
  font-weight: 900;
}

.manual-public-mode {
  background: linear-gradient(135deg, #eef4f6 0%, #fffaf0 54%, #f2f6f7 100%);
}

.manual-public-page {
  width: min(980px, calc(100vw - 28px));
  margin: 24px auto 42px;
}

.manual-public-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.manual-public-actions a {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  color: var(--blue-ink);
  background: #fff;
  border: 1px solid #d4e1e7;
  text-decoration: none;
  font-weight: 900;
}

.app-copyright {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2100;
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 6px 16px;
  color: #5f6f78;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(7, 75, 106, 0.12);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(8px);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(2, 53, 82, 0.16);
  box-shadow: var(--shadow);
}

.login-card img {
  width: 108px;
  justify-self: center;
}

.login-card h1 {
  margin: 0;
  color: var(--blue-ink);
  text-align: center;
  font-size: 24px;
}

.login-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.login-card p {
  min-height: 20px;
  margin: 0;
  padding: 0;
  color: var(--red-dark);
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.login-card p:not(:empty) {
  padding: 9px 10px;
  background: #fff5f6;
  border: 1px solid rgba(159, 20, 40, 0.22);
  border-radius: 8px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  width: min(1460px, calc(100vw - 36px));
  margin: 18px auto;
}

.user-bar {
  display: flex;
  margin-left: auto;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  padding: 0 0 0 14px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 900;
}

.user-bar button {
  min-height: 30px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.workspace {
  display: block;
}

.public-vote-mode {
  background: linear-gradient(135deg, #eef4f6 0%, #fffaf0 54%, #f2f6f7 100%);
}

.public-vote-page {
  width: min(720px, calc(100vw - 28px));
  margin: 28px auto;
}

.public-vote-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(2, 53, 82, 0.14);
  box-shadow: var(--shadow);
}

.public-vote-header {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px;
  color: #fff;
  background: var(--blue-ink);
  border-bottom: 5px solid var(--yellow);
}

.public-vote-header img {
  width: 76px;
  height: auto;
  display: block;
}

.public-vote-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.public-vote-header p,
.public-vote-meta span,
.public-vote-notice p {
  margin: 6px 0 0;
  color: var(--muted);
}

.public-vote-header p {
  color: rgba(255, 255, 255, 0.8);
}

.public-vote-meta {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  background: #f6fafb;
  border-bottom: 1px solid rgba(2, 53, 82, 0.1);
}

.public-vote-meta strong {
  color: var(--red-dark);
  font-size: 20px;
}

.public-vote-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.public-vote-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 22px 0;
}

.public-vote-tabs button {
  min-height: 42px;
  color: var(--blue-ink);
  background: #eef5f7;
  border: 1px solid #d4e1e7;
  font-weight: 900;
}

.public-vote-tabs button.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.public-vote-award {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid #d9e3e8;
  background: #fffdf8;
}

.public-vote-award legend {
  padding: 0 6px;
  color: var(--blue-ink);
  font-weight: 900;
}

.public-vote-award label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #e3eaee;
}

.public-vote-award input {
  width: 18px;
  min-height: auto;
}

.public-vote-submit {
  min-height: 46px;
}

.public-vote-notice {
  padding: 30px 22px;
  text-align: center;
}

.public-vote-notice h2 {
  margin: 0;
  color: var(--red-dark);
}

.public-vote-notice.success h2 {
  color: var(--blue-ink);
}

.public-vote-notice button {
  margin-top: 18px;
}

.public-vote-results {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.public-vote-result-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #fbfdfd;
  border: 1px solid #d9e3e8;
}

.public-vote-result-card h2 {
  margin: 0;
  color: var(--blue-ink);
  font-size: 18px;
}

.public-vote-result-card strong {
  color: var(--red-dark);
}

.public-vote-result-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.public-vote-result-list {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.public-vote-result-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e4ebef;
}

.public-vote-result-list b {
  color: var(--blue-ink);
}

.public-vote-own {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.public-vote-own h2 {
  margin: 0;
  color: var(--red-dark);
}

.public-vote-own p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.public-vote-own-list {
  display: grid;
  gap: 8px;
}

.public-vote-own-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  background: #f6fafb;
  border: 1px solid #d9e3e8;
}

.public-vote-own-list b {
  color: var(--blue-ink);
}

.public-vote-password {
  display: grid;
  gap: 12px;
  padding: 28px 22px;
  text-align: center;
}

.public-vote-password h2 {
  margin: 0;
  color: var(--blue-ink);
}

.public-vote-password p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.public-vote-password form {
  display: grid;
  grid-template-columns: minmax(120px, 180px) auto;
  justify-content: center;
  gap: 10px;
}

.public-vote-password input {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
}

.public-vote-password-error {
  color: var(--red-dark);
  font-weight: 900;
}

.public-topics-mode {
  background: linear-gradient(135deg, #eef4f6 0%, #fffaf0 52%, #edf2f4 100%);
}

.public-topics-page {
  width: min(920px, calc(100vw - 28px));
  margin: 24px auto 48px;
}

.public-topics-card,
.topics-link-card,
.topics-panel {
  background: #fff;
  border: 1px solid rgba(2, 53, 82, 0.14);
  box-shadow: 0 14px 38px rgba(18, 28, 38, 0.1);
}

.public-topics-card {
  padding: 24px;
}

.public-topics-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 4px solid var(--red);
}

.public-topics-header h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: 0;
}

.public-topics-header p,
.public-topics-session span {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.public-topics-session {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
  padding: 14px 16px;
  background: #eef5f7;
  border-left: 6px solid var(--blue);
}

.public-topic-rules {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 14px 16px;
  color: #33434e;
  background: #f8fafb;
  border: 1px solid #dbe5e9;
}

.public-topic-rules strong {
  color: var(--blue-ink);
  font-size: 15px;
}

.public-topic-rules p {
  margin: 0;
  line-height: 1.55;
  font-size: 14px;
  font-weight: 800;
}

.public-topics-session strong {
  color: var(--blue-ink);
  font-size: 20px;
}

.public-topic-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.public-topic-numbers button {
  min-height: 58px;
  color: var(--blue-ink);
  background: #fff7dc;
  border: 2px solid #f0c84b;
  font-size: 24px;
  font-weight: 1000;
  cursor: pointer;
}

.public-topic-numbers button.is-drawn,
.public-topic-numbers button:disabled {
  color: #87919a;
  background: #edf0f2;
  border-color: #cbd4da;
  cursor: not-allowed;
}

.public-topic-numbers button.is-random-flash {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 24px rgba(119, 35, 47, 0.22);
}

.public-topics-page.is-randomizing .public-topic-random {
  opacity: 0.78;
  cursor: wait;
}

.public-topic-random {
  width: 100%;
  min-height: 48px;
  margin-bottom: 18px;
}

.public-topic-result {
  display: grid;
  gap: 18px;
  min-height: 220px;
  padding: 34px;
  color: var(--blue-ink);
  background: #f6fbfc;
  border: 2px dashed #b8cbd4;
}

.public-topic-result.is-open {
  background: #fff7dc;
  border-color: var(--yellow);
}

.public-topic-result span {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 900;
}

.public-topic-result strong {
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.22;
  letter-spacing: 0;
}

.public-topic-result p {
  margin: 2px 0 0;
  color: #42525e;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.38;
  font-weight: 800;
}

.public-topic-timer {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  background: #f8fafb;
  border: 1px solid #dbe5e9;
}

.public-topic-timer-display {
  text-align: center;
  color: var(--blue-ink);
  font-size: clamp(52px, 10vw, 98px);
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.public-topic-timer-display.timer-green {
  color: #168043;
}

.public-topic-timer-display.timer-yellow {
  color: #b98000;
}

.public-topic-timer-display.timer-red {
  color: var(--red);
}

.public-topic-timer-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
}

.public-topic-timer-actions button {
  min-height: 44px;
}

.public-topics-notice {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: #f8fafb;
  border: 1px solid #dbe5e9;
  font-weight: 900;
}

.topics-shell {
  display: grid;
  gap: 16px;
}

.topics-link-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.topics-link-card strong,
.topics-panel-head strong {
  display: block;
  color: var(--blue-ink);
  font-size: 18px;
}

.topics-link-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.topics-link-actions {
  display: grid;
  gap: 10px;
}

.topics-public-link {
  display: block;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.topics-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.topics-grid-three {
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) minmax(280px, 0.9fr);
}

.topics-layout {
  display: grid;
  grid-template-columns: minmax(460px, 1.15fr) minmax(380px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.topics-side-stack {
  display: grid;
  gap: 16px;
  align-items: start;
}

.topics-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  align-content: start;
}

.topics-current-panel {
  position: sticky;
  top: 12px;
}

.topics-current-panel .topic-question-editor {
  max-height: min(58vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.topics-compact-panel {
  min-height: 0;
}

.topics-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.topics-panel textarea {
  min-height: 220px;
  resize: vertical;
}

.topic-bulk-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 10px;
  padding: 10px;
  background: #f6fbfc;
  border: 1px solid #dbe5e9;
}

.topic-bulk-add textarea {
  min-height: 82px;
}

.topic-bulk-add button {
  min-width: 118px;
}

.topic-question-editor {
  display: grid;
  gap: 8px;
}

.topic-question-row {
  display: grid;
  grid-template-columns: 30px minmax(160px, 1.1fr) minmax(150px, 1fr) 34px;
  gap: 8px;
  align-items: start;
  padding: 10px;
  background: #f8fafb;
  border: 1px solid #dbe5e9;
}

.topic-question-row b {
  display: grid;
  place-items: center;
  min-height: 32px;
  color: var(--blue-ink);
  background: #fff7dc;
  border: 1px solid #f0c84b;
  font-size: 13px;
}

.topic-question-row label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.topic-question-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.topic-question-row textarea {
  min-height: 54px;
  resize: vertical;
}

.topic-question-delete {
  width: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--red-dark);
  background: #fff;
  border-color: #ead1d6;
  font-size: 20px;
  line-height: 1;
}

.topic-generate-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid #dbe5e9;
}

.topic-ai-prompt {
  width: 100%;
  min-height: 86px !important;
  resize: vertical;
  background: #fff;
}

.topic-ai-controls {
  display: grid;
  grid-template-columns: 96px 72px minmax(118px, 1fr);
  gap: 8px;
  align-items: stretch;
}

.topic-ai-field {
  display: grid;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e9ed;
}

.topic-ai-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.topic-language-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
}

.topic-language-toggle label {
  display: block;
  cursor: pointer;
}

.topic-language-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic-language-toggle span {
  min-height: 34px;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 6px;
  color: var(--blue-ink);
  background: #f8fafb;
  border: 1px solid #dbe5e9;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}

.topic-language-toggle input:checked + span {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.topic-ai-generate-button {
  width: 100%;
  min-height: 44px;
}

.topic-ai-limit-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.topic-ai-option {
  min-height: 40px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 0 12px;
  color: var(--blue-ink);
  background: #fff;
  border: 1px solid #e2e9ed;
  font-size: 13px;
  font-weight: 900;
}

.topic-ai-option input {
  width: 16px;
  min-height: 16px;
}

.topics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-clear-candidates {
  margin-left: auto;
  color: #8e1428;
  border-color: #d9a6ae;
  background: #fff8f8;
}

.topic-clear-candidates:hover {
  border-color: #b81f36;
  background: #fff0f2;
}

.topics-candidate-list,
.topic-market-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.topics-candidate-item,
.topic-market-item {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 10px;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid #dbe5e9;
  text-align: left;
}

.topics-candidate-item {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  cursor: pointer;
}

.topics-candidate-item input {
  width: 16px;
  min-height: 16px;
  margin-top: 3px;
}

.topics-candidate-item span,
.topics-candidate-item strong,
.topics-candidate-item em,
.topic-market-item strong,
.topic-market-item span,
.topic-market-item em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.topics-candidate-item strong,
.topics-candidate-item em {
  display: block;
}

.topics-candidate-item strong {
  color: var(--blue-ink);
  font-size: 14px;
}

.topics-candidate-item em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.topic-market-item {
  cursor: pointer;
}

.topic-market-item.active {
  border-color: var(--blue);
  background: #eef8fb;
  box-shadow: inset 4px 0 0 var(--blue);
}

.topic-market-item strong {
  color: var(--blue-ink);
  font-size: 14px;
}

.topic-market-item span,
.topic-market-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.topic-market-detail {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fffdf8;
  border: 1px solid #eadfbe;
}

.topic-market-detail > div:first-child {
  display: grid;
  gap: 4px;
}

.topic-market-detail > div:first-child strong {
  color: var(--blue-ink);
  font-size: 16px;
}

.topic-market-detail > div:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.topic-market-question-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.topic-market-question {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px;
  background: #fff;
  border: 1px solid #e2e9ed;
  cursor: pointer;
}

.topic-market-question input {
  width: 16px;
  min-height: 16px;
  margin-top: 3px;
}

.topic-market-question span,
.topic-market-question strong,
.topic-market-question em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.topic-market-question strong,
.topic-market-question em {
  display: block;
}

.topic-market-question strong {
  color: var(--blue-ink);
  font-size: 14px;
  line-height: 1.4;
}

.topic-market-question em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.topics-session-list {
  display: grid;
  gap: 8px;
}

.topics-session-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f8fafb;
  border: 1px solid #dbe5e9;
}

.topics-session-item b {
  display: grid;
  place-items: center;
  min-height: 30px;
  color: var(--blue-ink);
  background: #fff7dc;
  border: 1px solid #f0c84b;
}

.topics-session-item span {
  line-height: 1.45;
}

.topics-session-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.topics-session-item.is-drawn {
  background: #edf0f2;
}

.topics-empty {
  padding: 18px;
  color: var(--muted);
  background: #f8fafb;
  border: 1px solid #dbe5e9;
  text-align: center;
  font-weight: 900;
}

.input-pane,
.preview-pane {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 20, 24, 0.1);
  box-shadow: var(--shadow);
}

.input-pane {
  min-height: calc(100vh - 36px);
  padding: 18px;
  position: sticky;
  top: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: radial-gradient(circle at 35% 30%, #1f8eb2, var(--blue) 58%, var(--red-dark));
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px rgba(2, 53, 82, 0.3);
  font-weight: 800;
}

.brand-lockup p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-lockup h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.side-summary {
  display: grid;
  gap: 12px;
}

.side-summary div {
  padding: 12px;
  border: 1px solid rgba(2, 53, 82, 0.12);
  background: #f6fafb;
}

.side-summary strong,
.side-summary span {
  display: block;
}

.side-summary strong {
  color: var(--blue-ink);
  font-size: 15px;
  margin-bottom: 6px;
}

.side-summary span {
  color: #42525e;
  font-size: 13px;
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: #33434e;
  font-size: 13px;
  font-weight: 700;
}

.checkbox-field > label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #253b48;
  background: #f8fbfc;
  border: 1px solid #c6d3d9;
  font-size: 13px;
  font-weight: 900;
}

.checkbox-field input {
  width: 16px;
  min-height: 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.language-radio {
  min-height: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: 3px;
  border: 1px solid #c6d3d9;
  background: #f8fbfc;
}

.language-radio label {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #38515d;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.language-radio input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--blue);
}

.language-radio label:has(input:checked) {
  color: #fff;
  background: var(--blue);
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid #cdd6dc;
  background: #fffdf8;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 320px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
  font-size: 14px;
}

input,
select {
  min-height: 40px;
  padding: 8px 10px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 84, 123, 0.12);
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.meta-grid .field:nth-last-child(2),
.meta-grid .field:nth-last-child(1) {
  grid-column: span 2;
}

.button-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

button {
  min-height: 42px;
  border: 1px solid rgba(2, 53, 82, 0.22);
  background: var(--white);
  color: var(--blue-ink);
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  background: #eef8fb;
}

button.primary {
  color: var(--white);
  border-color: var(--red-dark);
  background: linear-gradient(180deg, #b31a31, var(--red-dark));
}

.preview-pane {
  min-height: calc(100vh - 36px);
  padding: 0 0 18px;
  overflow: hidden;
}

.tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--blue-ink);
  padding: 8px;
}

.tab {
  min-height: 38px;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  padding: 0 18px;
}

.tab.active {
  color: var(--ink);
  background: var(--yellow);
}

.view {
  display: none;
  padding: 18px;
}

.view.active {
  display: block;
}

.agenda-view-shell {
  display: grid;
  gap: 12px;
}

.agenda-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #edf4f6;
  border: 1px solid #cdd6dc;
  color: var(--blue);
}

.agenda-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.agenda-card {
  border: 2px solid var(--line);
  background: var(--white);
  overflow: auto;
}

.feedback-shell {
  display: grid;
  gap: 14px;
}

.feedback-head,
.feedback-form,
.feedback-item,
.feedback-empty {
  background: #fff;
  border: 1px solid #d9e3e8;
}

.feedback-head {
  padding: 14px;
}

.feedback-head strong {
  color: var(--blue-ink);
  font-size: 18px;
}

.feedback-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.feedback-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.feedback-message-field textarea {
  min-height: 84px;
}

.feedback-list {
  display: grid;
  gap: 10px;
}

.feedback-item {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.feedback-item-head,
.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.feedback-item-head strong {
  color: var(--red-dark);
}

.feedback-item-head span,
.feedback-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
}

.feedback-actions button {
  min-height: 30px;
  padding: 5px 12px;
}

.feedback-item p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.feedback-empty {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.manual-content {
  display: grid;
  gap: 14px;
}

.manual-frame {
  width: 100%;
  min-height: calc(100vh - 150px);
  border: 1px solid #d9e3e8;
  background: #fff;
}

.manual-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.manual-hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  color: #fff;
  background: var(--blue-ink);
  border-bottom: 5px solid var(--yellow);
}

.manual-hero img {
  width: 76px;
  height: auto;
}

.manual-hero h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.manual-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.manual-card section {
  padding: 14px;
  background: #f8fbfc;
  border: 1px solid #e0e8ec;
}

.manual-card h2 {
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: 18px;
}

.manual-card p,
.manual-card li,
.manual-card dd {
  line-height: 1.7;
}

.manual-card p {
  margin: 0 0 10px;
}

.manual-card ul,
.manual-card ol {
  margin: 0;
  padding-left: 22px;
}

.manual-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.manual-card dt {
  color: var(--blue-ink);
  font-weight: 900;
}

.manual-card dd {
  margin: 0 0 6px;
  color: #31434d;
}

.agenda-header {
  display: grid;
  grid-template-columns: 92px 1fr 112px;
  min-width: 920px;
  background: linear-gradient(180deg, #b81f36, #8e1428);
  color: var(--white);
  border-bottom: 2px solid var(--line);
}

.agenda-header.no-club-no {
  grid-template-columns: 92px 1fr;
}

.logo-cell {
  display: grid;
  place-items: center;
  padding: 8px;
}

.tm-logo {
  width: 58px;
  height: auto;
  display: block;
}

.agenda-title {
  text-align: center;
  padding: 12px 8px;
}

.agenda-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.agenda-title p {
  margin: 7px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.club-no {
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
}

.info-grid {
  display: grid;
  grid-template-columns: 96px 1.15fr 96px 1.2fr 112px 1fr;
  min-width: 920px;
  border-bottom: 2px solid var(--line);
}

.info-grid.has-next-manager {
  grid-template-columns: 96px 1.1fr 96px 1.15fr 112px 1fr 132px 1fr;
}

.info-grid div {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.info-grid .label {
  background: #d8d8d8;
  font-weight: 900;
}

.theme-bar {
  min-width: 920px;
  padding: 7px 10px;
  color: var(--white);
  background: #c50000;
  border-bottom: 2px solid var(--line);
  font-size: 17px;
  font-weight: 900;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.agenda-body {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 250px;
  min-width: 920px;
}

.agenda-body.no-side-rail {
  grid-template-columns: 1fr;
}

.agenda-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.agenda-table .col-time {
  width: 64px;
}

.agenda-table .col-duration {
  width: 46px;
}

.agenda-table .col-activity {
  width: auto;
}

.agenda-table .col-role {
  width: 84px;
}

.agenda-table .col-name {
  width: 82px;
}

.agenda-table .col-award {
  width: 48px;
}

.agenda-table th,
.agenda-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5px 6px;
  text-align: center;
  vertical-align: middle;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.agenda-table th:nth-child(1),
.agenda-table td:nth-child(1),
.agenda-table th:nth-child(2),
.agenda-table td:nth-child(2) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.agenda-table th {
  background: var(--yellow);
  font-weight: 900;
}

.agenda-table .section-row td {
  background: var(--yellow);
  font-weight: 900;
  font-size: 14px;
  max-width: none;
}

.agenda-table .silent-row td {
  background: #fbfaf5;
  color: #53606a;
  font-weight: 800;
}

.theme-copy-line {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.agenda-table .silent-row td:nth-child(3) {
  text-align: center;
  letter-spacing: 0;
}

.agenda-table .time {
  width: 64px;
}

.agenda-table .duration {
  width: 46px;
}

.agenda-table .role {
  width: 84px;
}

.agenda-table .name {
  width: 82px;
}

.agenda-table .award {
  width: 48px;
}

.agenda-table td:nth-child(4),
.agenda-table td:nth-child(5),
.agenda-table td:nth-child(6) {
  font-size: 12px;
}

.side-rail {
  display: grid;
  grid-template-columns: 64px 1fr;
  border-left: 2px solid var(--line);
}

.rail-label {
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--blue);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
}

.rail-copy {
  min-height: 108px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.48;
  white-space: pre-line;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timer-table {
  min-width: 920px;
  display: grid;
  grid-template-columns: 58px 48px repeat(var(--timer-group-count, 3), minmax(120px, 1fr));
  border-top: 1px solid var(--line);
}

.timer-table div {
  padding: 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
}

.timer-title {
  grid-row: span 4;
  display: grid !important;
  place-items: center;
  font-weight: 900;
}

.timer-red {
  background: #d70000;
  color: #fff;
  font-weight: 900;
}

.timer-green {
  background: #00a95a;
  color: #fff;
  font-weight: 900;
}

.timer-yellow {
  background: #ffe166;
  font-weight: 900;
}

.role-cards,
.vote-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.role-card,
.vote-card {
  border: 1px solid rgba(2, 53, 82, 0.16);
  background: #fffdf8;
  padding: 14px;
}

.role-card h3,
.vote-card h3 {
  margin: 0 0 10px;
  color: var(--blue-ink);
  font-size: 16px;
}

.role-card p,
.vote-card p {
  margin: 6px 0;
  color: #273640;
  font-size: 14px;
}

.vote-link {
  display: block;
  overflow-wrap: anywhere;
  color: var(--red-dark);
  font-size: 13px;
  line-height: 1.4;
}

.vote-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.vote-card-head h3 {
  margin: 0;
}

.vote-card-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--blue-ink);
  background: #eef5f7;
  border: 1px solid #d4e1e7;
  font-size: 12px;
  font-weight: 900;
}

.vote-loading-state {
  grid-column: 1 / -1;
  min-height: 150px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f8fafb;
  border: 1px solid #dbe5e9;
  font-weight: 900;
}

.vote-loading-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid rgba(2, 53, 82, 0.18);
  border-top-color: var(--blue-ink);
  border-radius: 50%;
  animation: meeting-create-spin 0.8s linear infinite;
}

.vote-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #6b4b00;
  background: #fff3cf;
  border: 1px solid #e8d28d;
  font-size: 12px;
  font-weight: 900;
}

.vote-status.active {
  color: #075036;
  background: #dff7ec;
  border-color: #95d7b7;
}

.vote-admin-card textarea {
  min-height: 86px;
  resize: vertical;
}

.vote-admin-card.is-locked input,
.vote-admin-card.is-locked textarea {
  color: #5e6b73;
  background: #f3f6f8;
  border-color: #cbd6dd;
  cursor: not-allowed;
}

.vote-admin-card.is-locked .vote-actions button:not(.danger-lite),
.vote-admin-card.is-locked .vote-actions .danger-lite {
  border-style: dashed;
}

.vote-award-title-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vote-actions button {
  min-height: 36px;
}

.danger-lite {
  color: #8d1c32;
  border-color: rgba(141, 28, 50, 0.3);
  background: #fff8f8;
}

.vote-muted {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.vote-stats {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d9e1e6;
}

.vote-stats strong {
  color: var(--red-dark);
}

.vote-stats > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.vote-stat-list {
  display: grid;
  gap: 5px;
}

.vote-stat-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 6px 8px;
  background: #fbfdfd;
  border: 1px solid #e1e8eb;
}

.vote-stat-list b {
  color: var(--blue-ink);
}

.vote-settings {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  background: #f6fafb;
  border: 1px solid rgba(2, 53, 82, 0.14);
}

.meeting-vote-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  padding: 12px;
  background: #fffdf8;
  border: 1px solid rgba(159, 20, 40, 0.18);
}

.meeting-vote-link strong,
.meeting-vote-link span {
  display: block;
}

.meeting-vote-link strong {
  color: var(--red-dark);
  font-size: 16px;
}

.meeting-vote-link span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.meeting-vote-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.meeting-vote-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 8px;
}

.meeting-vote-summary div {
  display: grid;
  gap: 2px;
  padding: 10px;
  background: #f6fafb;
  border: 1px solid #d9e3e8;
}

.meeting-vote-summary strong {
  color: var(--red-dark);
  font-size: 20px;
}

.meeting-vote-summary span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.meeting-vote-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meeting-vote-state button {
  min-height: 34px;
}

.candidate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.candidate-list span {
  padding: 4px 8px;
  background: #ecf4f7;
  border: 1px solid #c7dde6;
  font-size: 12px;
  font-weight: 700;
}

.web-ppt {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100vh - 150px);
}

.ppt-nav {
  background: #082f45;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ppt-nav-title {
  padding: 14px 14px 12px;
  background: #9f1428;
  border-bottom: 3px solid #ffdc63;
  font-weight: 900;
}

.ppt-nav-list {
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding: 8px;
}

.ppt-nav-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px 38px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.ppt-nav-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--nav-accent, #ffdc63);
}

.ppt-nav-item.nav-theme {
  --nav-accent: #ffdc63;
  background: rgba(255, 220, 99, 0.12);
}

.ppt-nav-item.nav-section {
  --nav-accent: #8fd0e6;
  background: rgba(143, 208, 230, 0.1);
}

.ppt-nav-item.nav-agenda {
  --nav-accent: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.ppt-nav-item.nav-speaker {
  --nav-accent: #d7a0ad;
  background: rgba(215, 160, 173, 0.11);
}

.ppt-nav-item:hover,
.ppt-nav-item.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--nav-accent) 26%, transparent), rgba(255, 255, 255, 0.94));
  border-color: var(--nav-accent);
  color: #10202b;
  transform: translateX(2px);
}

.ppt-nav-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.ppt-nav-item.active .ppt-nav-index,
.ppt-nav-item:hover .ppt-nav-index {
  background: #10202b;
  color: #fff;
}

.ppt-nav-type {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 5px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--nav-accent) 72%, #ffffff);
  color: #10202b;
  font-size: 11px;
  font-weight: 900;
}

.ppt-nav-item.active .ppt-nav-type,
.ppt-nav-item:hover .ppt-nav-type {
  background: var(--nav-accent);
  color: #10202b;
}

.ppt-nav-text {
  min-width: 0;
}

.ppt-nav-text strong,
.ppt-nav-text span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ppt-nav-text strong {
  font-size: 13px;
}

.ppt-nav-text span {
  margin-top: 3px;
  opacity: 0.82;
  font-size: 12px;
}

.ppt-stage-wrap {
  min-width: 0;
}

.ppt-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ppt-toolbar button {
  min-width: 82px;
}

.slide-counter {
  text-align: center;
  color: #26343e;
  font-weight: 900;
}

.ppt-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  display: grid;
  place-items: center;
  background: #d8e2e7;
  border: 1px solid rgba(16, 20, 24, 0.14);
  box-shadow: 0 18px 42px rgba(6, 20, 31, 0.16);
  overflow: hidden;
}

.tm-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: #0b4d70;
}

.tm-slide.cover {
  display: grid;
  place-items: center;
  background: #074b6a;
  color: #fff;
}

.tm-logo-large,
.tm-logo-small {
  display: block;
  object-fit: contain;
}

.tm-logo-large {
  width: 150px;
  height: auto;
}

.tm-logo-small {
  position: absolute;
  top: 38px;
  right: 42px;
  width: 82px;
  height: auto;
}

.cover-inner {
  width: min(70%, 760px);
  display: grid;
  justify-items: center;
  gap: 24px;
  transform: translateY(-10px);
}

.cover-role {
  width: 100%;
  padding-top: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 900;
}

.cover-club {
  width: 100%;
  min-height: 48px;
  display: grid;
  place-items: center;
  background: #c4d4dd;
  color: #074b6a;
  font-size: clamp(18px, 2.7vw, 34px);
  font-weight: 900;
}

.cover-name {
  margin-top: 18px;
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
}

.section-cover {
  display: grid;
  place-items: center;
  padding: 78px 96px 72px;
  background: #074b6a;
  color: #ffffff;
}

.section-cover-inner {
  width: min(82%, 860px);
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.section-cover-title {
  width: 100%;
  padding: 14px 30px 18px;
  color: #ffdc63;
  border-top: 2px solid rgba(255, 255, 255, 0.88);
  border-bottom: 2px solid rgba(255, 255, 255, 0.28);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
}

.section-cover-meeting {
  width: 100%;
  min-height: 48px;
  display: grid;
  place-items: center;
  background: #c4d4dd;
  color: #074b6a;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
}

.section-cover-theme {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 800;
}

.slide-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: #8d1c32;
  border-top: 4px solid #ffdc63;
}

.agenda-slide {
  display: grid;
  place-items: center;
  padding: 78px 96px 72px;
  background: #074b6a;
  color: #ffffff;
}

.agenda-slide-inner {
  width: min(82%, 860px);
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.agenda-slide-title {
  width: 100%;
  padding: 14px 30px 18px;
  color: #e7f6ff;
  border-top: 2px solid rgba(255, 255, 255, 0.88);
  border-bottom: 2px solid rgba(255, 255, 255, 0.28);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 900;
}

.agenda-slide-meeting {
  width: 100%;
  min-height: 48px;
  display: grid;
  place-items: center;
  background: #c4d4dd;
  color: #074b6a;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
}

.agenda-slide-person {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: baseline;
}

.agenda-slide-role {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
}

.agenda-slide-name {
  color: #f6f0d0;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
}

.speaker-slide {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  padding: 58px 74px 58px 54px;
}

.portrait-shell {
  width: min(82%, 330px);
  aspect-ratio: 0.76;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #f4f8fa);
  border: 10px solid #1e567f;
  box-shadow: 0 10px 18px rgba(7, 48, 72, 0.18);
}

.portrait-avatar {
  width: 78%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5f0e8, #d8e4e8);
  color: #1e567f;
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 900;
}

.portrait-default {
  width: 94%;
  height: 94%;
  border-radius: 50%;
  display: grid;
  grid-template-rows: 48% 52%;
  justify-items: center;
  align-items: end;
  overflow: hidden;
  background: linear-gradient(145deg, #eef4f6, #d8e4e8);
}

.portrait-default-head {
  width: 42%;
  aspect-ratio: 1;
  align-self: end;
  border-radius: 50%;
  background: #c8d8de;
  border: 4px solid rgba(30, 86, 127, 0.12);
}

.portrait-default-body {
  width: 68%;
  height: 70%;
  align-self: start;
  margin-top: 6%;
  border-radius: 50% 50% 18% 18%;
  background: #24577f;
}

.portrait-photo {
  width: 94%;
  height: 94%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.speaker-copy {
  justify-self: stretch;
  display: grid;
  gap: 36px;
  justify-items: center;
}

.speaker-role {
  width: min(90%, 520px);
  min-height: 70px;
  display: grid;
  place-items: center;
  background: #24577f;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}

.speaker-name {
  color: #1e567f;
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 900;
}

.speaker-subtitle {
  max-width: 560px;
  min-height: 42px;
  color: #46535c;
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 800;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  line-height: 1.28;
}

.speaker-subtitle-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.speaker-duration-badge {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #f3c14f;
  color: #17364f;
  box-shadow: 0 8px 18px rgba(36, 87, 127, 0.14);
  font-size: clamp(13px, 1.35vw, 17px);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.web-ppt:fullscreen {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #061b28;
}

.web-ppt:fullscreen .ppt-nav,
.web-ppt:fullscreen .ppt-toolbar {
  display: none;
}

.web-ppt:fullscreen .ppt-stage-wrap {
  display: grid;
  grid-template-rows: 1fr;
  padding: 0;
}

.web-ppt:fullscreen .ppt-stage {
  align-self: center;
  justify-self: center;
  width: 100vw;
  max-width: calc(100vh * 16 / 9);
  min-height: 0;
  max-height: 100vh;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

.editor-shell,
.manage-shell {
  background: #fffdf8;
  border: 1px solid rgba(2, 53, 82, 0.14);
}

.relay-editor-panel {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 190px;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border-bottom: 1px solid #d7e0e5;
  background: linear-gradient(180deg, #fbfdfd, #f4f8f9);
}

.relay-editor-panel .relay-field {
  grid-row: auto;
}

.relay-editor-panel textarea {
  min-height: 158px;
  background: #fff;
}

.relay-editor-panel .meta-grid {
  align-content: start;
  margin-top: 0;
}

.relay-editor-panel .meta-grid .field:nth-last-child(2),
.relay-editor-panel .meta-grid .field:nth-last-child(1) {
  grid-column: auto;
}

.relay-editor-panel .button-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
  align-self: stretch;
  margin-top: 0;
}

.relay-action-panel button {
  width: 100%;
}

.ai-time-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  min-height: 16px;
  transition: color 0.3s;
}
.ai-time-hint.active {
  color: var(--blue);
  font-weight: 600;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #edf4f6;
  border-bottom: 1px solid #cdd6dc;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.toolbar-actions button {
  min-height: 36px;
  padding: 0 12px;
}

.autosave-status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  color: #075036;
  background: #dff7ec;
  border: 1px solid #95d7b7;
  font-size: 13px;
  font-weight: 900;
}

.edit-empty-state {
  display: none;
  gap: 12px;
  justify-items: start;
  padding: 22px 14px;
  color: var(--blue-ink);
  background: #fbfdfd;
  border-bottom: 1px solid #d7e0e5;
}

.edit-empty-state strong {
  font-size: 18px;
  font-weight: 900;
}

.edit-empty-state span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.edit-empty-state button.is-loading::before,
.meeting-modal-actions button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: meeting-create-spin 0.8s linear infinite;
}

.edit-empty-state button.is-loading,
.meeting-modal-actions button.is-loading {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

#editView.no-current-meeting .edit-empty-state {
  display: grid;
}

#editView.no-current-meeting .editor-toolbar button,
#editView.no-current-meeting .agenda-current-only {
  display: none;
}

.agenda-select-hidden {
  display: none;
}

.agenda-meta-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  background: #fbfdfd;
  border-bottom: 1px solid #d7e0e5;
}

.agenda-meta-primary,
.agenda-meta-secondary,
.agenda-more-grid {
  display: grid;
  gap: 10px;
  align-items: start;
}

.agenda-meta-primary {
  grid-template-columns: minmax(132px, 0.18fr) minmax(280px, 1fr) minmax(220px, 0.34fr);
}

.agenda-meta-primary .language-field {
  min-width: 220px;
}

.agenda-meta-secondary {
  grid-template-columns: minmax(180px, 0.8fr) 150px 160px minmax(360px, 2fr);
}

.agenda-meta-bar textarea {
  min-height: 74px;
  background: #fff;
}

.agenda-meta-bar .theme-copy-field textarea {
  min-height: 56px;
}

.agenda-more-settings {
  border: 1px solid #d6e1e6;
  background: #f7fbfc;
}

.agenda-more-settings summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #2c4653;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.agenda-more-settings[open] summary {
  border-bottom: 1px solid #d6e1e6;
  background: #eef5f7;
}

.agenda-more-grid {
  grid-template-columns: minmax(220px, 0.35fr) minmax(320px, 1fr);
  padding: 12px;
}

.agenda-more-grid .theme-copy-field {
  grid-column: 1 / -1;
}

.agenda-edit-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 12px;
  color: #44545e;
  background: #fff8e6;
  border-bottom: 1px solid #ead7a7;
  font-size: 13px;
  line-height: 1.45;
}

.agenda-edit-note strong {
  color: #8a5a00;
  font-size: 13px;
}

.meeting-switcher-panel {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  background: #f6fafb;
  border-bottom: 1px solid #d7e0e5;
}

.meeting-switcher-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.current-meeting-summary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 20, 28, 0.48);
}

.modal-backdrop.open {
  display: grid;
}

.meeting-modal {
  width: min(920px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(2, 53, 82, 0.2);
  box-shadow: var(--shadow);
}

.participants-modal {
  width: min(1120px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(2, 53, 82, 0.2);
  box-shadow: var(--shadow);
}

.participants-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  overflow: auto;
}

.participants-editor {
  min-width: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.participants-note {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  background: #f7fafb;
  border: 1px solid #d9e3e8;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.participant-toolbar {
  min-width: 920px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #f7fafb;
  border-bottom: 1px solid #d9e3e8;
}

.participant-table-head,
.participant-row {
  min-width: 920px;
  display: grid;
  grid-template-columns: 118px minmax(180px, 1fr) 178px minmax(210px, 1fr) 140px;
  gap: 10px;
  align-items: center;
}

.participant-table-head {
  padding: 10px 12px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.participant-row {
  padding: 10px 12px;
  border-bottom: 1px solid #e1e8eb;
}

.participant-row:hover {
  background: #f8fbfc;
}

.meeting-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #edf4f6;
  border-bottom: 1px solid #cdd6dc;
}

.meeting-modal-head h2 {
  margin: 0;
  color: var(--blue-ink);
  font-size: 20px;
}

.meeting-modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.meeting-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.meeting-modal-actions button {
  min-height: 36px;
  padding: 0 12px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

#loginForm button.is-loading {
  cursor: wait;
}

#loginForm button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-top-color: currentColor;
  border-radius: 50%;
  margin-right: 7px;
  animation: meeting-create-spin 0.8s linear infinite;
}

#refreshVoteBtn.is-loading {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: wait;
}

#refreshVoteBtn.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: meeting-create-spin 0.8s linear infinite;
}

.meeting-modal-actions button.is-loading {
  cursor: wait;
}

.meeting-create-status {
  min-height: 42px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  color: var(--blue-ink);
  background: #f7fafb;
  border-bottom: 1px solid #d9e3e8;
  font-size: 13px;
  font-weight: 900;
}

.meeting-create-status[hidden] {
  display: none;
}

.meeting-create-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 3px solid #d4e1e7;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: meeting-create-spin 0.8s linear infinite;
}

@keyframes meeting-create-spin {
  to { transform: rotate(360deg); }
}

.agenda-edit-layout {
  display: block;
  min-height: 520px;
}

.agenda-editor {
  padding: 12px;
  overflow: auto;
}

.meeting-list-title {
  color: var(--blue-ink);
  font-size: 15px;
  font-weight: 900;
}

.meeting-list {
  max-height: 100%;
  overflow: auto;
  padding: 16px;
  background: #f3f7f8;
}

.meeting-list-table {
  min-width: 820px;
  display: grid;
  overflow: hidden;
  border: 1px solid #d7e1e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 64, 83, 0.08);
}

.meeting-list-head,
.meeting-list-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(220px, 1.45fr) minmax(150px, 0.95fr) minmax(142px, 0.8fr) 164px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #e6edf0;
}

.meeting-list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #496472;
  background: #eef5f7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.meeting-list-row:last-child {
  border-bottom: 0;
}

.meeting-list-row {
  min-height: 72px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.meeting-list-row:hover {
  background: #fbfdfe;
}

.meeting-list-row.active {
  background: #f1fbf7;
  box-shadow: inset 4px 0 0 #19a974;
}

.meeting-title-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.meeting-list-row strong {
  min-width: 0;
  color: var(--blue-ink);
  overflow-wrap: anywhere;
}

.meeting-list-row em {
  padding: 2px 7px;
  border-radius: 999px;
  color: #075036;
  background: #dff7ec;
  border: 1px solid #95d7b7;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.meeting-theme-cell {
  min-width: 0;
  color: #233844;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.meeting-time-cell {
  display: grid;
  gap: 4px;
  color: #2d4653;
  font-weight: 850;
}

.meeting-time-cell small,
.meeting-created-cell {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meeting-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.meeting-row-actions button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.meeting-current-btn {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.meeting-current-btn:disabled {
  color: #075036;
  background: #dff7ec;
  border-color: #95d7b7;
  opacity: 1;
  cursor: default;
}

.meeting-delete-btn {
  color: var(--red-dark);
  background: #fff7f7;
  border-color: rgba(159, 20, 40, 0.28);
}

.meeting-list-empty {
  padding: 18px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #cdd6dc;
  border-radius: 8px;
  font-weight: 800;
}

.list-pager {
  min-width: 620px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--muted);
  background: #f8fbfc;
  border: 1px solid #d9e3e8;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  font-size: 13px;
  font-weight: 900;
}

.list-pager button {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.list-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.agenda-edit-head,
.agenda-edit-row {
  min-width: 1200px;
  display: grid;
  grid-template-columns: 44px 96px 88px 68px minmax(240px, 1fr) 132px 156px 72px 250px;
  gap: 8px;
  align-items: center;
}

.agenda-edit-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.agenda-edit-row {
  position: relative;
  padding: 8px;
  border-bottom: 1px solid #d9e1e6;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.agenda-edit-row:nth-child(odd) {
  background: #f8fbfc;
}

.agenda-edit-row:focus-within {
  background: #eef9fb;
  box-shadow: inset 4px 0 0 var(--blue);
}

.agenda-edit-row.is-section {
  background: #fff5cf;
  border: 1px solid #e6cf7a;
  box-shadow: inset 4px 0 0 #d5a712;
}

.agenda-edit-row input,
.agenda-edit-row select {
  min-height: 34px;
  padding: 6px 8px;
  background: #fff;
  border-color: #cbd8de;
  font-size: 13px;
  line-height: 1.25;
}

.agenda-edit-row input[data-field="time"],
.agenda-edit-row input[data-field="duration"] {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.agenda-edit-row input[data-field="role"],
.agenda-edit-row input[data-field="name"],
.name-field-cell input {
  font-weight: 800;
}

.agenda-honor-display {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  color: #4c5d66;
  background: #eef4f6;
  border: 1px solid #d4dfe4;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.agenda-honor-display:empty::before {
  content: "资料";
  color: #8a9aa4;
  font-weight: 800;
}

.agenda-edit-row.is-section input[data-field="activity"] {
  font-weight: 900;
  text-align: center;
  color: #6b4f00;
  background: #fff9e8;
  border-color: #e4cf83;
}

.agenda-edit-row.dragging {
  opacity: 0.48;
}

.agenda-edit-row.insert-before::before,
.agenda-edit-row.insert-after::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: rgba(197, 0, 0, 0.34);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(197, 0, 0, 0.08);
  z-index: 2;
}

.agenda-edit-row.insert-before::before {
  top: -2px;
}

.agenda-edit-row.insert-after::after {
  bottom: -2px;
}

.drag-handle {
  display: grid;
  place-items: center;
  height: 34px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  user-select: none;
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

.agenda-edit-row button {
  min-height: 36px;
}

.name-field-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: center;
}

.name-field-cell button {
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

.row-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.row-actions button {
  min-height: 32px;
  padding: 4px 5px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.row-actions button[data-action="delete"] {
  color: #8d1c32;
  border-color: rgba(141, 28, 50, 0.3);
}

.manage-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 150px);
  background: #f6fafb;
}

.club-list-panel {
  border-right: 1px solid #cdd6dc;
  background: #f3f7f8;
  color: #10202b;
  padding: 14px;
}

.club-form-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  overflow-x: auto;
}

.club-form-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.manage-title {
  font-size: 16px;
  font-weight: 900;
}

.speakers-shell {
  display: grid;
  gap: 14px;
}

.speakers-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.speakers-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.speaker-editor {
  overflow: auto;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.speaker-toolbar {
  min-width: 920px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #d9e3e8;
  background: #f8fbfc;
}

.speaker-search {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.speaker-search input {
  min-height: 36px;
}

.speaker-summary {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.speaker-summary strong {
  color: var(--blue);
  font-size: 18px;
}

.speaker-table-head,
.speaker-row {
  min-width: 920px;
  display: grid;
  grid-template-columns: 118px minmax(180px, 1fr) 178px minmax(210px, 1fr) 140px;
  gap: 10px;
  align-items: center;
}

.speaker-table-head {
  padding: 10px 12px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.speaker-row {
  padding: 10px 12px;
  border-bottom: 1px solid #e1e8eb;
  transition: background 0.15s ease;
}

.speaker-row:hover {
  background: #f8fbfc;
}

.speaker-row.is-focus {
  background: #fff8e1;
  box-shadow: inset 4px 0 0 var(--gold);
}

.speaker-photo {
  display: flex;
  gap: 8px;
  align-items: center;
}

.speaker-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload {
  min-height: 32px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #c6d3d9;
  color: var(--blue);
  background: #f8fbfc;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.gender-radio {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 3px;
  border: 1px solid #c6d3d9;
  background: #f8fbfc;
}

.gender-radio label {
  min-height: 28px;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 4px;
  color: #38515d;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.gender-radio input {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--blue);
}

.gender-radio label:has(input:checked) {
  color: #fff;
  background: var(--blue);
}

.speaker-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.speaker-actions button {
  min-height: 34px;
}

.speaker-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}

.speaker-delete {
  color: #8d1c32;
  border-color: rgba(141, 28, 50, 0.3);
}

.speaker-pager {
  min-width: 920px;
  border-width: 1px 0 0;
}

.empty-speakers {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.empty-speakers strong {
  color: var(--ink);
}

.club-form-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timer-rule-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.timer-rule-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.timer-rule-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timer-rule-grid,
.timer-rule-row {
  min-width: 820px;
  display: grid;
  grid-template-columns: 70px minmax(180px, 1.2fr) repeat(3, minmax(145px, 1fr)) 86px;
  gap: 8px;
  align-items: center;
}

.timer-rule-grid {
  padding: 8px 10px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.timer-rule-editor {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.timer-rule-row {
  padding: 8px 10px;
  background: #f8fbfc;
  border: 1px solid #dce6ea;
}

.timer-rule-row input {
  min-height: 36px;
}

.timer-rule-flag {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--blue);
  background: #eef5f7;
  border: 1px solid #c6d3d9;
  font-size: 12px;
  font-weight: 900;
}

.timer-rule-flag input {
  min-height: 0;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--blue);
}

.timer-rule-delete {
  min-height: 36px;
  color: #8d1c32;
  border-color: rgba(141, 28, 50, 0.3);
}

.default-avatar-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.regular-meeting-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f6fafb;
  border: 1px solid #d9e3e8;
}

.regular-meeting-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.regular-meeting-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr);
  gap: 10px;
}

.default-avatar-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.default-avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.default-avatar-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dce6ea;
  background: #f8fbfc;
}

.default-avatar-preview {
  width: 52px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #6d7f89;
  background: linear-gradient(145deg, #eef4f6, #d8e4e8);
  border: 2px solid #1e567f;
  font-size: 12px;
  font-weight: 900;
}

.default-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-avatar-card strong {
  font-size: 14px;
  font-weight: 900;
}

.default-avatar-card > div:last-child {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.default-avatar-card button,
.default-avatar-card .photo-upload {
  min-height: 32px;
}

.club-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.club-form-actions button {
  min-height: 36px;
}

.club-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.club-list-entry {
  display: grid;
  gap: 7px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #dbe5e8;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 32, 43, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.club-list-entry.active {
  border-color: #0b6f96;
  box-shadow: 0 0 0 2px rgba(11, 111, 150, 0.11);
}

.club-list-entry.is-disabled {
  opacity: 0.72;
  background: #f8fafb;
}

.club-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  min-height: 52px;
  padding: 8px 6px;
  text-align: left;
  color: #10202b;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.club-list-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.club-list-meta {
  grid-column: 1;
  color: #60727c;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-list-status {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  padding: 3px 7px;
  color: #0b6f46;
  background: #e8f6ef;
  border: 1px solid #bfe6d0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.club-list-item.active,
.club-list-item:hover {
  background: #eef8fb;
}

.club-list-entry.is-disabled .club-list-status {
  color: #7a4b14;
  background: #fff2db;
  border-color: #efc57e;
}

.club-list-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.club-list-actions button {
  min-height: 30px;
  padding: 5px 8px;
  color: #40545e;
  background: #f7fafb;
  border-color: #d6e1e5;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.club-list-actions button:hover {
  color: #0b6f96;
  background: #edf7fa;
  border-color: #9fd1e0;
}

.club-list-actions .danger {
  color: #9b1c35;
  background: #fff6f7;
  border-color: #efc5cc;
}

.club-list-actions .danger:hover {
  color: #7f1028;
  background: #ffecef;
  border-color: #e69aaa;
}

.club-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.club-form-grid .field:nth-child(n + 7) {
  grid-column: span 3;
}

.club-form-grid .field:nth-child(9),
.club-form-grid .field:nth-child(10),
.club-form-grid .field:nth-child(11) {
  grid-column: span 1;
}

.club-form-grid textarea {
  min-height: 120px;
}

.club-locale-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.club-locale-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.club-locale-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.club-locale-grid {
  padding: 0;
  border: 0;
  background: transparent;
}

.club-locale-grid .field:nth-child(n) {
  grid-column: auto;
}

.club-locale-grid .field:nth-child(n + 4) {
  grid-column: span 3;
}

.module-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.module-picker-title {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.module-picker-title strong {
  color: var(--blue-ink);
  font-size: 14px;
}

.module-picker-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.module-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.module-picker input {
  width: auto;
  min-height: auto;
}

.default-agenda-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9e3e8;
}

.default-agenda-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.default-agenda-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  overflow: hidden;
  border: 1px solid #c6d3d9;
  background: #f8fbfc;
}

.segmented-control button {
  min-height: 34px;
  border: 0;
  border-right: 1px solid #c6d3d9;
  background: transparent;
  color: var(--blue);
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button.active {
  color: #fff;
  background: var(--blue);
}

.default-agenda-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.default-agenda-head > div:last-child {
  display: flex;
  gap: 8px;
}

.default-agenda-head button {
  min-height: 34px;
}

.default-agenda-editor {
  overflow: auto;
}

.default-agenda-head-row,
.default-agenda-row {
  min-width: 1140px;
  display: grid;
  grid-template-columns: 44px 96px 88px 68px minmax(240px, 1fr) 132px 118px 72px 250px;
  gap: 8px;
  align-items: center;
}

.default-agenda-row {
  position: relative;
  padding: 8px;
  border-bottom: 1px solid #e1e8eb;
}

.default-agenda-head-row {
  padding: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.default-agenda-row.is-section {
  background: #fff5cf;
  border: 1px solid #e6cf7a;
}

.default-agenda-row.is-section input[data-field="activity"] {
  font-weight: 900;
  text-align: center;
  color: #6b4f00;
  background: #fff9e8;
  border-color: #e4cf83;
}

.default-agenda-row.dragging {
  opacity: 0.48;
}

.default-agenda-row.insert-before::before,
.default-agenda-row.insert-after::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: rgba(197, 0, 0, 0.34);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(197, 0, 0, 0.08);
  pointer-events: none;
  z-index: 2;
}

.default-agenda-row.insert-before::before {
  top: -2px;
}

.default-agenda-row.insert-after::after {
  bottom: -2px;
}

.default-agenda-row button {
  min-height: 34px;
}

.is-club-user .manage-shell {
  display: block;
}

.is-club-user .club-form-panel {
  max-width: none;
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: auto;
  max-width: min(760px, calc(100vw - 32px));
  padding: 12px 16px;
  color: var(--white);
  background: rgba(2, 20, 32, 0.9);
  border-radius: 999px;
  line-height: 1.45;
  text-align: center;
  transition: 160ms ease;
  z-index: 80;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: rgba(145, 28, 49, 0.96);
  border-radius: 10px;
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .input-pane {
    min-height: auto;
    position: static;
  }

  .web-ppt {
    grid-template-columns: 1fr;
  }

  .vote-settings {
    grid-template-columns: 1fr;
  }

  .meeting-vote-link {
    grid-template-columns: 1fr;
  }

  .vote-award-title-grid {
    grid-template-columns: 1fr;
  }

  .feedback-form {
    grid-template-columns: 1fr;
  }

  .topics-link-card,
  .topics-grid,
  .topics-layout,
  .topic-bulk-add,
  .topic-question-row,
  .topic-generate-row,
  .topic-ai-controls {
    grid-template-columns: 1fr;
  }

  .topics-current-panel {
    position: static;
  }

  .topics-current-panel .topic-question-editor,
  .topics-candidate-list,
  .topic-market-list,
  .topic-market-question-list {
    max-height: none;
  }

  .topic-question-delete {
    width: 100%;
  }

  .manual-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .relay-editor-panel {
    grid-template-columns: 1fr;
  }

  .relay-editor-panel .relay-field {
    grid-row: auto;
  }

  .editor-toolbar {
    justify-content: flex-start;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

  .agenda-meta-primary,
  .agenda-meta-secondary,
  .agenda-more-grid {
    grid-template-columns: 1fr;
  }

  .manage-shell {
    grid-template-columns: 1fr;
  }

  .club-list-panel {
    border-right: 0;
  }

  .meeting-list {
    max-height: 260px;
  }

  .club-form-grid {
    grid-template-columns: 1fr;
  }

  .club-form-grid .field {
    grid-column: span 1;
  }

  .regular-meeting-grid {
    grid-template-columns: 1fr;
  }

  .ppt-nav {
    max-height: 220px;
  }

  .ppt-nav-list {
    max-height: 165px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .input-pane,
  .tabs {
    display: none;
  }

  .workspace {
    display: block;
  }

  .preview-pane {
    border: 0;
    box-shadow: none;
  }
}

/* ── AI 分析进度条 & 计时徽章 ── */
.parse-btn-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-timer-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(7,84,123,0.35);
  animation: badge-pop-in 0.25s ease-out;
  z-index: 2;
}
.ai-timer-badge.show { display: flex; }

@keyframes badge-pop-in {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.ai-progress-track {
  display: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #dce4ea;
  overflow: hidden;
}
.ai-progress-track.show { display: block; }

.ai-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), #2eaadc);
  transition: width 0.6s linear;
}

/* 按钮分析中脉冲动画 */
button.primary.analyzing {
  position: relative;
  overflow: hidden;
  cursor: wait;
}
button.primary.analyzing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  animation: btn-shimmer 1.8s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

button.primary.analyzing .btn-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 2px;
  animation: dot-bounce 1.2s ease-in-out infinite;
}
button.primary.analyzing .btn-dot:nth-child(2) { animation-delay: 0.2s; }
button.primary.analyzing .btn-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}
