:root {
  color-scheme: light;
  --ink: #132f2e;
  --muted: #647574;
  --green: #146557;
  --line: #dce4df;
  --bg: #f4f6f2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    -apple-system,
    sans-serif;
}
header {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
}
.mark {
  background: var(--green);
  color: white;
  padding: 4px 10px;
  border-radius: 10px;
}
.tag {
  font-size: 10px;
  letter-spacing: 1px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 7px;
  font-weight: 700;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px;
}
.intro {
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--green);
}
h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 14px 0;
}
h1 span {
  color: #db7b38;
}
h2 {
  font-size: 17px;
  margin: 0;
}
p {
  color: var(--muted);
  margin: 14px 0;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.panel,
.preview-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
}
.section-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.section-title button,
.section-title .tag {
  margin-left: auto;
}
.step {
  font:
    600 11px ui-monospace,
    monospace;
  color: var(--green);
  background: #edf4ed;
  padding: 6px 8px;
  border-radius: 5px;
}
.login {
  max-width: 570px;
}
.signed-out header,
.signed-out .intro,
.signed-out footer {
  display: none;
}
.signed-out main {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin: 18px 0 7px;
}
select {
  width: 100%;
  padding: 13px 12px;
  font: inherit;
  border: 1px solid #c9d4cf;
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
button {
  font: 600 13px system-ui;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--green);
  color: white;
  cursor: pointer;
}
button.secondary {
  background: #e9f2eb;
  color: var(--green);
  margin-top: 14px;
}
button.quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
button:disabled,
select:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
select:focus-visible {
  outline: 3px solid #e6b16d;
  outline-offset: 3px;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
}
.meta {
  font:
    11px/1.8 ui-monospace,
    monospace;
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.preview-panel {
  background: #e9eee7;
}
.dot,
.result-dot,
.pending-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #37836a;
  flex-shrink: 0;
}
.pending-dot {
  background: #bdc7c1;
}
.activity-preview {
  margin: 24px 0 16px;
  background: #142e2b;
  color: white;
  padding: 24px;
  border-radius: 22px;
  min-height: 165px;
  box-shadow: 0 12px 24px #193a2b15;
}
.activity-preview p,
.activity-preview small {
  color: #c1d1c5;
}
.activity-preview h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 8px 0 20px;
}
.activity-preview .teams {
  display: flex;
  gap: 14px;
  font-size: 13px;
}
.red {
  color: #ffc0b9;
}
.blue {
  color: #b9d9ff;
}
.legend {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0;
}
.legend .pending-dot {
  margin-left: 10px;
}
.timeline {
  max-height: 480px;
  overflow: auto;
}
.match-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #eef1ed;
  font-size: 12px;
  align-items: center;
}
.match-row.selected {
  background: #edf4ed;
  border-radius: 5px;
  padding: 12px 8px;
}
.match-row strong {
  font:
    700 12px ui-monospace,
    monospace;
}
.match-row span {
  color: var(--muted);
}
.match-row .score {
  color: var(--green);
  font-weight: 650;
}
.match-row.pending {
  opacity: 0.65;
}
#status {
  margin-bottom: 24px;
  border: 1px solid #bfcebb;
  background: #e8f1e5;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13px;
}
#status.error {
  background: #fff1ec;
  border-color: #e8c7bb;
  color: #81392c;
}
footer {
  margin-top: 36px;
  font-size: 11px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 780px) {
  .columns {
    grid-template-columns: 1fr;
  }
  main {
    padding: 28px 18px;
  }
  .panel,
  .preview-panel {
    padding: 20px;
  }
  header {
    padding: 0 18px;
    height: 66px;
  }
}
