:root {
  --bg: #f4f7f4;
  --panel: #ffffff;
  --panel-soft: #f9fbfa;
  --ink: #172025;
  --muted: #62717a;
  --line: #dfe7e2;
  --blue: #2364aa;
  --green: #14855b;
  --red: #c24132;
  --amber: #b7791f;
  --teal: #147f86;
  --violet: #6655b8;
  --shadow: 0 18px 44px rgba(29, 43, 38, 0.08);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(35,100,170,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20,127,134,0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
}

button, input { font: inherit; }

.global-loading {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(244, 247, 244, 0.55);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.global-loading-card {
  width: min(320px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.global-loader {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
}

.global-loader span {
  position: absolute;
  inset: 7px;
  border: 5px solid transparent;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.global-loader span:nth-child(2) {
  inset: 14px;
  border-top-color: var(--blue);
  animation-duration: 1.35s;
  animation-direction: reverse;
}

.global-loader span:nth-child(3) {
  inset: 23px;
  border-top-color: var(--amber);
  animation-duration: 0.85s;
}

.global-loader span:nth-child(4) {
  inset: 27px;
  border: 0;
  background: var(--green);
  opacity: 0.18;
}

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

.global-loading-card strong {
  display: block;
  font-size: 17px;
}

.global-loading-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.shell {
  width: min(1500px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.topbar {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar > div:first-child {
  min-width: 360px;
  flex: 1 1 460px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2, h3, p { margin: 0; }
h1 {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
  white-space: nowrap;
}
h2 { font-size: 20px; }
h3 { font-size: 15px; }

.actions {
  flex: 1 1 760px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.market-switch {
  height: 44px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.market-option {
  width: auto;
  height: 34px;
  min-width: 58px;
  padding: 0 12px;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.market-option.active {
  color: #fff;
  background: var(--ink);
}

.nav-action {
  width: auto;
  min-width: 88px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.nav-action.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.feedback-window {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  pointer-events: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(20, 35, 40, 0.18);
}

.feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feedback-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.feedback-copy,
.feedback-status,
.feedback-file {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.feedback-label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.feedback-label textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.55;
}

.feedback-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8faf9;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.feedback-upload input {
  max-width: 210px;
  font-size: 12px;
}

.feedback-status {
  min-height: 20px;
  margin: 10px 0;
  color: var(--teal);
  font-weight: 800;
}

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

.language-picker {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.language-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.language-picker select {
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.search {
  flex: 1 1 280px;
  width: min(360px, 48vw);
  max-width: 430px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search span { color: var(--muted); font-weight: 800; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }

button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.status-strip article,
.sidebar,
.workspace,
.leaderboard,
.subtheme-card,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.status-strip article { padding: 16px; }
.status-strip span, .section-title span, .meta, td:last-child { color: var(--muted); font-size: 12px; }
.status-strip strong { display: block; margin-top: 8px; font-size: 22px; line-height: 1.05; }

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.volume-page {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.mapping-page {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.manual-page {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

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

.manual-frame {
  display: block;
  width: 100%;
  height: min(1600px, calc(100vh - 210px));
  min-height: 760px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.risk-page {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.risk-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(245,248,247,0.86);
  margin-top: 14px;
}

.risk-hero.strong,
.risk-hero.positive { border-color: rgba(20,133,91,0.45); background: rgba(20,133,91,0.07); }
.risk-hero.warning { border-color: rgba(183,121,31,0.45); background: rgba(183,121,31,0.07); }
.risk-hero.danger { border-color: rgba(194,65,50,0.45); background: rgba(194,65,50,0.07); }

.risk-hero span,
.risk-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.risk-hero strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.risk-hero p {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 780px;
}

.risk-score-ring {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 12px solid rgba(20,133,91,0.16);
  display: grid;
  place-items: center;
  text-align: center;
  flex: 0 0 auto;
  background: white;
}

.risk-score-ring b {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.risk-score-ring span {
  display: block;
  font-size: 12px;
  margin-top: -22px;
}

.risk-score-help {
  position: absolute;
  top: 6px;
  right: 6px;
}

.risk-score-help .help-dot {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.92);
}

.risk-score-help .help-popover {
  left: auto;
  right: 0;
  top: calc(100% + 8px);
  width: 330px;
  text-align: left;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.risk-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-height: 132px;
  background: rgba(255,255,255,0.94);
}

.risk-card-priority {
  border-color: rgba(196, 123, 28, 0.35);
  background: rgba(255, 249, 238, 0.94);
}

.risk-card strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
}

.risk-card p {
  min-height: 36px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.risk-lower-grid { margin-top: 14px; }

.treasury-row {
  display: grid;
  grid-template-columns: 42px 1fr 70px 62px;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 13px;
}

.treasury-row div {
  height: 10px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.treasury-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.treasury-row em {
  font-style: normal;
  text-align: right;
}

.treasury-mini {
  border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
}

.treasury-window-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245,248,247,0.86);
}

.treasury-window-switch button {
  border: 0;
  border-radius: 6px;
  padding: 7px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.treasury-window-switch button.active {
  color: white;
  background: var(--ink);
}

.treasury-mini:last-child { border-bottom: 0; }

.treasury-mini-head {
  display: grid;
  grid-template-columns: 46px 1fr 64px;
  align-items: baseline;
  gap: 10px;
}

.treasury-mini-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.treasury-mini-head strong {
  font-size: 20px;
}

.treasury-mini-head em {
  font-style: normal;
  text-align: right;
  font-weight: 800;
}

.treasury-mini svg {
  width: 100%;
  height: 54px;
  margin-top: 8px;
  color: var(--green);
  background: linear-gradient(to bottom, rgba(20,133,91,0.08), rgba(20,133,91,0.02));
  border-radius: 6px;
}

.treasury-mini-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.risk-notes p {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.risk-notes p:last-child { border-bottom: 0; }

.risk-updated {
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0 0;
}

.fedwatch-panel { grid-column: span 2; }

.fedwatch-summary {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.fedwatch-summary span,
.fedwatch-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fedwatch-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.fedwatch-metrics {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.fedwatch-metrics b {
  font-size: 13px;
}

.fedwatch-bars {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.fedwatch-bar {
  display: grid;
  grid-template-columns: 96px 1fr 52px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.fedwatch-bar div {
  height: 10px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.fedwatch-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.polymarket-panel {
  margin-top: 14px;
}

.poly-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.poly-head span,
.poly-chart-title span,
.muted {
  color: var(--muted);
}

.poly-head strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.poly-head p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.poly-head a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.poly-meeting-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.poly-meeting-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(245,248,247,0.78);
  text-decoration: none;
}

.poly-meeting-card:hover {
  border-color: rgba(20, 128, 92, 0.42);
  background: #fbfefd;
}

.poly-meeting-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.poly-meeting-card strong {
  font-size: 28px;
  line-height: 1;
}

.poly-chart {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
}

.poly-chart-title,
.poly-chart-meta,
.poly-range {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.poly-chart-title {
  margin-bottom: 10px;
}

.poly-chart-meta,
.poly-range {
  color: var(--muted);
  font-size: 12px;
}

.poly-chart-meta strong {
  color: var(--blue);
  font-size: 18px;
}

.poly-chart svg {
  width: 100%;
  height: 210px;
  margin: 8px 0;
  border-radius: 8px;
  background:
    linear-gradient(to bottom, rgba(42, 109, 193, 0.05), rgba(42, 109, 193, 0.01)),
    repeating-linear-gradient(0deg, transparent 0 52px, rgba(15, 23, 42, 0.08) 52px 53px);
}

.poly-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.poly-area {
  fill: rgba(42, 109, 193, 0.08);
}

.poly-chart-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--panel-soft);
  border-radius: 8px;
}

.mapping-status-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mapping-summary {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.mapping-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mapping-summary strong {
  display: block;
  margin: 8px 0;
  font-size: 20px;
}

.mapping-summary p {
  color: var(--muted);
  font-size: 12px;
}

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

.mapping-card,
.mapping-empty {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.mapping-card.strong { border-color: rgba(20,133,91,0.55); background: rgba(20,133,91,0.06); }
.mapping-card.hot { border-color: rgba(194,65,50,0.45); background: rgba(194,65,50,0.05); }
.mapping-card.watch { border-color: rgba(183,121,31,0.45); background: rgba(183,121,31,0.05); }

.mapping-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.mapping-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mapping-card-head h3 {
  margin-top: 6px;
  font-size: 18px;
}

.mapping-card-head strong {
  color: var(--green);
  font-size: 22px;
}

.mapping-verdict {
  display: inline-flex;
  margin: 12px 0 8px;
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--green);
  background: rgba(20,133,91,0.1);
  font-size: 12px;
  font-weight: 800;
}

.mapping-card.hot .mapping-verdict {
  color: var(--red);
  background: rgba(194,65,50,0.1);
}

.mapping-card p,
.mapping-empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.mapping-metrics,
.mapping-leaders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mapping-metrics span,
.mapping-leaders span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #24424a;
  background: rgba(20,127,134,0.1);
  font-size: 12px;
  font-weight: 700;
}

.mapping-jump {
  width: auto;
  height: 34px;
  margin-top: 14px;
  padding: 0 12px;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.exchange-switch {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(96px, auto));
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.exchange-option {
  width: auto;
  height: 34px;
  min-width: 96px;
  padding: 0 12px;
  border: 0;
  box-shadow: none;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.exchange-option.active {
  color: #fff;
  background: var(--ink);
}

.volume-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.volume-card {
  min-height: 124px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.volume-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.volume-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.05;
}

.volume-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.volume-panel {
  min-height: 360px;
}

.breadth-summary {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.breadth-summary strong {
  color: var(--muted);
}

.breadth-summary .up { color: var(--red); }
.breadth-summary .down { color: var(--green); }

.breadth-row {
  display: grid;
  grid-template-columns: 88px minmax(140px, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin: 9px 0;
  font-size: 13px;
}

.breadth-row i {
  height: 12px;
  width: var(--w);
  max-width: 100%;
  border-radius: 4px;
  background: var(--red);
}

.breadth-row i.down { background: var(--green); }
.breadth-row i.flat { background: #aeb8b5; }
.breadth-row b { text-align: right; }

.volume-chart-panel {
  display: grid;
  grid-template-rows: auto 1fr;
}

.volume-curve-chart {
  min-height: 285px;
  display: grid;
}

.volume-chart-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}

.volume-chart-empty strong {
  color: var(--ink);
  font-size: 30px;
}

.volume-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.volume-chart-head strong {
  font-size: 18px;
}

.volume-curve-chart svg {
  width: 100%;
  min-height: 245px;
}

.volume-curve-chart line {
  stroke: #9dc0df;
  stroke-width: 1;
}

.volume-curve-chart .area {
  fill: rgba(237, 137, 54, 0.16);
}

.volume-curve-chart .line {
  fill: none;
  stroke: #ed8936;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume-chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.sidebar { padding: 14px; position: sticky; top: 14px; }
.workspace { padding: 16px; min-width: 0; }

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.mini-action {
  width: auto;
  height: 30px;
  min-height: 0;
  padding: 0 10px;
  border-radius: 8px;
  box-shadow: none;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 800;
}

.mini-action.primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.4);
}

.mini-action.danger {
  margin-left: 6px;
  color: #b42318;
  background: #fff4f2;
  border-color: rgba(180, 35, 24, 0.25);
}

.admin-inline-delete {
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 22, 32, 0.28);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-window {
  width: min(360px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.18);
}

.confirm-window h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.confirm-window p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-register-confirm {
  width: min(460px, 100%);
}

.auth-register-confirm p {
  color: var(--ink);
  font-size: 15px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.pool-editor {
  margin: -2px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.pool-editor-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 0.8fr) minmax(160px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.pool-editor label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pool-editor select,
.pool-editor input,
.pool-editor textarea {
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--panel);
  color: var(--ink);
}

.pool-editor select,
.pool-editor input {
  height: 34px;
}

.pool-editor textarea {
  min-height: 78px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.5;
}

.pool-import-panel {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed rgba(31, 110, 166, 0.32);
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.92);
}

.pool-import-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pool-import-head strong {
  color: var(--ink);
  font-size: 13px;
}

.pool-import-head span,
.pool-import-status,
.pool-import-preview em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pool-import-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.5fr);
  gap: 8px;
  margin-bottom: 8px;
}

.pool-import-text {
  margin-bottom: 8px;
}

.pool-import-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pool-import-status.ok { color: var(--green); }
.pool-import-status.warn { color: var(--amber); }

.pool-import-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pool-import-preview span {
  padding: 4px 7px;
  border-radius: 7px;
  color: #1f6ea6;
  background: rgba(31, 110, 166, 0.09);
  font-size: 12px;
  font-weight: 900;
}

.pool-import-summary {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(20, 128, 92, 0.16);
  border-radius: 8px;
  background: rgba(20, 128, 92, 0.06);
}

.pool-import-summary strong,
.pool-import-summary small {
  display: block;
}

.pool-import-summary strong {
  color: var(--ink);
  font-size: 12px;
}

.pool-import-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pool-import-bucket {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(31, 110, 166, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.pool-import-bucket.candidate {
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(255, 251, 235, 0.78);
}

.pool-import-bucket strong,
.pool-import-bucket small {
  display: block;
}

.pool-import-bucket strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12px;
}

.pool-import-bucket small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pool-import-bucket div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pool-history-panel {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(16, 24, 40, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.theme-candidate-panel {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(180, 83, 9, 0.20);
  border-radius: 8px;
  background: rgba(255, 251, 235, 0.66);
}

.theme-candidate-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.theme-candidate-head strong {
  color: var(--ink);
  font-size: 13px;
}

.theme-candidate-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.theme-candidate-list {
  display: grid;
  gap: 8px;
}

.theme-candidate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.theme-candidate-main strong,
.theme-candidate-main small,
.theme-candidate-main p {
  display: block;
}

.theme-candidate-main strong {
  color: var(--ink);
  font-size: 13px;
}

.theme-candidate-main small,
.theme-candidate-main p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.theme-candidate-main p {
  margin: 5px 0 0;
}

.theme-candidate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 7px;
}

.theme-candidate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pool-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pool-history-head strong {
  color: var(--ink);
  font-size: 13px;
}

.pool-history-list {
  display: grid;
  gap: 6px;
}

.pool-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.82);
}

.pool-history-item strong,
.pool-history-item small,
.pool-history-item p {
  display: block;
}

.pool-history-item strong {
  color: var(--ink);
  font-size: 12px;
}

.pool-history-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pool-history-item p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.pool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(20, 128, 92, 0.20);
  border-radius: 8px;
  background: rgba(20, 128, 92, 0.07);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.pool-chip button {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  color: var(--green);
  background: rgba(20, 128, 92, 0.10);
  font-size: 12px;
  line-height: 1;
}

.pool-chip em,
.new-symbol-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 999px;
  color: #0b6f52;
  background: rgba(20, 128, 92, 0.12);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

.new-symbol-badge {
  margin-left: 6px;
  vertical-align: 1px;
}

.title-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.help-dot {
  width: 20px;
  height: 20px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--panel-soft);
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

.help-dot:hover,
.help-dot:focus-visible {
  color: white;
  background: var(--ink);
  outline: none;
}

.help-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 10;
  width: 280px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.help-popover strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
}

.help-popover p + p { margin-top: 4px; }

.title-help:hover .help-popover,
.title-help:focus-within .help-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#activeGroupThesis {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.active-group-coverage {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 12px;
}

.rotation-insight {
  display: grid;
  gap: 8px;
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.rotation-insight strong {
  font-size: 13px;
}

.rotation-insight span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.rotation-copy {
  display: grid;
  gap: 3px;
}

.rotation-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rotation-chip {
  width: auto;
  height: auto;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-color: rgba(20, 128, 92, 0.22);
  color: var(--green);
  background: rgba(20, 128, 92, 0.08);
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

.rotation-chip span {
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(183, 121, 31, 0.12);
  font-size: 11px;
}

.rotation-chip:hover,
.rotation-chip:focus-visible {
  border-color: var(--green);
  background: rgba(20, 128, 92, 0.14);
  outline: none;
}

.rotation-empty {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(98, 113, 122, 0.08);
}

.rotation-insight.risk {
  border-color: rgba(194, 65, 50, 0.25);
  background: #fff7f5;
}

.rotation-insight.rotate {
  border-color: rgba(183, 121, 31, 0.28);
  background: #fffaf0;
}

.rotation-insight.strong {
  border-color: rgba(20, 133, 91, 0.24);
  background: #f2fbf6;
}

.tabs { display: grid; gap: 8px; }
.load-status {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.trend-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.trend-option {
  width: 100%;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

.trend-option.active {
  color: white;
  background: var(--ink);
}

.tab {
  width: 100%;
  height: auto;
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-align: left;
  box-shadow: none;
  transition: none;
}

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

.score { font-variant-numeric: tabular-nums; font-weight: 800; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.neutral { color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.badge.hot { background: #e7f7ef; color: var(--green); }
.badge.cool { background: #fff0ed; color: var(--red); }
.badge.warm { background: #fff7df; color: var(--amber); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.leaderboard { padding: 14px; }
.bar-row {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: minmax(90px, 170px) 1fr 58px;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: left;
  margin-top: 12px;
  font-size: 13px;
}

.bar-row:hover,
.bar-row.selected {
  background: rgba(20, 128, 92, 0.08);
}

.bar {
  height: 10px;
  border-radius: 8px;
  background: #edf1ef;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--c);
}

.leader-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.leader-item:last-child { border-bottom: 0; }
.leader-item b { font-size: 14px; }

.panel-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.panel-loading strong {
  color: var(--ink);
  font-size: 14px;
}

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

.subtheme-card {
  padding: 14px;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  outline: none;
}

.subtheme-card:hover,
.subtheme-card:focus-visible {
  border-color: rgba(20, 128, 92, 0.42);
  background: #fbfefd;
}

.subtheme-card.selected {
  border-color: var(--green);
  background: #f0fbf6;
  box-shadow: 0 0 0 2px rgba(20, 128, 92, 0.12), var(--shadow);
}

.subtheme-card-loading {
  cursor: default;
  border-style: dashed;
  background: #fcfefd;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--teal);
  background: #e9f6f5;
  font-size: 11px;
  font-weight: 700;
}

.period-scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.period-scores span {
  min-width: 0;
  padding: 5px 6px;
  border-radius: 6px;
  background: var(--panel-soft);
  white-space: nowrap;
}

.theme-read {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.theme-read.driver-broad { color: var(--green); }
.theme-read.driver-structured { color: var(--teal); }
.theme-read.driver-leader_broad,
.theme-read.driver-leader,
.theme-read.driver-single { color: var(--amber); }
.theme-read.driver-weak { color: var(--red); }

.risk-read {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.risk-high { color: var(--red); }
.risk-medium { color: var(--amber); }
.risk-mild { color: var(--teal); }
.risk-normal { color: var(--muted); }

.symbols {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.table-wrap { padding: 14px; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 12px; font-weight: 800; }
td { font-size: 13px; }
tbody tr:hover { background: var(--panel-soft); }

.loading-row td {
  color: var(--muted);
  text-align: center;
  padding: 28px 10px;
  font-size: 13px;
}

.sort-btn {
  width: auto;
  height: auto;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sort-btn span {
  width: 1em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.notice {
  display: none;
  min-height: 0;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(247, 250, 247, 0.88), rgba(247, 250, 247, 0.94)),
    repeating-linear-gradient(90deg, rgba(21, 94, 117, 0.08) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(21, 94, 117, 0.08) 0 1px, transparent 1px 40px);
}

.auth-screen[hidden] { display: none; }

.auth-locked {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.auth-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-card label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-card input,
.auth-card textarea,
.admin-table input,
.admin-table select,
.admin-table textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.auth-card textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}

.auth-error {
  min-height: 20px;
  margin: 12px 0;
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
}

.auth-primary,
.auth-secondary {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border-radius: 7px;
  font-weight: 900;
}

.auth-primary {
  border: 0;
  color: #fff;
  background: var(--ink);
}

.auth-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.auth-link-button {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.admin-page {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.admin-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
}

.admin-stat.good strong { color: var(--teal); }
.admin-stat.warn strong { color: #b7791f; }
.admin-stat.bad strong { color: var(--red); }

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.admin-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-toolbar input,
.admin-toolbar select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.admin-table-wrap {
  overflow: auto;
  padding-bottom: 10px;
}

.admin-work-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 14px 0 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  width: max-content;
  max-width: 100%;
}

.admin-work-tab {
  min-height: 30px;
  min-width: 92px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  word-break: keep-all;
}

.admin-work-tab.active {
  color: #fff;
  background: var(--ink);
}

.admin-work-tab[data-admin-work-tab="resolved"] {
  min-width: 132px;
}

.admin-table {
  min-width: 1900px;
  table-layout: fixed;
}

.admin-table th,
.admin-table td {
  vertical-align: top;
  word-break: keep-all;
  overflow-wrap: normal;
}

.admin-table th {
  white-space: nowrap;
}

.admin-table th:first-child,
.admin-table td:first-child {
  width: 310px;
  max-width: 310px;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
  width: 150px;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
  width: 180px;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
  width: 280px;
}

.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
  width: 220px;
}

.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
  width: 250px;
}

.admin-table th:nth-child(7),
.admin-table td:nth-child(7),
.admin-table th:nth-child(8),
.admin-table td:nth-child(8) {
  width: 150px;
}

.admin-table th:nth-child(9),
.admin-table td:nth-child(9) {
  width: 320px;
}

.admin-table td:nth-child(2) select {
  min-width: 118px;
  max-width: 128px;
  white-space: nowrap;
}

.admin-table td:nth-child(3) input[type="date"] {
  min-width: 140px;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-pill {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--teal);
  background: #e9f6f5;
  font-size: 11px;
  font-weight: 900;
}

.admin-pill.muted {
  color: var(--muted);
  background: var(--panel-soft);
}

.admin-permissions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 12px;
  min-width: 178px;
  align-content: start;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-check input {
  width: 14px;
  min-height: 14px;
  padding: 0;
}

.admin-date-actions {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.admin-quick-date {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--ink);
  background: #f8faf9;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.admin-save-state {
  min-height: 14px;
}

.admin-reset-request,
.admin-password-changed {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
}

.admin-reset-request {
  color: #9a5f0b !important;
  background: #fff3d4;
}

.admin-password-changed {
  color: var(--teal) !important;
  background: #e9f6f5;
}

.admin-password-reset {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 6px;
  margin-top: 8px;
  max-width: 300px;
  min-width: 290px;
}

.admin-password-reset input {
  min-height: 32px;
  font-size: 12px;
}

.admin-feedback {
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  max-width: 280px;
}

.admin-feedback summary {
  cursor: pointer;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.admin-feedback-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  max-width: 100%;
}

.admin-feedback-item {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-feedback-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.admin-feedback-list strong {
  display: block;
  font-size: 11px;
}

.admin-feedback-list p {
  margin: 5px 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.admin-feedback-page {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.admin-feedback-list a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.admin-feedback-empty {
  color: var(--muted);
}

.admin-note-cell {
  min-width: 220px;
}

.admin-user-note {
  min-height: 74px;
  margin-top: 8px;
  resize: vertical;
  line-height: 1.45;
}

.admin-countdown {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 0 !important;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 900 !important;
}

.admin-countdown.good {
  color: var(--teal) !important;
  background: #e9f6f5;
}

.admin-countdown.warn {
  color: #9a5f0b !important;
  background: #fff3d4;
}

.admin-countdown.bad {
  color: #b42318 !important;
  background: #fff4f2;
}

.admin-countdown.muted {
  color: var(--muted) !important;
  background: #f3f6f5;
}

.admin-status-note {
  max-width: 180px;
  color: #9a5f0b;
}

.admin-risk-cell {
  min-width: 170px;
}

.admin-risk {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-risk.normal {
  color: var(--teal);
  background: #e9f6f5;
}

.admin-risk.medium {
  color: #9a5f0b;
  background: #fff3d4;
}

.admin-risk.high {
  color: #b42318;
  background: #fff4f2;
}

.admin-restriction {
  color: #b42318;
}

.admin-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.data-warning {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(183, 121, 31, 0.35);
  border-radius: 8px;
  color: #7a4b0b;
  background: #fff7df;
  font-size: 13px;
  line-height: 1.6;
}

.demo-row td:nth-child(3),
.demo-row td:nth-child(4),
.demo-row td:nth-child(5) {
  color: var(--muted);
  font-weight: 700;
}

.taco-page {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.calendar-page {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.calendar-filter-group {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.calendar-filter {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.calendar-filter.active {
  background: var(--ink);
  color: #fff;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.calendar-grid {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.calendar-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.calendar-grid-head strong {
  font-size: 16px;
}

.calendar-time-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.calendar-week-row,
.calendar-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-week-row span {
  padding: 9px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.calendar-day {
  min-height: 112px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-outside {
  background: #f8faf9;
  color: #9aa7ae;
}

.calendar-day-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
}

.calendar-day-number i {
  font-style: normal;
  color: var(--muted);
  font-weight: 700;
}

.calendar-pill {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 5px 6px;
  border: 1px solid rgba(20, 127, 134, 0.16);
  border-radius: 6px;
  background: #eef8f5;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.calendar-pill.critical {
  border-color: rgba(194, 65, 50, 0.35);
  background: #fff0ec;
}

.calendar-pill.high {
  border-color: rgba(183, 121, 31, 0.35);
  background: #fff8e8;
}

.calendar-pill small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

.calendar-more {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.calendar-stat,
.calendar-event {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-stat {
  padding: 14px;
}

.calendar-stat span,
.calendar-stat p,
.calendar-note,
.calendar-date span,
.calendar-body small,
.calendar-source {
  color: var(--muted);
}

.calendar-stat strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 22px;
}

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

.calendar-event {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) 80px;
  gap: 14px;
  padding: 14px;
}

.calendar-event.critical {
  border-color: rgba(194, 65, 50, 0.35);
  background: linear-gradient(90deg, rgba(255, 245, 242, 0.9), #fff);
}

.calendar-event.high {
  border-color: rgba(183, 121, 31, 0.35);
}

.calendar-date strong {
  display: block;
  margin-bottom: 6px;
}

.calendar-date em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.calendar-body h3 {
  margin: 0 0 6px;
}

.calendar-body p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.calendar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.calendar-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9f5f2;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.calendar-source {
  text-align: right;
  font-size: 12px;
  font-weight: 900;
}

.calendar-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--muted);
  text-align: center;
}

.calendar-note {
  margin: 12px 0 0;
  font-size: 12px;
}

.taco-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 246, 230, 0.72), rgba(232, 247, 242, 0.72));
}

.taco-hero span,
.taco-chart-head p,
.taco-source-note,
.taco-event-box span {
  color: var(--muted);
}

.taco-hero strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
}

.taco-status-badge {
  min-width: 104px;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

.taco-status-badge.danger { color: #b42318; background: #fff0ec; }
.taco-status-badge.warn { color: #9a5f0b; background: #fff3d4; }
.taco-status-badge.cool { color: #0b6f52; background: #e5f5f0; }
.taco-status-badge.good { color: #126a94; background: #e9f3fb; }
.taco-status-badge.neutral { color: var(--muted); background: #f3f6f5; }

.taco-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 14px;
}

.taco-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.taco-chart-head h3,
.taco-factor-panel h3 {
  margin: 0 0 6px;
}

.taco-chart-head a {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.taco-chart {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.taco-chart svg {
  display: block;
  width: 100%;
  min-height: 330px;
}

.taco-zone.danger { fill: rgba(201, 71, 61, 0.10); }
.taco-zone.warn { fill: rgba(217, 164, 65, 0.12); }
.taco-zone.good { fill: rgba(21, 144, 107, 0.09); }
.taco-grid-line { stroke: rgba(91, 112, 126, 0.16); stroke-dasharray: 3 5; }
.taco-axis { fill: var(--muted); font-size: 11px; }
.taco-area { fill: rgba(31, 110, 166, 0.10); }
.taco-line { fill: none; stroke: #1f6ea6; stroke-width: 2.4; }
.taco-crosshair { stroke: rgba(17, 25, 31, 0.35); stroke-width: 1; }
.taco-active-dot { fill: #1f6ea6; stroke: white; stroke-width: 2; }
.taco-event-dot { fill: #c9473d; stroke: white; stroke-width: 1.5; }
.taco-hit { fill: transparent; cursor: crosshair; }

.taco-event-box {
  min-height: 74px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.taco-event-box strong {
  display: block;
  margin-bottom: 6px;
}

.taco-event-box p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.taco-factor-bars {
  display: grid;
  gap: 12px;
}

.taco-factor-row {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 10px;
}

.taco-factor-row span {
  font-weight: 800;
}

.taco-factor-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f1;
}

.taco-factor-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.taco-factor-track i.pressure,
.taco-factor-row b.pressure {
  color: #b42318;
}

.taco-factor-track i.pressure {
  background: #c9473d;
}

.taco-factor-track i.relief,
.taco-factor-row b.relief {
  color: var(--teal);
}

.taco-factor-track i.relief {
  background: var(--teal);
}

.taco-source-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.influencer-page {
  display: grid;
  gap: 16px;
}

.influencer-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.compact-title {
  margin-bottom: 10px;
}

.influencer-admin {
  display: grid;
  gap: 12px;
}

.influencer-source-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 110px minmax(240px, 2fr) minmax(160px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
}

.influencer-source-form input,
.influencer-source-form select,
.influencer-toolbar input,
.influencer-toolbar select {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
}

.influencer-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.influencer-toolbar {
  grid-template-columns: 180px minmax(220px, 1fr) auto;
}

.influencer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}

.influencer-grid.user-only {
  grid-template-columns: 1fr;
}

.influencer-list,
.influencer-items {
  display: grid;
  gap: 10px;
}

.influencer-source-row,
.influencer-summary-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.influencer-source-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.influencer-source-row strong,
.influencer-row-head strong {
  display: block;
  font-size: 14px;
}

.influencer-source-row span,
.influencer-source-row small,
.influencer-row-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.influencer-source-row em {
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.influencer-source-row em.risk {
  color: #b42318;
}

.influencer-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.influencer-summary-row p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}

.influencer-feed-card {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(360px, 0.86fr);
  gap: 28px;
  border: 1px solid rgba(190, 255, 0, 0.58);
  border-radius: 0;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(190, 255, 0, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(17, 15, 8, 0.98), rgba(11, 10, 7, 0.98));
  box-shadow: 0 18px 48px rgba(8, 10, 12, 0.24);
}

.influencer-feed-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.influencer-feed-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.influencer-feed-meta b {
  border: 1px solid rgba(0, 220, 130, 0.7);
  border-radius: 999px;
  padding: 4px 11px;
  color: #35f3a0;
  font-size: 12px;
  font-family: inherit;
}

.influencer-feed-meta em {
  font-style: normal;
}

.influencer-symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.influencer-symbols span {
  border-radius: 999px;
  border: 1px solid rgba(190, 255, 0, 0.5);
  padding: 7px 14px;
  background: rgba(190, 255, 0, 0.13);
  color: #cfff19;
  font-size: 14px;
  font-weight: 800;
}

.influencer-feed-main h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.influencer-feed-main p,
.influencer-x-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.82;
}

.influencer-feed-main p {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
}

.influencer-feed-actions,
.x-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.influencer-feed-actions a,
.x-card-foot a {
  display: inline-flex;
  border: 1px solid rgba(190, 255, 0, 0.45);
  border-radius: 999px;
  padding: 7px 14px;
  color: #cfff19;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.influencer-translate-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.18);
}

.influencer-translate-toggle button {
  min-width: 34px;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  cursor: pointer;
}

.influencer-translate-toggle button.active {
  background: rgba(190, 255, 0, 0.16);
  color: #cfff19;
}

.influencer-x-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: #152231;
  color: #e5edf5;
}

.x-card-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -14px -14px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding: 11px 14px;
  color: #9fb1c5;
  font-size: 13px;
}

.x-card-label span {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.x-card-label b {
  font-weight: 700;
}

.x-card-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.x-card-top img,
.x-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.x-avatar {
  display: grid;
  place-items: center;
  background: rgba(20, 184, 166, 0.18);
  color: #7dd3fc;
  font-weight: 900;
}

.x-card-top strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.x-card-top span {
  display: block;
  color: #9fb1c5;
  font-size: 12px;
}

.x-card-top b {
  color: #e5edf5;
  font-size: 20px;
}

.influencer-x-card p {
  color: #eef6ff;
  font-size: 15px;
  line-height: 1.62;
}

.x-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.x-media-grid img {
  width: 100%;
  max-height: 420px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  object-fit: contain;
  background: #0b1220;
}

.x-card-foot {
  border-color: rgba(148, 163, 184, 0.28);
  color: #9fb1c5;
}

@media (max-width: 1100px) {
  .topbar { align-items: stretch; flex-direction: column; }
  .topbar > div:first-child { min-width: 0; flex-basis: auto; }
  .actions { justify-content: flex-start; flex-basis: auto; }
  h1 { white-space: normal; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subtheme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapping-grid { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fedwatch-panel { grid-column: auto; }
  .poly-meeting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .taco-grid { grid-template-columns: 1fr; }
  .calendar-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .influencer-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .influencer-grid, .influencer-source-form, .influencer-feed-card { grid-template-columns: 1fr; }
  .influencer-source-row, .influencer-row-head { flex-direction: column; }
  .influencer-source-row em { max-width: none; text-align: left; }
  .calendar-event { grid-template-columns: 1fr; }
  .calendar-source { text-align: left; }
  .calendar-day { min-height: 96px; }
}

@media (max-width: 720px) {
  .shell { width: min(100vw - 20px, 1500px); padding-top: 12px; }
  .topbar, .actions { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .feedback-window {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: min(78vh, 680px);
    padding: 14px;
  }
  .feedback-upload {
    align-items: stretch;
    flex-direction: column;
  }
  .feedback-upload input {
    max-width: 100%;
  }
  .status-strip, .hero-grid, .subtheme-grid, .tabs, .mapping-grid, .risk-grid { grid-template-columns: 1fr; }
  .poly-head { flex-direction: column; }
  .poly-meeting-grid { grid-template-columns: 1fr; }
  .risk-hero { align-items: stretch; flex-direction: column; }
  .taco-hero, .taco-chart-head { align-items: stretch; flex-direction: column; }
  .taco-factor-row { grid-template-columns: 86px minmax(0, 1fr) 52px; }
  .calendar-summary { grid-template-columns: 1fr; }
  .influencer-summary, .influencer-toolbar { grid-template-columns: 1fr; }
  .calendar-filter-group { width: 100%; }
  .calendar-filter { flex: 1; padding: 0 8px; }
  .calendar-grid-head { align-items: flex-start; flex-direction: column; }
  .calendar-time-note { text-align: left; }
  .calendar-week-row span { padding: 7px 2px; font-size: 11px; }
  .calendar-day {
    min-height: 72px;
    padding: 5px;
  }
  .calendar-day-number { font-size: 11px; }
  .calendar-pill {
    padding: 4px;
    font-size: 10px;
  }
  .calendar-pill small { display: none; }
  h1 { font-size: 36px; }
}
