@font-face {
  font-family: Club Sans;
  src: url("/fonts/inter/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Young Serif;
  src: url("/fonts/young-serif/regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex Mono;
  src: url("/fonts/plex-mono/medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  --ink: #1d3028;
  --pine: #1b4438;
  --rust: #904427;
  --muted: #59685f;
  --border: #c9cec0;
  --page: #f4f3eb;
  --sheet: #fffef8;
  --tint: #e9ede1;
  --clay: #f5e4d7;
  --serif: "Young Serif", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --sans: "Club Sans", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
}
button:disabled {
  opacity: 0.49;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #a45129;
  outline-offset: 2px;
  z-index: 2;
}
a {
  color: var(--pine);
}
svg {
  flex-shrink: 0;
  stroke-width: 1.65;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font: 400 1.63rem/1.16 var(--serif);
  letter-spacing: -0.038em;
}
h1 {
  font-size: clamp(2.4rem, 4.7vw, 4.1rem);
  line-height: 1.04;
}
small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
strong,
b {
  font-weight: 650;
}
.pagehead,
.top-inner,
main {
  min-width: 0;
}
.top-inner,
main {
  width: min(1152px, calc(100% - 80px));
  margin-inline: auto;
}
main {
  padding-bottom: 52px;
}
.top {
  background: var(--pine);
  color: #fff9e9;
  border-bottom: 3px solid #de9d70;
}
.top-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand > span {
  font: 400 1.55rem/1 var(--serif);
  letter-spacing: -0.055em;
}
.top nav,
.mobilenav nav {
  display: flex;
  align-items: stretch;
}
.top nav {
  align-self: stretch;
  gap: 17px;
}
.top nav button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d3e1d7;
  font-size: 0.92rem;
  font-weight: 550;
  border-bottom: 3px solid transparent;
  padding: 5px 3px 2px;
}
.top nav button[aria-current] {
  border-color: #efba8e;
  color: #fffaf1;
}
.top nav button:hover {
  color: white;
}
.top nav svg {
  width: 16px;
  height: 16px;
}
.profile {
  font-size: 0.88rem;
  text-align: right;
}
.profile small {
  color: #d4dfd2;
  font-size: 0.75rem;
}
.mobilenav {
  display: none;
}
.pagehead,
.match-cover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 31px 0 23px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 20px;
}
.cover-words {
  min-width: 0;
}
.cover-words h1 {
  margin: 5px 0 7px;
}
.cover-words p,
.date,
.stamp,
.cardtop,
.agenda-head,
.undo-strip,
.undo-strip > span,
.total-meta,
.total-meta span,
.match-status,
.actions,
.dialogfoot,
.dialog-head,
.panelhead,
.log-head,
.modebar,
.btn,
.soft,
.textbtn,
.cover-menu button,
.settle,
.toast,
.quick,
.player-label,
.roster-count {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cover-words p,
.date {
  color: var(--muted);
  font-size: 0.94rem;
}
.match-status,
.eyebrow,
.schedule-next small {
  font: 500 0.73rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.match-status {
  color: var(--pine);
  gap: 7px;
}
.match-status i,
.total-meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #40774f;
}
.match-status i.closed {
  background: #796e57;
}
.demo-tag {
  color: var(--muted);
  border-left: 1px solid #a3ada1;
  padding-left: 8px;
}
.eyebrow {
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.cover-menu button,
.soft,
.settle,
.icon,
.btn {
  border-radius: 4px;
  min-height: 43px;
  border: 1px solid var(--border);
  padding: 8px 13px;
  font-size: 0.91rem;
  font-weight: 590;
  justify-content: center;
}
.cover-menu button,
.soft,
.settle,
.icon {
  background: var(--sheet);
}
.btn {
  display: inline-flex;
  color: #fffef4;
  background: var(--pine);
  border-color: var(--pine);
  text-decoration: none;
}
.btn svg,
.soft svg {
  width: 17px;
  height: 17px;
}
.textbtn {
  color: var(--pine);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 0;
  min-height: 39px;
}
.cover-menu button:hover,
.soft:hover,
.icon:hover,
.settle:hover {
  background: var(--tint);
}
.btn:hover {
  background: #10372b;
}
.icon {
  width: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.icon svg {
  width: 17px;
  height: 17px;
}
.live-layout,
.twocol,
.spread {
  display: grid;
  align-items: start;
  gap: 28px;
}
.live-layout {
  grid-template-columns: minmax(0, 2.65fr) minmax(245px, 1fr);
}
.twocol,
.spread {
  grid-template-columns: 1fr 1fr;
}
.eventchooser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--tint);
  padding: 12px 15px;
  margin-bottom: 16px;
}
.eventchooser label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.score-sheet {
  min-width: 0;
}
.boardtabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
.boardtabs button {
  color: var(--muted);
  min-height: 43px;
  padding: 5px 1px 7px;
  border-bottom: 3px solid transparent;
  font-size: 0.92rem;
  font-weight: 570;
  margin-bottom: -1px;
}
.boardtabs button[aria-pressed="true"] {
  color: var(--pine);
  border-color: var(--pine);
}
.score-body {
  min-width: 0;
}
.score-lead,
.panelhead,
.dialog-head,
.log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.score-lead {
  padding: 19px 0 9px;
}
.score-lead h2 {
  font-size: 1.85rem;
}
.roster-count {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}
.modebar {
  gap: 0;
  flex-wrap: wrap;
  margin: 3px 0 14px;
  width: fit-content;
  border: 1px solid #aeb9aa;
  border-radius: 4px;
  overflow: hidden;
}
.modebar button {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 550;
}
.modebar svg {
  width: 14px;
  height: 14px;
}
.modebar button[aria-pressed="true"] {
  background: var(--pine);
  color: white;
}
.modebar button:focus-visible {
  outline-offset: -3px;
}
.score-rows {
  background: var(--sheet);
  border: 1px solid var(--border);
  border-top: 2px solid var(--pine);
}
.matrix {
  --cols: 3;
  --grid: minmax(95px, 1.4fr) repeat(var(--cols), minmax(0, 1fr));
}
.matrix.cols-1 {
  --cols: 1;
}
.matrix.cols-2 {
  --cols: 2;
}
.matrix.cols-4 {
  --cols: 4;
}
.matrix-head,
.matrix .player-row {
  display: grid;
  grid-template-columns: var(--grid);
}
.matrix-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e5eadc;
  border-bottom: 1px solid #adbca7;
}
.matrix-head > span,
.matrix-head > div {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}
.matrix-head > span {
  padding: 10px 14px;
  color: #425646;
  font-size: 0.85rem;
}
.matrix-head > div {
  padding: 8px 3px;
  text-align: center;
  border-left: 1px solid #bdc9b9;
}
.matrix-head strong {
  font-weight: 620;
  font-size: 0.94rem;
  line-height: 1.18;
}
.matrix-head small {
  font: 500 0.73rem/1.25 var(--mono);
  margin-top: 4px;
}
.matrix-head > .others-head {
  color: #783a20;
  background: #eddfcf;
}
.matrix-head > .others-head small {
  color: #734d35;
}
.player-row,
.player-repeat {
  min-width: 0;
  min-height: 54px;
  border-bottom: 1px solid #d9dbcd;
}
.player-row:last-child,
.player-repeat:last-child {
  border-bottom: 0;
}
.player-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
}
.matrix .player-row {
  gap: 0;
  padding: 0;
}
.player-label {
  min-width: 0;
}
.matrix .player-label {
  padding: 8px 14px;
  border-right: 3px double #dbb6a6;
}
.player-name {
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.player-name strong {
  font-size: 1.03rem;
  line-height: 1.25;
  display: block;
}
.player-name small {
  font: 500 0.75rem/1.35 var(--mono);
  margin-top: 2px;
}
.rule-taps {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rule-taps button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #f6f8ee;
  color: var(--pine);
  font-size: 0.88rem;
}
.rule-taps .group-key {
  background: #fbede1;
  color: var(--rust);
}
.matrix .rule-taps {
  display: contents;
}
.matrix .rule-taps button {
  min-width: 0;
  align-self: stretch;
  min-height: 49px;
  border: 0;
  border-left: 1px solid #d9dbcd;
  border-radius: 0;
  background: none;
  padding: 4px;
}
.matrix .rule-taps button:first-child {
  border-left: 0;
}
.matrix .rule-taps .group-key {
  background: #fcf7ee;
}
.rule-taps button:hover:not(:disabled),
.player-repeat:hover:not(:disabled) {
  background: #e6efdf;
}
.rule-taps .group-key:hover:not(:disabled) {
  background: #f7e1ce;
}
.rule-taps button:active:not(:disabled),
.player-repeat:active:not(:disabled) {
  background: #d5e4cb;
}
.rule-taps button:focus-visible {
  outline-offset: -3px;
}
.add-mark {
  width: 25px;
  height: 25px;
  border: 1px solid #afbfad;
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #45664e;
}
.group-key .add-mark {
  color: #925a34;
  border-color: #d8bca1;
}
.tally {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  animation: ack 0.18s ease-out;
  font: 500 0.98rem var(--mono);
}
.tally b {
  font: inherit;
}
.strokes {
  display: inline-flex;
  gap: 3px;
  position: relative;
  transform: skewX(-11deg);
}
.strokes i {
  height: 15px;
  border-left: 2px solid currentColor;
}
.strokes.five:after {
  content: "";
  background: currentColor;
  position: absolute;
  height: 2px;
  left: -2px;
  right: -2px;
  top: 45%;
  transform: rotate(-29deg);
}
@keyframes ack {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}
.group-note,
.held-rule small {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.45;
}
.group-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 3px;
}
.group-note svg {
  color: var(--rust);
}
.held-rule {
  display: grid;
  gap: 5px;
  margin: 10px 0 12px;
  max-width: 440px;
}
.held-rule > span {
  font-size: 0.85rem;
  font-weight: 600;
}
.player-repeat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 6px 13px;
}
.repeat-count {
  margin-left: auto;
  font: 500 1rem var(--mono);
}
.repeat-plus {
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--pine);
  width: 36px;
  height: 36px;
}
.repeat-plus svg {
  width: 18px;
}
.undo-strip {
  border-bottom: 1px solid var(--border);
  padding: 2px 2px 5px;
  font-size: 0.86rem;
  color: var(--muted);
  min-height: 45px;
}
.undo-strip > span {
  display: block;
  flex: 1;
  overflow-wrap: anywhere;
}
.undo-strip button {
  min-height: 42px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--pine);
  font-size: 0.85rem;
}
.match-aside {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.match-total {
  position: relative;
  padding: 19px 20px 21px;
  background: #efe5c9;
  border-top: 3px solid #5c5846;
}
.match-total:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(135deg, transparent 3.5px, var(--page) 0) 0 0/8px
    5px repeat-x;
}
.match-total h2 {
  font: 500 0.82rem/1.4 var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #514b39;
}
.match-total > strong {
  font: 400 clamp(2.6rem, 4.2vw, 3.8rem) / 1.2 var(--serif);
  letter-spacing: -0.065em;
  display: block;
  padding: 5px 0 11px;
}
.total-meta {
  justify-content: space-between;
  gap: 8px;
  border-top: 1px dashed #a29e81;
  padding-top: 10px;
  font-size: 0.8rem;
  color: #4d5848;
}
.total-meta span {
  gap: 5px;
}
.total-meta .slow {
  background: #a85527;
}
.match-log,
.price-list {
  border-bottom: 1px solid var(--border);
  padding: 0 2px 12px;
}
.log-head h2 {
  font-size: 1.22rem;
}
.log-head > svg {
  display: none;
}
.match-log ol {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.match-log li,
.price-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.match-log li > div,
.price-list > div > span {
  flex: 1;
  overflow-wrap: anywhere;
}
.log-symbol {
  display: none;
}
.match-log li strong {
  font-size: 0.92rem;
}
.match-log li b,
.price-list b {
  font: 500 0.84rem var(--mono);
}
.price-list summary {
  cursor: pointer;
  min-height: 34px;
  font-size: 0.94rem;
  font-weight: 580;
}
.settle {
  font-weight: 600;
  background: transparent;
}
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 5px;
  margin: 1px 0 10px;
}
.roster label,
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.roster label {
  padding: 7px 10px;
  background: var(--sheet);
  border-bottom: 1px solid var(--border);
}
.roster .checked {
  background: var(--tint);
}
.roster input,
.checkline input {
  width: 18px;
  height: 18px;
  accent-color: var(--pine);
}
.spread {
  align-items: stretch;
  grid-template-columns: 1.6fr 1fr;
}
.agenda,
.cashcard {
  background: var(--sheet);
  border-top: 2px solid var(--pine);
  padding: 20px;
}
.agenda-head {
  color: var(--muted);
}
.agenda-head h2,
.cardtop .eyebrow {
  font: 500 0.83rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.fixture {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 3px;
}
.fixture time {
  font: 400 clamp(1.6rem, 3vw, 2.5rem) / 1.13 var(--serif);
  letter-spacing: -0.04em;
}
.fixture > span,
.schedule-next span {
  font: 500 0.85rem var(--mono);
}
.agenda p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 13px;
}
.schedule-next {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  border-top: 1px dashed var(--border);
  margin-top: 15px;
  padding-top: 10px;
}
.schedule-next small {
  color: var(--muted);
}
.cashcard {
  background: var(--tint);
}
.cardtop .round {
  display: none;
}
.cash-main {
  margin: 14px 0;
}
.cash-main small {
  font-size: 0.85rem;
}
.cash-main b {
  font: 400 clamp(2.1rem, 4vw, 3rem) / 1.2 var(--serif);
  letter-spacing: -0.055em;
}
.cashsplit,
.balancebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.metric b {
  font: 500 1.05rem/1.5 var(--mono);
}
.cashcard .textbtn {
  margin-top: 12px;
  border-top: 1px solid #bbc7b9;
  width: 100%;
  justify-content: space-between;
}
.section {
  margin: 25px 0;
}
.quickgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--border);
  margin-top: 11px;
}
.quick {
  padding: 12px 14px;
  text-align: left;
  border-right: 1px solid var(--border);
}
.quick:last-child {
  border: 0;
}
.tileicon {
  color: var(--pine);
}
.quick > span:nth-child(2) {
  flex: 1;
}
.quick:hover {
  background: var(--tint);
}
.panel {
  min-width: 0;
  padding: 18px 0;
  margin: 0 0 14px;
  border-top: 2px solid var(--pine);
}
.panelhead,
.dialog-head {
  align-items: center;
  margin-bottom: 12px;
}
.actions {
  flex-wrap: wrap;
}
.balancebar {
  margin: 0 0 24px;
  background: var(--tint);
  border-top: 2px solid var(--pine);
  padding: 16px 20px;
  gap: clamp(20px, 7vw, 90px);
}
.balancebar .metric b {
  font-size: clamp(1rem, 2.4vw, 1.7rem);
}
.balancebar .metric:first-child b {
  color: var(--pine);
}
.line,
.total {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.line {
  min-height: 52px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.line b,
.number,
.total b {
  font: 500 0.95rem var(--mono);
}
.grow {
  flex: 1;
  min-width: 75px;
  overflow-wrap: anywhere;
}
.round {
  color: #657469;
}
.filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.filters button {
  font-size: 0.87rem;
  min-height: 37px;
  padding: 5px 11px;
  border-bottom: 2px solid transparent;
}
.filters button[aria-pressed="true"] {
  color: var(--pine);
  border-color: var(--pine);
  background: var(--tint);
}
.empty,
.field-hint {
  padding: 12px 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
}
dialog {
  width: min(450px, calc(100% - 24px));
  border: 1px solid #92a396;
  border-top: 5px solid var(--pine);
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
  padding: 22px;
  box-shadow: 0 10px 45px #152b2033;
}
dialog::backdrop {
  background: #10251bb3;
}
.dialog-head h2 {
  font-size: 1.6rem;
}
.dialogfoot {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}
.field {
  display: block;
  margin: 11px 0;
}
.field > label {
  display: block;
  font-size: 0.91rem;
  font-weight: 580;
  margin-bottom: 5px;
}
input:not([type="checkbox"]),
select {
  max-width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #a7b3a6;
  border-radius: 3px;
  background: var(--sheet);
  color: var(--ink);
  min-height: 42px;
}
.field input,
.field select {
  width: 100%;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.total {
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.inv {
  margin: 12px 0;
}
.notice,
.error,
.toast {
  padding: 10px 13px;
  font-size: 0.94rem;
}
.notice {
  background: #f4e3bb;
}
.error {
  background: #f5e1d5;
  color: #732c16;
}
.notice button,
.error button {
  text-decoration: underline;
  min-height: 40px;
}
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #fffff2;
  background: var(--pine);
  border-radius: 4px;
}
.waiting {
  padding: 40px 0;
}
.waiting p {
  margin: 16px 0;
}
@media (max-width: 900px) {
  .top-inner,
  main {
    width: calc(100% - 40px);
  }
  .top-inner {
    gap: 15px;
  }
  .top nav {
    gap: 12px;
  }
  .live-layout {
    grid-template-columns: minmax(0, 1fr) minmax(195px, 0.43fr);
    gap: 17px;
  }
  .matrix {
    --grid: minmax(70px, 1fr) repeat(var(--cols), minmax(0, 1fr));
  }
  .quick > svg {
    display: none;
  }
  .quick {
    padding: 11px 6px;
  }
  .match-total {
    padding-inline: 15px;
  }
}
@media (max-width: 690px) {
  .top-inner,
  main {
    width: calc(100% - 28px);
  }
  .top-inner {
    min-height: 54px;
  }
  .top nav {
    display: none;
  }
  .brand {
    gap: 6px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .brand > span {
    font-size: 1.29rem;
  }
  .profile {
    font-size: 0.8rem;
  }
  .profile small {
    font-size: 0.68rem;
  }
  .live-layout,
  .twocol,
  .spread {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pagehead,
  .match-cover {
    padding: 19px 0 14px;
    margin-bottom: 8px;
    align-items: center;
    gap: 7px;
  }
  .cover-words h1 {
    font-size: 2.55rem;
    margin: 4px 0;
  }
  .cover-words p {
    font-size: 0.81rem;
    gap: 5px;
    flex-wrap: wrap;
  }
  .match-status {
    font-size: 0.66rem;
  }
  .cover-menu button {
    min-height: 42px;
    padding: 7px 9px;
    gap: 4px;
    font-size: 0.83rem;
  }
  .cover-menu svg:first-child {
    display: none;
  }
  .boardtabs {
    gap: 18px;
  }
  .boardtabs button {
    font-size: 0.88rem;
    min-height: 43px;
  }
  .score-lead {
    padding: 14px 0 6px;
  }
  .score-lead h2 {
    font-size: 1.52rem;
  }
  .roster-count {
    font-size: 0.8rem;
  }
  .modebar {
    margin: 2px 0 9px;
  }
  .modebar button {
    min-height: 40px;
  }
  .matrix {
    --grid: minmax(66px, 1.03fr) repeat(var(--cols), minmax(0, 1fr));
  }
  .matrix .player-label,
  .matrix-head > span {
    padding-inline: 9px;
  }
  .matrix-head strong {
    font-size: 0.83rem;
  }
  .matrix-head small {
    font-size: 0.68rem;
  }
  .matrix-head > div {
    padding: 7px 2px;
  }
  .player-name strong {
    font-size: 0.96rem;
  }
  .player-name small {
    font-size: 0.72rem;
  }
  .group-note {
    font-size: 0.78rem;
  }
  .tally {
    gap: 4px;
  }
  .matrix .rule-taps button {
    padding: 2px;
  }
  .undo-strip {
    font-size: 0.8rem;
  }
  .match-aside {
    gap: 12px;
  }
  .match-total {
    padding: 12px 15px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
  }
  .match-total > strong {
    font-size: 2rem;
    padding: 0;
  }
  .total-meta {
    grid-column: 1/-1;
    padding-top: 6px;
  }
  .match-log li {
    padding-block: 5px;
  }
  .settle {
    min-height: 45px;
  }
  .date {
    display: none;
  }
  .twocol {
    gap: 0;
  }
  .quickgrid {
    grid-template-columns: 1fr;
  }
  .quick {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 11px 4px;
  }
  .quick > svg {
    display: block;
  }
  .agenda,
  .cashcard {
    padding: 14px;
  }
  .balancebar {
    padding: 12px;
    gap: 15px;
  }
  .line {
    gap: 7px;
  }
  .filters button {
    padding-inline: 7px;
  }
  .player-row {
    flex-wrap: wrap;
  }
  .matrix .player-row {
    flex-wrap: nowrap;
  }
  .rule-taps {
    justify-content: flex-start;
  }
  .match-log,
  .price-list {
    padding-inline: 1px;
  }
  .panelhead h2,
  .section h2 {
    font-size: 1.42rem;
  }
  .mobilenav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--sheet);
    border-top: 1px solid #acb8a9;
    z-index: 5;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobilenav nav {
    justify-content: space-around;
  }
  .mobilenav button {
    min-width: 0;
    flex: 1;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 0.73rem;
    padding: 3px;
    border-top: 3px solid transparent;
  }
  .mobilenav svg {
    width: 17px;
    height: 17px;
  }
  .mobilenav button[aria-current] {
    color: var(--pine);
    border-color: var(--pine);
    background: var(--tint);
    font-weight: 650;
  }
  main {
    padding-bottom: 85px;
  }
  .toast {
    bottom: 68px;
    width: max-content;
    max-width: 92%;
  }
}
@media (max-width: 355px) {
  .cover-words h1 {
    font-size: 2.12rem;
  }
  .matrix {
    --grid: minmax(55px, 1fr) repeat(var(--cols), minmax(0, 1fr));
  }
  .matrix-head > span,
  .matrix .player-label {
    padding-inline: 5px;
  }
  .matrix.cols-4 .tally .strokes {
    display: none;
  }
  .boardtabs {
    gap: 12px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .profile small {
    max-width: 110px;
  }
  .modebar button {
    font-size: 0.78rem;
  }
  .group-note svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tally {
    animation: none;
  }
}
.settlement p {
  line-height: 1.5;
}
.settlement fieldset {
  min-width: 0;
  margin: 13px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
}
.settlement legend {
  font: 400 1.13rem var(--serif);
  padding: 0 4px;
}
.settlement .fields {
  margin: 9px 0;
  gap: 7px;
}
.settlement .fields label {
  min-width: 0;
  font-size: 0.8rem;
}
.settlement input:not([type="hidden"]) {
  width: 100%;
  margin-top: 4px;
}
.pay-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.pay-actions button {
  min-height: 35px;
  text-decoration: underline;
  color: var(--green, var(--pine));
}
.dues-panel .panelhead small {
  margin-top: 4px;
}
.dues-select {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.dues-setup {
  padding: 12px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dues-setup p {
  max-width: 58ch;
  line-height: 1.45;
}
.dues-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.dues-summary b {
  font: 500 1.1rem var(--mono);
}
.dues-amount {
  text-align: right;
}
.dues-row .soft {
  font-size: 0.83rem;
  min-height: 38px;
}
.account-link {
  color: #fff9e9;
  padding: 4px 0 4px 8px;
  text-align: right;
}
.account-link small {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 14px;
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  font-size: 0.86rem;
}
.account-prompt button {
  font-weight: 620;
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 36px;
}
.login-sheet {
  max-width: 410px;
  margin: 18px auto 0;
  border-top: 3px solid var(--pine);
  padding: 22px 0;
}
.login-sheet h1 {
  font-size: 2.8rem;
  margin-bottom: 18px;
}
.auth-field {
  display: grid;
  gap: 5px;
  font-size: 0.93rem;
  font-weight: 560;
  margin: 13px 0;
}
.auth-field input {
  width: 100%;
  font-size: 1rem;
}
.auth-field small {
  font-weight: 400;
}
.account-note {
  line-height: 1.45;
  color: var(--muted);
}
.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 15px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.login-sheet details {
  margin-top: 19px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.login-sheet summary {
  cursor: pointer;
}
.login-sheet form > .btn {
  width: 100%;
  margin-top: 5px;
}

.round-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.round-keys:empty {
  display: none;
}

.row-action,
.club-index a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--pine);
  background: var(--sheet);
  font: 600 0.875rem/1.2 var(--sans);
  text-decoration: none;
}
.row-action:hover,
.club-index a:hover {
  background: var(--tint);
  border-color: #a7b4a6;
}
.row-action:active {
  background: #dce5d7;
}
.row-action.action-danger {
  color: var(--rust);
}
.row-action.action-danger:hover {
  background: var(--clay);
  border-color: #c3a48d;
}
.btn.btn-danger {
  background: #853e28;
  border-color: #853e28;
}
.btn.btn-danger:hover {
  background: #70321f;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.catalog-rule {
  padding: 0.95rem 0;
  border-top: 1px solid var(--border);
}
.rule-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.rule-heading > div {
  overflow-wrap: anywhere;
  min-width: 0;
}
.rule-heading small {
  margin-top: 0.16rem;
}
.rule-heading b {
  font: 500 0.94rem/1.35 var(--mono);
  white-space: nowrap;
}
.catalog-rule .row-actions {
  margin-top: 0.65rem;
}
.club-sections .panel {
  scroll-margin-top: 1rem;
}
.club-index {
  display: none;
}
.balancebar .soft {
  margin-left: auto;
}
.journal-entry .number {
  white-space: nowrap;
}

.rounds {
  padding: 1rem 0 0.5rem;
}
.throw-panel {
  background: var(--sheet);
  border: 1px solid #c3ccbc;
  border-radius: 7px;
}
.throw-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 6px 6px 0 0;
  color: #fffaf0;
  background: var(--pine);
}
.throw-header h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
}
.throw-header > svg {
  color: #f1bd8e;
}
.throw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.4rem), 1fr));
  gap: 0;
  background: var(--sheet);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
.throw-key {
  box-shadow:
    1px 0 var(--border),
    0 1px var(--border);
  position: relative;
  margin: 0 1px 1px 0;
  min-height: 53px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: var(--sheet);
  color: var(--ink);
  font: 600 1rem/1.2 var(--sans);
  text-align: left;
}
.throw-key span {
  flex: 1;
  overflow-wrap: anywhere;
}
.throw-key small {
  font: 500 0.78rem/1.25 var(--mono);
  color: var(--pine);
}
.throw-key svg {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: #e8eddf;
  color: #264e3c;
}
.throw-key:hover {
  background: #eff2e7;
}
.throw-key:active {
  background: #dce6d6;
}
.throw-key:focus-visible {
  outline-offset: -3px;
}
.throw-empty {
  padding: 1rem;
  color: var(--muted);
}
.pin-call {
  margin-top: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--sheet);
}
.pin-call summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  color: var(--pine);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.pin-call summary::-webkit-details-marker {
  display: none;
}
.pin-call summary > svg:last-child {
  margin-left: auto;
}
.pin-call[open] summary > svg:last-child {
  transform: rotate(180deg);
}
.pin-call-body {
  padding: 0.25rem 0.9rem 1rem;
}
.pin-call-body fieldset {
  border: 0;
  padding: 0;
  margin: 0.75rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 0.3rem;
}
.pin-call-body legend {
  margin-bottom: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.pin-call-body .checkline {
  padding: 0.45rem;
  min-height: 44px;
  margin: 0;
  background: var(--page);
  overflow-wrap: anywhere;
}
.pin-call-body .btn {
  margin-top: 0.6rem;
}
.round-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.55rem 0 0.45rem;
}
.round-list-head small {
  font: 500 0.8rem/1.4 var(--mono);
}
.round-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
}
.round-entry .grow {
  min-width: 0;
}
.round-entry .row-actions {
  grid-column: 1/-1;
}
.round-status {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 10rem;
  text-align: right;
}
.round-status.owed {
  color: var(--rust);
  font-weight: 600;
}
.rounds > .empty {
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
}
@media (max-width: 740px) {
  .club-index {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 0.4rem;
  }
  .balancebar .soft {
    margin-left: 0;
  }
  .boardtabs {
    display: grid;
    grid-template-columns: 0.8fr 1.25fr 1.12fr 0.85fr;
    gap: 0;
  }
  .boardtabs button {
    font-size: 0.875rem;
    padding-inline: 0;
    min-height: 44px;
  }
  .journal-entry:has(.row-action) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .journal-entry .row-action {
    grid-column: 2/-1;
    justify-self: start;
  }
}
@media (max-width: 360px) {
  .boardtabs {
    grid-template-columns: 0.7fr 1.22fr 1.12fr 0.8fr;
  }
  .round-entry .row-actions {
    gap: 0.3rem;
  }
}

.confirm-detail {
  white-space: pre-line;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.row-action[aria-pressed="true"] {
  background: var(--tint);
  border-color: #9bad9e;
}
select:not([multiple]) {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231b4438' stroke-width='1.6' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.55rem center;
  background-repeat: no-repeat;
}
@media (max-width: 490px) {
  .throw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .throw-key:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
}
