:root {
  color-scheme: light;
  --ink: #1d232b;
  --muted: #657180;
  --line: #dde4ea;
  --panel: #ffffff;
  --page: #f4f7fb;
  --accent: #c33f33;
  --accent-2: #2f7df6;
  --green: #34bf72;
  --gold: #bc8428;
  --purple: #8b5cf6;
  --cyan: #22b8cf;
  --pink: #ff5b7f;
  --shadow: 0 18px 45px rgba(35, 44, 52, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

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

.sidebar {
  min-height: 100vh;
  padding: 22px 12px;
  background: linear-gradient(180deg, #0d1a2b 0%, #12263d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 4px 8px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #d7aa57, #8d5f22);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: #aeb8c2;
}

nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  color: #dbe3eb;
  background: transparent;
  cursor: pointer;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(47, 125, 246, 0.18);
  color: #5da0ff;
}

.source-box {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 6px;
}

.source-box span {
  color: #aeb8c2;
  font-size: 13px;
}

.shell {
  min-width: 0;
  padding: 0 24px 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid #e8eef5;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
}

.topbar p,
.score-board p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

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

.search {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
}

.search input {
  width: 240px;
}

.icon-button,
.notify-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #243142;
  cursor: pointer;
}

.notify-button {
  position: relative;
}

.notify-button::before {
  content: "铃";
}

.notify-button span {
  position: absolute;
  right: -5px;
  top: -7px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #243142;
  font-size: 14px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2f7df6, #8b5cf6);
  font-weight: 800;
}

.primary {
  height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: var(--accent-2);
  cursor: pointer;
}

.secondary-button,
.ghost-button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #243142;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.ghost-button {
  width: fit-content;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

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

.metric,
.detail-panel,
.timeline,
.table-wrap,
.score-board,
.audit-card,
.control-card,
.model-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
  min-height: 104px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.metric:hover,
.metric:focus-visible {
  border-color: var(--accent-2);
  box-shadow: 0 14px 30px rgba(47, 127, 255, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--accent-2);
}

.metric:nth-child(2) .metric-icon { background: var(--green); }
.metric:nth-child(3) .metric-icon { background: var(--purple); }
.metric:nth-child(4) .metric-icon { background: #f5a524; }
.metric:nth-child(5) .metric-icon { background: var(--cyan); }
.metric:nth-child(6) .metric-icon { background: var(--pink); }

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
  line-height: 1.15;
}

.metric em {
  display: block;
  margin-top: 6px;
  color: var(--accent-2);
  font-style: normal;
  font-size: 13px;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}

.today-panel {
  grid-column: span 6;
}

.trend-panel {
  grid-column: span 6;
}

.dashboard-grid > .panel:nth-of-type(3),
.dashboard-grid > .panel:nth-of-type(4),
.dashboard-grid > .panel:nth-of-type(5) {
  grid-column: span 4;
}

.latest-panel {
  grid-column: span 8;
}

.notice-panel {
  grid-column: span 4;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
}

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

.section-title a {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 13px;
}

.detail-panel {
  padding: 22px;
  min-height: 360px;
}

.competition-hero {
  min-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #17212b;
  color: #fff;
  display: grid;
  align-items: end;
  padding: 24px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.competition-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.68));
}

.competition-hero > div {
  position: relative;
}

.competition-hero h2 {
  font-size: 25px;
  line-height: 1.28;
  max-width: 760px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 7px 10px;
  font-size: 13px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mini-stat {
  padding: 12px;
  border-radius: 8px;
  background: #f4f7f8;
}

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

.mini-stat strong {
  display: block;
  margin-top: 6px;
}

.timeline {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.flow-item {
  border-left: 3px solid var(--accent-2);
  padding-left: 12px;
}

.flow-item strong {
  display: block;
}

.flow-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.table-wrap {
  overflow: auto;
}

.compact-table {
  border: 1px solid var(--line);
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.compact-table table {
  min-width: 0;
}

.player-table-wrap table {
  table-layout: fixed;
  min-width: 1080px;
}

.player-table-wrap th:nth-child(1),
.player-table-wrap td:nth-child(1) {
  width: 120px;
}

.player-table-wrap th:nth-child(2),
.player-table-wrap td:nth-child(2) {
  width: 180px;
}

.player-table-wrap th:nth-child(3),
.player-table-wrap td:nth-child(3) {
  width: 250px;
}

.player-table-wrap th:nth-child(4),
.player-table-wrap td:nth-child(4),
.player-table-wrap th:nth-child(5),
.player-table-wrap td:nth-child(5) {
  width: 190px;
}

.player-table-wrap th:nth-child(6),
.player-table-wrap td:nth-child(6) {
  width: 86px;
  text-align: center;
  white-space: nowrap;
}

.player-table-wrap th:nth-child(7),
.player-table-wrap td:nth-child(7) {
  width: 72px;
  text-align: right;
  white-space: nowrap;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compact-table th,
.compact-table td {
  padding: 10px 12px;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 13px;
  background: #f9fbfb;
}

td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef3f5;
  color: var(--accent-2);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.badge.good {
  background: #edf7ef;
  color: var(--green);
}

.badge.warn {
  background: #fff5e4;
  color: var(--gold);
}

.competition-workspace {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.event-command,
.workspace-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.event-command {
  min-height: 210px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 26, 43, 0.95), rgba(42, 64, 91, 0.9)),
    linear-gradient(135deg, #0d1a2b, #25415f);
}

.event-command-main {
  display: grid;
  gap: 10px;
}

.event-command-main h2 {
  font-size: 26px;
  line-height: 1.25;
  max-width: 820px;
}

.event-command-main p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.event-command-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-stats {
  margin-top: 0;
}

.competition-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.competition-tabs button {
  min-width: 88px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.competition-tabs button.active,
.competition-tabs button:hover {
  color: #fff;
  background: var(--accent-2);
}

.workspace-panel {
  padding: 16px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.workspace-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.workspace-card.wide {
  grid-column: 1 / -1;
}

.workspace-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin: 0;
}

.event-intro {
  color: #405066;
  line-height: 1.8;
}

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

.score-tools article {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.score-tools span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.score-tools strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-2);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 26, 43, 0.46);
}

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

.modal-panel {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 26, 43, 0.22);
}

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

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

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

.modal-close {
  flex: 0 0 auto;
}

.import-textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfe;
  line-height: 1.7;
}

.import-textarea:focus {
  outline: 2px solid rgba(47, 125, 246, 0.18);
  border-color: var(--accent-2);
}

.section-title.compact {
  margin-bottom: 8px;
}

.section-title.compact h3 {
  margin: 0;
  font-size: 15px;
}

.section-title.compact span {
  color: var(--muted);
  font-size: 13px;
}

.import-preview-table {
  max-height: 230px;
  overflow: auto;
  box-shadow: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.competition-row {
  cursor: pointer;
}

.competition-row:hover,
.competition-row:focus-visible,
.competition-row.selected {
  background: #eef5ff;
  outline: none;
}

.competition-row.selected td:first-child {
  box-shadow: inset 3px 0 0 var(--accent-2);
}

.line-chart {
  min-height: 220px;
  position: relative;
  display: grid;
  align-items: end;
  padding: 18px 12px 10px 12px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(to top, transparent 0, transparent 43px, #edf2f7 44px),
    linear-gradient(180deg, rgba(47, 125, 246, 0.04), rgba(47, 125, 246, 0));
}

.line-chart svg {
  width: 100%;
  height: 210px;
  overflow: visible;
}

.line-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.donut-block {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 190px;
}

.donut {
  width: 156px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: conic-gradient(var(--accent-2) 0 55%, var(--green) 55% 76%, var(--purple) 76% 93%, #f5a524 93% 100%);
}

.donut::before {
  content: attr(data-center);
  width: 86px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
  white-space: pre-line;
  box-shadow: inset 0 0 0 1px var(--line);
}

.legend {
  display: grid;
  gap: 10px;
  color: #2a3545;
  font-size: 13px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.legend-item span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.todo-list,
.notice-list {
  display: grid;
  gap: 8px;
}

.todo-item,
.notice-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.todo-item strong,
.notice-item strong {
  font-size: 13px;
}

.todo-item span:last-child {
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff0f3;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
}

.notice-type {
  display: inline-flex;
  min-width: 38px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-right: 8px;
  background: #eef5ff;
  color: var(--accent-2);
}

.score-board {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

#score-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.audit-grid,
.control-grid,
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audit-card,
.control-card,
.model-card {
  padding: 18px;
}

.audit-card strong,
.control-card strong,
.model-card strong {
  display: block;
  font-size: 26px;
  margin-top: 10px;
}

.audit-card span,
.control-card span,
.model-card span {
  color: var(--muted);
}

.control-grid {
  margin-bottom: 18px;
}

.model-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.model-card li + li {
  margin-top: 6px;
}

.danger-text {
  color: var(--accent);
}

.roadmap-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.roadmap-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.roadmap-panel.full {
  grid-column: 1 / -1;
}

.layer-list,
.lifeline-grid,
.phase-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.layer-card,
.lifeline-card,
.phase-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.layer-card h3,
.lifeline-card h3,
.phase-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.layer-card p,
.lifeline-card p,
.phase-card p {
  margin: 0;
  color: var(--muted);
}

.layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.layer-tags span,
.phase-card span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--accent-2);
  font-size: 12px;
}

.lifeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .topbar,
  .actions,
  .score-board {
    flex-direction: column;
    align-items: stretch;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .split,
  .workspace-grid,
  .score-tools,
  .audit-grid,
  .control-grid,
  .model-grid,
  .roadmap-layout,
  .phase-grid,
  .lifeline-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-panel.full {
    grid-column: auto;
  }

  .workspace-card.wide {
    grid-column: auto;
  }

  .event-command {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .event-command-actions {
    justify-content: flex-start;
  }

  .today-panel,
  .trend-panel,
  .dashboard-grid > .panel:nth-of-type(3),
  .dashboard-grid > .panel:nth-of-type(4),
  .dashboard-grid > .panel:nth-of-type(5),
  .latest-panel,
  .notice-panel {
    grid-column: auto;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    display: block;
    background: #f7f8f4;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: auto;
    padding: 10px 12px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small,
  .source-box {
    display: none;
  }

  nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 9px 11px;
    text-align: center;
    white-space: nowrap;
  }

  .shell {
    padding: 14px;
  }

  .topbar {
    gap: 14px;
    margin-bottom: 14px;
    position: static;
    min-height: auto;
    padding: 12px 0;
  }

  .topbar-left {
    align-items: flex-start;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 17px;
  }

  .topbar p,
  .score-board p {
    font-size: 14px;
  }

  .actions,
  .search,
  input,
  select,
  .primary,
  .secondary-button {
    width: 100%;
  }

  .event-command {
    min-height: auto;
    padding: 16px;
  }

  .event-command-main h2 {
    font-size: 21px;
  }

  .competition-tabs,
  .ghost-button {
    width: 100%;
  }

  .competition-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .competition-tabs button {
    min-width: 0;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-user,
  .actions .icon-button,
  .notify-button {
    display: none;
  }

  .search input {
    width: 100%;
  }

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

  .metric {
    min-height: 94px;
    padding: 14px;
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }

  .metric-icon {
    width: 42px;
    height: 42px;
  }

  .metric strong {
    font-size: 23px;
  }

  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-panel,
  .timeline,
  .score-board,
  .audit-card,
  .control-card,
  .model-card {
    box-shadow: none;
  }

  .detail-panel,
  .score-board {
    padding: 14px;
  }

  .competition-hero {
    min-height: 240px;
    padding: 18px;
  }

  .competition-hero h2 {
    font-size: 21px;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donut-block {
    grid-template-columns: 1fr;
  }

  .donut {
    width: 138px;
  }

  .line-chart {
    min-height: 190px;
  }

  .table-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 39, 48, 0.06);
    overflow: hidden;
  }

  td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    word-break: break-word;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }

  .badge {
    width: fit-content;
  }
}
