/* css/main/photos-shooters-and-settings.css — part 17/30 of the app styles (was css/main.css; loaded in this order by index.html). */
      /* ─────────────────────────────────────────────
         FOTOS — picker placeholder, edit bar, fullscreen viewer
         ───────────────────────────────────────────── */
      .photo-pick-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--card);
        border: 1.5px dashed var(--border);
        border-radius: 10px;
        color: var(--muted);
        font-size: 14px;
        padding: 14px;
        cursor: pointer;
        transition: border-color 0.15s, color 0.15s;
      }
      .photo-pick-btn:hover { color: var(--text); border-color: var(--accent); }
      .photo-pick-btn:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .photo-pick-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
      .photo-preview {
        width: 100%;
        height: 200px;
        border-radius: 6px;
        display: block;
        object-fit: contain;
        background: var(--surface2);
        cursor: zoom-in;
      }
      .photo-edit-bar {
        display: flex;
        gap: 8px;
        margin-top: 8px;
      }
      .photo-edit-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 6px;
        color: var(--text);
        font-size: 13px;
        padding: 9px 12px;
        cursor: pointer;
        transition: background 0.15s;
      }
      .photo-edit-btn:active { background: var(--hover-strong); }
      .photo-edit-btn:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .photo-edit-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
      .photo-edit-btn-danger { color: var(--danger); }
      .photo-edit-btn-danger:focus-visible { outline-color: var(--danger); }
      .photo-viewer {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: #000;
        flex-direction: column;
      }
      .photo-viewer-img {
        flex: 1;
        min-height: 0;
        width: 100%;
        object-fit: contain;
      }
      .photo-viewer-bar {
        padding: 16px;
        flex-shrink: 0;
      }
      /* ⛔ FIXED COLOR, NOT A THEME TOKEN — and this is why, which is not obvious.
         The viewer has `background: #000` ALWAYS: it does not change with the theme, because
         a photo is viewed on black whatever theme is set. But the
         text came from `var(--text)`, which does change — and in LIGHT theme that is
         #1a1a1a, i.e. **black on black**: a grey pill with text that
         cannot be read. Contrast ~1.1:1.
         ⚠️ And it was on TWO screens, notes and weapons, because both use this
         same viewer. Santi saw it on 2026-08-30 on his Android: *«it shows with a
         grey background and text that is practically unreadable»* — and asked whether the
         style might be in more places. The whole file was swept: it was the only one.
         ⭐ The rule that comes out of this and that a guard now watches: **a
         surface that does NOT change with the theme cannot take its text color from
         a token that DOES change.** `tests/unit-fondo-fijo-texto-fijo.test.js`. */
      .photo-viewer-close {
        display: block;
        width: 100%;
        background: rgba(255, 255, 255, 0.15);
        border: 1.5px solid rgba(255, 255, 255, 0.35);
        border-radius: 10px;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        font-family: "Inter", sans-serif;
        padding: 14px;
        cursor: pointer;
        letter-spacing: 0.3px;
      }
      .photo-viewer-close:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }

      /* ─────────────────────────────────────────────
         SHOOTERS — main 2x2 buttons, info card, sub-views
         ───────────────────────────────────────────── */
      .tir-main-grid {
        position: relative;
        padding: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
        flex: 0 0 auto;
      }
      .tir-main-btn {
        position: relative;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 20px 10px;
        color: var(--text);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        min-height: 120px;
        justify-content: center;
        font-family: "Oswald", sans-serif;
        font-size: 14px;
        letter-spacing: 1px;
        cursor: pointer;
        transition: background 0.15s, border-color 0.15s, transform 0.1s;
      }
      .tir-main-btn:active { transform: scale(0.98); }
      .tir-main-btn:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .tir-main-btn .tir-main-icon {
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .tir-main-btn.is-soon { opacity: 0.7; }
      .tir-soon-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 9px;
        color: var(--accent-fg);
        background: var(--accent);
        padding: 2px 6px;
        border-radius: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
      }
      .tir-info-wrap {
        max-width: 520px;
        margin: 0 auto;
        padding: 0 16px 16px;
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
      }
      .tir-info-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 16px 18px;
        color: var(--text);
        font-family: "Inter", sans-serif;
        font-size: 14px;
        line-height: 1.55;
        flex: 1;
      }
      .tir-info-card p { margin: 0 0 12px; }
      .tir-info-card p:last-child { margin: 0; }
      /* ⛔ NO RULE BELOW. This class is used by a SINGLE screen —Collaborators—
         and it was the only filter bar in the app with a separator line: the one in
         Competitions (`.cv-filter-bar`) never had one. A rule that appears
         in only one place separates nothing, it splits the screen in two (Santi,
         2026-08-21, reviewing all the windows). Its own background already
         distinguishes it from the list below. */
      .tir-sub-header {
        flex-shrink: 0;
        background: var(--bg);
      }
      .tir-sub-header-inner {
        padding: 14px 16px 10px;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
      }
      .tir-sub-title {
        margin: 0 0 10px;
        font-family: "Oswald", sans-serif;
        font-size: 18px;
        letter-spacing: 2px;
        color: var(--accent);
        text-align: center;
        text-transform: uppercase;
      }

      /* Reusable card for settings views (backup, security, etc.) */
      .settings-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 14px;
      }
      .settings-card-title {
        font-family: "Oswald", sans-serif;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1px;
        color: var(--accent);
        margin-bottom: 6px;
      }
      .settings-card-hint {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.55;
        margin-bottom: 12px;
      }
      .settings-card-body {
        font-size: 13px;
        color: var(--text);
        line-height: 1.6;
      }
      /* ⚠️ The text was a FIXED `#ff6b6b`, i.e. the same in both themes while the
         background does change: in light theme it was pale coral on almost white and
         measured 2.32:1 (2026-08-22, ticket #109). With the token it goes to 5.44:1 in light
         and 5.16:1 in dark — this second one is the worst case in the whole app for
         `--danger` and is the one that set its value. */
      .settings-banner-danger {
        padding: 12px 14px;
        border: 1px solid var(--danger);
        background: rgba(192, 57, 43, 0.12);
        color: var(--danger);
        border-radius: 10px;
        font-family: "Oswald", sans-serif;
        font-weight: 700;
        letter-spacing: 0.5px;
        font-size: 13px;
        text-align: center;
        margin-bottom: 14px;
      }
      .settings-inline-warn {
        font-size: 12px;
        color: var(--danger);
        background: rgba(192, 57, 43, 0.1);
        border-radius: 6px;
        padding: 10px 12px;
        line-height: 1.5;
        margin-bottom: 12px;
      }
      .settings-inline-info {
        padding: 14px 16px;
        border: 1px solid rgba(66, 133, 244, 0.55);
        border-radius: 10px;
        background: rgba(66, 133, 244, 0.1);
        color: var(--text);
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 14px;
      }
      /* ⛔ `.btn-danger-outline` WAS REMOVED on 2026-08-20: it was a second way
         of saying the same thing, with another font (Oswald 14/700 versus Inter 13/600)
         and another red. Now the outlined one IS `.btn-danger`, and its three uses
         have been changed. No compatibility layer: if this class shows up again,
         it paints nothing and the `unit-clases-css-existen` guard catches it. */

      /* Top hint bar in Notes/Modalities-type views */
      /* Help under a form field: what it is for, or that it is optional.
         Born with the address field of the shooting range (2026-08-08), which stopped
         being mandatory and needed to explain what it is filled in for then. */
      .form-hint {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.5;
        color: var(--muted);
      }
      .page-hint {
        padding: 6px 16px;
        font-size: 12px;
        line-height: 1.55;
        letter-spacing: 0.2px;
        color: var(--muted);
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
      }

      /* Secondary icon-only button for filter bars/toolbar.
         38px square with subtle border; supports focus-visible. */
      .btn-icon-secondary {
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--card);
        color: var(--muted);
        border: 1px solid var(--border);
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
      }
      .btn-icon-secondary:active { background: var(--hover-strong); }
      .btn-icon-secondary:hover { color: var(--text); }
      .btn-icon-secondary:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .btn-icon-secondary svg { width: 18px; height: 18px; }
      /* In .date-filter-row the inputs with a label on top (Month/Year) raise
         the row height; the Clear button uses align-self:flex-end to
         stick to the bottom, the icon-buttons must do the same or they end up
         floating at the top. */
      .date-filter-row .btn-icon-secondary { align-self: flex-end; }

      /* Section title in the header (replaces "by Sapemaib") */
      .section-title-bar {
        font-size: 10px;
        color: var(--muted);
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-top: 2px;
      }


      /* «Modo desarrollo» (js/views/shooters/debug-view.js): the development
         tools, one per line; the green dot is the same as the menu entry's. */
      .debug-tools {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 14px 16px 24px;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
      }
      .debug-tools-title {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 14px;
        font-family: 'Oswald', sans-serif;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 1px;
        color: var(--accent);
      }
      .debug-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--success);
        box-shadow: 0 0 6px var(--success);
      }
      .debug-tools-list {
        display: grid;
        gap: 8px;
      }
