/* =============================================================
   Adam Larson Fitness — Stylesheet
   Brand: deep navy + energetic orange. Athletic, modern.
   ============================================================= */

/* ---- Tokens ---- */
:root {
  --navy-900: #0A1622;
  --navy-800: #0F1E2E;
  --navy-700: #1A2A3D;
  --navy-600: #2C3E55;
  --slate-500: #6B7280;
  --slate-400: #9CA3AF;
  --slate-200: #E5E7EB;
  --slate-100: #F3F4F6;
  --paper:    #FAFAF7;
  --white:    #FFFFFF;

  --orange-700: #B5440A;
  --orange-600: #D85A14;
  --orange-500: #F26B1F;
  --orange-100: #FFE4D2;
  --orange-50:  #FFF3EA;

  --green-600: #059669;
  --red-600:   #DC2626;
  --amber-500: #F59E0B;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 46, 0.06);
  --shadow:    0 8px 24px rgba(15, 30, 46, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 30, 46, 0.16);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bebas Neue', 'Inter', sans-serif;
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,svg,video { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-700); text-decoration: none; }
a:hover { color: var(--orange-600); text-decoration: underline; }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--slate-200); margin: 2rem 0; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { color: var(--navy-900); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--orange-500);
  margin: 0 0 1rem;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 4rem) 0; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex { display: flex; gap: 1rem; align-items: center; }
.text-center { text-align: center; }
.muted { color: var(--slate-500); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--navy-800); color: #fff; padding: 12px 16px; z-index: 100;
}
.skip-link:focus { top: 0; }

/* ---- Header ---- */
.site-header {
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky; top: 0; z-index: 50;
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
  gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: var(--font-display);
  background: var(--orange-500); color: #fff;
  font-size: 1.05rem; letter-spacing: 0.15em;
  padding: 6px 10px; border-radius: var(--radius-sm);
  line-height: 1;
}
.brand-logo {
  display: block;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-700);
  object-fit: cover;
  flex-shrink: 0;
}
.brand-name { font-weight: 600; letter-spacing: 0.02em; }
.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative; padding: 4px 0;
}
.primary-nav a:hover { color: #fff; }
.primary-nav a.is-active { color: #fff; }
.primary-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--orange-500); border-radius: 2px;
}
.nav-cta {
  background: var(--orange-500);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 120ms ease;
}
.nav-cta:hover { background: var(--orange-600); text-decoration: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: transparent; border: 0; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 200ms; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-800);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .primary-nav.is-open { display: flex; }
  .nav-cta { margin-top: 12px; text-align: center; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--navy-800);
  color: #fff;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(242,107,31,0.18), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(242,107,31,0.10), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
  margin: 0 0 2rem;
}
.hero-meta {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.hero-meta .stat strong {
  display: block;
  font-family: var(--font-display); font-size: 2rem; color: var(--orange-500); line-height: 1;
}
.hero-meta .stat span { color: rgba(255,255,255,0.7); font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* Hero with background image — add class="hero hero-img" + background-image inline style */
.hero-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Overlay: dark navy base + orange brand gradients on top of the photo */
.hero-img::before {
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(242,107,31,0.22), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(242,107,31,0.14), transparent 60%),
    linear-gradient(160deg, rgba(10,22,34,0.78) 0%, rgba(10,22,34,0.58) 100%);
}

/* Section with background image (e.g. CTA strip) — add class="bg-img" + background-image inline style */
/* Reuses the same image already loaded by the hero — no extra network request */
.bg-img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-img > .container { position: relative; z-index: 1; }
.bg-img::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 50%, rgba(242,107,31,0.18), transparent 60%),
    linear-gradient(160deg, rgba(10,22,34,0.90) 0%, rgba(10,22,34,0.82) 100%);
  pointer-events: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange-500); color: #fff; border-color: var(--orange-500); }
.btn-primary:hover { background: var(--orange-600); border-color: var(--orange-600); color: #fff; text-decoration: none; }
.btn-secondary {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: #fff; color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--navy-800); border-color: var(--navy-800);
}
.btn-ghost:hover { background: var(--navy-800); color: #fff; text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; }
.btn-lg { padding: 18px 32px; font-size: 1.125rem; }
.btn-full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---- Cards ---- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card-accent { border-top: 4px solid var(--orange-500); }
.card-featured {
  border-color: var(--orange-500);
  box-shadow: var(--shadow);
  position: relative;
}
.card-featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 24px;
  background: var(--orange-500); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}

/* ---- Pricing card ---- */
.pricing-price { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--navy-900); }
.pricing-price small { font-family: var(--font-sans); font-size: 0.95rem; color: var(--slate-500); font-weight: 500; }
.pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.pricing-features li { padding: 8px 0 8px 28px; position: relative; color: var(--navy-700); }
.pricing-features li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 16px; height: 9px; border-left: 2px solid var(--orange-500); border-bottom: 2px solid var(--orange-500);
  transform: rotate(-45deg);
}

/* ---- Forms ---- */
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; font-weight: 500; font-size: 0.9rem;
  margin-bottom: 6px; color: var(--navy-700);
}
.field .hint { font-size: 0.8rem; color: var(--slate-500); margin-top: 4px; }
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  color: var(--navy-900);
  transition: border-color 120ms, box-shadow 120ms;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px var(--orange-100);
}
.textarea { min-height: 140px; resize: vertical; }
.field-error { color: var(--red-600); font-size: 0.85rem; margin-top: 4px; }
.input.is-invalid, .textarea.is-invalid { border-color: var(--red-600); }

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Flash messages ---- */
/* ---- Calendar ---- */
.calendar { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: hidden; }
.calendar-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--slate-100); }
.calendar-dow { padding: 8px; text-align: center; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--slate-500); font-weight: 500; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-day {
  min-height: 96px; padding: 6px; border-top: 1px solid var(--slate-200); border-left: 1px solid var(--slate-200);
  display: flex; flex-direction: column; gap: 4px;
}
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.is-other { background: var(--slate-100); color: var(--slate-500); }
.calendar-day.is-today { background: var(--orange-50); }
.calendar-day.is-today .calendar-day-num { color: var(--orange-700); font-weight: 700; }
.calendar-day-num { font-size: .85rem; color: var(--slate-500); font-weight: 500; }
.calendar-pill {
  display: block; padding: 3px 8px; border-radius: var(--radius-sm);
  font-size: .75rem; font-weight: 500; line-height: 1.2;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.calendar-pill:hover { text-decoration: none; opacity: .85; }
.pill-assigned    { background: var(--orange-100); color: var(--orange-700); border-color: var(--orange-100); }
.pill-progress    { background: #DBEAFE; color: #1E40AF; }
.pill-completed   { background: #ECFDF5; color: #065F46; }
.pill-skipped     { background: var(--slate-100); color: var(--slate-500); text-decoration: line-through; }
.calendar-pill-more { background: transparent; color: var(--slate-500); font-style: italic; cursor: default; }
.pill-meeting      { background: #D1FAE5; color: #065F46; }
.pill-invoice-due  { background: #FEE2E2; color: #991B1B; }
.pill-invoice-sent { background: #DBEAFE; color: #1E40AF; }
@media (max-width: 700px) {
  .calendar-day { min-height: 64px; padding: 4px; }
  .calendar-pill { font-size: .7rem; padding: 2px 6px; }
  .calendar-dow { font-size: .65rem; }
}

/* ---- Dashboard list rows (flex-based, replaces tables that overflowed) ---- */
.dash-list {
  display: flex;
  flex-direction: column;
}
.dash-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--slate-200);
}
.dash-row:last-child { border-bottom: 0; }
.dash-row-body {
  flex: 1 1 auto;
  min-width: 0;      /* allow this column to shrink so long text can wrap */
}
.dash-overflow {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;   /* break long emails/titles instead of overflowing */
  word-break: break-word;
}

/* ---- Blog post side images ---- */
.post-figure-side {
  margin: .25rem 0 1rem;
  max-width: 380px;
}
.post-figure-side img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: var(--slate-100);
}
.post-figure-side figcaption {
  font-size: .8rem;
  color: var(--slate-500);
  margin-top: .35rem;
  line-height: 1.45;
}
.post-figure-right {
  float: right;
  width: 42%;
  margin-left: 1.5rem;
}
.post-figure-left {
  float: left;
  width: 42%;
  margin-right: 1.5rem;
}
@media (max-width: 700px) {
  .post-figure-right, .post-figure-left {
    float: none; width: 100%; margin: .5rem 0 1rem;
  }
}
.post-tail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  clear: both;
}
.post-tail-gallery figure { margin: 0; }
.post-tail-gallery img { width: 100%; border-radius: var(--radius); display: block; }
.post-tail-gallery figcaption { font-size: .8rem; color: var(--slate-500); margin-top: .25rem; }

.announcement-stack { padding: 1rem 0 0; }
.announcement-stack .flash { margin-bottom: 8px; }
.flash-container { padding: 1.5rem 0 0; }
.flash {
  padding: 14px 18px; border-radius: var(--radius);
  font-weight: 500;
  margin-bottom: 12px;
  border: 1px solid transparent;
}
.flash-success { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.flash-error   { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.flash-info    { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }

/* ---- Featured / testimonial sections ---- */
.testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 2.5rem 2rem 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--orange-500);
  opacity: 0.12;
  position: absolute;
  top: 0.25rem;
  left: 0.75rem;
  pointer-events: none;
  user-select: none;
  aria-hidden: true;
}
.testimonial-body { font-size: 1.05rem; color: var(--navy-700); position: relative; z-index: 1; }
.testimonial-author { font-weight: 600; color: var(--orange-700); margin-top: 1rem; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---- Accessibility: keyboard focus ---- */
:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Inputs use custom focus (border + glow) — suppress the outline there */
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { outline: none; }

/* ---- Accessibility: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Heading accent bar ---- */
.heading-accent {
  position: relative;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}
.heading-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--orange-500);
  border-radius: 2px;
}
.text-center .heading-accent::after,
.heading-accent.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Feature icon + card (Ways to train section) ---- */
.feature-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--orange-50);
  border: 2px solid var(--orange-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin: 0 auto 1.25rem;
}
.feature-card {
  text-align: center;
}
.feature-card h3 { margin-bottom: .5rem; }

/* ---- Intro image (homepage "What you get" column) ---- */
.intro-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) {
  .intro-img { aspect-ratio: 16/9; }
}

/* ---- Login split-screen ---- */
.login-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}
.login-panel-img {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}
.login-panel-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,34,0.90) 0%, rgba(10,22,34,0.45) 55%, rgba(10,22,34,0.25) 100%);
}
.login-panel-img-content {
  position: relative;
  z-index: 1;
}
.login-panel-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: var(--paper);
  overflow-y: auto;
}
.login-panel-form-inner {
  width: 100%;
  max-width: 420px;
}
@media (max-width: 720px) {
  .login-split { grid-template-columns: 1fr; }
  .login-panel-img { min-height: 200px; align-items: center; padding: 2rem; }
  .login-panel-img-content { text-align: center; }
  .login-panel-form { padding: 2.5rem 1.5rem; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  margin-top: 6rem;
  padding: 4rem 0 1.5rem;
}
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--orange-500); text-decoration: none; }
.site-footer-inner {
  display: grid; gap: 2rem;
  grid-template-columns: 1.5fr repeat(3, 1fr);
}
.footer-brand .brand-mark { display: inline-block; margin-bottom: 1rem; }
.footer-blurb { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 32ch; }
.site-footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---- Site nav strip (shown on dashboard pages) ---- */
.site-nav-strip {
  background: var(--navy-700);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 1rem;
  position: sticky;
  top: 64px; /* height of app-topbar */
  z-index: 190;
}
.site-nav-strip a {
  display: inline-flex;
  align-items: center;
  padding: .45rem .85rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s, background .15s;
  border-radius: 0;
}
.site-nav-strip a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* ---- Portal & admin shells (light styling, fleshed out later) ---- */
body.portal, body.admin { background: var(--slate-100); }
.app-shell {
  display: grid; grid-template-columns: 240px 1fr; min-height: 100vh;
}
.app-sidebar {
  background: var(--navy-800); color: #fff;
  padding: 1.5rem 1rem;
  display: flex; flex-direction: column;
}
@media (min-width: 801px) {
  .app-sidebar {
    position: sticky; top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
  }
}
.app-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; color: rgba(255,255,255,0.78);
  border-radius: var(--radius); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
}
.app-sidebar a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.app-sidebar a.is-active { background: var(--orange-500); color: #fff; }
.app-sidebar hr { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: .4rem 0; }
.app-sidebar details { margin: 0; }
.app-sidebar details summary {
  list-style: none; font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.35); padding: .6rem 12px .2rem;
  cursor: pointer; user-select: none;
}
.app-sidebar details summary::-webkit-details-marker { display: none; }
.app-sidebar details[open] summary { color: rgba(255,255,255,.55); }
.app-main { padding: 2rem clamp(1rem, 3vw, 2.5rem); }
@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: flex; gap: 4px; flex-wrap: wrap; padding: .75rem 1rem; }
  .app-sidebar a { padding: 8px 12px; font-size: 0.85rem; }
  .app-sidebar details summary { display: none; }
  .app-sidebar details[open] a, .app-sidebar details a { display: flex; }
}

/* ---- Tables ---- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--slate-200); }
.table th { background: var(--slate-100); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-500); }
.table tr:last-child td { border-bottom: none; }

/* ---- Badges ---- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-success { background: #ECFDF5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger  { background: #FEF2F2; color: #991B1B; }
.badge-muted   { background: var(--slate-100); color: var(--slate-500); }
.badge-accent  { background: var(--orange-50); color: var(--orange-700); }

/* ---- Utilities ---- */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hide-mobile { display: initial; } @media (max-width: 720px) { .hide-mobile { display: none !important; } }
