@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --bg: #08080b;
  --bg-elevated: #101015;
  --panel: rgba(18, 18, 24, 0.72);
  --panel-solid: #14141c;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(201, 169, 98, 0.28);
  --text: #f4f2ec;
  --muted: #9a968e;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dim: rgba(201, 169, 98, 0.14);
  --success: #5ecf8f;
  --danger: #f07178;
  --warning: #e8b86d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%, rgba(201, 169, 98, 0.11), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(120, 140, 200, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201, 169, 98, 0.05), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #fff; }

.display-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: var(--gold-dim);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-muted { color: var(--muted) !important; }

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #b8944a 0%, #e8d5a3 45%, #c9a962 100%);
  color: #1a1408;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 32px rgba(201, 169, 98, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold:hover {
  color: #1a1408;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(201, 169, 98, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--line-gold);
  background: rgba(201, 169, 98, 0.06);
}

.btn-sm-premium {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

/* Glass panels */
.glass {
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.glass-gold {
  border-color: var(--line-gold);
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.06), rgba(18, 18, 24, 0.8));
}

/* Forms */
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.form-control, .form-select {
  background: rgba(8, 8, 11, 0.6) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.7rem 0.95rem !important;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--line-gold) !important;
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.12) !important;
  background: rgba(8, 8, 11, 0.85) !important;
}
.form-control::placeholder { color: #5c5a56; }

.form-check-input {
  background-color: rgba(8, 8, 11, 0.8);
  border-color: var(--line);
}
.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

/* Alerts */
.alert-premium {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}
.alert-danger-premium {
  background: rgba(240, 113, 120, 0.1);
  border-color: rgba(240, 113, 120, 0.3);
  color: #ffb4b8;
}
.alert-success-premium {
  background: rgba(94, 207, 143, 0.1);
  border-color: rgba(94, 207, 143, 0.3);
  color: #9ee8bc;
}
.alert-info-premium {
  background: rgba(201, 169, 98, 0.08);
  border-color: var(--line-gold);
  color: var(--gold-light);
}

/* Public nav */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 11, 0.82);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark:hover { color: #fff; }
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b8944a, #e8d5a3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1408;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -2px;
}

/* Auth layout */
.auth-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}
.auth-card {
  padding: 2rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Landing */
.hero-section {
  padding: 5rem 0 4rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.preview-window {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow), 0 0 60px rgba(201, 169, 98, 0.08);
}
.preview-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--line);
}
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.preview-body { padding: 1.5rem; }
.preview-post {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 1rem;
}
.preview-post-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.preview-stat {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.pipeline-chip {
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px dashed var(--line-gold);
  font-size: 0.78rem;
  color: var(--gold-light);
  text-align: center;
}

.feature-grid { padding: 4rem 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.feature-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 18, 24, 0.5);
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid var(--line-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.steps-section { padding: 2rem 0 5rem; }
.step-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  height: 100%;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.cta-band {
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(160deg, rgba(201, 169, 98, 0.1), rgba(18, 18, 24, 0.6));
}

.public-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* App shell */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.app-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(12, 12, 16, 0.9);
  backdrop-filter: blur(12px);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.app-main {
  padding: 2rem 2.5rem 3rem;
  min-width: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 2rem;
  flex: 1;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.2s;
}
.sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-link.active {
  color: var(--gold-light);
  background: var(--gold-dim);
  border: 1px solid var(--line-gold);
}
.sidebar-icon { opacity: 0.85; font-size: 1rem; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.page-desc {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.section-card {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 18, 24, 0.55);
}
.section-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Tables */
.table-premium {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-premium thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.table-premium tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table-premium tbody tr:hover td {
  background: rgba(201, 169, 98, 0.03);
}
.table-premium tbody tr:last-child td { border-bottom: none; }

.badge-on {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(94, 207, 143, 0.12);
  color: var(--success);
  border: 1px solid rgba(94, 207, 143, 0.25);
}
.badge-off {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--line);
}

.status-ready { color: var(--success); }
.status-failed { color: var(--danger); }
.status-processing { color: var(--warning); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.back-link:hover { color: var(--gold-light); }

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.btn-action {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-action:hover { border-color: var(--line-gold); color: #fff; }
.btn-action-primary {
  background: linear-gradient(135deg, #b8944a, #c9a962);
  border: none;
  color: #1a1408;
}
.btn-action-primary:hover { color: #1a1408; box-shadow: 0 8px 24px rgba(201, 169, 98, 0.3); }
.btn-action-warn {
  border-color: rgba(232, 184, 109, 0.4);
  color: var(--warning);
}
.btn-action-danger {
  border-color: rgba(240, 113, 120, 0.35);
  color: #ffb4b8;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
}
.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.doc-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.doc-check-item {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(8, 8, 11, 0.4);
  margin: 0;
}
.doc-check-item:hover {
  border-color: var(--line-gold);
}

.extra-target-row {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(8, 8, 11, 0.35);
  margin-bottom: 0.65rem;
}

/* Error page */
.error-page-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.error-page {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.error-brand { margin-bottom: 0.5rem; }

.error-card {
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  border-color: var(--line-gold);
}

.error-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: var(--gold-dim);
  border: 1px solid var(--line-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-light);
}

.error-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.error-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.error-message {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.error-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.error-inline {
  border-color: var(--line-gold);
}
.error-inline-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid var(--line-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.1rem;
}

/* Upload progress */
.upload-progress {
  border-color: var(--line-gold);
}
.upload-progress-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.upload-progress-pct {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-light);
}
.upload-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid var(--line);
}
.upload-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8944a, #e8d5a3, #c9a962);
  box-shadow: 0 0 20px rgba(201, 169, 98, 0.35);
  transition: width 0.15s ease;
}
.upload-progress.is-processing .upload-progress-bar {
  width: 100% !important;
  background: linear-gradient(90deg, #b8944a 0%, #e8d5a3 50%, #b8944a 100%);
  background-size: 200% 100%;
  animation: upload-shimmer 1.4s ease-in-out infinite;
}
@keyframes upload-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.upload-form.is-uploading {
  opacity: 0.55;
  pointer-events: none;
}
.upload-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.upload-form-files {
  flex: 1 1 280px;
  min-width: 0;
}
.upload-form-action {
  flex: 0 0 160px;
}
.form-label-spacer {
  visibility: hidden;
  user-select: none;
  pointer-events: none;
}
.upload-file-hint {
  min-height: 1.25rem;
}
.upload-queue {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.upload-queue-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(8, 8, 11, 0.35);
  font-size: 0.82rem;
}
.upload-queue-item.is-active {
  border-color: var(--line-gold);
  background: rgba(201, 169, 98, 0.06);
}
.upload-queue-item.is-done {
  opacity: 0.75;
}
.upload-queue-item.is-error {
  border-color: rgba(240, 113, 120, 0.35);
}
.upload-queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.upload-queue-item.is-active .upload-queue-dot {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 169, 98, 0.6);
}
.upload-queue-item.is-done .upload-queue-dot {
  background: var(--success);
}
.upload-queue-item.is-error .upload-queue-dot {
  background: var(--danger);
}
.upload-queue-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-queue-state {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 0.75rem;
}

.doc-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.doc-title-display {
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s, border-color 0.2s;
  padding: 0.1rem 0;
}
.doc-title-display:hover,
.doc-title-display:focus {
  color: var(--gold-light);
  border-bottom-color: var(--line-gold);
  outline: none;
}
.doc-title-input {
  min-width: 180px;
  max-width: 100%;
  padding: 0.35rem 0.55rem !important;
  font-size: 0.9rem !important;
  font-weight: 600;
}
.doc-title-wrap.is-saving .doc-title-display {
  opacity: 0.5;
}
.doc-title-wrap.is-error .doc-title-input {
  border-color: rgba(240, 113, 120, 0.5) !important;
}
.status-pulse {
  animation: status-pulse 1.5s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.index-progress-wrap {
  min-width: 180px;
}
.index-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.index-progress-stage {
  font-size: 0.78rem;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.index-progress-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.index-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid var(--line);
}
.index-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8944a, #e8d5a3, #c9a962);
  box-shadow: 0 0 12px rgba(201, 169, 98, 0.25);
  transition: width 0.35s ease;
}
.index-progress-wrap.is-queued .index-progress-bar {
  width: 35% !important;
  background: linear-gradient(90deg, #b8944a 0%, #e8d5a3 50%, #b8944a 100%);
  background-size: 200% 100%;
  animation: upload-shimmer 1.4s ease-in-out infinite;
}

@media (max-width: 991px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 1rem;
  }
  .app-main { padding: 1.25rem 1rem 2rem; }
  .hero-section { padding: 3rem 0 2rem; }
}