/* =============================================================================
   Practice — drill library + practice plan builder.

   ⛔ LIFTED, NOT REINTERPRETED. Every value below comes from the approved
   direction — design-directions/athlete-app.html ("Athlete App Redesign 23 ·
   Volt Day") and platform/css/volt-day.css. The first cut of this file invented
   a flat near-black palette out of generic tokens and read as vibe-coded, which
   is exactly what the house law about lifting the mock exists to prevent.

   The rules of the skin, in their own words:
   - Volt is the ONLY brand accent and only ever a FILL with dark text.
     NEVER volt text on a light surface.
   - Saira Condensed display · Rajdhani UI · Orbitron NUMERALS ONLY · Manrope sub.
   - Daylight ladder: canvas #eef1f5, surface #ffffff, elevated #f2f4f8.
   - Cards 14px. Device/panel shells 20-26px. Pills 999px. Labels uppercase at
     1.2-1.4px letter-spacing in ink-faint.
   ========================================================================== */

:root {
    /* — lifted verbatim from design-directions/athlete-app.html — */
    --canvas: #eef1f5;
    --surface: #ffffff;
    --surface-elevated: #f2f4f8;
    --hover: #fafbfd;
    --border: #e2e6ec;
    --border-strong: #c9d0da;
    --ink: #111316;
    --ink-muted: #5b6472;
    --ink-faint: #97a0ad;
    --volt: #22c55e;   /* the coach accent: grass green since Oct 10 2026 (it was volt). The name stays. */
    --volt-deep: #16a34a;
    --volt-glow: rgba(34, 197, 94, 0.35);
    --on-volt: #05070c;
    --live: #d92d20;
    --turf: #16a34a;
    --gold: #d97706;
    --info: #2563eb;
    --plate-mix: #0a0d14;
    --link: #4c7a00;
    --on-ink: var(--surface); /* text on an ink fill flips with the theme */

    --font-display: 'Saira Condensed', system-ui, sans-serif;
    --font-ui: 'Rajdhani', system-ui, sans-serif;
    --font-data: 'Orbitron', monospace;
    --font-sub: 'Manrope', system-ui, sans-serif;

    --pr-rail-w: 264px;
    --r-card: 14px;
    --r-shell: 20px;
    --r-sm: 12px;
    --r-xs: 8px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* A designed dark, not flat black: the daylight ladder inverted with the same
   relationships, so contrast survives. The accent stays a fill with dark text.
   CHARCOAL since Oct 10 2026 (the coach night ladder, css/coach-day.css) —
   it was a navy ladder. */
:root[data-theme="dark"] {
    --canvas: #0b0c0e;
    --surface: #141619;
    --surface-elevated: #1c1f23;
    --hover: #24282d;
    --border: #2a2e34;
    --border-strong: #3c3f44;
    --ink: #e6e8eb;
    --ink-muted: #9aa1ab;
    --ink-faint: #6f757f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--volt); color: var(--on-volt); }

.pr-shell {
    display: grid;
    grid-template-columns: var(--pr-rail-w) 1fr;
    height: 100vh;
    height: 100dvh;
    padding: 14px;
    gap: 14px;
}

/* ── RAIL ─────────────────────────────────────────────────────────────── */
.pr-rail {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-shell);
    overflow-y: auto;
}

.pr-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-faint);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.pr-back:hover { color: var(--ink); }
.pr-back i, .pr-back svg { width: 15px; height: 15px; }

.pr-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    line-height: 0.95;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 8px;
    color: var(--ink);
}

.pr-nav { display: flex; flex-direction: column; gap: 4px; }

.pr-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    color: var(--ink-muted);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}
.pr-nav-item:hover { background: var(--hover); color: var(--ink); }
/* Active = ink fill with a volt bottom edge. The mock's own pattern
   (.persona button.on) — never volt text. */
.pr-nav-item.active {
    background: var(--ink);
    color: var(--on-ink);
    box-shadow: inset 0 -2px 0 var(--volt);
}
.pr-nav-item.active .pr-nav-count { background: rgba(255,255,255,0.16); color: var(--on-ink); }
.pr-nav-item i, .pr-nav-item svg { width: 17px; height: 17px; flex: none; }
.pr-nav-label { flex: 1; }
.pr-nav-count {
    font-family: var(--font-data);          /* numerals only */
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--surface-elevated);
    color: var(--ink-faint);
}

.pr-rail-section { display: flex; flex-direction: column; gap: 8px; }
.pr-rail-foot { margin-top: auto; }

.pr-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.pr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-chip {
    padding: 6px 11px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}
.pr-chip:hover { color: var(--ink); border-color: var(--border-strong); }
.pr-chip.active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ── BUTTONS ──────────────────────────────────────────────────────────── */
.pr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.2s var(--ease), filter 0.2s ease, background 0.2s ease;
}
.pr-btn:active { transform: translateY(1px); }
.pr-btn i, .pr-btn svg { width: 16px; height: 16px; }
.pr-btn--block { width: 100%; }
/* Volt as a FILL, dark text — the only way volt is allowed to appear. */
.pr-btn--primary {
    background: linear-gradient(135deg, var(--volt), var(--volt-deep));
    color: var(--on-volt);
    box-shadow: 0 1px 0 rgba(17,19,22,0.06);
}
.pr-btn--primary:hover { filter: brightness(1.04); }
.pr-btn--ghost {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--ink-muted);
}
.pr-btn--ghost:hover { color: var(--ink); background: var(--hover); }

.pr-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    color: var(--ink-muted);
    transition: all 0.2s ease;
}
.pr-icon-btn:hover { color: var(--ink); border-color: var(--border-strong); background: var(--hover); }
.pr-icon-btn i, .pr-icon-btn svg { width: 17px; height: 17px; }

.pr-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    color: var(--ink-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.pr-mini-btn:hover { color: var(--ink); border-color: var(--border-strong); background: var(--hover); }
.pr-mini-btn i, .pr-mini-btn svg { width: 12px; height: 12px; }

/* ── MAIN / VIEWS ─────────────────────────────────────────────────────── */
.pr-main { position: relative; overflow: hidden; min-width: 0; }
.pr-view {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}
.pr-view.active { display: flex; }

.pr-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 2px 18px;
}
.pr-topbar--editor { align-items: center; padding-bottom: 14px; }

.pr-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pr-sub {
    margin-top: 5px;
    font-family: var(--font-sub);
    font-size: 13px;
    color: var(--ink-faint);
}

.pr-title-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 2px;
    outline: none;
    transition: border-color 0.2s ease;
}
.pr-title-input:focus { border-bottom-color: var(--volt-deep); }
.pr-title-input::placeholder { color: var(--ink-faint); }

.pr-topbar-actions { display: flex; align-items: center; gap: 9px; }
.pr-save-state {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink-faint);
    min-width: 56px;
    text-align: right;
}

.pr-search { position: relative; display: flex; align-items: center; }
.pr-search i, .pr-search svg {
    position: absolute; left: 11px;
    width: 15px; height: 15px;
    color: var(--ink-faint);
    pointer-events: none;
}
.pr-search input {
    min-height: 44px;
    width: 250px;
    padding: 0 12px 0 33px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}
.pr-search input:focus { border-color: var(--border-strong); }
.pr-search input::placeholder { color: var(--ink-faint); }

/* ── CARD GRID ────────────────────────────────────────────────────────── */
.pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    align-content: start;
    padding-bottom: 20px;
}

/* The mock's card: white surface, hairline border, 14px. No gradients. */
.pr-card {
    position: relative;      /* anchors the delete button */
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    overflow: hidden;
    transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
.pr-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: 0 6px 20px rgba(17, 19, 22, 0.08);
}
.pr-card-thumb {
    aspect-ratio: 16 / 10;
    background: var(--plate-mix);
    border-bottom: 1px solid var(--border);
    display: block;
    width: 100%;
}
.pr-card-body { padding: 11px 13px 13px; }
.pr-card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.pr-card-meta { display: flex; align-items: center; gap: 7px; }
.pr-card-tag {
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.pr-card-mins {
    font-family: var(--font-data);
    font-size: 10px;
    color: var(--ink-faint);
}

/* ── EMPTY STATE ──────────────────────────────────────────────────────── */
.pr-empty {
    margin: auto;
    max-width: 360px;
    text-align: center;
    color: var(--ink-faint);
    font-family: var(--font-sub);
}
.pr-empty i, .pr-empty svg { width: 40px; height: 40px; opacity: 0.5; margin-bottom: 12px; }
.pr-empty h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 6px;
}
.pr-empty p { margin-bottom: 16px; font-size: 13px; line-height: 1.55; }

/* ── EDITOR ───────────────────────────────────────────────────────────── */
.pr-editor-body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 14px;
    flex: 1;
    min-height: 0;
    padding-bottom: 14px;
}
.pr-canvas-col { display: flex; flex-direction: column; min-width: 0; gap: 12px; }

.pr-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
}
.pr-tool-group { display: flex; align-items: center; gap: 8px; }
.pr-tool-spacer { flex: 1; }
.pr-tool-divider { width: 1px; align-self: stretch; background: var(--border); }
.pr-tool-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* Joined segmented control — never a row of loose pills (house law). */
.pr-seg {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    overflow: hidden;
    background: var(--surface-elevated);
}
.pr-seg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 11px;
    border-right: 1px solid var(--border);
    color: var(--ink-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}
.pr-seg-btn:last-child { border-right: none; }
.pr-seg-btn:hover { color: var(--ink); background: var(--hover); }
.pr-seg-btn.active {
    background: var(--ink);
    color: var(--on-ink);
    box-shadow: inset 0 -2px 0 var(--volt);
}
.pr-seg-btn svg { width: 28px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pr-seg-btn svg polygon { fill: currentColor; stroke: none; }

.pr-palette { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pr-pal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.pr-pal-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.pr-pal-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--on-ink);
    box-shadow: inset 0 -2px 0 var(--volt);
}

/* The field stays dark in every theme — it is a pitch, not a surface.
   Same reasoning the mock keeps its broadcast plates at --plate-mix. */
.pr-canvas-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plate-mix);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    overflow: hidden;
    padding: 10px;
}
/* ⛔ object-fit required — a canvas defaults to `fill` and stretches the bitmap
   when its box goes off-ratio (the Call This Play bug, Aug 13 2026). */
#drillCanvas {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--r-sm);
    touch-action: none;
    cursor: crosshair;
}
.pr-canvas-hint {
    font-family: var(--font-sub);
    font-size: 11px;
    color: var(--ink-faint);
    text-align: center;
}

/* ── CARD COLUMN ──────────────────────────────────────────────────────── */
.pr-card-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding: 16px 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
}
.pr-field-row { display: grid; grid-template-columns: 1fr 84px; gap: 9px; }
.pr-field { display: flex; flex-direction: column; gap: 5px; }

/* PROSE, not chrome. Rajdhani is right for labels, buttons and chips; it is the
   wrong face for sentences a coach reads at speed on a field — semi-condensed
   forms and tight apertures cost legibility at 13-14px. Manrope is already the
   mock's --font-sub, so this is the approved ladder rather than a new choice:
   Saira display · Rajdhani chrome · Manrope prose · Orbitron numerals. */
.pr-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    color: var(--ink);
    font-family: var(--font-sub);
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.pr-input:focus { border-color: var(--border-strong); background: var(--surface); }
.pr-input::placeholder { color: var(--ink-faint); }
/* Room to actually write. These were capped at 110-150px — two lines of a real
   setup step — so a coach could not see what they had just typed. */
.pr-textarea {
    resize: vertical;
    line-height: 1.55;
    overflow-y: auto;
    min-height: 78px;
    max-height: 260px;
}

.pr-section { display: flex; flex-direction: column; gap: 8px; }
.pr-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pr-section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--ink);
}

.pr-steps, .pr-points { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pr-row { display: flex; align-items: flex-start; gap: 7px; }
.pr-row-num {
    flex: none;
    width: 21px; height: 21px;
    margin-top: 9px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 5px;
    background: var(--ink);
    color: var(--on-ink);
    font-family: var(--font-data);          /* numerals only */
    font-size: 9px;
}
.pr-row-bullet {
    flex: none;
    width: 6px; height: 6px;
    margin-top: 17px;
    border-radius: 50%;
    background: var(--volt-deep);
}
.pr-row textarea { flex: 1; min-height: 78px; max-height: 240px; }
.pr-row-del {
    flex: none;
    margin-top: 9px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 5px;
    color: var(--ink-faint);
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.pr-row:hover .pr-row-del { opacity: 1; }
.pr-row-del:hover { color: var(--live); }
.pr-row-del svg { width: 13px; height: 13px; }

.pr-equipment { display: flex; flex-direction: column; gap: 7px; }
.pr-equip-row { display: grid; grid-template-columns: 1fr 60px 22px; gap: 6px; align-items: center; }

/* ── TOAST ────────────────────────────────────────────────────────────── */
.pr-toast {
    position: fixed;
    left: 50%; bottom: 24px;
    transform: translateX(-50%) translateY(12px);
    padding: 10px 18px;
    background: var(--ink);
    color: var(--on-ink);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 26px rgba(17, 19, 22, 0.25), inset 0 -2px 0 var(--volt);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
    /* ABOVE THE MODALS. Install raises toasts from inside the block sheet
       ("Could not remove that block") and .ip-modal is z-index 10020
       (css/install.css) — at 9000 the message painted behind the sheet that
       caused it. A toast is the topmost thing on the page or it is nothing. */
    z-index: 10030;
}
.pr-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) { .pr-editor-body { grid-template-columns: 1fr 330px; } }
@media (max-width: 1024px) {
    :root { --pr-rail-w: 214px; }
    .pr-shell { padding: 10px; gap: 10px; }
    .pr-search input { width: 180px; }
    .pr-title { font-size: 25px; }
}
@media (orientation: portrait) and (max-width: 1024px) {
    .pr-editor-body { grid-template-columns: 1fr; }
    .pr-card-col { overflow: visible; }
}

/* ── LIVE ROUTE AFFORDANCE ────────────────────────────────────────────
   "How do I end the route?" was the first thing asked of the drawing model
   (Carlos, Aug 13 2026) — because finishing was an unlabelled gesture (tap the
   last dot) with nothing on screen to say so. A visible bar while a route is
   live states what is happening AND gives an explicit way out. Tap-the-dot and
   Esc still work; this makes them discoverable rather than folklore. */
.pr-finish-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 8px 10px 8px 14px;
    background: var(--ink);
    border-radius: var(--r-sm);
    box-shadow: inset 0 -2px 0 var(--volt);
    animation: prFinishIn 0.2s var(--ease);
}
.pr-finish-bar.show { display: flex; }
.pr-finish-text {
    font-family: var(--font-sub);
    font-size: 12px;
    font-weight: 600;
    color: var(--on-ink);
    letter-spacing: 0.2px;
}
.pr-btn--sm { min-height: 34px; padding: 0 12px; font-size: 11px; }
@keyframes prFinishIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }


/* ── BRAND ────────────────────────────────────────────────────────────
   House rule: logos are never in boxes — raw, big, drop-shadowed. */
.pr-brand { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pr-brand img {
    height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(17, 19, 22, 0.22));
}

/* The coach's own team, given presence rather than a stamp in a corner:
   crest at size, name in the display face, volt hairline beneath. */
.pr-team {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    background: linear-gradient(180deg, var(--surface-elevated), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    position: relative;
    overflow: hidden;
}
.pr-team::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--volt), transparent);
}
.pr-team img {
    width: 40px; height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(17, 19, 22, 0.28));
    flex: none;
}
.pr-team-meta { min-width: 0; }
.pr-team-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pr-team-sub {
    font-family: var(--font-sub);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ⛔ A `display` rule beats the `hidden` attribute, so the team badge rendered
   as a broken crest before its data arrived. Any element that ships hidden and
   is later revealed needs this guard. */
.pr-team[hidden] { display: none; }

/* Erase is a MODE, so it has to look engaged — an unlabelled toggle that gives
   no feedback is how you delete something you meant to keep. */
.pr-icon-btn.is-on {
    background: var(--live);
    border-color: var(--live);
    color: #fff;
}
.pr-icon-btn.is-on:hover { background: var(--live); color: #fff; }


/* Delete sits on the card, revealed on hover/focus. The whole card opens the
   drill, so this stays quiet until the coach is actually on the card — and it
   is always reachable by keyboard, where hover does not exist. */
.pr-card-del {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--surface);
    color: var(--ink-faint);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pr-card:hover .pr-card-del,
.pr-card-del:focus-visible { opacity: 1; }
.pr-card-del:hover { color: var(--live); border-color: var(--live); }
.pr-card-del i { width: 15px; height: 15px; }

/* Armed state for the two-step delete: the button stays visible and reads as
   live, so a coach can see the tap registered and that the next one commits. */
.pr-card-del.is-armed {
    opacity: 1;
    color: var(--surface);
    background: var(--live);
    border-color: var(--live);
}
