/* ============================================================
   FAS2rDNA — app.css  v2
   Design: precision-science aesthetic
   Palette: deep navy + electric teal accent + warm white
   Mobile-first, minimalist, no emoji
   ============================================================ */

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  /* Palette */
  --ink:        #0f1923;
  --ink-2:      #3a4a5c;
  --ink-3:      #6b7d90;
  --teal:       #0ea5b0;
  --teal-d:     #0b8a94;
  --teal-l:     #e6f7f8;
  --teal-mid:   #cdf0f2;
  --accent:     #e55a2b;
  --bg:         #ffffff;
  --bg-2:       #f8fafc;
  --bg-3:       #f0f4f8;
  --border:     #e2e8f0;
  --border-2:   #cbd5e1;

  /* Semantic */
  --ok:         #059669;
  --ok-bg:      #ecfdf5;
  --ok-border:  #a7f3d0;
  --err:        #dc2626;
  --err-bg:     #fef2f2;
  --err-border: #fecaca;
  --warn:       #d97706;
  --warn-bg:    #fffbeb;
  --warn-border:#fde68a;

  /* Tier colors */
  --free-bg:    #dbeafe;
  --free-ink:   #1e40af;
  --paid-bg:    #ede9fe;
  --paid-ink:   #5b21b6;
  --admin-bg:   #fce7f3;
  --admin-ink:  #9d174d;

  /* Type */
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:       'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Scale */
  --r:          6px;
  --r-lg:       12px;
  --r-xl:       18px;
  --shadow-sm:  0 1px 2px rgba(15,25,35,.06);
  --shadow:     0 2px 8px rgba(15,25,35,.08), 0 1px 2px rgba(15,25,35,.04);
  --shadow-lg:  0 8px 32px rgba(15,25,35,.12), 0 2px 8px rgba(15,25,35,.06);
  --nav-h:      64px;
  --w:          1140px;
  --w-narrow:   680px;
  --w-mid:      860px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; tab-size: 2; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ── Google Fonts import ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem);   font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin-bottom: .75rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .45rem; }
p  { margin-bottom: 1rem; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }
code {
  font-family: var(--mono);
  font-size: .82em;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--teal-d);
  padding: .1em .4em;
  border-radius: 4px;
}
pre.code-block {
  font-family: var(--mono);
  font-size: .82rem;
  background: var(--ink);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-lg);
  overflow-x: auto;
  margin: 1.25rem 0;
  line-height: 1.7;
  white-space: pre-wrap;
}
.hint { font-size: .8rem; color: var(--ink-3); }
label .hint { font-weight: 400; }

/* ── Layout ─────────────────────────────────────────────────── */
.container         { width: 100%; max-width: var(--w);        margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: var(--w-narrow); }
.container--mid    { max-width: var(--w-mid); }
.section           { padding: 5rem 0; }
.section--light    { background: var(--bg-2); }
.section--dark     { background: var(--ink); color: #fff; }
.section--dark p   { color: rgba(255,255,255,.7); }
.section--dark h2  { color: #fff; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.nav--scrolled { box-shadow: var(--shadow); }
.nav__inner {
  max-width: var(--w); margin: 0 auto; padding: 0 1.25rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo {
  display: flex; align-items: center; gap: .6rem; flex-shrink: 0;
}
.nav__logo img { height: 44px; width: auto; }
.nav__logo-name {
  font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em;
}
.nav__links {
  display: flex; align-items: center; gap: .15rem;
}
.nav__links a {
  display: block; padding: .4rem .7rem; border-radius: var(--r);
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-3); text-decoration: none; }
.nav__burger {
  display: none; background: none; border: 1.5px solid var(--border);
  border-radius: var(--r); padding: .45rem .55rem; cursor: pointer; color: var(--ink);
  flex-shrink: 0;
}
.nav__burger svg { display: block; }

@media (max-width: 768px) {
  .nav__burger { display: flex; align-items: center; }
  .nav__links {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column; align-items: stretch;
    padding: 1.5rem 1.25rem; gap: .25rem;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav__links.is-open { 
      display: flex;
      z-index: 9999;
      height: calc(100dvh - var(--nav-h));
  }
  .nav__links a { padding: .85rem 1rem; font-size: 1rem; border-radius: var(--r-lg); }
  .nav__links .btn { text-align: center; margin-top: .25rem; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.35rem; border-radius: var(--r-lg);
  font-size: .875rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: none; white-space: nowrap; text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s, color .15s;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn--primary  { background: var(--teal);   color: #fff; box-shadow: 0 1px 4px rgba(14,165,176,.3); }
.btn--primary:hover  { background: var(--teal-d); box-shadow: 0 4px 12px rgba(14,165,176,.35); }
.btn--outline  { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn--outline:hover  { background: var(--teal-l); }
.btn--ghost    { background: var(--bg-3); color: var(--ink); border: 1.5px solid var(--border); }
.btn--ghost:hover { background: var(--border); }
.btn--danger   { background: var(--err); color: #fff; }
.btn--danger:hover { background: #b91c1c; }
.btn--sm  { padding: .4rem .9rem; font-size: .8rem; border-radius: var(--r); }
.btn--lg  { padding: .8rem 1.75rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn--full { width: 100%; }

.link-btn { background: none; border: none; cursor: pointer; color: var(--teal); font: inherit; padding: 0; text-decoration: underline; }
.link-btn--danger { color: var(--err); }

/* ── Spinner ────────────────────────────────────────────────── */
.btn-spinner, .spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%; animation: spin .65s linear infinite;
}
.spinner { border-color: var(--border); border-top-color: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .875rem 1.1rem; border-radius: var(--r-lg);
  font-size: .875rem; margin-bottom: 1.25rem; line-height: 1.5;
  border: 1px solid transparent;
}
.alert a { font-weight: 600; }
.alert--success { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-border); }
.alert--error   { background: var(--err-bg);  color: var(--err);  border-color: var(--err-border); }
.alert--warn    { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 20px; letter-spacing: .04em; text-transform: uppercase;
}
.badge--free  { background: var(--free-bg);  color: var(--free-ink); }
.badge--paid  { background: var(--paid-bg);  color: var(--paid-ink); }
.badge--admin { background: var(--admin-bg); color: var(--admin-ink); }

/* ── Status pills ───────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; padding: .2rem .65rem; border-radius: 20px;
}
.status::before {
  content: ''; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .7;
}
.status--pending  { background: var(--warn-bg); color: var(--warn); }
.status--running  { background: var(--free-bg); color: var(--free-ink); }
.status--running::before { animation: pulse 1.2s ease-in-out infinite; }
.status--complete { background: var(--ok-bg);   color: var(--ok); }
.status--error    { background: var(--err-bg);  color: var(--err); }
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-sm); overflow: hidden;
}
.card--table { }
.card__head {
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.card__head h2 { margin: 0; font-size: .95rem; color: var(--ink); }
.card__body { padding: 1.5rem; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table th {
  text-align: left; padding: .65rem 1rem; font-weight: 600; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  background: var(--bg-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--bg-2); }
.truncate-url { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

/* ── Forms ──────────────────────────────────────────────────── */
.form__group { margin-bottom: 1.15rem; }
.form__group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%; padding: .7rem .95rem;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-lg); font-size: .9rem; font-family: var(--font);
  background: var(--bg); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,176,.15);
}
.form__group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form__group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7d90' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.form__row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.form__group--grow { flex: 1; min-width: 160px; }
.search-bar { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.search-bar input { max-width: 300px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(160deg, var(--bg) 55%, var(--teal-l) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(14,165,176,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--w); margin: 0 auto; padding: 0 1.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.1rem;
}
.hero__eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hero__title { color: var(--ink); margin-bottom: 1.1rem; }
.hero__title span { color: var(--teal); }
.hero__sub { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 2rem; line-height: 1.7; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__img img {
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero__img-caption { font-size: .75rem; color: var(--ink-3); margin-top: .75rem; text-align: center; }

@media (max-width: 768px) {
  .hero { padding: 3rem 0 3rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__img { order: -1; }
}

/* ── Access strip ───────────────────────────────────────────── */
.access-strip {
  background: var(--ink); padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.access-strip .container { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.access-strip .btn--ghost { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.15); }
.access-strip .btn--ghost:hover { background: rgba(255,255,255,.15); }
.access-strip__note { color: rgba(255,255,255,.45); font-size: .8rem; margin-top: .75rem; text-align: center; }

/* ── Section grid ───────────────────────────────────────────── */
.two-col         { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.three-col       { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.two-col--contact { gap: 3rem; }
@media (max-width: 768px) {
  .two-col, .three-col, .two-col--contact { grid-template-columns: 1fr; }
}

/* ── Feature cards ──────────────────────────────────────────── */
.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card--highlight {
  background: var(--teal-l); border-color: var(--teal-mid);
}
.feature-card__icon {
  width: 44px; height: 44px; border-radius: var(--r-lg);
  background: var(--teal-l); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--teal);
}
.feature-card h3 { color: var(--ink); margin-bottom: .5rem; }

/* ── Link grid ──────────────────────────────────────────────── */
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 520px) { .link-grid { grid-template-columns: 1fr; } }
.link-card {
  display: block; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.1rem 1.25rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.link-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.link-card__label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.link-card code { background: none; border: none; padding: 0; font-size: .78rem; color: var(--ink-3); }

/* ── Publications ───────────────────────────────────────────── */
.pub-list { display: flex; flex-direction: column; gap: 1.25rem; }
.pub {
  border-left: 3px solid var(--teal); padding: 1rem 1.25rem;
  background: var(--bg-2); border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.pub p { font-size: .9rem; }
.pub a { font-size: .82rem; font-family: var(--mono); }

/* ── Protocol cards ─────────────────────────────────────────── */
.protocol-list { display: flex; flex-direction: column; gap: 2rem; }
.protocol-card { border: 1px solid var(--border); border-radius: var(--r-xl); padding: 2rem; }
.protocol-card:hover { box-shadow: var(--shadow); }
.protocol-card__meta { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.protocol-card__title { font-size: 1.1rem; color: var(--ink); margin-bottom: .75rem; }

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, #1a3344 100%);
  padding: 3.5rem 0 3rem;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1.05rem; margin: 0; }

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-page {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4rem 1.25rem 6rem;
  background: var(--bg-2);
  min-height: calc(100vh - var(--nav-h));
}
.auth-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: 2.5rem; width: 100%; max-width: 420px;
}
.auth-card__logo { text-align: center; margin-bottom: 1.75rem; }
.auth-card__logo img { height: 40px; margin: 0 auto; }
.auth-card__title { font-size: 1.4rem; margin-bottom: .35rem; color: var(--ink); }
.auth-card__sub   { color: var(--ink-3); margin-bottom: 1.75rem; font-size: .875rem; }
.auth-card__switch { text-align: center; margin-top: 1.25rem; font-size: .85rem; color: var(--ink-3); }
.auth-card__switch a { color: var(--teal); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--ink-3); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Dashboard ──────────────────────────────────────────────── */
.dashboard { padding: 2.5rem 0 5rem; }
.dash__topbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem;
}
.dash__title { font-size: 1.6rem; margin-bottom: .15rem; }
.dash__sub    { color: var(--ink-3); font-size: .875rem; }
.dash__sub strong { color: var(--ink); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-grid--lg { grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); }
.stat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.35rem 1rem;
  text-align: center; box-shadow: var(--shadow-sm);
}
.stat-card__num { display: block; font-size: 2rem; font-weight: 700; color: var(--teal); letter-spacing: -.02em; }
.stat-card__lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-top: .25rem; }

.empty-state { padding: 4rem 1rem; text-align: center; color: var(--ink-3); }
.empty-state p { font-size: .95rem; }

/* ── Run page ───────────────────────────────────────────────── */
.run-page { padding: 2.5rem 0 5rem; background: var(--bg-2); min-height: calc(100vh - var(--nav-h)); }
.run-header { margin-bottom: 2rem; }
.run-header h1 { color: var(--ink); }
.run-header__sub { color: var(--ink-2); }

.run-section {
  display: flex; gap: 1.25rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.75rem;
  margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.run-section__num {
  flex-shrink: 0; width: 30px; height: 30px;
  border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; margin-top: .1rem;
}
.run-section__body { flex: 1; min-width: 0; }
.run-section__body h2 { font-size: .95rem; margin-bottom: .65rem; color: var(--ink); }

/* Tabs */
.input-tabs {
  display: flex; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 1rem; background: var(--bg-2);
}
.input-tab {
  flex: 1; padding: .6rem .5rem; background: none; border: none;
  cursor: pointer; font-size: .82rem; font-weight: 500; color: var(--ink-3);
  transition: background .15s, color .15s; font-family: var(--font);
}
.input-tab--active { background: var(--teal); color: #fff; }
.input-panel { display: none; }
.input-panel--active { display: block; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border-2); border-radius: var(--r-lg);
  text-align: center; padding: 2rem 1rem;
  background: var(--bg-2); transition: border-color .15s, background .15s;
}
.dropzone--over { border-color: var(--teal); background: var(--teal-l); }
.dropzone__icon { margin: 0 auto .75rem; color: var(--ink-3); }
.dropzone p { font-size: .875rem; margin-bottom: .25rem; }
.dropzone__file { font-size: .875rem; display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--ink-2); }

/* Assembly grid */
.asm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px,1fr)); gap: 1rem; }
.asm-group__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: .45rem; }
.checkbox-pill { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; font-size: .82rem; margin: .15rem; user-select: none; }
.checkbox-pill input { accent-color: var(--teal); width: 14px; height: 14px; }
.checkbox-pill span {
  background: var(--bg-2); border: 1px solid var(--border);
  padding: .2rem .6rem; border-radius: 20px;
  transition: background .12s, border-color .12s, color .12s;
}
.checkbox-pill input:checked + span { background: var(--teal-l); border-color: var(--teal); color: var(--teal-d); font-weight: 500; }
.asm-actions { margin-top: .75rem; display: flex; gap: 1rem; font-size: .82rem; }

.run-submit { margin-top: 1.5rem; }
.run-submit__note { text-align: center; margin-top: .75rem; font-size: .8rem; color: var(--ink-3); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.5); padding: 3rem 0 2.5rem; margin-top: auto; }
.footer__inner { max-width: var(--w); margin: 0 auto; padding: 0 1.25rem; }
.footer__top { display: flex; gap: 3rem; justify-content: space-between; flex-wrap: wrap; margin-bottom: 2.5rem; }
.footer__brand img { height: 36px; margin-bottom: .75rem; filter: brightness(0) invert(1); opacity: .85; }
.footer__brand-name { font-weight: 700; color: #fff; font-size: .95rem; margin-bottom: .35rem; }
.footer__brand-desc { font-size: .8rem; max-width: 240px; line-height: 1.6; }
.footer__col h4 { color: rgba(255,255,255,.8); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .85rem; }
.footer__col a { display: block; color: rgba(255,255,255,.5); font-size: .85rem; margin-bottom: .5rem; transition: color .15s; }
.footer__col a:hover { color: #fff; text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .8rem; }
.footer__copy { color: rgba(255,255,255,.35); }
.footer__copy a { color: rgba(255,255,255,.5); }
.footer__copy a:hover { color: #fff; }

@media (max-width: 640px) {
  .footer__top { flex-direction: column; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ── Admin ──────────────────────────────────────────────────── */
.admin-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* ── Scroll animation ───────────────────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
[data-aos].aos-in { opacity: 1; transform: none; }

/* ── Utilities ──────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-muted  { color: var(--ink-3); }
.fw-600      { font-weight: 600; }
.d-flex      { display: flex; }
.gap-1       { gap: .5rem; }
.gap-2       { gap: 1rem; }
.align-center { align-items: center; }

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-aos] { opacity: 1; transform: none; }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print { .nav, .footer, .btn { display: none; } }
