/* Shared base styles for every PRN tool page: tokens, the top nav, cards,
   tables, buttons, form controls, the sign-in gates and the toast. Lifted
   from the events app (R2). Each app loads it before its own <style>:
     <link rel="stylesheet" href="/ui/base.css">
   and keeps only the styles that are its own screens'. Copied into each app's
   public/ui/ at build time, like shell.js. */
* { box-sizing: border-box; }
body { margin: 0; background: #F2F5F1; color: #1B2420; font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif; font-size: 14px; }
a { color: #1E7A4F; text-decoration: none; } a:hover { color: #14603C; }
.shell { display: flex; flex-direction: column; min-height: 100vh; }
.topnav { background: #1B2A22; display: flex; align-items: center; gap: 18px; padding: 0 22px; min-height: 52px; flex-wrap: wrap; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: baseline; gap: 10px; margin-right: 8px; }
.brand b { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 15px; color: #FFFFFF; white-space: nowrap; }
.brand span { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .08em; color: #7E937F; white-space: nowrap; }
.nav { display: flex; gap: 4px; align-items: center; }
.navitem { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; color: #AFC0B4; font-size: 13px; font-weight: 500; cursor: pointer; border: none; background: none; font-family: inherit; white-space: nowrap; }
.navitem:hover { color: #FFFFFF; }
.navitem.active { background: rgba(255,255,255,.12); color: #FFFFFF; }
.navitem:focus-visible { outline: 2px solid #4FC58B; outline-offset: 1px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 28px; border-bottom: 1px solid #DFE6DE; background: #FFFFFF; flex-wrap: wrap; }
.topbar h1 { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 17px; margin: 0; }
.topbar h1 small { color: #8A968D; font-weight: 500; font-size: 15px; }
.content { padding: 22px 28px; display: flex; flex-direction: column; gap: 16px; }
.card { background: #FFFFFF; border: 1px solid #DFE6DE; border-radius: 10px; }
.h2 { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 15px; margin: 0; }
.cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 18px 4px; }
.note { font-size: 12px; color: #8A968D; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-family: "IBM Plex Mono", monospace; font-size: 11px; padding: 1px 8px 2px; border-radius: 99px; white-space: nowrap; }
.c-g { background: #E3F1E8; color: #14603C; } .c-a { background: #F7EDD6; color: #7A5A10; }
.c-b { background: #E4EDF6; color: #24557F; } .c-n { background: #EEF1ED; color: #55665C; }
.c-r { background: #F6E3E0; color: #8F3B32; }
.num { font-variant-numeric: tabular-nums; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #8A968D; font-weight: 500; padding: 8px 10px; border-bottom: 1px solid #EDF1EC; white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid #EDF1EC; vertical-align: middle; }
td.num { white-space: nowrap; }
tr:last-child td { border-bottom: none; }
.tablewrap { overflow-x: auto; padding: 0 10px 8px; }
.placeholder { padding: 40px 18px; text-align: center; color: #55665C; }
.placeholder h2 { font-family: "Archivo", sans-serif; font-size: 18px; margin: 0 0 8px; color: #1B2420; }
.placeholder p { margin: 0 auto; max-width: 520px; font-size: 13.5px; line-height: 1.55; }
.btn { font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 8px; background: #1E7A4F; color: #FFFFFF; border: 1px solid #1E7A4F; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.btn:hover { background: #14603C; border-color: #14603C; }
.btn.ghost { background: #FFFFFF; border: 1px solid #DFE6DE; color: #55665C; font-weight: 500; }
.btn.ghost:hover { background: #F7FAF7; border-color: #B9C8BC; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible { outline: 2px solid #1E7A4F; outline-offset: 2px; }
.gate { position: fixed; inset: 0; background: #F2F5F1; display: grid; place-items: center; z-index: 50; padding: 20px; }
.gatecard { background: #FFFFFF; border: 1px solid #DFE6DE; border-radius: 12px; padding: 28px; width: 380px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.gatecard h1 { font-family: "Archivo", sans-serif; font-size: 18px; margin: 0; }
.gatecard p { margin: 0; font-size: 13px; color: #55665C; line-height: 1.5; }
.gatecard input { font: inherit; padding: 9px 12px; border: 1px solid #DFE6DE; border-radius: 8px; width: 100%; }
.gatecard button { font: inherit; font-weight: 600; padding: 9px 12px; border: none; border-radius: 8px; background: #1E7A4F; color: #FFFFFF; cursor: pointer; }
.gatecard .err { color: #A33B3B; font-size: 12.5px; min-height: 16px; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 18px 4px; }
.in { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid #DFE6DE; border-radius: 8px; min-width: 230px; background: #fff; color: #1B2420; }
.in:focus-visible, .selin:focus-visible { outline: 2px solid #1E7A4F; outline-offset: 1px; }
.selin { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid #DFE6DE; border-radius: 8px; background: #fff; color: #1B2420; max-width: 340px; }
.sm { font-size: 12px; padding: 5px 10px; border-radius: 7px; }
.zname { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.zsub { font-size: 12px; color: #8A968D; font-family: "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.toastwrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 40; }
.toast { background: #1B2A22; color: #fff; border-radius: 10px; padding: 11px 16px; font-size: 13.5px; display: inline-flex; gap: 14px; align-items: center; box-shadow: 0 8px 30px rgba(15,25,19,.35); max-width: 90vw; }
.toast > span { min-width: 0; overflow-wrap: anywhere; }
.toast button { font: inherit; font-size: 13.5px; font-weight: 600; color: #7FD6A8; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.toast button:focus-visible { outline: 2px solid #7FD6A8; outline-offset: 2px; }
.hidden { display: none !important; }
  .topnav { flex-wrap: nowrap; gap: 8px; padding: 0 12px; }
  .brand { margin-right: 0; }
  .brand span { display: none; }
  .nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .navitem { min-height: 44px; padding: 6px 10px; }
  .topbar { flex-direction: column; align-items: stretch; padding: 10px 14px; }
  .topbar h1 { font-size: 16px; }
  .content { padding: 16px 14px; }
  .cardhead, .filters { padding-left: 14px; padding-right: 14px; }
  .btn, .pillbtn { min-height: 40px; }
  .btn.sm, .pillbtn.sm { min-height: 36px; }
  .in { min-width: 0; width: 100%; }
  .cardhead { flex-direction: column; align-items: flex-start; gap: 3px; }
