:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    system-ui, sans-serif;
  color: #203249;
  background: #f3f6fb;
  font-size: 14px;
  line-height: 1.5;
  --blue: #236ac4;
  --blue-dark: #1956a3;
  --border: #e2e8f0;
  --muted: #6c7c91;
  --green: #15816b;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid #d6dfeb;
  border-radius: 8px;
  background: #fff;
  color: #3f536e;
  min-height: 40px;
  padding: 9px 15px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button:hover,
.button:hover {
  border-color: #9ebbe1;
  background: #f3f7fd;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.primary,
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 3px #236ac416;
}
button.primary:hover,
.button.primary:hover {
  background: var(--blue-dark);
}
button.danger {
  color: #b13c4b;
  border-color: #ebc9cd;
}
button.text-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
button.text-button:hover {
  color: var(--blue);
  background: #edf4ff;
}
.small {
  padding: 5px 10px;
  min-height: 32px;
  font-size: 12px;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon-button {
  width: 40px;
  height: 40px;
  padding: 8px;
  flex-shrink: 0;
}
.full-width {
  width: 100%;
}
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfdae7;
  border-radius: 8px;
  background: #fff;
  color: #203249;
}
input::placeholder,
textarea::placeholder {
  color: #8c98a9;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid #236ac419;
  outline-offset: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid #8ebdf4;
  outline-offset: 3px;
}
input:disabled,
select:disabled {
  background: #f1f4f8;
  color: #708096;
}
input[type="checkbox"] {
  min-height: 0;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  accent-color: var(--blue);
}
input[type="file"] {
  font-size: 13px;
}
input::file-selector-button {
  border: 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: #e9f1fc;
  color: var(--blue);
  margin-right: 12px;
  cursor: pointer;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #4e6077;
  font-weight: 500;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 7px;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  line-height: 1.75;
  margin: 8px 0 16px;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #7189a6;
}
.app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 28px 16px 18px;
  position: fixed;
  width: 224px;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.brand b {
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #1d314c;
}
.brand small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.sidebar .brand {
  padding: 0 5px 26px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav-section {
  font-size: 10px;
  color: #8b98ab;
  letter-spacing: 0.08em;
  padding: 17px 14px 5px;
}
.nav-section:first-child {
  padding-top: 0;
}
.nav button {
  justify-content: flex-start;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  font-weight: 500;
  color: #586b84;
  position: relative;
  gap: 13px;
}
.nav button:hover {
  background: #f4f7fc;
  color: #254d7e;
}
.nav button.active {
  color: var(--blue);
  background: #ebf2fc;
  font-weight: 650;
}
.nav button.active:before {
  content: "";
  position: absolute;
  left: 0;
  height: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
}
.nav-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20a18b;
  margin-left: auto;
}
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 28px 10px 0;
  color: #6d7f96;
  font-size: 11px;
}
.sidebar-foot small {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}
.local-indicator {
  width: 7px;
  height: 7px;
  background: #35a18b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e9f5f1;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffffed;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 13px 32px;
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 80px;
}
.event-context {
  min-width: 0;
  flex: 1;
}
.context-label {
  display: block;
  font-size: 10px;
  color: #8190a4;
  margin-bottom: 2px;
  padding-left: 1px;
}
.event-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar select {
  width: auto;
  max-width: min(380px, 35vw);
  min-width: 0;
  font-weight: 600;
  padding: 3px 24px 3px 0;
  border-color: transparent;
  min-height: 30px;
  background-color: transparent;
  font-size: 14px;
  text-overflow: ellipsis;
}
.event-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.event-code {
  font:
    11px ui-monospace,
    monospace;
  color: #70839a;
  border: 0;
  background: #f1f5fa;
  min-height: 26px;
  padding: 4px 7px;
}
.event-code .icon {
  width: 12px;
  height: 12px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.screen-link {
  border: 0;
  background: transparent;
  color: #69809c;
}
.topbar-divider {
  height: 28px;
  width: 1px;
  background: var(--border);
}
.user {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #eaf0f8;
  color: #426086;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}
.user-label small {
  display: block;
  font-size: 10px;
  margin-top: 1px;
}
.user .text-button {
  font-size: 12px;
  padding: 6px;
  min-height: 32px;
}
.content {
  padding: 30px 32px 12px;
  max-width: 1600px;
  margin: auto;
  min-height: calc(100vh - 132px);
}
.workspace-footer {
  display: flex;
  gap: 12px;
  padding: 18px 32px;
  color: #8291a5;
  font-size: 10px;
  max-width: 1600px;
  margin: auto;
}
.workspace-footer span:last-child {
  margin-left: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 700px;
}
.page-head > .actions {
  flex-shrink: 0;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 3px 12px #1b375103;
}
.card-head {
  padding: 19px 22px;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.card-head h2 + small {
  display: block;
  margin-top: 5px;
}
.card-body {
  padding: 22px;
}
.event-banner {
  background: linear-gradient(110deg, #eaf2fd 0%, #f5f9ff 74%, #edf4ff 100%);
  border: 1px solid #dbe7f8;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.event-banner h2 {
  margin: 8px 0 14px;
  font-size: 24px;
  color: #244568;
}
.event-banner-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #7187a1;
  font-size: 12px;
}
.banner-action {
  display: grid;
  gap: 10px;
  flex-shrink: 0;
  text-align: center;
}
.banner-action > span {
  font-size: 11px;
  color: #7690ad;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.metric {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px 22px;
  border-radius: var(--radius);
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #667b94;
  font-size: 12px;
}
.metric-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0f5fc;
  color: #5683bb;
}
.metric-icon .icon {
  width: 17px;
  height: 17px;
}
.metric strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.4;
  margin: 5px 0;
  color: #263c57;
  font-variant-numeric: tabular-nums;
}
.metric strong small {
  font-size: 11px;
}
.metric > small {
  font-size: 11px;
}
.columns {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 22px;
  align-items: start;
}
.dashboard-columns {
  grid-template-columns: 1.1fr 1fr;
}
.live-columns {
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
}
.progress-counter {
  font-variant-numeric: tabular-nums;
  color: #6280a3;
  font-size: 12px;
  background: #f2f6fb;
  padding: 5px 9px;
  border-radius: 6px;
}
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid #edf1f6;
}
.flow li:first-child {
  padding-top: 4px;
}
.flow li:last-child {
  border: 0;
}
.flow .step {
  border: 1px solid #d5e3f4;
  background: #f2f7fd;
  color: var(--blue);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.flow .done {
  background: #ecf7f2;
  color: var(--green);
  border-color: #d7eee4;
}
.flow .step .icon {
  width: 17px;
  height: 17px;
}
.flow b {
  font-size: 13px;
  font-weight: 600;
}
.flow small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.flow button {
  margin-left: auto;
}
.workflow-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7990ac;
  background: #f5f8fc;
  padding: 13px 12px;
  margin-top: 5px;
  border-radius: 8px;
  font-size: 11px;
}
.workflow-note .icon {
  width: 16px;
  height: 16px;
}
.current-card .card-body {
  padding-top: 16px;
}
.current-card .bout-summary {
  margin: 0 0 20px;
}
.current-card .participant-heading h2 {
  font-size: 23px;
}
.connect-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5c789c;
}
.connect-title h2 {
  font-size: 14px;
}
.connect-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 16px;
}
.connect-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #f5f8fc;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  margin-bottom: 12px;
}
.connect-code b {
  display: block;
  font:
    600 21px ui-monospace,
    monospace;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.table-wrap {
  overflow: auto;
  overscroll-behavior-inline: contain;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  background: #f7f9fc;
  color: #74849a;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  padding: 13px 20px;
  border-bottom: 1px solid #e8eef5;
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #edf1f6;
  line-height: 1.6;
}
td small {
  font-size: 11px;
}
td b {
  font-weight: 600;
}
td .actions {
  flex-wrap: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f8fbff;
}
.number-cell {
  font:
    12px ui-monospace,
    monospace;
  color: #4d698c;
  background: #f1f5fa;
  border-radius: 5px;
  padding: 5px 7px;
  white-space: nowrap;
}
.list-toolbar {
  flex-wrap: wrap;
}
.list-toolbar .list-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.list-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.list-tools select {
  width: auto;
  max-width: 210px;
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  font-size: 12px;
}
.search-field {
  position: relative;
}
.search-field > .icon {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 16px;
  height: 16px;
  color: #8296b0;
}
.search-field input {
  padding: 8px 10px 8px 35px;
  font-size: 12px;
  min-height: 38px;
  width: 235px;
}
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 3px 7px;
  background: #f0f4f9;
  color: #67809c;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 500;
}
.tag.green {
  background: #eaf7f1;
  color: #168067;
}
.tag.orange {
  background: #fff5e4;
  color: #a37022;
}
.tag.red {
  background: #fff0f1;
  color: #b04955;
}
.tag.blue {
  background: #eaf2ff;
  color: var(--blue);
}
.note {
  padding: 14px 18px;
  border: 1px solid #d4e4f8;
  background: #eff6ff;
  color: #4c709a;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.note.warn {
  background: #fffaef;
  border-color: #f3e4c4;
  color: #987637;
}
.note.compact {
  padding: 10px 14px;
}
.empty {
  padding: 42px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #f0f5fb;
  border-radius: 15px;
  color: #7495bc;
  margin: 0 auto 17px;
}
.empty-icon .icon {
  width: 25px;
  height: 25px;
}
.empty h2 {
  color: #49627f;
  margin-bottom: 8px;
  font-size: 16px;
}
.empty p {
  font-size: 12px;
  margin: 0 auto 17px;
  max-width: 380px;
}
.rule-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.rule-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rule-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.rule-card > .actions:last-child {
  margin-top: auto;
  padding-top: 5px;
}
.reference-rule {
  background: #fffefb;
  border-color: #ece6d9;
}
.rule-stat {
  display: flex;
  gap: 22px;
  border-top: 1px solid #edf1f5;
  padding-top: 16px;
  font-size: 13px;
}
.rule-stat b {
  display: block;
  margin-bottom: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #edf1f5;
}
.inline-row {
  display: flex;
  gap: 10px;
  align-items: end;
  margin: 10px 0;
}
.inline-row > * {
  flex: 1;
}
.inline-row > button {
  flex: 0;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
  padding: 16px;
  background: #f7f9fc;
  border-radius: 8px;
}
.dimension-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr repeat(4, 0.7fr) 1fr auto;
  gap: 8px;
  align-items: end;
  margin: 12px 0;
  padding: 16px;
  background: #f7f9fc;
  border-radius: 8px;
}
.dimension-grid input,
.dimension-grid select,
.rule-grid input,
.rule-grid select {
  padding: 8px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 10px;
  border-top: 1px solid #e5ebf1;
  padding-top: 20px;
}
.check-list {
  display: grid;
  gap: 10px;
}
.check-list label {
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fafcff;
}
.score-box {
  font-size: 46px;
  font-weight: 650;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.score-detail {
  margin: 16px 0;
}
.score-detail b {
  display: block;
  margin-bottom: 6px;
}
.bout-summary {
  margin-bottom: 24px;
}
.bout-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #8493a8;
}
.bout-meta > span:last-child {
  margin-left: auto;
}
.participant-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 7px;
}
.participant-heading h2 {
  font-size: 28px;
}
.participant-number {
  font:
    600 15px ui-monospace,
    monospace;
  padding: 5px 8px;
  border-radius: 6px;
  color: #4672a7;
  background: #edf4fd;
}
.bout-summary p {
  color: #75869d;
  font-size: 12px;
  margin: 0 0 12px;
}
.participant-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #4e698b;
  font-size: 12px;
}
.participant-context span + span {
  border-left: 1px solid #d8e2ee;
  padding-left: 8px;
}
.collection-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid #edf1f6;
}
.collection-count strong {
  font-size: 34px;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.collection-count strong small {
  font-size: 21px;
  color: #9aabc0;
}
.collection-count > span {
  font-size: 12px;
  color: #798ba3;
}
progress {
  width: 100%;
  height: 6px;
  border: 0;
  appearance: none;
  border-radius: 6px;
  overflow: hidden;
  accent-color: var(--blue);
  background: #edf2f8;
}
progress::-webkit-progress-bar {
  background: #edf2f8;
}
progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 6px;
}
.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #7087a5;
  background: #f1f5fa;
  font-weight: 650;
}
.rank-1 {
  background: #fff1d3;
  color: #a77721;
}
.rank-2 {
  background: #eaf0f9;
  color: #6b81a0;
}
.rank-3 {
  background: #f7eae1;
  color: #ac7c5b;
}
.result-value {
  color: var(--blue);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.appearance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.appearance-grid .card {
  margin-bottom: 0;
}
.appearance-grid .card-body {
  display: grid;
  gap: 16px;
}
.preview-image {
  height: 190px;
  width: 100%;
  object-fit: contain;
  background: #f3f6fa;
  border: 1px solid #e5ebf3;
  border-radius: 9px;
}
.default-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #7a91b0;
  font-size: 11px;
  background: linear-gradient(120deg, #ecf3fc, #f6f9fd);
}
.default-preview img {
  width: 48px;
  height: 48px;
}
.preview-screen_bg {
  background: #142d4c;
  color: #93b0d1;
  border-color: #142d4c;
}
.preview-logo {
  background: #fff;
}
.import-steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 0;
  color: #97a4b7;
  font-size: 12px;
}
.import-steps span {
  padding-bottom: 8px;
  flex: 1;
  border-bottom: 2px solid #edf1f5;
}
.import-steps span.active {
  color: var(--blue);
  border-color: var(--blue);
}
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  border: 1px dashed #adc6e4;
  background: #f7faff;
  border-radius: 10px;
  margin-bottom: 22px;
}
.upload-zone > .icon {
  width: 28px;
  height: 28px;
  color: #6997cd;
}
.upload-zone label {
  text-align: center;
  color: #365c8b;
}
.upload-zone input {
  max-width: 400px;
}
.rule-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.rule-facts > div {
  padding: 12px;
  background: #f5f8fc;
  border-radius: 8px;
}
.rule-facts small,
.rule-facts b {
  display: block;
}
.rule-facts b {
  margin-top: 5px;
  font-size: 13px;
}
dialog {
  border: 1px solid #dce5f0;
  border-radius: 16px;
  box-shadow: 0 24px 100px #122a4b33;
  width: min(740px, 94vw);
  max-height: 90vh;
  max-height: 90dvh;
  padding: 0;
  color: #203249;
}
dialog.wide {
  width: min(1080px, 96vw);
}
dialog::backdrop {
  background: #0d234659;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-head .icon-button {
  min-height: 32px;
  width: 32px;
  height: 32px;
  border: 0;
  color: #7a8aa0;
}
.modal-body {
  padding: 24px;
}
.modal-error {
  color: #a63e4e;
  background: #fff0f2;
  border: 1px solid #f4d9df;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  display: none;
  font-size: 13px;
}
details {
  margin: 15px 0;
  color: var(--muted);
  font-size: 12px;
}
summary {
  cursor: pointer;
  padding: 8px 0;
  color: #5b7392;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f8fc;
  padding: 15px;
  border-radius: 8px;
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #263f5f;
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  box-shadow: 0 5px 25px #102e4726;
  z-index: 30;
  display: none;
  max-width: 88vw;
  font-size: 13px;
}
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.service-address {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.service-address code {
  overflow-wrap: anywhere;
  color: var(--blue-dark);
  font-size: 12px;
}
.service-address button {
  justify-self: start;
}
.login-aside {
  background: linear-gradient(145deg, #eff5fd, #e2edf9);
  padding: 50px 6vw 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.login-aside .brand {
  z-index: 1;
}
.login-story {
  margin: auto 0;
  padding: 70px 0 120px;
  z-index: 1;
}
.login-story .eyebrow {
  color: #6082ad;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.login-story h1 {
  font-size: clamp(29px, 3.2vw, 45px);
  line-height: 1.55;
  font-weight: 600;
  color: #244568;
  margin: 22px 0;
}
.login-story p {
  color: #6d86a5;
  font-size: 14px;
  line-height: 1.95;
}
.login-features {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  color: #587da9;
  font-size: 12px;
}
.login-features span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.login-features .icon {
  width: 16px;
  height: 16px;
}
.login-emblem {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -65px;
  bottom: -40px;
  display: grid;
  place-items: center;
  opacity: 0.5;
  transform: rotate(-12deg);
  pointer-events: none;
}
.login-emblem img {
  width: 126px;
  height: 126px;
  border-radius: 34px;
  opacity: 0.13;
}
.emblem-ring {
  position: absolute;
  inset: 0;
  border: 1px solid #9bbadd66;
  border-radius: 50%;
}
.emblem-ring:before,
.emblem-ring:after {
  content: "";
  position: absolute;
  border: 1px solid #9bbadd55;
  border-radius: 50%;
}
.emblem-ring:before {
  inset: -45px;
}
.emblem-ring:after {
  inset: -90px;
}
.login-aside footer {
  color: #7b94b3;
  font-size: 10px;
  z-index: 1;
  display: flex;
  gap: 15px;
}
.login-panel {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 48px 6vw;
  background: #fff;
}
.login-form-wrap {
  width: 370px;
  max-width: 100%;
}
.login-panel form {
  display: grid;
  gap: 18px;
}
.login-panel h2 {
  font-size: 28px;
  line-height: 1.4;
  margin: -7px 0 -8px;
}
.login-intro {
  margin: 0 0 6px;
  font-size: 12px;
  color: #8190a6;
}
.login-panel .tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f1f4f9;
  border: 1px solid #edf1f6;
  border-radius: 9px;
  margin-bottom: 6px;
}
.tabs button {
  flex: 1;
  border-color: transparent;
  background: transparent;
  color: #7789a1;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}
.tabs .active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 5px #2445680a;
}
.login-panel input {
  min-height: 46px;
  background: #fcfdff;
  font-size: 13px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 10px;
  color: #8b9ab0;
}
.login-submit {
  min-height: 46px;
  margin-top: 4px;
}
.login-help {
  margin: -4px 0 0;
  color: #8a98ac;
  text-align: center;
  font-size: 11px;
}
.login-details {
  margin: -5px 0 0;
  font-size: 11px;
}
.login-details summary {
  color: #8b9ab0;
  text-align: center;
}
.login-details p {
  background: #f6f9fd;
  padding: 12px;
  border-radius: 7px;
}
.login-bottom {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: #9aa7b9;
  font-size: 10px;
  margin-top: 38px;
}
.login-panel .modal-error {
  margin: 0;
}
.login-mobile-brand {
  display: none;
}
.screen {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 80% 0%, #1b3e64 0, transparent 65%), #0b2038;
  color: #fff;
  padding: 4vh 4vw 3vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
}
.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 3vh;
  border-bottom: 1px solid #ffffff16;
}
.screen-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.screen-brand img {
  width: clamp(42px, 4.4vw, 72px);
  height: clamp(42px, 4.4vw, 72px);
  object-fit: contain;
}
.screen-head .eyebrow {
  font-size: clamp(10px, 0.9vw, 16px);
  color: #88a7ca;
  margin-bottom: 7px;
  letter-spacing: 0.2em;
}
.screen-head h1 {
  font-size: clamp(22px, 2.6vw, 46px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}
.screen-heading-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.screen-published {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(10px, 0.85vw, 15px);
  color: #91baa9;
}
.screen-published:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #59b29b;
  border-radius: 50%;
}
#screen-clock {
  font:
    500 clamp(18px, 1.7vw, 28px) ui-monospace,
    monospace;
  color: #bed0e6;
  letter-spacing: 0.03em;
}
.screen-groupbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 3vh 0 2.5vh;
}
.screen-kicker {
  font-size: clamp(9px, 0.75vw, 13px);
  color: #6787ac;
  letter-spacing: 0.12em;
}
.screen-groupbar h2 {
  font-size: clamp(15px, 1.4vw, 25px);
  color: #c3d7ee;
  margin-top: 4px;
  font-weight: 500;
}
.screen-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.screen select {
  max-width: 280px;
  width: auto;
  background: #ffffff08;
  color: #9db7d6;
  border-color: #ffffff1c;
  min-height: 36px;
  font-size: 11px;
}
.screen option {
  background: #142e4d;
}
.screen button {
  background: #ffffff07;
  color: #88a5c8;
  border-color: #ffffff1c;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
}
.screen button:hover {
  background: #ffffff18;
  color: #dce9f8;
}
.leaderboard {
  background: #17324e88;
  border: 1px solid #ffffff15;
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
}
.screen table {
  font-size: clamp(15px, 1.5vw, 29px);
}
.screen th {
  background: #1c3a5b99;
  color: #84a0c1;
  border-color: #ffffff0e;
  font-size: clamp(11px, 1vw, 18px);
  padding: 1.6vh 1.6vw;
}
.screen td {
  padding: 1.4vh 1.6vw;
  border-color: #ffffff10;
  color: #abc2dd;
  font-weight: 400;
  height: 7.7vh;
}
.screen tbody tr:hover {
  background: transparent;
}
.screen .total {
  font-size: 1.4em;
  font-weight: 600;
  color: #d7e9fc;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.screen th:last-child {
  text-align: right;
}
.screen th:first-child,
.screen td:first-child {
  text-align: center;
  width: 9%;
}
.screen .screen-number {
  font-size: 0.78em;
  color: #6e90b9;
  font-variant-numeric: tabular-nums;
}
.screen .screen-participant {
  color: #e5eef9;
}
.screen-rank {
  display: inline-grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  font-weight: 550;
  border-radius: 7px;
  color: #789abf;
  font-variant-numeric: tabular-nums;
}
.rank-row-1 .screen-rank {
  background: #e6c47c1c;
  color: #e7c782;
}
.rank-row-2 .screen-rank {
  background: #b7cbe21a;
  color: #b7cbe2;
}
.rank-row-3 .screen-rank {
  background: #c6997f19;
  color: #c69e88;
}
.screen .rank-row-1 .total {
  color: #edd7a4;
}
.screen .empty {
  padding: 12vh 25px;
}
.screen .empty-icon {
  background: #ffffff08;
  color: #7196c1;
}
.screen .empty h2 {
  color: #abc6e7;
  font-size: clamp(17px, 1.5vw, 26px);
}
.screen .empty p {
  color: #6384ab;
}
.screen-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 2.5vh;
  font-size: 11px;
  color: #54759c;
}
.screen-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.screen-footer b {
  color: #6b8db7;
  font-size: 12px;
  letter-spacing: 0.07em;
}
.screen-pagination > span {
  min-width: 40px;
  text-align: center;
  color: #8aa8cc;
  font-variant-numeric: tabular-nums;
}
.screen-footer .screen-stale {
  color: #e5b981;
}
.background-cover {
  background-size: cover;
  background-position: center;
}
.background-cover .content,
.background-cover .workspace-footer {
  background: #f3f6faf0;
}
.no-margin {
  margin: 0;
}
.mobile-menu,
.nav-overlay {
  display: none;
}
@media (min-width: 1700px) {
  :root {
    font-size: 15px;
  }
  .content {
    padding-top: 38px;
  }
  .dashboard-columns {
    grid-template-columns: 1.3fr 1fr;
  }
}
@media (max-width: 1200px) {
  .topbar {
    padding: 13px 24px;
    gap: 12px;
  }
  .content {
    padding: 26px 24px 10px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .event-code {
    display: none;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head > .actions {
    flex-shrink: 1;
    justify-content: flex-end;
  }
  .live-columns {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 30px;
  }
  .dimension-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .event-banner h2 {
    font-size: 21px;
  }
  .event-banner {
    padding: 22px;
  }
  .list-toolbar {
    align-items: flex-start;
  }
  .list-tools {
    flex-wrap: wrap;
  }
}
@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    width: 200px;
    padding-inline: 12px;
  }
  .brand b {
    font-size: 18px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .dashboard-columns > div {
    display: grid;
    grid-template-columns: 1fr;
  }
  .event-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .banner-action {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .user-label {
    display: none;
  }
  .topbar-divider {
    display: none;
  }
  .rule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .login-aside {
    padding: 35px 4vw;
  }
  .login-panel {
    padding: 40px 5vw;
  }
  .login-features {
    gap: 15px;
  }
  .appearance-grid {
    gap: 16px;
  }
  .search-field input {
    width: 220px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .main {
    display: block;
  }
  .sidebar {
    width: 234px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 30px #17355318;
  }
  .sidebar .brand-mark {
    width: 42px;
    height: 42px;
  }
  .sidebar .brand small {
    font-size: 10px;
  }
  .nav button {
    min-height: 48px;
  }
  .mobile-menu {
    display: inline-flex;
    border: 0;
    background: transparent;
    width: 34px;
    height: 40px;
  }
  .nav-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: #122a4b55;
    backdrop-filter: blur(2px);
    z-index: 9;
  }
  body[data-nav-open="true"] .sidebar {
    transform: translateX(0);
  }
  body[data-nav-open="true"] .nav-overlay {
    display: block;
  }
  body[data-nav-open="true"] {
    overflow: hidden;
  }
  .topbar {
    padding: 10px 14px;
    gap: 10px;
    min-height: 68px;
  }
  .topbar select {
    max-width: 45vw;
    font-size: 13px;
  }
  .topbar-actions {
    gap: 0;
  }
  .screen-link,
  .avatar {
    display: none;
  }
  .content {
    padding: 23px 16px 8px;
  }
  .workspace-footer {
    padding: 18px 16px;
  }
  .page-head {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head > .actions {
    justify-content: flex-start;
  }
  .card-head {
    padding: 17px 18px;
    flex-wrap: wrap;
  }
  .card-body {
    padding: 18px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .metric strong {
    font-size: 29px;
  }
  .event-banner {
    padding: 20px;
  }
  .event-banner h2 {
    font-size: 20px;
  }
  .banner-action {
    flex-wrap: wrap;
  }
  .banner-action > span {
    text-align: left;
  }
  .form-grid,
  .appearance-grid {
    grid-template-columns: 1fr;
  }
  .rule-cards {
    grid-template-columns: 1fr;
  }
  .rule-grid,
  .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .list-tools {
    width: 100%;
  }
  .search-field {
    flex: 1;
    min-width: 180px;
  }
  .search-field input {
    width: 100%;
  }
  .list-tools select {
    flex: 1;
    max-width: 100%;
  }
  .table-wrap td,
  .table-wrap th {
    padding: 13px 16px;
  }
  .table-wrap table {
    min-width: 560px;
  }
  .table-wrap .empty {
    padding-block: 34px;
  }
  dialog {
    max-height: 93dvh;
    width: 96vw;
    border-radius: 12px;
  }
  .modal-head {
    padding: 16px 18px;
  }
  .modal-body {
    padding: 18px;
  }
  .rule-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .import-steps {
    font-size: 11px;
    gap: 6px;
  }
  .form-actions {
    position: sticky;
    bottom: -18px;
    background: #fff;
    padding: 16px 0;
    margin-bottom: -10px;
    z-index: 1;
  }
  .login-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .login-aside {
    display: none;
  }
  .login-panel {
    min-height: 100dvh;
    padding: 35px 25px;
    align-items: center;
    background: linear-gradient(#f4f8fe 0, #fff 36%);
  }
  .login-form-wrap {
    width: 380px;
  }
  .login-mobile-brand {
    display: block;
    margin-bottom: 44px;
  }
  .login-mobile-brand .brand-mark {
    width: 44px;
    height: 44px;
  }
  .login-mobile-brand .brand b {
    font-size: 22px;
  }
  .login-mobile-brand .brand small {
    font-size: 10px;
  }
  .login-bottom {
    margin-top: 30px;
  }
  .screen {
    padding: 22px 18px;
  }
  .screen-head {
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 20px;
  }
  .screen-brand {
    gap: 11px;
  }
  .screen-brand img {
    width: 36px;
    height: 36px;
  }
  .screen-head h1 {
    font-size: 20px;
  }
  .screen-head .eyebrow {
    font-size: 9px;
  }
  .screen-heading-meta {
    gap: 5px;
  }
  .screen-published {
    font-size: 9px;
  }
  #screen-clock {
    font-size: 14px;
  }
  .screen-groupbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 22px 0;
  }
  .screen-controls {
    width: 100%;
  }
  .screen select {
    flex: 1;
    max-width: 100%;
  }
  .screen-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .screen-footer > div {
    gap: 10px;
  }
  .screen .table-wrap table {
    min-width: 600px;
  }
  .screen td {
    height: 64px;
  }
  .screen .empty {
    padding: 80px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-head .actions,
  .workspace-footer,
  .screen-controls,
  .screen-pagination,
  #toast {
    display: none !important;
  }
  .app-shell {
    display: block;
  }
  .main {
    display: block;
  }
  .content {
    padding: 0;
  }
  .card {
    border-color: #aaa;
    box-shadow: none;
  }
  .screen {
    color: #000;
    background: #fff !important;
    padding: 0;
  }
  .screen * {
    color: #000 !important;
    background: transparent !important;
  }
  .screen table {
    min-width: 0;
  }
}
