:root {
      /* Year-3000 ice glass — shared with jamesha.agency */
      --bg-deep: #e4ecf6;
      --bg-panel: #edf3fb;
      --bg-card: #f7fafd;
      --bg-elevated: #ffffff;
      --border: #b6c7db;
      --border-bright: #8eabc8;
      --text: #1a2a3d;
      --text-dim: #3d536b;
      --text-muted: #5a718a;
      --text-bright: #0a1628;
      --accent: #0090c8;
      --accent-dim: #0077a8;
      --accent-deep: #005f88;
      --accent-magenta: #c026d3;
      --accent-gold: #b8860b;
      --danger: #c0392b;
      --success: #0d9f5f;
      --info: #0090c8;
      --classified-red: #9b1c1c;
      --stamp-red: #c0392b;
      --paws-green: #3d8b6e;
      --btn-ink: #041018;
      --mono: 'Share Tech Mono', monospace;
      --sans: 'Barlow Condensed', sans-serif;
    }

    /* Cross-site uplink stamp (Phase 3) — light ice glass (matches jamesha) */
    .uplink-stamp {
      position: fixed;
      z-index: 110;
      bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
      left: max(0.85rem, env(safe-area-inset-left, 0px));
      max-width: min(22rem, calc(100vw - 1.5rem));
      font-family: var(--mono);
      font-size: 0.62rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text);
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid rgba(0, 144, 200, 0.4);
      border-left: 3px solid var(--accent);
      padding: 0.55rem 0.7rem 0.55rem 0.75rem;
      box-shadow: 0 10px 32px rgba(20, 50, 90, 0.15);
      pointer-events: auto;
      backdrop-filter: blur(12px);
    }
    .uplink-stamp-kicker {
      display: block;
      color: var(--accent-deep, #005f88);
      font-size: 0.55rem;
      letter-spacing: 0.14em;
      margin-bottom: 0.2rem;
      font-weight: 700;
    }
    .uplink-stamp-msg {
      display: block;
      line-height: 1.4;
      color: var(--text);
      font-size: 0.68rem;
      letter-spacing: 0.04em;
      text-transform: none;
    }
    .uplink-stamp-dismiss {
      margin-top: 0.45rem;
      font-family: var(--mono);
      font-size: 0.55rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text);
      background: #ffffff;
      border: 1px solid var(--border-bright);
      padding: 0.28rem 0.5rem;
      cursor: pointer;
      font-weight: 600;
      min-height: 32px;
    }
    .uplink-stamp-dismiss:hover {
      color: var(--text-bright);
      border-color: var(--accent);
      background: var(--bg-panel);
    }

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--sans);
      font-size: 18px;
      line-height: 1.6;
      color: var(--text);
      background-color: var(--bg-deep);
      background-image:
        radial-gradient(ellipse 90% 60% at 10% -10%, rgba(0, 200, 255, 0.2), transparent 55%),
        radial-gradient(ellipse 70% 50% at 95% 10%, rgba(192, 38, 211, 0.1), transparent 50%),
        linear-gradient(180deg, #eef4fb 0%, #e4ecf6 45%, #dce6f2 100%);
      background-attachment: fixed;
      min-height: 100vh;
      overflow-x: hidden;
    }

    .scanlines {
      position: fixed; inset: 0; pointer-events: none; z-index: 9999;
      background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,100,160,0.03) 3px, rgba(0,100,160,0.03) 4px);
      opacity: 0.65;
    }

    .grid-overlay {
      position: fixed; inset: 0; pointer-events: none; z-index: 0;
      background-image: linear-gradient(rgba(0,120,180,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,120,180,0.07) 1px, transparent 1px);
      background-size: 40px 40px;
    }

    a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
    a:hover { color: var(--text-bright); text-decoration: underline; }

    .site-header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(247,250,253,0.88); backdrop-filter: blur(16px) saturate(1.2);
      border-bottom: 1px solid var(--border);
      box-shadow:
        0 1px 0 rgba(255,255,255,0.7),
        0 8px 28px rgba(30,70,120,0.08);
    }

    .header-inner {
      max-width: 1200px; margin: 0 auto; padding: 0.55rem 1.25rem;
      display: flex; align-items: center; gap: 0.85rem 1.1rem; flex-wrap: nowrap;
    }

    .logo { display: flex; align-items: center; gap: 0.65rem; color: inherit; -webkit-user-select: none; user-select: none; flex-shrink: 0; min-width: 0; }
    .logo-text { display: flex; flex-direction: column; min-width: 0; }
    .logo-emblem {
      width: 42px; height: 42px; object-fit: contain; flex-shrink: 0;
      border: 1px solid var(--border-bright);
      filter: drop-shadow(0 0 8px rgba(107, 159, 138, 0.45));
      border-radius: 2px;
    }
    .logo-mark { font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.12em; color: var(--paws-green); font-weight: 700; line-height: 1.15; }
    .logo-sub { font-size: 0.58rem; letter-spacing: 0.06em; color: var(--text-dim); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11.5rem; }

    .hero-patch {
      width: 100%; max-width: 260px;
      margin: 0 auto;
      text-align: center;
      padding: 0.85rem;
      background: linear-gradient(165deg, #ffffff, #f0f5fb);
      border: 1px solid var(--border);
      border-radius: 6px;
      box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 10px 28px rgba(20, 50, 90, 0.1);
    }
    .patch-hero {
      display: block;
      width: 100%;
      height: auto;
      border: 1px solid var(--border);
      border-radius: 4px;
      box-shadow: 0 6px 18px rgba(20, 50, 90, 0.12);
      background: #e8eef6;
    }
    .patch-caption {
      font-family: var(--mono);
      font-size: 0.6rem;
      letter-spacing: 0.15em;
      color: #2f7a5c;
      margin-top: 0.55rem;
      text-transform: uppercase;
      font-weight: 700;
      opacity: 1;
    }

    .main-nav {
      display: flex;
      gap: 0.2rem 0.75rem;
      flex: 1 1 auto;
      align-items: center;
      flex-wrap: nowrap;
      justify-content: center;
      min-width: 0;
    }
    .main-nav a {
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--text-dim);
      white-space: nowrap;
      padding: 0.35rem 0.15rem;
    }

    /* Parent agency uplink (jamesha.agency) */
    .agency-uplink {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.05rem;
      padding: 0.28rem 0.45rem;
      border: 1px solid rgba(0, 200, 240, 0.4);
      background: rgba(0, 200, 240, 0.08);
      border-radius: 2px;
      text-decoration: none !important;
      flex-shrink: 0;
      line-height: 1.1;
    }
    .agency-uplink:hover {
      background: rgba(0, 200, 240, 0.16);
      border-color: rgba(0, 200, 240, 0.65);
      color: var(--text-bright);
    }
    .agency-uplink-kicker {
      font-family: var(--mono);
      font-size: 0.5rem;
      letter-spacing: 0.12em;
      color: var(--accent);
      text-transform: uppercase;
    }
    .agency-uplink-label {
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.08em;
      color: var(--accent);
      text-transform: uppercase;
      white-space: nowrap;
    }
    .agency-uplink:hover .agency-uplink-label {
      color: var(--text-bright);
    }

    .agency-uplink-strip {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0.4rem 1.25rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.35rem 0.75rem;
      font-family: var(--mono);
      font-size: 0.65rem;
      color: var(--text-dim);
      letter-spacing: 0.04em;
      background: rgba(0, 200, 240, 0.04);
    }
    .agency-uplink-strip-tag {
      color: var(--accent);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-size: 0.62rem;
    }
    .agency-uplink-strip a {
      color: var(--accent);
      white-space: nowrap;
    }
    .agency-uplink-strip a:hover {
      color: var(--text-bright);
    }
    .footer-deep-links {
      margin-top: 0.5rem;
      font-size: 0.7rem;
      opacity: 0.9;
    }
    .footer-deep-links a {
      color: var(--accent);
    }
    .main-nav a:hover { color: var(--paws-green); }

    .clearance-widget {
      display: flex; align-items: center; flex-wrap: nowrap; gap: 0.35rem 0.45rem;
      font-family: var(--mono); font-size: 0.65rem; width: auto; flex-shrink: 0;
    }

    .clearance-widget-label { color: var(--text-dim); letter-spacing: 0.08em; flex: 0 0 auto; font-size: 0.58rem; }

    .clearance-ladder {
      display: flex; flex: 0 1 auto; min-width: 0; gap: 1px;
      border: 1px solid var(--border-bright); background: var(--bg-card);
      width: 13.5rem;
      max-width: 100%;
    }

    .clearance-seg {
      flex: 1 1 0; min-height: 28px; min-width: 0; padding: 0.12rem 0.08rem;
      border: none; background: transparent; color: var(--text-dim);
      font-family: var(--mono); font-size: 0.48rem; letter-spacing: 0.01em;
      cursor: pointer; transition: background 0.15s, color 0.15s;
      white-space: nowrap;
      text-align: center;
    }

    .clearance-seg.active {
      color: #ffffff !important;
      -webkit-text-fill-color: #ffffff;
      background: var(--paws-green);
      font-weight: 700;
    }

    @media (min-width: 1101px) {
      .clearance-ladder { width: 14.5rem; }
      .clearance-seg { font-size: 0.5rem; letter-spacing: 0.02em; padding: 0.15rem 0.2rem; min-height: 30px; }
    }

    .clearance-seg[data-level="paws"] {
      font-size: 0.42rem;
      letter-spacing: 0.01em;
    }

    .hero {
      position: relative; max-width: 1200px; margin: 0 auto;
      padding: 4rem 1.5rem 5rem; display: grid;
      grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start;
    }

    .hero-content { max-width: 640px; }

    .hero-tag {
      font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim);
      letter-spacing: 0.1em; margin-bottom: 1rem;
    }

    .hero-acronym {
      display: block; font-family: var(--mono); font-size: clamp(2.5rem, 8vw, 4.5rem);
      font-weight: 700; letter-spacing: 0.2em; color: var(--text-bright);
      text-shadow: 0 0 40px rgba(107, 159, 138, 0.2);
    }

    .hero-full-name {
      font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase;
      color: var(--paws-green); margin-top: 0.5rem;
    }

    .hero-motto {
      font-size: 1.25rem; font-style: italic; color: var(--text-dim);
      margin: 1.5rem 0; border-left: 3px solid var(--accent-dim); padding-left: 1rem;
    }

    .hero-status {
      display: flex; align-items: center; gap: 0.5rem;
      font-family: var(--mono); font-size: 0.8rem; color: var(--success);
      margin-bottom: 2rem;
    }

    .status-dot {
      width: 8px; height: 8px; border-radius: 50%; background: var(--success);
      animation: pulse 2s infinite;
    }

    .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

    .btn {
      font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em;
      text-transform: uppercase; padding: 0.7rem 1.35rem; min-height: 44px;
      border: 1px solid var(--border-bright); cursor: pointer;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
      display: inline-flex; align-items: center;
      justify-content: center; gap: 0.35rem; text-decoration: none !important;
      font-weight: 700;
      --btn-ink: #041018;
    }

    a.btn,
    a.btn:hover,
    a.btn:focus,
    a.btn:focus-visible,
    a.btn:visited,
    a.btn:active { text-decoration: none !important; }

    /* White ink on solid green — never dark-on-dark hover */
    .btn-primary,
    a.btn-primary,
    button.btn-primary {
      background: var(--paws-green) !important;
      color: #ffffff !important;
      border-color: var(--paws-green) !important;
      -webkit-text-fill-color: #ffffff;
    }
    .btn-primary:hover,
    a.btn-primary:hover,
    button.btn-primary:hover,
    .btn-primary:focus-visible,
    a.btn-primary:focus-visible {
      background: var(--text-bright) !important;
      border-color: var(--text-bright) !important;
      color: #ffffff !important;
      -webkit-text-fill-color: #ffffff;
    }
    .btn-ghost,
    a.btn-ghost,
    button.btn-ghost {
      background: #ffffff !important;
      color: var(--text-bright) !important;
      border-color: var(--border-bright) !important;
      -webkit-text-fill-color: var(--text-bright);
    }
    .btn-ghost:hover,
    a.btn-ghost:hover,
    button.btn-ghost:hover {
      border-color: var(--accent) !important;
      color: var(--accent-deep) !important;
      background: var(--bg-panel) !important;
      -webkit-text-fill-color: var(--accent-deep);
    }

    .hero-right { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }

    .hero-panel {
      background: var(--bg-card); border: 1px solid var(--border); padding: 1rem;
      width: 100%; max-width: 300px;
    }

    .panel-header {
      font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
      color: var(--text-dim); margin-bottom: 0.75rem; text-transform: uppercase;
    }

    .personnel-list { list-style: none; font-size: 0.85rem; }
    .personnel-list li { 
      display: flex; 
      justify-content: space-between; 
      align-items: baseline; 
      margin-bottom: 0.55rem; 
    }
    .codename { 
      color: var(--accent); 
      font-weight: 600; 
      flex-shrink: 0; 
      margin-right: 0.4rem; 
    }
    .real-name { 
      flex: 1; 
      margin-right: 0.4rem; 
      font-size: 0.68rem; 
      line-height: 1.15;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .status { 
      font-family: var(--mono); 
      font-size: 0.58rem; 
      color: var(--success); 
      flex-shrink: 0; 
      white-space: nowrap; 
    }

    .panel-footer .stamp {
      display: inline-block; font-family: var(--mono); font-size: 0.6rem;
      letter-spacing: 0.12em; color: var(--stamp-red); border: 1px solid var(--stamp-red);
      padding: 0.15rem 0.35rem; transform: rotate(-2deg);
    }

    .section {
      max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem;
    }

    .section-dark {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(232, 240, 250, 0.75));
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .section-label {
      font-family: var(--mono); font-size: 0.75rem; color: var(--accent-dim);
      letter-spacing: 0.1em; margin-bottom: 0.5rem; text-transform: uppercase;
    }

    h2 { font-size: 2.25rem; letter-spacing: 0.05em; margin-bottom: 1.5rem; color: var(--text-bright); }

    .section-intro { max-width: 640px; color: var(--text); margin-bottom: 2rem; opacity: 0.95; }

    .logo-sub,
    .hero-tag,
    .dossier-real,
    .dossier-stats dt,
    .panel-header,
    .manual-footer,
    .section-label,
    .manifest .mono,
    .ops-table .op-desc,
    .request-bay-hint {
      color: var(--text-dim);
      opacity: 1;
    }

    .agents-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem; margin-bottom: 3rem;
    }

    .rhino-dossier {
      margin-top: 1.5rem;
      margin-bottom: 1.5rem;
    }

    .rhino-dossier .dossier {
      padding: 2rem;
    }

    .rhino-dossier .dossier-stats {
      margin: 1.25rem 0;
      gap: 0.6rem;
    }

    .rhino-telemetry {
      font-family: var(--mono);
      font-size: 0.7rem;
      line-height: 1.3;
    }

    .cross-intel {
      grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }

    .dossier {
      background: var(--bg-card); border: 1px solid var(--border); padding: 1.5rem;
      position: relative;
    }

    .dossier-stamp {
      position: absolute; top: 1rem; right: 1rem;
      font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
      color: var(--paws-green); border: 1px solid var(--paws-green);
      padding: 0.15rem 0.4rem; transform: rotate(12deg); opacity: 0.7;
    }

    .dossier h3 {
      font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.15em;
      color: var(--paws-green); margin: 0.25rem 0;
    }

    .dossier-real { font-size: 0.9rem; color: var(--text-dim); }

    .dossier-stats {
      display: grid; gap: 0.5rem; margin: 1rem 0;
    }

    .dossier-stats div {
      display: grid; grid-template-columns: 110px 1fr; gap: 0.5rem;
      font-size: 0.9rem;
    }

    .dossier-stats dt {
      font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
      color: var(--text-dim); text-transform: uppercase;
    }

    .dossier-quote {
      border-left: 2px solid var(--paws-green); padding-left: 1rem;
      font-style: italic; color: var(--text-dim); font-size: 0.95rem;
    }

    .op-card {
      background: var(--bg-card); border: 1px solid var(--border);
      padding: 1.5rem; max-width: 720px;
    }

    .op-card img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: contain;
    }

    .op-card h3 {
      font-family: var(--mono); font-size: 1.25rem; letter-spacing: 0.1em;
      color: var(--paws-green); margin-bottom: 0.5rem;
    }

    .op-card .lead {
      font-family: var(--mono); font-size: 0.8rem; color: var(--accent);
      margin-bottom: 1rem;
    }

    .paws-stamp {
      display: inline-block;
      font-family: var(--mono);
      font-size: 0.7rem;
      letter-spacing: 0.14em;
      color: var(--paws-green);
      border: 1px solid var(--paws-green);
      padding: 0.35rem 0.55rem;
      transform: rotate(-4deg);
      margin-bottom: 1rem;
    }

    .btn:hover { border-color: var(--border-bright); }

    footer {
      border-top: 1px solid var(--border);
      padding: 2rem 1.5rem; max-width: 1200px; margin: 0 auto;
      font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim);
      text-align: center;
    }

    .paws-stamp-hero {
      font-family: var(--mono);
      font-size: 0.85rem;
      letter-spacing: 0.12em;
      color: var(--paws-green);
      border: 1px solid var(--paws-green);
      padding: 0.4rem 0.7rem;
      transform: rotate(-3deg);
      display: inline-block;
      margin-top: 1rem;
    }

    /* Additional page styles */
    .main-nav a.active {
      color: var(--paws-green);
      border-bottom: 1px solid var(--paws-green);
    }

    .dossier-header { margin-bottom: 0.5rem; }
    .dossier-id {
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      color: var(--text-dim);
      display: block;
    }
    .dossier-photo {
      margin: 0.75rem 0;
      border: 1px solid var(--border);
      background: var(--bg-elevated);
      overflow: hidden;
      position: relative;
    }
    .dossier-photo img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      filter: contrast(1.08) saturate(0.95) brightness(0.95);
    }
    .dossier-photo .photo-stamp {
      position: absolute;
      bottom: 8px;
      right: 8px;
      font-family: var(--mono);
      font-size: 0.55rem;
      letter-spacing: 0.08em;
      color: #ffffff;
      background: rgba(30, 77, 56, 0.9);
      border: 1px solid rgba(255, 255, 255, 0.35);
      padding: 1px 6px;
      transform: rotate(-2deg);
      pointer-events: none;
      font-weight: 700;
    }

    .rhino-dossier .dossier-photo {
      max-width: 360px;
      margin: 0.75rem auto 1.25rem;
    }

    .rhino-intro {
      max-width: none;
      margin-bottom: 1.5rem;
    }

    .rhino-dossier .dossier-photo img {
      width: 100%;
      height: auto;
      aspect-ratio: auto;
      object-fit: contain;
    }

    .rhino-dossier .photo-stamp {
      font-size: 0.7rem;
      padding: 3px 10px;
    }

    @media (max-width: 720px) {
      .rhino-dossier .dossier-photo {
        max-width: 280px;
      }
      .rhino-intro {
        max-width: none;
        margin-bottom: 1rem;
      }
      .rhino-dossier .dossier-stats div {
        grid-template-columns: 80px 1fr;
        font-size: 0.82rem;
      }
      .rhino-dossier .dossier h3 {
        font-size: 1.25rem;
      }
      .dossier-photo {
        margin: 0.5rem 0;
      }
      .dossier-photo img {
        max-height: 140px;
      }
      .rhino-telemetry {
        font-size: 0.65rem;
      }
      .rhino-telemetry button {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
      }

      /* More mobile polish */
      .dossier {
        padding: 1rem;
      }
      .dossier-stats div {
        grid-template-columns: 75px 1fr;
        font-size: 0.8rem;
      }
      .dossier h3 {
        font-size: 1.25rem;
      }
      .op-card {
        padding: 0.75rem;
      }
      .op-card img {
        margin-bottom: 0.5rem;
      }
      .training-manual {
        padding: 0.75rem;
      }
      .manifest li {
        padding: 0.2rem 0;
        font-size: 0.8rem;
      }
      .schematic {
        min-height: 140px;
        font-size: 0.7rem;
        padding: 0.5rem;
      }
      .section-intro {
        font-size: 0.9rem;
        margin-bottom: 1rem;
      }
    }
    .photo-placeholder {
      aspect-ratio: 4 / 3;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(180deg, #eef4fb, #dce6f2);
      border: 1px solid var(--border);
      position: relative;
      font-family: var(--mono);
      font-size: 0.8rem;
      letter-spacing: 0.15em;
      color: var(--text-dim);
      font-weight: 600;
    }

    /* Research links (used in rhino.html): titles are yellow links + underline for easy ID,
       descriptions use container dim color for readability. */
    .research-link {
      color: var(--accent);
      text-decoration: underline;
      font-weight: 600;
    }
    .research-link:hover {
      color: var(--text-bright);
    }
    .rhino-research {
      line-height: 1.5;
    }
    .photo-placeholder span:first-child { z-index: 1; }
    .photo-silhouette {
      position: absolute; inset: 0; background-size: contain; background-position: center; background-repeat: no-repeat; opacity: 0.25;
    }

    .dossier-full {
      max-width: 860px;
      margin: 0 auto;
    }

    /* Ops list / table */
    .ops-list {
      display: grid;
      gap: 1.25rem;
    }
    .ops-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.95rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
    }
    .ops-table th, .ops-table td {
      padding: 0.75rem 0.9rem;
      text-align: left;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
    }
    .ops-table th {
      font-family: var(--mono);
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      color: var(--text-dim);
      text-transform: uppercase;
      background: var(--bg-panel);
    }
    .ops-table tr:last-child td { border-bottom: none; }
    .ops-table .op-name { font-weight: 600; color: var(--paws-green); }
    .ops-table .stamp-small {
      font-size: 0.6rem; letter-spacing: 0.08em; border: 1px solid var(--paws-green); padding: 0.1rem 0.35rem; color: var(--paws-green);
    }

    .ops-table th:first-child,
    .ops-table td:first-child {
      min-width: 105px;
      text-align: center;
      padding-left: 1rem;
      padding-right: 1rem;
    }

    /* Burrow / HQ */
    .hq-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
    }
    .hq-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 1.25rem;
    }
    .hq-card h3 { font-family: var(--mono); color: var(--paws-green); margin-bottom: 0.5rem; font-size: 1.1rem; }
    .manifest {
      list-style: none;
      font-size: 0.9rem;
    }
    .manifest li {
      padding: 0.35rem 0;
      border-bottom: 1px dashed var(--border);
      display: flex;
      justify-content: space-between;
      gap: 1rem;
    }
    .manifest li:last-child { border-bottom: none; }
    .manifest .mono, .manifest span.mono { font-family: var(--mono); font-size: 0.8em; color: var(--text-dim); }
    .schematic {
      font-family: var(--mono);
      background: linear-gradient(180deg, #f7fafd, #edf3fb);
      border: 2px dashed var(--border-bright);
      padding: 1rem;
      position: relative;
      min-height: 220px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-size: 0.85rem;
      color: var(--text);
    }
    .schematic .label {
      position: absolute; top: 0.6rem; left: 50%; transform: translateX(-50%);
      background: var(--bg-elevated); padding: 0 0.5rem; font-size: 0.65rem; letter-spacing: 0.1em;
      color: var(--text-dim); font-weight: 600;
    }

    .burrow-map {
      width: 100%;
      height: auto;
      border: 1px solid var(--border);
      display: block;
    }

    .training-manuals {
      margin-top: 2rem;
    }

    .manual-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem;
    }

    .training-manual {
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 1rem 1.1rem 1.25rem;
      text-align: left;
    }

    .training-manual img {
      width: 100%;
      height: auto;
      border: 1px solid var(--border-bright);
      margin-bottom: 0.75rem;
      display: block;
    }

    .training-manual h4 {
      font-family: var(--mono);
      font-size: 0.9rem;
      color: var(--paws-green);
      margin: 0.5rem 0 0.25rem;
      text-align: center;
      letter-spacing: 0.04em;
    }

    .training-manual > .manual-sub {
      font-size: 0.8rem;
      color: var(--text-dim);
      margin: 0 0 0.75rem;
      text-align: center;
    }

    .training-manual p {
      font-size: 0.8rem;
      color: var(--text-dim);
      margin: 0;
    }

    .manual-body {
      margin-top: 0.85rem;
      padding-top: 0.85rem;
      border-top: 1px dashed var(--border);
      font-size: 0.88rem;
      line-height: 1.5;
      color: var(--text);
    }
    .manual-body h5 {
      font-family: var(--mono);
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin: 0.85rem 0 0.4rem;
    }
    .manual-body h5:first-child { margin-top: 0; }
    .manual-body ol,
    .manual-body ul {
      margin: 0.35rem 0 0.5rem;
      padding-left: 1.2rem;
    }
    .manual-body li {
      margin: 0.35rem 0;
      color: var(--text);
    }
    .manual-body .manual-warn {
      font-family: var(--mono);
      font-size: 0.75rem;
      color: #e8b86d;
      border-left: 3px solid #e8b86d;
      padding: 0.45rem 0.65rem;
      margin: 0.65rem 0;
      background: rgba(232, 184, 109, 0.08);
    }
    .manual-body .manual-quote {
      font-style: italic;
      color: var(--paws-green);
      margin: 0.65rem 0 0;
      font-size: 0.85rem;
    }
    .manual-body .manual-footer {
      font-family: var(--mono);
      font-size: 0.65rem;
      letter-spacing: 0.06em;
      color: var(--text-dim);
      margin-top: 0.85rem;
      text-align: center;
    }

    .burrow-command {
      width: 100%;
      height: auto;
      max-width: 520px;
      margin: 1.5rem auto 0;
      border: 1px solid var(--border);
      display: block;
    }

    /* Clearance locks */
    .locked { position: relative; opacity: 0.55; pointer-events: none; user-select: none; }
    .lock-overlay {
      position: absolute; inset: 0; background: rgba(10,14,20,0.75);
      display: flex; align-items: center; justify-content: center; z-index: 2;
    }
    .lock-overlay .lock-content {
      font-family: var(--mono);
      font-size: 0.75rem;
      letter-spacing: 0.15em;
      color: var(--paws-green);
      border: 1px solid var(--paws-green);
      padding: 0.35rem 0.75rem;
      transform: rotate(-2deg);
      text-transform: uppercase;
    }

    /* Responsive tweaks */
    @media (max-width: 720px) {
      .hero { grid-template-columns: 1fr; padding: 2rem 1rem 3rem; }
      .hero-right { max-width: 100%; }
      .dossier-stats div { grid-template-columns: 90px 1fr; }
      .hero-patch { max-width: 180px; margin: 0 auto 0.75rem; }
      .patch-hero { border-radius: 2px; }
      .logo { gap: 0.45rem; }
      .hq-grid { grid-template-columns: 1fr; gap: 1rem; }
      .hq-card { padding: 1rem; }
      .manual-grid { grid-template-columns: 1fr; }
      .burrow-map, .burrow-command { max-width: 100%; }
      .schematic { min-height: 160px; font-size: 0.75rem; padding: 0.75rem; }
      .manifest { font-size: 0.85rem; }
      .training-manual img { margin-bottom: 0.5rem; }
      .ops-table th:first-child,
      .ops-table td:first-child { min-width: 85px; }

      /* Touch-friendly clearance ladder (row layout owned by ≤1100 header rules) */
      .clearance-seg {
        font-size: 0.55rem;
        padding: 0.25rem 0.12rem;
        min-height: 34px;
      }
      .clearance-seg[data-level="paws"] { font-size: 0.5rem; }
      .clearance-ladder {
        min-height: 34px;
      }
      .agency-uplink { padding: 0.3rem 0.45rem; }
      .agency-uplink-label { font-size: 0.62rem; }
      .agency-uplink-strip {
        padding: 0.35rem 0.75rem;
        font-size: 0.58rem;
        gap: 0.3rem 0.55rem;
      }

      /* Table readability */
      .ops-table { font-size: 0.82rem; }
      .ops-table th, .ops-table td { padding: 0.5rem 0.35rem; }
      .ops-table {
        font-size: 0.78rem;
      }
      .ops-table .stamp-small { font-size: 0.55rem; padding: 0.08rem 0.25rem; }

      /* General */
      .section { padding-top: 2rem; padding-bottom: 2rem; }
      h2 { font-size: 1.75rem; }
      .btn { font-size: 0.72rem; padding: 0.55rem 1rem; }
      .hero-status { font-size: 0.7rem; margin-bottom: 1.25rem; }
      .dossier {
        padding: 0.75rem;
      }
      .dossier-stats div {
        grid-template-columns: 70px 1fr;
        font-size: 0.78rem;
      }
      .agents-grid {
        gap: 1rem;
      }
      .op-card {
        padding: 0.75rem;
      }
      .hero-actions { gap: 0.6rem; }
      .personnel-list { font-size: 0.78rem; }
      .personnel-list li { margin-bottom: 0.35rem; }
      .dossier-quote {
        font-size: 0.85rem;
      }
      .section-label {
        font-size: 0.65rem;
      }
      .real-name { font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .status { font-size: 0.55rem; }
      .codename { margin-right: 0.3rem; }
      .panel-header { font-size: 0.62rem; }
      .training-manual {
        padding: 0.75rem;
      }
      .manifest {
        font-size: 0.8rem;
      }
      .schematic {
        font-size: 0.7rem;
        padding: 0.5rem;
        min-height: 140px;
      }
      .dossier-photo img {
        max-height: 120px;
      }
    }

    /* Extra small phones */
    @media (max-width: 380px) {
      .clearance-seg { font-size: 0.48rem; padding: 0.18rem 0.06rem; min-height: 30px; }
      .clearance-seg[data-level="paws"] { font-size: 0.44rem; }
      .clearance-widget-label { font-size: 0.5rem; }
      .logo-mark { font-size: 0.8rem; }
      .nav-toggle { padding: 0.35rem 0.5rem; min-height: 34px; font-size: 0.62rem; }
      .hero { padding: 1.5rem 0.75rem 2rem; }
      .section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
      h2 { font-size: 1.5rem; }
      .btn { font-size: 0.65rem; padding: 0.5rem 0.8rem; min-height: 36px; }
      .dossier {
        padding: 0.75rem;
      }
      .dossier-stats div {
        grid-template-columns: 65px 1fr;
        font-size: 0.75rem;
      }
      .dossier-photo {
        margin: 0.4rem 0;
      }
      .ops-table tr {
        padding: 0.35rem;
        margin-bottom: 0.5rem;
      }
      .ops-table td {
        padding: 0.15rem 0;
      }
      .ops-table td::before {
        min-width: 75px;
        font-size: 0.55rem;
      }
    }

    /* Fully stack operations table on tiny screens (no horizontal scroll) */
    @media (max-width: 480px) {
      .ops-list > div { overflow-x: visible; }
      .ops-table thead { display: none; }
      .ops-table,
      .ops-table tbody,
      .ops-table tr,
      .ops-table td {
        display: block;
        width: 100%;
      }
      .ops-table tr {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        border: 1px solid var(--border);
        background: var(--bg-card);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      }
      .ops-table td {
        padding: 0.15rem 0;
        border: none;
        display: flex;
        align-items: flex-start;
        gap: 0.4rem;
        font-size: 0.78rem;
      }
      .ops-table td::before {
        content: attr(data-label) ": ";
        font-family: var(--mono);
        font-size: 0.6rem;
        color: var(--paws-green);
        min-width: 90px;
        flex-shrink: 0;
        font-weight: 600;
      }
      .ops-table td:nth-child(5) {
        flex-direction: column;
      }
      .ops-table td:nth-child(5)::before {
        margin-bottom: 0.25rem;
      }
      .ops-table td .stamp-small {
        margin-left: 0;
      }
    }

    .section { padding-top: 3rem; padding-bottom: 3rem; }

/* Spy-themed Unauthorized Access Modal - Tactical / Night Shade AI */
.unauthorized-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  -webkit-tap-highlight-color: transparent;
}

.unauthorized-modal .modal-content {
  background: var(--bg-card);
  border: 2px solid #c0392b;
  width: 92%;
  max-width: 420px;
  padding: 1rem 1.25rem;
  box-shadow: 0 0 30px rgba(192, 57, 43, 0.4);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}



@media (max-width: 480px) {
  .unauthorized-modal .modal-content {
    width: 95%;
    padding: 0.75rem 1rem;
  }
  .unauthorized-modal .log-container {
    min-height: 90px;
    font-size: 0.65rem;
  }
  .unauthorized-modal .btn-ack {
    min-width: 180px;
    font-size: 0.8rem;
  }
}

.unauthorized-modal .modal-header {
  border-bottom: 1px dashed #c0392b;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.unauthorized-modal .modal-header h3 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #c0392b;
  text-transform: uppercase;
}

.unauthorized-modal .violation-stamp {
  position: absolute;
  top: -4px;
  right: 6px;
  background: #c0392b;
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 14px;
  transform: rotate(5deg);
  letter-spacing: 0.1em;
  border: 1px solid #c0392b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}



.unauthorized-modal .log-container {
  background: #0a0e14;
  border: 1px solid var(--border);
  padding: 0.5rem;
  min-height: 110px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.68rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  white-space: pre-line;
  color: #6b9f8a;
}

.unauthorized-modal .log-container .alert {
  color: #c0392b;
}

.unauthorized-modal .modal-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.unauthorized-modal .btn-ack {
  font-size: 0.75rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #c0392b;
  color: #c0392b;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 44px;
  min-width: 200px;
}

.unauthorized-modal .btn-ack:hover {
  background: #c0392b;
  color: #0a0e14;
}

.unauthorized-modal .small-log {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.public-notice {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(192, 57, 43, 0.12);
  border: 1px solid #c0392b;
  color: #c0392b;
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 3px 12px;
  letter-spacing: 0.1em;
  z-index: 9998;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(192, 57, 43, 0.3);
}

@media (max-width: 480px) {
  .public-notice {
    font-size: 0.55rem;
    padding: 2px 8px;
    bottom: 6px;
  }
}

/* Project Rhino Training Archive — Karate / Tiny Warrior Phase */
.rhino-training {
  margin-top: 1.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.rhino-training video {
  max-width: 380px;
  width: 100%;
  height: auto;
  margin: 0.5rem auto;
  display: block;
  border: 2px solid var(--paws-green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  background: #000;
}
.rhino-training img {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0.5rem 0;
  display: block;
  border: 2px solid var(--paws-green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  max-height: 220px;
}
.rhino-training .training-label {
  color: var(--paws-green);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}
.rhino-training .narrator {
  font-style: italic;
  font-size: 0.7rem;
  margin-top: 0.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.5rem;
  color: var(--text);
}
.rhino-training button {
  margin-top: 0.5rem;
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  background: transparent;
  border: 1px solid var(--paws-green);
  color: var(--paws-green);
  cursor: pointer;
  font-family: var(--mono);
}
.rhino-training .training-log {
  margin-top: 0.4rem;
  font-size: 0.65rem;
  min-height: 1.2em;
  color: var(--accent);
}
@media (max-width: 480px) {
  .rhino-training video, .rhino-training img {
    max-width: 140px;
    max-height: 160px;
    border-width: 1px;
  }
  .rhino-training {
    font-size: 0.7rem;
    padding: 0.5rem;
  }
}



/* Desktop header order: logo · nav · agency · clearance */
.header-inner .logo { order: 1; }
.header-inner .main-nav { order: 2; flex: 1 1 auto; min-width: 0; }
.header-inner .agency-uplink-header { order: 3; }
.header-inner .header-actions { order: 4; margin-left: 0; }

/* ========== Phase 4 — a11y, mobile nav, reduced motion ========== */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 200;
  padding: 0.5rem 0.85rem;
  background: var(--paws-green);
  color: #ffffff !important;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 700;
}
.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--paws-green);
  outline-offset: 2px;
}
.clearance-seg:focus-visible,
.btn:focus-visible,
.agency-uplink:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paws-green);
  background: rgba(107, 159, 138, 0.08);
  border: 1px solid rgba(107, 159, 138, 0.45);
  padding: 0.4rem 0.6rem;
  min-height: 36px;
  cursor: pointer;
  border-radius: 2px;
  flex-shrink: 0;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: rgba(107, 159, 138, 0.16);
  color: var(--text-bright);
}
.nav-toggle-bars {
  display: inline-block;
  width: 1rem;
  height: 0.7rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.agency-uplink-strip {
  transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.2s ease;
}
.agency-uplink-strip-detail {
  display: inline;
}

/* Compact header until wide enough for full inline nav */
@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    padding: 0.5rem 0.85rem 0.55rem;
    position: relative;
    align-items: center;
  }
  .logo { flex: 1 1 auto; min-width: 0; order: 1; }
  .logo-sub { display: none; }
  .logo-emblem { width: 36px; height: 36px; }
  .logo-mark { font-size: 0.88rem; }

  /* Pull toggle + clearance out so clearance can sit on its own row */
  .header-actions {
    display: contents;
  }
  .nav-toggle {
    display: inline-flex;
    order: 2;
  }
  .clearance-widget {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    gap: 0.35rem;
  }
  .clearance-widget-label {
    flex: 0 0 auto;
  }
  .clearance-ladder {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .clearance-seg {
    font-size: 0.52rem;
    min-height: 32px;
    padding: 0.2rem 0.12rem;
  }
  .clearance-seg[data-level="paws"] {
    font-size: 0.48rem;
  }

  .main-nav {
    display: none;
    order: 4;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.35rem 0.85rem 0.75rem;
    z-index: 120;
    box-shadow: 0 12px 28px rgba(20, 50, 90, 0.14);
    flex: none;
    width: 100%;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 0.75rem 0.5rem;
    min-height: 44px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
    white-space: normal;
    color: var(--text);
    font-weight: 600;
  }
  .main-nav a:hover,
  .main-nav a.active {
    color: var(--paws-green);
    background: rgba(61, 139, 110, 0.06);
  }
  .main-nav .agency-uplink-mobile {
    margin-top: 0.5rem;
    display: inline-flex;
    align-self: flex-start;
  }

  .agency-uplink-header { display: none; }

  .agency-uplink-strip {
    padding: 0.35rem 0.85rem;
    font-size: 0.58rem;
    gap: 0.3rem 0.55rem;
  }
  .agency-uplink-strip-detail { display: none; }
  .agency-uplink-strip a { font-size: 0.6rem; }
}

@media (min-width: 1101px) {
  .agency-uplink-mobile { display: none !important; }
  .nav-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scanlines { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .status-dot { animation: none !important; }
}

/* Safer image defaults */
img { max-width: 100%; height: auto; }


/* ========== Paw-print redactions (clearance gates) ========== */
.redact {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  color: transparent !important;
  background: #1e3a2f;
  border: 1px solid rgba(61, 139, 110, 0.55);
  border-radius: 999px;
  padding: 0.12rem 0.45rem 0.18rem;
  min-height: 1.4em;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.redact::before {
  content: '';
  position: absolute;
  inset: 2px 4px;
  pointer-events: none;
  opacity: 0.95;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='20' rx='7' ry='6' fill='%238a9a5b'/%3E%3Cellipse cx='8' cy='11' rx='3.2' ry='4' fill='%238a9a5b'/%3E%3Cellipse cx='14' cy='8' rx='3' ry='3.8' fill='%238a9a5b'/%3E%3Cellipse cx='20' cy='8' rx='3' ry='3.8' fill='%238a9a5b'/%3E%3Cellipse cx='25' cy='12' rx='3' ry='3.6' fill='%238a9a5b'/%3E%3C/svg%3E");
  background-size: 1.05em 1.05em;
  background-repeat: repeat-x;
  background-position: center left;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.6));
}
.redact:hover:not(.revealed) {
  border-color: rgba(107, 159, 138, 0.75);
  box-shadow: 0 0 12px rgba(107, 159, 138, 0.25);
}
.redact:focus-visible {
  outline: 2px solid var(--paws-green);
  outline-offset: 2px;
}
.redact.revealed {
  color: var(--text-bright) !important;
  background: rgba(107, 159, 138, 0.12);
  border-color: rgba(107, 159, 138, 0.45);
  border-radius: 3px;
  cursor: default;
  animation: pawReveal 0.35s ease;
}
.redact.revealed::before {
  display: none;
}
.redact.denied {
  animation: pawShake 0.4s ease;
  border-color: var(--danger);
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.35);
}
@keyframes pawShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px) rotate(-1deg); }
  75% { transform: translateX(3px) rotate(1deg); }
}
@keyframes pawReveal {
  from { filter: blur(4px); opacity: 0.4; }
  to { filter: none; opacity: 1; }
}
.redact-hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin: 0.5rem 0 1rem;
}
.redact-toast {
  position: fixed;
  z-index: 130;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  max-width: min(20rem, calc(100vw - 2rem));
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.75rem;
  border-radius: 3px;
  border: 1px solid rgba(61, 139, 110, 0.5);
  background: rgba(255, 255, 255, 0.96);
  color: #1e4d38;
  box-shadow: 0 8px 24px rgba(20, 50, 90, 0.14);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-weight: 600;
}
.redact-toast.is-on {
  opacity: 1;
  transform: translateY(0);
}
.redact-toast.is-error {
  border-color: rgba(192, 57, 43, 0.55);
  color: #9b1c1c;
  background: #fef2f2;
}

/* Fetch Drill mini-game — light ice panel */
.fetch-drill {
  margin: 2rem auto 0;
  max-width: 720px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--paws-green);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), #f4f8fc);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 28px rgba(20, 50, 90, 0.08);
  color: var(--text);
}
.fetch-drill-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(237, 243, 251, 0.75);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #2f7a5c;
  text-transform: uppercase;
  font-weight: 700;
}
.fetch-drill-stats {
  display: flex;
  gap: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}
.fetch-drill-stats strong { color: var(--text-bright); }
.fetch-drill-arena {
  position: relative;
  height: 200px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(61, 139, 110, 0.1), transparent 55%),
    linear-gradient(180deg, #eef4fb, #e4ecf6),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(142, 171, 200, 0.35) 24px, rgba(142, 171, 200, 0.35) 25px);
  cursor: crosshair;
  touch-action: manipulation;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.fetch-drill-arena.is-won {
  cursor: default;
}
.fetch-ball {
  position: absolute;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f5f0c8, #00c8f0 45%, #0a7a94 100%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45), inset 0 -4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.08s ease;
}
.fetch-ball::after {
  content: '';
  position: absolute;
  inset: 18% 46%;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  transform: rotate(25deg);
}
.fetch-ball:active { transform: scale(0.92); }
.fetch-ball.is-caught {
  animation: ballPop 0.35s ease forwards;
  pointer-events: none;
}
@keyframes ballPop {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fetch-drill-msg {
  padding: 0.65rem 1rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text);
  min-height: 2.5rem;
  line-height: 1.45;
}
.fetch-drill-msg .mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #2f7a5c;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.fetch-drill-actions {
  padding: 0 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* Ensure START DRILL / RESET stay readable on light panel */
.fetch-drill-actions .btn-primary,
.fetch-drill-actions a.btn-primary,
.fetch-drill-actions button.btn-primary {
  background: var(--paws-green) !important;
  color: #ffffff !important;
  border-color: var(--paws-green) !important;
  -webkit-text-fill-color: #ffffff;
  font-weight: 700;
}
.fetch-drill-actions .btn-ghost,
.fetch-drill-actions a.btn-ghost,
.fetch-drill-actions button.btn-ghost {
  background: #ffffff !important;
  color: var(--text-bright) !important;
  border-color: var(--border-bright) !important;
  -webkit-text-fill-color: var(--text-bright);
  font-weight: 700;
}
@media (max-width: 720px) {
  .fetch-drill-arena { height: 170px; }
  .fetch-ball { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}
@media (prefers-reduced-motion: reduce) {
  .redact.revealed { animation: none; }
  .fetch-ball.is-caught { animation: none; opacity: 0; }
}
