/* Scout · Gudep MTsN 3 Parigi — mobile-first design system */
:root {
  --primary: #6B1E2A;
  --primary-dark: #3d1018;
  --primary-mid: #8a2f3d;
  --primary-soft: rgba(107, 30, 42, 0.09);
  --primary-glow: rgba(107, 30, 42, 0.22);
  --ink: #141012;
  --muted: #6a5f63;
  --line: #e4dcdf;
  --bg: #f8f4f5;
  --surface: #ffffff;
  --gold: #c4a24a;
  --gold-deep: #8f7328;
  --gold-soft: rgba(196, 162, 74, 0.16);
  --ok: #1b7a4a;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgba(20, 16, 18, 0.04);
  --shadow: 0 10px 32px rgba(20, 16, 18, 0.07);
  --shadow-lg: 0 28px 64px rgba(61, 16, 24, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --tap: 48px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 960px;
}

@keyframes scout-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scout-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scout-drift {
  0%, 100% { background-position: 0% 0%, 50% 0%, 0 0; }
  50% { background-position: 8% 4%, 46% 8%, 0 0; }
}
@keyframes scout-sheen {
  0% { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(220%) skewX(-12deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 50% -120px, var(--primary-soft), transparent 70%),
    var(--bg);
  line-height: 1.55;
  min-height: 100dvh;
  letter-spacing: -0.01em;
}
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-mid); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; display: block; }
p + p { margin-top: 0.55em; }

/* —— Primitives —— */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
}
.btn:hover {
  background: var(--primary-mid);
  box-shadow: 0 12px 28px var(--primary-glow);
}
.btn:hover::after { animation: scout-sheen .7s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; }
.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  box-shadow: none;
}
.btn.ghost:hover { background: var(--primary-soft); }
.btn.gold {
  background: linear-gradient(145deg, #d4b45c, var(--gold) 45%, var(--gold-deep));
  color: #1a1408;
  box-shadow: 0 8px 24px var(--gold-soft);
}
.btn.gold:hover { filter: brightness(1.05); background: linear-gradient(145deg, #d4b45c, var(--gold) 45%, var(--gold-deep)); }
.btn-on-dark.ghost,
.hero-full .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.btn-on-dark.ghost:hover,
.hero-full .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.btn-nav {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  box-shadow: 0 6px 18px var(--primary-glow);
}
.btn-nav:hover { background: var(--primary-mid) !important; color: #fff !important; }

.mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  background:
    linear-gradient(145deg, var(--primary-mid), var(--primary) 40%, var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: .82rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.flash {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: .94rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.flash.is-ok { background: #eaf7f0; color: var(--ok); border-color: #cfe9da; }
.flash.is-err, .flash.is-error { background: #fdf0ee; color: var(--danger); border-color: #f3d0cb; }
.hint { color: var(--muted); font-size: .92rem; }
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow.on-dark { color: #f0c9cf; }

label {
  display: block;
  font-weight: 650;
  margin: 16px 0 7px;
  font-size: .9rem;
  letter-spacing: -0.01em;
}
input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  background: #fff;
  min-height: var(--tap);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.card h2, .card .card-title {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 8px 0 20px;
}
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: .85;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.stat span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
}

/* —— Public header —— */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 12px;
  background: rgba(248, 244, 245, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.pub-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  min-width: 0;
}
.pub-brand:hover { color: inherit; }
.pub-brand strong {
  display: block;
  font-size: .92rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}
.pub-brand small {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 500;
  margin-top: 1px;
}
.nav-toggle {
  min-width: var(--tap);
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease;
}
.nav-toggle:active { background: var(--primary-soft); }
.pub-nav {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(64px + var(--safe-t));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
  animation: scout-rise .28s var(--ease);
}
.pub-nav.open { display: flex; }
.pub-nav a {
  color: var(--ink);
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 600;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
.pub-nav a:not(.btn-nav):hover { background: var(--primary-soft); color: var(--primary); }
.pub-nav a.on:not(.btn-nav) {
  background: var(--primary-soft);
  color: var(--primary);
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .pub-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 4px;
    background: transparent;
    animation: none;
  }
  .pub-nav a { padding: 8px 14px; min-height: 40px; }
  .pub-brand strong { max-width: none; }
}

/* —— Hero (one composition) —— */
.hero-full {
  position: relative;
  isolation: isolate;
  min-height: min(86dvh, 700px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding: 32px 20px calc(40px + var(--safe-b));
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 85% -10%, rgba(196, 162, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(107, 30, 42, 0.55), transparent 50%),
    linear-gradient(165deg, #1a0c10 0%, #4a1520 38%, #6B1E2A 68%, #12080b 100%);
  background-size: 120% 120%, 100% 100%, 100% 100%;
  animation: scout-drift 18s ease-in-out infinite;
}
.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.55) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
  pointer-events: none;
}
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(10, 4, 6, 0.55) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 46px,
      rgba(255, 255, 255, 0.025) 46px,
      rgba(255, 255, 255, 0.025) 47px
    );
  pointer-events: none;
}
.hero-full .inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  animation: scout-rise .7s var(--ease) both;
}
.hero-full .eyebrow {
  color: #f0c9cf;
  margin-bottom: 14px;
  animation: scout-fade .8s var(--ease) .1s both;
}
.hero-full h1 {
  font-family: var(--display);
  font-size: clamp(2.35rem, 9.5vw, 3.75rem);
  line-height: 0.98;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.hero-full .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  font-size: clamp(1rem, 3.2vw, 1.12rem);
  line-height: 1.55;
  font-weight: 450;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  animation: scout-rise .75s var(--ease) .18s both;
}

/* —— Sections —— */
.section {
  padding: 48px 18px;
  max-width: var(--max);
  margin: 0 auto;
}
.section.is-tight { padding-top: 28px; padding-bottom: 28px; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 5vw, 1.95rem);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.kode-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.kode-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--gold));
}
.kode-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.kode-card .lead-soft {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 12px;
}
.kode-card ol, .kode-card ul {
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: .94rem;
  display: grid;
  gap: 6px;
}
.kode-card li { padding-left: 2px; }

.profile-list {
  display: grid;
  gap: 12px;
}
.profile-list p {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.profile-list p:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-list strong {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}
.profile-list span,
.profile-list .val {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.pub-footer {
  margin-top: 12px;
  padding: 36px 20px calc(32px + var(--safe-b));
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(107, 30, 42, 0.45), transparent 60%),
    #12090c;
  color: #efe8ea;
  display: grid;
  gap: 22px;
}
.pub-footer strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pub-footer p { color: rgba(239, 232, 234, 0.72); font-size: .92rem; }
.pub-footer a {
  color: #f0c9cf;
  font-weight: 600;
  font-size: .92rem;
}
.pub-footer a:hover { color: #fff; }
.pub-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (min-width: 700px) {
  .pub-footer {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
    padding-left: max(20px, calc((100% - var(--max)) / 2 + 20px));
    padding-right: max(20px, calc((100% - var(--max)) / 2 + 20px));
  }
}

/* —— Login gate —— */
.login-page {
  min-height: 100dvh;
  display: grid;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(196, 162, 74, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(107, 30, 42, 0.5), transparent 50%),
    linear-gradient(160deg, #12080b 0%, #4a1520 48%, #6B1E2A 78%, #1a0c10 100%);
  position: relative;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.5) 1px, transparent 0);
  background-size: 26px 26px;
  pointer-events: none;
}
@media (min-width: 860px) {
  .login-page { grid-template-columns: 1.15fr .85fr; }
}
.login-visual {
  display: none;
  position: relative;
  z-index: 1;
  padding: 56px 48px;
  color: #fff;
  align-content: end;
  animation: scout-rise .7s var(--ease) both;
}
@media (min-width: 860px) { .login-visual { display: grid; } }
.login-visual .eyebrow { color: #f0c9cf; }
.login-visual h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.5vw, 2.85rem);
  line-height: 1.05;
  margin: 14px 0 12px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.login-visual .meta {
  opacity: .82;
  font-size: 1rem;
  max-width: 28rem;
}
.login-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 28px 16px calc(28px + var(--safe-b));
}
.login-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  padding: 30px 24px 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  animation: scout-rise .55s var(--ease) .08s both;
}
.login-card .mark { margin-bottom: 4px; }
.login-card h1 {
  font-family: var(--display);
  font-size: 1.9rem;
  margin: 10px 0 6px;
  letter-spacing: -0.03em;
}
.login-card .hint { margin-bottom: 4px; }
.login-card .back-link {
  margin-top: 18px;
  text-align: center;
  font-weight: 600;
}
.login-card .submit-gap { margin-top: 20px; }

/* —— Staf shell —— */
.app-body.staf-body { min-height: 100dvh; background: var(--bg); }
.drawer-toggle {
  position: fixed;
  top: calc(12px + var(--safe-t));
  left: 12px;
  z-index: 60;
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 8, 10, 0.48);
  backdrop-filter: blur(3px);
  z-index: 50;
}
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(300px, 86vw);
  z-index: 55;
  background:
    radial-gradient(280px 180px at 0% 0%, rgba(107, 30, 42, 0.55), transparent 70%),
    #140c0e;
  color: #f3ecee;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateX(-105%);
  transition: transform .28s var(--ease);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { display: block; }
.drawer .brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 6px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer .brand strong {
  display: block;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.drawer .brand small {
  color: #c9b4b8;
  font-size: .76rem;
}
.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow: auto;
  padding-top: 4px;
}
.drawer nav a {
  color: #f3ecee;
  padding: 12px 12px;
  border-radius: 12px;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  font-weight: 550;
  transition: background .15s ease;
}
.drawer nav a.on,
.drawer nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.drawer nav a.on {
  background: rgba(196, 162, 74, 0.16);
  box-shadow: inset 3px 0 0 var(--gold);
}
.side-user {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  font-size: .9rem;
  display: grid;
  gap: 2px;
}
.side-user small { color: #c9b4b8; }
.side-user a {
  color: #f0c9cf;
  margin-top: 8px;
  font-weight: 650;
  width: fit-content;
}
.main { padding-top: calc(56px + var(--safe-t)); min-height: 100dvh; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 6px;
}
.top h1 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4.5vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.content { padding: 8px 16px calc(28px + var(--safe-b)); }
@media (min-width: 900px) {
  .drawer-toggle, .drawer-backdrop { display: none !important; }
  .staf-body { display: flex; }
  .drawer {
    position: sticky;
    top: 0;
    height: 100dvh;
    transform: none;
    flex-shrink: 0;
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  .main { flex: 1; padding-top: 0; min-width: 0; }
  .top { padding: 26px 28px 10px; }
  .content { padding: 8px 28px 40px; }
}

/* —— Anggota / Purna —— */
.anggota-body,
.purna-body {
  background:
    radial-gradient(900px 320px at 50% -80px, var(--primary-soft), transparent 65%),
    var(--bg);
}
.anggota-main { padding-bottom: calc(80px + var(--safe-b)); }
.anggota-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: calc(20px + var(--safe-t)) 16px 8px;
}
.anggota-top h1 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 5vw, 1.7rem);
  letter-spacing: -0.03em;
  margin-top: 2px;
}
.anggota-content { padding: 8px 16px; }
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(8px + var(--safe-b));
  box-shadow: 0 -8px 28px rgba(20, 16, 18, 0.05);
}
.bottom-nav a {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  padding: 10px 6px;
  min-height: var(--tap);
  display: grid;
  place-items: center;
  border-radius: 12px;
  transition: color .15s ease, background .15s ease;
}
.bottom-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.bottom-nav a.on {
  color: var(--primary);
  background: var(--primary-soft);
}
.purna-body .bottom-nav { grid-template-columns: 1fr 1fr; }

/* —— App utilities —— */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 640px) {
  .toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .toolbar input, .toolbar select { width: auto; min-width: 160px; }
}
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
th {
  color: var(--muted);
  font-weight: 650;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: color-mix(in srgb, var(--bg) 70%, #fff);
}
tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.muted { color: var(--muted); }
code {
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .85em;
}
.form-actions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
@media (min-width: 520px) {
  .form-actions { grid-template-columns: 1fr 1fr; }
}
.field-row { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .field-row.two { grid-template-columns: 1fr 1fr; }
}

.sync-meta {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  margin-top: -4px;
}
