/*
 * Pond Hockey Theme — the locked visual reference in CSS.
 *
 * Dark pro-hockey / broadcast / film-room: near-black surfaces, condensed uppercase
 * headings, stat-tile density, one strong per-club accent (Delaware Ducks teal) + a
 * maroon secondary. Ported straight from the LOCKED tokens in
 * ux/docs/POND_HOCKEY_THEME.md (source ux/mocks/styles.css + AppShell.tsx) — the
 * React/shadcn/Tailwind code is NOT copied; only the tokens + idioms are re-expressed
 * here as plain CSS custom properties + component classes.
 *
 * This is a deliberately single-look (dark) design, so backgrounds and colours are
 * painted explicitly rather than adapting to prefers-color-scheme.
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;450;500;700&family=Barlow+Condensed:wght@600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* --- Fixed palette (shared across ALL clubs) ------------------------------ */
    --radius: 0.25rem; /* sharp / utilitarian */

    /* Standard control heights so chips / buttons line up on every page. */
    --control-h-sm: 1.75rem; /* chips + header toggle buttons */
    --control-h: 2.25rem;    /* primary action buttons + inputs */

    --background: oklch(0.16 0.008 240); /* deep near-black */
    --foreground: oklch(0.96 0.003 240);

    --surface: oklch(0.21 0.009 240);
    --surface-2: oklch(0.26 0.01 240);
    --card: oklch(0.21 0.009 240);
    --card-foreground: oklch(0.96 0.003 240);
    --popover: oklch(0.22 0.01 240);
    --popover-foreground: oklch(0.96 0.003 240);

    --muted: oklch(0.26 0.01 240);
    --muted-foreground: oklch(0.78 0.012 240);

    --border: oklch(0.32 0.012 240);
    --input: oklch(0.3 0.012 240);

    --destructive: oklch(0.62 0.2 25); /* red = "a problem to fix" */
    --destructive-foreground: oklch(0.98 0.01 30);
    --success: oklch(0.72 0.16 155);
    --warning: oklch(0.79 0.15 80);

    /* --- Per-CLUB accents (Delaware Ducks defaults; SETTABLE later in Settings) -
       Abstracted as variables so re-skinning a club = changing these 2-4 values
       while the rest of the theme stays fixed. Defaults derived from the Ducks logo. */
    --primary: oklch(0.72 0.11 185); /* teal */
    --primary-foreground: oklch(0.16 0.02 200);
    --accent: oklch(0.72 0.11 185);
    --accent-foreground: oklch(0.16 0.02 200);
    --ring: oklch(0.72 0.11 185);
    --secondary: oklch(0.4 0.1 18); /* maroon */
    --secondary-foreground: oklch(0.97 0.01 30);

    /* --- Type ---------------------------------------------------------------- */
    --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Barlow", system-ui, sans-serif;
    --font-condensed: "Barlow Condensed", "Barlow", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.975rem;
    font-weight: 450;
    line-height: 1.5;
    font-feature-settings: "tnum" 1;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-condensed);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.015em;
    margin: 0;
}

a {
    color: inherit;
}

/* --- Utilities -------------------------------------------------------------- */
.label-kicker {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.tnum {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

.font-condensed {
    font-family: var(--font-condensed);
}

.pond-accent-text {
    color: var(--primary);
}

/* =====================================================================
 * App shell — sticky dark header, nav, blurred crest watermark, content.
 * ===================================================================== */
.pond-appshell {
    position: relative;
    min-height: 100vh;
}

/* Blurred, low-opacity crest watermark BEHIND the content chrome (never behind
   video). No real image needed yet — a desaturated teal/maroon glow over a
   background overlay stands in for the per-club uploaded crest. */
.pond-watermark {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: -1; /* behind all content so .pond-content need not open a stacking context */
    overflow: hidden;
    background:
        radial-gradient(60% 55% at 22% 18%, color-mix(in oklch, var(--primary) 22%, transparent), transparent 70%),
        radial-gradient(55% 55% at 82% 88%, color-mix(in oklch, var(--secondary) 26%, transparent), transparent 72%),
        linear-gradient(to bottom, var(--background), color-mix(in oklch, var(--background) 20%, transparent) 45%, var(--background));
    opacity: 0.55;
    filter: blur(6px) saturate(0.75);
}

.pond-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--border);
    background-color: color-mix(in oklch, var(--background) 90%, transparent);
    backdrop-filter: blur(8px);
}

.pond-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding: 0.75rem 1.25rem;
}

/* Brand: club logo + name top-left (per-club). A monogram crest stands in for the
   real uploaded logo, which is a later per-club upload feature. */
.pond-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.pond-crest {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    width: 2.25rem;
    flex: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--primary-foreground);
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 1px color-mix(in oklch, var(--primary) 40%, transparent);
}

/* Bare crest — the Pond mark (puck + ripples) as the header brand when a club has no logo yet.
   No gradient box / shadow; the mark's own art carries it. Width auto so the wide ripple mark
   shows in full at header height. */
.pond-crest--bare {
    background: none;
    box-shadow: none;
    border-radius: 0;
    width: auto;
    height: 2.25rem;
    object-fit: contain;
}

.pond-brand-text {
    line-height: 1.05;
}

.pond-brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pond-brand-kicker {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--primary);
}

.pond-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.pond-nav-item {
    border-radius: var(--radius);
    padding: 0.35rem 0.625rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.pond-nav-item:hover {
    color: var(--foreground);
}

/* NavLink active class (Blazor adds `active`) + explicit modifier for the marked item. */
.pond-nav-item.active,
.pond-nav-item--active {
    background-color: color-mix(in oklch, var(--primary) 15%, transparent);
    color: var(--primary);
}

.pond-nav-item--disabled {
    color: color-mix(in oklch, var(--muted-foreground) 55%, transparent);
    cursor: default;
}

.pond-nav-item--disabled:hover {
    color: color-mix(in oklch, var(--muted-foreground) 55%, transparent);
}

.pond-header-spacer {
    margin-left: auto;
}

.pond-avatar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
    border-radius: 999px;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
}

/* A gravatar photo overlaid on an initials circle: it covers the initials when it loads, and
   removes itself (onerror) when the coach has no gravatar (d=404) so the initials show through. */
.pond-avatar-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.pond-content {
    position: relative;
    /* No z-index here on purpose: a z-index would open a stacking context that traps the
       fixed slide-over BELOW the sticky header (z-30). The watermark sits at z-index:-1, so
       content already paints above it without needing one. */
    padding: 1.25rem;
}

/* Per-page head: title + subtitle + gradient accent underline. */
.pond-pagehead {
    position: relative;
    z-index: 10;
    margin: -1.25rem -1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background-color: color-mix(in oklch, var(--surface) 60%, transparent);
    padding: 1rem 1.25rem;
}

.pond-pagehead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.pond-pagehead h1 {
    font-size: 1.65rem;
    color: var(--foreground);
}

/* Blazor's <FocusOnNavigate Selector="h1"> moves focus to the page title after each
   navigation (a screen-reader nicety), which makes the browser draw a focus box around it.
   The title carries a -1 tabindex, so it's never keyboard-reachable — the focus is purely
   programmatic and the ring is just visual noise. Suppress it (the focus itself, and the
   screen-reader announce it enables, still happen). */
h1:focus {
    outline: none;
}

.pond-pagehead-sub {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.pond-pagehead-bar {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    width: 12rem;
    background: linear-gradient(to right, var(--primary), var(--secondary), transparent);
}

/* =====================================================================
 * Reusable theme components — Panel / StatTile / Chip / notes.
 * ===================================================================== */
.pond-panel {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--surface);
}

.pond-panel-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    background-color: color-mix(in oklch, var(--surface-2) 40%, transparent);
    padding: 0.5rem 0.75rem;
}

.pond-panel-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.pond-panel-title {
    padding-left: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
}

.pond-panel-body {
    padding: 0.75rem;
}

/* StatTile — kicker + big Barlow number, good/bad/accent tones. */
.pond-statgrid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .pond-statgrid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pond-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 0.75rem;
}

.pond-stat-value {
    margin-top: 0.25rem;
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
    color: var(--foreground);
}

.pond-stat-value--accent {
    color: var(--primary);
}

.pond-stat-value--good {
    color: var(--success);
}

.pond-stat-value--bad {
    color: var(--destructive);
}

.pond-stat-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Chip — uppercase display, muted/accent/good/bad tones. */
.pond-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-h-sm);
    gap: 0.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--surface-2);
    padding: 0.25rem 0.5rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.pond-chip--accent {
    border-color: color-mix(in oklch, var(--primary) 50%, transparent);
    background-color: color-mix(in oklch, var(--primary) 15%, transparent);
    color: var(--primary);
}

.pond-chip--good {
    border-color: color-mix(in oklch, var(--success) 40%, transparent);
    background-color: color-mix(in oklch, var(--success) 12%, transparent);
    color: var(--success);
}

.pond-chip--bad {
    border-color: color-mix(in oklch, var(--destructive) 40%, transparent);
    background-color: color-mix(in oklch, var(--destructive) 12%, transparent);
    color: var(--destructive);
}

/* State notes — empty / loading / error. */
.pond-note {
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    background-color: color-mix(in oklch, var(--surface-2) 50%, transparent);
    color: var(--muted-foreground);
    padding: 1rem;
    font-size: 0.875rem;
}

.pond-note--error {
    border-color: color-mix(in oklch, var(--destructive) 50%, transparent);
    background-color: color-mix(in oklch, var(--destructive) 10%, transparent);
    color: var(--destructive);
}

.pond-note .label-kicker {
    margin-right: 0.5rem;
}

/* Buttons / links styled as actions. */
.pond-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-h);
    gap: 0.4rem;
    border-radius: var(--radius);
    border: 1px solid color-mix(in oklch, var(--primary) 50%, transparent);
    background-color: color-mix(in oklch, var(--primary) 15%, transparent);
    color: var(--primary);
    padding: 0.5rem 0.9rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
}

.pond-action:hover {
    background-color: color-mix(in oklch, var(--primary) 22%, transparent);
}

/* =====================================================================
 * Roster page — team/season rail + grouped roster.
 * ===================================================================== */
.pond-roster-layout {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .pond-roster-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

.pond-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pond-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Selectable team-season buttons in the left rail. */
.pond-select-btn {
    width: 100%;
    display: block;
    text-align: left;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--surface-2);
    color: var(--foreground);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.pond-select-btn.is-active {
    border-color: var(--primary);
    background-color: color-mix(in oklch, var(--primary) 10%, transparent);
    color: var(--primary);
}

.pond-select-sub {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--muted-foreground);
}

.pond-season-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius);
    background-color: var(--surface-2);
    padding: 0.5rem 0.75rem;
}

.pond-season-open {
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
}

.pond-hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Grouped roster: a kicker header + a dense table per group. */
.pond-group + .pond-group {
    margin-top: 1.25rem;
}

.pond-group-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.pond-group-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
}

.pond-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

/* One table for the whole roster (forwards / defense / goalie as <tbody> groups) so every
   column lines up. A group sub-header row spans all columns. */
.pond-roster-group-row td {
    border-top: none;
    padding: 0.35rem 0;
}

/* Breathing room before each group after the first (each group is its own <tbody>). */
.pond-roster-table tbody + tbody .pond-roster-group-row td {
    padding-top: 1.1rem;
}

.pond-roster-group-row .label-kicker {
    margin-right: 0.5rem;
}

.pond-roster-table th {
    text-align: left;
    padding: 0.35rem 0.75rem 0.35rem 0;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.pond-roster-table td {
    padding: 0.45rem 0.75rem 0.45rem 0;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.pond-jersey {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    width: 3rem;
}

.pond-player-name {
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.pond-player-pos {
    color: var(--muted-foreground);
}

.pond-table-scroll {
    overflow-x: auto;
}

/* A prominent link to the Roster from the anonymous/home welcome. */
.pond-cta-row {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* In a card's CTA row the secondary toggles (Edit/Delete) sit next to a primary
 * .pond-action (Play film). Give them the SAME height so the row reads as one even
 * set instead of a tall button flanked by short ones. */
.pond-cta-row .pond-toggle-btn {
    min-height: var(--control-h);
    padding-inline: 0.9rem;
    font-size: 0.75rem;
}

/* .pond-action (Play film / + New game) has more block padding than the toggles by default, so it
 * renders taller. Normalize height + block padding so every button in a cta-row is the SAME size —
 * the top filter row (Manage opponents toggle + New game action) and the card rows (Play film action
 * + Edit/Delete toggles) alike. */
.pond-cta-row .pond-action {
    height: var(--control-h);
    min-height: var(--control-h);
    padding-block: 0.2rem;
}

/* In a card the cta-row sits inside .pond-panel-body, where `.pond-panel-body .pond-action--solid
 * { margin-top }` (below) adds a top margin to Play film (a --solid) but not to Edit/Delete — in the
 * centered row that nudged Play film down. Higher specificity + margin:0 cancels it. */
.pond-panel-body .pond-cta-row .pond-action {
    margin: 0;
}

/* =====================================================================
 * Write side — panel-head actions, inline drawers, dark forms, toggles.
 * The roster admin flows (create team/season/team-season/player, add to
 * roster) live in small inline drawers under a panel header, not modals.
 * ===================================================================== */

/* Right-hand cluster in a panel header (a count chip + a toggle/add button). */
.pond-panel-head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* The small square-ish header toggle that reveals a create/add drawer. */
.pond-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-h-sm);
    border: 1px solid var(--border);
    background-color: var(--surface-2);
    color: var(--muted-foreground);
    border-radius: var(--radius);
    padding: 0.2rem 0.7rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.pond-toggle-btn:hover:not(:disabled) {
    color: var(--foreground);
    border-color: color-mix(in oklch, var(--primary) 50%, transparent);
}

.pond-toggle-btn.is-open {
    color: var(--primary);
    border-color: color-mix(in oklch, var(--primary) 50%, transparent);
    background-color: color-mix(in oklch, var(--primary) 12%, transparent);
}

.pond-toggle-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Inline drawer: a hairline-topped stack of fields revealed inside a panel body. */
.pond-drawer {
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    display: grid;
    gap: 0.65rem;
}

.pond-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pond-field-label {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

/* Two fields side by side (name pairs, jersey + position, date range). */
.pond-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

@media (max-width: 520px) {
    .pond-field-row {
        grid-template-columns: 1fr;
    }
}

/* Dark inputs + selects with a teal focus ring. */
.pond-input,
.pond-select {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--input);
    background-color: var(--surface-2);
    color: var(--foreground);
    padding: 0.45rem 0.55rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.3;
}

.pond-input::placeholder {
    color: color-mix(in oklch, var(--muted-foreground) 75%, transparent);
}

.pond-input:focus,
.pond-select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px color-mix(in oklch, var(--ring) 35%, transparent);
}

.pond-input:disabled,
.pond-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Coerce the native date-picker indicator to read on the dark surface. */
.pond-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}

/* Submit row: the action button + an inline validation/error message. */
.pond-form-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pond-form-msg {
    font-size: 0.8rem;
    color: var(--destructive);
}

/* Solid (teal) variant of .pond-action for the primary form submit. */
.pond-action--solid {
    border-color: transparent;
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.pond-action--solid:hover:not(:disabled) {
    background-color: color-mix(in oklch, var(--primary) 88%, black);
}

.pond-action:disabled,
.pond-action[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Compact list of existing teams / seasons above their create drawer. */
.pond-minilist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pond-minilist li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.15rem 0;
    font-family: var(--font-display);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.pond-minilist li .sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--muted-foreground);
    white-space: nowrap;
}

/* --- Film Room player -------------------------------------------------------------
   Custom control bar over hls.js (ADR-0004). All behaviour is client-side JS
   (player-engine.js); this is only the look. */
.pond-player {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 1280px;
    background: #000;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    outline: none;
}

.pond-player__stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.pond-player__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.pond-player:fullscreen {
    max-width: none;
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
}

.pond-player:fullscreen .pond-player__stage {
    flex: 1 1 auto;
    aspect-ratio: auto;
}

/* Hover-preview bubble (position + thumb size set by JS). */
.pond-player__preview {
    position: absolute;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.25rem;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.pond-player__thumb {
    background-repeat: no-repeat;
    border-radius: 2px;
    display: block;
    margin-bottom: 0.25rem;
}

.pond-player__thumb-time {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-align: center;
    color: var(--foreground);
}

/* Control bar. */
.pond-player__bar {
    background: var(--surface);
    padding: 0.4rem 0.6rem 0.55rem;
}

.pond-player__track {
    position: relative;
    height: 0.35rem;
    margin: 0.3rem 0 0.55rem;
    background: var(--surface-2);
    border-radius: 999px;
    cursor: pointer;
    touch-action: none; /* pointer drag owns the gesture */
    transition: height 0.1s ease;
}

.pond-player__track:hover {
    height: 0.5rem;
}

.pond-player__buffered,
.pond-player__played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 999px;
}

.pond-player__buffered {
    background: var(--border);
}

.pond-player__played {
    background: var(--primary);
}

.pond-player__playhead {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0.85rem;
    height: 0.85rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.pond-player__controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pond-player__spacer {
    flex: 1 1 auto;
}

.pond-player__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
}

.pond-player__btn:hover {
    background: var(--surface-2);
}

.pond-player__btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 1px;
}

.pond-player__i {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* Play/pause glyph swap driven by the .is-playing class on the root. */
.pond-player__i--pause { display: none; }
.pond-player.is-playing .pond-player__i--play { display: none; }
.pond-player.is-playing .pond-player__i--pause { display: inline; }

.pond-player__skip {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.pond-player__speed {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    min-width: 2.6rem;
}

/* Shuttle rate readout (between the rewind / fast-forward buttons). */
.pond-player__rate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--foreground);
    white-space: nowrap;
}

.pond-player__time {
    display: inline-flex;
    align-items: baseline;
    margin-left: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.pond-player__time-sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

/* --- Dashboard + Settings (dark theme, panel-based) -------------------------------- */
.pond-tilegrid {
    display: grid;
    gap: 1rem;
    /* auto-FIT (not fill) + a capped max track so a section with two cards fills the row
       comfortably instead of leaving 240px cards stranded beside empty tracks; min() guards
       against overflow on very narrow viewports. Cards pack from the left. */
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 380px));
    justify-content: start;
}

/* A whole panel as a clickable tile (Dashboard nav cards). */
a.pond-panel {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.12s ease;
}

a.pond-panel:hover {
    border-color: var(--primary);
}

.pond-tile--soon {
    opacity: 0.6;
}

/* Panel body copy (descriptions in tiles / settings cards). */
.pond-panel-body p {
    margin: 0 0 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    line-height: 1.45;
}

.pond-panel-body p:last-child {
    margin-bottom: 0;
}

.pond-panel-body .pond-action--solid {
    margin-top: 0.75rem;
}

/* Settings section grouping. */
.pond-settings-section {
    margin-bottom: 1.75rem;
}

.pond-settings-title {
    margin: 0 0 0.6rem;
    font-family: var(--font-condensed);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--foreground);
}

/* Section blurb under a settings title — room to breathe, readable measure. */
.pond-section-hint {
    margin: 0 0 1rem;
    max-width: 70ch;
}

/* Editable list rows (age groups / divisions) with inline edit + inline delete-confirm. */
.pond-editlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.pond-editlist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.15rem;
    border-bottom: 1px solid color-mix(in oklch, var(--border) 45%, transparent);
    font-family: var(--font-display);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.pond-editlist li:last-child { border-bottom: none; }

.pond-row-actions {
    display: inline-flex;
    gap: 0.5rem;
    opacity: 0.55;
    transition: opacity 0.1s ease;
}

.pond-editlist li:hover .pond-row-actions,
.pond-editlist li:focus-within .pond-row-actions { opacity: 1; }

/* Bigger controls inside editable rows so they don't feel jammed. */
.pond-editlist .pond-toggle-btn,
.pond-editrow .pond-toggle-btn {
    min-height: 2rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.72rem;
}

.pond-editrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
    padding: 0.2rem 0;
}

.pond-editrow .pond-input { flex: 1; min-width: 7rem; }

.pond-confirm-text {
    font-family: var(--font-sans);
    text-transform: none;
    letter-spacing: normal;
    color: var(--foreground);
}

.pond-toggle-btn--danger {
    color: var(--destructive);
    border-color: color-mix(in oklch, var(--destructive) 45%, transparent);
}

.pond-toggle-btn--danger:hover:not(:disabled) {
    color: var(--destructive);
    background-color: color-mix(in oklch, var(--destructive) 12%, transparent);
    border-color: var(--destructive);
}

/* =====================================================================
 * Neutral (ghost) action — same SIZE as .pond-action / --solid, muted look.
 * Used for a Cancel that must visually match its solid Save partner.
 * ===================================================================== */
.pond-action--ghost {
    border-color: var(--border);
    background-color: transparent;
    color: var(--muted-foreground);
}

.pond-action--ghost:hover:not(:disabled) {
    color: var(--foreground);
    border-color: color-mix(in oklch, var(--primary) 45%, transparent);
}

/* =====================================================================
 * Two-line editlist row main cell (name over a muted sub-line, e.g. a
 * season's date range) — without this the name + sub render inline and
 * jam together ("2025-262025-09-01 → 2026-03-31").
 * ===================================================================== */
.pond-editlist-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.pond-editlist-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.pond-editlist-main .sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--muted-foreground);
}

/* =====================================================================
 * Slide-over — a right-hand drawer for the LARGER add/edit flows (mirrors
 * Taverntop's StageDrawer). Small single-field adds stay inline (.pond-drawer);
 * anything with several fields opens here so it never shoves page content around.
 * The panel is always in the DOM so it can animate; only the backdrop is
 * conditionally rendered. NB distinct from the inline .pond-drawer class.
 * ===================================================================== */
.pond-slideover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    background-color: color-mix(in oklch, var(--background) 45%, rgba(0, 0, 0, 0.65));
    backdrop-filter: blur(2px);
    animation: pond-slideover-fade 180ms ease;
}

@keyframes pond-slideover-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pond-slideover {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(560px, 94vw);
    z-index: 100;
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border-left: 1px solid var(--border);
    color: var(--foreground);
    transform: translateX(100%);
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
    /* NO box-shadow while closed: the panel is always in the DOM parked off-screen right at
       translateX(100%), and a left-cast shadow would bleed a black fade onto the visible page
       edge. The shadow lives on .is-open only (see below). */
}

.pond-slideover.is-open {
    transform: translateX(0);
    box-shadow: -14px 0 36px rgba(0, 0, 0, 0.34);
}

/* Teal→maroon accent hairline down the leading edge, echoing .pond-panel-bar. */
.pond-slideover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.pond-slideover__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.pond-slideover__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--foreground);
}

.pond-slideover__sub {
    margin-top: 0.2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.pond-slideover__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.1rem 1.25rem;
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.pond-slideover__foot {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;         /* not stretch — buttons keep their control height */
    justify-content: flex-end;
    gap: 0.6rem;
}

/* Both footer buttons share the same fixed control height so a ghost Cancel and a solid
   Save are always identical (no stretch, no "huge Cancel"). margin:0 defeats the
   `.pond-panel-body .pond-action--solid { margin-top }` rule that bleeds onto the solid Save
   because the slide-over is rendered inside a panel body in the DOM (it only ESCAPES visually
   via fixed positioning) — that stray top margin was misaligning the footer buttons. */
.pond-slideover__foot .pond-action {
    height: var(--control-h);
    min-height: var(--control-h);
    margin: 0;
}

/* =====================================================================
 * Roster CRUD affordances — row actions on the roster table + an
 * un-field control on the team-season rail items.
 * ===================================================================== */
.pond-roster-actions-col { width: 1%; }

.pond-roster-actions-cell {
    text-align: right;
    white-space: nowrap;
}

/* Edit/Remove sit quiet until the row is hovered (they use .pond-row-actions). */
.pond-roster-table tr:hover .pond-row-actions,
.pond-roster-table tr:focus-within .pond-row-actions { opacity: 1; }

.pond-inline-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

/* Team-season rail item: the big select button + a hover-revealed Un-field control. */
.pond-railitem {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.pond-railitem .pond-select-btn { flex: 1; }

.pond-railitem-remove {
    flex: none;
    border: 1px solid var(--border);
    background-color: var(--surface-2);
    color: var(--muted-foreground);
    border-radius: var(--radius);
    padding: 0 0.6rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.1s ease, color 0.15s ease, border-color 0.15s ease;
}

.pond-railitem:hover .pond-railitem-remove,
.pond-railitem:focus-within .pond-railitem-remove { opacity: 0.65; }

.pond-railitem-remove:hover {
    opacity: 1;
    color: var(--destructive);
    border-color: color-mix(in oklch, var(--destructive) 45%, transparent);
}

/* =====================================================================
 * Toasts — transient bottom-right confirmations for create/update/delete.
 * Above the slide-over (z-100) so a toast is visible even over an open drawer.
 * ===================================================================== */
.pond-toasts {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(360px, 92vw);
    pointer-events: none; /* only the toasts themselves are interactive */
}

.pond-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.55rem 0.6rem 0.8rem;
    border-radius: var(--radius);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    animation: pond-toast-in 180ms ease;
}

@keyframes pond-toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pond-toast--success { border-left-color: var(--success); }
.pond-toast--info    { border-left-color: var(--primary); }
.pond-toast--error   { border-left-color: var(--destructive); }

.pond-toast__msg {
    flex: 1;
    line-height: 1.3;
}

.pond-toast__x {
    flex: none;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.25rem;
    cursor: pointer;
    border-radius: var(--radius);
}

.pond-toast__x:hover {
    color: var(--foreground);
}

/* =====================================================================
 * Stacked editlist row (seasons): the value line (name + date range) on ONE
 * line, with the Edit/Delete actions on their own line below.
 * ===================================================================== */
.pond-editlist--stack li {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.pond-season-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.pond-season-line .sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--muted-foreground);
}

/* Actions sit on their own line in a stacked row — always visible, left-aligned. */
.pond-editlist--stack .pond-row-actions {
    opacity: 1;
}

/* =====================================================================
 * Film library — filter bar + game-card meta line.
 * ===================================================================== */
.pond-library-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pond-field--inline {
    min-width: 240px;
}

.pond-game-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.pond-game-meta .sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted-foreground);
}

.pond-game-score {
    color: var(--primary);
    font-weight: 700;
}

/* Film-library filter group (team-season + opponent selects side by side). */
.pond-filter-group {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =====================================================================
 * Roster — teams, rosters & clubs (clubs first-class). Two tabs (us /
 * opponents), stat tiles, a filter bar with quick chips, grouped team
 * cards, and a team workspace (rail + roster/coaches/details).
 * Ported from ux/mocks/routes/roster.tsx — idioms, not the React code.
 * ===================================================================== */

/* Header action cluster (Create team / Add club) on the right of the pagehead. */
.pond-pagehead-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Tabs — our club vs opponents. A row of pill buttons over a hairline. */
.pond-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.pond-tab {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--surface-2);
    color: var(--muted-foreground);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.pond-tab:hover:not(.is-active) {
    color: var(--foreground);
    border-color: color-mix(in oklch, var(--primary) 45%, transparent);
}

.pond-tab.is-active {
    border-color: var(--primary);
    background-color: color-mix(in oklch, var(--primary) 15%, transparent);
    color: var(--primary);
}

/* Clickable chip (the mock's Chip is a <button>). Reuses .pond-chip's look. */
button.pond-chip {
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

button.pond-chip:hover:not(:disabled):not(.pond-chip--accent) {
    color: var(--foreground);
    border-color: color-mix(in oklch, var(--primary) 45%, transparent);
}

button.pond-chip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Filter bar — a bordered surface holding the selects + search, then quick chips. */
.pond-filterbar {
    margin-top: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--surface);
    padding: 0.75rem;
}

.pond-filterbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

/* A single-field cell in the filter row — compact, doesn't stretch full width. */
.pond-field--filter {
    min-width: 0;
    flex: 0 0 auto;
}

.pond-field--filter .pond-select {
    width: auto;
    min-width: 9rem;
}

/* The search cell grows to fill the row. */
.pond-field--search {
    flex: 1 1 200px;
    min-width: 200px;
}

/* Season cell pairs the select with a small "new season" button. */
.pond-field-inline-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* The inline "+ New" toggle sits next to a full-height .pond-select, so match the
 * input control height instead of the shorter chip height — an even pair, not a
 * tall select flanked by a stub button. */
.pond-field-inline-row .pond-toggle-btn {
    min-height: var(--control-h);
    padding-inline: 0.8rem;
}

/* Quick age/division chip row under the selects. */
.pond-filter-chips {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.pond-filter-divider {
    align-self: stretch;
    width: 1px;
    margin: 0 0.5rem;
    background-color: var(--border);
}

/* Two-column browse (list + sidebar) and workspace (rail + panel) grids. */
.pond-roster-browse,
.pond-roster-workspace {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .pond-roster-browse {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .pond-roster-workspace {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

/* Grouped team cards. */
.pond-teamgrid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .pond-teamgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .pond-teamgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pond-teamcard {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--surface-2);
    color: var(--foreground);
    padding: 0.75rem;
    cursor: pointer;
    transition: border-color 0.12s ease, background-color 0.12s ease;
}

.pond-teamcard:hover {
    border-color: color-mix(in oklch, var(--primary) 50%, transparent);
}

.pond-teamcard.is-active {
    border-color: var(--primary);
    background-color: color-mix(in oklch, var(--primary) 10%, transparent);
}

.pond-teamcard__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.pond-teamcard__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.pond-teamcard__badge {
    flex: none;
    border-radius: var(--radius);
    border: 1px solid color-mix(in oklch, var(--primary) 40%, transparent);
    background-color: color-mix(in oklch, var(--primary) 10%, transparent);
    color: var(--primary);
    padding: 0.1rem 0.4rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.pond-teamcard__sub {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.pond-teamcard__meta {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.pond-teamcard__meta .tnum {
    color: var(--foreground);
}

.pond-teamcard__status {
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pond-teamcard__status--good { color: var(--success); }
.pond-teamcard__status--accent { color: var(--primary); }
.pond-teamcard__status--muted { color: var(--muted-foreground); }

/* The panel header's right slot on a group panel (a small muted count). */
.pond-panel-head-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Left teams rail in the workspace view — grouped list of small buttons. */
.pond-teamrail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.pond-teamrail__label {
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
}

.pond-teamrail__items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pond-teamrail__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: var(--radius);
    background-color: var(--surface-2);
    color: var(--muted-foreground);
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.12s ease, background-color 0.12s ease;
}

.pond-teamrail__item:hover:not(.is-active) {
    color: var(--foreground);
}

.pond-teamrail__item.is-active {
    background-color: color-mix(in oklch, var(--primary) 15%, transparent);
    color: var(--primary);
}

.pond-teamrail__item-name {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pond-teamrail__badge {
    flex: none;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

/* Workspace header — crest + identity + action chips. */
.pond-workspace-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.pond-workspace-id {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pond-workspace-crest {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    flex: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--primary-foreground);
    font-family: var(--font-condensed);
    font-size: 1.1rem;
    font-weight: 700;
}

.pond-workspace-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.pond-workspace-sub {
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.pond-workspace-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Workspace sub-tab chip row. */
.pond-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

/* Roster sub-tab header line (count + add). */
.pond-roster-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Team-details cards. */
.pond-detailgrid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .pond-detailgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .pond-detailgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pond-detailcard {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--surface-2);
    padding: 0.75rem;
}

.pond-detailcard__value {
    margin-top: 0.25rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* Destructive actions at the foot of Team details (remove-from-season, delete team). */
.pond-workspace-danger {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Click-to-filter opponent-club list in the sidebar, with hover row actions. */
.pond-clublist {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pond-clublist li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pond-clubrow {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    border: none;
    border-radius: var(--radius);
    background-color: var(--surface-2);
    color: var(--foreground);
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.12s ease, background-color 0.12s ease;
}

.pond-clubrow.is-active {
    background-color: color-mix(in oklch, var(--primary) 15%, transparent);
    color: var(--primary);
}

.pond-clubrow__city {
    font-size: 0.72rem;
    color: var(--muted-foreground);
}

/* =====================================================================
 * Settings — per-club BRANDING (accent colour + logo + background photo).
 * The header crest can carry an uploaded logo, a blurred low-opacity fixed
 * layer carries the background photo behind the whole app, and the Settings
 * Branding tab has swatches + a preview + upload rows. Applied live from
 * GET /api/club-settings (see AppShell.razor + Settings.razor).
 * ===================================================================== */

/* Header crest showing an uploaded logo instead of the monogram. Neutral ground so a
   transparent PNG reads on the dark header; the fixed .pond-crest size still applies. */
.pond-crest--img {
    background: var(--surface-2);
    object-fit: contain;
    padding: 2px;
}

/* Blurred, low-opacity photo behind the content (never over it). Sits at z-index:-1 like
   the gradient watermark and OVER-scans the viewport so the blur never reveals a hard edge.
   The image + blur amount are set inline (per-club, from settings). */
.pond-watermark-photo {
    pointer-events: none;
    position: fixed;
    inset: -40px;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

/* Branding tab layout: form column + a live preview card beside it. */
.pond-branding-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 900px) {
    .pond-branding-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

/* A hairline-separated block inside the branding panel (logo / background / accent). */
.pond-branding-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pond-branding-block:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* An asset row: current image (or a placeholder) beside its upload/remove controls. */
.pond-asset-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
}

.pond-asset-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 12rem;
}

.pond-asset-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Current-logo thumbnail. */
.pond-logo-thumb {
    height: 5rem;
    width: 5rem;
    flex: none;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
    object-fit: contain;
    padding: 0.25rem;
}

.pond-logo-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    padding: 0.35rem;
}

/* Background-photo preview: a blurred, dimmed crop with a corner "Preview" tag. */
.pond-bg-preview {
    position: relative;
    height: 7rem;
    width: 12rem;
    flex: none;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.pond-bg-preview__img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.pond-bg-preview__scrim {
    position: absolute;
    inset: 0;
    background-color: color-mix(in oklch, var(--background) 40%, transparent);
}

.pond-bg-preview__tag {
    position: absolute;
    bottom: 0.3rem;
    left: 0.3rem;
    border-radius: var(--radius);
    background-color: color-mix(in oklch, var(--background) 75%, transparent);
    padding: 0.05rem 0.35rem;
    font-family: var(--font-display);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--foreground);
}

.pond-bg-preview--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    padding: 0.5rem;
}

/* The native file input, restyled to read like the dark theme. */
.pond-file-input {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--muted-foreground);
    max-width: 100%;
}

.pond-file-input::file-selector-button {
    margin-right: 0.6rem;
    border: 1px solid color-mix(in oklch, var(--primary) 50%, transparent);
    border-radius: var(--radius);
    background-color: color-mix(in oklch, var(--primary) 15%, transparent);
    color: var(--primary);
    padding: 0.35rem 0.8rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.pond-file-input::file-selector-button:hover {
    background-color: color-mix(in oklch, var(--primary) 22%, transparent);
}

/* Accent swatches — a round colour button per preset plus a "theme default" + custom picker. */
.pond-swatch-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.pond-swatch {
    height: 1.9rem;
    width: 1.9rem;
    flex: none;
    border-radius: 999px;
    border: 2px solid var(--border);
    padding: 0;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.1s ease;
}

.pond-swatch:hover {
    transform: scale(1.08);
}

.pond-swatch.is-active {
    border-color: var(--foreground);
    box-shadow: 0 0 0 2px color-mix(in oklch, var(--foreground) 30%, transparent);
}

/* The native colour picker, sized to sit in the swatch row. */
.pond-swatch-color {
    height: 1.9rem;
    width: 2.4rem;
    flex: none;
    padding: 0;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--surface-2);
    cursor: pointer;
}

/* A mono readout of the current accent value + the blur amount. */
.pond-branding-readout {
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Blur slider sits under the background preview. */
.pond-range {
    width: 100%;
    max-width: 18rem;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Compact live preview card (crest + club name over the current accent). */
.pond-brand-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: color-mix(in oklch, var(--surface-2) 60%, transparent);
    padding: 0.75rem;
}

.pond-brand-preview__crest {
    height: 2.5rem;
    width: 2.5rem;
    flex: none;
    border-radius: var(--radius);
    object-fit: contain;
    background: var(--surface-2);
    padding: 2px;
}

/* =====================================================================
 * Pre-auth doorstep — the anonymous front door (MainLayout is anonymous-only;
 * every signed-in page uses AppShell). Pure black so the cream-on-black Pond
 * Hockey logo sits seamlessly; the logo brings its own ripples, so no drawn
 * backdrop is needed. Also carries the not-found / checking-session states.
 * ===================================================================== */
.pond-doorstep {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 2rem 1.25rem;
    overflow: hidden;
}

.pond-doorstep__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.pond-doorstep__logo {
    width: clamp(18rem, 42vw, 32rem);
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
}

.pond-doorstep__lede {
    margin: 0 0 1.5rem;
    max-width: 30rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 1rem;
}

/* Center a CTA row on the doorstep (overrides the left-aligned default). */
.pond-doorstep .pond-cta-row {
    justify-content: center;
    margin-top: 0;
}

/* =====================================================================
 * Doorstep animated backdrop — the pond-native analog of Taverntop's
 * ember-rise: a slow breathing teal/maroon glow + cool "motes" drifting
 * up like bubbles off the ice. Doorstep ONLY (never in-app). Sits behind
 * the content; honours prefers-reduced-motion.
 * ===================================================================== */
.pond-door-fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.pond-door-fx__glow {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse 72% 56% at 50% 4%, color-mix(in oklch, var(--primary) 24%, transparent), transparent 62%),
        radial-gradient(ellipse 60% 55% at 50% 100%, color-mix(in oklch, var(--secondary) 13%, transparent), transparent 66%);
    animation: pond-glow-breathe 9s ease-in-out infinite;
}

@keyframes pond-glow-breathe {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.06); }
}

.pond-door-fx__mote {
    position: absolute;
    bottom: -4%;
    border-radius: 50%;
    background: color-mix(in oklch, var(--primary) 72%, white);
    box-shadow:
        0 0 6px color-mix(in oklch, var(--primary) 70%, transparent),
        0 0 14px color-mix(in oklch, var(--primary) 38%, transparent);
    opacity: 0;
    animation: pond-mote-rise linear infinite;
}

@keyframes pond-mote-rise {
    0%   { transform: translate(0, 0) scale(1); opacity: 0; }
    12%  { opacity: var(--mote-peak, 0.7); }
    85%  { opacity: calc(var(--mote-peak, 0.7) * 0.45); }
    100% { transform: translate(var(--mote-drift, 0), -108vh) scale(0.5); opacity: 0; }
}

/* Background effect video (e.g. drifting snow). The clips are white particles on black, so
   mix-blend-mode:screen drops the black and keeps only the snow — letting the teal glow + pure
   black show through with no hard video rectangle. Sits above the glow, behind the content. */
.pond-door-fx__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: 0.38;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .pond-door-fx__glow { animation: none; }
    .pond-door-fx__mote { display: none; }
    .pond-door-fx__video { display: none; }
}

/* =====================================================================
 * User menu — the top-right gravatar as a dropdown trigger (mirrors
 * Taverntop's account menu). The panel shows the coach's identity, the
 * club (tenant) they're acting in, then Sign out at the bottom. A fixed
 * transparent backdrop button gives click-outside-to-close with no JS.
 * ===================================================================== */
.pond-usermenu-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pond-usermenu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    padding: 0.15rem 0.4rem 0.15rem 0.15rem;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.pond-usermenu-trigger:hover,
.pond-usermenu-trigger.is-open {
    color: var(--foreground);
    border-color: color-mix(in oklch, var(--primary) 45%, transparent);
    background-color: color-mix(in oklch, var(--primary) 10%, transparent);
}

.pond-usermenu-caret {
    width: 1rem;
    height: 1rem;
    flex: none;
    transition: transform 0.15s ease;
}

.pond-usermenu-trigger.is-open .pond-usermenu-caret {
    transform: rotate(180deg);
}

/* Invisible full-viewport catcher: a click anywhere off the panel closes it. */
.pond-usermenu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39; /* just under the panel; header is z-30 */
    border: none;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: default;
}

.pond-usermenu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 40;
    width: 16rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--popover);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    animation: pond-usermenu-in 140ms ease;
}

@keyframes pond-usermenu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pond-usermenu__id {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pond-usermenu__avatar {
    position: relative;
    overflow: hidden;
    height: 2.5rem;
    width: 2.5rem;
    flex: none;
    border-radius: 999px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

.pond-usermenu__idtext {
    min-width: 0;
}

.pond-usermenu__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pond-usermenu__email {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pond-usermenu__divider {
    height: 1px;
    margin: 0.7rem -0.75rem;
    background-color: var(--border);
}

.pond-usermenu__club {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pond-usermenu__crest {
    height: 2rem;
    width: 2rem;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--primary-foreground);
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    box-shadow: 0 0 0 1px color-mix(in oklch, var(--primary) 40%, transparent);
}

.pond-usermenu__crest--img {
    background: var(--surface-2);
    object-fit: contain;
    padding: 2px;
    box-shadow: none;
}

.pond-usermenu__clubtext {
    min-width: 0;
}

.pond-usermenu__clubname {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pond-usermenu__clubkicker {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
}

.pond-usermenu__signout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface-2);
    color: var(--muted-foreground);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.pond-usermenu__signout:hover {
    color: var(--destructive);
    border-color: color-mix(in oklch, var(--destructive) 45%, transparent);
    background-color: color-mix(in oklch, var(--destructive) 10%, transparent);
}

.pond-usermenu__signout-i {
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
}

/* =====================================================================
 * People & access (Roles & Users) — the coach row in the Settings table:
 * gravatar + name/email, and a wrap of role toggle chips.
 * ===================================================================== */
.pond-people-id {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pond-people-avatar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
    flex: none;
    border-radius: 999px;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
}

.pond-role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Invite link readout (copyable) inside the invite drawer's note. */
.pond-invite-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.pond-invite-link code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted-foreground);
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.35rem 0.5rem;
}

/* =====================================================================
 * Concepts (Module 7) — teaching-spine management. GLOBAL (this app has no
 * scoped .razor.css bundle). Structure mirrors ux/mocks/routes/concepts.tsx.
 * ===================================================================== */
.pond-concepts { display: flex; flex-direction: column; gap: 1.25rem; }  /* fills .pond-content (1.25rem gutters) like Roster — no narrow max-width */
.pond-concepts-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pond-concepts-titles h1 { margin: 0 0 0.35rem; font-size: 1.6rem; }
.pond-concepts-sub { margin: 0; color: var(--muted-foreground); font-size: 0.9rem; max-width: 40rem; }
.pond-concepts-newbtn { white-space: nowrap; }
.pond-concepts-stats { margin: 0; }
.pond-concepts-scopebar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pond-concepts-scope { display: flex; flex-direction: column; gap: 0.3rem; min-width: 18rem; }
.pond-concepts-addbtn { white-space: nowrap; }

.pond-concepts-grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .pond-concepts-grid { grid-template-columns: 1fr; } }

.pond-concept-tablewrap { overflow-x: auto; }
.pond-concept-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pond-concept-table th { text-align: left; font-weight: 400; padding: 0.2rem 1rem 0.7rem 0; white-space: nowrap; color: var(--muted-foreground); }
.pond-concept-table td { padding: 0.7rem 1rem 0.7rem 0; vertical-align: middle; }
/* The name column takes the slack so the numeric / source / action columns spread right (not jammed left). */
.pond-concept-table th:first-child, .pond-concept-table td:first-child { width: 100%; }
.pond-concept-table th.pond-num, .pond-concept-table td.pond-num { text-align: right; padding-right: 1.5rem; color: var(--muted-foreground); white-space: nowrap; }
.pond-concept-th-actions { width: 1%; }
.pond-concept-tr { cursor: pointer; border-top: 1px solid var(--border); }
.pond-concept-tr:hover { background-color: color-mix(in oklch, var(--surface-2) 40%, transparent); }
.pond-concept-tr.is-selected { background-color: color-mix(in oklch, var(--primary) 10%, transparent); }
.pond-concept-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; }
.pond-concept-desc { color: var(--muted-foreground); font-size: 0.78rem; margin-top: 0.15rem; text-transform: none; letter-spacing: normal; font-weight: 400; }
.pond-concept-cell-actions { text-align: right; white-space: nowrap; }
.pond-concept-cell-actions .pond-toggle-btn { margin-left: 0.4rem; }
.pond-confirm-text { color: var(--muted-foreground); font-size: 0.82rem; margin-right: 0.25rem; }
.pond-concept-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.pond-concept-rollup-empty { line-height: 1.5; }

.pond-field-optional { text-transform: none; letter-spacing: normal; color: var(--muted-foreground); font-weight: 400; }
.pond-field-textarea { resize: vertical; min-height: 4.5rem; font-family: inherit; }

/* =====================================================================
 * Uploader download page (/uploader) — GLOBAL (was dead-scoped too).
 * ===================================================================== */
.pond-uploader-download { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1.25rem; }
.pond-uploader-download h1 { margin: 0 0 0.5rem; font-size: 1.75rem; }
.pond-uploader-lead { color: var(--muted-foreground); line-height: 1.55; margin: 0 0 1.75rem; }
.pond-uploader-getbtn { font-size: 1rem; padding: 0.7rem 1.6rem; }
.pond-uploader-req { font-size: 0.75rem; color: var(--muted-foreground); margin: 0.55rem 0 2rem; }
.pond-uploader-steps { display: flex; flex-direction: column; gap: 0.7rem; padding-left: 1.1rem; margin: 0; line-height: 1.5; }
.pond-uploader-steps li { color: var(--foreground); }

/* Concept rows: selected/hover highlight bleeds to the panel edges. The table is pulled out by the
 * .pond-panel-body padding (0.75rem) so the <tr> background spans full width; .pond-panel overflow:hidden
 * clips it at the border. Cell content stays inset via first/last-cell padding. */
.pond-concept-tablewrap { margin-inline: -0.75rem; }
.pond-concept-table th:first-child, .pond-concept-table td:first-child { padding-left: 0.75rem; }
.pond-concept-table th:last-child, .pond-concept-table td:last-child { padding-right: 0.75rem; }

/* =====================================================================
 * Film library redesign (/library) — team-first, season-scoped. GLOBAL,
 * theme tokens only. Mirrors ux/mocks/routes/library.tsx.
 * ===================================================================== */
.pond-library-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .pond-library-layout { grid-template-columns: 1fr; } }

.pond-library-teams .pond-panel-body { display: flex; flex-direction: column; gap: 0.75rem; }
.pond-team-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; max-height: 24rem; overflow-y: auto; }
.pond-team-item { width: 100%; text-align: left; border: 1px solid var(--border); background-color: color-mix(in oklch, var(--surface-2) 40%, transparent); border-radius: var(--radius); padding: 0.5rem 0.65rem; cursor: pointer; color: var(--foreground); display: flex; flex-direction: column; gap: 0.1rem; }
.pond-team-item:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }
.pond-team-item.is-selected { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 12%, transparent); color: var(--primary); }
.pond-team-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; font-size: 0.85rem; }
.pond-team-sub { font-size: 0.72rem; color: var(--muted-foreground); }
.pond-team-item.is-selected .pond-team-sub { color: color-mix(in oklch, var(--primary) 70%, var(--foreground)); }
.pond-team-none { font-size: 0.78rem; color: var(--muted-foreground); padding: 0.3rem 0; }
.pond-team-seasons { border-top: 1px solid var(--border); padding-top: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pond-chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.pond-library-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.pond-library-stats { margin: 0; }
.pond-library-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pond-library-search { width: 16rem; max-width: 100%; }

/* Games table — row separators + selected/hover bleed to panel edges (like the concept table). */
.pond-lib-tablewrap { overflow-x: auto; margin-inline: -0.75rem; }
.pond-lib-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.pond-lib-table th { text-align: left; font-weight: 400; color: var(--muted-foreground); padding: 0.2rem 0.9rem 0.6rem 0; white-space: nowrap; }
.pond-lib-table th:first-child, .pond-lib-table td:first-child { padding-left: 0.75rem; }
.pond-lib-table th:last-child, .pond-lib-table td:last-child { padding-right: 0.75rem; }
.pond-lib-table td { padding: 0.6rem 0.9rem 0.6rem 0; vertical-align: middle; white-space: nowrap; }
.pond-lib-tr { border-top: 1px solid var(--border); }
.pond-lib-tr:hover { background-color: color-mix(in oklch, var(--surface-2) 40%, transparent); }
.pond-lib-th-clips, .pond-lib-clips { width: 1%; }
.pond-lib-opp { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; }
.pond-lib-muted { color: var(--muted-foreground); }
.pond-lib-dash { color: var(--muted-foreground); opacity: 0.55; }
.pond-lib-th-actions, .pond-lib-actions { text-align: right; width: 1%; }
.pond-lib-actions .pond-toggle-btn { margin-left: 0.4rem; }
.pond-lib-filmlink { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; color: var(--primary); text-decoration: none; margin-right: 0.4rem; }
.pond-lib-status { display: inline-block; border-radius: var(--radius); padding: 0.1rem 0.5rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.pond-lib-status--good { color: var(--success); background-color: color-mix(in oklch, var(--success) 18%, transparent); }
.pond-lib-status--bad { color: var(--destructive); background-color: color-mix(in oklch, var(--destructive) 18%, transparent); }
.pond-lib-status--warn { color: var(--warning, oklch(0.82 0.15 75)); background-color: color-mix(in oklch, var(--warning, oklch(0.82 0.15 75)) 18%, transparent); }
.pond-lib-status--muted { color: var(--muted-foreground); background-color: color-mix(in oklch, var(--muted-foreground) 15%, transparent); }

/* =====================================================================
 * Concepts & Tags (/concepts) — the palette surface. GLOBAL (no scoped CSS).
 * Reuses pond-panel / pond-stat / pond-chip / pond-toggle-btn / pond-field.
 * ===================================================================== */
.pond-ct-tabs { display: inline-flex; gap: 0.25rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.2rem; background-color: var(--surface); }
.pond-ct-tab { border: none; background: transparent; border-radius: calc(var(--radius) - 0.15rem); padding: 0.4rem 0.9rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; font-weight: 700; color: var(--muted-foreground); cursor: pointer; }
.pond-ct-tab.is-active { background-color: var(--primary); color: var(--primary-foreground); }

.pond-ct-grid-club { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.pond-ct-grid-mine { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .pond-ct-grid-club, .pond-ct-grid-mine { grid-template-columns: 1fr; } }
.pond-ct-optcol { display: flex; flex-direction: column; gap: 1rem; }

.pond-ct-catlist { display: flex; flex-direction: column; gap: 0.5rem; }
.pond-ct-catcard { border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.6rem 0.7rem; }
.pond-ct-catcard.is-selected { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 10%, transparent); }
.pond-ct-catcard-main { display: block; width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; padding: 0; color: inherit; }
.pond-ct-catcard-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; font-size: 0.98rem; }
.pond-ct-badge { border-radius: var(--radius); padding: 0.05rem 0.4rem; font-size: 0.62rem; background-color: color-mix(in oklch, var(--muted-foreground) 15%, transparent); color: var(--muted-foreground); }
.pond-ct-badge--accent { background-color: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); letter-spacing: 0.06em; text-transform: uppercase; }
.pond-ct-catcard-blurb { display: block; margin-top: 0.2rem; color: var(--muted-foreground); font-size: 0.78rem; }
.pond-ct-catcard-meta { display: block; margin-top: 0.3rem; color: var(--muted-foreground); font-size: 0.74rem; }
.pond-ct-catcard-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }

/* Category add — input + button on one row, both normalized to --control-h (the .pond-action carries
 * extra block padding by default, so match the .pond-cta-row treatment: fix its height + block padding). */
.pond-ct-catadd { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; }
.pond-ct-catadd .pond-input { flex: 1; min-width: 0; height: var(--control-h); }
/* .pond-panel-body prefix beats `.pond-panel-body .pond-action--solid { margin-top: 0.75rem }`, which
 * otherwise pushes the ADD button down and makes the row taller than the input. */
.pond-panel-body .pond-ct-catadd .pond-action { white-space: nowrap; height: var(--control-h); min-height: var(--control-h); padding-block: 0.2rem; margin: 0; }
.pond-ct-scopetoggle { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pond-ct-hint { color: var(--muted-foreground); font-size: 0.76rem; line-height: 1.5; margin: 0.5rem 0 0; }
.pond-ct-panelnote { margin-left: auto; color: var(--muted-foreground); font-size: 0.76rem; }

.pond-ct-optgroup { margin-bottom: 1rem; }
.pond-ct-optgroup:last-of-type { margin-bottom: 0; }
.pond-ct-optgroup-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.pond-ct-optgroup-count { color: var(--muted-foreground); font-size: 0.76rem; }
.pond-ct-optlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.pond-ct-optrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.35rem 0.55rem; }
.pond-ct-optlabel { flex: 1; min-width: 9rem; font-size: 0.9rem; font-weight: 600; }
.pond-ct-optparent { color: var(--muted-foreground); font-weight: 400; }
.pond-ct-links { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.pond-ct-links a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; font-weight: 700; color: var(--primary); text-decoration: none; }

.pond-ct-favlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.pond-ct-favrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.4rem 0.6rem; }
.pond-ct-favnum { width: 1.25rem; color: var(--muted-foreground); font-size: 0.78rem; }
.pond-ct-favmain { flex: 1; min-width: 10rem; }
.pond-ct-favlabel { display: block; font-size: 0.92rem; font-weight: 600; }
.pond-ct-favsub { display: block; color: var(--muted-foreground); font-size: 0.74rem; }
.pond-ct-hotkeywrap { display: flex; align-items: center; gap: 0.35rem; color: var(--muted-foreground); font-size: 0.72rem; }
.pond-ct-hotkey { width: 2.5rem; text-align: center; text-transform: uppercase; }
.pond-ct-hotkey.is-conflict { border-color: var(--destructive); color: var(--destructive); }

.pond-ct-preview { border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--background); padding: 0.75rem; }
.pond-ct-preview-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.pond-ct-preview-label2 { margin-top: 0.85rem; }
.pond-ct-preview-chip { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.3rem 0.5rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; color: var(--muted-foreground); }
.pond-ct-preview-chip.is-fav { border-color: color-mix(in oklch, var(--primary) 50%, transparent); background-color: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); }
.pond-ct-hotkey-badge { border-radius: calc(var(--radius) - 0.15rem); background-color: color-mix(in oklch, var(--background) 70%, transparent); padding: 0 0.25rem; font-size: 0.65rem; }

.pond-ct-pinlist { display: flex; flex-direction: column; gap: 0.25rem; max-height: 18rem; overflow-y: auto; padding-right: 0.25rem; }
.pond-ct-pinbtn { display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.35rem 0.55rem; font-size: 0.88rem; cursor: pointer; color: inherit; }
.pond-ct-pinbtn:hover { border-color: var(--primary); }
.pond-ct-pinbtn-label { flex: 1; }
.pond-ct-pinbtn-cat { color: var(--muted-foreground); font-size: 0.74rem; }
.pond-ct-pinbtn-star { color: var(--primary); }

.pond-ct-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--foreground); }
.pond-ct-check input { width: auto; }

/* =====================================================================
 * Film Room (/film-room) — cut up + review. Reuses the .pond-player markup/CSS. GLOBAL.
 * ===================================================================== */
/* The whole room shares one max-width so the header (title left / game+mode right) brackets the content
 * (video left edge / rail right edge) below it, and wide screens get balanced margins. */
.pond-fr { display: flex; flex-direction: column; gap: 1rem; max-width: 2128px; margin: 0 auto; }
.pond-fr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pond-fr-titles h1 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.pond-fr-sub { margin: 0; color: var(--muted-foreground); font-size: 0.85rem; }
.pond-fr-headright { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.pond-fr-gamepick { min-width: 14rem; }
.pond-fr-modes { display: inline-flex; gap: 0.2rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.2rem; background-color: var(--surface); }
.pond-fr-mode { border: none; background: transparent; border-radius: calc(var(--radius) - 0.15rem); padding: 0.35rem 0.8rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; font-weight: 700; color: var(--muted-foreground); cursor: pointer; }
.pond-fr-mode.is-active { background-color: var(--primary); color: var(--primary-foreground); }
.pond-fr-count { color: var(--muted-foreground); font-size: 0.85rem; }
.pond-fr-count .tnum { color: var(--primary); font-size: 1.15rem; font-weight: 700; }

/* Stage column caps at the player's own max-width (1280) so the strip + palette overlay match the video
 * width exactly; the rail sits right beside it. */
/* Grid fills .pond-fr (so it lines up with the header): a big video stage + a wider rail for 2 columns. */
.pond-fr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, 32rem); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .pond-fr-grid { grid-template-columns: 1fr; } }
.pond-fr-player.pond-player { max-width: none; }
.pond-fr :focus { outline: none; }
/* Review header in the rail (reuse the panel-head look as a rounded box). */
.pond-fr-railhead { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.6rem; }
/* Prev/Next + clip time sit on their own dark panel so the ghost Previous button reads clearly. */
.pond-fr-railnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface); }
.pond-fr-railnav .pond-fr-reviewtime { margin-left: auto; color: var(--muted-foreground); }
.pond-fr-stage { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.pond-fr-main { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }

.pond-fr-strip { position: relative; height: 2.75rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); overflow: hidden; }
.pond-fr-bar { position: absolute; bottom: 0.35rem; top: 0.35rem; min-width: 3px; border-radius: 2px; border: 1px solid color-mix(in oklch, var(--primary) 60%, transparent); background-color: color-mix(in oklch, var(--primary) 35%, transparent); cursor: pointer; padding: 0; }
.pond-fr-bar.is-bad { border-color: color-mix(in oklch, var(--destructive) 65%, transparent); background-color: color-mix(in oklch, var(--destructive) 40%, transparent); }
.pond-fr-bar.is-selected { outline: 2px solid var(--foreground); outline-offset: 0; }

.pond-fr-player { position: relative; }
.pond-fr-flash { position: absolute; left: 0.75rem; top: 0.75rem; z-index: 5; border: 1px solid color-mix(in oklch, var(--primary) 60%, transparent); background-color: color-mix(in oklch, var(--primary) 22%, transparent); color: var(--primary); padding: 0.3rem 0.7rem; border-radius: var(--radius); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; font-weight: 700; }

.pond-fr-overlay { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 2.5rem 0.75rem 0.6rem; background: linear-gradient(to top, color-mix(in oklch, black 85%, transparent), transparent); }
.pond-fr-overlay--top-center, .pond-fr-overlay--top-left, .pond-fr-overlay--top-right { bottom: auto; top: 0; padding: 0.6rem 0.75rem 2.5rem; background: linear-gradient(to bottom, color-mix(in oklch, black 85%, transparent), transparent); }
.pond-fr-overlay--bottom-left, .pond-fr-overlay--top-left { justify-content: flex-start; }
.pond-fr-overlay--bottom-right, .pond-fr-overlay--top-right { justify-content: flex-end; }
.pond-fr-overlay--bottom-center, .pond-fr-overlay--top-center { justify-content: center; }
.pond-fr-overlay-hint { color: color-mix(in oklch, white 75%, transparent); font-size: 0.8rem; }

.pond-fr-palette-head { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.pond-fr-range { display: flex; align-items: center; gap: 0.3rem; color: var(--muted-foreground); font-size: 0.78rem; }
.pond-fr-rangenum { width: 2.6rem; height: 1.7rem; padding: 0.1rem 0.35rem; font-size: 0.8rem; }
.pond-fr-catblock { margin-top: 0.85rem; }
.pond-fr-chiprow { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }

/* Tag chip: main press (neutral/baked) + a Good/Bad split revealed on hover/focus. */
/* Fixed-width chips (min-width so short names stay readable + the main/neutral press stays clickable);
 * the Good/Bad split OVERLAYS the right on hover (absolute — no reflow, so nothing jerks or re-wraps). */
.pond-fr-chip { position: relative; display: flex; overflow: hidden; min-width: 9rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); }
.pond-fr-chip:hover, .pond-fr-chip:focus-within { border-color: color-mix(in oklch, var(--primary) 60%, transparent); }
.pond-fr-chip--overlay { border-color: color-mix(in oklch, white 25%, transparent); background-color: color-mix(in oklch, white 12%, transparent); backdrop-filter: blur(2px); }
.pond-fr-chip-main { flex: 1; display: inline-flex; align-items: center; justify-content: flex-start; gap: 0.4rem; border: none; background: transparent; color: var(--foreground); padding: 0.4rem 0.7rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.72rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pond-fr-chip--overlay .pond-fr-chip-main { color: white; }
.pond-fr-chip-key { border-radius: calc(var(--radius) - 0.15rem); background-color: color-mix(in oklch, black 40%, transparent); color: var(--muted-foreground); padding: 0 0.3rem; font-size: 0.65rem; }
.pond-fr-chip-split { position: absolute; inset-block: 0; right: 0; display: none; align-items: stretch; overflow: hidden; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: -0.5rem 0 0.5rem color-mix(in oklch, var(--surface-2) 80%, transparent); }
.pond-fr-chip:hover .pond-fr-chip-split, .pond-fr-chip:focus-within .pond-fr-chip-split { display: flex; }
.pond-fr-chip-good, .pond-fr-chip-bad { border: none; border-left: 1px solid var(--border); background-color: var(--surface); padding: 0 0.55rem; font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; white-space: nowrap; }
.pond-fr-chip-good { color: var(--success, oklch(0.75 0.15 150)); }
.pond-fr-chip-bad { color: var(--destructive); }
.pond-fr-chip-good:hover { background-color: color-mix(in oklch, var(--success, oklch(0.72 0.15 150)) 25%, var(--surface)); }
.pond-fr-chip-bad:hover { background-color: color-mix(in oklch, var(--destructive) 25%, var(--surface)); }
/* Over the video the split needs a SOLID opaque backing (no transparency) or it's unreadable. */
.pond-fr-chip--overlay .pond-fr-chip-good, .pond-fr-chip--overlay .pond-fr-chip-bad { background-color: color-mix(in oklch, black 82%, var(--surface)); }
.pond-fr-chip--overlay .pond-fr-chip-good { color: oklch(0.84 0.17 150); }
.pond-fr-chip--overlay .pond-fr-chip-bad { color: oklch(0.72 0.2 25); }
.pond-fr-chip--overlay .pond-fr-chip-good:hover { background-color: color-mix(in oklch, var(--success, oklch(0.72 0.15 150)) 40%, black); color: white; }
.pond-fr-chip--overlay .pond-fr-chip-bad:hover { background-color: color-mix(in oklch, var(--destructive) 45%, black); color: white; }

.pond-fr-tag { display: inline-block; border-radius: 0.2rem; padding: 0.18rem 0.5rem; font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background-color: color-mix(in oklch, var(--muted-foreground) 18%, transparent); color: var(--foreground); }
.pond-fr-tag.is-good { background-color: color-mix(in oklch, var(--success, oklch(0.72 0.15 150)) 20%, transparent); color: var(--success, oklch(0.75 0.15 150)); }
.pond-fr-tag.is-bad { background-color: color-mix(in oklch, var(--destructive) 20%, transparent); color: var(--destructive); }

.pond-fr-rail { min-width: 0; }
.pond-fr-cliplist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.4rem; align-content: start; }
.pond-fr-clip { border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.45rem 0.55rem; }
.pond-fr-clip.is-selected { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 10%, transparent); }
.pond-fr-clip-main { display: block; width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; padding: 0; color: inherit; }
.pond-fr-clip-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pond-fr-clip-time { color: var(--primary); font-size: 0.76rem; font-weight: 700; }
.pond-fr-clip-jump { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.62rem; font-weight: 700; color: var(--muted-foreground); }
.pond-fr-clip:hover .pond-fr-clip-jump { color: var(--primary); }
.pond-fr-clip-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin-top: 0.3rem; }
.pond-fr-clip-players { display: block; margin-top: 0.25rem; color: var(--muted-foreground); font-size: 0.74rem; }
.pond-fr-clip-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem; margin-top: 0.45rem; border-top: 1px solid var(--border); padding-top: 0.4rem; }
.pond-fr-clip-link { border: none; background: transparent; color: var(--muted-foreground); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.66rem; font-weight: 700; cursor: pointer; padding: 0; }
.pond-fr-clip-link:hover { color: var(--primary); }
.pond-fr-clip-confirm { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: auto; }
.pond-fr-clip-trash { border: none; background: transparent; color: color-mix(in oklch, var(--destructive) 80%, transparent); cursor: pointer; padding: 0.1rem 0.2rem; margin-left: auto; }
.pond-fr-clip-trash:hover { color: var(--destructive); }

/* Timeline header (name + zoom) + disposition pills. */
.pond-fr-timeline { display: flex; flex-direction: column; gap: 0.4rem; }
.pond-fr-timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.pond-fr-zoom { display: inline-flex; align-items: center; gap: 0.3rem; }
.pond-fr-zoomlabel { color: var(--muted-foreground); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pond-fr-zoombtn { border: 1px solid var(--border); background-color: var(--surface); border-radius: var(--radius); padding: 0.1rem 0.5rem; font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; color: var(--muted-foreground); cursor: pointer; }
.pond-fr-zoombtn.is-active { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); }
.pond-fr-disp { border-radius: 0.2rem; padding: 0.18rem 0.5rem; font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.pond-fr-disp.is-good { background-color: color-mix(in oklch, var(--success, oklch(0.72 0.15 150)) 20%, transparent); color: var(--success, oklch(0.78 0.15 150)); }
.pond-fr-disp.is-bad { background-color: color-mix(in oklch, var(--destructive) 20%, transparent); color: var(--destructive); }

/* Period + zoom controls cluster (top-right of the timeline). */
.pond-fr-tlcontrols { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Trash icon on a clip — a real icon, not an emoji. */
.pond-fr-clip-trash svg { width: 1.05rem; height: 1.05rem; display: block; }

/* Reusable clip card (ClipCard.razor) — one clip card across Film Room, dashboard, and beyond. Mirrors
   the film-room rail card; the star toggle sits top-right where the old "Jump →" hint used to be. */
.pond-clipcard { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.45rem 0.55rem; }
.pond-clipcard.is-selected { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 10%, transparent); }
.pond-clipcard__body { display: block; width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; padding: 0; color: inherit; }
.pond-clipcard__head { display: flex; align-items: center; gap: 0.5rem; padding-right: 1.6rem; }
.pond-clipcard__time { color: var(--primary); font-size: 0.76rem; font-weight: 700; }
.pond-clipcard__title { display: block; margin-top: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.pond-clipcard__subtitle { display: block; margin-top: 0.15rem; color: var(--muted-foreground); font-size: 0.76rem; }
.pond-clipcard__note { display: block; margin-top: 0.2rem; color: var(--muted-foreground); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pond-clipcard__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin-top: 0.3rem; }
.pond-clipcard__players { display: block; margin-top: 0.25rem; color: var(--muted-foreground); font-size: 0.74rem; }
.pond-clipcard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.45rem; border-top: 1px solid var(--border); padding-top: 0.4rem; }
.pond-clipcard__star { position: absolute; top: 0.4rem; right: 0.4rem; border: none; background: transparent; color: var(--muted-foreground); cursor: pointer; padding: 0.12rem; line-height: 0; border-radius: 0.3rem; transition: color 0.12s ease; }
.pond-clipcard__star svg { width: 1.15rem; height: 1.15rem; display: block; }
.pond-clipcard__star:hover { color: #ffcf4d; }
.pond-clipcard__star.is-on { color: #ffcf4d; }
.pond-clipcard__sep { color: var(--muted-foreground); font-size: 0.66rem; }

/* Keyboard / clicker map — a standard themed panel (same head as every other panel) below the video,
 * with the keys laid out horizontally in the body. */
.pond-fr-keymap-keys { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding-inline: 1.25rem; color: var(--muted-foreground); font-size: 0.74rem; }
.pond-fr-keymap-keys kbd { margin-right: 0.3rem; border: 1px solid var(--border); border-radius: 0.25rem; background-color: var(--surface-2); padding: 0 0.3rem; font-family: var(--font-mono, monospace); font-size: 0.7rem; color: var(--foreground); }
.pond-fr-keymap .pond-panel-head { padding-inline: 1.25rem; }
.pond-fr-reviewnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pond-fr-reviewlabel { color: var(--muted-foreground); font-size: 0.8rem; }
.pond-fr-reviewtime { margin-left: auto; color: var(--muted-foreground); }

/* Timeline strip row: period jump buttons + the strip (with period markers). */
.pond-fr-striprow { display: flex; align-items: stretch; gap: 0.5rem; }
.pond-fr-periods { display: flex; gap: 0.25rem; }
.pond-fr-periodbtn { border: 1px solid var(--border); background-color: var(--surface); border-radius: var(--radius); padding: 0 0.6rem; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; color: var(--muted-foreground); cursor: pointer; }
.pond-fr-periodbtn:hover { border-color: var(--primary); color: var(--primary); }
.pond-fr-striprow .pond-fr-strip { flex: 1; }
.pond-fr-periodmark { position: absolute; top: 0; bottom: 0; z-index: 2; border: none; border-left: 1px dashed color-mix(in oklch, var(--foreground) 45%, transparent); background: transparent; padding: 0.15rem 0 0 0.2rem; font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; color: var(--muted-foreground); cursor: pointer; }
.pond-fr-periodmark:hover { color: var(--primary); border-left-color: var(--primary); }
.pond-fr-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background-color: var(--primary); z-index: 3; pointer-events: none; }

/* Right rail: Palette ⇄ Cut-up toggle. */
.pond-fr-railtabs { display: flex; gap: 0.2rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.2rem; background-color: var(--surface); margin-bottom: 0.6rem; }
.pond-fr-railtab { flex: 1; border: none; background: transparent; border-radius: calc(var(--radius) - 0.15rem); padding: 0.4rem 0.5rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.74rem; font-weight: 700; color: var(--muted-foreground); cursor: pointer; }
.pond-fr-railtab.is-active { background-color: var(--primary); color: var(--primary-foreground); }
.pond-fr-railpane { border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface); padding: 0.7rem; max-height: calc(100vh - 11rem); overflow-y: auto; }
.pond-fr-palette-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
/* A light hairline under each palette section header (Favorites / Concepts / Units / Stats / Situation). */
.pond-fr-palette-section, .pond-fr-catblock > .label-kicker { display: block; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; margin-bottom: 0.4rem; }

/* Film picker (no game selected). */
.pond-fr-picker { display: flex; flex-direction: column; gap: 1.1rem; }
.pond-fr-pickhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pond-fr-picktitle { margin: 0 0 0.25rem; font-size: 1.3rem; }
.pond-fr-picksub { margin: 0; color: var(--muted-foreground); font-size: 0.85rem; }
.pond-fr-picksearch { min-width: 16rem; max-width: 22rem; }
.pond-fr-pickgroup { display: flex; flex-direction: column; gap: 0.5rem; }
.pond-fr-pickgrouphead { margin-bottom: 0.1rem; }
.pond-fr-pickgames { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
.pond-fr-pickcard { display: flex; flex-direction: column; gap: 0.2rem; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.7rem 0.85rem; cursor: pointer; color: inherit; }
.pond-fr-pickcard:hover { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 8%, transparent); }
.pond-fr-pickopp { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; font-size: 0.95rem; }
.pond-fr-pickmeta { color: var(--muted-foreground); font-size: 0.78rem; }

/* Film Room initial state (no game) + the "Change game" modal, both hosting the reusable PondGamePicker. */
.pond-fr-pickerwrap { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.pond-fr-pickerhead { text-align: center; }
.pond-fr-pickerpanel { border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface); padding: 0.85rem; }
.pond-fr-changebtn { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.35rem 0.7rem; cursor: pointer; color: var(--foreground); font-family: inherit; }
.pond-fr-changebtn:hover { border-color: var(--primary); }
/* padding-bottom lifts the (larger, mixed-case) opponent up so it lines up with the uppercase GAME/CHANGE
 * labels — in a center-aligned row, bottom padding pushes the text off the vertical center, upward. */
.pond-fr-changeopp { font-weight: 500; font-size: 0.85rem; padding-bottom: 0.07rem; }
.pond-fr-changehint { color: var(--muted-foreground); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pond-fr-pickermodal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 1.5rem 1.5rem; background-color: color-mix(in oklch, black 70%, transparent); }
.pond-fr-pickerdialog { width: 100%; max-width: 42rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface); padding: 1rem; box-shadow: 0 1.5rem 3rem color-mix(in oklch, black 40%, transparent); }
.pond-fr-pickerdialoghead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.pond-fr-pickerdialogtitle { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; color: var(--primary); }
.pond-fr-pickerclose { border: none; background: transparent; color: var(--muted-foreground); font-size: 1rem; cursor: pointer; }
.pond-fr-pickerclose:hover { color: var(--foreground); }

/* Reusable game picker (PondGamePicker). */
.pond-gp { display: flex; flex-direction: column; gap: 0.75rem; outline: none; }
.pond-gp-search { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--input); border-radius: var(--radius); background-color: var(--background); padding: 0 0.7rem; }
.pond-gp-searchicon { color: var(--muted-foreground); }
.pond-gp-input { flex: 1; border: none; background: transparent; color: var(--foreground); padding: 0.55rem 0; font-size: 0.9rem; outline: none; font-family: inherit; }
.pond-gp-clear { border: none; background: transparent; color: var(--muted-foreground); cursor: pointer; }
.pond-gp-clear:hover { color: var(--foreground); }
.pond-gp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.pond-gp-chip { border: 1px solid var(--border); background-color: var(--surface-2); border-radius: var(--radius); padding: 0.2rem 0.5rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted-foreground); cursor: pointer; }
.pond-gp-chip.is-active { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); }
.pond-gp-divider { width: 1px; height: 1rem; background-color: var(--border); margin: 0 0.25rem; }
.pond-gp-recent { display: flex; flex-direction: column; gap: 0.35rem; }
.pond-gp-recentrow { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pond-gp-recentbtn { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border); background-color: var(--surface-2); border-radius: var(--radius); padding: 0.35rem 0.6rem; font-size: 0.8rem; color: var(--foreground); cursor: pointer; font-family: inherit; }
.pond-gp-recentbtn:hover { border-color: var(--primary); }
.pond-gp-recentday { color: var(--muted-foreground); }
.pond-gp-list { min-height: 0; overflow-y: auto; max-height: 52vh; padding-right: 0.25rem; }
.pond-gp-list.is-dense { max-height: 42vh; }
.pond-gp-month { position: sticky; top: 0; background-color: color-mix(in oklch, var(--surface) 96%, transparent); padding: 0.3rem 0; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-foreground); }
.pond-gp-rows { list-style: none; margin: 0 0 0.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
/* font-family: inherit — buttons don't inherit the page font by default, so the opponent + meta match
 * the Barlow used everywhere else (the .tnum day/clips spans still override to mono). */
.pond-gp-row { display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.5rem 0.75rem; cursor: pointer; color: inherit; font-family: inherit; }
.pond-gp-row.is-cursor { border-color: color-mix(in oklch, var(--primary) 60%, transparent); }
.pond-gp-row.is-current { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 10%, transparent); }
.pond-gp-rowday { width: 6rem; flex: none; color: var(--muted-foreground); font-size: 0.74rem; }
/* Opponent over meta with real breathing room between the two lines (mock stacks them a touch looser). */
.pond-gp-rowmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.pond-gp-rowopp { display: block; font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.pond-gp-rowmeta { display: block; color: var(--muted-foreground); font-size: 0.74rem; line-height: 1.2; }
.pond-gp-rowclips { flex: none; color: var(--muted-foreground); font-size: 0.74rem; }
.pond-gp-hint { margin: 0; color: var(--muted-foreground); font-size: 0.72rem; }
.pond-gp-hint kbd { border: 1px solid var(--border); border-radius: 0.2rem; padding: 0 0.25rem; }
.pond-gp-more { width: 100%; margin-top: 0.4rem; padding: 0.45rem; border: 1px dashed var(--border); border-radius: var(--radius); background: transparent; color: var(--muted-foreground); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; }
.pond-gp-more:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pond-gp-more:disabled { opacity: 0.6; cursor: default; }

/* =====================================================================
 * Clip Enrichment — /enrichment page, the reusable ClipFinder + ClipEnricher. GLOBAL.
 * ===================================================================== */
.pond-muted { color: var(--muted-foreground); }

/* Page: header + finder | enricher two-column (single column below xl). */
.pond-enrichpage { display: flex; flex-direction: column; gap: 1rem; max-width: 2128px; margin: 0 auto; }
.pond-enrichpage-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pond-enrichpage-titles h1 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.pond-enrichpage-sub { margin: 0; color: var(--muted-foreground); font-size: 0.85rem; }
.pond-enrichpage-grid { display: grid; grid-template-columns: 24rem minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .pond-enrichpage-grid { grid-template-columns: 1fr; } }
.pond-enrichpage-empty { align-self: start; }

/* Finder — a bordered panel: header, controls, scrollable rows. */
.pond-finder { border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.pond-finder-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.pond-finder-head .pond-panel-title { margin: 0; }
.pond-finder-controls { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; border-bottom: 1px solid var(--border); }
.pond-finder-search { width: 100%; }
.pond-finder-selects { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pond-finder-selects .pond-input { flex: 1; min-width: 8rem; height: var(--control-h); padding-block: 0.2rem; }
.pond-finder-list { padding: 0.75rem; max-height: 60vh; overflow-y: auto; }
.pond-finder-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
/* Three rows: name (left) + Enrich (right); then opponent·date (left) + time (right); then the
 * enrichment status line at the bottom. */
.pond-finder-row { display: flex; flex-direction: column; gap: 0.2rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.5rem 0.6rem; }
.pond-finder-rowtop { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.pond-finder-rowmid { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.pond-finder-sub { min-width: 0; color: var(--muted-foreground); font-size: 0.74rem; }
.pond-finder-enrichline { color: var(--muted-foreground); font-size: 0.72rem; }
.pond-finder-row.is-picked { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 10%, transparent); }
.pond-finder-time { flex: none; color: var(--primary); font-size: 0.72rem; }
.pond-finder-main { flex: 1; min-width: 9rem; font-size: 0.85rem; }
.pond-finder-concept { font-weight: 700; }
.pond-finder-concept.is-bad { color: var(--destructive); }
.pond-finder-game { display: block; color: var(--muted-foreground); font-size: 0.74rem; }
/* Right column: the Enrich button with the enrichment markers stacked BELOW it (so a comment count never
 * pushes the button around). */
.pond-finder-actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.pond-finder-marks { display: flex; align-items: center; gap: 0.35rem; color: var(--muted-foreground); font-size: 0.8rem; }
.pond-finder-commentpill { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 0.35rem; }
.pond-finder-more { margin-top: 0.6rem; text-align: center; }

/* Enricher — header banner, film surface + telestration overlay, draw toolbar, panels. */
.pond-enricher { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.pond-enricher-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; border: 1px solid color-mix(in oklch, var(--primary) 40%, transparent); background-color: color-mix(in oklch, var(--primary) 10%, transparent); border-radius: var(--radius); padding: 0.5rem 0.75rem; }
.pond-enricher-headmain { min-width: 0; }
.pond-enricher-title { font-size: 0.95rem; font-weight: 600; }
.pond-enricher-sub { color: var(--muted-foreground); font-size: 0.78rem; }
.pond-enricher-tags { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.3rem; }

.pond-enricher-stage { min-width: 0; }
.pond-enricher-player.pond-player { max-width: none; }
.pond-enricher-player .pond-player__stage { position: relative; }
.pond-enricher-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.pond-enricher-canvas.is-on { pointer-events: auto; cursor: crosshair; }
.pond-enricher-canvas.is-move.is-on { cursor: grab; }
.pond-enricher-canvas.is-move.is-on:active { cursor: grabbing; }

/* Draw panel — a canonical .pond-panel; body stacks a tool/colour/width row over an action row. */
.pond-enricher-drawbody { display: flex; flex-direction: column; gap: 0.6rem; }
.pond-enricher-toolrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.pond-enricher-actionrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.pond-enricher-save { margin-left: auto; }
.pond-enricher-anchor { color: var(--muted-foreground); font-size: 0.82rem; }
.pond-enricher-field { display: inline-flex; align-items: center; gap: 0.35rem; }
.pond-enricher-field .label-kicker { font-size: 0.68rem; }
.pond-enricher-color { width: 2.4rem; height: 1.7rem; padding: 0; border: 1px solid var(--border); border-radius: 0.25rem; background: transparent; cursor: pointer; }
.pond-enricher-range { width: 7rem; accent-color: var(--primary); }
.pond-enricher-vomsg { font-size: 0.85rem; }

.pond-enricher-drawings { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.pond-enricher-drawchip { display: inline-flex; align-items: center; gap: 0.25rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.15rem 0.3rem 0.15rem 0.5rem; }
.pond-enricher-drawchip.is-editing { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 12%, transparent); }
.pond-enricher-drawopen { display: inline-flex; align-items: center; gap: 0.4rem; border: none; background: transparent; color: inherit; font: inherit; cursor: pointer; font-size: 0.82rem; }
.pond-enricher-drawopen .tnum { color: var(--primary); }
/* Chalkboard chips read as chalkboards (a subtle accent) in the shared moments list. */
.pond-enricher-drawkind.is-board { color: var(--secondary, var(--primary)); font-weight: 700; }
.pond-enricher-addboard { border-style: dashed; }

.pond-enricher-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pond-enricher.is-dense .pond-enricher-panels { grid-template-columns: 1fr; }
@media (max-width: 900px) { .pond-enricher-panels { grid-template-columns: 1fr; } }
.pond-enricher-vo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.pond-enricher-rec { }
.pond-enricher-recdot { color: var(--destructive); font-size: 0.85rem; }
.pond-enricher-audio { height: 2rem; flex: 1; min-width: 12rem; }
.pond-enricher-note { margin: 0.5rem 0 0; color: var(--muted-foreground); font-size: 0.78rem; }

.pond-enricher-comments { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.pond-enricher-comment { border-radius: var(--radius); background-color: var(--surface-2); padding: 0.45rem 0.6rem; }
.pond-enricher-commenthead { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; }
.pond-enricher-commentwho { font-weight: 600; font-size: 0.85rem; }
.pond-enricher-commentdel { margin-left: auto; border: none; background: transparent; color: var(--muted-foreground); cursor: pointer; }
.pond-enricher-commentdel:hover { color: var(--destructive); }
.pond-enricher-commenttext { margin: 0.2rem 0 0; color: var(--muted-foreground); font-size: 0.88rem; }
.pond-enricher-commentadd { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.pond-enricher-commentadd .pond-input { flex: 1; height: var(--control-h); padding-block: 0.2rem; }
.pond-enricher-commentadd .pond-action { height: var(--control-h); }
/* Kill the panel-body `.pond-action--solid { margin-top: 0.75rem }` bleed so the enricher's Record / Post /
 * Save buttons line up with the input / message beside them instead of sitting pushed down. */
.pond-enricher-vo .pond-action,
.pond-enricher-commentadd .pond-action,
.pond-enricher-actionrow .pond-action { margin-top: 0; }
/* Letter-spacing adds a trailing gap after the last glyph, nudging centred label text left — pad it back. */
.pond-enricher-save { padding-left: 0.98rem; }

/* Live mic level meter while recording — a scrolling row of bars (Audacity-style): newest on the right,
 * green → amber → red as the input gets hot. */
.pond-enricher-meter { display: flex; flex: 1 1 8rem; align-items: flex-end; gap: 1px; min-width: 6rem; height: 1.7rem; padding: 2px; border-radius: 0.3rem; background-color: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.pond-enricher-bar { flex: 1 1 0; min-width: 1px; height: 6%; background-color: var(--primary); border-radius: 1px; transition: height 80ms linear; }
.pond-enricher-bar.is-warm { background-color: #fbbf24; }
.pond-enricher-bar.is-hot { background-color: #ef4444; }

/* =====================================================================
 * Review Sessions (/reviews) + Kiosk (/kiosk). GLOBAL.
 * ===================================================================== */
.pond-rev { display: flex; flex-direction: column; gap: 1rem; max-width: 2128px; margin: 0 auto; }
.pond-rev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pond-rev-titles h1 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.pond-rev-sub { margin: 0; color: var(--muted-foreground); font-size: 0.85rem; }
.pond-rev-states { display: inline-flex; gap: 0.2rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.2rem; background-color: var(--surface); }
.pond-rev-sessionbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pond-rev-new { margin-left: 0.5rem; }
.pond-rev-kiosk { margin-left: auto; text-decoration: none; }

/* Session cards. */
.pond-rev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); gap: 0.85rem; }
.pond-rev-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface); }
.pond-rev-cardbar { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(to bottom, var(--primary), var(--secondary)); }
.pond-rev-cardbody { padding: 1rem 1rem 1rem 1.25rem; }
.pond-rev-cardtop { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pond-rev-teambadge { border: 1px solid color-mix(in oklch, var(--primary) 50%, transparent); background-color: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); border-radius: calc(var(--radius) - 0.15rem); padding: 0.05rem 0.4rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; font-weight: 700; }
.pond-rev-recur { color: var(--muted-foreground); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pond-rev-cardtitle { margin: 0.4rem 0 0.2rem; font-size: 1.35rem; }
.pond-rev-cardmeta { color: var(--muted-foreground); font-size: 0.85rem; }
.pond-rev-cardactions { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Build — clip finder + running order. */
.pond-rev-build { display: grid; grid-template-columns: minmax(20rem, 26rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .pond-rev-build { grid-template-columns: 1fr; } }
.pond-rev-buildside { display: flex; flex-direction: column; gap: 1rem; }
.pond-rev-sessioninfo { display: flex; flex-direction: column; gap: 0.3rem; }
.pond-rev-sessiontitle { font-size: 1.1rem; font-weight: 700; }
.pond-rev-buildbtns { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pond-rev-orderlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pond-rev-orderitem { display: flex; gap: 0.6rem; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.6rem; }
.pond-rev-ordernum { color: var(--primary); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.pond-rev-ordermain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.pond-rev-orderhead { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pond-rev-orderconcept { font-weight: 700; }
.pond-rev-sidebyside { border: 1px solid color-mix(in oklch, var(--primary) 50%, transparent); background-color: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); border-radius: 0.2rem; padding: 0 0.35rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pond-rev-notein { width: 100%; }
.pond-rev-orderbtns { display: flex; flex-direction: column; gap: 0.25rem; }

/* Compare. */
.pond-rev-compare { display: flex; flex-direction: column; gap: 1rem; }
.pond-rev-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .pond-rev-slots { grid-template-columns: 1fr; } }
.pond-rev-slotpick { color: var(--primary); }
.pond-rev-comparebtns { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Present. */
.pond-rev-present { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .pond-rev-present { grid-template-columns: 1fr; } }
.pond-rev-stage { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.pond-rev-player.pond-player { max-width: none; }
.pond-rev-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface); padding: 0.6rem 0.7rem; }
.pond-rev-bignote { margin: 0; font-family: var(--font-condensed); text-transform: uppercase; font-size: 1.75rem; line-height: 1.1; }
.pond-rev-runorder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.pond-rev-runitem { display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left; border: 1px solid transparent; border-radius: var(--radius); background-color: var(--surface-2); padding: 0.45rem 0.6rem; color: inherit; cursor: pointer; font-size: 0.85rem; }
.pond-rev-runitem .tnum { color: var(--primary); }
.pond-rev-runitem.is-current { border-color: var(--primary); background-color: color-mix(in oklch, var(--primary) 12%, transparent); }

/* Create/edit form bits. */
.pond-rev-headbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.pond-rev-addmode { display: flex; gap: 0.3rem; }
.pond-rev-cmpbody { display: flex; flex-direction: column; gap: 0.6rem; }
.pond-rev-slot { display: flex; flex-direction: column; gap: 0.1rem; align-items: flex-start; text-align: left; flex: 1; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface-2); padding: 0.5rem 0.6rem; cursor: pointer; color: inherit; }
.pond-rev-slot.is-active { border-color: var(--primary); }
.pond-rev-slot.is-filled { background-color: color-mix(in oklch, var(--primary) 10%, transparent); }
/* When + Repeats: equal-width grid columns so the datetime input can't out-size the select. */
.pond-rev-schedrow { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pond-rev-schedrow .pond-field { min-width: 0; }
.pond-rev-schedrow .pond-input { width: 100%; min-width: 0; }
/* Kiosk-mode button in the top bar (left of the profile). */
.pond-kiosk-navbtn { margin-right: 0.6rem; border: 1px solid color-mix(in oklch, var(--primary) 45%, transparent); background-color: color-mix(in oklch, var(--primary) 12%, transparent); color: var(--primary); border-radius: var(--radius); padding: 0.35rem 0.7rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pond-kiosk-navbtn:hover { background-color: color-mix(in oklch, var(--primary) 20%, transparent); }
.pond-rev-playerpick { display: flex; flex-direction: column; gap: 0.25rem; max-height: 14rem; overflow-y: auto; margin-top: 0.25rem; }
.pond-rev-playerchk { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.pond-rev-playerchk input { width: auto; }

/* ---- Kiosk (full screen) ---- */
.pond-kiosk { min-height: 100vh; background-color: var(--background); color: var(--foreground); display: flex; flex-direction: column; }
.pond-kiosk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; border-bottom: 1px solid var(--border); padding: 1rem 2rem; }
.pond-kiosk-brandname { font-family: var(--font-condensed); text-transform: uppercase; font-size: 1.5rem; font-weight: 700; }
.pond-kiosk-brandsub { color: var(--primary); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; }
.pond-kiosk-badge { margin-left: auto; border: 1px solid color-mix(in oklch, var(--primary) 50%, transparent); background-color: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); border-radius: var(--radius); padding: 0.35rem 0.7rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; }
.pond-kiosk-main { padding: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.pond-kiosk-title { margin: 0; font-size: 2rem; }
.pond-kiosk-teamgroup { display: flex; flex-direction: column; gap: 0.85rem; }
.pond-kiosk-teamhead { display: flex; align-items: center; gap: 0.75rem; }
.pond-kiosk-teamline { flex: 1; height: 1px; background: linear-gradient(to right, var(--border), transparent); }
.pond-kiosk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; }
.pond-kiosk-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface); text-align: left; cursor: pointer; }
.pond-kiosk-card:hover { border-color: color-mix(in oklch, var(--primary) 60%, transparent); }
.pond-kiosk-cardbody { padding: 1.1rem 1.1rem 1.1rem 1.35rem; }
.pond-kiosk-cardtitle { margin: 0.3rem 0; font-family: var(--font-condensed); text-transform: uppercase; font-size: 1.5rem; }
.pond-kiosk-cardfoot { margin-top: 0.85rem; display: flex; align-items: center; justify-content: space-between; }
.pond-kiosk-cardfoot .tnum { color: var(--primary); }
.pond-kiosk-start { color: var(--primary); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
.pond-kiosk-player { padding: 1.5rem 2rem; display: grid; grid-template-columns: minmax(0, 1fr) 22rem; grid-template-rows: auto 1fr; gap: 1rem; }
.pond-kiosk-playerhead { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pond-kiosk-nowtitle { margin: 0; font-size: 1.75rem; }
.pond-kiosk-count { margin-left: auto; color: var(--primary); }
.pond-kiosk-stage { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.pond-kiosk-video.pond-player { max-width: none; }
.pond-kiosk-transport { display: flex; gap: 0.5rem; }
.pond-kiosk-note { font-family: var(--font-condensed); text-transform: uppercase; font-size: 2rem; line-height: 1.1; }
.pond-kiosk-order { border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--surface); padding: 0.75rem; }

/* ---- Review Sessions polish pass ---- */
/* Hero (soonest upcoming) stretches full width; the rest go 2-up in date bands. */
.pond-rev-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 900px) { .pond-rev-grid2 { grid-template-columns: 1fr; } }
.pond-rev-band { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 700; color: var(--muted-foreground); margin-top: 0.4rem; }
/* Occurrences drill-in — a recurring series' dated instances. */
.pond-rev-occlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pond-rev-occrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklch, var(--surface-2) 55%, transparent); padding: 0.6rem 0.8rem; }
.pond-rev-occwhen { display: flex; flex-direction: column; }
.pond-rev-occday { font-weight: 700; }
.pond-rev-occmeta { font-size: 0.78rem; }
.pond-rev-occbtns, .pond-rev-occresched { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.pond-rev-card.is-hero { background-image: linear-gradient(120deg, color-mix(in oklch, var(--primary) 14%, transparent), transparent 55%), linear-gradient(300deg, color-mix(in oklch, var(--secondary) 16%, transparent), transparent 55%); }
.pond-rev-card.is-hero .pond-rev-cardbody { padding: 1.5rem 1.75rem 1.5rem 2rem; }
.pond-rev-card.is-hero .pond-rev-cardtitle { font-size: 2.1rem; }
.pond-rev-card.is-hero .pond-rev-cardbar { width: 5px; }
/* Audience + focus pills on the card. */
.pond-rev-audpill { border: 1px solid var(--border); background-color: var(--surface-2); border-radius: calc(var(--radius) - 0.15rem); padding: 0.05rem 0.45rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.pond-rev-focus { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pond-rev-focuschip { border-radius: 0.2rem; background-color: var(--surface-2); padding: 0.1rem 0.45rem; font-size: 0.72rem; color: var(--muted-foreground); }
/* Uniform back button — medium, no arrow, not prominent. */
.pond-rev-back { align-self: flex-start; margin-bottom: 0.35rem; }
.pond-rev-titles { display: flex; flex-direction: column; }
/* Running order with tag pills; the nav sits under it in the rail (like the film room). */
.pond-rev-runitem { align-items: center; }
.pond-rev-runnum { color: var(--primary); flex: none; }
.pond-rev-runtags { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.pond-rev-runtime { flex: none; color: var(--primary); }
.pond-rev-railnav { margin-top: 0.6rem; }
/* Compare picker inside the finder panel. */
.pond-rev-cmphint { margin: 0; font-size: 0.78rem; }
.pond-rev-addsbs { align-self: flex-start; }
.pond-finder-top { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.1rem; }

/* ============================================================================
   A/B compare player — Review Sessions Present/kiosk "PiP swap" (compare-player.js).
   Clip A fills the frame; clip B rides in a bottom-right inset; they trade places
   when A ends, then stop. The two <video> layers animate via transform so the swap
   reads as a real motion; a letter flash + diagonal wipe punctuate it.
   ============================================================================ */
.pond-compare { width: 100%; }

.pond-cmp {
    --cmp-a: var(--primary);              /* teal  — clip A */
    --cmp-b: oklch(0.78 0.14 65);         /* amber — clip B */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-condensed);
}

.pond-cmp__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Layers. Main = full frame; inset shrinks toward the bottom-right corner via transform
   (scoreboard graphics usually sit top-left, so the inset stays clear of them). */
.pond-cmp__layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    transform-origin: bottom right;
    transition: transform 0.55s cubic-bezier(0.22, 0.75, 0.2, 1),
                box-shadow 0.55s ease, border-radius 0.4s ease, opacity 0.4s ease;
    will-change: transform;
}
.pond-cmp__layer--a { --ring: var(--cmp-a); }
.pond-cmp__layer--b { --ring: var(--cmp-b); }

.pond-cmp__layer.is-main {
    transform: none;
    z-index: 1;
    box-shadow: none;
    cursor: default;
}
.pond-cmp__layer.is-inset {
    transform: translate(-3.5%, -3.5%) scale(0.24);
    z-index: 3;
    border-radius: calc(var(--radius) * 3);
    box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.55), 0 0 0 0.18rem var(--ring);
    opacity: 0.97;
    cursor: pointer;
}
.pond-cmp__layer.is-inset:hover { opacity: 1; }
/* Minimized: the inset collapses to a small labeled chip (still clickable to swap). */
.pond-cmp__viewport.is-min .pond-cmp__layer.is-inset { transform: translate(-4%, -4%) scale(0.13); }

.pond-cmp__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

/* Corner letter badge on each layer. */
.pond-cmp__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 4;
    min-width: 1.5rem;
    padding: 0.05rem 0.45rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    color: #06201d;
    background: var(--ring);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
/* Keep the inset's badge legible even though its layer is scaled down. */
.pond-cmp__layer.is-inset .pond-cmp__badge { transform: scale(3.3); transform-origin: top left; }

/* Overlay A/B segmented control, top-right of the frame. */
.pond-cmp__switch {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 6;
    display: inline-flex;
    padding: 0.25rem;
    gap: 0.25rem;
    border-radius: calc(var(--radius) * 2);
    background: color-mix(in oklch, #000 55%, transparent);
    backdrop-filter: blur(6px);
    box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.4);
}
.pond-cmp__pick {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 0.4rem 0.9rem;
    border-radius: calc(var(--radius) * 1.5);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.pond-cmp__pick:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.pond-cmp__pick:active { transform: scale(0.96); }
.pond-cmp__pick[data-cmp-pick="a"].is-active { color: var(--primary-foreground); background: var(--cmp-a); }
.pond-cmp__pick[data-cmp-pick="b"].is-active { color: #241704; background: var(--cmp-b); }

/* Big letter that flashes through on a swap. */
.pond-cmp__flash {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(5rem, 20vw, 13rem);
    color: #fff;
    text-shadow: 0 0 2.5rem color-mix(in oklch, var(--primary) 70%, #000);
    opacity: 0;
    pointer-events: none;
}
.pond-cmp__flash.is-on { animation: pond-cmp-flash 0.72s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes pond-cmp-flash {
    0%   { opacity: 0; transform: scale(0.55); }
    28%  { opacity: 0.96; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.18); }
}

/* Diagonal wipe sweep on a swap. */
.pond-cmp__wipe {
    position: absolute;
    top: -20%;
    left: 0;
    width: 45%;
    height: 140%;
    z-index: 4;
    transform: translateX(-140%) skewX(-14deg);
    background: linear-gradient(90deg, transparent,
        color-mix(in oklch, var(--primary) 55%, #fff) 45%, #fff 50%,
        color-mix(in oklch, var(--primary) 55%, #fff) 55%, transparent);
    opacity: 0;
    pointer-events: none;
}
.pond-cmp__wipe.is-on { animation: pond-cmp-wipe 0.62s ease-in-out; }
@keyframes pond-cmp-wipe {
    0%   { opacity: 0; transform: translateX(-140%) skewX(-14deg); }
    15%  { opacity: 0.85; }
    85%  { opacity: 0.85; }
    100% { opacity: 0; transform: translateX(360%) skewX(-14deg); }
}

/* Control bar — matches the single player's dark utilitarian bar. */
.pond-cmp__bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    background: var(--surface);
}
.pond-cmp__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    height: var(--control-h);
    min-width: var(--control-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1rem;
}
.pond-cmp__btn:hover { color: #fff; background: var(--surface-2); }
.pond-cmp__i { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.pond-cmp__i--pause { display: none; }
.pond-cmp.is-playing .pond-cmp__i--play { display: none; }
.pond-cmp.is-playing .pond-cmp__i--pause { display: inline; }

.pond-cmp__track {
    position: relative;
    flex: 1;
    height: 0.4rem;
    border-radius: 999px;
    background: color-mix(in oklch, var(--surface-2) 80%, #000);
    cursor: pointer;
    overflow: hidden;
}
.pond-cmp__played {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--primary);
    border-radius: inherit;
}
.pond-cmp__time { font-variant-numeric: tabular-nums; color: var(--muted-foreground); font-size: 0.85rem; white-space: nowrap; }
.pond-cmp__sep { opacity: 0.5; margin: 0 0.2rem; }
.pond-cmp__hint {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--primary);
    white-space: nowrap;
}
.pond-cmp__rate {
    font-variant-numeric: tabular-nums;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    min-width: 2.4rem;
    text-align: center;
    white-space: nowrap;
}
.pond-cmp__minbtn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius);
    font-family: var(--font-condensed);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--muted-foreground);
    background: var(--surface-2);
    white-space: nowrap;
}
.pond-cmp__minbtn:hover { color: #fff; }

/* ============================================================================
   Clicker setup (Settings › Clicker) — pair a presenter/clicker to the players.
   ============================================================================ */
.pond-clk { display: flex; flex-direction: column; gap: 1rem; }
.pond-clk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pond-clk-sub { margin: 0.25rem 0 0; color: var(--muted-foreground); font-size: 0.9rem; }
.pond-clk-scope { display: inline-flex; gap: 0.25rem; }

.pond-clk-grid { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 720px) { .pond-clk-grid { grid-template-columns: 1fr; } }

.pond-clk-devicewrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 0.5rem; }
.pond-clk-device { width: 100%; max-width: 150px; height: auto; }
.pond-clk-body { fill: var(--surface); stroke: color-mix(in oklch, var(--muted-foreground) 40%, transparent); stroke-width: 1.5; }
.pond-clk-laser { fill: color-mix(in oklch, var(--muted-foreground) 50%, transparent); transition: fill 0.2s ease; }
.pond-clk-laser.is-lit { fill: #e23b4e; }
.pond-clk-btn { fill: color-mix(in oklch, var(--muted-foreground) 30%, transparent); transition: fill 0.15s ease, filter 0.15s ease; }
.pond-clk-btn.is-lit { fill: var(--primary); filter: drop-shadow(0 0 6px color-mix(in oklch, var(--primary) 70%, transparent)); }

.pond-clk-lastkey { display: flex; align-items: center; gap: 0.5rem; min-height: 1.6rem; font-size: 0.85rem; }
.pond-clk-keycap {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.7rem; padding: 0.1rem 0.45rem;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid color-mix(in oklch, var(--muted-foreground) 30%, transparent);
    font-family: var(--font-condensed); font-weight: 600; font-size: 0.82rem;
}

.pond-clk-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.pond-clk-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.75rem;
    padding: 0.55rem 0.7rem; border-radius: var(--radius);
    background: color-mix(in oklch, var(--surface) 60%, transparent);
    border: 1px solid transparent;
}
.pond-clk-row.is-capturing { border-color: var(--primary); background: color-mix(in oklch, var(--primary) 12%, transparent); }
.pond-clk-rowmain { display: flex; flex-direction: column; min-width: 0; }
.pond-clk-actlabel { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.pond-clk-acthint { color: var(--muted-foreground); font-size: 0.78rem; }
.pond-clk-rowkeys { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }
.pond-clk-nokey { color: color-mix(in oklch, var(--muted-foreground) 60%, transparent); }
.pond-clk-set { white-space: nowrap; }

.pond-clk-tools { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding-top: 0.5rem; border-top: 1px solid color-mix(in oklch, var(--muted-foreground) 18%, transparent); }
.pond-clk-toolspacer { flex: 1; }
.pond-clk-dirty { margin: 0; color: var(--primary); font-size: 0.82rem; }

.pond-clk-capture {
    position: relative; margin-top: 0.75rem; padding: 1.5rem 1rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center;
    border-radius: var(--radius);
    background: color-mix(in oklch, var(--primary) 8%, var(--surface));
    border: 1px dashed color-mix(in oklch, var(--primary) 55%, transparent);
    outline: none;
}
.pond-clk-capture:focus { border-style: solid; }
.pond-clk-captureprompt { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.pond-clk-testflash {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(1.6rem, 6vw, 3rem); color: var(--primary);
    opacity: 0.5; transition: opacity 0.1s ease;
}
.pond-clk-testflash.is-on { animation: pond-clk-flash 0.5s ease; }
@keyframes pond-clk-flash {
    0% { opacity: 0.2; transform: scale(0.9); }
    30% { opacity: 1; transform: scale(1.04); }
    100% { opacity: 0.6; transform: scale(1); }
}
.pond-clk-pair { font-weight: 700; }
.pond-clk-wizbtns { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.pond-kiosk-keymap { margin-top: 0.75rem; justify-content: center; }

/* Enrichment auto-reveal (Reviews Present): read-only telestration overlay + freeze banner. */
.pond-rev-reveal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.pond-rev-freeze {
    position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 5;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.45rem 0.55rem 0.45rem 0.9rem; border-radius: calc(var(--radius) * 2);
    background: color-mix(in oklch, #000 62%, transparent); backdrop-filter: blur(6px);
    color: #fff; box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.45);
}
.pond-rev-freeze span { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

/* Chalkboard — the read-only board auto-reveal (A/B PiP) in review; authoring lives in the enricher. */
/* Board reveal — true A/B PiP. Sizes are driven by the player root's is-board-reveal / is-video-main classes
   so the SAME live <video> is resized between big + corner (never re-inited), swapped with the overhead board.
   Default (is-board-reveal): board big, film in the corner (on top). is-video-main: film big, board corner (on
   top). Board, video + bar share the stage's one stacking context so the corner element + bar layer right. */
.pond-rev-boardsvg {
    display: none; position: absolute; inset: 0.8rem; z-index: 1; --ring: var(--cmp-a);
    background: var(--cb-ice, #f4f8fd); border-radius: var(--radius);
    transition: inset 0.35s cubic-bezier(.2, .7, .2, 1), width 0.35s cubic-bezier(.2, .7, .2, 1);
}
.pond-player__stage.is-board-reveal .pond-rev-boardsvg { display: block; }
.pond-player__stage.is-board-reveal.is-video-main .pond-rev-boardsvg {
    inset: auto 0.8rem 0.8rem auto; width: 34%; aspect-ratio: 200 / 85; z-index: 6; cursor: pointer;
    box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.55), 0 0 0 0.18rem var(--ring);
}
/* the LIVE film: corner inset (on top, click to swap) while the board is big; fills the stage when it's main. */
.pond-player__stage.is-board-reveal .pond-player__video {
    --ring: var(--cmp-b);
    inset: auto 0.8rem 0.8rem auto; width: 30%; height: auto; aspect-ratio: 16 / 9; z-index: 5; cursor: pointer;
    border-radius: var(--radius);
    box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.55), 0 0 0 0.18rem var(--ring);
    transition: inset 0.35s cubic-bezier(.2, .7, .2, 1), width 0.35s cubic-bezier(.2, .7, .2, 1);
}
.pond-player__stage.is-board-reveal.is-video-main .pond-player__video {
    inset: 0; width: 100%; height: 100%; z-index: 1; border: none; border-radius: 0; box-shadow: none; cursor: default;
}
.pond-rev-boardbar {
    position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 8;
    display: flex; align-items: center; gap: 0.6rem; color: #fff;
    padding: 0.4rem 0.5rem 0.4rem 0.9rem; border-radius: calc(var(--radius) * 2);
    background: color-mix(in oklch, #000 62%, transparent); backdrop-filter: blur(6px);
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.45);
}
/* The A/B colours live only on .pond-cmp, so surface them on the reveal stage — the switch's active segment
   and the inset rings (board=teal, film=gold) inherit them here just like the compare player. */
.pond-player__stage.is-board-reveal { --cmp-a: var(--primary); --cmp-b: oklch(0.78 0.14 65); }
.pond-rev-boardswitch .pond-cmp__pick { text-transform: uppercase; }
.pond-rev-boardbar span { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.pond-rev-boardflash {
    position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 9; pointer-events: none;
    font: 800 2.6rem/1 var(--font-display), sans-serif; color: #fff; letter-spacing: 0.1em;
    text-shadow: 0 0.2rem 0.9rem rgba(0, 0, 0, 0.65); animation: pond-rev-boardflash 0.6s ease-out forwards;
}
@keyframes pond-rev-boardflash {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* The board editor opens as a modal over the enricher (escapes any container so the rink has room). */
.pond-cb-modal {
    position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
    padding: 2vh 2vw; background: color-mix(in oklch, #000 60%, transparent);
}
/* Reference frame in the editor — a still of the play the coach is drawing up (never stored). */
/* Reference frame PiP — floats BOTTOM-right over the rink; minimizes in place to a labeled chip. */
.pond-cb-refpip {
    position: absolute; bottom: 0.7rem; right: 0.7rem; z-index: 5; width: min(32%, 28rem);
    border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.55);
}
.pond-cb-refpip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
/* Hide/Show pill — a rounded rectangle like every other button; top-right of the frame. */
.pond-cb-refpipbtn {
    position: absolute; top: 0.4rem; right: 0.4rem; z-index: 1; cursor: pointer;
    padding: 0.32rem 0.7rem; display: inline-flex; align-items: center; border: none; border-radius: var(--radius);
    color: #fff; font: 700 0.72rem/1 var(--font-display), sans-serif; letter-spacing: 0.02em;
    background: color-mix(in oklch, #000 60%, transparent); backdrop-filter: blur(4px);
}
.pond-cb-refpipbtn:hover { background: var(--primary); color: var(--primary-foreground); }
/* Minimized: collapse in the bottom-right corner to just the pill (image hidden). */
.pond-cb-refpip.is-min { width: auto; border: none; box-shadow: none; overflow: visible; }
.pond-cb-refpip.is-min img { display: none; }
.pond-cb-refpip.is-min .pond-cb-refpipbtn {
    position: static; padding: 0.45rem 0.9rem; border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.4);
}
/* Scratch chalkboard launch pill in the review control bar (matches the old on-player look). */
.pond-player__chalkpill {
    height: 1.85rem; padding: 0 0.85rem; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: inherit;
    font: 600 0.74rem/1 var(--font-display), sans-serif; letter-spacing: 0.02em;
}
.pond-player__chalkpill:hover { border-color: var(--primary); color: var(--primary); }
.pond-cb {
    width: 80vw; height: 92vh; overflow: hidden; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem 1.1rem 1.15rem;
    background: var(--surface); border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: calc(var(--radius) * 1.5); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.5);
}
.pond-cb-head { display: flex; align-items: center; gap: 0.75rem; }
.pond-cb-headmain { display: flex; align-items: baseline; gap: 0.6rem; flex: 1; min-width: 0; }
.pond-cb-title { font: 800 1.05rem/1 var(--font-display), sans-serif; }
.pond-cb-anchor { color: var(--muted-foreground); font-size: 0.85rem; }
.pond-cb-surface { position: relative; flex: 1 1 auto; min-height: 0; display: flex; width: 100%; border-radius: var(--radius); overflow: hidden; background: #0b1220; }
.pond-cb-rink { display: block; width: 100%; height: 100%; touch-action: none; }   /* SVG preserveAspectRatio keeps the whole rink visible */
.pond-cb-tools { display: flex; flex-direction: column; gap: 0.7rem; }
.pond-cb-toolmain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.pond-cb-toolgroup { display: flex; align-items: center; gap: 0.35rem; }
.pond-cb-toolgroup .label-kicker { margin-right: 0.15rem; }
/* Undo / Clear / Save on their own row, split off from the tools by a full-width divider. */
.pond-cb-toolactions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem;
    padding-top: 0.7rem; border-top: 1px solid var(--border, rgba(255, 255, 255, 0.16));
}
/* Uniform toolbar buttons — one height, one min width across both rows. */
.pond-cb-tools button,
.pond-cb-tools .pond-cb-color {
    height: 2.25rem; box-sizing: border-box; margin: 0;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.pond-cb-tools button { min-width: 5rem; padding: 0 0.75rem; }
.pond-cb-color { width: 2.75rem; padding: 0; border: 1px solid var(--border, rgba(255, 255, 255, 0.15)); border-radius: var(--radius); background: none; cursor: pointer; }
/* Team puck buttons carry their team colour as a leading dot. */
.pond-cb-puck { display: inline-flex; align-items: center; gap: 0.4rem; }
.pond-cb-puck::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.pond-cb-puck.is-home::before { background: #e0483d; }
.pond-cb-puck.is-away::before { background: #2f6fed; }
.pond-cb-saved { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pond-cb-chip { display: inline-flex; align-items: center; gap: 0.2rem; border: 1px solid var(--border, rgba(255, 255, 255, 0.1)); border-radius: var(--radius); background: var(--surface-2); }
.pond-cb-chip.is-editing { border-color: var(--primary); }
.pond-cb-chipopen { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.55rem; background: none; border: none; color: inherit; cursor: pointer; font-size: 0.85rem; }
.pond-cb-chipopen .tnum { color: var(--muted-foreground); }

/* ============================================================================================
   Coach dashboard ("This week in the film room") — hero + two-up panels + stat tiles + saved
   clips + season/club, ported from ux/mocks/routes/dashboard.tsx.
   ============================================================================================ */
.pond-panel-headlink { margin-left: auto; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary); white-space: nowrap; }
.pond-panel-headlink:hover { color: #fff; }
.pond-action--sm { padding: 0.35rem 0.7rem; font-size: 0.72rem; letter-spacing: 0.08em; }

/* Hero — the next review session, over a layered brand backdrop. */
.pond-dash-hero { position: relative; overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); background: var(--surface); min-height: 9.5rem; }
.pond-dash-hero__photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.22; filter: saturate(0.65); }
.pond-dash-hero__grad1 { position: absolute; inset: 0; background: linear-gradient(to right, var(--background) 8%, color-mix(in oklch, var(--background) 90%, transparent) 45%, color-mix(in oklch, var(--background) 55%, transparent)); }
.pond-dash-hero__grad2 { position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in oklch, var(--primary) 18%, transparent), transparent 55%, color-mix(in oklch, var(--secondary) 20%, transparent)); }
.pond-dash-hero__bar { position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(to bottom, var(--primary), var(--secondary)); }
.pond-dash-hero__body { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; }
.pond-dash-hero__kick { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.pond-dash-hero__title { font: 800 1.55rem/1.1 var(--font-display), sans-serif; }
.pond-dash-hero__meta { margin-top: 0.35rem; color: var(--muted-foreground); font-size: 0.9rem; }
.pond-dash-hero__cta { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pond-dash-comingup { border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklch, var(--surface-2) 80%, transparent); padding: 0.75rem 0.9rem; min-width: 11rem; }
.pond-dash-comingup__n { margin-top: 0.2rem; font: 800 1.9rem/1 var(--font-display), sans-serif; color: var(--primary); }
.pond-dash-comingup__sub { margin-top: 0.2rem; font-size: 0.72rem; color: var(--muted-foreground); }

/* Layout grids. */
.pond-dash-grid2 { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
.pond-dash-grid3 { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; align-items: start; }
.pond-dash-stats { margin-top: 1rem; }
@media (min-width: 60rem) {
    .pond-dash-grid2 { grid-template-columns: 1fr 1fr; }
    .pond-dash-grid3 { grid-template-columns: 2fr 1fr; }
}

/* Scheduled sessions. */
.pond-dash-sessions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.pond-dash-session { border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklch, var(--surface-2) 55%, transparent); padding: 0.9rem 1rem; transition: border-color 0.15s ease; }
.pond-dash-session:hover { border-color: var(--primary); }
.pond-dash-session__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.pond-dash-session__tags { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; font-size: 0.78rem; }
.pond-dash-session__title { font-weight: 700; }
.pond-dash-session__meta { font-size: 0.78rem; }
.pond-dash-session__cta { display: flex; gap: 0.4rem; }
.pond-dash-cliprows { list-style: none; margin: 0.6rem 0 0; padding: 0.5rem 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.pond-dash-cliprow { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; font-size: 0.85rem; }
.pond-dash-cliprow + .pond-dash-cliprow { border-top: 1px solid var(--border); }
.pond-dash-cliprow__n { width: 1.1rem; color: var(--muted-foreground); }
.pond-dash-cliprow__tag { font-weight: 600; }
.pond-dash-cliprow__time { font-size: 0.78rem; color: var(--muted-foreground); }
.pond-dash-cliprow__note { margin-left: auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; color: var(--muted-foreground); }

/* Games to cut up. */
.pond-dash-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; padding: 0.4rem 0.55rem; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklch, var(--surface-2) 45%, transparent); }
.pond-dash-scope__sel { height: 2rem; padding-block: 0; width: auto; min-width: 8rem; }
.pond-dash-scope__count { margin-left: auto; font-size: 0.78rem; }
.pond-dash-games { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.pond-dash-game { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklch, var(--surface-2) 55%, transparent); padding: 0.7rem 0.8rem; color: inherit; transition: border-color 0.15s ease; }
a.pond-dash-game:hover { border-color: var(--primary); }
.pond-dash-game__name { display: block; font-weight: 700; }
.pond-dash-game__meta { display: block; font-size: 0.78rem; }
.pond-dash-game--soon { border-style: dashed; color: var(--muted-foreground); padding: 0.5rem 0.8rem; }
.pond-dash-game__status { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.pond-dash-uploadlink { display: inline-block; margin-top: 0.75rem; }

/* Saved clips + season/club. */
.pond-dash-clips { display: grid; gap: 0.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .pond-dash-clips { grid-template-columns: 1fr 1fr; } }
.pond-dash-clip { display: block; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklch, var(--surface-2) 55%, transparent); padding: 0.7rem; color: inherit; transition: border-color 0.15s ease; }
.pond-dash-clip:hover { border-color: var(--primary); }
.pond-dash-clip__time { font-size: 0.85rem; color: var(--primary); }
.pond-dash-clip__title { margin-top: 0.2rem; font-weight: 600; font-size: 0.9rem; }
.pond-dash-clip__note { margin-top: 0.2rem; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pond-dash-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pond-dash-link { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklch, var(--surface-2) 55%, transparent); padding: 0.55rem 0.75rem; color: inherit; font-weight: 600; font-size: 0.9rem; transition: border-color 0.15s ease; }
.pond-dash-link:hover { border-color: var(--primary); }
.pond-dash-link .pond-muted { font-weight: 400; font-size: 0.78rem; }

/* Dashboard anchors are cards / kicker-links, never underlined body text. */
.pond-panel-headlink, .pond-dash-uploadlink, .pond-dash-game, .pond-dash-clip, .pond-dash-link { text-decoration: none; }
/* Kill the `.pond-panel-body .pond-action--solid { margin-top: 0.75rem }` bleed inside dashboard cards,
   so the solid button (Launch / Cut up) lines up with its row instead of sitting shoved down — this was
   the mismatched Launch/Edit sizing. Keep the two session CTAs centred and evenly sized. */
.pond-dash-session__cta .pond-action, .pond-dash-game .pond-action { margin-top: 0; }
.pond-dash-session__cta { align-items: center; }
.pond-dash-session__cta .pond-action--sm { min-width: 4.5rem; }
