/* ==========================================================================
   TFOE(PE) of 1979 Portal

   Design system ported from the TINKIT staff console (ops.tinkit.org) so both
   apps look and feel identical: fixed white sidebar with an accent bar on the
   active item, flat white cards with hairline borders, big stat numbers with
   "Open" links, soft pill badges, Inter. Light theme only.

   Tokens below are copied from that project's tailwind.config.js verbatim.
   Breakpoint: 1024px — sidebar above, mobile header + bottom tab bar below.
   ========================================================================== */

:root {
  color-scheme: light;

  --accent: #1D66C9;
  --accent-dark: #0B2E7A;
  --accent-soft: #EFF5FD;
  --accent-line: #C6DBF4;

  --ink: #111111;
  --ink-soft: #272727;
  --ink-muted: #6B7280;
  --ink-faint: #9CA3AF;

  --surface: #FFFFFF;
  --surface-alt: #F7F7F8;
  --surface-sunken: #F2F2F4;

  --line: #E5E7EB;
  --line-strong: #D6D8DC;

  --ok: #15803D;
  --ok-bg: #F0FDF4;
  --ok-line: #BBE5C8;
  --warn: #A16207;
  --warn-bg: #FEFCE8;
  --warn-line: #E8D89A;
  --bad: #B91C1C;
  --bad-bg: #FEF2F2;
  --bad-line: #F3C6C6;
  --info: #1D66C9;
  --info-bg: #EFF5FD;
  --info-line: #C6DBF4;

  --r-card: 12px;
  --r-ctl: 10px;
  --r-pill: 999px;

  --sh-card: 0 1px 2px rgba(17, 17, 17, .04), 0 1px 3px rgba(17, 17, 17, .03);
  --sh-raised: 0 4px 16px rgba(17, 17, 17, .08);
  --sh-pop: 0 12px 32px rgba(17, 17, 17, .12);

  --sidebar-w: 248px;
  --mtop-h: 56px;
  --tabbar-h: 60px;
  --tap: 44px;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  /* aliases kept for older inline styles */
  --brand-text: #0B2E7A;
  --ink-2: #6B7280;
  --ink-3: #9CA3AF;
}

/* --- base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0 0 .35rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: .95rem; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; font-weight: 550; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Components like .btn set their own display, which would otherwise beat the
   browser's rule for the hidden attribute and show what should stay hidden. */
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff;
  padding: .6rem 1rem; font-weight: 650; border-radius: 0 0 var(--r-ctl) 0;
}
.skip-link:focus { left: 0; }

/* --- avatars ---------------------------------------------------------------- */

.avatar {
  display: inline-grid; place-items: center; flex: none;
  border-radius: 50%; overflow: hidden;
  background: hsl(var(--av-h, 215), 45%, 42%);
  color: #fff; font-weight: 650; letter-spacing: .02em;
  object-fit: cover; text-align: center; user-select: none;
}
.avatar--sm { width: 32px; height: 32px; font-size: .72rem; }
.avatar--md { width: 40px; height: 40px; font-size: .85rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar--xl { width: 96px; height: 96px; font-size: 1.7rem; }
img.avatar { display: inline-block; }

/* --- sidebar (desktop) ------------------------------------------------------- */

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 15% 96%, rgba(96, 170, 255, .45), transparent 45%),
    radial-gradient(circle at 90% 4%, rgba(6, 22, 60, .8), transparent 55%),
    linear-gradient(165deg, #0B2E7A 0%, #1D66C9 62%, #2F7BD9 100%);
  padding: 14px 12px calc(12px + var(--safe-b));
  overflow-y: auto; overscroll-behavior: contain;
}
/* floating glass shapes, same family as the sign-in screen */
.sidebar::before, .sidebar::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
}
.sidebar::before { width: 220px; height: 220px; left: -80px; top: -80px; }
.sidebar::after { width: 260px; height: 260px; right: -110px; bottom: -90px; }
.sidebar > * { position: relative; z-index: 1; }

.sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 16px;
}
.sidebar__logo {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 3px;
}
.sidebar__name { min-width: 0; }
.sidebar__name b {
  display: block; font-size: .93rem; font-weight: 700; letter-spacing: -.01em;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar__name span {
  display: block; margin-top: 1px;
  font-size: .6rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

.sidebar__nav { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.sidebar__nav a, .sidebar__nav button {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 14px;
  border: 1px solid transparent; background: none; cursor: pointer; text-align: left;
  border-radius: 999px;
  font: inherit; font-size: .9rem; font-weight: 550; color: rgba(255, 255, 255, .88);
  transition: background-color .12s ease, color .12s ease;
}
.sidebar__nav a:hover, .sidebar__nav button:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}
.sidebar__nav a[aria-current="page"] {
  background: #fff; color: var(--accent-dark); font-weight: 700;
  box-shadow: 0 8px 20px rgba(4, 16, 45, .28);
}
.sidebar__nav svg { width: 18px; height: 18px; flex: none; }

.sidebar__foot { margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 12px; }
.sidebar__user {
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 10px 12px; margin-bottom: 6px;
}
.sidebar__user b {
  display: block; font-size: .85rem; font-weight: 650; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar__user span {
  display: block; font-size: .72rem; color: rgba(255, 255, 255, .7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar__user em {
  display: block; margin-top: 4px; font-style: normal;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #BFDBFE;
}

/* --- mobile header and drawer ------------------------------------------------ */

.mtop {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  min-height: var(--mtop-h);
  padding: var(--safe-t) 12px 0;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.mtop__brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.mtop__brand img { width: 30px; height: 30px; border-radius: 50%; }
.mtop__brand b { font-size: .92rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.mtop .spacer { flex: 1 1 auto; }

.iconbtn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%;
  color: var(--ink); cursor: pointer; padding: 0;
}
.iconbtn:hover { background: var(--surface-alt); }
.iconbtn svg { width: 21px; height: 21px; }

.backdrop {
  position: fixed; inset: 0; z-index: 39;
  background: rgba(17, 17, 17, .45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease;
  border: 0; padding: 0; margin: 0; width: 100%;
}

@media (max-width: 1023px) {
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--sh-pop); z-index: 41; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
  body.sidebar-open { overflow: hidden; }
}
@media (min-width: 1024px) {
  .mtop { display: none; }
  .backdrop { display: none; }
}

/* --- bottom tab bar (mobile) -------------------------------------------------- */

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: flex;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar a {
  flex: 1 1 0; min-width: 0; min-height: var(--tabbar-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 2px;
  color: var(--ink-muted); font-size: .62rem; font-weight: 600;
}
.tabbar a:hover { color: var(--accent); }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a svg { width: 21px; height: 21px; }
.tabbar__label {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 1024px) { .tabbar { display: none; } }

/* --- page shell ---------------------------------------------------------------- */

.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 1rem calc(var(--tabbar-h) + var(--safe-b) + 1.5rem);
}
@media (min-width: 1024px) {
  .main {
    margin-left: var(--sidebar-w);
    max-width: none;
    padding: 1.6rem 2rem 2.5rem;
  }
  .main > * { max-width: 1280px; }
}

.pagehead { margin-bottom: 1.1rem; }
.pagehead > div:first-child { min-width: 0; }
.pagehead h1 { margin-bottom: .15rem; }
.pagehead > div:first-child > p, .pagehead__sub { color: var(--ink-muted); font-size: .85rem; margin: 0; }
.pagehead .spacer { display: none; }
.pagehead > .btnrow, .pagehead > .btn { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.pagehead > .btn { display: inline-flex; }
@media (min-width: 640px) {
  .pagehead { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
  .pagehead > div:first-child { flex: 1 1 240px; }
  .pagehead .spacer { display: block; flex: 1 1 auto; }
  .pagehead > .btnrow, .pagehead > .btn { margin-top: 0; flex: 0 0 auto; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card--tight { padding: .75rem .85rem; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card__head h2 { margin: 0; }
.card__head .spacer { flex: 1 1 auto; }

/* Uppercase section heading, as on the console's cards */
.sectionhead {
  display: flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted);
}
.sectionhead svg { width: 15px; height: 15px; color: var(--ink-faint); }

.grid { display: grid; gap: 1rem; }
.grid-2, .grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

.duo { display: grid; gap: 1rem; }
@media (min-width: 1100px) {
  .duo { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; }
}

/* --- dashboard hero: the sign-in screen's gradient, carrying the seal -------------- */

.hero {
  position: relative; overflow: hidden;
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(96, 170, 255, .4), transparent 45%),
    linear-gradient(130deg, #0B2E7A 0%, #1D66C9 68%, #2F7BD9 100%);
  box-shadow: 0 14px 34px rgba(4, 16, 45, .25);
}
.hero::before {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  width: 240px; height: 240px; left: -90px; bottom: -120px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero__seal {
  position: absolute; right: -26px; top: 50%; transform: translateY(-50%);
  width: 190px; height: 190px; opacity: .16; pointer-events: none;
  filter: saturate(.6);
}
.hero .pagehead { position: relative; z-index: 1; margin-bottom: 0; }
.hero h1 { color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.hero .pagehead__sub, .hero .pagehead > div:first-child > p { color: rgba(255, 255, 255, .78); }
.hero .btn {
  background: #fff; color: var(--accent-dark); border-radius: 999px;
  font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 10px 24px rgba(4, 16, 45, .3);
}
.hero .btn:hover { background: #fff; color: var(--accent-dark); transform: translateY(-1px); }

/* --- stat cards ----------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--sh-card);
  padding: .95rem 1.05rem; min-width: 0;
  display: flex; flex-direction: column;
}
.stat--accent {
  background: linear-gradient(135deg, #1D66C9, #0B2E7A);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(4, 16, 45, .22);
}
.stat--accent .stat__label { color: rgba(255, 255, 255, .75); }
.stat--accent .stat__link { color: #fff; }
.stat__label {
  order: -1;
  font-size: .74rem; font-weight: 550; color: var(--ink-muted); margin-bottom: .35rem;
  text-transform: none; letter-spacing: 0;
}
.stat__value {
  font-size: 1.9rem; font-weight: 650; color: var(--ink); line-height: 1.05;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stat--accent .stat__value { color: #fff; }
.stat__value--ok { color: var(--ok); }
.stat__value--sm { font-size: 1.1rem; }
.stat__sub { font-size: .74rem; color: var(--ink-muted); margin-top: .2rem; }
.stat__link {
  margin-top: .6rem; font-size: .78rem; font-weight: 650; color: var(--accent);
  display: inline-flex; align-items: center; gap: .3rem;
}
.stat__link::after { content: "\2192"; }

/* --- list rows -------------------------------------------------------------------- */

.feedlist { display: flex; flex-direction: column; }
.feedlist .frow {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem 1rem; color: var(--ink); min-height: 58px;
}
a.frow { font-weight: 500; }
a.frow:hover { background: var(--surface-alt); color: var(--ink); }
.feedlist .frow + .frow { border-top: 1px solid var(--line); }
.frow__body { flex: 1 1 auto; min-width: 0; }
.frow__name {
  font-weight: 600; font-size: .9rem; display: block; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frow__sub {
  color: var(--ink-muted); font-size: .76rem; display: block; font-weight: 450;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frow__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }

/* --- profile header ----------------------------------------------------------------- */

.profile { margin-bottom: 1rem; }
.profile__cover {
  height: 84px;
  background: linear-gradient(120deg, var(--accent-dark), var(--accent) 70%, #6D28D9);
}
.profile__bar {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .5rem; padding: 0 1rem 1rem;
}
.profile__avatar { margin-top: -44px; border: 4px solid var(--surface); box-shadow: var(--sh-card); }
.profile__who h1 { margin-bottom: .15rem; font-size: 1.3rem; }
.profile__meta {
  color: var(--ink-muted); font-size: .82rem; margin: 0;
  display: flex; gap: .45rem; align-items: center; justify-content: center; flex-wrap: wrap;
}
.profile__actions { justify-content: center; }
@media (min-width: 640px) {
  .profile__bar {
    flex-direction: row; text-align: left; align-items: flex-end; gap: 1rem;
    padding: 0 1.25rem 1rem;
  }
  .profile__avatar { margin-top: -34px; }
  .profile__who { flex: 1 1 auto; min-width: 0; padding-bottom: .1rem; }
  .profile__meta { justify-content: flex-start; }
  .profile__actions { justify-content: flex-end; padding-bottom: .15rem; }
}

/* --- the digital Eagle ID (NFC-card readout; brand colours, never inverts) ----------- */

.nfccard {
  position: relative;
  max-width: 460px; margin: 0 auto 1rem;
  border-radius: 18px; overflow: hidden;
  color: #fff;
  background: linear-gradient(130deg, #1b3c6d 0%, #0f2748 52%, #08182f 100%);
  box-shadow: var(--sh-raised);
  padding: 1rem 1.1rem 1.05rem;
}
.nfccard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #a3822f, #e8cf8a 40%, #c8a24a 75%, #8a6d24);
}
.nfccard__head { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.nfccard__brand {
  font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: #e8cf8a;
}
.nfccard__org { font-size: .62rem; color: #9db3d4; letter-spacing: .04em; display: block; margin-top: .1rem; }
.nfccard__nfc { margin-left: auto; width: 26px; height: 26px; color: #c8a24a; flex: none; }
.nfccard__body { display: flex; gap: .85rem; align-items: center; }
.nfccard__photo {
  width: 72px; height: 72px; border-radius: 12px; flex: none;
  border: 2px solid #c8a24a; object-fit: cover;
  background: #24406b; color: #e8cf8a;
  display: grid; place-items: center; font-weight: 800; font-size: 1.4rem;
}
.nfccard__who { flex: 1 1 auto; min-width: 0; }
.nfccard__hon {
  display: block; font-size: .68rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #c8a24a;
}
.nfccard__name {
  display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.2;
  letter-spacing: -.01em; overflow-wrap: anywhere;
}
.nfccard__rows { display: block; font-size: .78rem; color: #b9c9e3; margin-top: .15rem; }
.nfccard__qr {
  flex: none; background: #fff; border-radius: 10px; padding: 6px;
  width: 84px; height: 84px; display: block;
}
.nfccard__qr img { width: 100%; height: 100%; display: block; }
@media (max-width: 399px) {
  .nfccard__body { flex-wrap: wrap; }
  /* keep the photo beside the name; only the QR code drops to its own row */
  .nfccard__who { flex: 1 1 160px; }
  .nfccard__qr { margin: .4rem auto 0; width: 96px; height: 96px; }
}
.nfccard__foot { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; }
.nfccard__chip {
  width: 34px; height: 25px; flex: none; border-radius: 5px;
  background: linear-gradient(135deg, #e8cf8a, #c8a24a 55%, #a3822f);
  position: relative;
}
.nfccard__chip::after {
  content: ""; position: absolute; inset: 5px 7px;
  border: 1px solid rgba(8, 24, 47, .45); border-radius: 3px;
}
.nfccard__id {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1rem; font-weight: 700; letter-spacing: .12em; color: #e8cf8a;
}
.nfccard__pill {
  margin-left: auto; flex: none;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: var(--r-pill);
}
.nfccard__pill--ok { background: rgba(56, 176, 112, .18); color: #7ee2ab; border: 1px solid rgba(126, 226, 171, .45); }
.nfccard__pill--off { background: rgba(240, 189, 101, .14); color: #f0bd65; border: 1px solid rgba(240, 189, 101, .4); }
.nfccard__hint {
  max-width: 460px; margin: -0.25rem auto 1.1rem; text-align: center;
  font-size: .74rem; color: var(--ink-faint);
}

/* --- length of membership, under the ID card ---------------------------------------------- */

.tenure {
  position: relative; display: block;
  max-width: 460px; margin: 0 auto 1rem;
  padding: .75rem 4.2rem .8rem 1rem; border-radius: 16px;
  background: linear-gradient(135deg, #FFFBEF 0%, #FFFFFF 70%);
  border: 1px solid #EEDFB3;
  box-shadow: 0 10px 22px -18px rgba(154, 122, 40, .55);
}
.tenure__medal {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; color: #C8A24A;
}
.tenure__label {
  display: block; font-size: .62rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #9A7A28;
}
.tenure__nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .85rem; margin-top: .2rem; }
.tenure__nums span { display: inline-flex; align-items: baseline; gap: .28rem; }
.tenure__nums b {
  font-size: 1.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  color: var(--accent-dark); font-variant-numeric: tabular-nums;
}
.tenure__nums small { font-size: .82rem; font-weight: 650; color: #9A7A28; }
.tenure__since { display: block; margin-top: .15rem; font-size: .74rem; color: var(--ink-muted); }

/* --- card tap: the page a tapping phone sees -------------------------------------------- */

.tapbody {
  min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--surface);
}

/* the branded header the card rises out of: same glass-on-blue as sign-in */
.taphero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(1.1rem + var(--safe-t)) 1rem 7.4rem;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 14% 88%, rgba(96, 170, 255, .5), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(6, 22, 60, .85), transparent 55%),
    linear-gradient(135deg, #0B2E7A 0%, #1D66C9 55%, #3E8BE8 100%);
}
.taphero__glass {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
}
.taphero__glass--a { width: 240px; height: 240px; left: -90px; top: -90px; }
.taphero__glass--b { width: 300px; height: 300px; right: -120px; bottom: -170px; }
.taphero__mark {
  position: absolute; right: -46px; top: 38px; width: 210px; height: 210px;
  opacity: .1; filter: grayscale(1) brightness(1.9); pointer-events: none;
}
.taphero__in { position: relative; max-width: 460px; margin: 0 auto; }
.taphero__brand { display: flex; align-items: center; gap: .65rem; }
.taphero__seal {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .38);
}
.taphero__seal img { width: 32px; height: 32px; }
.taphero__name { flex: 1 1 auto; min-width: 0; }
.taphero__org { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.taphero__sub {
  display: block; margin-top: 1px;
  font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.taphero__chip {
  flex: none; display: inline-flex; align-items: center; gap: .3rem;
  padding: .32rem .7rem .32rem .5rem; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 750; letter-spacing: .02em;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .38);
}
.taphero__chip svg { width: 17px; height: 17px; color: #E8CF8A; }
.taphero__title {
  margin: 1.4rem 0 0; color: #fff;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
  animation: tapFade .5s ease-out both;
}

.tap {
  position: relative; z-index: 1; flex: 1 0 auto;
  width: 100%; max-width: 460px; margin: -6.3rem auto 0;
  display: flex; flex-direction: column;
  padding: 0 1rem calc(1.25rem + var(--safe-b));
}

/* the ID card itself: rises into place, catches the light, and pulses from its chip */
.tap__card { position: relative; animation: tapRise .6s cubic-bezier(.2, .7, .2, 1) both; }
.tap__card .nfccard { margin: 0; box-shadow: 0 26px 44px -18px rgba(4, 16, 45, .6); }
.tap__card .nfccard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: tapShine 1.4s .55s ease-out both;
}
.tap__pulse { position: absolute; top: 14px; right: 15px; width: 32px; height: 32px; pointer-events: none; }
.tap__pulse i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(232, 207, 138, .95);
  mix-blend-mode: screen;
  animation: tapPulse 2.4s cubic-bezier(.2, .6, .3, 1) infinite;
}
.tap__pulse i:nth-child(2) { animation-delay: .8s; }
.tap__pulse i:nth-child(3) { animation-delay: 1.6s; }

.tap .tenure { margin: 1rem 0 0; animation: tapFade .5s .2s ease-out both; }

/* the portal vouching for the card */
.tapok {
  display: flex; align-items: center; gap: .75rem;
  margin: 1rem 0 1.1rem; padding: .7rem .9rem; border-radius: 14px;
  background: var(--ok-bg); border: 1px solid var(--ok-line);
  animation: tapFade .5s .25s ease-out both;
}
.tapok__icon {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--ok); color: #fff;
}
.tapok__icon svg { width: 16px; height: 16px; }
.tapok__text strong { display: block; font-size: .9rem; font-weight: 750; color: var(--ok); }
.tapok__text span { display: block; font-size: .76rem; color: var(--ink-muted); }
.tapok--warn { background: var(--warn-bg); border-color: var(--warn-line); }
.tapok--warn .tapok__icon { background: var(--warn); }
.tapok--warn .tapok__text strong { color: var(--warn); }

/* the only two things a tap can hand over */
.tapacts { display: grid; gap: .7rem; animation: tapFade .5s .35s ease-out both; }
.tapact {
  display: flex; align-items: center; gap: .85rem;
  min-height: 72px; padding: .85rem 1rem; border-radius: 18px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.tapact:active { transform: scale(.985); }
.tapact__icon {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
}
.tapact__icon svg { width: 24px; height: 24px; }
.tapact__text { flex: 1 1 auto; min-width: 0; }
.tapact__text strong { display: block; font-size: 1.02rem; font-weight: 750; letter-spacing: -.01em; }
.tapact__text span { display: block; margin-top: 2px; font-size: .76rem; font-weight: 500; opacity: .82; }
.tapact__go { width: 20px; height: 20px; flex: none; opacity: .75; }
.tapact--primary {
  color: #fff;
  background: linear-gradient(135deg, #2F7BD9 0%, #1D66C9 45%, #0B2E7A 100%);
  box-shadow: 0 16px 30px -12px rgba(29, 102, 201, .6);
}
.tapact--primary:hover { color: #fff; box-shadow: 0 18px 34px -12px rgba(29, 102, 201, .7); }
.tapact--primary .tapact__icon { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.tapact--secondary {
  color: var(--accent-dark); background: var(--surface);
  border: 1px solid var(--accent-line);
  box-shadow: 0 10px 22px -16px rgba(11, 46, 122, .4);
}
.tapact--secondary:hover { color: var(--accent-dark); background: var(--accent-soft); }
.tapact--secondary .tapact__icon { background: var(--accent-soft); color: var(--accent); }

.tapnone {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .95rem 1rem; border-radius: 16px;
  background: var(--surface-alt); border: 1px dashed var(--line-strong);
  animation: tapFade .5s .35s ease-out both;
}
.tapnone__icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-muted);
}
.tapnone__icon svg { width: 21px; height: 21px; }
.tapnone__text strong { display: block; font-size: .92rem; font-weight: 700; color: var(--ink); }
.tapnone__text span { display: block; margin-top: 2px; font-size: .8rem; color: var(--ink-muted); }
.tapnone--missing { background: var(--surface); border-style: solid; box-shadow: var(--sh-raised); }

.tapfoot {
  margin-top: auto; padding-top: 2.2rem;
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  text-align: center; font-size: .64rem; line-height: 1.55; color: var(--ink-faint);
}
.tapfoot__motto { font-size: .82rem; font-style: italic; font-weight: 600; color: #9A7A28; margin-bottom: .3rem; }
.tapfoot__motto::before {
  content: ""; display: block; width: 38px; height: 2px; margin: 0 auto .55rem; border-radius: 2px;
  background: linear-gradient(90deg, #a3822f, #e8cf8a, #a3822f);
}

@keyframes tapRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tapFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tapShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes tapPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tap__pulse { display: none; } }

/* --- card tap: the controls behind it (My ID, and the officer's view of a record) --- */

.cardtap--id { max-width: 460px; margin-left: auto; margin-right: auto; }
.cardtap__lead { font-size: .85rem; color: var(--ink-muted); margin-bottom: 1rem; }
.cardtap__state {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .85rem; color: var(--ink-muted); margin-bottom: .6rem;
}
.cardtap__state strong { color: var(--ink); font-weight: 650; min-width: 8.5rem; }
.cardtap__state a { margin-left: auto; }
.cardtap .cardlink { margin-top: 1.1rem; }

.sharelist { border-top: 1px solid var(--line); margin: 0 0 1rem; }
.sharerow {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0; margin: 0;
  border-bottom: 1px solid var(--line);
}
.sharerow__text { flex: 1 1 auto; min-width: 0; font-size: .8rem; color: var(--ink-muted); }
.sharerow__text strong { display: block; font-size: .9rem; font-weight: 650; color: var(--ink); }

/* an on/off switch that is really a submit button */
.switch {
  position: relative; flex: none;
  width: 52px; height: 32px; padding: 0;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--line-strong);
  transition: background-color .15s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(17, 17, 17, .25);
  transition: transform .15s ease;
}
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }

.cardlink__row { display: flex; gap: .5rem; }
.cardlink__row input { flex: 1 1 auto; min-width: 0; background: var(--surface-alt); color: var(--ink-soft); }
.cardlink__actions { margin: .8rem 0 .3rem; }
.cardlink__actions form { margin: 0; }
.hint--warn { color: var(--warn); }

/* a checkbox with its sentence beside it */
.check {
  display: flex; align-items: flex-start; gap: .55rem; margin: 0;
  font-size: .85rem; font-weight: 550; color: var(--ink-soft); cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

/* --- tables ---------------------------------------------------------------------------- */

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
thead th {
  text-align: left; padding: .5rem .65rem; white-space: nowrap;
  font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-muted); font-weight: 700; background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
tbody td { padding: .6rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-alt); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 639px) {
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack thead { display: none; }
  .table--stack tr {
    border: 1px solid var(--line); border-radius: var(--r-ctl);
    padding: .3rem .1rem; margin-bottom: .6rem; background: var(--surface);
  }
  .table--stack tr:hover td { background: transparent; }
  .table--stack tr:last-child { margin-bottom: 0; }
  .table--stack td {
    border: 0; padding: .3rem .7rem;
    display: flex; gap: .75rem; align-items: baseline; justify-content: space-between;
  }
  .table--stack td::before {
    content: attr(data-label); flex: 0 0 auto;
    font-size: .64rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-muted); font-weight: 700;
  }
  .table--stack td:empty { display: none; }
  .table--stack td[data-primary] {
    padding-top: .5rem; padding-bottom: .5rem;
    display: block; font-size: .95rem; font-weight: 650;
  }
  .table--stack td[data-primary]::before { display: none; }
}

/* --- badges, notices --------------------------------------------------------------------- */

.badge {
  display: inline-block; padding: .14rem .55rem; border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 650; white-space: nowrap;
  background: var(--surface-sunken); color: var(--ink-muted); border: 1px solid transparent;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge--warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.badge--bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.badge--gold { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }

.notice {
  padding: .7rem .9rem; border-radius: var(--r-card); margin-bottom: 1rem;
  border: 1px solid var(--line); background: var(--surface); font-size: .86rem;
}
.notice--success { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.notice--error { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.notice--info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.notice ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.notice strong { font-weight: 700; }

.empty { text-align: center; padding: 2rem .75rem; color: var(--ink-muted); font-size: .88rem; }
.hint { font-size: .76rem; color: var(--ink-muted); margin: .3rem 0 0; font-weight: 450; }
.mono, .eagle-id {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: .84em; letter-spacing: .01em;
}

/* --- definition lists ---------------------------------------------------------------------- */

.dl { margin: 0; font-size: .87rem; }
.dl dt {
  color: var(--ink-muted); font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-top: .7rem;
}
.dl dt:first-child { margin-top: 0; }
.dl dd { margin: .1rem 0 0; color: var(--ink-soft); }
@media (min-width: 640px) {
  .dl { display: grid; grid-template-columns: minmax(130px, 30%) 1fr; gap: .35rem .9rem; }
  .dl dt { margin-top: 0; align-self: baseline; }
  .dl dd { margin: 0; }
}

.portrait, .portrait--empty { width: 116px; height: 116px; border-radius: var(--r-ctl); display: block; margin: 0 auto; }
.portrait { object-fit: cover; border: 1px solid var(--line); background: var(--surface-sunken); }
.portrait--empty {
  border: 1px dashed var(--line-strong); display: grid; place-items: center;
  color: var(--ink-muted); font-size: .72rem; text-align: center;
}

/* --- pagination ------------------------------------------------------------------------------ */

.pager { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: 1rem; padding: 0 1rem 1rem; }
.card > .pager { padding: 0; }
.pager a, .pager span {
  min-width: 38px; min-height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 .55rem; border-radius: var(--r-ctl);
  font-size: .85rem; background: var(--surface); color: var(--ink-muted);
  border: 1px solid var(--line); font-weight: 550;
}
.pager a:hover { background: var(--surface-alt); }
.pager .is-current { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 650; }

/* --- forms ------------------------------------------------------------------------------------- */

fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
fieldset:last-of-type { margin-bottom: .5rem; }
legend {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--ink-muted); padding: 0 0 .45rem;
  border-bottom: 1px solid var(--line); margin-bottom: .9rem; width: 100%;
}

.field { margin-bottom: .85rem; }
label { display: block; font-size: .76rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .3rem; }
.required::after { content: " *"; color: var(--bad); }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=search], input[type=tel], input[type=file],
select, textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* keeps iOS from zooming on focus */
  min-height: var(--tap);
  padding: .5rem .75rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 5rem; resize: vertical; line-height: 1.5; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
                    linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}
input[type=file] { padding: .45rem .6rem; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 38px; padding: .45rem .95rem;
  font: inherit; font-size: .85rem; font-weight: 650;
  border-radius: var(--r-ctl); border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: #fff; text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .12s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--accent); color: #fff; }
.btn--gold:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink-soft); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-alt); color: var(--ink); }
.btn--danger { background: var(--surface); color: var(--bad); border-color: var(--bad-line); }
.btn--danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn--sm { min-height: 30px; padding: .2rem .6rem; font-size: .76rem; border-radius: 8px; }
.btn--block { width: 100%; }
.btn svg { width: 17px; height: 17px; }

.btnrow { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.btnrow--end { justify-content: flex-end; }

.filters { display: grid; gap: .6rem; }
.filters .field { margin: 0; }
@media (min-width: 640px) {
  .filters { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
  .filters .field--grow { grid-column: span 2; }
}

/* --- public pages: glassmorphism on a blue gradient ---------------------------------------------- */

.publicshell {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: max(1.25rem, var(--safe-t)) 1rem calc(1.25rem + var(--safe-b));
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 88%, rgba(96, 170, 255, .5), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(6, 22, 60, .85), transparent 55%),
    linear-gradient(135deg, #0B2E7A 0%, #1D66C9 55%, #3E8BE8 100%);
}
/* soft floating glass shapes, as in the reference art */
.publicshell::before, .publicshell::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
}
.publicshell::before { width: 340px; height: 340px; left: -110px; top: -110px; }
.publicshell::after { width: 460px; height: 460px; right: -160px; bottom: -180px; }

.authwrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 3.5rem; width: 100%; max-width: 980px;
}
.authcopy { display: none; color: #fff; max-width: 400px; flex: 1 1 auto; }
@media (min-width: 900px) { .authcopy { display: block; } }
.authcopy h1 {
  color: #fff; font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem;
}
.authcopy__rule {
  width: 64px; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); margin: 0 0 1.1rem;
}
.authcopy p { color: rgba(255, 255, 255, .82); font-size: .92rem; line-height: 1.7; }
.authcopy .gbtn--ghost { margin-top: 1.2rem; }

/* the frosted card */
.publiccard {
  position: relative; z-index: 1;
  width: 100%; max-width: 380px; flex: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .09));
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(4, 16, 45, .38);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 1.8rem 1.6rem 1.5rem;
  color: #fff;
}
.publiccard h1 { color: #fff; }
.publiccard .hint, .publiccard a { color: rgba(255, 255, 255, .85); }
.publiccard a { font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.publiccard a:hover { color: #fff; }

.gseal {
  width: 96px; height: 96px; margin: -0.4rem auto 1rem;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.gseal img { width: 74px; height: 74px; }

.publiccard .brand { display: block; text-align: center; margin-bottom: 1.2rem; }
.publiccard .brand__mark { display: none; }
.publiccard .brand__name {
  display: block; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: #fff;
}
.publiccard .brand__sub {
  display: block; font-size: .62rem; color: rgba(255, 255, 255, .7);
  letter-spacing: .16em; text-transform: uppercase; margin-top: 2px;
}

/* pill inputs with a leading icon */
.gfield { position: relative; margin-bottom: .8rem; }
.gfield svg {
  position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: rgba(255, 255, 255, .8); pointer-events: none;
}
.publiccard input[type=email], .publiccard input[type=password], .publiccard input[type=text] {
  width: 100%; min-height: 48px;
  padding: .6rem 1.1rem .6rem 2.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.publiccard input::placeholder { color: rgba(255, 255, 255, .72); }
.publiccard input:focus {
  border-color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14);
  outline: none;
}
.publiccard label { color: rgba(255, 255, 255, .85); }

.gmeta {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  margin: .2rem .3rem 1rem; font-size: .78rem; color: rgba(255, 255, 255, .85);
}
.gcheck { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; font-weight: 550; }
.gcheck input {
  width: 16px; height: 16px; min-height: 0; margin: 0;
  accent-color: #fff; cursor: pointer;
}

.gbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; padding: .6rem 1.6rem;
  border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #0B2E7A;
  font: inherit; font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(4, 16, 45, .3);
  transition: transform .12s ease, box-shadow .12s ease;
}
.gbtn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(4, 16, 45, .36); }
.gbtn--ghost {
  width: auto; background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: none;
  text-decoration: none; font-size: .78rem; padding: .55rem 1.4rem; min-height: 42px;
}
.gbtn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.publiccard__legal {
  margin-top: 1.3rem; padding-top: .95rem;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-size: .68rem; color: rgba(255, 255, 255, .65);
  text-align: center; line-height: 1.55;
}

/* the Verify page keeps readable data on a paper panel inside the glass */
.gpaper {
  background: rgba(255, 255, 255, .95);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.gpaper .dl dd { color: var(--ink-soft); }
.gpaper .dl dt { color: var(--ink-muted); }

/* --- install banner ------------------------------------------------------------------------------ */

.install {
  display: none; align-items: center; gap: .7rem;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-dark);
  border-radius: var(--r-card); padding: .6rem .8rem; margin-bottom: 1rem; font-size: .82rem;
}
.install[data-show="true"] { display: flex; flex-wrap: wrap; }
.install .spacer { flex: 1 1 auto; }

/* --- footer --------------------------------------------------------------------------------------- */

.sitefoot {
  max-width: 1280px; margin: 0 auto;
  padding: .5rem 1rem calc(var(--tabbar-h) + 1.25rem);
  font-size: .7rem; color: var(--ink-faint); line-height: 1.6; text-align: center;
}
@media (min-width: 1024px) {
  .sitefoot { margin-left: var(--sidebar-w); padding-bottom: 1.5rem; }
}
.sitefoot strong { color: var(--ink-muted); font-weight: 650; }

/* --- print ------------------------------------------------------------------------------------------ */

@media print {
  .sidebar, .mtop, .tabbar, .backdrop, .sitefoot, .no-print, .install { display: none !important; }
  body { background: #fff; }
  .main { margin: 0; padding: 0; max-width: none; }
  .card { border: 0; box-shadow: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
