:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel-muted: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e0e0e0;
  --line-soft: #edf2f4;
  --primary: #0066cc;
  --primary-dark: #0055aa;
  --accent: #d44b36;
  --warning: #b7791f;
  --nav: #000000;
  --soft: #e6f4f2;
  --danger-soft: #fde8e3;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.mobile-shell {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

.mobile-header {
  display: grid;
  gap: 14px;
  padding: 18px 16px 16px;
  background: var(--nav);
  color: #ffffff;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 29%, #172326 0 4px, transparent 5px),
    radial-gradient(circle at 55% 29%, #172326 0 4px, transparent 5px),
    radial-gradient(circle at 44% 47%, #172326 0 3px, transparent 4px),
    linear-gradient(145deg, #fff8ed, #d44b36);
}

.brand h1,
.context-panel h2,
.surface h3,
.hero-card h3 {
  margin: 0;
}

.brand h1 {
  font-size: 18px;
  line-height: 1.2;
}

.brand p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.auth-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.auth-panel span,
.auth-panel small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 800;
}

.auth-panel strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.network-pill {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(230, 244, 242, 0.16);
  color: #ffffff;
  font-size: 12px;
}

.network-pill.offline {
  background: rgba(253, 232, 227, 0.22);
  color: #ffe1dc;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sync-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.remote-failure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(212, 75, 54, 0.45);
  border-radius: 8px;
  padding: 8px;
  background: rgba(253, 232, 227, 0.14);
}

.remote-failure strong {
  color: #ffffff;
  font-size: 13px;
}

.failure-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.failure-badge {
  min-height: 24px;
  max-width: 100%;
  display: inline-grid;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffe1dc;
  font-size: 12px;
  line-height: 1.2;
}

.mobile-content {
  display: grid;
  gap: 14px;
  padding: 14px 14px 96px;
}

.v7-events-shell {
  max-width: 390px;
  background: #f5f5f7;
}

.v7-global-header {
  position: sticky;
  top: 0;
  z-index: 11;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: #000000;
}

.v7-global-header .brand {
  gap: 14px;
}

.v7-global-header .brand-mark {
  width: 10px;
  height: 10px;
  background: #ffffff;
}

.v7-global-header .brand h1 {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.v7-global-header .brand p,
.v7-global-header .auth-panel {
  display: none;
}

.v7-menu-button {
  width: 28px;
  min-height: 28px;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.v7-events-shell .mobile-content {
  gap: 0;
  padding: 0 0 96px;
}

.v7-events-shell .events-context-panel {
  position: sticky;
  top: 44px;
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  padding: 0 20px;
  background: #f5f5f7;
  box-shadow: none;
}

.v7-events-shell .events-context-panel .eyebrow {
  display: none;
}

.v7-events-shell .events-context-panel h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.v7-top-pill,
.v7-pill,
.v7-bottom-action {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border-radius: 999px;
  padding: 0 18px;
  background: #0066cc;
  color: #ffffff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
}

.v7-top-pill {
  min-width: 66px;
}

.v7-pill.outline {
  border: 1px solid #0066cc;
  background: #ffffff;
  color: #0066cc;
}

.v7-pill.active {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.56);
}

.v7-pill.outline.active {
  background: #eff6ff;
}

.v7-bottom-action.secondary {
  border: 1px solid #0066cc;
  background: #ffffff;
  color: #0066cc;
}

.v7-hero.dark .v7-pill.outline,
.v7-screen .v7-hero.dark .v7-pill.outline {
  border-color: #2997ff;
  background: #2a2a2c;
  color: #2997ff;
}

.v7-screen {
  display: grid;
  gap: 32px;
  padding: 0 20px 28px;
}

.v7-screen + .surface,
.v7-screen + .game-summary-panel {
  margin-top: 0;
}

.v7-hero,
.v7-score-hero {
  display: grid;
  justify-items: center;
  min-height: 246px;
  margin: 0 -20px;
  padding: 38px 20px 32px;
  background: #ffffff;
  text-align: center;
}

.v7-hero.dark {
  background: #2a2a2c;
}

.v7-score-hero {
  min-height: 316px;
  padding-top: 52px;
}

.v7-hero strong {
  color: #1d1d1f;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
}

.v7-hero.dark strong {
  color: #ffffff;
}

.v7-hero span,
.v7-score-hero span {
  margin-top: 6px;
  color: #6e6e73;
  font-size: 21px;
  line-height: 1.36;
}

.v7-hero.dark span {
  color: #cccccc;
}

.v7-hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.v7-score-value {
  color: #1d1d1f;
  font-size: 78px;
  font-weight: 800;
  line-height: 1.1;
}

.v7-score-buffer {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.v7-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 22px;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  padding: 20px 22px 24px;
  background: #ffffff;
}

.v7-keypad button {
  min-height: 38px;
  border-radius: 8px;
  background: #fafafc;
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 800;
}

.v7-keypad button.primary {
  background: #0066cc;
  color: #ffffff;
}

.v7-info-card {
  display: grid;
  gap: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
}

.v7-info-card h3 {
  margin: 0;
  color: #1d1d1f;
  font-size: 22px;
  line-height: 1.25;
}

.v7-info-card p {
  margin: 0;
  color: #6e6e73;
  font-size: 16px;
  line-height: 1.45;
}

.member-event-detail-panel {
  padding-bottom: 32px;
}

.member-event-detail-panel .v7-hero {
  min-height: 224px;
  padding-top: 24px;
}

.member-event-detail-panel .v7-hero span {
  margin-top: 2px;
}

.member-event-detail-panel .v7-hero-actions {
  margin-top: 8px;
}

.member-event-overview-card .v7-score-summary {
  margin-top: 4px;
  border: 1px solid #f0f0f2;
  border-radius: 14px;
}

.v7-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.v7-list-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.v7-list-row strong {
  color: #1d1d1f;
  font-size: 18px;
  line-height: 1.2;
}

.v7-list-row span {
  color: #6e6e73;
  font-size: 16px;
}

.v7-list-row em {
  color: #0066cc;
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
}

.v7-list-row small {
  grid-column: 1 / -1;
  color: #6e6e73;
  font-size: 14px;
}

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

.v7-stat-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
}

.v7-stat-grid span {
  color: #6e6e73;
  font-size: 15px;
}

.v7-stat-grid strong {
  font-size: 28px;
  line-height: 1.15;
}

.v7-stat-grid .danger {
  color: #b83a2e;
}

.v7-stat-grid .reserve {
  color: #0b6b57;
}

.v7-bottom-action {
  width: 100%;
}

.v7-score-summary {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.v7-score-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #e0e0e0;
}

.v7-score-summary > div:last-child {
  border-bottom: 0;
}

.v7-score-summary span {
  color: #6e6e73;
  font-size: 15px;
}

.v7-score-summary strong {
  color: #1d1d1f;
  font-size: 22px;
}

.v7-events-shell .surface,
.v7-events-shell .operator-console {
  margin: 0 20px 24px;
  border-color: #e0e0e0;
  border-radius: 18px;
  box-shadow: none;
}

.v7-events-shell .member-score-panel {
  border: 0;
  margin: 0;
  padding-top: 0;
}

.v7-events-shell .member-score-panel .game-score-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v7-events-shell .game-score-card {
  min-height: 72px;
  border-radius: 14px;
  background: #ffffff;
}

.v7-events-shell .game-score-card.active {
  border-color: #0066cc;
  background: #eff6ff;
}

.v7-events-shell .operator-console {
  display: grid;
  gap: 16px;
  border: 0;
  padding: 0;
  background: transparent;
}

.v7-events-shell .operator-console > .section-heading,
.v7-events-shell .console-tabs {
  margin: 0;
}

.context-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.context-panel h2 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.1;
}

.eyebrow,
.panel-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.compact-label,
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

.dev-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.dev-panel summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.dev-panel[open] {
  display: grid;
  gap: 10px;
}

.primary-button,
.ghost-button,
.danger-button,
.mini-button,
.text-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 900;
}

.primary-button {
  background: var(--primary);
  color: #ffffff;
}

.ghost-button,
.text-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.danger-button {
  background: var(--danger-soft);
  color: #a93424;
}

.mini-button {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.toolbar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hero-card {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, #0f766e, #17474d);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero-card .eyebrow,
.hero-card p {
  color: rgba(255, 255, 255, 0.72);
}

.hero-card h3 {
  font-size: 25px;
  line-height: 1.12;
}

.hero-card p {
  margin: 0;
  font-size: 13px;
}

.one-tap-card {
  gap: 14px;
}

.one-tap-card h3 {
  font-size: 31px;
}

.one-tap-panel {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.one-tap-panel strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.one-tap-panel span,
.one-tap-meta span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.one-tap-meta {
  display: grid;
  gap: 4px;
}

.hero-light-button {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.hero-light-button:disabled {
  opacity: 0.78;
}

.hero-action-row {
  margin-top: 0;
}

.operator-inline-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-align: left;
}

.operator-inline-cta span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.operator-inline-cta strong {
  font-size: 17px;
  line-height: 1.2;
}

.operator-inline-cta em {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  font-size: 18px;
  font-weight: 950;
}

.events-context-panel {
  padding-bottom: 22px;
}

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

.big-score-input {
  min-height: 58px;
  border: 0;
  font-size: 26px;
  font-weight: 950;
  text-align: center;
}

.score-total {
  display: grid;
  min-height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 26px;
  font-weight: 950;
}

.member-score-panel {
  display: grid;
  gap: 14px;
  border-color: rgba(15, 118, 110, 0.28);
}

.member-score-focus {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  padding: 16px;
  background: #0f766e;
  color: #ffffff;
}

.member-score-focus .eyebrow,
.member-score-focus small {
  color: rgba(255, 255, 255, 0.76);
}

.member-score-focus label {
  color: #ffffff;
}

.member-score-input {
  width: 100%;
  min-height: 88px;
  border: 0;
  border-radius: 8px;
  font-size: 42px;
  font-weight: 950;
  text-align: center;
}

.member-score-save {
  min-height: 58px;
  font-size: 18px;
}

.member-score-focus .member-score-input {
  width: 100%;
  min-height: 96px;
  font-size: 46px;
}

.game-score-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.game-score-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-muted);
  color: var(--ink);
  text-align: center;
}

.game-score-card:not(:disabled) {
  cursor: pointer;
}

.game-score-card.active {
  border-color: var(--primary);
  background: var(--soft);
}

.game-score-card.locked {
  opacity: 0.7;
}

.game-score-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.game-score-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.game-score-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.game-summary-panel {
  display: grid;
  gap: 14px;
}

.summary-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.summary-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
}

.summary-tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.side-summary-list {
  display: grid;
  gap: 9px;
}

.summary-grid {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
}

.summary-grid-row {
  display: grid;
  gap: 10px;
  align-items: center;
  min-width: 640px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.summary-grid-row:last-child {
  border-bottom: 0;
}

.summary-grid-team {
  overflow-x: hidden;
}

.summary-grid-team .summary-grid-row,
.summary-grid-individual .summary-grid-row {
  grid-template-columns: 26px minmax(58px, 1fr) repeat(3, 30px) 34px 38px 34px;
  gap: 4px;
  min-width: 0;
  padding: 9px 6px;
}

.summary-grid-side .summary-grid-row {
  grid-template-columns: 22px minmax(64px, 1fr) repeat(3, 26px) 30px 34px 58px;
  gap: 3px;
  min-width: 0;
  padding: 9px 5px;
}

.summary-grid-side-round .summary-grid-row {
  grid-template-columns: 22px minmax(64px, 1fr) 28px 28px 34px 58px;
  gap: 3px;
  min-width: 0;
  padding: 9px 5px;
}

.summary-grid-individual,
.summary-grid-side,
.summary-grid-side-round {
  overflow-x: hidden;
}

.summary-grid-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.summary-grid-row strong,
.summary-grid-row span {
  min-width: 0;
}

.summary-grid-row > span,
.summary-grid-row > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-grid-row > strong:first-child {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-muted);
  color: var(--primary-dark);
}

.summary-grid-team .summary-grid-row > strong:first-child,
.summary-grid-individual .summary-grid-row > strong:first-child,
.summary-grid-side .summary-grid-row > strong:first-child {
  width: 26px;
  height: 26px;
}

.summary-grid-side-round .summary-grid-row > strong:first-child {
  width: 26px;
  height: 26px;
}

.summary-grid-team .summary-grid-row > span,
.summary-grid-team .summary-grid-row > strong,
.summary-grid-individual .summary-grid-row > span,
.summary-grid-individual .summary-grid-row > strong,
.summary-grid-side .summary-grid-row > span,
.summary-grid-side .summary-grid-row > strong,
.summary-grid-side-round .summary-grid-row > span,
.summary-grid-side-round .summary-grid-row > strong {
  font-size: 11px;
  text-align: right;
}

.summary-grid-team .summary-grid-row > span:nth-child(2),
.summary-grid-individual .summary-grid-row > strong:nth-child(2),
.summary-grid-side .summary-grid-row > strong:nth-child(2),
.summary-grid-side-round .summary-grid-row > strong:nth-child(2) {
  text-align: left;
}

.summary-grid-team .summary-grid-head span,
.summary-grid-individual .summary-grid-head span,
.summary-grid-side .summary-grid-head span,
.summary-grid-side-round .summary-grid-head span {
  text-align: right;
}

.summary-grid-team .summary-grid-head span:nth-child(2),
.summary-grid-individual .summary-grid-head span:nth-child(2),
.summary-grid-side .summary-grid-head span:nth-child(2),
.summary-grid-side-round .summary-grid-head span:nth-child(2) {
  text-align: left;
}

.summary-score {
  justify-self: end;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 950;
}

.summary-grid-team .summary-score,
.summary-grid-individual .summary-score,
.summary-grid-side .summary-score,
.summary-grid-side-round .summary-score {
  font-size: 12px;
}

.summary-grid-side .summary-score,
.summary-grid-side-round .summary-score {
  justify-self: stretch;
  text-align: right;
}

.summary-grid-row em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
}

.game-score-strip {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.game-score-strip::-webkit-scrollbar {
  display: none;
}

.game-score-strip em {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 4px 7px;
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.score-progress {
  display: block;
  overflow: hidden;
  height: 6px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--line-soft);
}

.score-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.side-summary-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.side-mode-select {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
}

.attendance-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.attendance-action-row button.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14);
}

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

.side-round-card {
  display: grid;
  gap: 7px;
}

.side-round-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.side-round-title strong {
  color: var(--ink);
}

.score-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.score-dots span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.score-dots .done {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
}

.score-dots .current {
  background: #f97316;
  color: #ffffff;
}

.console-cta,
.more-card {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.console-cta {
  border-color: rgba(15, 118, 110, 0.28);
  background: #f0faf8;
}

.console-cta span,
.more-card span {
  color: var(--muted);
  font-size: 13px;
}

.install-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 8px;
  padding: 14px;
  background: #eefaf7;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.pwa-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.pwa-card strong,
.pwa-card span {
  display: block;
}

.pwa-card strong {
  font-size: 15px;
}

.pwa-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pwa-card.update-card {
  border-color: rgba(212, 75, 54, 0.22);
  background: #fff7f5;
}

.pwa-card.event-day-card {
  border-color: rgba(15, 118, 110, 0.24);
  background: #f2fbf8;
}

.install-card strong,
.install-card span {
  display: block;
}

.install-card strong {
  font-size: 16px;
}

.install-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.install-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.operator-console {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.console-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.console-tabs button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 950;
}

.console-tabs button.active {
  background: var(--primary);
  color: #ffffff;
}

.operator-panel {
  display: grid;
  gap: 12px;
}

.operator-owner-banner {
  display: grid;
  gap: 5px;
  border: 1px solid #d7dfdf;
  border-radius: 8px;
  background: #f7faf9;
  padding: 12px 14px;
  color: var(--muted);
}

.operator-owner-banner strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.operator-owner-banner span {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.operator-owner-banner.active {
  border-color: rgba(16, 132, 115, 0.36);
  background: #e8f7f3;
}

.operator-owner-banner.warning {
  border-color: rgba(194, 111, 35, 0.34);
  background: #fff7ed;
}

.operator-home-card {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  padding: 18px;
  background: #102223;
  color: #ffffff;
}

.operator-home-card > span {
  color: #bfe9df;
  font-size: 15px;
  font-weight: 950;
}

.operator-home-card > strong {
  font-size: 30px;
  line-height: 1.15;
}

.operator-home-card p {
  margin: 0;
  color: #d7ece7;
  font-size: 15px;
  line-height: 1.4;
}

.operator-home-state,
.operator-home-next {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.08);
}

.operator-home-state span,
.operator-home-next span,
.operator-home-state em,
.operator-home-next em {
  color: #c9e7e0;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.operator-home-state strong,
.operator-home-next strong {
  font-size: 18px;
  line-height: 1.35;
}

.operator-flow-hero {
  display: grid;
  gap: 6px;
  padding: 2px 0 0;
}

.operator-flow-hero span {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 950;
}

.operator-flow-hero.warning span {
  color: var(--warning);
}

.operator-flow-hero strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.22;
}

.operator-flow-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.operator-state-card,
.operator-next-card,
.operator-warning-card,
.missing-member-card,
.operator-script-card {
  display: grid;
  gap: 8px;
  border-radius: 16px;
  padding: 18px 20px;
}

.operator-state-card {
  background: #152228;
  color: #ffffff;
}

.operator-state-card span,
.operator-state-card em {
  color: #dbf2eb;
  font-style: normal;
}

.operator-state-card strong {
  font-size: 31px;
  line-height: 1.2;
}

.operator-next-card,
.missing-member-card {
  border: 1px solid #d1d6d1;
  background: #ffffff;
}

.operator-next-card span,
.missing-member-card > span {
  color: var(--muted);
  font-size: 19px;
  font-weight: 950;
}

.operator-next-card strong {
  font-size: 30px;
  line-height: 1.25;
}

.operator-next-card p,
.operator-warning-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.operator-warning-card {
  background: #fff0bd;
}

.operator-warning-card span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.operator-warning-card strong {
  color: #bf7d17;
  font-size: 24px;
  line-height: 1.25;
}

.operator-warning-card.prominent strong {
  font-size: 28px;
}

.missing-score-screen {
  display: grid;
  gap: 14px;
}

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

.missing-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  border-radius: 12px;
  padding: 0 16px;
  background: #fbe5e0;
}

.missing-member-row.secondary {
  background: #fff0bd;
}

.missing-member-row strong {
  font-size: 22px;
}

.missing-member-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 18px;
  font-weight: 950;
}

.operator-script-card {
  background: #dbf0eb;
}

.operator-script-card span {
  color: var(--primary-dark);
  font-size: 19px;
  font-weight: 950;
}

.operator-script-card strong {
  font-size: 20px;
  line-height: 1.45;
}

.operator-help {
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.done-banner {
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 8px;
  padding: 13px 14px;
  background: #e8f8f5;
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 950;
  text-align: center;
}

.status-count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.status-count-grid article {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 6px;
  background: #ffffff;
  text-align: center;
}

.status-count-grid strong {
  font-size: 22px;
}

.status-count-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.prep-summary-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 10px;
  background: #ffffff;
}

.prep-summary-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.prep-summary-grid strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.prep-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.prep-filter-row button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
}

.prep-filter-row button.active {
  border-color: var(--primary);
  background: #e6f5f1;
  color: var(--primary-dark);
}

.prep-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.prep-list-heading h3 {
  margin: 0;
  font-size: 20px;
}

.prep-list-heading span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.prep-list-heading strong {
  color: var(--primary-dark);
  font-size: 15px;
}

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

.prep-participant-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
}

.prep-participant-card.guest {
  border-color: rgba(13, 118, 105, 0.32);
  background: #f4fbf8;
}

.prep-participant-main,
.prep-card-actions,
.prep-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prep-participant-main strong {
  font-size: 21px;
  line-height: 1.15;
}

.prep-participant-main span,
.prep-card-actions span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.prep-participant-main em {
  color: var(--ink);
  font-size: 18px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.prep-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.prep-check {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f8f8;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
  text-align: center;
}

.prep-check.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.prep-check.disabled {
  opacity: 0.45;
}

.prep-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prep-bottom-actions {
  align-items: stretch;
}

.prep-bottom-actions > * {
  flex: 1;
}

.operator-attendance-panel {
  padding-bottom: 16px;
}

.operator-attendance-panel .v7-hero {
  min-height: 246px;
}

.participant-card-list,
.score-issue-list {
  display: grid;
  gap: 10px;
}

.participant-card,
.score-issue-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.participant-card strong,
.score-issue-card strong {
  font-size: 18px;
}

.participant-card span,
.score-issue-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.status-button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.status-choice {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-muted);
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.status-choice.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.payment-split-panel {
  display: grid;
  gap: 10px;
  border-radius: 16px;
  padding: 14px;
  background: #f8f7f0;
}

.payment-split-head {
  display: grid;
  gap: 4px;
}

.payment-split-head span {
  margin: 0;
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 950;
}

.payment-split-head strong {
  font-size: 24px;
  line-height: 1.22;
}

.payment-split-head em,
.payment-split-card em,
.payment-split-note {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.4;
}

.payment-split-card {
  display: grid;
  gap: 3px;
  border-radius: 16px;
  padding: 14px 18px;
}

.payment-split-card.total {
  border: 1px solid #d1d6d1;
  background: #ffffff;
}

.payment-split-card.game-fee {
  background: #e0eefb;
}

.payment-split-card.reserve {
  background: #dbf0eb;
}

.payment-split-card.extra {
  background: #fff0bd;
}

.payment-split-card span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 950;
}

.payment-split-card.game-fee span {
  color: #165191;
}

.payment-split-card.reserve span {
  color: var(--primary-dark);
}

.payment-split-card.extra strong {
  color: #bf7d17;
}

.payment-split-card strong {
  font-size: 30px;
  line-height: 1.15;
}

.payment-split-actions {
  display: grid;
  gap: 8px;
}

.score-issue-panel {
  display: grid;
  gap: 10px;
}

.game-control-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: #f6fbfa;
}

.game-control-card strong {
  display: block;
  font-size: 17px;
}

.game-control-card span {
  color: var(--muted);
  font-size: 13px;
}

.game-control-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.game-control-actions button {
  min-height: 52px;
}

.blue-button,
.dark-button,
.danger-soft-button {
  display: grid;
  min-height: 52px;
  place-items: center;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.2;
}

.blue-button {
  background: #165191;
  color: #ffffff;
}

.dark-button {
  background: #152228;
  color: #ffffff;
}

.danger-soft-button {
  background: #fbe5e0;
  color: #bd2617;
}

.score-issue-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.score-issue-card.needs-check {
  border-color: rgba(183, 121, 31, 0.45);
  background: #fff9eb;
}

.score-issue-card > strong {
  display: grid;
  min-width: 64px;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-dark);
}

.result-highlight-list,
.settlement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.result-highlight-card,
.settlement-grid article,
.simple-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.result-highlight-card,
.settlement-grid article {
  display: grid;
  gap: 5px;
  min-height: 102px;
  padding: 14px;
}

.result-highlight-card:first-child {
  grid-column: 1 / -1;
  background: #fff9eb;
  border-color: rgba(183, 121, 31, 0.38);
}

.result-highlight-card span,
.settlement-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.result-highlight-card strong,
.settlement-grid strong {
  font-size: 22px;
}

.result-highlight-card em {
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 950;
}

.simple-card {
  padding: 14px;
}

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

.simple-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 9px;
}

.simple-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.simple-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.settlement-list {
  display: grid;
  gap: 12px;
}

.settlement-list > div {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.settlement-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.settlement-list strong,
.settlement-list span {
  display: block;
}

.settlement-list strong {
  font-size: 16px;
}

.settlement-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.settlement-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.settlement-amount-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
}

.settlement-amount-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settlement-amount-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 18px;
  font-weight: 850;
}

.settlement-action-row button {
  min-height: 52px;
  font-size: 16px;
}

.wide-action {
  width: 100%;
  min-height: 54px;
  font-size: 17px;
}

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

.metric,
.surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.metric {
  display: grid;
  gap: 10px;
  min-height: 96px;
  padding: 14px;
}

.metric span,
.detail-list span,
.helper-text {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  align-self: end;
  font-size: 23px;
  line-height: 1.08;
}

.dashboard-layout,
.split-layout,
.team-grid,
.wide-left {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.surface {
  min-width: 0;
  padding: 15px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.section-heading.compact {
  margin-top: 20px;
}

.section-heading h3 {
  font-size: 17px;
  line-height: 1.2;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.detail-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.detail-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #ffffff;
}

.detail-list > div:nth-child(even) {
  background: var(--panel-muted);
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list strong {
  text-align: right;
}

.list,
.card-list,
.form-panel,
.more-list {
  display: grid;
  gap: 10px;
}

.event-card-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
}

.event-card-scroll .event-card {
  width: 100%;
}

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.list-item:last-child {
  border-bottom: 0;
}

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

.manual-team-guide {
  border-color: rgba(0, 102, 204, 0.24);
}

.team-member-row {
  align-items: center;
}

.team-move-control {
  min-width: 112px;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.team-move-control select {
  min-height: 34px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 850;
}

.score-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--soft);
  color: var(--primary-dark);
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.paused {
  background: #fff2d6;
  color: #8d570d;
}

.subtabs {
  display: flex;
  gap: 7px;
  margin: 0 -15px 15px;
  overflow-x: auto;
  padding: 0 15px 3px;
  scrollbar-width: none;
}

.subtabs::-webkit-scrollbar {
  display: none;
}

.subtabs span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.inline-input,
.score-input {
  width: 72px;
  min-height: 36px;
  padding: 0 8px;
}

.compact-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.guest-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 12px;
}

.guest-form button {
  min-width: 104px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: 12px;
}

td {
  background: #ffffff;
  font-size: 14px;
}

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

.event-card {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(25, 37, 40, 0.05);
}

.event-card.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, #eefaf7 0%, #ffffff 100%);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.16);
}

.event-card strong {
  font-size: 17px;
  line-height: 1.25;
}

.event-card-meta {
  color: var(--muted);
  font-size: 13px;
}

.event-card-top,
.event-card-counts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.event-card-top small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.event-card-counts {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.event-card-counts span {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #f3f6f6;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.event-badge {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.event-badge.upcoming {
  background: #dff5ef;
  color: #0b6f63;
}

.event-badge.previous {
  background: #eef1f3;
  color: #58656a;
}

.event-badge.event-status-scheduled {
  background: #fff2d6;
  color: #8d570d;
}

.event-badge.event-status-open {
  background: #dff5ef;
  color: #0b6f63;
}

.event-badge.event-status-completed {
  background: #eef1f3;
  color: #58656a;
}

.operator-event-settings {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.operator-event-settings label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.operator-event-settings select {
  width: 100%;
}

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

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

.photo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-picker {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary-dark);
  text-align: center;
}

.file-picker strong {
  font-size: 17px;
  font-weight: 950;
}

.file-picker span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.personal-share-card {
  display: grid;
  gap: 12px;
}

.personal-photo-grid .empty-state {
  grid-column: 1 / -1;
}

.photo-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.photo-card strong,
.photo-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.photo-tile {
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(212, 75, 54, 0.12)),
    #fff;
  color: var(--primary-dark);
  font-size: 28px;
  font-weight: 950;
}

.photo-tile.has-photo {
  background: #111827;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-state {
  margin: 0;
  padding: 22px 0;
  color: var(--muted);
  text-align: center;
}

.bottom-tabs {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.bottom-tab {
  display: grid;
  place-items: center;
  min-height: 50px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.bottom-tab.active {
  background: var(--soft);
  color: var(--primary-dark);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.42);
}

.install-modal {
  display: grid;
  gap: 14px;
  width: min(492px, 100%);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.install-modal h3 {
  margin: 0;
  font-size: 19px;
}

.install-modal ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 84px;
  left: 14px;
  z-index: 20;
  max-width: 492px;
  margin: 0 auto;
  border-radius: 8px;
  padding: 14px 16px;
  background: #172022;
  color: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 521px) {
  body {
    background:
      linear-gradient(90deg, rgba(15, 118, 110, 0.1), rgba(212, 75, 54, 0.08)),
      var(--bg);
  }

  .mobile-shell {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  }
}

.operator-team-balance {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.operator-team-balance .operator-help {
  margin: 0;
}

.seed-group-card .seed-group-table th,
.seed-group-card .seed-group-table td {
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
}

.seed-group-card .seed-group-table tr.seed-tier-1 {
  background: #d8e6f4;
}

.seed-group-card .seed-group-table tr.seed-tier-2 {
  background: #fbe4cf;
}

.seed-group-card .seed-group-table tr.seed-tier-3 {
  background: #dccdee;
}

.seed-group-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}

.seed-tier-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.seed-tier-chip.seed-tier-1 {
  background: #d8e6f4;
  color: #1d3a5c;
}

.seed-tier-chip.seed-tier-2 {
  background: #fbe4cf;
  color: #6b3a17;
}

.seed-tier-chip.seed-tier-3 {
  background: #dccdee;
  color: #3d2461;
}

.event-extra-cost-row {
  display: grid;
  grid-template-columns: 1fr 110px auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.event-extra-cost-row input {
  width: 100%;
}

.attendance-checkout-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

.attendance-checkout-row strong {
  font-size: 14px;
}

.attendance-checkout-amount {
  font-weight: 700;
}

.side-participant-toggle {
  margin: 12px 0;
}

.side-participant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.side-participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.side-participant-chip.active {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.5);
}

.side-participant-chip input {
  width: 14px;
  height: 14px;
}

.operator-tab-bar {
  display: flex;
  gap: 6px;
  padding: 8px 0 12px;
  position: sticky;
  top: 0;
  background: var(--bg, #f3f5f6);
  z-index: 5;
}

.operator-tab-bar button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.operator-tab-bar button.active {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.5);
  color: #0f766e;
}
