/* PROJECT SIGNAL — POLISH (audit pass 1, 2026-12-01). Loaded last. Small, visual-only fixes:
   phone hub layout, the update pill, and 44px touch targets. No behaviour lives here. */

/* --- touch targets: grow the hit area to at least 44px without changing how the control looks --- */
.ag-pill,.sb-toggle,.pn-random,.ix-tool,.ix-chip,.ix-btn,.atlas-exit,#zoom-in,#zoom-out,#us-view,#world-view,.sb-atlas-toggle,.ps-pill button,.stream-close{position:relative}
.ag-pill::after,.sb-toggle::after,.pn-random::after,.ix-tool::after,.ix-chip::after,.ix-btn::after,.atlas-exit::after,#zoom-in::after,#zoom-out::after,#us-view::after,#world-view::after,.sb-atlas-toggle::after,.ps-pill button::after,.stream-close::after{content:'';position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}

@media (max-width:600px){
  /* header: one-line wordmark */
  header>div:first-child{flex:0 0 auto}
  .brand{white-space:nowrap;font-size:clamp(18px,5.4vw,27px)!important}
  /* hero eyebrow: readable over the planet */
  .bridge-kicker{letter-spacing:2px!important;color:#e4e2ff!important;text-shadow:0 1px 2px rgba(8,6,30,.95),0 0 12px rgba(8,6,30,.9)!important}
  /* First Contact tile: the eyebrow and sub-line stay clear of the arrow */
  .fc-launch .ps-portal-text{min-width:0}
  .fc-launch .ps-portal-text .ps-deck-tag{white-space:normal!important;letter-spacing:.14em!important;line-height:1.35!important}
  .fc-launch .ps-portal-text b{white-space:normal!important;letter-spacing:.08em!important}
  /* hooked tiles: nothing clipped */
  .hk-tile .k{white-space:normal;overflow:visible;line-height:1.5}
  .hk-tile .s{white-space:normal;overflow:visible;text-overflow:clip}
  .hk-tx .s{padding-right:18px}
  /* the update pill sits at the bottom edge so it never covers the wordmark */
  .ps-pill.update{top:auto;bottom:calc(env(safe-area-inset-bottom) + 14px);transform:translate(-50%,140%)}
  .ps-pill.update.show{transform:translate(-50%,0)}
  .ps-pill.update button{padding:9px 14px}
}

/* Atlas: opt-in switch for raw witness submissions (audit pass 4) */
.atlas-subs-toggle{display:block;width:100%;margin:12px 0 4px;padding:13px 14px;min-height:44px;border-radius:12px;border:1px dashed #58cba68a;background:rgba(18,61,50,.35);color:#dfffe9;font:700 12px/1.3 'Oxanium',ui-sans-serif,system-ui;letter-spacing:.06em;text-align:left;cursor:pointer}
.atlas-subs-toggle small{display:block;margin-top:4px;font:500 11px/1.35 ui-sans-serif,system-ui;letter-spacing:0;color:#a4d7c4}
.atlas-subs-toggle[aria-pressed="true"]{border-style:solid}
.atlas-subs-toggle:focus-visible{outline:2px solid #c9ffe4;outline-offset:2px}

/* ART DIRECTOR: rank insignia in the header pill and the Agent File */
.ag-pill .ag-ins{width:19px;height:19px;flex:none;margin:-3px 0}
.af-emb.is-ins{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
.af-emb.is-ins .psx{filter:drop-shadow(0 0 14px rgba(125,255,200,.35))}

@media (max-width:600px){.sb-head .ag-pill{padding:0 9px!important;gap:5px;letter-spacing:1.2px!important}.brand{font-size:clamp(18px,5.1vw,27px)!important}}

@media (max-width:600px){.brand{font-size:clamp(17px,4.7vw,27px)!important}header{gap:8px}}
@media (max-width:600px){.brand{font-size:clamp(16px,4.4vw,27px)!important}.sb-head .status{display:none!important}.sb-head .ag-pill{padding:0 8px!important}}
