:root {
  --bg: #eef2f0;
  --surface: #ffffff;
  --card: #ffffff;
  --border: rgba(15, 42, 35, 0.12);
  --ink: #0f1f1a;
  --muted: #4a5a55;
  --accent: #1a6f60;
  --accent-strong: #0b332d;
  --accent-soft: #d9f0ea;
  --highlight: #ffe4c9;
  --shadow: 0 26px 70px rgba(12, 28, 24, 0.16);
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
  --app-header-height: 60px;
  --app-header-offset: 8px;
  --app-header-gap: 8px;
  --sidebar-controls-height: 56px;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(26, 111, 96, 0.18), transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(255, 228, 201, 0.7), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(31, 84, 72, 0.12), transparent 50%),
    #f1f5f3;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.app-layout {
  display: flex;
  min-height: 100vh;
  padding-top: calc(var(--app-header-height) + var(--app-header-offset) + var(--app-header-gap));
}

.sidebar-rail {
  display: flex;
  flex-direction: column;
  width: 260px;
  flex: 0 0 260px;
  position: relative;
  margin-left: var(--app-header-offset);
}

.sidebar-controls {
  position: sticky;
  top: calc(var(--app-header-height) + var(--app-header-offset) + var(--app-header-gap) );
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 12px;
  min-height: var(--sidebar-controls-height);
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(6px);
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
}

.app-header {
  position: fixed;
  top: var(--app-header-offset);
  left: var(--app-header-offset);
  right: var(--app-header-offset);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--app-header-height);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  border-bottom: none;
  backdrop-filter: none;
  padding: 0px 10px 0px 0px;
}

.sidebar {
  width: 100%;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--border);
  position: sticky;
  top: calc(var(--app-header-height) + var(--sidebar-controls-height) + var(--app-header-offset) + var(--app-header-gap));
  height: calc(100vh - var(--app-header-height) - var(--sidebar-controls-height) - var(--app-header-offset) - var(--app-header-gap) );
  backdrop-filter: blur(6px);
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 16px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.logo-link:hover {
  border-color: rgba(31, 107, 90, 0.22);
  box-shadow: 0 12px 24px rgba(19, 34, 28, 0.14);
}

.logo-link:active {
  transform: translateY(1px);
}

.logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 18px rgba(31, 107, 90, 0.25);
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.sidebar-backdrop {
  display: none;
}

.content {
  flex: 1;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 18px 80px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  background: rgba(31, 107, 90, 0.08);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
}

.nav-tab.active {
  background: #ffffff;
  color: var(--accent-strong);
  border-color: var(--border);
  box-shadow: 0 8px 22px rgba(31, 107, 90, 0.2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 107, 90, 0.16);
  background: rgba(255, 255, 255, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(19, 34, 28, 0.12);
  position: static;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

body.sidebar-collapsed .sidebar {
  width: 86px;
  padding: 24px 10px;
}

body.sidebar-collapsed .sidebar-rail {
  width: 86px;
  flex-basis: 86px;
}

body.sidebar-collapsed .sidebar-brand {
  align-items: center;
}

body.sidebar-collapsed .nav-menu {
  align-items: stretch;
}

body.sidebar-collapsed .nav-tab {
  padding: 12px;
  justify-content: center;
  gap: 0;
}

body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .brand-subtitle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
  line-height: 1.6;
}

.landing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 22px 60px;
  position: relative;
}

.landing.in-shell {
  padding: 0;
}

.landing::before {
  content: "";
  position: absolute;
  top: 100px;
  right: -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(31, 107, 90, 0.18), transparent 70%);
  z-index: -1;
}

.landing::after {
  content: "";
  position: absolute;
  bottom: 120px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 234, 209, 0.8), transparent 70%);
  z-index: -1;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 20px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.brand-title {
  font-weight: 700;
  margin: 0;
}

.brand-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: rgba(31, 107, 90, 0.12);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 30px rgba(31, 107, 90, 0.22);
}

.btn.ghost {
  background: rgba(31, 107, 90, 0.08);
  color: var(--accent-strong);
}

.btn:active {
  transform: translateY(1px);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 100%;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 24px 0 28px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-art {
  display: grid;
  gap: 18px;
}

.hero-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(31, 107, 90, 0.08);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 107, 90, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
}

.panel-body {
  display: grid;
  gap: 12px;
}

.bubble {
  border-radius: 16px;
  padding: 12px 14px;
  background: #f0f6f3;
}

.bubble.user {
  background: #1f6b5a;
  color: #fff;
  justify-self: end;
}

.bubble-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff5e8;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.strip-card {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 107, 90, 0.08);
}

.strip-card.accent {
  background: #183c35;
  color: #fff;
}

.strip-card.accent .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.card-link {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(19, 34, 28, 0.16);
  border-color: rgba(31, 107, 90, 0.22);
}

.card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-link:active {
  transform: translateY(0);
}

.trust {
  display: grid;
  gap: 16px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(31, 107, 90, 0.1);
  font-weight: 600;
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.split-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.split-card.highlight {
  background: var(--accent);
  color: #fff;
}

.split-card.highlight .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.list {
  padding-left: 18px;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu {
  display: grid;
  gap: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.menu-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(31, 107, 90, 0.08);
  box-shadow: var(--shadow);
}

.process {
  display: grid;
  gap: 20px;
}

.step-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(31, 107, 90, 0.08);
  box-shadow: var(--shadow);
}

.step-number {
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 8px;
}

.proof {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
}

.proof-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.testimonial {
  background: #183c35;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.quote {
  font-size: 1.1rem;
}

.quote-author {
  opacity: 0.8;
  font-size: 0.95rem;
}

.cta-panel {
  background: var(--highlight);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}

.cta-actions {
  display: flex;
  gap: 14px;
}

.faq {
  display: grid;
  gap: 18px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(31, 107, 90, 0.08);
  box-shadow: var(--shadow);
}

.landing-footer {
  margin-top: 80px;
  padding: 24px 0 12px;
  border-top: 1px solid rgba(31, 107, 90, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.reveal {
  animation: fadeUp 0.8s ease both;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .landing-nav {
    flex-direction: column;
    border-radius: 24px;
    position: static;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions,
  .cta-actions,
  .nav-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .split,
  .step-track {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  main {
    gap: 56px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .menu-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .list {
    grid-template-columns: 1fr;
  }

  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* App UI */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

.status-card {
  margin-top: 12px;
}

.status-card.hidden {
  display: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.stack {
  display: flex;
  flex-direction: column;
}

.gap-sm {
  gap: 10px;
}

.gap-md {
  gap: 16px;
}

.row {
  display: flex;
  align-items: center;
}

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

.align-start {
  align-items: flex-start;
}

.row.gap-sm > * {
  margin-right: 10px;
}

.row.gap-sm > *:last-child {
  margin-right: 0;
}

.input-label {
  font-size: 14px;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 42, 35, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #f5f8f7);
  color: var(--ink);
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 107, 90, 0.18);
}

select.input {
  appearance: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), #f5f8f7) padding-box,
    linear-gradient(180deg, rgba(15, 42, 35, 0.12), rgba(15, 42, 35, 0.06)) border-box;
  padding-right: 44px;
  border: 1px solid rgba(15, 42, 35, 0.16);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.2 7.5l4.8 5 4.8-5' fill='none' stroke='%231a6f60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

select.input:hover {
  border-color: rgba(26, 111, 96, 0.5);
}

select.input:focus {
  background-color: #ffffff;
}

select.input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.2 7.5l4.8 5 4.8-5' fill='none' stroke='%238ca29a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.status {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f7fb;
  color: var(--muted);
  border: 1px dashed var(--border);
  font-size: 14px;
}

.status.error {
  background: #ffe7e7;
  color: #a52424;
  border-color: #f3c3c3;
}

.status.success {
  background: #e8f7ef;
  color: #17643d;
  border-color: #c1e6d0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.chip.ghost {
  background: #f5f7fb;
  color: var(--muted);
}

.chip-toggle {
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.chip-toggle:active {
  transform: translateY(1px);
}

.chip-toggle.enabled {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 107, 90, 0.35);
}

.chip-toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.chat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-shell {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  min-height: 240px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.chat-controls {
  margin-top: 4px;
}

.conversation {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bubble.assistant {
  background: #f0f5ff;
}

.bubble .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.bubble.assistant .label {
  color: var(--muted);
}

.missing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.missing-list li {
  padding: 8px 10px;
  background: #fff6d8;
  border: 1px solid #f1de9e;
  border-radius: 10px;
  color: #8a6b1f;
  font-weight: 600;
}

.missing-list li.done {
  background: #e8f7ef;
  border-color: #c1e6d0;
  color: #17643d;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.session-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.session-item + .session-item {
  border-top: 1px solid var(--border);
}

.session-row {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.session-row:hover {
  background: #f7fbff;
}

.session-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.session-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.session-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.session-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.session-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
}

.session-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong);
}

.session-meta-value.muted {
  color: var(--muted);
  font-weight: 500;
}

.session-meta-value.success {
  color: #17643d;
}

.session-meta-value.warning {
  color: #8a6b1f;
}

.session-empty {
  border: none;
  border-radius: 0;
  margin: 0;
}

.template-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 107, 90, 0.22);
  cursor: pointer;
}

.template-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.template-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.template-meta .chip {
  font-weight: 600;
}

.template-card:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  max-width: 720px;
  width: 90%;
  max-height: 80vh;
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(19, 34, 28, 0.3);
  border: 1px solid var(--border);
  padding: 20px;
  z-index: 31;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-titles h2 {
  margin: 4px 0;
}

.loader {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--accent-strong);
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .app-layout {
    display: block;
  }

  .sidebar-rail {
    width: 100%;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: calc(var(--app-header-height) + var(--sidebar-controls-height) + var(--app-header-offset) + var(--app-header-gap));
    height: calc(100vh - var(--app-header-height) - var(--sidebar-controls-height) - var(--app-header-offset) - var(--app-header-gap));
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 20;
    box-shadow: 0 20px 40px rgba(19, 34, 28, 0.2);
  }

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

  .sidebar-backdrop {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: calc(var(--app-header-height) + var(--sidebar-controls-height) + var(--app-header-offset) + var(--app-header-gap));
    background: rgba(19, 34, 28, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 15;
  }

  .sidebar-backdrop.hidden {
    display: none;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .shell {
    padding: 24px 18px 80px;
  }
}
