/* ─────────────────────────────────────────────
   NIGHTWATCH  –  Main stylesheet
   Font: Inter loaded via <link> in each template
   ───────────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Theme toggle button (all pages) ── */
.theme-toggle {
  position: fixed; top: 14px; right: 14px; z-index: 200;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--bdr); background: var(--surf);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--txm);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t), color var(--t), background var(--t);
  outline: none;
}
.theme-toggle:hover {
  border-color: var(--brand); color: var(--brand);
  box-shadow: 0 0 0 3px var(--glow), var(--shadow-sm);
}
/* Icon visibility — CSS drives the swap, no JS needed */
.toggle-icon { display: none; width: 16px; height: 16px; flex-shrink: 0; }
[data-theme="light"] .toggle-icon-moon { display: block; }
[data-theme="dark"]  .toggle-icon-sun  { display: block; }
/* Topbar variant (home page) */
.theme-toggle-inline {
  position: static;
  box-shadow: none;
  width: 36px; height: 36px;
}

/* ── Design tokens ── */
:root {
  --brand:     #3C7B57;
  --brand-d:   #2d5e41;
  --brand-l:   #5CB87A;
  --glow:      rgba(60, 123, 87, .18);

  --bg:        #f4f7f5;
  --surf:      #ffffff;
  --surf2:     #f0f5f2;
  --bdr:       #d8e4de;
  --bdr-f:     #3C7B57;

  --tx:        #111c16;
  --tx2:       #4b6257;
  --txm:       #7a9a89;

  --err:       #c0392b;
  --err-bg:    #fdf2f2;
  --err-bdr:   rgba(192, 57, 43, .2);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);

  --r:   16px;
  --rs:  8px;
  --t:   .18s ease;

  /* Tells the browser which scheme the page is in: native controls follow
     it, and so do SVG logos that carry a dark-scheme variant. */
  color-scheme: light;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0e1712;
  --surf:      #182418;
  --surf2:     #1f2e22;
  --bdr:       #2a3d30;
  --bdr-f:     #5CB87A;
  --tx:        #e8f5ed;
  --tx2:       #8baa96;
  --txm:       #5a7a66;
  --err-bg:    #2a1515;
  --shadow-md: 0 4px 16px rgba(0,0,0,.40);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.55);
}

/* ── Base ── */
html, body {
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--tx);
  background: var(--bg);
}

/* ─────────────────────────────────────────────
   LOGIN PAGE  (.page)
   ───────────────────────────────────────────── */
.page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 25fr 75fr;
}
@media (max-width: 720px) {
  .page { grid-template-columns: 1fr; }
  .brand-panel { min-height: 200px; padding: 40px 32px; }
  .brand-features { display: none; }
}

/* Brand panel (left) */
.brand-panel {
  position: relative;
  background: linear-gradient(145deg, #2A5E3F 0%, #3C7B57 55%, #5CB87A 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 52px;
  overflow: hidden;
  color: #fff;
}
.brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(255,255,255,.07) 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.05) 0%, transparent 50%);
  pointer-events: none;
}
.brand-panel::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 48px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.brand-deco {
  position: absolute;
  top: -60px; right: 40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 36px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.brand-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 44px; }
/* A configured logo (the org's, or the app's on its login page) can be any
   colour, so it sits on its own white tile to stay legible on the panel. */
.brand-logo-img {
  height: 48px; width: auto; object-fit: contain;
  padding: 7px; background: #fff; border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  color-scheme: light;
}
.brand-logo-name { font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: #fff; }
.brand-headline { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 16px; }
.brand-sub { font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.6; max-width: 450px; margin-bottom: 44px; }
.brand-features { display: flex; flex-direction: column; gap: 12px; }
.brand-feature { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.82); }
.brand-feature-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

/* Form panel (right) */
.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  background: var(--bg);
}
.form-card { width: 100%; max-width: 380px; }

/* Back arrow at the top of a form card — a subtle round icon, distinct
   from the primary/secondary action buttons. */
.card-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 20px;
  color: var(--txm); background: var(--surf2); border: 1px solid var(--bdr);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.card-back:hover { color: var(--tx); border-color: var(--txm); text-decoration: none; }
.card-back svg { width: 18px; height: 18px; }
.form-title { font-size: 24px; font-weight: 700; letter-spacing: -.4px; color: var(--tx); margin-bottom: 6px; }
.form-subtitle { font-size: 14px; color: var(--txm); margin-bottom: 36px; }
.form-subtitle strong { color: var(--brand); font-weight: 600; }

/* Floating-label field */
.field { position: relative; height: 56px; margin-bottom: 18px; }
.field input {
  width: 100%; height: 100%;
  padding: 20px 16px 0;
  font-family: inherit; font-size: 15px;
  color: var(--tx); background: var(--surf2);
  border: 1.5px solid var(--bdr); border-radius: var(--rs);
  outline: none; appearance: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field input:focus {
  border-color: var(--bdr-f);
  background: var(--surf);
  box-shadow: 0 0 0 3px var(--glow);
}
.field label {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--txm);
  pointer-events: none;
  transition: top var(--t), font-size var(--t), color var(--t), transform var(--t);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 8px; transform: none;
  font-size: 11px; font-weight: 600; color: var(--brand); letter-spacing: .3px;
}
.field input:not(:focus):not(:placeholder-shown) + label { color: var(--txm); }

/* Captcha */
.captcha-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surf2); border: 1.5px solid var(--bdr); border-radius: var(--rs);
  margin-bottom: 18px;
}
.captcha-row.hidden { display: none; }
.captcha-label { font-size: 13.5px; color: var(--tx2); flex: 1; }
.captcha-row input {
  width: 70px; padding: 8px 10px;
  font-family: inherit; font-size: 15px; font-weight: 600; text-align: center;
  color: var(--tx); background: var(--surf);
  border: 1.5px solid var(--bdr); border-radius: 6px; outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.captcha-row input:focus { border-color: var(--bdr-f); box-shadow: 0 0 0 3px var(--glow); }
.cap-row { display: flex; justify-content: center; margin-bottom: 18px; }
/* Cap CAPTCHA widget (login.html). It renders in a shadow DOM, so regular
   selectors can't reach its internals — it is themed through its --cap-*
   custom properties, which inherit across the shadow boundary. Mapped to
   the design tokens above, so [data-theme="dark"] restyles it too. Full
   width, matching the .field inputs. */
cap-widget {
  display: block;
  width: 100%;
  --cap-widget-width: 100%;
  --cap-font: 'Inter', system-ui, -apple-system, sans-serif;
  --cap-background: var(--surf2);
  --cap-color: var(--tx2);
  --cap-border-color: var(--bdr);
  --cap-border-radius: var(--rs);
  --cap-checkbox-background: var(--surf);
  --cap-checkbox-border: 1.5px solid var(--bdr);
  --cap-checkbox-border-radius: 6px;
  --cap-spinner-color: var(--bdr-f);
  --cap-spinner-background-color: var(--bdr);
  --cap-focus-ring: var(--glow);
  --cap-troubleshoot-color: var(--bdr-f);
  /* Default checkmark recolored to the brand green; a data URI can't use
     var(), so the dark theme overrides it below. */
  --cap-checkmark: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cstyle%3E%40keyframes%20anim%7B0%25%7Bstroke-dashoffset%3A23.21320343017578px%7Dto%7Bstroke-dashoffset%3A0%7D%7D%3C%2Fstyle%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%233C7B57%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22m5%2012%205%205L20%207%22%20style%3D%22stroke-dashoffset%3A0%3Bstroke-dasharray%3A23.21320343017578px%3Banimation%3Aanim%20.5s%20ease%22%2F%3E%3C%2Fsvg%3E");
}
[data-theme="dark"] cap-widget {
  --cap-checkmark: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cstyle%3E%40keyframes%20anim%7B0%25%7Bstroke-dashoffset%3A23.21320343017578px%7Dto%7Bstroke-dashoffset%3A0%7D%7D%3C%2Fstyle%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%235CB87A%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22m5%2012%205%205L20%207%22%20style%3D%22stroke-dashoffset%3A0%3Bstroke-dasharray%3A23.21320343017578px%3Banimation%3Aanim%20.5s%20ease%22%2F%3E%3C%2Fsvg%3E");
}

/* Error inline */
.error-msg {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; margin-top: 14px;
  background: var(--err-bg);
  border: 1px solid var(--err-bdr); border-radius: var(--rs);
  color: var(--err); font-size: 13.5px; font-weight: 500;
}
.error-msg::before { content: '⚠'; font-size: 14px; flex-shrink: 0; }

/* Footer links */
.form-footer { display: flex; justify-content: center; gap: 24px; margin-top: 28px; }
.form-footer a { font-size: 13px; color: var(--txm); text-decoration: none; transition: color var(--t); }
.form-footer a:hover { color: var(--brand); }
.divider { width: 1px; background: var(--bdr); align-self: stretch; }

.powered { margin-top: 48px; font-size: 12px; color: var(--txm); text-align: center; display: flex; align-items: center; gap: 6px; justify-content: center; }
.powered-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }

/* ─────────────────────────────────────────────
   HOME PAGE
   ───────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bdr);
}
[data-theme="dark"] .topbar { background: rgba(24, 36, 24, .85); }
[data-theme="dark"] .brand-panel {
  background: linear-gradient(145deg, #070f09 0%, #0e1f14 55%, #162b1c 100%);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar-logo-img { height: 28px; width: auto; object-fit: contain; }
/* Organisation name (ORG.name) over a small descriptor: the same lockup as
   the console's "nightwatch / CONSOLE". */
.topbar-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.topbar-text strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--tx); }
.topbar-text span { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tx2); }
@media (max-width: 400px) { .topbar-text { display: none; } }
.topbar-right { display: flex; align-items: center; gap: 12px; }

@media (max-width: 560px) {
  .topbar { padding: 0 16px; height: 56px; }
  .home-logout-btn .btn-label { display: none; }
  .home-logout-btn { padding: 7px 10px; }
  .topbar-app-btn .btn-label { display: none; }
  .topbar-app-btn { padding: 0 9px; }
}

/* User menu: the pill (avatar + caret) opens a dropdown holding two-factor,
   sign out and, last, who is signed in. */
.user-menu { position: relative; }
.user-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 9px 4px 4px;
  background: var(--surf2); border: 1px solid var(--bdr); border-radius: 100px;
  font-family: inherit; cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.user-pill:hover { border-color: var(--txm); }
.user-caret { font-size: 11px; color: var(--txm); margin-left: 1px; }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-l) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase;
}

.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  min-width: 200px; max-width: min(300px, calc(100vw - 24px)); padding: 6px;
  background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--rs);
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.16));
  display: none; flex-direction: column; gap: 2px;
}
.user-menu.open .user-dropdown { display: flex; }
.user-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border-radius: 7px;
  font-size: 13.5px; color: var(--tx2); background: transparent;
  border: none; cursor: pointer; text-align: left; text-decoration: none;
  transition: background var(--t), color var(--t);
}
.user-dropdown-item:hover { background: var(--surf2); color: var(--tx); text-decoration: none; }
.user-dropdown-item svg { width: 16px; height: 16px; flex: none; }
/* Not a link: the signed-in user's name over their email (email alone when
   there is no name on file). */
.user-dropdown-who {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  margin-top: 4px; padding: 10px 11px 6px; border-top: 1px solid var(--bdr);
}
.who-name { font-size: 13.5px; font-weight: 600; color: var(--tx); overflow-wrap: anywhere; }
.who-email { font-size: 12.5px; color: var(--txm); overflow-wrap: anywhere; }
.who-email:first-child { font-size: 13.5px; font-weight: 500; color: var(--tx2); }

.home-logout-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--txm); background: transparent;
  border: 1px solid var(--bdr); border-radius: var(--rs); cursor: pointer;
  transition: all var(--t);
}
.home-logout-btn:hover { color: var(--tx); background: var(--surf2); border-color: var(--txm); }

/* Top-bar links to system apps (e.g. the console) */
.topbar-app-btn {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 10px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--tx); background: var(--surf); text-decoration: none;
  border: 1px solid var(--bdr); border-radius: var(--rs);
  transition: all var(--t);
}
/* The hover stays light: the app's logo is an image and cannot change
   colour with the button. */
.topbar-app-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--surf2); }
.topbar-app-btn svg, .topbar-app-btn img { width: 20px; height: 20px; object-fit: contain; }

.home-main { max-width: 960px; margin: 0 auto; padding: 52px 24px 80px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txm); margin-bottom: 20px; }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.app-card {
  background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--r);
  padding: 28px 20px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }

.app-icon-wrap {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--brand); overflow: hidden;
}
.app-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.app-name { font-size: 14px; font-weight: 600; color: var(--tx); text-align: center; }
.app-url  { font-size: 12px; color: var(--txm); text-align: center; word-break: break-all; }

/* Shown instead of the grid when the user has no applications. */
.home-empty {
  max-width: 420px; margin: 8vh auto 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.home-empty-icon {
  width: 52px; height: 52px; margin-bottom: 6px; border-radius: 14px;
  background: var(--surf2); border: 1px solid var(--bdr); color: var(--txm);
  display: flex; align-items: center; justify-content: center;
}
.home-empty-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.2px; color: var(--tx); }
.home-empty-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--tx2); }

/* ─────────────────────────────────────────────
   SHARED CARD  (authorize + error pages)
   ───────────────────────────────────────────── */
.card-page {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 16px;
}
.card {
  background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--r);
  box-shadow: var(--shadow-md); width: 100%; max-width: 420px; overflow: hidden;
}

/* ─────────────────────────────────────────────
   AUTHORIZE PAGE
   ───────────────────────────────────────────── */
.card-header {
  padding: 32px 32px 24px; border-bottom: 1px solid var(--bdr);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surf2);
}
.app-icons { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.app-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--surf); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--brand);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: contain; }
.app-icon.borderless { background: none; border: none; box-shadow: none; }
.connect-dots { display: flex; align-items: center; gap: 4px; }
.connect-dots .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bdr); }

.card-title { font-size: 17px; font-weight: 700; color: var(--tx); margin-bottom: 6px; letter-spacing: -.3px; }
.card-sub { font-size: 13.5px; color: var(--txm); line-height: 1.5; }
.card-sub strong { color: var(--tx2); font-weight: 600; }

.card-body { padding: 24px 32px; }
.scopes-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--txm); margin-bottom: 14px; }
.scope-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.scope-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: var(--surf2); border: 1px solid var(--bdr); border-radius: var(--rs);
}
.scope-check {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; flex-shrink: 0; margin-top: 1px;
}
.scope-name { font-size: 13.5px; font-weight: 600; color: var(--tx); margin-bottom: 2px; }
.scope-desc { font-size: 12.5px; color: var(--txm); }

.card-footer { padding: 0 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.consent-note { font-size: 12px; color: var(--txm); text-align: center; line-height: 1.5; margin-top: 4px; }

/* ─────────────────────────────────────────────
   ERROR PAGE
   ───────────────────────────────────────────── */
.brand-strip { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; text-decoration: none; }
.brand-strip-img { height: 30px; width: auto; object-fit: contain; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--tx); letter-spacing: -.3px; }

.card-top  { padding: 40px 36px 32px; border-bottom: 1px solid var(--bdr); text-align: center; }
.card-bottom { padding: 24px 36px; display: flex; flex-direction: column; gap: 10px; }

.error-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--err-bg); border: 1px solid var(--err-bdr);
  font-size: 32px; margin-bottom: 20px;
}
.error-code  { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--err); margin-bottom: 10px; }
.error-title { font-size: 20px; font-weight: 700; color: var(--tx); letter-spacing: -.3px; margin-bottom: 10px; }
.error-desc  { font-size: 14px; color: var(--txm); line-height: 1.6; }

/* ─────────────────────────────────────────────
   SHARED BUTTONS
   ───────────────────────────────────────────── */
.btn {
  display: block; width: 100%;
  padding: 13px 20px;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .1px;
  border: none; border-radius: var(--rs); cursor: pointer;
  text-decoration: none; text-align: center;
  transition: background var(--t), box-shadow var(--t), transform var(--t);
}
.btn:active { transform: translateY(0) !important; }

.btn-primary { color: #fff; background: var(--brand); }
.btn-primary:hover { background: var(--brand-d); box-shadow: 0 4px 14px rgba(60,123,87,.35); transform: translateY(-1px); }

.btn-ghost { color: var(--txm); background: transparent; border: 1px solid var(--bdr); }
.btn-ghost:hover { color: var(--tx); background: var(--surf2); }
