:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #172f27;
  background: #f7f5eb;
  --green: #153d32;
  --border: #a7b5a9;
  --paper: #fffef9;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 1.5rem, 49rem); margin-inline: auto; }
.masthead { color: #fff9e9; background: var(--green); border-bottom: 4px solid #bc8751; }
.bar, .card-header, .actions { display: flex; align-items: center; gap: .65rem; }
.bar, .card-header { justify-content: space-between; }
.bar { min-height: 3.75rem; }
.brand { font: bold 1.4rem Georgia, serif; text-decoration: none; }
.admin-link { font-size: .95rem; }
a { color: inherit; text-underline-offset: .2em; }
main { padding-block: clamp(1.75rem, 6vw, 3.75rem); }
h1, h2 { font-family: Georgia, serif; overflow-wrap: anywhere; }
h1 { margin: 0 0 .45rem; font-size: clamp(2.2rem, 8vw, 3.8rem); line-height: 1.02; }
h2 { margin: 0; font-size: 1.35rem; }
.intro { margin: .75rem 0 1.5rem; color: #41574e; }
.cards { display: grid; gap: .9rem; }
.card {
  padding: clamp(.55rem, 3vw, 1.15rem);
  border: 1px solid #d5dacd;
  border-radius: .75rem;
  background: var(--paper);
  box-shadow: 0 2px 6px #153d3210;
}
.card-header { margin-bottom: .65rem; padding-inline: .15rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  border: 2px solid var(--green);
  border-radius: .4rem;
  gap: 1px;
  background: var(--green);
  overflow: hidden;
}
button, input { font: inherit; color: inherit; }
button {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: .4rem;
  padding: .48rem .7rem;
  min-height: 2.45rem;
  cursor: pointer;
}
button:hover { background: #edf2e8; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #bd782b; outline-offset: 2px; }
.primary { background: var(--green); color: #fffef9; border-color: var(--green); font-weight: 650; }
.primary:hover { background: #245849; }
.danger { color: #8d2925; }
.grid > * {
  width: 100%;
  min-width: 0;
  min-height: clamp(2.35rem, 10vw, 4rem);
  border: 0;
  border-radius: 0;
  background: var(--paper);
  padding: 0;
  text-align: center;
  font-size: clamp(1rem, 4.3vw, 1.75rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.grid > :focus-visible { outline-offset: -3px; z-index: 1; }
.grid .empty { background: #e7ece2; }
.grid .number[aria-pressed="true"] { background: #a33536; color: #fff; text-decoration: line-through; }
.grid .number[aria-disabled="true"] { cursor: progress; }
.actions { flex-wrap: wrap; }
.toolbar { margin: 1rem 0; }
.card .actions a { padding-inline: .3rem; }
.url { overflow-wrap: anywhere; color: #41574e; }
.field { display: grid; gap: .35rem; margin-bottom: .8rem; font-weight: 600; }
.field input { width: 100%; padding: .55rem; background: white; border: 1px solid var(--border); border-radius: .35rem; }
.field input[readonly] { background: #edf2e8; }
.status { color: #713125; overflow-wrap: anywhere; }
.status:empty { display: none; }
.login { max-width: 26rem; margin-top: 1rem; }
