:root {
  color-scheme: light;
  font-family: Ubuntu, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  --ubuntu-orange: #e95420;
  --ubuntu-aubergine: #2c001e;
  --ubuntu-warm: #f7b733;
  --ink: #242424;
  --muted: #6c6c6c;
  --line: #dedede;
  --surface: #ffffff;
  --canvas: #f6f6f6;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--canvas);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.public-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  color: white;
  background: var(--ubuntu-aubergine);
}

.public-header,
.public-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem);
}

.public-header {
  justify-content: flex-start;
}

.public-footer {
  justify-content: flex-end;
}

.public-footer a {
  border-bottom: 1px solid transparent;
  color: rgb(255 255 255 / 62%);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.public-footer a:hover,
.public-footer a:focus-visible {
  border-color: currentColor;
  color: white;
}

.public-mark {
  position: relative;
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 82%);
  border-radius: 50%;
}

.public-mark span {
  position: absolute;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: white;
}

.public-mark span:nth-child(1) {
  transform: translateY(-0.55rem);
}

.public-mark span:nth-child(2) {
  transform: translate(0.48rem, 0.3rem);
}

.public-mark span:nth-child(3) {
  transform: translate(-0.48rem, 0.3rem);
}

.public-main,
.party-stage {
  position: relative;
  min-height: 24rem;
}

.party-stage {
  width: min(34rem, 82vw);
  height: min(34rem, 70vh);
  margin: auto;
}

.party-disc,
.party-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.party-disc {
  width: clamp(9rem, 30vw, 14rem);
  aspect-ratio: 1;
  border: clamp(0.8rem, 2vw, 1.5rem) solid rgb(255 255 255 / 88%);
  background: var(--ubuntu-orange);
  box-shadow: none;
}

.party-disc::before,
.party-disc::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: white;
}

.party-disc::before {
  width: 15%;
  aspect-ratio: 1;
  inset: 4% auto auto 42%;
}

.party-disc::after {
  width: 11%;
  aspect-ratio: 1;
  inset: 44% auto auto -7%;
}


.admin-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
  background: #f4f4f4;
}

.auth-panel {
  width: min(100%, 22rem);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 7%);
}

.auth-panel h1,
.admin-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.auth-panel form {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.auth-panel label {
  margin-top: 0.45rem;
  color: #4b4b4b;
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-panel input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #bdbdbd;
  border-radius: 0.3rem;
  outline: none;
  background: white;
}

.auth-panel input:focus {
  border-color: var(--ubuntu-orange);
  box-shadow: 0 0 0 3px rgb(233 84 32 / 14%);
}

.auth-panel button,
.button-secondary {
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  border-radius: 0.3rem;
  cursor: pointer;
}

.auth-panel button {
  margin-top: 0.75rem;
  border: 1px solid var(--ubuntu-orange);
  color: white;
  background: var(--ubuntu-orange);
  font-weight: 600;
}

.auth-panel button:hover,
.auth-panel button:focus-visible {
  border-color: #c74315;
  background: #c74315;
}

.form-error {
  margin: 0.45rem 0 0;
  color: #a61b1b;
  font-size: 0.82rem;
}

.admin-page {
  display: block;
  padding: 0;
  background: #f7f7f7;
}

.admin-page main {
  min-height: 100vh;
}

.admin-header {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: white;
}

.button-secondary {
  border: 1px solid #bcbcbc;
  color: #333;
  background: white;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #777;
  background: #f5f5f5;
}

.admin-content {
  min-height: calc(100vh - 4.25rem);
}

@media (max-width: 36rem) {
  .public-header,
  .public-footer {
    padding: 1.25rem;
  }

  .party-stage {
    width: 100vw;
    height: 65vh;
  }

  .admin-header {
    padding: 0 1rem;
  }
}

.admin-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-nav a,
.back-link {
  color: #5c5c5c;
  font-size: 0.84rem;
  text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--ubuntu-orange);
}

.staff-name {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.manager-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.manager-nav > a:not(.admin-title) {
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.button-small {
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
}

.workspace {
  width: min(100%, 74rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.workspace-heading {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.workspace-heading h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: white;
  box-shadow: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.compact-form,
.assignment-form {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem;
}

.compact-form h2,
.assignment-form h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.compact-form label {
  margin-top: 0.25rem;
  color: #555;
  font-size: 0.78rem;
  font-weight: 600;
}

.compact-form input,
.guest-login-panel input {
  min-height: 2.6rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #bdbdbd;
  border-radius: 0.3rem;
  outline: none;
}

.compact-form input:focus,
.guest-login-panel input:focus {
  border-color: var(--ubuntu-orange);
  box-shadow: 0 0 0 3px rgb(233 84 32 / 14%);
}

.compact-form button,
.assignment-form > button,
.printer-actions button,
#print-guest-card {
  min-height: 2.55rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--ubuntu-orange);
  border-radius: 0.3rem;
  color: white;
  background: var(--ubuntu-orange);
  cursor: pointer;
  font-weight: 600;
}

.printer-actions .button-secondary {
  border-color: #bcbcbc;
  color: #333;
  background: white;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.table-panel {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e8e8e8;
  text-align: left;
}

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

th {
  color: #6b6b6b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td {
  font-size: 0.88rem;
}

td a {
  color: #222;
  font-weight: 600;
  text-decoration-color: #ccc;
  text-underline-offset: 0.2rem;
}

.table-action {
  padding: 0;
  border: 0;
  color: #555;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.guest-card-preview {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.manager-guest-card {
  width: min(100%, 24rem);
}

.guest-card-preview img {
  display: block;
  width: min(100%, 18rem);
  cursor: zoom-in;
  image-rendering: pixelated;
}

.guest-card-preview img:focus-visible {
  outline: 3px solid var(--ubuntu-orange);
  outline-offset: 0.25rem;
}

.qr-preview {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border: 0;
  background: white;
}

.qr-preview[open] {
  display: grid;
  place-items: center;
}

.qr-preview::backdrop {
  background: rgb(0 0 0 / 72%);
}

.qr-preview img {
  display: block;
  width: min(88vw, 38rem);
  max-height: calc(100dvh - 6rem);
  object-fit: contain;
  image-rendering: pixelated;
}

.qr-preview button {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #aaa;
  border-radius: 0.35rem;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.guest-card-preview > strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.printer-actions {
  display: flex;
  width: 100%;
  gap: 0.6rem;
}

.bulk-print-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.bulk-print-panel > div:first-child {
  display: grid;
  gap: 0.15rem;
}

.bulk-print-panel > div:first-child span {
  color: var(--muted);
  font-size: 0.74rem;
}

.bulk-print-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.bulk-print-actions button {
  min-height: 2.65rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--ubuntu-orange);
  border-radius: 0.35rem;
  color: white;
  background: var(--ubuntu-orange);
  cursor: pointer;
  font-weight: 700;
}

.bulk-print-actions .button-secondary {
  border-color: #bcbcbc;
  color: #333;
  background: white;
}

.bulk-print-panel .device-status {
  grid-column: 1 / -1;
}

.printer-actions button {
  flex: 1;
  margin: 0;
}

.device-status {
  min-height: 1.1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #e8e8e8;
}

.guest-team-assignment {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.guest-team-assignment > label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.guest-team-assignment > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.guest-team-assignment select,
.guest-team-assignment button {
  min-height: 2.75rem;
  border-radius: 0.35rem;
  font: inherit;
}

.guest-team-assignment select {
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid #bdbdbd;
  background: white;
}

.guest-team-assignment button {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--ubuntu-orange);
  color: white;
  background: var(--ubuntu-orange);
  cursor: pointer;
  font-weight: 700;
}

.status-pill {
  padding: 0.3rem 0.55rem;
  border: 1px solid #ccc;
  border-radius: 99rem;
  color: #555;
  background: white;
  font-size: 0.72rem;
}

.score-value {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.score-actions form {
  display: flex;
  gap: 0.4rem;
}

.score-actions button,
.manager-score-row button {
  min-width: 3.2rem;
  min-height: 2.4rem;
  border: 1px solid #bbb;
  border-radius: 0.3rem;
  background: white;
  cursor: pointer;
  font-weight: 700;
}

.score-actions button:last-child,
.score-plus {
  border-color: var(--ubuntu-orange) !important;
  color: white;
  background: var(--ubuntu-orange) !important;
}

.assignment-form {
  width: min(100%, 28rem);
}

.assignment-form label {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid #ededed;
  font-size: 0.9rem;
}

.stat-grid,
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-overview {
  overflow: hidden;
}

.admin-overview a {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.admin-overview a:last-child {
  border-bottom: 0;
}

.admin-overview strong {
  font-variant-numeric: tabular-nums;
}

.stat-grid a,
.game-link {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.stat-grid strong {
  font-size: 2rem;
}

.stat-grid span,
.game-link span {
  color: var(--muted);
  font-size: 0.78rem;
}

.team-list {
  display: grid;
  gap: 0.7rem;
}

.team-list-row,
.team-ranking-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.team-list-row {
  min-height: 4.5rem;
  padding: 0.8rem 1rem;
  color: inherit;
  text-decoration: none;
}

.team-list-row > span,
.team-ranking-row > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.team-list-row > div,
.team-ranking-row > div {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.team-mascot {
  display: inline-block;
  margin-right: 0.4rem;
  line-height: 1;
}

.mascot-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.mascot-picker legend {
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.mascot-picker label {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 3.5rem;
  place-items: center;
  gap: 0.05rem;
  padding: 0.35rem;
  border: 1px solid #d7d7d7;
  border-radius: 0.4rem;
  background: white;
  cursor: pointer;
}

.mascot-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mascot-picker label:has(input:checked) {
  border-color: var(--ubuntu-orange);
  outline: 2px solid rgb(233 84 32 / 18%);
}

.mascot-picker label:focus-within {
  outline: 2px solid var(--ubuntu-orange);
  outline-offset: 1px;
}

.mascot-picker span {
  font-size: 1.35rem;
  line-height: 1;
}

.mascot-picker small {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-list-row small,
.team-ranking-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-list-row > b,
.team-ranking-row > b {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.team-manage-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.team-settings > form + form {
  border-top: 1px solid var(--line);
}

.team-assign-form select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #bdbdbd;
  border-radius: 0.3rem;
  background: white;
  font: inherit;
}

.team-members {
  overflow: hidden;
}

.team-members h2,
.team-game-ranking h2 {
  margin: 0;
  font-size: 1rem;
}

.team-members h2 {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.team-member-row {
  display: flex;
  min-height: 3.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem 0.55rem 1rem;
  border-bottom: 1px solid #ececec;
}

.team-member-row:last-child {
  border-bottom: 0;
}

.team-member-row button {
  min-height: 2.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #bbb;
  border-radius: 0.3rem;
  color: #555;
  background: white;
  cursor: pointer;
}

.team-game-ranking {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: white;
  box-shadow: 0 0.2rem 1rem rgb(0 0 0 / 4%);
}

.team-ranking-rows {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.team-ranking-row {
  min-height: 3.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e2e2;
  border-radius: 0.4rem;
}

.section-heading {
  min-height: 2.8rem;
  margin-top: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.guest-shell .team-game-ranking {
  border-color: var(--line);
  color: var(--ink);
  background: white;
  box-shadow: none;
}

.guest-shell .team-ranking-row {
  border-color: var(--line);
  background: white;
}

.guest-shell .team-ranking-row > span,
.guest-shell .team-ranking-row small {
  color: var(--muted);
}

.guest-shell .team-ranking-row.is-current-team {
  border-color: var(--ubuntu-orange);
  color: var(--ubuntu-aubergine);
  background: #fff7f3;
}

.guest-shell .team-ranking-row.is-current-team > span,
.guest-shell .team-ranking-row.is-current-team small {
  color: var(--ubuntu-orange);
}

.is-inactive {
  opacity: 0.58;
}

.manager-score-list {
  overflow: hidden;
}

.manager-score-row {
  display: grid;
  grid-template-columns: 3rem minmax(7rem, 1fr) 4rem auto;
  min-height: 4.25rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #e5e5e5;
}

.manager-score-row:last-child {
  border-bottom: 0;
}

.manager-score-row .rank {
  color: var(--muted);
  font-size: 0.78rem;
}

.manager-score-row form {
  display: flex;
  gap: 0.45rem;
}

.guest-shell {
  min-height: 100vh;
  color: var(--ink);
  background: #f4f2f0;
}

.guest-header {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.15rem;
  padding-top: env(safe-area-inset-top);
  border-bottom: 0;
  color: white;
  background: var(--ubuntu-orange);
}

.guest-header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.guest-header button {
  padding: 0.35rem;
  border: 0;
  color: rgb(255 255 255 / 70%);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
}

.guest-main {
  width: min(100%, 38rem);
  margin: 0 auto;
  padding: 1.15rem;
}

.guest-page-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: white;
}

.guest-page-nav a {
  display: grid;
  min-height: 2.8rem;
  place-items: center;
  border-right: 1px solid var(--line);
  color: #4c4c4c;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.guest-page-nav a:last-child {
  border-right: 0;
}

.guest-overall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.guest-team {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #efc8b9;
  border-radius: 0.55rem;
  background: #fff7f3;
}

.guest-own-team {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem;
  border-radius: 0.65rem;
  color: white;
  background: var(--ubuntu-aubergine);
}

.guest-own-team-mascot {
  display: grid;
  width: 2.65rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.5rem;
  background: white;
  font-size: 1.45rem;
}

.guest-own-team > div {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.guest-own-team span {
  color: rgb(255 255 255 / 65%);
  font-size: 0.68rem;
}

.guest-own-team strong {
  overflow-wrap: anywhere;
}

.guest-board-section {
  scroll-margin-top: 5rem;
  margin-top: 1.35rem;
}

.guest-board-section > h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.guest-overall div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: white;
}

.guest-overall span,
.guest-game span {
  color: var(--muted);
  font-size: 0.74rem;
}

.guest-overall strong {
  font-size: 1.8rem;
}

.guest-games {
  display: grid;
  gap: 0.65rem;
}

.guest-game {
  display: flex;
  min-height: 4.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  background: white;
  text-decoration: none;
}

.guest-game > div {
  display: grid;
  gap: 0.2rem;
}

.guest-game > div:last-child {
  justify-items: end;
}

.guest-game span {
  color: var(--muted);
}

.guest-login-panel {
  width: min(calc(100% - 2rem), 21rem);
  margin: 0 auto;
  padding-top: max(5rem, 18vh);
}

.guest-login-panel form {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: white;
}

.guest-login-panel label {
  font-size: 0.8rem;
  font-weight: 700;
}

.guest-login-panel button {
  min-height: 2.6rem;
  border: 0;
  border-radius: 0.3rem;
  color: white;
  background: var(--ubuntu-orange);
  cursor: pointer;
  font-weight: 700;
}

.guest-ranking-header {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 4rem;
}

.guest-ranking-header a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: white;
  font-size: 0.82rem;
  text-decoration: none;
}

.guest-ranking-header h1 {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-ranking {
  display: grid;
  gap: 0.55rem;
}

.guest-ranking-row {
  display: grid;
  min-height: 4rem;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: white;
}

.guest-ranking-row > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.guest-ranking-row > b {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.guest-ranking-row.is-current-guest {
  border-color: var(--ubuntu-orange);
  color: var(--ubuntu-aubergine);
  background: #fff7f3;
}

.guest-ranking-row.is-current-guest > span {
  color: var(--ubuntu-orange);
}

.guest-team-board {
  display: grid;
  gap: 0.65rem;
}

.guest-team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: white;
}

.guest-team-card.is-current-team {
  border-color: var(--ubuntu-orange);
}

.guest-team-card summary {
  display: grid;
  min-height: 4.5rem;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

.guest-team-card summary::-webkit-details-marker {
  display: none;
}

.guest-team-rank {
  color: var(--muted);
  font-size: 0.78rem;
}

.guest-team-identity {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.12rem 0.4rem;
  align-items: center;
}

.guest-team-identity > span {
  grid-row: 1 / 3;
  font-size: 1.25rem;
}

.guest-team-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-team-identity small {
  color: var(--muted);
  font-size: 0.7rem;
}

.guest-team-card summary > b,
.guest-team-member > b {
  font-variant-numeric: tabular-nums;
}

.guest-team-members {
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.guest-team-member {
  display: grid;
  min-height: 3.15rem;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #e9e9e9;
  font-size: 0.86rem;
}

.guest-team-member:last-child {
  border-bottom: 0;
}

.guest-team-member > span {
  color: var(--muted);
  font-size: 0.74rem;
}

.guest-team-member.is-current-guest {
  color: var(--ubuntu-aubergine);
  background: #fff3ed;
}

.score-request-status {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.75rem 0.9rem;
  border-radius: 0.35rem;
  color: white;
  background: #333;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 22%);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

.score-request-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.score-request-status.is-error {
  background: #981b1b;
}

[data-score-form].is-pending {
  opacity: 0.62;
}

.score-updated {
  animation: score-confirmed 380ms ease-out;
}

@keyframes score-confirmed {
  35% { background-color: #fff1c8; }
}

.danger-zone {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #dfc5c5;
}

.danger-zone button {
  min-height: 2.55rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid #b43232;
  border-radius: 0.3rem;
  color: #9b2020;
  background: white;
  cursor: pointer;
  font-weight: 650;
}

.danger-zone button:hover,
.danger-zone button:focus-visible {
  color: white;
  background: #a52626;
}

.danger-zone button:disabled {
  border-color: #ccc;
  color: #888;
  background: #f3f3f3;
}

.guest-list-danger {
  margin-top: 1.25rem;
}

.team-danger-zone {
  margin-top: 1.25rem;
}

@media (max-width: 46rem) {
  .danger-zone,
  .danger-zone form,
  .danger-zone button {
    width: 100%;
  }

  .danger-zone button {
    min-height: 3rem;
  }
}

@media (max-width: 46rem) {
  .admin-header {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: calc(3.75rem + env(safe-area-inset-top));
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: env(safe-area-inset-top) 0.85rem 0;
  }

  .admin-nav,
  .manager-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(3.9rem + env(safe-area-inset-bottom));
    align-items: start;
    padding: 0.35rem 0.25rem env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -0.25rem 1rem rgb(0 0 0 / 6%);
  }

  .admin-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .manager-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .admin-nav a,
  .manager-nav > a:not(.admin-title) {
    display: grid;
    min-width: 0;
    min-height: 3.25rem;
    place-items: center;
    padding: 0.35rem 0.1rem;
    color: #4e4e4e;
    font-size: clamp(0.6rem, 2.8vw, 0.72rem);
    font-weight: 650;
    line-height: 1;
    text-align: center;
  }

  .staff-name {
    display: none;
  }

  .admin-header .button-small {
    min-height: 2.5rem;
  }

  .admin-page main.workspace {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }

  .workspace {
    padding: 1rem 0.85rem;
  }

  .workspace-heading {
    min-height: 2.75rem;
    margin-bottom: 0.85rem;
  }

  .workspace-heading h1 {
    font-size: 1.35rem;
  }

  .compact-form,
  .assignment-form {
    padding: 1rem;
  }

  .compact-form input,
  .compact-form button,
  .assignment-form > button,
  .team-assign-form select {
    min-height: 3rem;
  }

  .split-layout,
  .detail-grid,
  .stat-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .manager-score-row {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .manager-score-row form {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .manager-score-row button {
    min-width: 0;
    min-height: 3rem;
    font-size: 1rem;
  }

  .table-panel {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .table-panel table,
  .table-panel tbody {
    display: block;
  }

  .table-panel thead {
    display: none;
  }

  .table-panel tbody {
    display: grid;
    gap: 0.65rem;
  }

  .table-panel tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: white;
  }

  .table-panel td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .table-panel td::before {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .score-table tr {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    align-items: center;
  }

  .score-table td:last-child {
    grid-column: 1 / -1;
  }

  .score-table .score-actions form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .score-table .score-actions button {
    min-height: 3rem;
    font-size: 1rem;
  }

  .team-manage-grid {
    grid-template-columns: 1fr;
  }

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

  .mascot-picker label {
    min-height: 4rem;
  }

  .team-ranking-row,
  .team-list-row {
    grid-template-columns: 2.35rem minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .team-game-ranking {
    padding: 0.85rem;
  }

  .guest-main {
    padding: 0.85rem;
  }

  .guest-header {
    min-height: calc(3.75rem + env(safe-area-inset-top));
    padding-inline: 0.9rem;
  }

  .guest-overall {
    gap: 0.6rem;
  }

  .guest-overall div {
    padding: 0.85rem;
  }

  .guest-game,
  .guest-ranking-row {
    min-height: 4.5rem;
  }

  .guest-card-preview {
    padding: 1rem;
  }

  .printer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .printer-actions button {
    min-height: 3rem;
  }

  .danger-zone {
    margin-top: 1.25rem;
  }
}

.admin-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #b8b8b8;
  border-radius: 0.35rem;
  color: #333;
  background: white;
  font-size: 0.82rem;
}

.admin-notice-error {
  border-color: #d39b9b;
  color: #8b1717;
  background: #fff7f7;
}

.admin-notice-success {
  border-color: #9ebda7;
  color: #245d34;
  background: #f6fff8;
}

.admin-command {
  overflow-x: auto;
  border-color: #c9aa5c;
  background: #fff9e8;
  user-select: all;
}

.admin-command code {
  color: #493600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.admin-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-command button {
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid #a88632;
  border-radius: 0.25rem;
  color: #493600;
  background: white;
  cursor: pointer;
  font-weight: 650;
}

.printer-test-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
}

.printer-test-panel > div {
  display: grid;
  gap: 0.25rem;
}

.printer-test-panel span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

.printer-test-panel button,
.local-print-form button {
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #9a6c00;
  border-radius: 0.3rem;
  color: #674800;
  background: #fff4ce;
  cursor: pointer;
  font-weight: 650;
}

.local-print-form {
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.local-print-form button {
  width: 100%;
}

@media (max-width: 36rem) {
  .printer-test-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 46rem) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  button,
  a,
  input {
    touch-action: manipulation;
  }

  .admin-page {
    min-width: 0;
  }

  .admin-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 0.75rem;
    padding: calc(0.65rem + env(safe-area-inset-top)) 0.75rem 0.55rem;
    box-shadow: 0 0.2rem 0.8rem rgb(0 0 0 / 7%);
  }

  .admin-title {
    align-self: center;
    font-size: 1.05rem;
  }

  .admin-header > form {
    justify-self: end;
  }

  .admin-header .button-small {
    min-height: 2.75rem;
    padding-inline: 0.9rem;
  }

  .admin-nav {
    display: grid;
    width: calc(100% + 1.5rem);
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0.1rem -0.75rem -0.55rem;
    border-top: 1px solid var(--line);
  }

  .admin-nav a {
    display: grid;
    min-width: 0;
    min-height: 2.9rem;
    place-items: center;
    padding: 0.35rem 0.15rem;
    border-right: 1px solid #ececec;
    font-size: 0.76rem;
    font-weight: 650;
  }

  .admin-nav a:last-child {
    border-right: 0;
  }

  .manager-shell .admin-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding-bottom: 0.65rem;
  }

  .manager-nav {
    gap: 0.75rem;
  }

  .staff-name {
    overflow: hidden;
    align-self: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workspace {
    width: 100%;
    padding: 0.85rem max(0.75rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  }

  .workspace-heading {
    min-height: 2.8rem;
    margin-bottom: 0.75rem;
  }

  .workspace-heading h1 {
    font-size: 1.45rem;
  }

  .back-link {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    font-size: 0.8rem;
  }

  .split-layout,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .compact-form,
  .assignment-form {
    width: 100%;
    gap: 0.7rem;
    padding: 1rem;
  }

  .compact-form label,
  .auth-panel label {
    font-size: 0.86rem;
  }

  .compact-form input,
  .auth-panel input,
  .guest-login-panel input {
    min-height: 3rem;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
  }

  .team-assign-form select {
    min-height: 3rem;
    font-size: 1rem;
  }

  .compact-form button,
  .assignment-form > button,
  .auth-panel button,
  .printer-actions button,
  #print-guest-card,
  .local-print-form button {
    min-height: 3rem;
  }

  .table-panel {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-page table,
  .admin-page tbody {
    display: block;
    width: 100%;
  }

  .admin-page thead {
    display: none;
  }

  .admin-page tbody {
    display: grid;
    gap: 0.7rem;
  }

  .admin-page tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 0.15rem 0.6rem rgb(0 0 0 / 4%);
  }

  .admin-page td {
    display: flex;
    min-width: 0;
    min-height: 2.85rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #ececec;
    font-size: 0.92rem;
    text-align: right;
  }

  .admin-page td:last-child {
    border-bottom: 0;
  }

  .admin-page td::before {
    flex: 0 0 auto;
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }

  .admin-page td a {
    display: inline-flex;
    min-height: 2.4rem;
    align-items: center;
    font-size: 1rem;
  }

  .table-action {
    min-height: 2.4rem;
    padding: 0 0.35rem;
    font-size: 0.85rem;
  }

  .score-actions {
    display: grid !important;
    gap: 0.5rem !important;
    text-align: left !important;
  }

  .score-actions::before {
    justify-self: start;
  }

  .score-actions form {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .score-actions button {
    min-height: 3.1rem;
    font-size: 1rem;
  }

  .score-table tr {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: 0.35rem 0.65rem;
    padding: 0.8rem;
  }

  .score-table td {
    min-height: 0;
    padding: 0;
    border: 0;
  }

  .score-table td::before {
    display: none;
  }

  .score-table td[data-label="Rank"] {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    color: var(--muted);
    font-size: 0.78rem;
  }

  .score-table td[data-label="Guest"] {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
  }

  .score-table td[data-label="Points"] {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
  }

  .score-table td[data-label="Change"] {
    display: block !important;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.4rem;
  }

  .score-value {
    font-size: 1.15rem !important;
  }

  .summary-row {
    min-height: 3.25rem;
    align-items: center;
  }

  .guest-card-preview {
    gap: 0.85rem;
    padding: 1rem;
  }

  .guest-card-preview img {
    width: min(100%, 19rem);
  }

  .printer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .assignment-form label {
    min-height: 3rem;
    font-size: 1rem;
  }

  .assignment-form input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .stat-grid a {
    min-width: 0;
    padding: 0.85rem 0.55rem;
    text-align: center;
  }

  .stat-grid strong {
    font-size: 1.65rem;
  }

  .stat-grid span {
    font-size: 0.72rem;
  }

  .printer-test-panel,
  .admin-command {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-command code {
    overflow-x: auto;
    padding-bottom: 0.3rem;
    font-size: 0.78rem;
    white-space: pre;
  }

  .admin-command button,
  .printer-test-panel button {
    min-height: 2.85rem;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .team-manage-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .team-member-row {
    min-height: 3.9rem;
  }

  .team-member-row button {
    min-height: 2.8rem;
  }

  .team-game-ranking {
    padding: 0.8rem;
  }

  .team-ranking-row {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    padding: 0.65rem;
  }

  .game-link {
    min-height: 4.25rem;
    align-content: center;
    padding: 0.9rem 1rem;
  }

  .game-link strong {
    font-size: 1.05rem;
  }

  .manager-score-list {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .manager-score-row {
    display: grid;
    min-height: 0;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: 0.4rem 0.65rem;
    margin-bottom: 0.7rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 0.15rem 0.6rem rgb(0 0 0 / 4%);
  }

  .manager-score-row .rank {
    grid-column: 1;
    grid-row: 1;
  }

  .manager-score-row > strong {
    overflow: hidden;
    grid-column: 2;
    grid-row: 1;
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .manager-score-row > .score-value {
    grid-column: 3;
    grid-row: 1;
  }

  .manager-score-row form {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.35rem;
  }

  .manager-score-row button {
    min-width: 0;
    min-height: 3.25rem;
    font-size: 1.05rem;
  }

  .admin-shell:not(.admin-page) {
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  }

  .auth-panel {
    width: 100%;
    max-width: 24rem;
    padding: 1.25rem;
  }

  .guest-header {
    position: sticky;
    z-index: 10;
    top: 0;
    min-height: calc(4rem + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
    background: rgb(44 0 30 / 78%);
    backdrop-filter: blur(0.8rem);
  }

  .guest-header h1 {
    overflow: hidden;
    font-size: 1.35rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guest-header button {
    min-width: 3rem;
    min-height: 2.75rem;
    font-size: 0.82rem;
  }

  .guest-main {
    width: 100%;
    padding: 0.8rem max(0.75rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  }

  .guest-overall {
    gap: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .guest-overall div {
    min-height: 6rem;
    align-content: center;
    padding: 0.85rem;
  }

  .guest-overall span {
    font-size: 0.8rem;
  }

  .guest-overall strong {
    font-size: 2rem;
  }

  .guest-games {
    gap: 0.65rem;
  }

  .guest-game {
    min-height: 4.8rem;
    padding: 0.85rem 1rem;
  }

  .guest-game > div:first-child strong {
    font-size: 1.05rem;
  }

  .guest-game > div:last-child strong {
    font-size: 1.25rem;
  }

  .guest-game span {
    font-size: 0.8rem;
  }

  .guest-login-panel {
    width: min(calc(100% - 1.5rem), 24rem);
    padding-top: 18vh;
  }

  .guest-login-panel form {
    padding: 1rem;
  }

  .guest-login-panel button {
    min-height: 3rem;
  }
}

@media (max-width: 46rem) {
  .admin-page main.workspace {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  .admin-page tr,
  .manager-score-row {
    box-shadow: none;
  }

  .workspace-heading h1,
  .guest-team strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .guest-header {
    color: white;
    background: var(--ubuntu-orange);
    backdrop-filter: none;
  }

  .guest-header button {
    color: white;
  }

  .guest-team-assignment select,
  .guest-team-assignment button {
    min-height: 3rem;
  }

  .bulk-print-panel {
    grid-template-columns: 1fr;
  }

  .bulk-print-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bulk-print-actions form,
  .bulk-print-actions button {
    width: 100%;
  }

  .bulk-print-actions button {
    min-height: 3rem;
  }

  .bulk-print-actions form:last-child {
    grid-column: 1 / -1;
  }

  .guest-own-team {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 0.55rem;
  }

  .guest-own-team > div:last-child {
    display: grid;
  }

  .admin-nav {
    right: 0;
    left: 0;
    width: 100%;
    margin: 0;
  }
}
