:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #071023;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(17, 24, 39, 0.92);
  --panel-soft: rgba(30, 41, 59, 0.48);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(245, 158, 11, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --green: #22c55e;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -8%, rgba(245, 158, 11, 0.20), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.13), transparent 34rem),
    linear-gradient(135deg, #020617 0%, #071023 48%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
}

a { color: var(--amber-bright); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { color: #fde68a; }

button, input, select, textarea { font: inherit; touch-action: manipulation; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.04;
  color: var(--text);
  letter-spacing: -0.04em;
}

h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.025em; }

p { color: var(--muted); line-height: 1.65; }
small { line-height: 1.45; }

.shell { min-height: 100vh; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 4vw, 2.25rem);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.035em;
}

.brand span { white-space: nowrap; }

.brand-accent { color: var(--amber-bright); }

.login-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(245, 158, 11, 0.22);
  background:
    radial-gradient(circle at 78% 0%, rgba(245, 158, 11, 0.20), transparent 18rem),
    linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.86));
}

.login-card::after {
  content: "";
  position: absolute;
  inset: auto -5rem -7rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.045);
}

.login-card > * { position: relative; z-index: 1; }
.login-card h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); margin: 0.7rem 0 0; }
.login-card p { font-size: 1.02rem; max-width: 38rem; }

.login-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  color: var(--muted-strong);
  font-weight: 900;
}

.login-mark .logo {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
}


.logo {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: #020617;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.container {
  width: min(1240px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 4rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 1.25rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: rgba(15, 23, 42, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-strong);
  padding: 0.72rem 0.9rem;
  border-radius: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.tab:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.10);
}

.hero {
  position: relative;
  padding: clamp(2rem, 6vw, 4.4rem);
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.52)),
    radial-gradient(circle at 80% 16%, rgba(245, 158, 11, 0.22), transparent 22rem);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.hero::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -7rem;
  width: 21rem;
  height: 21rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.20);
  background: rgba(245, 158, 11, 0.04);
}

.hero > * { position: relative; z-index: 1; }
.hero p { max-width: 780px; font-size: 1.04rem; }

.eyebrow {
  color: var(--amber-bright);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 0.7rem;
}

.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2vw, 1.45rem);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.72)),
    rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.card:hover { border-color: rgba(148, 163, 184, 0.28); }
.section { margin-top: 1.25rem; }

.row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }

.btn {
  min-height: 2.8rem;
  border: 0;
  border-radius: 0.95rem;
  padding: 0.78rem 1.08rem;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: #111827;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.24);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, border-color .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.30);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted-strong);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: none;
}

.btn.secondary:hover {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.10);
}

.btn.danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.28);
  box-shadow: none;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.input, select, textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.95rem;
  padding: 0.86rem 0.95rem;
  background: rgba(2, 6, 23, 0.56);
  color: #f8fafc;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.input:focus, select:focus, textarea:focus {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
  background: rgba(2, 6, 23, 0.78);
}

textarea { min-height: 7rem; resize: vertical; }

label {
  display: grid;
  gap: 0.48rem;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.form { display: grid; gap: 1rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(245, 158, 11, 0.30);
  background: rgba(245, 158, 11, 0.11);
  color: #fcd34d;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.stat {
  margin-top: 0.25rem;
  font-size: clamp(2.15rem, 5vw, 3.15rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  color: #fff;
}

.list { display: grid; gap: 0.75rem; }

.item {
  padding: 1rem;
  border-radius: 1.05rem;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.13);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.item:hover {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(15, 23, 42, 0.68);
  transform: translateY(-1px);
}

.item strong { color: #fff; }
.item p { margin: 0.45rem 0; }

.error, .success { padding: 0.85rem 1rem; border-radius: 1rem; font-weight: 750; }
.error { color: #fecaca; border: 1px solid rgba(239,68,68,.28); background: rgba(239,68,68,.12); }
.success { color: #bbf7d0; border: 1px solid rgba(34,197,94,.28); background: rgba(34,197,94,.12); }
.hidden { display: none !important; }

.table { width: 100%; border-collapse: collapse; overflow: hidden; }
.table th, .table td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted-strong);
  vertical-align: top;
}
.table th { color: #fff; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.10em; }
.table tbody tr:hover td { background: rgba(245, 158, 11, 0.035); }

.public-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.public-card { width: min(780px, 100%); }
.public-card .card { padding: clamp(1.35rem, 4vw, 2.1rem); }

.question {
  padding: 1rem;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 1rem;
  background: rgba(2,6,23,.35);
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 1rem;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(148,163,184,.14);
}

.question-row { grid-template-columns: minmax(180px, 1fr) 140px minmax(160px, 1fr) auto auto; }
.inline { display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; }

.progress {
  height: 0.55rem;
  background: rgba(148,163,184,.18);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0;
}
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-bright)); border-radius: inherit; }

.step-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(245,158,11,.18);
  border-radius: 1.25rem;
  background: rgba(2,6,23,.35);
}

.media {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.42);
}
.media img, .media video { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #020617; }
.media figcaption { padding: 0.75rem 1rem; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 900px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .question-row, .mini-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .nav > .row { width: 100%; justify-content: space-between; }
  .container { width: min(100% - 1rem, 1240px); padding-top: 0.75rem; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; border-radius: 1rem; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
  .hero { padding: 1.35rem; border-radius: 1.35rem; }
  .row .btn { width: 100%; }
}


/* StageCall-style admin shell */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1rem;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 40% 0%, rgba(245, 158, 11, 0.13), transparent 17rem),
    rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(24px);
  box-shadow: 22px 0 70px rgba(0, 0, 0, 0.18);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.65rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.side-brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.side-brand span {
  display: block;
  margin-top: 0.2rem;
  color: var(--amber-bright);
  font-size: 0.9rem;
  font-weight: 900;
}

.side-nav {
  display: grid;
  gap: 0.38rem;
}

.side-link {
  width: 100%;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  padding: 0.78rem 0.9rem;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-weight: 850;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.side-link::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.44);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.06);
}

.side-link:hover {
  transform: translateX(2px);
  color: #fff;
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.09);
}

.side-link:hover::before {
  background: var(--amber-bright);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.side-footer {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
}

.side-footer .btn { width: 100%; }

.side-user {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.side-user strong {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-user span {
  color: var(--muted);
  font-size: 0.82rem;
}

.content-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.35rem;
  padding: 0.85rem clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(18px);
}

.topbar .eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.66rem;
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.sidebar-backdrop { display: none; }

/* Retire the old top-tab spacing if any legacy markup appears */
.tabs { display: none; }

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(21rem, calc(100vw - 3rem));
    transform: translateX(-105%);
    transition: transform .22s ease;
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 24;
    background: rgba(2, 6, 23, 0.68);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  .app-shell.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .topbar {
    justify-content: flex-start;
  }

  .topbar .pill {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 4rem;
  }

  .topbar strong {
    display: block;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* Dashboard density tune-up now that the sidebar owns horizontal space */
.content-shell .container {
  width: min(100% - 2rem, 1120px);
}

.content-shell .hero {
  padding: clamp(1.45rem, 4vw, 3rem);
  border-radius: 1.55rem;
}

.content-shell .hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 4.6rem);
}

.content-shell .hero .row {
  max-width: 100%;
}

.content-shell .hero .btn {
  flex: 1 1 13.5rem;
  min-width: min(13.5rem, 100%);
}

.content-shell .grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-shell .grid.three .card {
  min-width: 0;
  padding: 1rem;
}

.content-shell .stat {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

@media (max-width: 1180px) {
  .content-shell .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-shell .card {
    padding: 1rem;
  }
}

@media (max-width: 760px) {
  .content-shell .container {
    width: min(100% - 1rem, 1120px);
  }

  .content-shell .grid.three {
    grid-template-columns: 1fr;
  }

  .content-shell .hero .btn {
    flex-basis: 100%;
  }
}

/* Mobile responsiveness final pass */
img,
video,
canvas,
svg {
  max-width: 100%;
}

.card,
.item,
.hero,
.step-panel,
.question,
.public-card,
.content-shell,
.container {
  min-width: 0;
}

.table {
  min-width: 680px;
}

.card > div[style*="overflow:auto"] {
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
}

input,
select,
textarea {
  min-width: 0;
}

@media (max-width: 980px) {
  body.sidebar-open,
  .app-shell.sidebar-open {
    overflow: hidden;
  }

  .content-shell .container {
    width: min(100% - 1.25rem, 1120px);
    padding-bottom: 2.5rem;
  }

  .topbar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .sidebar {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  h1 { font-size: clamp(2.05rem, 12vw, 3.2rem); }
  h2 { font-size: clamp(1.45rem, 8vw, 2.15rem); }

  .public-wrap {
    align-items: start;
    padding: 0.75rem;
  }

  .public-card {
    width: 100%;
  }

  .public-card .card,
  .card {
    border-radius: 1.15rem;
    padding: 0.95rem;
  }

  .login-card h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .login-mark {
    margin-bottom: 0.9rem;
  }

  .login-mark .logo {
    width: 2.55rem;
    height: 2.55rem;
  }

  .content-shell .hero {
    padding: 1.05rem;
    border-radius: 1.15rem;
  }

  .content-shell .hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .content-shell .hero p {
    font-size: 0.96rem;
  }

  .grid.two,
  .grid.three,
  .content-shell .grid.three {
    grid-template-columns: 1fr !important;
  }

  .row,
  .row.between {
    align-items: stretch;
  }

  .row.between > h2,
  .row.between > h3,
  .row.between > strong {
    width: 100%;
  }

  .btn,
  .row .btn,
  .content-shell .hero .btn {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }

  .pill {
    width: fit-content;
    max-width: 100%;
  }

  .item {
    padding: 0.85rem;
  }

  .mini-row,
  .question-row {
    grid-template-columns: 1fr !important;
    align-items: stretch;
  }

  .inline {
    white-space: normal;
    align-items: flex-start;
  }

  .section-card > .row:first-child {
    align-items: stretch;
  }

  .media img,
  .media video {
    max-height: 280px;
  }

  .step-panel {
    padding: 0.85rem;
    border-radius: 1rem;
  }

  .question {
    padding: 0.85rem;
  }

  .table th,
  .table td {
    padding: 0.72rem 0.62rem;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 0.65rem;
  }

  .topbar .eyebrow {
    display: none;
  }

  .topbar strong {
    max-width: 9.5rem;
    font-size: 0.95rem;
  }

  .topbar .pill {
    font-size: 0.68rem;
    padding: 0.3rem 0.5rem;
  }

  .menu-button {
    width: 2.55rem;
    height: 2.55rem;
  }

  .sidebar {
    width: min(19rem, calc(100vw - 2rem));
    padding: 0.85rem;
  }

  .side-brand {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .side-link {
    min-height: 2.65rem;
    padding: 0.72rem 0.78rem;
  }

  .content-shell .container {
    width: min(100% - 0.75rem, 1120px);
    padding-top: 0.5rem;
  }

  .content-shell .hero::after {
    display: none;
  }

  .stat {
    font-size: 2rem;
  }

  .form {
    gap: 0.85rem;
  }

  .input,
  select,
  textarea {
    padding: 0.78rem 0.82rem;
    border-radius: 0.82rem;
  }

  .public-wrap {
    padding: 0.5rem;
  }

  .public-card .card,
  .card {
    padding: 0.85rem;
  }
}

/* StageCall logo asset styling */
.brand-logo {
  display: block;
  width: 9.5rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.login-logo {
  display: block;
  width: min(14rem, 72vw);
  height: auto;
  object-fit: contain;
}

.side-brand {
  align-items: center;
}

.side-brand > div:last-child {
  min-width: 0;
}

.side-brand .brand-logo + div,
.side-brand > div:last-child strong {
  display: none;
}

.side-brand > div:last-child span {
  margin-top: 0.35rem;
  padding-left: 0.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.login-mark {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
}

.login-mark span {
  color: var(--amber-bright);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .brand-logo { width: 8.25rem; }
  .login-logo { width: min(12rem, 70vw); }
}

/* Logo sizing fix: prevent sidebar brand from going full billboard */
.side-brand .brand-logo,
.sidebar .brand-logo {
  width: 9.5rem !important;
  max-width: 100% !important;
  max-height: 2.4rem !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.side-brand img,
.sidebar img {
  flex: 0 1 auto;
}

.login-mark .login-logo,
.login-logo {
  max-height: 4.5rem;
}

@media (max-width: 980px) {
  .side-brand .brand-logo,
  .sidebar .brand-logo {
    width: 8.5rem !important;
    max-height: 2.2rem !important;
  }
}

@media (max-width: 520px) {
  .side-brand .brand-logo,
  .sidebar .brand-logo {
    width: 7.75rem !important;
    max-height: 2rem !important;
  }
}

/* Actual StageCall visible logo lockup */
.stagecall-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.stagecall-lockup .logo {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  font-size: 0.78rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;
  color: #fff;
}

.wordmark span:last-child {
  color: var(--amber-bright);
}

.stagecall-lockup.large {
  gap: 0.8rem;
}

.stagecall-lockup.large .logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  font-size: 1rem;
}

.stagecall-lockup.large .wordmark {
  font-size: clamp(2.25rem, 7vw, 3.6rem);
}

.side-brand .stagecall-lockup + div strong {
  display: none;
}

.side-brand .stagecall-lockup + div span {
  margin-top: 0.25rem;
  padding-left: 0.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.login-mark .stagecall-lockup + span {
  color: var(--amber-bright);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .stagecall-lockup .wordmark { font-size: 1.05rem; }
  .stagecall-lockup.large .wordmark { font-size: clamp(2rem, 13vw, 3rem); }
}

/* Match main StageCall sidebar drawer */
.sidebar {
  padding: 0;
  gap: 0;
  background: #020617;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 24px 0 80px rgba(0, 0, 0, 0.34);
}

.side-brand {
  min-height: 6rem;
  padding: 1.45rem 1.45rem;
  gap: 0.78rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.stagecall-mark {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  border-radius: 0.75rem;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.14);
}

.side-brand strong {
  display: block !important;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.side-brand span {
  display: block;
  margin-top: 0.18rem;
  padding-left: 0 !important;
  color: var(--amber-bright);
  font-size: 0.68rem !important;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.side-nav {
  padding: 1.2rem 0.85rem;
  gap: 0.28rem;
}

.side-link {
  min-height: 3.8rem;
  gap: 1rem;
  border-radius: 1rem;
  padding: 0 1rem;
  color: #94a3b8;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.side-link::before {
  display: none;
}

.side-link:hover,
.side-link.is-active {
  transform: none;
  color: var(--amber-bright);
  border-color: transparent;
  background: rgba(245, 158, 11, 0.10);
}

.side-icon {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor;
}

.side-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-footer {
  padding: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.side-user {
  background: rgba(15, 23, 42, 0.52);
}

@media (max-width: 980px) {
  .sidebar {
    width: min(23.5rem, calc(100vw - 4.5rem));
  }

  .side-brand {
    min-height: 5.9rem;
    padding: 1.35rem 1.25rem;
  }

  .side-nav {
    padding: 1rem 0.75rem;
  }

  .side-link {
    min-height: 3.7rem;
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .sidebar {
    width: min(22rem, calc(100vw - 3.75rem));
  }

  .side-brand {
    padding: 1.25rem 1rem;
  }

  .stagecall-mark {
    width: 2.35rem;
    height: 2.35rem;
  }

  .side-link {
    min-height: 3.45rem;
    padding: 0 0.85rem;
  }
}

