/* Kinoarc Public Style Book, PB-2: the one token sheet of every public page - the site, the
   cabinet, the entrance, the play host and the admin. This file is the owner; the site
   (apps/site/src/app/public-tokens.css) and the portal (apps/portal/src/pages/public-tokens.css)
   carry byte-identical copies written by scripts/sync-public-tokens.mjs and checked by a unit
   test in each. The values are the site's (N202: its face stays as it stands); the site's own
   names (--accent, --panel, --radius...) and the portal's --dp-* are aliases of these. */
:root {
  /* Surfaces */
  --pub-bg: #060910;
  --pub-stage: #020407;
  --pub-surface: #0b101b;
  --pub-raised: #101726;
  --pub-control: #111927;
  --pub-hover: #192438;
  --pub-fill: color-mix(in srgb, var(--pub-ink) 5%, transparent);
  /* Ink */
  --pub-ink: #e8ecf2;
  --pub-muted: #98a2b3;
  /* The accent and the four states */
  --pub-accent: #4fd2ff;
  --pub-accent-hover: #7ce0ff;
  --pub-on-accent: #04060a;
  --pub-positive: #8ef0a8;
  --pub-warning: #ffcf8a;
  --pub-danger: #ff7b7b;
  /* Lines and focus */
  --pub-line: color-mix(in srgb, var(--pub-accent) 22%, transparent);
  --pub-line-soft: color-mix(in srgb, var(--pub-accent) 12%, transparent);
  /* T-290: a field's boundary (inputs, textareas, selects, the file button, check boxes) - a
     cool grey of the muted ink's hue at >= 3:1 against the page, the well and a card (WCAG
     1.4.11); the portal's; the site keeps its hairlines on its fields (N202). */
  --pub-field-line: #5f6a7c;
  --pub-focus: var(--pub-accent);
  /* Shape: the site has one radius for controls and cards, a small one for menu rows */
  --pub-radius-control: 10px;
  --pub-radius-card: 10px;
  --pub-radius-small: 4px;
  --pub-radius-pill: 999px;
  --pub-target: 44px;
  /* Rhythm */
  --pub-space-1: 4px;
  --pub-space-2: 8px;
  --pub-space-3: 12px;
  --pub-space-4: 16px;
  --pub-space-5: 24px;
  --pub-space-6: 32px;
  --pub-space-7: 48px;
  --pub-page: 1160px;
  --pub-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Type */
  --pub-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --pub-display: "Playfair Display", "Playfair Fallback", Georgia, serif;
  --pub-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pub-body: 16px;
  --pub-label: 14px;
  --pub-heading: 18px;
  --pub-title: 24px;
  color-scheme: dark;
}

/* The portal's public stylesheet. The Public Style Book's tokens (`--pub-*`, PB-2) are served in
   front of this file from public-tokens.css - the site's values, one owner; nothing below names a
   colour, a face or a radius by value. The `--dp-*` names are the shell's aliases of them (T-206's
   SB-16 shell kept its names; T-263 set them on the book). */
:root {
  --dp-surface-stage: var(--pub-stage);
  --dp-surface-inset: var(--pub-bg);
  --dp-surface-section: var(--pub-fill);
  --dp-surface-panel: var(--pub-bg);
  --dp-surface-raised: var(--pub-raised);
  --dp-control-fill: var(--pub-control);
  --dp-hover: var(--pub-hover);
  --dp-hover-primary: var(--pub-accent-hover);
  --dp-line: var(--pub-line);
  --dp-line-soft: var(--pub-line-soft);
  --dp-field-line: var(--pub-field-line);
  --dp-text: var(--pub-ink);
  --dp-muted: var(--pub-muted);
  --dp-accent: var(--pub-accent);
  --dp-on-accent: var(--pub-on-accent);
  --dp-focus: var(--pub-focus);
  --dp-danger: var(--pub-danger);
  --dp-positive: var(--pub-positive);
  --dp-warning: var(--pub-warning);
  --dp-control-radius: var(--pub-radius-control);
  --dp-card-radius: var(--pub-radius-card);
  --dp-text-title: var(--pub-title);
  --dp-text-heading: var(--pub-heading);
  --dp-text-body: var(--pub-body);
  --dp-text-label: var(--pub-label);
  --dp-text-caption: var(--pub-label);
  --dp-gutter: 16px;
  --dp-ease: var(--pub-ease);
}
@media (min-width: 560px) {
  :root {
    --dp-gutter: 24px;
  }
}
/* The display face (PB-2, PB-8): the site's title card, here for a game's title on the play host
   only. Self-hosted from /fonts with its OFL text; the fallback is Georgia sized to its metrics so
   the swap does not move the page (as the site does it). */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/playfair-display-500-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/playfair-display-500-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 103%;
  ascent-override: 106%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* The old frame's element rules: the pages still outside `page(..., { shell })` (the sandbox,
   an invitation, the loop inbox, a refusal, Not here) stand on these; the shell's parts override
   them where a cabinet part is built of the same elements. On the book's tokens since T-263. */
body {
  margin: 0;
  background: var(--pub-bg);
  color: var(--pub-ink);
  font-family: var(--pub-font);
  font-size: var(--pub-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
h1 {
  font-size: var(--pub-title);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
h1 small {
  color: var(--pub-muted);
  font-family: var(--pub-mono);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  display: block;
}
h1 small a {
  color: inherit;
  text-decoration: none;
}
h1 small a:hover {
  color: var(--pub-accent);
}
p {
  color: var(--pub-muted);
}
a {
  color: var(--pub-accent);
  text-decoration-color: var(--pub-line);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--pub-accent-hover);
  color: var(--pub-accent-hover);
}
:focus-visible {
  outline: 2px solid var(--pub-focus);
  outline-offset: 3px;
  border-radius: var(--pub-radius-small);
}
form {
  display: grid;
  gap: 0.6rem;
  margin: 1.2rem 0;
}
label {
  display: grid;
  gap: 0.25rem;
  font-size: var(--pub-label);
  font-weight: 500;
  color: var(--pub-muted);
}
input {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--pub-field-line);
  border-radius: var(--pub-radius-control);
  background: var(--pub-stage);
  color: inherit;
  font: inherit;
  min-width: 0;
}
/* T-290: a check box or a radio is drawn, not the browser's - the same field line around a 20 px
   box on the well, the accent inside when checked (a tick, a dot); the focus ring is the page's. */
input:is([type="checkbox"], [type="radio"]) {
  appearance: none;
  box-sizing: border-box;
  display: inline-grid;
  place-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--pub-field-line);
  border-radius: var(--pub-radius-small);
  background: var(--pub-stage);
  cursor: pointer;
  vertical-align: middle;
}
input[type="radio"] {
  border-radius: 50%;
}
input:is([type="checkbox"], [type="radio"])::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--pub-accent);
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 20%, 86% 6%, 40% 72%);
  transform: scale(0);
  transition: transform 120ms var(--pub-ease);
}
input[type="radio"]::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  clip-path: none;
}
input:is([type="checkbox"], [type="radio"]):checked {
  border-color: var(--pub-accent);
}
input:is([type="checkbox"], [type="radio"]):checked::before {
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  input:is([type="checkbox"], [type="radio"])::before {
    transition: none;
  }
}
button,
a.btn {
  box-sizing: border-box;
  min-height: var(--pub-target);
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--pub-accent);
  border-radius: var(--pub-radius-control);
  background: var(--pub-accent);
  color: var(--pub-on-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  justify-self: start;
}
a.btn.ghost,
button.ghost {
  background: transparent;
  color: var(--pub-ink);
  border-color: var(--pub-line);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
label.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--pub-ink);
  font-size: 0.95rem;
}
label.check input {
  margin: 0.25rem 0 0;
  flex: 0 0 auto;
}
label.check > span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
label.check small {
  display: block;
  color: var(--pub-muted);
  font-size: var(--pub-label);
}
ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
}
li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--pub-line-soft);
  border-radius: var(--pub-radius-card);
  min-width: 0;
}
li code,
li > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.err {
  color: var(--pub-danger);
}
.ok {
  color: var(--pub-positive);
}
.muted {
  color: var(--pub-muted);
  font-size: var(--pub-label);
}
input,
select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--pub-field-line);
  border-radius: var(--pub-radius-control);
  background: var(--pub-stage);
  color: inherit;
  font: inherit;
  min-width: 0;
  max-width: 100%;
}
main:has(.signin) {
  max-width: 26rem;
}
.signin {
  min-width: 0;
  overflow-wrap: anywhere;
}
.signin form {
  gap: 1rem;
  margin: 1.5rem 0;
}
.signin label {
  color: var(--pub-muted);
  gap: 0.4rem;
}
.signin input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  font-size: 1rem;
}
.signin .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}
.signin .row button {
  justify-self: stretch;
  min-height: 2.75rem;
}
.signin a {
  color: var(--pub-accent);
}
.signin :is(input, button, a):focus-visible {
  outline: 2px solid var(--pub-focus);
  outline-offset: 3px;
}
.signin .err {
  margin: 0;
}
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pub-line-soft);
  color: var(--pub-muted);
  font-size: 0.9rem;
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover {
  color: var(--pub-ink);
}
fieldset.plans {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.5rem;
}
fieldset.plans legend {
  font-size: var(--pub-label);
  color: var(--pub-muted);
  margin-bottom: 0.35rem;
}
label.plan {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.5rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--pub-line-soft);
  border-radius: var(--pub-radius-card);
  color: var(--pub-ink);
  cursor: pointer;
  min-width: 0;
}
label.plan:has(:checked) {
  border-color: var(--pub-accent);
}
label.plan input {
  margin: 0;
  grid-row: span 2;
}
label.plan small {
  grid-column: 2;
  color: var(--pub-muted);
  font-size: 0.75rem;
}
.pw-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pw-wrap input {
  flex: 1 1 12rem;
}
.pw-wrap button {
  padding: 0.45rem 0.7rem;
  font-size: var(--pub-label);
}
ul.pw-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin: -0.2rem 0 0;
  padding: 0;
}
ul.pw-rules li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--pub-muted);
  transition: color 0.3s;
}
ul.pw-rules li::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition:
    background 0.3s,
    border-color 0.3s;
}
ul.pw-rules li.is-ok {
  color: var(--pub-positive);
}
ul.pw-rules li.is-ok::before {
  background: var(--pub-positive);
  border-color: var(--pub-positive);
}
ul.pw-rules .pw-great {
  display: none;
  color: var(--pub-positive);
  font-weight: 600;
}
ul.pw-rules .pw-great::before {
  content: "\2713";
  border: 0;
  width: auto;
  height: auto;
}
ul.pw-rules.is-great .pw-great {
  display: inline-flex;
  animation: pw-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
input.is-great {
  border-color: var(--pub-positive);
  animation: pw-glow 1.4s ease-out;
}
@keyframes pw-glow {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--pub-positive) 70%, transparent);
  }
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}
@keyframes pw-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  ul.pw-rules.is-great .pw-great,
  input.is-great {
    animation: none;
  }
}

/* The published game's page on the games host (T-203): on the SB-16 shell below, these are only
 * what a game has and an account page does not - the cover, the Play row, the badge, the report. */
.gp-cover {
  aspect-ratio: 16 / 9;
  background: var(--dp-surface-stage);
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
  overflow: hidden;
}
.gp-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* An empty cover well carries the catalogue's hatch (PB-4 #5), on the play host and in the cabinet. */
.gp-cover:empty,
.cab-cover:empty {
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, var(--dp-line-soft) 9px 10px),
    var(--dp-surface-stage);
}
/* A game's title in the display face (PB-2): the one place off the site that sets it. */
.gp-title {
  margin-top: 16px;
  overflow-wrap: anywhere;
  font-family: var(--pub-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.gp-by {
  margin: 0 0 16px;
}
.gp-actions {
  margin: 16px 0;
}
.gp-play {
  min-width: 160px;
}
@media (max-width: 559px) {
  .gp-play {
    width: 100%;
  }
}
.gp-badge {
  margin: 24px 0 0;
}
.gp-badge a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dp-muted);
}
.gp-report .dp-form {
  margin-top: 16px;
}
.gp-report > .dp-lead {
  margin: 16px 0 0;
}
.gp-textarea {
  min-height: 7.5rem;
  padding: 10px 12px;
  resize: vertical;
}
/* T-206 auth - SB-16 public pages: the shell every page opts into with `page(..., { shell })`.
   Every rule below is scoped to body.dp. T-263 set its parts on the Public Style Book (PB-4): the
   header and footer as the site's, buttons, fields, cards, rows, pills and notices as the book's
   owners; the tokens are the aliases at the top of this file. */
body.dp {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--dp-surface-inset);
  color: var(--dp-text);
  font-family: var(--pub-font);
  font-size: var(--dp-text-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}
:where(body.dp) p {
  margin: 0 0 16px;
  color: inherit;
}
:where(body.dp) a {
  color: var(--dp-accent);
  text-decoration-color: var(--dp-line);
  text-underline-offset: 3px;
}
:where(body.dp) a:hover {
  color: var(--pub-accent-hover);
  text-decoration-color: var(--pub-accent-hover);
}
.dp [hidden] {
  display: none !important;
}
.dp :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--dp-focus);
  outline-offset: 3px;
}
.dp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* The header as the site's title bar (PB-4 #1): sticky, the page showing through a blur, one
   hairline under it, 62 px, the wordmark at the left. */
.dp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--dp-surface-panel) 72%, transparent);
  border-bottom: 1px solid var(--dp-line-soft);
}
.dp-bar {
  box-sizing: border-box;
  max-width: calc(var(--pub-page) + 2 * var(--dp-gutter));
  min-height: 62px;
  margin: 0 auto;
  padding: 6px var(--dp-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.dp-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--dp-text);
  text-decoration: none;
}
.dp-wordmark:hover {
  color: var(--dp-text);
  text-decoration: none;
}
.dp-arc {
  flex: 0 0 auto;
}
.dp-wordmark-text {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}
/* The half that is not `kino` steps back, so the eye reads the word it already knows first. */
.dp-wordmark-tail {
  color: var(--dp-muted);
}
.dp-bar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-left: auto;
}
.dp-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  font-size: 0.92rem;
}
.dp-nav form {
  display: flex;
  margin: 0;
}
/* The header's links as the site's: muted, ink on hover, no underline, 44 px targets. */
.dp-navlink {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--pub-radius-small);
  background: transparent;
  color: var(--dp-muted);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms var(--dp-ease);
}
.dp-navlink:hover {
  color: var(--dp-text);
  background: transparent;
}
.dp-lang {
  position: relative;
}
/* The language menu as the site's: a hairline pill naming the language, the options below. */
.dp-lang > summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--pub-radius-pill);
  background: transparent;
  color: var(--dp-muted);
  font-size: 0.92rem;
  list-style: none;
  cursor: pointer;
  transition:
    color 180ms var(--dp-ease),
    border-color 180ms var(--dp-ease);
}
.dp-lang > summary::-webkit-details-marker {
  display: none;
}
.dp-lang > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.dp-lang[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.dp-lang > summary:hover,
.dp-lang[open] > summary {
  color: var(--dp-text);
  border-color: var(--dp-accent);
}
.dp-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  box-sizing: border-box;
  min-width: 11rem;
  margin: 0;
  padding: 4px;
  display: grid;
  gap: 0;
  list-style: none;
  background: var(--dp-surface-raised);
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
  box-shadow: 0 12px 28px rgb(0 0 0 / 40%);
}
.dp-menu li {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.dp-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--pub-radius-small);
  color: var(--dp-text);
  text-decoration: none;
}
.dp-menu a:hover {
  background: var(--dp-hover);
  color: var(--dp-text);
}
.dp-menu a[aria-current="true"] {
  font-weight: 600;
}
.dp-menu a[aria-current="true"]::after {
  content: "\2713";
  margin-left: auto;
  color: var(--dp-accent);
}
.dp-main {
  --dp-col: 448px;
  box-sizing: border-box;
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(var(--dp-col) + 2 * var(--dp-gutter));
  margin: 0 auto;
  padding: 32px var(--dp-gutter) 48px;
  overflow-wrap: anywhere;
}
.dp-w-create {
  --dp-col: 560px;
}
.dp-w-account {
  --dp-col: 640px;
}
.dp-w-task {
  --dp-col: 700px;
}
.dp-w-cabinet {
  --dp-col: 1120px;
}
/* The footer as the site's credits (PB-4 #2): one hairline, the wordmark, the links it serves,
   the year in mono. */
.dp-footer {
  margin: 0;
  padding: 2rem var(--dp-gutter) 2.5rem;
  border-top: 1px solid var(--dp-line-soft);
  color: var(--dp-muted);
  font-size: 0.9rem;
  letter-spacing: 0;
}
.dp-footer-row {
  box-sizing: border-box;
  max-width: var(--pub-page);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.dp-footer-brand,
.dp-footer-year {
  margin: 0;
  color: var(--dp-muted);
}
.dp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--dp-text);
}
.dp-footer-year {
  font-family: var(--pub-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.dp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
}
.dp-footer a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px;
  color: var(--dp-muted);
  text-decoration: none;
}
.dp-footer a:hover {
  color: var(--dp-text);
}
.dp-frame {
  padding: 24px;
  background: var(--dp-surface-section);
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
}
.dp-title {
  margin: 0 0 8px;
  font-size: var(--dp-text-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
.dp-card-title {
  margin: 0;
  font-size: var(--dp-text-heading);
  font-weight: 600;
  line-height: 1.3;
}
.dp-lead {
  color: var(--dp-muted);
}
.dp-plan-line {
  margin-bottom: 24px;
}
.dp-state {
  font-weight: 500;
}
/* The notice (PB-4 #10): a 3 px left border on the stage well - accent to inform, warning to
   hold, danger for an error; the sentence and at most one link. */
.dp-note {
  padding: 12px 16px;
  background: var(--dp-surface-stage);
  border-left: 3px solid var(--dp-accent);
  border-radius: var(--pub-radius-small);
  color: var(--dp-muted);
}
.dp-note--warning {
  border-left-color: var(--dp-warning);
}
.dp-note--danger {
  border-left-color: var(--dp-danger);
}
.dp-caption,
.dp-hint {
  color: var(--dp-muted);
  font-size: var(--dp-text-caption);
}
.dp-hint,
.dp-error,
.dp-ok {
  margin: 0;
}
.dp-error {
  color: var(--dp-danger);
  font-size: var(--dp-text-caption);
  font-weight: 500;
}
.dp-ok {
  color: var(--dp-positive);
}
.dp-form {
  display: grid;
  gap: 16px;
  margin: 0;
}
.dp-form > .dp-btn-block {
  margin-top: 8px;
}
.dp-form-tight {
  gap: 12px;
}
.dp-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.dp-label {
  display: block;
  color: var(--dp-muted);
  font-size: var(--dp-text-label);
  font-weight: 500;
  line-height: 1.4;
}
.dp-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  background: var(--dp-surface-stage);
  border: 1px solid var(--dp-field-line);
  border-radius: var(--dp-control-radius);
  color: var(--dp-text);
  font: inherit;
  font-size: var(--dp-text-body);
}
.dp-input[aria-invalid="true"] {
  border-color: var(--dp-danger);
}
.dp .dp-input.is-great {
  border-color: var(--dp-accent);
}
.dp-pw {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.dp-pw .dp-input {
  flex: 1 1 auto;
  min-width: 0;
}
.dp .dp-rules {
  margin: 0;
  gap: 4px 16px;
}
.dp .dp-rules li {
  color: var(--dp-muted);
  font-size: var(--dp-text-caption);
}
.dp .dp-rules li.is-ok,
.dp .dp-rules .pw-great {
  color: var(--dp-accent);
}
.dp .dp-rules li::before {
  content: "\2022";
  width: 1em;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: center;
}
.dp .dp-rules li.is-ok::before,
.dp .dp-rules .pw-great::before {
  content: "\2713";
  background: none;
  color: var(--dp-accent);
}
.dp-form + .dp-caption {
  margin-top: 16px;
}
.dp-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.dp-check label {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  color: var(--dp-text);
  font-size: var(--dp-text-body);
  line-height: 1.4;
  cursor: pointer;
}
.dp-checkbox {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 12px 0 0;
  padding: 0;
  accent-color: var(--dp-accent);
}
/* The button (PB-4 #3): 44 px, the site's radius, weight 600. Ordinary - the control fill with a
   line; Primary - the accent with the site's glow on hover (no lift: a button that moves under the
   pointer is never a stable target); Danger - ordinary with danger ink. */
.dp-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-control-radius);
  background: var(--dp-control-fill);
  color: var(--dp-text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: normal;
  cursor: pointer;
  justify-self: start;
  transition:
    box-shadow 220ms var(--dp-ease),
    border-color 220ms var(--dp-ease),
    background-color 220ms var(--dp-ease);
}
.dp-pw .dp-btn {
  flex: 0 0 auto;
}
.dp-btn:hover {
  background: var(--dp-hover);
  border-color: var(--dp-accent);
  color: var(--dp-text);
}
.dp-btn-primary {
  background: var(--dp-accent);
  border-color: var(--dp-accent);
  color: var(--dp-on-accent);
  font-weight: 600;
}
.dp-btn-primary:hover {
  background: var(--dp-accent);
  border-color: var(--dp-accent);
  color: var(--dp-on-accent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--dp-accent) 28%, transparent);
}
.dp-btn-danger {
  color: var(--dp-danger);
}
.dp-btn-danger:hover {
  border-color: var(--dp-danger);
  color: var(--dp-danger);
}
@media (prefers-reduced-motion: reduce) {
  .dp-btn {
    transition: none;
  }
}
.dp-btn-block {
  width: 100%;
  justify-self: stretch;
  white-space: normal;
}
.dp-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 8px 0 24px;
  padding: 4px;
  background: var(--dp-surface-stage);
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
}
.dp-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 8px;
  border-radius: calc(var(--dp-card-radius) - 4px);
  color: var(--dp-muted);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.dp-mode:hover {
  background: var(--dp-hover);
  color: var(--dp-text);
}
.dp-mode[aria-current="page"] {
  background: var(--dp-control-fill);
  color: var(--dp-text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--dp-accent);
}
.dp-alt {
  margin: 16px 0 0;
  color: var(--dp-muted);
  text-align: center;
}
.dp-alt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.dp-frame .dp-alt {
  margin: 8px 0 0;
}
.dp-more {
  margin-top: 24px;
}
.dp-more > summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--dp-surface-section);
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
  color: var(--dp-text);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.dp-more > summary::-webkit-details-marker {
  display: none;
}
.dp-more > summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.dp-more[open] > summary::before {
  transform: rotate(45deg);
}
.dp-more > summary:hover {
  background: var(--dp-hover);
}
.dp-plans {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.dp-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--dp-surface-section);
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
}
.dp-card[data-wanted="true"] {
  border-color: var(--dp-accent);
}
.dp-card .dp-caption {
  margin: 0;
}
@media (max-width: 559px) {
  .dp-frame {
    padding: 16px;
  }
  .dp-main {
    padding-top: 24px;
  }
}
/* end T-206 auth */

/* T-207 cabinet - the cabinet's own parts on T-206's SB-16 shell (body.dp): the who block, the
   game card and its grid, the status pill, the card's `…` menu, the starter, the shared list, the
   start choices. Buttons, fields, frames, notes, the header, the widths and the tokens are the
   shell's (`dp-*` above). Element rules of the old frame are overridden here where a cabinet part
   is built of them (ul, li, form, label, button, input). */
.dp .cab {
  min-width: 0;
}
.dp .cab h1 {
  margin: 0 0 24px;
}
.dp .cab-muted {
  color: var(--dp-muted);
  font-size: var(--dp-text-caption);
}
.dp .cab-note {
  margin: 0 0 16px;
  color: var(--dp-text);
}
.dp .cab-note--err {
  border-left-color: var(--dp-danger);
  color: var(--dp-danger);
}
.dp .cab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}
.dp .cab-file {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--dp-text);
  font: inherit;
}

/* Who: the name, the plan, what Free allows, the count, one Create. */
.dp .cab-who {
  display: grid;
  gap: 12px;
  margin: 0 0 32px;
}
.dp .cab-who > * {
  margin: 0;
}
.dp .cab-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--dp-text-heading);
}
.dp ul.cab-free {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  list-style: none;
}
.dp ul.cab-free li {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--dp-muted);
}
.dp .cab-who .cab-actions,
.dp .cab-starter .cab-actions {
  justify-content: flex-start;
}

/* The groups and the card. */
.dp .cab-group {
  margin: 0 0 32px;
}
.dp .cab-group > h2 {
  margin: 0 0 12px;
}
.cab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 960px) {
  .cab-grid {
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  }
}
.dp .cab-card {
  box-sizing: border-box;
  min-width: 0;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: var(--dp-surface-section);
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
}
.dp .cab-card > * {
  margin: 0;
}
.cab-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--dp-card-radius) - 4px);
  background: var(--dp-surface-stage);
}
.cab-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dp .cab-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.dp .cab-head .cab-title {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 10px;
}
.dp .cab-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
/* A link inside a line (the problems count) or a frame's sentence (a backup to download) is a
   44 px target like every other control (SB-16, the review of 2026-10-19). */
.dp .cab-line a,
.dp .cab .dp-frame > p > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.dp .cab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
/* Open, Play and Share share one row at every width: a little less padding, the space split. */
.dp .cab-card .cab-actions .dp-btn {
  flex: 1 1 auto;
  padding: 0 12px;
}
@media (max-width: 559px) {
  /* A phone cannot edit (SB-16): Play comes first there. */
  .dp .cab-actions .cab-play {
    order: -1;
  }
}
.dp .cab-starter {
  margin: 0 0 32px;
}

/* The pill (PB-4 #9): 24 px, the word always written, the colour supporting it - neutral,
   accent fill + dot (Published, Listed), warning fill (Staff pick, Waiting), danger outline
   (Hidden, Taken down, Refused, Broken). */
.dp .cab-pill {
  box-sizing: border-box;
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--pub-radius-pill);
  background: transparent;
  color: var(--dp-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}
.dp .cab-pill--published {
  border-color: transparent;
  background: color-mix(in srgb, var(--dp-accent) 16%, transparent);
  color: var(--dp-accent);
}
.dp .cab-pill--published::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.dp .cab-pill--archived {
  border-color: transparent;
  background: none;
}
.dp .cab-pill--pick {
  border-color: transparent;
  background: color-mix(in srgb, var(--dp-warning) 18%, transparent);
  color: var(--dp-warning);
}

/* The card's `…`: a native disclosure whose rows are links and one form's button. */
.cab-dots {
  position: relative;
  flex: 0 0 auto;
}
.dp .cab-dots > summary {
  list-style: none;
  font-weight: 700;
}
.cab-dots > summary::-webkit-details-marker {
  display: none;
}
.dp .cab-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10;
  box-sizing: border-box;
  min-width: 12rem;
  max-width: min(20rem, calc(100vw - 2 * var(--dp-gutter)));
  padding: 4px;
  display: grid;
  background: var(--dp-surface-raised);
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
  box-shadow: 0 8px 24px rgb(0 0 0 / 40%);
}
.dp .cab-menu form {
  display: block;
  margin: 0;
}
.dp .cab-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: var(--dp-control-radius);
  background: none;
  color: var(--dp-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.dp .cab-row:hover {
  background: var(--dp-hover);
}
.dp .cab-row--danger,
.dp .cab-danger-ink {
  color: var(--dp-danger);
}
.dp .cab-menu hr {
  width: 100%;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--dp-line-soft);
}
.dp .cab-row small {
  color: var(--dp-muted);
  font-size: var(--dp-text-caption);
}

/* Shared with you, a game's More places. */
.dp ul.cab-list,
.dp ul.cab-places {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}
.dp ul.cab-list > li {
  box-sizing: border-box;
  min-width: 0;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  background: var(--dp-surface-section);
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
}
.dp .cab-list-name {
  display: grid;
  min-width: 0;
}
.dp .cab-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dp .cab-list-actions form {
  display: flex;
  margin: 0;
}
.dp ul.cab-places > li {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* More ways to start: the shell's disclosure, two forms inside. */
.dp .cab-more {
  margin: 0 0 32px;
}
.cab-more-in {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}
@media (min-width: 960px) {
  .cab-more-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dp .cab-more-in .dp-form {
  box-sizing: border-box;
  padding: 16px;
  align-content: start;
  background: var(--dp-surface-section);
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
}
.dp .cab-more-in .cab-buttons,
.dp .cab-section .cab-buttons {
  justify-content: flex-start;
}

/* Start with: one radio row per way to begin. */
.dp .cab-choices {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 8px;
}
.dp .cab-choices > legend {
  margin-bottom: 8px;
  padding: 0;
}
.dp label.cab-choice {
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
  background: var(--dp-surface-stage);
  color: var(--dp-text);
  font-size: var(--dp-text-body);
  cursor: pointer;
}
.dp label.cab-choice:has(:checked) {
  border-color: var(--dp-accent);
}
.dp label.cab-choice input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--dp-accent);
}
.dp label.cab-choice > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.dp label.cab-choice small {
  color: var(--dp-muted);
  font-size: var(--dp-text-caption);
}

/* The account's sections. */
.dp .cab-section {
  margin: 0 0 16px;
}
.dp .cab-section > h2 {
  margin: 0 0 8px;
}
.dp .cab-section > :last-child {
  margin-bottom: 0;
}
.dp .cab-section .dp-form {
  margin: 0;
}
.dp .cab-danger-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* T-204 share: the Share page's parts on the same shell - the link with its Copy, the two
   downloads, the installers' older markup restyled inside its disclosure. */
.dp .cab-buttons--start {
  justify-content: flex-start;
}
.dp .cab-share-game {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -16px 0 24px;
  font-size: var(--dp-text-heading);
}
.dp .cab-share-state {
  display: grid;
  gap: 16px;
}
.dp .cab-share-state > * {
  margin: 0;
}
.dp .cab-share-state form,
.dp .cab-download form {
  display: flex;
  margin: 0;
}
.dp .cab-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dp .cab-copy .dp-input {
  flex: 1 1 16rem;
  width: auto;
  font-family: inherit;
}
.dp .cab-unpublish,
.dp .cab-failed,
.dp .cab-download {
  display: grid;
  gap: 8px;
}
.dp .cab-unpublish {
  padding-top: 16px;
  border-top: 1px solid var(--dp-line-soft);
}
.dp .cab-download + .cab-download {
  margin-top: 16px;
}
.dp .cab-installers {
  margin: 0 0 24px;
}
.dp .cab-installers-in {
  margin-top: 12px;
  color: var(--dp-muted);
}
.dp .cab-installers-in h2 {
  margin: 0 0 8px;
  color: var(--dp-text);
  font-size: var(--dp-text-heading);
}
.dp .cab-installers-in p {
  font-size: var(--dp-text-caption);
}
.dp .cab-installers-in form {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.dp .cab-installers-in .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dp .cab-installers-in button,
.dp .cab-installers-in a.btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-control-radius);
  background: var(--dp-control-fill);
  color: var(--dp-text);
  font: inherit;
  text-decoration: none;
}
.dp .cab-installers-in li {
  border-color: var(--dp-line);
  color: var(--dp-text);
}
/* end T-207 cabinet */
/* T-212 delete account: the list of what goes, the download link, the footer of the decision
   (`Keep account` first, the destructive verb last). Everything else is SB-16's dp-* above. */
.dp-delete .dp-delete-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0 0 0 20px;
  list-style: disc;
}
.dp-delete .dp-delete-list li {
  display: list-item;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.dp-delete-download {
  margin: 0 0 16px;
}
.dp-delete-download a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dp-accent);
}
.dp-delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.dp-delete-actions > .dp-btn {
  flex: 1 1 10rem;
  white-space: normal;
}
/* end T-212 delete account */
/* T-219 admin - the administrator's pages and the author's notice band on the SB-16 shell. The
   frame, buttons, fields, notes, pills and groups are the shell's and the cabinet's (`dp-*`,
   `cab-*`); only the admin's own parts are here. Element rules of the old frame (ul, li, form,
   label) are overridden where a part is built of them. */
/* An administrator's header carries a fourth link; on a phone its links sit closer so they keep
   one row (an author's header is untouched). */
@media (max-width: 559px) {
  .dp-nav:has([data-testid="nav-admin"]) .dp-navlink {
    padding: 0 8px;
  }
}
.dp .adm-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.dp .adm-nav .dp-btn[aria-current="page"] {
  border-color: var(--dp-accent);
  color: var(--dp-accent);
}
.dp .adm-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 32px;
}
@media (min-width: 700px) {
  .dp .adm-stats {
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  }
}
.dp .adm-stat {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}
.dp .adm-stat > * {
  margin: 0;
}
.dp .adm-big {
  font-size: var(--dp-text-title);
  font-weight: 600;
  line-height: 1.25;
}
.dp ul.adm-facts,
.dp ul.adm-games,
.dp ul.adm-errors,
.dp ol.adm-audit {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dp ul.adm-facts > li,
.dp ul.adm-games > li,
.dp ul.adm-errors > li,
.dp ol.adm-audit > li {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  min-width: 0;
}
/* The old frame clips the first span of a list row to one line; an admin row wraps. */
.dp .adm li > span:first-child {
  overflow: visible;
  white-space: normal;
}
.dp ul.adm-facts a,
.dp ul.adm-games a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.dp ul.adm-games > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.dp ol.adm-audit > li {
  padding: 8px 0;
  border-bottom: 1px solid var(--dp-line-soft);
}
.dp .adm-target {
  overflow-wrap: anywhere;
}
.dp .adm-why {
  display: block;
  color: var(--dp-muted);
  font-size: var(--dp-text-caption);
}
.dp .adm-list {
  display: grid;
  gap: 16px;
}
/* T-275: the queue's head (the counts and the Sort), the band that follows the admin under the
   sticky header after a verb, the row he lands on (its anchor stops under that band, the focus
   ring says which), and the numbered pages under the list. */
.dp .adm-queue-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 16px;
  color: var(--dp-muted);
}
.dp .adm-queue-sort a,
.dp .adm-queue-sort b {
  display: inline-block;
  min-width: 44px;
  min-height: 44px;
  line-height: 44px;
  padding: 0 4px;
  text-align: center;
}
.dp .adm-queue-sort b {
  color: var(--dp-accent);
}
.dp .adm-said {
  position: sticky;
  top: 63px;
  z-index: 5;
  margin: 0 0 16px;
  background: var(--dp-surface-panel);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--pub-bg) 55%, transparent);
}
.dp .adm-item {
  scroll-margin-top: 150px;
}
.dp .adm-item[data-focused]:focus-visible,
.dp .adm-item[data-focused]:focus {
  outline: 2px solid var(--dp-accent);
  outline-offset: 2px;
}
.dp .adm-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
}
.dp .adm-pager .dp-btn {
  min-width: 44px;
  padding-left: 12px;
  padding-right: 12px;
}
.dp .adm-pager b.dp-btn {
  border-color: var(--dp-accent);
  color: var(--dp-accent);
}
.dp .adm-pager-gap {
  padding: 0 4px;
  color: var(--dp-muted);
}
.dp .adm-pager-line {
  margin-left: 8px;
}
.dp .adm-item {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}
.dp .adm-item > * {
  margin: 0;
}
.dp .adm-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: var(--dp-text-heading);
  font-weight: 600;
}
.dp .adm-item-head a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}
.dp .adm-item-head .cab-pill {
  font-size: 13px;
}
.dp .adm-reason {
  white-space: pre-wrap;
}
.dp .adm-outcome {
  color: var(--dp-accent);
}
.dp .adm-pill--down {
  border-color: var(--dp-danger);
  color: var(--dp-danger);
}
.dp form.adm-act,
.dp form.adm-search {
  display: grid;
  gap: 8px;
  margin: 0;
}
.dp .adm-act label,
.dp .adm-search label {
  display: block;
}
.dp textarea.adm-text {
  min-height: 88px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
/* T-230: a number of seconds is the numeric role, not the form's width. */
.dp input.adm-seconds {
  width: 9rem;
  max-width: 100%;
}
.dp .adm-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.dp .adm-buttons .dp-btn {
  flex: 1 1 auto;
}
@media (min-width: 700px) {
  .dp .adm-buttons .dp-btn {
    flex: 0 0 auto;
  }
}
.dp form.adm-search {
  margin: 0 0 24px;
}
.dp .adm-search-row {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.dp .adm-search-row .dp-input {
  flex: 1 1 auto;
  min-width: 0;
}
.dp .adm-search-row .dp-btn {
  flex: 0 0 auto;
}
.dp .adm-band {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}
/* The author's band of the admin's notices: a PB-4 #10 notice whose colour says what happened -
   the accent for news (approved, restored, allowed), danger for a decision against the author
   (taken down, suspended, refused, hidden). */
.dp .adm-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0;
  color: var(--dp-text);
}
.dp .adm-notice--danger {
  border-left-color: var(--dp-danger);
}
.dp .adm-notice p {
  flex: 1 1 18rem;
  margin: 0;
  min-width: 0;
}
.dp .adm-notice form {
  display: flex;
  margin: 0;
}
/* end T-219 admin */
/* T-220 moderation - the Share page's held/refused block and /admin/moderation's two forms on the
   same shell. A held pill is the accent outline (a wait, not a fault); a refused one is the
   takedown's danger outline. The settings form lays its fields two to a row from 700 px. */
.dp .cab-moderation {
  display: grid;
  gap: 8px;
}
.dp .cab-moderation > * {
  margin: 0;
}
.dp .cab-moderation + .dp-ok {
  padding-top: 16px;
  border-top: 1px solid var(--dp-line-soft);
}
.dp ul.cab-reasons {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0 0 0 1.25rem;
}
.dp ul.cab-reasons > li {
  display: list-item;
  padding: 0;
  border: 0;
  overflow-wrap: anywhere;
}
.dp .adm-pill--held {
  border-color: transparent;
  background: color-mix(in srgb, var(--dp-warning) 18%, transparent);
  color: var(--dp-warning);
}
.dp form.adm-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 16px;
}
@media (min-width: 700px) {
  .dp form.adm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dp form.adm-grid .adm-wide {
    grid-column: 1 / -1;
  }
}
.dp form.adm-grid .dp-field {
  margin: 0;
  min-width: 0;
}
.dp form.adm-grid .dp-input {
  width: 100%;
  min-height: 44px;
}
/* SB-13.6: a short choice keeps the 16 rem role, a score the 9 rem numeric role - never the
   whole column. */
.dp form.adm-grid select.dp-input {
  max-width: 16rem;
}
.dp form.adm-grid input[type="number"].dp-input {
  max-width: 9rem;
}
.dp ul.adm-lists > li {
  display: grid;
  gap: 4px;
}
.dp ul.adm-lists p {
  margin: 0;
}
.dp dl.adm-words {
  display: grid;
  gap: 4px 12px;
  margin: 8px 0 0;
}
.dp dl.adm-words dt {
  font-weight: 600;
}
.dp dl.adm-words dd {
  margin: 0 0 8px;
  color: var(--dp-muted);
  overflow-wrap: anywhere;
}
.dp [data-testid="overrides"] > li {
  justify-content: space-between;
}
.dp [data-testid="overrides"] form {
  display: flex;
  margin: 0;
}
/* The Share page's way back is a 44 px target like every other (found by T-220's walk). */
.dp .cab-share-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* end T-220 moderation */
/* T-222 versions - a game's saves on the SB-16 shell: each a row of its own with the save's words,
   its time, Restore, the check's pill and the small Name this version form under a disclosure. */
.dp ul.cab-version-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: normal;
  gap: 8px;
}
.dp .cab-version-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}
.dp .cab-version-head .cab-list-name {
  flex: 1 1 16rem;
  overflow-wrap: anywhere;
}
.dp .cab-version-title {
  font-weight: 600;
}
.dp .cab-version-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.dp .cab-version--working {
  border-color: var(--dp-accent);
}
.dp .cab-pill--broken {
  border-color: var(--dp-danger);
  background: none;
  color: var(--dp-danger);
}
.dp .cab-version-name > summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dp-accent);
  list-style: none;
  cursor: pointer;
}
.dp .cab-version-name > summary::-webkit-details-marker {
  display: none;
}
.dp .cab-version-name > summary:hover {
  text-decoration: underline;
}
.dp .cab-version-name[open] {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--dp-line-soft);
}
.dp .cab-version-name form {
  margin: 0;
}
.dp .cab-version-check {
  display: grid;
  gap: 12px;
}
.dp .cab-version-check > * {
  margin: 0;
}
.dp .cab-version-backup {
  margin: 0 0 16px;
}
.dp .cab-restore {
  display: grid;
  gap: 16px;
}
.dp .cab-restore > * {
  margin: 0;
}
/* A long verb ("Восстановить последнюю рабочую версию") wraps on a phone rather than overflow. */
.dp .cab-restore .dp-btn {
  max-width: 100%;
  padding-block: 8px;
  white-space: normal;
}
.dp .cab-versions > p > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* end T-222 versions */

/* T-257 the store - the Share page's catalogue section, the appeal, the report form, the
   languages line, the admin's catalogue. Composed of SB-16's parts; nothing new in look. */
.dp .cab-listing-form {
  display: grid;
  gap: 16px;
}
.dp .cab-listing-in {
  display: grid;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dp-line-soft);
}
/* The three inputs show under `Listed in the catalogue`; without `:has` (or a script) they stay. */
.dp .cab-listing-form:has([data-testid="listing-off"]:checked) .cab-listing-in,
.dp .cab-listing:has([data-testid="listing-off"]:checked) .cab-gallery {
  display: none;
}

/* T-280 the cover and the gallery (PB-4 #5's well, #6's field): the cover block's well is the
   card's at the task page's width; the screenshots are 16:9 tiles with their three verbs under
   each; a file field takes the form's one width like every other field (N204). */
.dp .cab-cover--big {
  width: 100%;
  border: 1px solid var(--dp-line-soft);
  border-radius: var(--dp-card-radius);
}
.dp .cab-cover--big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dp input.dp-file {
  padding: 9px 12px;
  line-height: 1.5;
  cursor: pointer;
}
.dp input.dp-file::file-selector-button {
  margin-right: 12px;
  padding: 4px 12px;
  border: 1px solid var(--dp-field-line);
  border-radius: var(--dp-control-radius);
  background: var(--dp-control-fill);
  color: var(--dp-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.dp .cab-gallery {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--dp-line-soft);
}
.dp .cab-gallery > * {
  margin: 0;
}
.dp .cab-gallery-title {
  font-size: var(--dp-text-body);
}
.dp ol.cab-shots {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  list-style: none;
}
.dp .cab-shot {
  display: grid;
  gap: 8px;
}
.dp .cab-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--dp-line-soft);
  border-radius: calc(var(--dp-card-radius) - 4px);
  background: var(--dp-surface-stage);
}
.dp .cab-shot-actions {
  display: flex;
  gap: 4px;
}
.dp .cab-shot-actions form {
  display: contents;
}
.dp .cab-shot-actions .cab-shot-btn {
  flex: 1 1 auto;
  min-width: 44px;
  padding: 0 8px;
}
.dp .cab-shot-actions .cab-shot-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.dp .cab-shot-actions form:last-child .cab-shot-btn {
  flex: 2 1 auto;
}
/* T-292: the strip's pointer drag - a grab cursor once the script is on, the tile in hand faded,
   a bar at the edge of the tile under the pointer where the picture lands. */
.dp ol.cab-shots[data-drag] .cab-shot img {
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}
.dp ol.cab-shots.is-reordering,
.dp ol.cab-shots.is-reordering .cab-shot img {
  cursor: grabbing;
}
.dp .cab-shot.is-dragging {
  opacity: 0.45;
}
.dp .cab-shot {
  position: relative;
}
.dp .cab-shot[data-drop]::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--pub-radius-pill);
  background: var(--dp-accent);
  pointer-events: none;
}
.dp .cab-shot[data-drop="before"]::before {
  left: -7px;
}
.dp .cab-shot[data-drop="after"]::before {
  right: -7px;
}
/* The admin's catalogue row: the cover and the screenshots as small 16:9 tiles, read, not edited. */
.dp ol.adm-gallery {
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.dp .adm-gallery img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--dp-line-soft);
  border-radius: calc(var(--dp-card-radius) - 4px);
}
.dp .cab-genres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Four across only once a genre's word fits its tile whole: at 560 four tiles broke "Romance"
   in two (seen on the review's sheets), so two columns hold until 700. */
@media (min-width: 700px) {
  .dp .cab-genres {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.dp .cab-genres > legend,
.dp .cab-genres > .dp-error {
  grid-column: 1 / -1;
}
.dp label.cab-choice--small {
  padding: 10px 12px;
  align-items: center;
}
.dp .cab-age {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 4px;
}
.dp .cab-age > legend {
  padding: 0;
  margin-bottom: 4px;
}
.dp .cab-age > .dp-hint {
  margin: 0 0 8px;
}
.dp .cab-blurb {
  min-height: 5.5rem;
}
.dp .cab-appeal {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--dp-line-soft);
}
.dp .cab-appeal > p {
  margin: 0;
}
.dp .cab-appeal-text,
.dp .adm-appeal blockquote {
  margin: 0;
  padding: 8px 12px;
  border-left: 3px solid var(--dp-line);
  color: var(--dp-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gp-langs {
  margin: 0 0 16px;
}
.gp-report-form {
  display: grid;
  gap: 16px;
}
.gp-reasons {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}
.gp-reasons > legend {
  padding: 0;
  margin-bottom: 8px;
}
.gp-reasons label.cab-choice,
.dp .gp-reasons label.cab-choice {
  align-items: center;
  padding: 10px 12px;
}
.gp-signed-in {
  margin: 0;
}
.gp-signed-in a,
.gp-report .gp-actions a:not(.dp-btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.gp-actions a + a {
  margin-left: 8px;
}
@media (max-width: 559px) {
  .gp-actions a + a {
    margin: 8px 0 0;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}
/* end T-257 the store */
