/* Palette taken from the old Angular frontend's custom Material "wheat" theme,
   reused here as plain CSS variables. */
:root {
  color-scheme: light dark;
  --primary: #542344;      /* deep plum - toolbar, headers, primary buttons */
  --primary-dark: #3d1a32;
  --accent: #b4306c;       /* rose/magenta - secondary actions, links */
  --warn: #ac3a4f;         /* darkened from #ce4760 - WCAG AA 4.5:1 both as
                               button text-on-bg and as .flash-danger text */
  --fg: #201a1e;
  --bg: #faf7fb;
  --card-bg: #ffffff;
  --muted: #6b5f67;
  --border: #e6dde3;
  --pill-bg: #f4edf1;
  --pill-fg: #5f1b43;

  --status-verified: #88b285;      /* human-confirmed */
  /* High/mid/low confidence: user-customizable (see
     app/static/js/confidence-colors.js), so each is a clearly different hue
     from the others and from --status-verified/--status-flagged-border -
     the old palette (all light washed-out greens/neutrals) was too close to
     tell apart at a glance. */
  --status-auto: #6fa8dc;          /* high-confidence model guess (blue) */
  --status-review: #e2725b;        /* low-confidence, needs review (red/terracotta) */
  --status-unconfirmed: #f2994a;   /* mid-confidence model guess (orange) */
  --status-flagged-border: #ffc300;/* engine-flagged illegal move */
  --status-unverified-text: #c2330f; /* darkened from #ff5733 - WCAG AA 4.5:1 on --card-bg */

  --board-light: #f0d9b5;
  --board-dark: #b58863;
  --board-text: #201a1e;

  /* Text/backgrounds for colored surfaces (primary-colored nav/footer/table
     headers, flash banners, danger icon buttons, confidence-colored ply
     rows, the "flagged" legend swatch) - split out as their own variables
     so an alternate color scheme (see color-scheme.js) can repaint these
     too, not just the base --fg/--bg/--card-bg trio. */
  --on-primary: #fff;
  --footer-fg: #e9dbe4;
  --flash-warning-bg: #fef3c7;
  --flash-warning-fg: #b45309;
  --flash-danger-bg: #fde2e2;
  --flash-danger-bg-hover: #fbc7c7;
  --flash-success-bg: #e2f3e0;
  --flash-success-fg: #2f6f2a;
  --flash-info-bg: #e6ecfb;
  --ply-source-text: #1a1a1a;
  --ply-source-human-text: #14301a;
  --legend-flagged-bg: #fff;
  --secondary-bg: #ffc5e2;         /* secondary buttons - pink, distinct from --primary */
  --secondary-fg: #5f1b43;
  --secondary-border: transparent; /* only shown on hover, except in High Contrast */
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #efe6ec;
    --bg: #1c1720;
    --card-bg: #241d27;
    --muted: #b7a9b2;
    --border: #3a2f37;
    --pill-bg: #3a2432;
    --pill-fg: #f0c9de;
    --status-unverified-text: #ff8a65; /* lighter on dark --card-bg, still >=4.5:1 */
  }
}

/* Site-wide color schemes (app/static/js/color-scheme.js), gated behind
   COLOR_SCHEME_ENABLED - each redefines every themable custom property
   above so nothing is left on the default/OS-driven palette. An attribute
   selector on :root is more specific than the plain `:root` rules above
   (with or without the dark-mode media query), so an explicit scheme
   always wins over the OS preference once one is picked. "default" applies
   no overrides at all - it's today's existing light/dark behavior, not a
   fifth palette. */
:root[data-color-scheme="highContrast"] {
  --primary: #000; --primary-dark: #000; --accent: #000; --warn: #7a0000;
  --fg: #000; --bg: #fff; --card-bg: #fff; --muted: #262626; --border: #000;
  --pill-bg: #000; --pill-fg: #fff;
  --status-verified: #006400; --status-auto: #00008b; --status-review: #8b0000;
  --status-unconfirmed: #8b4500; --status-flagged-border: #ffbf00; --status-unverified-text: #8b0000;
  --board-light: #fff; --board-dark: #8f8f8f; --board-text: #000;
  --on-primary: #fff; --footer-fg: #fff;
  --flash-warning-bg: #fff3c4; --flash-warning-fg: #4a3300;
  --flash-danger-bg: #ffd6d6; --flash-danger-bg-hover: #ffb3b3;
  --flash-success-bg: #cdf0cd; --flash-success-fg: #003d00;
  --flash-info-bg: #cfe3ff;
  /* White, not black - the confidence-row backgrounds in this scheme
     (status-auto/review/unconfirmed above) are all dark, unlike the light
     pastels the default scheme uses, so the text riding on top needs to
     flip light too. */
  --ply-source-text: #fff; --ply-source-human-text: #fff; --legend-flagged-bg: #fff;
  --secondary-bg: #fff; --secondary-fg: #000; --secondary-border: #000;
}

:root[data-color-scheme="highBrightness"] {
  --primary: #7a3568; --primary-dark: #5c2a4d; --accent: #e0468a; --warn: #d64562;
  --fg: #201a1e; --bg: #fff; --card-bg: #fff; --muted: #7a6d75; --border: #ecdde6;
  --pill-bg: #fbeef5; --pill-fg: #7a2456;
  --status-verified: #4caf50; --status-auto: #42a5f5; --status-review: #ef5350;
  --status-unconfirmed: #ffa726; --status-flagged-border: #ffd600; --status-unverified-text: #d32f2f;
  --board-light: #fff4e0; --board-dark: #e0b980; --board-text: #201a1e;
  --on-primary: #fff; --footer-fg: #f5e3ee;
  --flash-warning-bg: #fff8e1; --flash-warning-fg: #b45309;
  --flash-danger-bg: #ffebee; --flash-danger-bg-hover: #ffcdd2;
  --flash-success-bg: #e8f5e9; --flash-success-fg: #2e7d32;
  --flash-info-bg: #e3f2fd;
  --ply-source-text: #1a1a1a; --ply-source-human-text: #14301a; --legend-flagged-bg: #fff;
  --secondary-bg: #f8c8de; --secondary-fg: #7a2456;
}

:root[data-color-scheme="lowBrightness"] {
  /* --primary/--muted double as both chrome backgrounds (nav, buttons -
     paired with --on-primary) and as plain text-on-card-bg (button.secondary,
     .color-picker summary, .match-players, flash-info text, ...) - they need
     to stay legible against --card-bg too, not just look "dark themed", so
     these are a lighter mauve/gray rather than as dark as --bg/--card-bg. */
  --primary: #a9748f; --primary-dark: #7a4f63; --accent: #c98fae; --warn: #c97a7a;
  --fg: #b8aeb4; --bg: #0d0a0f; --card-bg: #15111a; --muted: #9b8f97; --border: #241d28;
  --pill-bg: #201829; --pill-fg: #d8b8c8;
  --status-verified: #4a6b48; --status-auto: #3f5f7a; --status-review: #7a4235;
  --status-unconfirmed: #7a5a2f; --status-flagged-border: #a37f00; --status-unverified-text: #e0a888;
  --board-light: #6b5a4a; --board-dark: #3a2f26; --board-text: #d8cfc0;
  /* Pure black, not just a dark tone - .topnav a's opacity:0.9 blends this
     toward --primary before it's painted, so it needs headroom above the
     4.5:1 minimum to still clear it once blended. */
  --on-primary: #000; --footer-fg: #e8dfd4;
  --flash-warning-bg: #2e2416; --flash-warning-fg: #d8ab5c;
  --flash-danger-bg: #2e1a1a; --flash-danger-bg-hover: #3a2222;
  --flash-success-bg: #1a2618; --flash-success-fg: #7fae7d;
  --flash-info-bg: #17202c;
  --ply-source-text: #e8e0e4; --ply-source-human-text: #d8f0d4; --legend-flagged-bg: #15111a;
  --secondary-bg: #4a2a3d; --secondary-fg: #e8cddb;
}

/* Night mode (app/static/js/color-scheme.js): a full-page color inversion,
   independent of and composable with whichever scheme (if any) is active
   above, rather than a fifth hand-tuned palette. Real photographic content
   (uploaded scoresheet pages/thumbnails/box crops) gets inverted right back
   so photos don't render as negatives. */
:root[data-night-mode="true"] body { filter: invert(1) hue-rotate(180deg); }
:root[data-night-mode="true"] img { filter: invert(1) hue-rotate(180deg); }

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Helvetica Neue", Roboto, system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 { font-size: clamp(24px, 5vw, 36px); margin-top: 0; }
h2 { font-size: clamp(18px, 3vw, 24px); }

.topnav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 0.85rem 1.5rem;
  background: var(--primary);
  color: var(--on-primary);
}

/* Navigation: below 600px (.nav-mobile media query further down) the
   inline .nav-menu is swapped for the .nav-mobile <details> menu - both are
   rendered from the same macros in base.html. 600px fits the longest
   guest/user bar (German, ~535px); the wider admin bar just wraps. */
.nav-menu, .nav-links, .nav-right { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.nav-menu { flex: 1; }
.topnav a, .topnav summary { white-space: nowrap; }

.nav-mobile { display: none; margin-left: auto; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle:hover, .nav-mobile[open] .nav-toggle { background: rgba(255, 255, 255, 0.15); }
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem 1.1rem;
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.nav-panel .nav-links,
.nav-panel .nav-right { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
/* The language dropdown inside the panel opens in place rather than
   floating over it. */
.nav-panel .dropdown-menu { position: static; margin-top: 0.4rem; }
/* Account email heading the panel (the avatar dropdown isn't in it). */
.nav-account-email {
  align-self: stretch;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.85;
  overflow-wrap: anywhere;
}

.topnav a { color: var(--on-primary); text-decoration: none; opacity: 0.9; }
.topnav a:hover { opacity: 1; text-decoration: underline; }
.topnav .brand { font-weight: 700; font-size: 1.1rem; opacity: 1; }
.topnav .spacer { flex: 1; }
.topnav form.inline { display: inline; }
.topnav .view-as-form select {
  background: rgba(255, 255, 255, 0.15);
  color: var(--on-primary);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}
.topnav .view-as-form select option { color: var(--fg); }

.container { max-width: 1000px; margin: 0 auto; padding: 1.5rem; flex: 1; width: 100%; }

.site-footer {
  background: var(--primary-dark);
  color: var(--footer-fg);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.flashes { list-style: none; padding: 0; }
.flash { padding: 0.6rem 1rem; border-radius: 8px; margin-bottom: 0.5rem; }
.flash-warning { background: var(--flash-warning-bg); color: var(--flash-warning-fg); }
.flash-danger { background: var(--flash-danger-bg); color: var(--warn); }
.flash-success { background: var(--flash-success-bg); color: var(--flash-success-fg); }
.flash-info { background: var(--flash-info-bg); color: var(--primary); }

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
th, td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: var(--primary); color: var(--on-primary); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }

form.stacked label { display: block; margin-top: 0.75rem; font-weight: 600; font-size: 0.9rem; }
form.stacked input, form.stacked select, form.stacked textarea {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--fg);
  font-weight: normal;
}

form.stacked input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
form.stacked select {
  max-width: 320px;
}

form.stacked button[type="submit"] { margin-top: 1rem; }
/* The full-width text-field rule above must not stretch checkboxes and radios. */
form.stacked input[type="checkbox"], form.stacked input[type="radio"] { display: inline-block; width: auto; flex: none; margin: 0; }

button, .btn {
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
}
button:hover, .btn:hover { background: var(--primary-dark); }
button:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

/* Solid rose-tinted fill with a rose border, so secondary buttons stand out
   from the page in every scheme without competing with the plum primary
   (the old transparent --primary outline was ~1.4:1 in dark mode). The
   padding is trimmed by the border width so it matches primary buttons. */
button.secondary, .btn.secondary {
  background: var(--secondary-bg);
  color: var(--secondary-fg);
  border: 2px solid var(--secondary-border);
  padding: calc(0.5rem - 2px) calc(1.1rem - 2px);
}
/* Like the primary button's hover: the same color, darkened - plus the
   accent border showing up. */
button.secondary:hover, .btn.secondary:hover {
  background: color-mix(in srgb, var(--secondary-bg) 85%, #000);
  border-color: var(--accent);
}
button.secondary:disabled, button.secondary:disabled:hover {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
button.danger, .btn.danger { background: var(--warn); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
}
.icon-btn:hover { background: var(--pill-bg); }
.icon-btn.danger { color: var(--warn); border-color: var(--warn); background: var(--flash-danger-bg); }
.icon-btn.danger:hover { background: var(--flash-danger-bg-hover); }

.download-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-left: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
  border-radius: 4px;
  background: var(--pill-bg);
}
.download-box .btn svg { margin-right: 0.35rem; vertical-align: -0.2em; }

.match-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.match-card-actions { display: flex; align-items: center; gap: 0.4rem; }
.match-grid-actions {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  display: flex;
  gap: 0.4rem;
}
.match-grid-actions .icon-btn:not(.danger) { background: rgba(255, 255, 255, 0.85); }

.dropdown { position: relative; display: inline-block; }
.dropdown summary { list-style: none; cursor: pointer; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  margin-top: 0.25rem;
  padding: 0.35rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.dropdown-menu a {
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.dropdown-menu a:hover { background: var(--pill-bg); }

.match-name { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
p.match-name { margin: 0 0 0.15rem; }
.match-players { color: var(--muted); font-size: 0.85rem; font-weight: 600; margin: 0.15rem 0 0; }
.match-owner { color: var(--muted); font-size: 0.8rem; }
p.match-owner { margin: 0.15rem 0 0; }

.match-details { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; margin: 0 0 1rem; }
.match-details div { display: flex; gap: 0.35rem; }
.match-details dt { font-weight: 600; margin: 0; }
.match-details dd { margin: 0; color: var(--muted); }

.plies-section summary { cursor: pointer; }
.plies-section summary h2 { display: inline-block; margin: 0; }

.pill {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-weight: 600;
  font-size: 0.85rem;
}

.match-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  background: var(--card-bg);
  color: var(--fg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  transition: top 0.15s ease-in;
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--status-flagged-border);
  outline-offset: 2px;
}

.dropdown-menu-right { left: auto; right: 0; }
.dropdown-menu-label {
  padding: 0.5rem 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
  white-space: nowrap;
}
.topnav .dropdown-menu a { color: var(--fg); opacity: 1; }

.lang-switch summary { padding: 0.15rem 0.4rem; border-radius: 4px; opacity: 0.9; }
.lang-switch summary:hover { opacity: 1; background: rgba(255, 255, 255, 0.2); }
.lang-switch summary::after { content: " \25BE"; }
.lang-switch .dropdown-menu { min-width: 130px; }
.lang-switch .dropdown-menu a.active { background: var(--pill-bg); color: var(--pill-fg); }
.lang-switch .dropdown-menu a.active::after { content: " \2713"; }

.user-avatar { display: block; border-radius: 50%; }
.user-avatar img {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--on-primary);
}
.user-avatar:hover img { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }

.avatar-picker { display: flex; flex-wrap: wrap; gap: 0.75rem; border: none; padding: 0; margin: 0 0 1rem; }
.avatar-picker label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
}
.avatar-picker label:has(input:checked) { border-color: var(--accent); background: var(--pill-bg); font-weight: 700; }
.avatar-picker img { border-radius: 50%; }

.scheme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  font-size: 0.85rem;
}
.scheme-switch select {
  background: rgba(255, 255, 255, 0.15);
  color: var(--on-primary);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 0.15rem 0.3rem;
}
.scheme-switch select option { color: var(--fg); }
.scheme-switch label { display: inline-flex; align-items: center; gap: 0.25rem; }

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.75rem;
}
.view-toggle a {
  padding: 0.2rem 0.9rem;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 600;
}
.view-toggle a.active {
  background: var(--pill-bg);
  color: var(--pill-fg);
}

.page-size-select {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.75rem;
  font-size: 0.85rem;
}
.page-size-select a {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
}
.page-size-select a.active {
  background: var(--pill-bg);
  color: var(--pill-fg);
  border-color: transparent;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
.pagination-disabled {
  color: var(--muted);
}
.pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.pagination-jump input[type="number"] {
  width: 4rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.match-grid-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  padding: 0.75rem;
}
.match-grid-select {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  padding: 0.5rem;
  min-width: 24px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.match-grid-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--fg);
  text-decoration: none;
}
.match-grid-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--pill-bg);
  margin-bottom: 0.5rem;
}
.match-grid-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--muted);
}

.match-card-body { display: flex; gap: 1rem; align-items: flex-start; margin-top: 0.5rem; }
.match-card-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--pill-bg);
  flex-shrink: 0;
  display: block;
}
.match-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--muted);
}
.match-card-info { flex: 1; min-width: 0; }

.match-overview { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; margin-bottom: 1rem; }
.match-overview .match-details { flex: 1 1 12rem; min-width: 0; }
.match-details dd { overflow-wrap: anywhere; }
.match-detail-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--pill-bg);
  flex-shrink: 0;
  display: block;
}
.match-detail-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--muted);
}

/* Ply rows: color-coded by source/confidence, echoing the old scoresheet
   verification table's move-cell coloring. */
.ply-row.source-human { background: var(--status-verified); color: var(--ply-source-human-text); }
/* Explicit dark text, not just inheriting --fg: in dark mode --fg is a
   near-white color, and these backgrounds stay light in both themes (unlike
   most of the page), so relying on --fg here left this text barely legible
   in dark mode. */
.ply-row.source-model-high { background: var(--status-auto); color: var(--ply-source-text); }
.ply-row.source-model-low { background: var(--status-review); color: var(--ply-source-text); }
.ply-row.source-model-mid { background: var(--status-unconfirmed); color: var(--ply-source-text); }
.ply-row.needs-correction { outline: 3px solid var(--status-flagged-border); outline-offset: -3px; }

.confidence-low { color: var(--status-unverified-text); font-weight: 600; }
/* .source-model-low's own row background (--status-review, a reddish
   orange) doesn't have enough contrast against .confidence-low's red text
   color - the row's own dark text color (set alongside that background,
   see .ply-row.source-model-low above) already reads fine there, so just
   defer to it instead of layering a second, clashing red on top. */
.ply-row.source-model-low .confidence-low { color: inherit; }

/* --board-size shrinks on narrow screens so the board never forces a
   horizontal scroll (WCAG 1.4.10 reflow): 3rem is the page's side padding. */
table.chess-board {
  --board-size: min(20rem, calc(100vw - 3rem));
  border-collapse: collapse;
  table-layout: fixed;
  width: var(--board-size);
  height: var(--board-size);
  margin-bottom: 0.5rem;
}
table.chess-board td {
  width: calc(var(--board-size) / 8); height: calc(var(--board-size) / 8);
  text-align: center; vertical-align: middle;
  font-size: calc(var(--board-size) / 8 * 0.64); border: none; padding: 0;
  overflow: hidden;
}
table.chess-board td.sq-light { background: var(--board-light); color: var(--board-text); }
table.chess-board td.sq-dark { background: var(--board-dark); color: var(--board-text); }

th {
    cursor: pointer;
}

th[data-sort-method="none"] {
    cursor: default;
}

.settings-board-preview { margin-bottom: 1rem; }

.replay-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.replay-controls button { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.replay-controls button:hover:not(:disabled) { background: var(--pill-bg); }
.replay-controls button:disabled { border-color: var(--border); color: var(--muted); }

.count-ok { color: var(--flash-success-fg); font-weight: 600; }
.count-overridden { color: var(--status-unverified-text); font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.legend-swatch {
  display: inline-block;
  width: 0.9rem; height: 0.9rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.legend-swatch.source-human { background: var(--status-verified); }
.legend-swatch.source-model-high { background: var(--status-auto); }
.legend-swatch.source-model-mid { background: var(--status-unconfirmed); }
.legend-swatch.source-model-low { background: var(--status-review); }
.legend-swatch.needs-correction { background: var(--legend-flagged-bg); outline: 3px solid var(--status-flagged-border); outline-offset: -3px; }

.color-picker { margin-bottom: 1rem; font-size: 0.85rem; }
.color-picker summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.color-picker-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
}
.color-picker-controls label { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.color-picker-controls input[type="color"] {
  width: 2.2rem;
  height: 1.6rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: none;
}

.scoresheet-pages { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.scoresheet-thumb {
  max-width: 160px;
  max-height: 220px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.box-thumb {
  max-width: 140px;
  max-height: 40px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Upload spinner - shown once the OCR scan has taken longer than 5s
   (see app/static/js/upload.js), not immediately, so a fast scan never
   flashes it. */
.upload-status { margin-top: 1.5rem; text-align: center; }
.chess-spinner {
  display: inline-block;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  animation: chess-spin 1.2s linear infinite;
}
@keyframes chess-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Focus mode: one ply at a time, with its box crop and the matching region
   of the scoresheet page highlighted. */
.focus-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
/* An author-stylesheet rule like .focus-card{display:flex} otherwise wins
   over the browser's default `[hidden]{display:none}` (author origin beats
   user-agent origin regardless of selector specificity) - without this,
   toggling the `hidden` attribute in JS (ply-editor.js) has no visible
   effect and every card renders at once. */
.focus-card[hidden] { display: none; }
.focus-scoresheet { position: relative; flex: 1 1 260px; max-width: 320px; }
.focus-scoresheet img { max-width: 100%; border-radius: 8px; display: block; }
.focus-highlight {
  position: absolute;
  border: 3px solid var(--status-flagged-border);
  border-radius: 3px;
  pointer-events: none;
  transition: top 0.15s ease, left 0.15s ease, width 0.15s ease, height 0.15s ease;
}
.focus-detail { flex: 1 1 240px; }
.focus-detail .box-thumb { max-width: 260px; max-height: 80px; margin-bottom: 0.75rem; }
.focus-nav { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.focus-nav button { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.focus-nav button:hover:not(:disabled) { background: var(--pill-bg); }
.focus-nav button:disabled { border-color: var(--border); color: var(--muted); }

/* Which of the scoresheet/box-crop images to show (both by default) - a
   client-side-only preference applied via ply-editor.js as
   data-image-view on #ply-editor-root. */
.image-view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.image-view-toggle button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 600;
}
.image-view-toggle button.active { background: var(--pill-bg); color: var(--pill-fg); }
#ply-editor-root[data-image-view="box"] .focus-scoresheet { display: none; }
#ply-editor-root[data-image-view="scoresheet"] .focus-detail .box-thumb { display: none; }

/* Current ply, highlighted while stepping through replay (rows/pairs/focus). */
.ply-row.current-ply, .pair-move.current-ply { outline: 3px solid var(--accent); outline-offset: -3px; }
.focus-card.current-ply { border-color: var(--accent); }

/* Accept-as-correct checkmark next to the move editor's Save button, and
   the confirmed-card indicator it sets via ply-editor.js. */
.accept-btn {
  background: transparent;
  color: var(--status-verified, #2f6f2a);
  border: 1px solid var(--status-verified, #2f6f2a);
  font-weight: 700;
}
.accept-btn:hover { background: var(--pill-bg); }
.focus-card[data-confirmed="true"] { border-color: var(--status-verified, #2f6f2a); }
.focus-card[data-confirmed="true"] .focus-detail::before {
  content: "\2713";
  display: inline-block;
  color: var(--status-verified, #2f6f2a);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* Insert/move/delete controls, shown only when PLY_EDITING_ENABLED. */
.ply-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.ply-action-form { display: inline-block; }

/* Pairs view: one row per move number, White/Black plies side by side. */
table.pairs-table td, table.pairs-table th { vertical-align: middle; }
.pair-move {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem;
  border-radius: 6px;
}
.pair-move .box-thumb { max-width: 100px; max-height: 30px; }

dialog#pgn-modal,
dialog.modal {
  border: none;
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 40rem;
  width: 90vw;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  color: var(--fg);
  background: var(--card-bg);
}
dialog#pgn-modal::backdrop,
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.5); }
dialog#pgn-modal h2,
dialog.modal h2 { margin-top: 0; }
#pgn-modal-text {
  max-height: 50vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: monospace;
}
.modal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }

/* Admin log viewer */
.log-filters fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
.log-filters legend { font-weight: 600; padding: 0 0.25rem; }
.log-search { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
.log-search input[type="search"] { flex: 1 1 18rem; }
.table-scroll { overflow-x: auto; }
.log-table td { vertical-align: top; }
.log-message { overflow-wrap: anywhere; min-width: 16rem; }

/* ML datasets */
.dataset-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.dataset-grid li { display: flex; flex-direction: column; gap: 0.25rem; overflow-wrap: anywhere; }
.dataset-grid img { width: 100%; height: 160px; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; }
.dataset-meta { color: var(--muted); font-size: 0.85rem; }

/* Model Analyser */
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.3rem 0; font-weight: normal; overflow-wrap: anywhere; }
.hint { color: var(--muted); font-size: 0.85rem; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; margin: 0.75rem 0; }
legend { font-weight: 600; padding: 0 0.25rem; }

/* Landing page (app/templates/home.html) - the pre-login start screen. */
.landing-hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
.landing-hero h1 { max-width: 22em; margin: 0 auto 0.75rem; }
.landing-lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.5rem; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 0; }
.landing-section { margin-top: 2.5rem; }
.landing-cta { text-align: center; }

.landing-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

/* The whole example scoresheet photo (img/examples/scoresheet.jpg,
   3:4 portrait). */
.landing-sheet-photo {
  width: 18rem;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.landing-sheet-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; }
.landing-arrow { color: var(--primary); flex-shrink: 0; }
.landing-pgn {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.landing-steps {
  list-style: none;
  counter-reset: landing-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 0;
}
.landing-steps li {
  counter-increment: landing-step;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  padding: 1rem;
}
.landing-steps li::before {
  content: counter(landing-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

.landing-steps li.landing-step-auto { background: var(--pill-bg); box-shadow: none; }
.landing-steps small { display: block; margin-top: 0.4rem; color: var(--muted); }

.landing-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0;
}
.landing-cards li {
  background: var(--card-bg);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  font-weight: 600;
}

/* Focus Mode verification (games/verify.html, app/static/js/focus-verify.js) */
.verify-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.verify-head h1 { margin-bottom: 0; overflow-wrap: anywhere; }
/* Gray layer over the whole page; only the current card's image, move and
   Confirm (z-index above it) stay in focus. Clicks pass through, so the
   dimmed nav/Back/Exit still work - and it steps aside while a nav menu is
   open. */
.verify-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(48, 46, 52, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}
body:has(.topnav details[open]) .verify-scrim { display: none; }
.verify-card { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding-top: 1.5rem; }
.verify-card[hidden], .verify-badge[hidden] { display: none; }
.verify-card > *, .verify-pair > * { position: relative; z-index: 40; }
.verify-meta { margin: 0; padding: 0.25rem 0.75rem; border-radius: 999px; color: #f1edf3; background: #2b2330; font-weight: 600; letter-spacing: 0.02em; text-align: center; }
/* Image (left) and recognized move (right) are the same size: same flex
   basis, and the pair stretches both to the taller one's height. */
.verify-pair { display: flex; align-items: stretch; justify-content: center; gap: 1.5rem; width: 100%; }
.verify-box,
.verify-move {
  flex: 0 1 420px;
  min-width: 0;
  min-height: 320px;
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.verify-box { display: flex; align-items: center; justify-content: center; padding: 8px; background: #fff; }
.verify-box img { display: block; width: 100%; height: auto; border-radius: 8px; }
.verify-no-box { margin: 0; padding: 2rem 1rem; color: #6b5f67; text-align: center; }
.verify-arrow { flex: none; display: flex; align-self: center; color: #f1edf3; }
.verify-move {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  text-align: center;
}
.verify-move-main { flex: 1; display: grid; place-content: center; justify-items: center; gap: 0.5rem; }
.verify-label { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.verify-move-text { font-size: 5.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.verify-flag { margin: 0; max-width: 520px; padding: 0.5rem 0.75rem; border-radius: 8px; background: var(--flash-warning-bg); color: var(--flash-warning-fg); }
.verify-actions { display: grid; justify-items: center; gap: 0.75rem; width: min(420px, 100%); }
.verify-accept {
  min-width: 280px;
  padding: 0.9rem 2.6rem;
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}
.verify-manual { width: 100%; padding-top: 1rem; border-top: 1px solid var(--border); text-align: left; }
.verify-manual label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.verify-manual-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.verify-manual-row button { margin-top: 0; }
.verify-manual input {
  flex: 1 1 9rem;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--fg);
  font-size: 1rem;
}
.verify-manual .save-status:empty { display: none; }
.verify-back { position: relative; z-index: 40; display: flex; justify-content: center; margin-top: 0.75rem; }
.verify-back .verify-prev { margin-top: 0; }
.verify-back .verify-prev:disabled { opacity: 0.5; cursor: not-allowed; }
.verify-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.verify-footer #verify-progress { margin-right: auto; }
dialog.modal form.stacked input:not([type="checkbox"]):not([type="radio"]) { max-width: none; }
/* Links and buttons side by side in a dialog should match - <button>
   doesn't inherit the page font by default. */
dialog.modal .modal-actions :is(button, .btn) { margin-top: 0; font: inherit; font-weight: 600; }

@media (max-width: 599.98px) {
  .nav-menu { display: none; }
  .nav-mobile { display: block; }
}

@media (max-width: 640px) {
  .landing-arrow { transform: rotate(90deg); }
  /* Phone: image, arrow and move stacked, Confirm right underneath. */
  .verify-card { gap: 1rem; padding-top: 0.5rem; }
  .verify-pair { flex-direction: column; gap: 0.5rem; }
  .verify-box, .verify-move { flex: none; width: 100%; min-height: 0; }
  .verify-arrow { transform: rotate(90deg); }
  .verify-move { padding: 1.25rem 1rem; }
  .verify-move-text { font-size: 5rem; }
  .verify-actions { width: 100%; }
  .verify-accept { width: 100%; min-width: 0; }
  .verify-back .verify-prev { width: 100%; }
  .topnav { padding: 0.75rem 1rem; }
}

/* Upload page (games/new.html) */
#upload-form { text-align: center; }
.upload-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.25rem 0 0.5rem; }
.btn.upload-choice {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 10rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: 12px;
}
.btn.secondary.upload-choice { border-color: var(--secondary-border); }
.btn.secondary.upload-choice:hover { border-color: var(--accent); }
/* The native input stays in place (invisible, covering the whole label) so
   it keeps keyboard focus and click handling - the label shows the focus. */
.upload-choice input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-choice:focus-within { outline: 3px solid var(--status-flagged-border); outline-offset: 2px; }
#upload-form > button[type="submit"] { margin-top: 0.25rem; }
.link-btn { background: none; border: none; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; }
.link-btn:hover { background: none; }

.upload-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 2rem; margin-top: 1rem; }
.upload-info ul { padding-left: 1.2rem; }

.example-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
  justify-content: center;
  gap: 1rem;
}
.example figure { margin: 0; }
.example figcaption { margin-top: 0.4rem; font-size: 0.9rem; }
.example-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 4px solid;
  border-radius: 10px;
  background: var(--board-light);
}
.example-good .example-frame { border-color: var(--flash-success-fg); }
.example-bad .example-frame { border-color: var(--warn); }
.example-frame img { width: 100%; height: 100%; object-fit: cover; }
.example-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
}
.example-good .example-badge { background: var(--flash-success-fg); }
.example-bad .example-badge { background: var(--warn); }
.example-blurry img { filter: blur(4px); }
.example-dark img { filter: brightness(0.3); }
.example-dark .example-frame { background: #3a3027; }
.example-cropped img { transform: scale(1.6) translate(-14%, -15%); }

.mode-options label { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.5rem 0; font-weight: normal; }
.mode-options input { margin-top: 0.25rem; }
.mode-unavailable { color: var(--muted); }

/* Buttons that sit in the top bar and have to read like its links (Log out,
   the "View as" Apply). */
.topnav .nav-button,
.nav-panel .nav-button {
  background: transparent;
  color: var(--on-primary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: inherit;
  font: inherit;
  opacity: 0.9;
  text-decoration: none;
}
.topnav .nav-button:hover,
.nav-panel .nav-button:hover { background: rgba(255, 255, 255, 0.2); opacity: 1; text-decoration: underline; }
form.inline { display: inline; }
.narrow-number { width: 5rem; }

/* Motion: the processing spinner and the sliding focus highlight are
   decorative; people who ask for reduced motion get them static (WCAG
   2.2.2 / 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* A control plus its explicit Update button (role/limit editors): spaced so
   neither target is crowded (WCAG 2.5.8). */
td form.inline { display: inline-flex; gap: 0.5rem; align-items: center; }
td form.inline select, td form.inline button { min-height: 2rem; }

/* Wide data tables scroll inside their own box instead of widening the page
   (WCAG 1.4.10). static/js/tables.js adds this wrapper, and makes it a
   keyboard-focusable labelled region only while it really overflows. */
.table-scroll { position: relative; max-width: 100%; overflow-x: auto; margin-bottom: 1.5rem; }
.table-scroll > table { margin-bottom: 0; }
#flash-alert:focus { outline-offset: 4px; }
