:root {
  --ink: #172f32;
  --muted: #637775;
  --line: #dbe4e0;
  --paper: #fff;
  --bg: #f4f7f5;
  --teal: #08796e;
  --navy: #12383c;
  --mint: #e3f4ea;
  --radius: 15px;
  font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #3aada3;
  outline-offset: 3px;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  touch-action: manipulation;
}
button svg,
span svg {
  flex: none;
  vertical-align: middle;
}
small {
  font-size: 12px;
  color: var(--muted);
}
[v-cloak] {
  display: none;
}
.shell {
  width: min(1232px, calc(100% - 96px));
  margin: auto;
}
.mast {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand span {
  display: grid;
  text-align: left;
}
.brand b {
  font-size: 19px;
  letter-spacing: 1.4px;
  line-height: 1.35;
}
.brand small {
  font: 700 9px/1.4 Arial, sans-serif;
  letter-spacing: 2px;
  color: #65817a;
}
.desktop-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 2vw, 31px);
  margin-left: auto;
  margin-right: auto;
}
.desktop-nav button {
  position: relative;
  padding: 0 3px;
  font-size: 14px;
  color: #4b625f;
  font-weight: 550;
  white-space: nowrap;
}
.desktop-nav button.active {
  color: #075d55;
  font-weight: 700;
}
.desktop-nav button.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 3px;
  right: 3px;
  height: 3px;
  background: #178674;
  border-radius: 3px 3px 0 0;
}
.staff-link,
.btn,
.text-btn,
.hero-button,
.graph-tools,
.next-info span,
.pass-meta span,
.small-title,
.hero-meta span,
.footer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.staff-link,
.btn.secondary {
  border: 1px solid #d1dcd7;
  border-radius: 8px;
  padding: 9px 13px;
  background: white;
  font-size: 13px;
  font-weight: 600;
}
.staff-link.selected,
.btn.secondary:hover {
  background: #eaf5ef;
  color: var(--teal);
}
.main {
  padding-top: 28px;
  min-height: 67vh;
}
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(112deg, #102e36 0%, #124544 61%, #11524b 100%);
  border: 1px solid #1a504b;
  border-radius: 18px;
  color: white;
  min-height: 250px;
  display: flex;
  align-items: center;
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#92e2c30d 1px, transparent 1px);
  background-size: 9px 9px;
}
.hero-content {
  z-index: 1;
  padding: 30px 38px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 700 10px/1.4 Arial, sans-serif;
  letter-spacing: 2px;
  color: #b5d6ca;
}
.hero-kicker b {
  color: #72a698;
  margin: 0 4px;
}
.hero-status,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-status {
  background: #83e4b318;
  color: #b0f7c9;
  border: 1px solid #8cd9ad55;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.4px;
}
.hero-status i,
.mini-label i,
.pill.live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #73e7ad;
}
.hero h1 {
  font-size: clamp(26px, 3.05vw, 46px);
  line-height: 1.32;
  letter-spacing: -1.4px;
  margin: 16px 0 14px;
  font-weight: 750;
}
.hero-meta {
  display: flex;
  gap: 21px;
  flex-wrap: wrap;
}
.hero-meta span {
  color: #cee1da;
  font-size: 13px;
}
.hero-button {
  margin-top: 22px;
  border: 1px solid #80af9e88;
  border-radius: 7px;
  padding: 8px 15px;
  color: #f3fff7;
  font-size: 13px;
  background: #f1fff909;
}
.hero-button:hover {
  background: #eaffec21;
}
.court-art {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-height: 115%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  margin-top: 14px;
  padding: 16px 0;
}
.metrics > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.metrics > div + div {
  border-left: 1px solid var(--line);
}
.metric-icon,
.device-icon,
.gate-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #edf5f0;
  display: grid;
  place-items: center;
  color: #408775;
}
.metrics small {
  display: block;
  font-size: 12px;
}
.metrics strong {
  font: 700 25px/1.3 'Segoe UI', sans-serif;
  color: #153c3e;
}
.metrics em {
  font: 400 12px/1.2 'Microsoft YaHei', sans-serif;
  color: #667d75;
  margin-left: 6px;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(275px, 1fr);
  gap: 25px;
  margin-top: 28px;
}
.section-title,
.inner-heading,
.live-row-head,
.list-tools,
.profile-strip,
.next-line,
.bracket-tools,
.result-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-title {
  margin: 0 0 13px;
  min-height: 53px;
}
.overline {
  font: 700 10px/1.5 Arial, sans-serif;
  letter-spacing: 2.05px;
  color: #548077;
  display: block;
  margin-bottom: 4px;
}
.section-title h2,
.inner-heading h2,
.side-panel h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.5;
}
.counter {
  vertical-align: middle;
  display: inline-block;
  border-radius: 7px;
  background: #d9efe3;
  color: #1a6f58;
  padding: 1px 7px;
  font: 700 12px/1.5 Arial, sans-serif;
}
.text-btn {
  color: #237769;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
}
.text-btn:hover {
  color: #054c47;
}
.live-list {
  display: grid;
  gap: 12px;
}
.live-row,
.panel,
.pass-card,
.progress-card,
.profile-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.live-row-head {
  justify-content: flex-start;
  padding: 12px 19px 0;
  gap: 10px;
}
.court-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}
.court-label b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #e4f2ed;
  color: #207966;
  border-radius: 6px;
  font: 750 13px/1 Arial;
}
.hairline {
  width: 1px;
  height: 13px;
  background: var(--line);
}
.row-code,
.mono,
.pass-code,
.next-line h2,
.device-reading b,
.compact-row b,
.node b {
  font-family: Consolas, 'SFMono-Regular', 'Segoe UI', sans-serif;
}
.row-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #5c726c;
}
.live-row-head .pill {
  margin-left: auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 650;
  padding: 4px 9px;
  line-height: 1.4;
  width: max-content;
}
.pill.live {
  color: #086d4c;
  background: #e2f5e8;
}
.pill.live i {
  width: 5px;
  height: 5px;
  background: #259b62;
}
.pill.waiting {
  color: #7c632a;
  background: #f6efdb;
}
.pill.finished {
  color: #506969;
  background: #edf1ef;
}
.pill.warning {
  color: #965218;
  background: #fff0da;
}
.arena-main {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 20px 13px;
}
.arena-main:hover,
.schedule-row:hover,
.compact-row:hover,
.possible-row:hover {
  background: #f6faf7;
}
.contenders {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 7px;
}
.contenders > svg {
  margin-left: auto;
  color: #81968c;
}
.contenders em {
  font: 700 11px/1 Arial, sans-serif;
  color: #82918c;
}
.side-label {
  font-weight: 700;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.side-label:before,
.detail-side > i {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 3px;
}
.side-label.red:before,
.detail-side > i.red {
  background: #d98378;
}
.side-label.blue:before,
.detail-side > i.blue {
  background: #669ac6;
}
.on-deck {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 19px;
  background: #f8faf8;
  border-top: 1px solid #e7ede8;
  color: #61726a;
  font-size: 12px;
}
.on-deck > span:first-child {
  font-size: 11px;
  color: #647c6d;
  border-right: 1px solid #c6d4ca;
  padding-right: 9px;
}
.on-deck button {
  padding: 2px 0;
  font-size: 12px;
}
.arena-more {
  margin-left: auto;
  color: #397a66;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pass-top,
.profile-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
}
.pass-top {
  background: #eaf3ec;
  border-bottom: 1px dashed #b8cebe;
}
.pass-top > svg {
  margin-left: auto;
  color: #477661;
}
.avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #d3e8d7;
  color: #2a674c;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 20px;
  border: 1px solid #c4dccb;
}
.pass-top h3 {
  font-size: 17px;
}
.pass-body {
  padding: 21px;
}
.mini-label {
  font-size: 12px;
  color: #457360;
  font-weight: 600;
}
.mini-label i {
  background: #438671;
  width: 5px;
  height: 5px;
}
.pass-code {
  display: block;
  font-size: 36px;
  font-weight: 750;
  line-height: 1.35;
  margin-top: 6px;
  letter-spacing: -1.2px;
}
.pass-body > p {
  font-size: 14px;
  margin: 5px 0 13px;
}
.pass-meta {
  display: flex;
  gap: 15px;
  color: #5b7168;
  font-size: 13px;
}
.btn {
  border-radius: 8px;
  padding: 10px 15px;
  background: #126456;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
.btn:hover {
  background: #0a5149;
}
.pass-action {
  margin-top: 20px;
  width: 100%;
  justify-content: space-between;
}
.progress-card {
  margin-top: 15px;
  padding: 19px 21px;
}
.small-title {
  font-weight: 700;
  font-size: 14px;
  color: #3b6758;
}
.progress-value {
  margin: 11px 0;
  color: var(--muted);
  font-size: 13px;
}
.progress-value b {
  font-size: 25px;
  color: var(--ink);
}
.track {
  height: 6px;
  overflow: hidden;
  background: #e8eeea;
  border-radius: 5px;
  margin-bottom: 9px;
}
.track i {
  display: block;
  height: 100%;
  background: #40977b;
  border-radius: 5px;
}
.footer {
  margin: 33px auto 0;
  border-top: 1px solid var(--line);
  padding: 19px 0 27px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.footer img {
  width: 20px;
  height: 20px;
}
.footer b {
  font-weight: 400;
  color: #a3b5aa;
}
.mobile-nav {
  display: none;
}
.page-heading {
  margin: 10px 0 24px;
}
.page-heading h1 {
  font-size: 34px;
  letter-spacing: -1px;
}
.page-heading p,
.muted,
.panel-note,
.staff-gate p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.page-heading p {
  margin-top: 6px;
}
.filterbar,
.result-tools,
.bracket-tools {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filterbar label,
.bracket-tools label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #5b7367;
  font-weight: 600;
}
select,
input {
  min-width: 0;
  font-size: 14px;
  color: var(--ink);
}
select {
  padding: 9px 28px 9px 9px;
  border: 1px solid #cad9d0;
  border-radius: 7px;
  background: white;
}
.search-box,
.filterbar .search-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 185px;
  border: 1px solid #cad9d0;
  background: white;
  border-radius: 8px;
  padding: 8px 11px;
  color: #73887e;
}
.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  line-height: 19px;
}
.search-box:focus-within {
  outline: 2px solid #319584;
}
.list-tools {
  padding: 14px 20px;
}
.segmented,
.zoom {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #f0f4f1;
}
.segmented button {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #536b60;
}
.segmented button.on {
  background: white;
  color: #126353;
  font-weight: 700;
  box-shadow: 0 1px 4px #183d2820;
}
.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: 1.1fr 1.65fr 1.5fr 0.6fr;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 13px 20px;
}
.schedule-head,
.table-header {
  background: #f4f7f5;
  color: #63796d;
  font-size: 12px;
}
.schedule-row {
  width: 100%;
  border-top: 1px solid #e4ebe5;
  font-size: 14px;
}
.schedule-row small,
.compact-row small,
.device-row small,
.entry-row small,
.detail-side small {
  display: block;
  margin-top: 4px;
}
.schedule-row b {
  font-size: 15px;
}
.pair-line {
  font-weight: 600;
}
.empty,
.loading,
.staff-gate {
  text-align: center;
  padding: 39px 16px;
  color: var(--muted);
}
.empty h3 {
  font-size: 16px;
  margin: 8px 0;
}
.loading {
  min-height: 55vh;
}
.loading img {
  width: 45px;
}
.loading h1 {
  font-size: 24px;
  margin-top: 15px;
}
.profile-strip {
  justify-content: flex-start;
  background: linear-gradient(105deg, #e4f2e9, #f5f9f4);
}
.profile-strip h2 {
  font-size: 21px;
}
.profile-strip p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.profile-strip > .btn {
  margin-left: auto;
}
.personal-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 19px;
  margin-top: 19px;
}
.next-card {
  border: 1px solid #bed7c8;
  border-radius: var(--radius);
  background: linear-gradient(105deg, #e6f3e9, #f7faf4);
  padding: 22px;
}
.next-line {
  justify-content: flex-start;
  margin: 7px 0 10px;
}
.next-line h2 {
  font-size: 36px;
}
.next-card h3 {
  font-size: 18px;
}
.next-card p {
  color: #506d5d;
  margin: 7px 0;
  font-size: 14px;
}
.next-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #466b59;
  font-size: 14px;
  margin-top: 15px;
}
.next-info svg {
  width: 16px;
}
.next-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  border-top: 1px solid #c9ddcd;
  padding-top: 12px;
  font-size: 13px;
  color: #536b5a;
}
.next-foot button {
  color: var(--teal);
  font-weight: 600;
}
.list-panel,
.side-panel + .side-panel {
  margin-top: 16px;
}
.inner-heading {
  padding: 16px 20px;
}
.inner-heading h2,
.side-panel h2 {
  font-size: 17px;
}
.inner-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.compact-row {
  width: 100%;
  display: grid;
  align-items: center;
  grid-template-columns: 1.15fr 1.7fr auto;
  gap: 10px;
  text-align: left;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.side-panel {
  padding: 18px;
}
.entry-row,
.possible-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
}
.entry-row:last-child,
.possible-row:last-child {
  border: 0;
}
.entry-row svg {
  color: #4a876c;
}
.side-panel .muted {
  font-size: 12px;
  margin: 6px 0;
}
.possible-row > svg {
  margin-left: auto;
}
.bracket-tools {
  align-items: center;
}
.graph-tools {
  flex-wrap: wrap;
}
.zoom {
  align-items: center;
}
.zoom button {
  font-size: 17px;
  padding: 4px 9px;
}
.graph-key {
  display: flex;
  justify-content: space-between;
  padding: 14px 21px;
  font-size: 12px;
  color: var(--muted);
}
.graph-key i {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #bee4c7;
  margin-right: 5px;
  border: 1px solid #74ac88;
  border-radius: 2px;
}
.graph-scroll {
  overflow: auto;
  margin: 0 12px 15px;
  background-color: #f6f9f6;
  background-image: radial-gradient(#c4d5c9 0.8px, transparent 0.9px);
  background-size: 14px 14px;
  border-radius: 10px;
}
.tree {
  width: 720px;
  transform-origin: top left;
  padding-top: 12px;
}
.round-head {
  display: grid;
  grid-template-columns: repeat(3, 250px);
  font-size: 13px;
  color: #4b6e59;
}
.round-head b {
  padding-left: 12px;
}
.tree-nodes {
  position: relative;
  height: 350px;
  margin-top: 14px;
}
.tree-nodes > svg {
  position: absolute;
  inset: 0;
  width: 720px;
  height: 340px;
}
.node {
  position: absolute;
  display: block;
  width: 204px;
  height: 69px;
  padding: 6px 10px;
  font-size: 12px;
  text-align: left;
  border: 1px solid #c8d7cb;
  border-radius: 8px;
  background: #fff;
}
.node.mine {
  background: #ecf8ed;
  border-color: #80b795;
}
.node:hover {
  box-shadow: 0 2px 8px #174d3015;
}
.node span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.node small {
  font-size: 10px;
}
.node em {
  display: block;
  font-style: normal;
  line-height: 17px;
  color: #53675d;
}
.node .winning {
  color: #116447;
  font-weight: 650;
}
.node i {
  float: right;
  font-size: 10px;
  font-style: normal;
}
.result-tools {
  align-items: center;
}
.result-tools .search-box {
  max-width: 290px;
}
.rank-row {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1.45fr 0.65fr;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.rank-row.table-header {
  font-size: 12px;
}
.rank {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #eff2ee;
  font: 700 14px/1 Arial, sans-serif;
}
.rank-1 {
  background: #f7edcd;
  color: #84651c;
}
.rank-2 {
  background: #e4edf0;
  color: #4e6c77;
}
.rank-3 {
  background: #f1e2d7;
  color: #8a6044;
}
.panel-note {
  padding: 0 20px 16px;
  font-size: 13px;
}
.gate-icon {
  margin: 0 auto 15px;
  width: 58px;
  height: 58px;
}
.staff-gate h2 {
  font-size: 22px;
}
.staff-gate p {
  margin: 12px 0 20px;
}
.staff-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.staff-summary article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px;
  color: #427462;
}
.staff-summary strong {
  margin-left: auto;
  color: #1c3e36;
  font-size: 25px;
}
.device-row {
  display: grid;
  grid-template-columns: auto 1.7fr 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.device-row b {
  font-size: 14px;
}
.end {
  margin-left: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  width: min(425px, calc(100% - 32px));
  max-height: 87svh;
  padding: 0;
  box-shadow: 0 25px 80px #0a251d33;
  color: var(--ink);
}
dialog::backdrop {
  background: #0c252c66;
  backdrop-filter: blur(2px);
}
.dialog-content {
  padding: 25px;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 50%;
  padding: 7px;
  background: #f0f4f0;
}
.dialog-content h2 {
  font-size: 23px;
  margin: 6px 0;
}
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 12px;
  color: #62796a;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.detail-side {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.detail-side .text-btn {
  margin-left: auto;
}
.detail-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edf6ed;
  padding: 12px;
  margin-top: 12px;
  border-radius: 8px;
  font-size: 14px;
}
.detail-score b {
  font-size: 23px;
}
.qr-box {
  width: max-content;
  border: 1px solid var(--line);
  background: white;
  padding: 16px;
  margin: 16px auto;
}
.qr-url {
  overflow-wrap: anywhere;
  background: #f5f7f4;
  padding: 8px;
  font-size: 12px;
}
.dialog-content .btn {
  margin: 12px 8px 0 0;
}
.dialog-content .muted {
  font-size: 13px;
}
@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 48px);
  }
  .mast-inner {
    gap: 15px;
  }
  .desktop-nav {
    gap: 12px;
  }
  .hero-content {
    padding: 26px;
  }
  .home-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1.7fr) minmax(245px, 1fr);
  }
  .hero h1 {
    font-size: 34px;
  }
  .court-art {
    width: 40%;
    right: -2%;
  }
  .metrics > div {
    gap: 10px;
  }
  .hero {
    min-height: 230px;
  }
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 28px);
  }
  .mast-inner {
    height: 57px;
    justify-content: space-between;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .brand b {
    font-size: 16px;
  }
  .brand small {
    font-size: 8px;
  }
  .desktop-nav {
    display: none;
  }
  .staff-link {
    font-size: 12px;
    padding: 7px 10px;
  }
  .main {
    padding-top: 15px;
  }
  .hero {
    min-height: 197px;
    border-radius: 13px;
    align-items: flex-start;
  }
  .hero-content {
    padding: 20px;
    width: 100%;
  }
  .hero-kicker {
    font-size: 8px;
    letter-spacing: 1.1px;
    gap: 8px;
  }
  .hero h1 {
    font-size: clamp(22px, 4.2vw, 30px);
    margin: 13px 0 9px;
    letter-spacing: -0.8px;
  }
  .hero-meta {
    gap: 6px;
    flex-direction: column;
  }
  .hero-meta span {
    justify-content: flex-start;
    font-size: 11px;
  }
  .hero-button {
    margin-top: 12px;
    font-size: 12px;
    padding: 6px 11px;
  }
  .court-art {
    width: 46%;
    right: -5%;
    max-height: 70%;
    top: 70%;
    opacity: 0.82;
  }
  .metrics {
    padding: 12px 0;
    margin-top: 10px;
    border-radius: 10px;
  }
  .metrics > div {
    display: flex;
    gap: 0;
    text-align: center;
  }
  .metric-icon {
    display: none;
  }
  .metrics strong {
    font-size: 21px;
  }
  .metrics small {
    font-size: 11px;
  }
  .metrics em {
    font-size: 10px;
  }
  .home-grid {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
  }
  .home-aside {
    display: grid;
    grid-template-columns: 1fr;
  }
  .section-title {
    min-height: 43px;
    margin-bottom: 8px;
  }
  .section-title h2 {
    font-size: 19px;
  }
  .overline {
    font-size: 9px;
  }
  .live-list {
    gap: 9px;
  }
  .live-row-head {
    padding: 11px 13px 0;
  }
  .arena-main {
    padding: 8px 13px 10px;
  }
  .on-deck {
    padding: 7px 13px;
  }
  .side-label {
    font-size: 16px;
  }
  .contenders {
    gap: 10px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    padding: 5px 5px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fffffff5;
    backdrop-filter: blur(12px);
  }
  .mobile-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 1px;
    color: #697a72;
    font-size: 10px;
  }
  .mobile-nav button.active {
    color: #0b745e;
    font-weight: 700;
  }
  .footer {
    margin: 23px auto 60px;
    padding: 14px 0;
    align-items: flex-start;
  }
  .footer small {
    font-size: 10px;
    text-align: right;
  }
  .progress-card {
    margin-top: 10px;
  }
  .page-heading {
    margin: 5px 0 16px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .filterbar,
  .result-tools,
  .bracket-tools {
    padding: 13px;
    gap: 9px;
  }
  .filterbar .search-box {
    flex-basis: 100%;
  }
  .filterbar label:not(.search-box) {
    flex: 1;
    min-width: 0;
  }
  select {
    width: 100%;
    padding: 8px 4px;
    font-size: 12px;
  }
  .list-tools {
    padding: 11px 12px;
    gap: 6px;
  }
  .segmented button {
    padding: 6px 9px;
    font-size: 12px;
  }
  .schedule-head {
    display: none;
  }
  .schedule-row {
    grid-template-columns: 1fr auto;
    gap: 5px 9px;
    padding: 12px 13px;
  }
  .schedule-row > span:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .schedule-row > span:nth-child(1) small {
    display: inline;
    font-size: 11px;
    margin-left: 6px;
  }
  .schedule-row > .pair-line {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .schedule-row > span:nth-child(3) {
    grid-column: 1/-1;
    grid-row: 3;
    color: var(--muted);
    font-size: 11px;
  }
  .schedule-row > span:nth-child(3) small {
    display: inline;
    margin-left: 6px;
    font-size: 11px;
  }
  .schedule-row > .pill {
    grid-column: 2;
    grid-row: 1;
  }
  .personal-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .profile-strip {
    padding: 14px;
    gap: 9px;
  }
  .profile-strip h2 {
    font-size: 18px;
  }
  .profile-strip .btn {
    font-size: 11px;
    padding: 8px;
    gap: 4px;
  }
  .next-card {
    padding: 16px;
  }
  .next-info {
    gap: 10px;
    font-size: 12px;
  }
  .next-foot {
    font-size: 12px;
  }
  .compact-row {
    padding: 12px;
    gap: 7px;
    font-size: 13px;
  }
  .inner-heading {
    padding: 13px;
  }
  .bracket-tools label {
    width: 100%;
  }
  .graph-tools {
    width: 100%;
    justify-content: space-between;
  }
  .graph-key {
    padding: 12px;
    font-size: 11px;
  }
  .result-tools .search-box {
    flex-basis: 100%;
    max-width: 100%;
  }
  .rank-row {
    grid-template-columns: 0.42fr 0.85fr 1.3fr 0.58fr;
    padding: 12px;
    font-size: 12px;
  }
  .staff-summary {
    gap: 7px;
  }
  .staff-summary article {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 10px;
    gap: 6px;
    font-size: 11px;
  }
  .staff-summary svg {
    width: 14px;
  }
  .staff-summary strong {
    margin: 0;
    grid-column: 1/-1;
    font-size: 21px;
  }
  .device-row {
    grid-template-columns: 1.5fr 0.7fr auto;
    gap: 6px;
    padding: 12px;
  }
  .device-icon {
    display: none;
  }
  .device-row .device-reading:nth-of-type(4) {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    gap: 7px;
    align-items: center;
  }
  .device-row .device-reading:nth-of-type(4) small {
    margin: 0;
  }
  .device-row .pill {
    grid-column: 3;
    grid-row: 1;
  }
  .device-row small {
    font-size: 10px;
  }
  .device-row b {
    font-size: 12px;
  }
  .device-row .pill {
    font-size: 10px;
  }
  .dialog-content {
    padding: 20px;
  }
  .graph-scroll {
    margin: 0 7px 8px;
  }
  .next-card h3 {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .shell {
    width: calc(100% - 18px);
  }
  .hero-content {
    padding: 14px;
  }
  .hero-kicker {
    letter-spacing: 0.5px;
  }
  .hero h1 {
    font-size: 21px;
  }
  .on-deck {
    gap: 5px;
  }
  .contenders {
    gap: 7px;
  }
  .pass-meta {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.btn.secondary {
  color: #235f52;
}
.current-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #456959;
  font-size: 13px;
  margin: 14px 0 0;
}
.current-line button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0b6858;
  font-weight: 700;
}
.side-panel .text-btn {
  margin-top: 3px;
}
