/* Admin additions on top of the portal's app.css; everything else is the portal's own grammar. */
.brand, .me { gap: 10px; text-decoration: none; }
.brand .tagline { font-size: 12px; font-weight: 500; color: var(--faint); padding-left: 10px; border-left: 1px solid var(--line); }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.nums > div { padding: 14px 0; border-top: 1px solid var(--line); }
.nums > div:nth-child(-n+2) { border-top: 0; }
.nums b { display: block; font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.nums small { display: block; font-size: 13px; color: var(--faint); }
.nums .k { font-size: 13px; color: var(--muted); }
.row .why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.word { flex: none; width: 76px; font-size: 13px; font-weight: 500; color: var(--ink); }
.word.need { color: var(--acc); }
.bottom-tabs a svg { width: 20px; height: 20px; }

/* sign-in and refusal screens: the portal's sign-in card on the same ground */
/* Dark ground: the app icon's gradient (blue high right, warm low left), held less far back than in the user portal
   so it reads as a gradient rather than flat black. Light keeps the portal's own ground. */
:root[data-theme="dark"] .ambient, :root:not([data-theme]) .ambient {
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(58,86,128,.62), transparent 72%),
    radial-gradient(70% 65% at 0% 100%, rgba(74,62,52,.52), transparent 72%),
    linear-gradient(160deg, #141a24 0%, #0f1216 55%, #111111 100%);
}
:root[data-theme="dark"] .ambient::after, :root:not([data-theme]) .ambient::after { background: none; }

/* Sign-in: one centred glass card on the admin ground, logo above, the usual pattern for an internal sign-in page. */
.signin { background: none; color: var(--ink); display: grid; place-items: center; padding: 24px 16px; overflow: auto; }
.signin .stack { width: min(440px, 100%); display: grid; justify-items: center; gap: 28px; }
.signin .top { position: static; height: 28px; filter: none; }
:root[data-theme="dark"] .signin .top, :root:not([data-theme]) .signin .top { filter: invert(1) brightness(2); }
.si-card { position: relative; inset: auto; transform: none; width: 100%; padding: 44px 40px 32px; border-radius: 28px; text-align: center;
  color: var(--ink); animation: rise .5s var(--ease-arrive) both;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 55%), rgba(20,22,27,.42);
  -webkit-backdrop-filter: blur(44px) saturate(1.8); backdrop-filter: blur(44px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.18), 0 30px 80px rgba(0,0,0,.40); }
:root[data-theme="light"] .si-card {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.62) 60%), rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0,0,0,.05), 0 2px 6px rgba(30,40,60,.06), 0 30px 80px -20px rgba(30,40,60,.28); }
.si-card .h { font-size: 44px; line-height: 48px; }
.si-card .h .acc { color: var(--acc); }
.si-card .sub { margin: 14px 0 32px; color: var(--muted); }
.si-card .btn.quiet { width: 100%; margin-top: 0; color: var(--ink); background: var(--field); box-shadow: inset 0 0 0 1px var(--line); }
.si-card .fine { margin: 24px 0 0; font-size: 12px; line-height: 18px; color: var(--faint); }
/* Google's own button styling (neutral surface, full-colour G), per Google's sign-in branding guidelines. */
.g-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px; padding: 0 20px; border-radius: 999px;
  border: 1px solid #8e918f; background: #131314; color: #e3e3e3; font: 500 15px/1 var(--font-sans); cursor: pointer; transition: background .15s, box-shadow .15s; }
.g-btn:hover { background: #1f2023; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.g-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
:root[data-theme="light"] .g-btn { border-color: #dadce0; background: #fff; color: #1f1f1f; }
:root[data-theme="light"] .g-btn:hover { background: #f8faff; box-shadow: 0 1px 3px rgba(60,64,67,.2); }
.signin footer { position: static; justify-content: center; color: var(--faint); }
@media (max-width: 640px) {
  .si-card { padding: 32px 22px 24px; border-radius: 24px; animation-name: rise; }
  .si-card .h { font-size: 36px; line-height: 40px; }
}
