.admin-editor {
  --admin-roster-gap: 12px;
  --admin-bench-width: 285px;
  --admin-drop-accent: #c9a25e;
  --admin-drop-surface: rgba(201, 162, 94, .09);
  --admin-chip-surface: #17110c;
  --seat-role-cell-size: 34px;
  --seat-role-cell-height: 32px;
  --seat-role-control-gap: 2px;
  --seat-role-control-padding: 3px;
  --seat-role-control-surface: rgba(8, 6, 4, .74);
  --seat-role-control-border: rgba(201, 162, 94, .24);
  --seat-role-control-hover: rgba(201, 162, 94, .1);
  --seat-role-selected-surface: linear-gradient(165deg, rgba(126, 29, 23, .96), rgba(59, 14, 12, .98));
  --seat-role-selected-border: rgba(237, 202, 132, .72);
  --seat-role-art-size: 24px;
  --seat-role-sheriff-size: 29px;
}

.admin-edit-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(201, 162, 94, .4);
  border-radius: 50%;
  background: rgba(18, 12, 8, .88);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  color: #d8b46f;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.admin-edit-button:hover,
.admin-edit-button:focus-visible {
  border-color: rgba(236, 203, 136, .82);
  background: #711914;
  color: #fff1d6;
  outline: 0;
  transform: translateY(-1px);
}

.admin-edit-button svg { width: 16px; height: 16px; pointer-events: none; }
.admin-edit-button--small { width: 28px; height: 28px; }
.admin-edit-button--small svg { width: 13px; height: 13px; }

.admin-edit-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-edit-heading h1,
.admin-edit-heading h3 { margin-block: 0; }
.evening-record__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.evening-record__games > .admin-edit-button { margin-left: -4px; }

.admin-editor {
  width: min(780px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 94, .52);
  border-radius: 6px;
  background: #100c09;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .74);
  color: #e9ddca;
}

.admin-editor--game { width: min(1120px, calc(100vw - 24px)); }
.admin-editor::backdrop { background: rgba(3, 2, 1, .78); backdrop-filter: blur(5px); }
.admin-editor[open] { animation: admin-editor-in .18s ease-out; }

@keyframes admin-editor-in {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: none; }
}

.admin-editor__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 66px;
  padding: 15px 18px 15px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(201, 162, 94, .22);
  background: rgba(16, 12, 9, .98);
}

.admin-editor__title {
  margin: 0;
  color: #f0dec0;
  font-family: 'Oswald', sans-serif;
  font-size: 21px;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.admin-editor__close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #bfae97;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.admin-editor__close:hover,
.admin-editor__close:focus-visible { background: rgba(201, 162, 94, .1); color: #fff0d3; outline: 0; }

.admin-editor__form {
  max-height: calc(min(88vh, 920px) - 66px);
  padding: 22px;
  overflow-y: auto;
}

.admin-editor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-editor--game .admin-editor__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-editor__field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #d1c0aa;
  font-size: 13px;
}

.admin-editor__field--wide { grid-column: 1 / -1; }
.admin-editor__field > span { font-weight: 700; letter-spacing: .035em; }

.admin-editor input,
.admin-editor select,
.admin-editor textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid rgba(201, 162, 94, .3);
  border-radius: 3px;
  background: #0a0806;
  color: #f0e6d7;
  font: inherit;
  color-scheme: dark;
}

.admin-editor textarea { min-height: 92px; resize: vertical; }
.admin-editor input:focus,
.admin-editor select:focus,
.admin-editor textarea:focus { border-color: #c9a25e; outline: 2px solid rgba(201, 162, 94, .14); }

.admin-editor__actions {
  position: sticky;
  bottom: -22px;
  z-index: 2;
  display: flex;
  margin: 22px -22px -22px;
  padding: 16px 22px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(201, 162, 94, .22);
  background: rgba(16, 12, 9, .98);
}

.admin-editor--game .admin-editor__actions {
  position: static;
  margin-top: 18px;
}

.admin-editor__status {
  min-height: 20px;
  margin: 18px 0 0;
  color: #cfb77f;
  font-size: 14px;
}

.admin-editor__status[data-state="error"] { color: #ff9189; }
.admin-editor__status[data-state="success"] { color: #a8d6a1; }

.admin-editor__button {
  display: inline-flex;
  min-height: 43px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 162, 94, .44);
  border-radius: 3px;
  background: transparent;
  color: #d8c5a8;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-editor__button--primary { background: linear-gradient(180deg, #8c1f19, #5a110d); color: #fff0d6; }
.admin-editor__button:hover { border-color: #d8b46f; color: #fff4df; }
.admin-editor__button:disabled { cursor: wait; opacity: .55; }

.admin-roster {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.admin-roster > legend {
  margin-bottom: 12px;
  color: #e7d1ab;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-roster__hint { margin: -6px 0 13px; color: #9f907d; font-size: 13px; }
.admin-roster__hint[data-state="error"] { color: #ff9189; }
.admin-roster__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--admin-bench-width);
  gap: var(--admin-roster-gap);
  align-items: start;
}
.admin-seat-table {
  overflow: hidden;
  border: 1px solid rgba(201, 162, 94, .18);
  border-radius: 3px;
  background: rgba(255, 255, 255, .012);
}

.admin-seat-list { display: grid; }

.admin-seat-list__header,
.admin-seat {
  display: grid;
  grid-template-columns: 44px minmax(108px, 1fr) 162px 54px minmax(210px, 1.4fr) 28px;
  gap: 7px;
  align-items: center;
}

.admin-seat-list__header > :nth-child(1),
.admin-seat-list__header > :nth-child(3),
.admin-seat-list__header > :nth-child(4) { text-align: center; }

.admin-seat-list__header {
  min-height: 34px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(201, 162, 94, .22);
  color: #aa9679;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.admin-seat {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(201, 162, 94, .12);
}

.admin-seat__role { justify-self: center; }
.admin-seat:last-child { border-bottom: 0; }
.admin-seat:focus { outline: 1px solid rgba(201, 162, 94, .42); outline-offset: -1px; }
.admin-seat.is-dragging { opacity: .45; }
.admin-seat.is-drop-target {
  box-shadow: inset 0 2px 0 var(--admin-drop-accent);
  background: var(--admin-drop-surface);
}
.admin-seat__position { display: flex; align-items: center; justify-content: center; }
.admin-seat__number {
  width: 24px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d6ad67;
  cursor: default;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
}
.admin-roster__layout:has(.admin-bench__player.is-selected) .admin-seat__number { cursor: copy; }
.admin-seat input,
.admin-seat select {
  min-width: 0;
  min-height: 34px;
  padding: 5px 7px;
  font-size: 12px;
}

.admin-seat__player {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  color: #f0e5d3;
  cursor: grab;
  touch-action: none;
}
.admin-seat__player strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-seat__grab { color: #745f43; font-size: 15px; line-height: 1; }

.admin-seat__night {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  color: #9c8a70;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.admin-seat__night > span[aria-hidden] {
  display: grid;
  min-width: 40px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(201, 162, 94, .18);
  border-radius: 9px;
  background: rgba(10, 7, 5, .5);
  place-items: center;
  transition: background .16s ease, box-shadow .16s ease, color .16s ease;
}

.admin-seat__night:hover > span[aria-hidden] {
  background: rgba(201, 162, 94, .1);
  color: #cbbb9c;
}

.admin-seat__night input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.admin-seat__night:has(input:checked) > span[aria-hidden] {
  background: linear-gradient(160deg, rgba(134, 34, 28, .9), rgba(69, 18, 15, .95));
  box-shadow: inset 0 0 0 1px rgba(244, 215, 154, .55), 0 2px 6px rgba(0, 0, 0, .3);
  color: #f3e4c6;
}

.admin-seat__night:has(input:focus-visible) > span[aria-hidden] {
  outline: 2px solid var(--gold-bright, #e8c884);
  outline-offset: 2px;
}

.admin-seat__night:has(input:disabled) { cursor: not-allowed; opacity: .38; }
.admin-best-move {
  grid-column: 2 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 0 4px;
}

.admin-best-move[hidden] { display: none; }
.admin-best-move__label {
  display: inline-flex;
  min-width: 84px;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  color: #cbae7c;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-best-move__label small {
  color: #806b4d;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.admin-best-move__grid {
  display: grid;
  width: min(100%, 330px);
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
}
.admin-best-move__grid button {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0;
  aspect-ratio: 1;
  border: 1px solid rgba(201, 162, 94, .34);
  border-radius: 3px;
  background: #0a0806;
  color: #b99b69;
  cursor: pointer;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.admin-best-move__grid button:hover:not(:disabled),
.admin-best-move__grid button:focus-visible {
  border-color: rgba(230, 189, 114, .8);
  color: #f0cf91;
  outline: 0;
}
.admin-best-move__grid button[aria-pressed="true"] {
  border-color: #d2a65a;
  background: linear-gradient(145deg, #9f231c, #68100d);
  color: #fff3dc;
  box-shadow: inset 0 0 0 1px rgba(255, 222, 153, .16), 0 0 12px rgba(155, 35, 28, .22);
}
.admin-best-move__grid button:disabled:not([aria-pressed="true"]) {
  cursor: not-allowed;
  opacity: .28;
}

.admin-bench {
  display: grid;
  gap: 9px;
  min-height: 86px;
  padding: 11px;
  border: 1px solid rgba(201, 162, 94, .18);
  border-radius: 3px;
  background: rgba(255, 255, 255, .012);
}
.admin-bench > strong {
  color: #aa9679;
  font-size: 10px;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.admin-bench__list { display: grid; gap: 6px; }
.admin-bench__player {
  display: flex;
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201, 162, 94, .22);
  border-radius: 3px;
  background: var(--admin-chip-surface);
  color: #e8dac5;
  cursor: grab;
  text-align: left;
  touch-action: pan-x;
}
.admin-bench__player > span { color: #806946; }
.admin-bench__player strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-bench__player:hover,
.admin-bench__player:focus-visible,
.admin-bench__player.is-selected {
  border-color: var(--admin-drop-accent);
  background: var(--admin-drop-surface);
  outline: 0;
}
.admin-bench__player.is-dragging { opacity: .45; }
.admin-bench__empty { color: #746a5d; font-size: 12px; }

.admin-editor__more {
  border: 1px solid rgba(201, 162, 94, .18);
  border-radius: 3px;
  background: rgba(255, 255, 255, .012);
}

.admin-editor__more > summary {
  padding: 10px 12px;
  color: #c8b495;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.admin-editor__more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 2px 12px 12px;
}

@media (max-width: 900px) {
  .admin-editor--game .admin-editor__form { overflow-x: hidden; }
  .admin-editor--game .admin-editor__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-editor--game .admin-editor__grid > .admin-editor__field:first-child { grid-column: 1 / -1; }
  .admin-seat-list__header { display: none; }
  .admin-roster__layout { grid-template-columns: 1fr; }
  .admin-bench { grid-row: 1; min-height: 0; }
  .admin-bench__list { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .admin-bench__player { width: auto; min-width: 132px; }
  /* На вузькому екрані ролі не влазять поруч з іменем: кладемо їх окремим
     рядком, щоб перемикач лишався цілим, а не ламався на два поверхи. */
  .admin-seat {
    grid-template-columns: 34px minmax(0, 1fr) 52px 24px;
    grid-template-areas:
      "position player player release"
      "role     role   role   night"
      "points   points points points"
      "best     best   best   best";
    gap: 6px 7px;
    padding-block: 9px;
  }
  .admin-seat__position { grid-area: position; }
  .admin-seat__player { grid-area: player; }
  .admin-seat__role { grid-area: role; justify-self: start; }
  .admin-seat__points { grid-area: points; }
  .admin-seat__night { grid-area: night; justify-self: end; align-self: center; }
  .admin-seat__comment { grid-area: comment; }
  .admin-seat__release { grid-area: release; }
  .admin-best-move { grid-area: best; }
}

@media (max-width: 620px) {
  .admin-editor { width: calc(100vw - 16px); max-height: 94vh; }
  .admin-editor__form { max-height: calc(94vh - 62px); padding: 16px; }
  .admin-editor__grid { grid-template-columns: 1fr; }
  .admin-editor--game .admin-editor__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-editor__field--wide { grid-column: auto; }
  .admin-editor--game .admin-editor__field--wide { grid-column: 1 / -1; }
  .admin-editor__actions { margin: 20px -16px -16px; padding: 13px 16px; }
  .admin-editor--game .admin-editor__actions { margin: 16px 0 0; padding: 12px 0 0; }
  .admin-edit-heading { align-items: flex-start; }
  .admin-editor__more-grid { grid-template-columns: 1fr; }
  .admin-best-move {
    flex-wrap: wrap;
  }
  .admin-best-move__label { flex: 0 0 100%; justify-content: flex-start; }
  .admin-best-move__grid {
    width: min(100%, 240px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .admin-best-move__grid button { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-editor[open] { animation: none; }
  .admin-edit-button { transition: none; }
}

.admin-roster {
  display: grid;
  padding: 18px;
  border: 1px solid rgba(201, 162, 94, .22);
  border-radius: 14px;
  background: rgba(201, 162, 94, .05);
  gap: 12px;
}

.admin-roster__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.admin-roster__title {
  color: #e5d6bb;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-roster__count { color: var(--muted); font-size: 13px; }

.admin-roster__list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.admin-roster__player {
  display: inline-flex;
  align-items: center;
  padding: 6px 6px 6px 12px;
  border: 1px solid rgba(201, 162, 94, .28);
  border-radius: 999px;
  background: rgba(10, 7, 5, .55);
  color: var(--copy);
  font-size: 14px;
  gap: 6px;
}

.admin-roster__remove {
  display: grid;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  place-items: center;
  transition: background var(--motion-control), color var(--motion-control);
}

.admin-roster__remove:hover:not(:disabled) { background: rgba(122, 26, 23, .35); color: #f3e4c6; }
.admin-roster__remove:disabled { cursor: default; opacity: .5; }

.admin-roster__empty { margin: 0; color: var(--muted); font-size: 14px; }

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

.admin-roster__add select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(201, 162, 94, .28);
  border-radius: 10px;
  background: rgba(10, 7, 5, .6);
  color: var(--copy);
  font: inherit;
}

.admin-roster__status { margin: 0; min-height: 18px; color: var(--muted); font-size: 13px; }
.admin-roster__status[data-state='success'] { color: #8fd6a4; }
.admin-roster__status[data-state='error'] { color: #f0a4a0; }

@media (max-width: 620px) {
  .admin-roster__add { grid-template-columns: 1fr; }
}

.admin-seat__points--penalty { color: #f0a4a0; }

.field-choice,
.admin-editor__choice {
  display: grid;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 7px;
}

.field-choice legend,
.admin-editor__choice legend {
  padding: 0;
  color: #b9aa98;
  font-size: .78rem;
  letter-spacing: .04em;
}

.choice-row { display: flex; flex-wrap: wrap; gap: 6px; }

.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 13px;
  border: 1px solid rgba(201, 162, 94, .28);
  border-radius: 9px;
  background: rgba(10, 7, 5, .55);
  color: var(--copy);
  cursor: pointer;
  font-size: .88rem;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.choice:hover { border-color: rgba(201, 162, 94, .5); }

.choice:has(input:checked) {
  border-color: rgba(232, 200, 132, .75);
  background: rgba(122, 26, 23, .38);
  color: #f3e4c6;
}

.choice:has(input:focus-visible) { outline: 2px solid var(--gold-bright, #e8c884); outline-offset: 2px; }

.seat-roles {
  display: inline-grid;
  width: max-content;
  padding: var(--seat-role-control-padding);
  grid-template-columns: repeat(4, var(--seat-role-cell-size));
  gap: var(--seat-role-control-gap);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--seat-role-control-border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 52%),
    var(--seat-role-control-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 190, .04),
    0 1px 0 rgba(0, 0, 0, .35);
}

.seat-roles__option {
  position: relative;
  display: grid;
  width: var(--seat-role-cell-size);
  min-width: var(--seat-role-cell-size);
  height: var(--seat-role-cell-height);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #9c8a70;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  place-items: center;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}

.seat-roles__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.seat-roles__option:not(:has(input:checked)):hover {
  background: var(--seat-role-control-hover);
  color: #cbbb9c;
}

.seat-roles__option:has(input:checked) {
  border-color: var(--seat-role-selected-border);
  background: var(--seat-role-selected-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 196, .16),
    0 2px 5px rgba(0, 0, 0, .34);
  color: #f3e4c6;
}

.seat-roles__option:has(input:focus-visible) { outline: 2px solid var(--gold-bright, #e8c884); outline-offset: 1px; }

.seat-roles__icon {
  display: grid;
  width: var(--seat-role-art-size);
  height: var(--seat-role-art-size);
  place-items: center;
  border-radius: 50%;
  pointer-events: none;
}

.seat-roles__icon svg {
  display: block;
  width: var(--seat-role-art-size);
  height: var(--seat-role-art-size);
  overflow: visible;
  opacity: .64;
  transition: filter .16s ease, opacity .16s ease;
}

.seat-roles__option--mafia .seat-roles__icon,
.seat-roles__option--don .seat-roles__icon {
  background: radial-gradient(circle at 34% 24%, #fff8e5, #d8bb86 58%, #9b6d37);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.seat-roles__option--sheriff .seat-roles__icon svg {
  width: var(--seat-role-sheriff-size);
  height: var(--seat-role-sheriff-size);
}

.seat-roles__icon--citizen {
  color: #8f806d;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.seat-roles__option:has(input:checked) .seat-roles__icon svg {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .38)) saturate(1.05);
  opacity: 1;
}

.seat-roles__option:has(input:checked) .seat-roles__icon--citizen { color: #f0d7a4; }

@media (max-width: 620px) {
  .choice { min-height: var(--touch-target, 44px); padding: 9px 14px; }
}

.adjust-list { display: grid; gap: 5px; }

.adjust-row {
  display: grid;
  align-items: center;
  grid-template-columns: 68px minmax(0, 1fr) 26px;
  gap: 5px;
}

.adjust-row input {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(201, 162, 94, .22);
  border-radius: 7px;
  background: #100c08;
  color: var(--copy);
  font: inherit;
  font-size: 12.5px;
}

.adjust-row input:focus-visible { outline: 2px solid var(--gold-bright, #e8c884); outline-offset: 1px; }

.adjust-row__remove {
  min-height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold, #c9a25e);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.adjust-row__remove:hover { background: rgba(122, 26, 23, .35); color: #f3e4c6; }

.adjust-add {
  justify-self: start;
  margin-top: 5px;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px dashed rgba(201, 162, 94, .38);
  border-radius: 8px;
  background: transparent;
  color: var(--gold, #c9a25e);
  cursor: pointer;
  font-size: 12px;
}

.adjust-add:hover { border-color: rgba(232, 200, 132, .7); color: #f3e4c6; }

.builder-adjust,
.admin-seat__adjust { display: grid; min-width: 0; }

@media (max-width: 620px) {
  .adjust-row { grid-template-columns: 72px minmax(0, 1fr) 28px; }
  .admin-seat__adjust,
  .builder-adjust { width: 100%; }
}

.admin-roster__new { margin-top: 4px; }

.admin-roster__new summary {
  color: var(--gold, #c9a25e);
  cursor: pointer;
  font-size: 13px;
}

.admin-roster__new-grid {
  display: grid;
  margin-top: 10px;
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.admin-roster__field { display: grid; gap: 5px; color: #b9aa98; font-size: .76rem; }

.admin-roster__field input {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(201, 162, 94, .24);
  border-radius: 9px;
  background: #100c08;
  color: var(--copy);
  font: inherit;
}

.admin-roster__credentials {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(201, 162, 94, .3);
  border-radius: 9px;
  background: rgba(10, 7, 5, .6);
  color: var(--copy);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-roster__copy { justify-self: start; }

.admin-roster__invite,
.roster-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.admin-roster__invite select,
.roster-invite select {
  min-height: 38px;
  min-width: 180px;
  padding: 8px 11px;
  border: 1px solid rgba(201, 162, 94, .24);
  border-radius: 9px;
  background: #100c08;
  color: var(--copy);
  font: inherit;
}

.admin-roster__invite-status { color: var(--muted); font-size: 12.5px; }

.adjust-auto {
  display: flex;
  align-items: baseline;
  padding: 5px 9px;
  border: 1px dashed rgba(143, 214, 164, .45);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12.5px;
  gap: 6px;
}

.adjust-auto strong { color: #8fd6a4; }

.admin-roster__buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.admin-seat__release {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.admin-seat__release:hover { background: rgba(122, 26, 23, .35); color: #f3e4c6; }

.admin-bench.is-drop-target {
  border-color: rgba(232, 200, 132, .8);
  background: rgba(122, 26, 23, .18);
}

@media (max-width: 620px) {
  .seat-roles {
    --seat-role-cell-size: 44px;
    --seat-role-cell-height: 44px;
    --seat-role-art-size: 30px;
    --seat-role-sheriff-size: 34px;
    max-width: 100%;
  }
  .admin-seat__night > span[aria-hidden] { min-width: 44px; height: 36px; }
}
