:root {
  --bg: #f3f5f7;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-solid: #ffffff;
  --surface-soft: #f3f6f8;
  --border: #d6dee4;
  --border-strong: #c5d0d7;
  --text: #18242d;
  --muted: #64727d;
  --primary: #0f6b5b;
  --primary-strong: #0b4f44;
  --primary-soft: #dcefe8;
  --accent: #b7793f;
  --danger: #d35d47;
  --warning: #d6a13d;
  --shadow: 0 16px 36px rgba(18, 35, 46, 0.07);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 107, 91, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(183, 121, 63, 0.07), transparent 22%),
    var(--bg);
  color: var(--text);
}

.environment-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(90deg, #7f1d1d 0%, #9a3412 100%);
  color: #fff7ed;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(127, 29, 29, 0.18);
}

.environment-banner strong {
  color: #ffffff;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 28px 18px;
  border-right: 1px solid rgba(198, 209, 216, 0.84);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 249, 250, 0.97));
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px 18px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #19a782);
  color: white;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 12px 30px rgba(13, 122, 99, 0.26);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-subtitle {
  font-weight: 600;
}

.brand-subtitle,
.group-label,
.section-kicker,
.muted,
.table-subtext,
.eyebrow {
  color: var(--muted);
}

.group-label,
.section-kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.sidebar-nav,
.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, rgba(220, 239, 232, 0.76), rgba(255, 255, 255, 0.98));
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px rgba(15, 107, 91, 0.08);
}

.inline-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--primary-strong);
}

.inline-link-btn:hover {
  text-decoration: underline;
}

.nav-item.subtle {
  font-weight: 500;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-chip {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.mini-card {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 249, 0.99));
  border: 1px solid var(--border);
}

.mini-card-title {
  font-weight: 700;
}

.mini-card-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.main-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 49px;
  z-index: 20;
  padding: 18px 30px 16px;
  background: linear-gradient(180deg, rgba(243, 245, 247, 0.98), rgba(243, 245, 247, 0.92));
  backdrop-filter: blur(18px);
}

.search {
  width: min(480px, 100%);
  position: relative;
}

.search input {
  width: 100%;
  border: 1px solid rgba(198, 209, 216, 0.9);
  background: rgba(255, 255, 255, 0.99);
  border-radius: 999px;
  padding: 16px 116px 16px 20px;
  color: var(--text);
  outline: none;
  box-shadow: 0 8px 20px rgba(18, 35, 46, 0.04);
}

.search-shortcut {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 122, 99, 0.08);
  border: 1px solid rgba(13, 122, 99, 0.12);
  color: var(--primary-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.role-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(198, 209, 216, 0.9);
  box-shadow: 0 8px 20px rgba(18, 35, 46, 0.04);
}

.hidden {
  display: none !important;
}

.role-option {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.role-option.active {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.icon-btn,
.primary-pill,
.reward-pill,
.ghost-btn,
.solid-btn,
.tag,
.switcher button,
.tab-btn,
.chip-btn,
.stat-badge {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.icon-btn {
  width: 48px;
  height: 48px;
  background: var(--surface-solid);
  color: var(--primary);
  border: 1px solid rgba(198, 209, 216, 0.84);
  box-shadow: 0 10px 22px rgba(18, 35, 46, 0.05);
  cursor: pointer;
}

.primary-pill {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary), #15816d);
  color: white;
  cursor: pointer;
}

.reward-pill {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(198, 209, 216, 0.88);
  color: #7d5629;
  max-width: min(360px, 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  font-size: 0;
  color: transparent;
}

.profile-chip::after {
  content: "A";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dcefe8, #eef7f4);
  color: var(--primary-strong);
  font-size: 1rem;
  font-weight: 800;
  z-index: 0;
}

.profile-chip img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  font-size: 0;
  color: transparent;
}

#authButton,
#portalToggle,
#modeBadge,
.profile-chip,
.primary-pill,
.icon-btn,
.role-switcher {
  flex-shrink: 0;
}

.search {
  flex: 1 1 360px;
}

#modeBadge {
  min-width: 0;
}

.demo-guide-card {
  margin: 0 30px 18px;
  border: 1px solid rgba(15, 107, 91, 0.12);
  background:
    radial-gradient(circle at top right, rgba(15, 107, 91, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 243, 0.94));
}

.coming-soon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-style: dashed;
  border-color: rgba(183, 121, 63, 0.35);
  color: #7d5629;
  background: linear-gradient(135deg, rgba(255, 249, 240, 0.98), rgba(255, 255, 255, 0.98));
}

.coming-soon-btn span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(183, 121, 63, 0.12);
  color: #7d5629;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.migration-status-callout {
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.94), rgba(255, 255, 255, 0.98));
  border-color: rgba(183, 121, 63, 0.2);
}

.shell-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: 10px 30px 6px;
}

.shell-hero.hidden {
  display: none;
}

.shell-spotlight,
.shell-rail-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(219, 230, 224, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.shell-spotlight {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  min-height: 224px;
  background:
    radial-gradient(circle at top right, rgba(244, 162, 97, 0.2), transparent 28%),
    radial-gradient(circle at bottom left, rgba(13, 122, 99, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 243, 0.88));
}

.shell-spotlight::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(13, 122, 99, 0.08);
  filter: blur(12px);
}

.shell-spotlight-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 22px;
}

.shell-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(13, 122, 99, 0.1);
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.12);
}

.spotlight-title {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 10ch;
}

.spotlight-subtitle {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.65;
}

.shell-action-row,
.shell-chip-row,
.command-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.shell-action-row {
  margin-top: 22px;
}

.shell-chip-row {
  margin-top: 16px;
}

.shell-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(191, 211, 199, 0.82);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.shell-chip strong {
  color: var(--primary-strong);
}

.shell-insight-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(16, 33, 28, 0.92);
  color: #f4fbf8;
  box-shadow: 0 24px 40px rgba(16, 33, 28, 0.22);
}

.shell-insight-label {
  color: rgba(235, 247, 241, 0.74);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-insight-value {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.shell-insight-copy {
  color: rgba(235, 247, 241, 0.8);
  line-height: 1.55;
}

.shell-mini-metrics {
  display: grid;
  gap: 10px;
}

.shell-mini-metric {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(244, 251, 248, 0.86);
}

.shell-mini-metric strong {
  color: #ffffff;
}

.shell-rail {
  display: grid;
  gap: 18px;
}

.shell-rail-card {
  border-radius: 24px;
  padding: 22px;
}

.shell-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.shell-rail-title {
  margin: 0;
  font-size: 1.05rem;
}

.shell-rail-value {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.shell-rail-copy {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.signal-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.signal-label {
  font-size: 0.92rem;
  font-weight: 700;
}

.signal-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.signal-track {
  position: relative;
  width: 110px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(219, 230, 224, 0.88);
}

.signal-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #57c7a5);
}

.command-grid {
  margin-top: 10px;
}

.command-card {
  min-width: 200px;
  flex: 1 1 220px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(191, 211, 199, 0.84);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.command-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(15, 40, 33, 0.08);
  border-color: rgba(13, 122, 99, 0.22);
}

.command-card strong,
.command-card span {
  display: block;
}

.command-card strong {
  color: var(--text);
  font-size: 0.98rem;
}

.command-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.view {
  display: none;
  padding: 10px 30px 34px;
}

.view.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 22px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0;
  letter-spacing: -0.04em;
}

.page-subtitle {
  margin-top: 8px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

.hero-panel,
.panel,
.stat-card,
.table-card,
.list-card,
.profile-card,
.marketing-hero,
.settings-shell,
.calendar-shell {
  background: var(--surface);
  border: 1px solid rgba(214, 222, 228, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 20px;
}

.calendar-hero-panel {
  position: relative;
  overflow: hidden;
}

.calendar-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(13, 122, 99, 0.08), transparent 45%),
    radial-gradient(circle at top right, rgba(244, 162, 97, 0.2), transparent 24%);
  pointer-events: none;
}

.calendar-hero-copy,
.calendar-radar-card {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.hero-actions,
.button-row,
.filter-row,
.tab-row,
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.solid-btn,
.ghost-btn,
.chip-btn,
.tab-btn,
.switcher button {
  padding: 11px 16px;
  cursor: pointer;
}

.solid-btn {
  background: linear-gradient(135deg, var(--primary), #15816d);
  color: #fff;
}

.ghost-btn,
.chip-btn,
.tab-btn,
.switcher button {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  border: 1px solid rgba(198, 209, 216, 0.9);
}

.ghost-btn.active,
.chip-btn.active,
.tab-btn.active,
.switcher button.active {
  background: var(--primary-soft);
  border-color: rgba(15, 107, 91, 0.18);
  color: var(--primary-strong);
}

.table-search-input {
  min-width: 260px;
  padding: 11px 14px;
  border: 1px solid rgba(198, 209, 216, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

.table-search-input::placeholder {
  color: var(--muted);
}

.insight-grid,
.stats-grid,
.analytics-grid,
.split-grid,
.marketing-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.stat-card,
.panel,
.table-card,
.list-card,
.profile-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
}

.stat-value {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress {
  margin-top: 16px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8efeb;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #57c7a5);
}

.analytics-grid {
  grid-template-columns: 1.5fr 1fr;
}

.split-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.panel-title-row,
.table-toolbar,
.settings-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title,
.table-title {
  margin: 0;
  font-size: 1.2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 16px 10px;
  border-top: 1px solid rgba(219, 230, 224, 0.82);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-primary {
  color: var(--primary-strong);
  font-weight: 700;
}

.table-subtext {
  margin-top: 6px;
  font-size: 0.87rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill.good {
  background: rgba(88, 201, 137, 0.18);
  color: #1d7d46;
}

.status-pill.warn {
  background: rgba(242, 193, 78, 0.22);
  color: #8a6514;
}

.status-pill.soft {
  background: rgba(13, 122, 99, 0.1);
  color: var(--primary-strong);
}

.calendar-shell {
  border-radius: var(--radius-xl);
  padding: 20px;
}

.calendar-hero-pills,
.calendar-agenda-grid,
.agenda-list,
.load-list {
  display: grid;
  gap: 14px;
}

.calendar-hero-pills {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.calendar-hero-pill {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 211, 199, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.calendar-hero-pill strong,
.calendar-hero-pill span,
.agenda-time,
.agenda-kind,
.load-pill strong,
.load-pill span,
.calendar-day-meta {
  display: block;
}

.calendar-hero-pill strong {
  font-size: 1.2rem;
  color: var(--primary-strong);
}

.calendar-hero-pill span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.calendar-radar-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(219, 230, 224, 0.76);
  color: var(--muted);
  line-height: 1.55;
}

.calendar-agenda-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.agenda-card {
  min-height: 100%;
}

.agenda-list,
.load-list {
  margin-top: 8px;
}

.agenda-item,
.load-item {
  display: grid;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(219, 230, 224, 0.76);
}

.agenda-item:first-child,
.load-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.agenda-item {
  grid-template-columns: 72px 1fr;
}

.agenda-time {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary-strong);
  text-transform: uppercase;
}

.agenda-kind {
  margin-top: 4px;
  color: #8b501a;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.load-item {
  grid-template-columns: 1fr auto;
}

.load-pill {
  min-width: 92px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 122, 99, 0.12), rgba(87, 199, 165, 0.14));
  text-align: right;
}

.load-pill strong {
  font-size: 1.1rem;
  color: var(--primary-strong);
}

.load-pill span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.ops-ai-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ops-ai-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(214, 222, 228, 0.92);
  background:
    radial-gradient(circle at top right, rgba(15, 107, 91, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(247, 250, 250, 0.98), rgba(255, 255, 255, 0.98));
}

.ops-ai-modal {
  display: grid;
  grid-template-rows: auto auto auto minmax(260px, 1fr);
  min-height: min(58vh, 640px);
  gap: 14px;
}

.ops-ai-modal-card {
  width: min(920px, calc(100vw - 32px));
  max-height: min(92vh, 860px);
}

.ops-ai-prompt-field {
  display: grid;
  gap: 8px;
}

.ops-ai-prompt-field textarea {
  min-height: 88px;
  max-height: 160px;
}

.ops-ai-response {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  overflow: auto;
}

.ops-ai-answer {
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ops-ai-response .table-subtext {
  margin-top: auto;
  padding-top: 10px;
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.weekday {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calendar-day {
  min-height: 168px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(219, 230, 224, 0.86);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-day.calendar-drop-target {
  border-color: rgba(13, 122, 99, 0.9);
  box-shadow: inset 0 0 0 2px rgba(13, 122, 99, 0.18);
}

.calendar-day.today {
  border-color: rgba(13, 122, 99, 0.58);
  box-shadow: 0 0 0 2px rgba(13, 122, 99, 0.12);
}

.calendar-day.muted {
  opacity: 0.48;
}

.calendar-date {
  font-weight: 800;
  color: var(--text);
}

.calendar-day-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.event-chip {
  border: 0;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  cursor: grab;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.event-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 40, 33, 0.08);
}

.event-chip.session {
  background: rgba(13, 122, 99, 0.12);
  color: var(--primary-strong);
}

.event-chip.intake {
  background: rgba(244, 162, 97, 0.18);
  color: #8b501a;
}

.event-chip.admin {
  background: rgba(97, 113, 106, 0.15);
  color: #44514c;
}

.calendar-grid-neutral .event-chip {
  background: rgba(245, 247, 248, 0.98);
  color: var(--text);
}

.calendar-grid-focus .event-chip.admin {
  opacity: 0.55;
}

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

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-soft);
  flex-shrink: 0;
}

.metrics-list,
.activity-list,
.settings-list,
.task-list {
  display: grid;
  gap: 14px;
}

.metric-row,
.activity-item,
.settings-item,
.task-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(219, 230, 224, 0.76);
}

.metric-row:first-child,
.activity-item:first-child,
.settings-item:first-child,
.task-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.spark-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 120px;
  margin-top: 18px;
}

.spark-bars span {
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #96d6c3, var(--primary));
}

.donut {
  width: 170px;
  aspect-ratio: 1;
  margin: 10px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.donut-center {
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text);
  line-height: 1.2;
}

.donut-center strong,
.donut-center span {
  display: block;
}

.donut-center strong {
  font-size: 1.45rem;
  font-weight: 800;
}

.donut-center span {
  margin-top: 4px;
  max-width: 68px;
  font-size: 0.92rem;
  font-weight: 700;
}

.data-table tr[data-action] {
  cursor: pointer;
}

.data-table tr[data-action]:hover {
  background: rgba(13, 122, 99, 0.04);
}

.marketing-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.marketing-showcase,
.marketing-editorial-grid,
.marketing-pillars-grid,
.marketing-proof-grid,
.marketing-stat-row {
  display: grid;
  gap: 18px;
}

.marketing-showcase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(183, 121, 63, 0.12), transparent 22%),
    radial-gradient(circle at bottom left, rgba(15, 107, 91, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 250, 0.98));
}

.marketing-showcase-copy,
.marketing-proof-card {
  position: relative;
  z-index: 1;
}

.marketing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 107, 91, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-headline {
  margin: 16px 0 12px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

.marketing-lede {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.marketing-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.marketing-stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.marketing-stat-pill {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(198, 209, 216, 0.9);
  background: rgba(255, 255, 255, 0.86);
}

.marketing-stat-pill strong,
.marketing-stat-pill span {
  display: block;
}

.marketing-stat-pill strong {
  font-size: 1.4rem;
  color: var(--primary-strong);
  letter-spacing: -0.05em;
}

.marketing-stat-pill span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.marketing-proof-card {
  align-self: stretch;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(21, 34, 42, 0.96), rgba(27, 47, 42, 0.96));
  color: #eef7f4;
  box-shadow: 0 20px 38px rgba(18, 35, 46, 0.16);
}

.marketing-proof-card .table-subtext,
.marketing-proof-card .panel-title,
.marketing-proof-card .check-list div {
  color: inherit;
}

.marketing-editorial-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  margin-top: 18px;
}

.marketing-editorial-card {
  min-height: 100%;
}

.marketing-quote-card {
  display: grid;
  align-content: space-between;
  min-height: 100%;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 239, 0.96));
}

.marketing-quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: rgba(183, 121, 63, 0.45);
}

.marketing-quote-copy {
  margin-top: 10px;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.marketing-quote-attrib {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marketing-pillars-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-pillar-card,
.marketing-proof-tile {
  min-height: 100%;
}

.marketing-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-shell.showcase-mode {
  grid-template-columns: 1fr;
}

.app-shell.showcase-mode .sidebar,
.app-shell.showcase-mode .topbar {
  display: none;
}

.app-shell.showcase-mode .main-shell {
  padding-bottom: 0;
}

.showcase-view.active {
  padding: 0;
}

.showcase-shell {
  min-height: calc(100vh - 49px);
  padding: 34px 34px 56px;
  background:
    radial-gradient(circle at top right, rgba(183, 121, 63, 0.16), transparent 22%),
    radial-gradient(circle at 15% 20%, rgba(15, 107, 91, 0.08), transparent 20%),
    radial-gradient(circle at bottom left, rgba(15, 107, 91, 0.1), transparent 30%),
    linear-gradient(180deg, #f6f5f1 0%, #edf1f4 100%);
}

.showcase-hero-block,
.showcase-band,
.showcase-editorial,
.showcase-footer {
  max-width: 1320px;
  margin: 0 auto;
}

.showcase-topline {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.showcase-hero-grid,
.showcase-feature-grid,
.showcase-editorial,
.showcase-stat-strip,
.showcase-cinema-band,
.showcase-cinema-strip {
  display: grid;
  gap: 20px;
}

.showcase-hero-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  margin-top: 18px;
  padding: 42px;
  border-radius: 36px;
  border: 1px solid rgba(212, 218, 223, 0.94);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 240, 0.96) 58%, rgba(238, 244, 246, 0.96)),
    radial-gradient(circle at top right, rgba(183, 121, 63, 0.14), transparent 24%);
  box-shadow: 0 28px 70px rgba(18, 35, 46, 0.1);
}

.showcase-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(15, 107, 91, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-title {
  margin: 18px 0 14px;
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.showcase-copy {
  max-width: 68ch;
  color: rgba(78, 94, 92, 0.96);
  font-size: 1.08rem;
  line-height: 1.82;
}

.showcase-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.showcase-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.showcase-trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 43, 40, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-strong);
  font-size: 0.83rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.showcase-stat-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.showcase-stat-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(214, 222, 228, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.showcase-stat-card strong,
.showcase-stat-card span {
  display: block;
}

.showcase-stat-card strong {
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: var(--primary-strong);
}

.showcase-stat-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.showcase-feature-card,
.showcase-editorial-card,
.showcase-mini-panel {
  border: 1px solid rgba(214, 222, 228, 0.92);
  box-shadow: 0 16px 34px rgba(18, 35, 46, 0.06);
}

.showcase-media-stage {
  position: relative;
  min-height: 660px;
  border-radius: 30px;
  overflow: hidden;
}

.showcase-media-frame,
.showcase-cinema-card {
  overflow: hidden;
  border: 1px solid rgba(214, 222, 228, 0.82);
  box-shadow: 0 22px 44px rgba(18, 35, 46, 0.14);
  background:
    linear-gradient(180deg, rgba(229, 236, 239, 0.96), rgba(244, 247, 249, 0.94));
}

.showcase-media-frame-main {
  position: absolute;
  inset: 0 112px 132px 0;
  border-radius: 32px;
}

.showcase-media-frame-secondary {
  position: absolute;
  right: 0;
  top: 34px;
  width: 40%;
  height: 220px;
  border-radius: 26px;
  z-index: 2;
}

.showcase-ui-frame {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(183, 121, 63, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(248, 249, 250, 0.98), rgba(232, 238, 241, 0.98));
  animation: showcaseFloatMain 12s ease-in-out infinite;
}

.showcase-ui-window {
  height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(203, 214, 220, 0.92);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.showcase-ui-window-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px 0;
}

.showcase-ui-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(111, 129, 142, 0.32);
}

.showcase-ui-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.showcase-ui-card {
  min-height: 136px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(244, 248, 249, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(213, 223, 228, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.showcase-ui-card-large {
  grid-column: span 2;
  min-height: 166px;
  background:
    radial-gradient(circle at top right, rgba(15, 107, 91, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(246, 249, 250, 0.99), rgba(255, 255, 255, 0.98));
}

.showcase-ui-label,
.showcase-cinema-kicker {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-ui-card strong,
.showcase-cinema-card-copy strong {
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.showcase-metric-frame {
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(15, 107, 91, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(250, 251, 251, 0.98), rgba(239, 244, 246, 0.98));
  animation: showcaseFloatSecondary 10s ease-in-out infinite;
}

.showcase-metric-stack {
  display: grid;
  gap: 12px;
  height: 100%;
}

.showcase-metric-chip {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(210, 220, 225, 0.96);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 8px;
}

.showcase-metric-chip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-metric-chip strong {
  font-size: 1rem;
  line-height: 1.35;
}

.showcase-media-overlay-card {
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: min(420px, calc(100% - 32px));
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(214, 222, 228, 0.92);
  background:
    radial-gradient(circle at top right, rgba(189, 141, 78, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(18, 31, 38, 0.97), rgba(24, 44, 39, 0.98));
  color: #eef7f4;
  box-shadow: 0 20px 46px rgba(18, 35, 46, 0.22);
  backdrop-filter: blur(18px);
  z-index: 3;
}

.showcase-founder-chip {
  position: absolute;
  left: 24px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(214, 222, 228, 0.86);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 30px rgba(18, 35, 46, 0.12);
  backdrop-filter: blur(12px);
  z-index: 3;
}

.showcase-founder-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #19a782);
  color: white;
  font-weight: 800;
}

.showcase-founder-chip strong,
.showcase-founder-chip span {
  display: block;
}

.showcase-founder-chip strong {
  font-size: 0.9rem;
}

.showcase-founder-chip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.showcase-hero-card-label {
  color: rgba(238, 247, 244, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-hero-card-value {
  margin-top: 16px;
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.5;
}

.showcase-mini-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  color: rgba(238, 247, 244, 0.86);
  font-size: 0.92rem;
}

.showcase-band {
  margin-top: 32px;
  padding: 34px 0 0;
}

.showcase-cinema-band {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  max-width: 1320px;
  margin: 34px auto 0;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(214, 222, 228, 0.88);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 48px rgba(18, 35, 46, 0.08);
  backdrop-filter: blur(14px);
}

.showcase-cinema-copy {
  max-width: 42ch;
}

.showcase-cinema-strip {
  grid-template-columns: 1.25fr 0.95fr 0.95fr;
  align-items: stretch;
}

.showcase-cinema-card {
  min-height: 250px;
  border-radius: 24px;
  background: #dfe6ea;
}

.showcase-cinema-card:first-child {
  min-height: 290px;
}

.showcase-cinema-card-copy {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(183, 121, 63, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 250, 0.96));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.showcase-cinema-card:nth-child(1) {
  animation: showcaseFloatMain 13s ease-in-out infinite;
}

.showcase-cinema-card:nth-child(2) {
  animation: showcaseFloatSecondary 11s ease-in-out infinite;
}

.showcase-cinema-card:nth-child(3) {
  animation: showcaseFloatMain 14s ease-in-out infinite reverse;
}

.showcase-band-header {
  margin-bottom: 18px;
}

.showcase-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-feature-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 250, 0.96));
}

.showcase-editorial {
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.2fr);
  margin-top: 28px;
}

.showcase-editorial-card {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 243, 236, 0.98));
}

.showcase-quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: rgba(183, 121, 63, 0.42);
}

.showcase-quote {
  margin-top: 10px;
  font-size: 1.36rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
}

.showcase-quote-attrib {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-stack {
  display: grid;
  gap: 16px;
}

.showcase-mini-panel {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 28px 0 0;
}

.showcase-roadmap-band {
  position: relative;
}

.showcase-roadmap-band::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(17, 28, 35, 0.04), rgba(184, 132, 74, 0.05));
  pointer-events: none;
}

.showcase-roadmap-note {
  max-width: 64ch;
}

.showcase-roadmap-card {
  background: linear-gradient(180deg, rgba(252, 251, 249, 0.99), rgba(247, 246, 242, 0.98));
}

@keyframes showcaseFloatMain {
  0%,
  100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(0, -10px, 0);
  }
}

@keyframes showcaseFloatSecondary {
  0%,
  100% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.07) translate3d(0, -8px, 0);
  }
}

@media (max-width: 1100px) {
  .showcase-hero-grid,
  .showcase-cinema-band,
  .showcase-editorial {
    grid-template-columns: 1fr;
  }

  .showcase-media-stage {
    min-height: 820px;
  }

  .showcase-media-frame-main {
    inset: 0 0 286px 0;
  }

  .showcase-media-frame-secondary {
    top: auto;
    right: 18px;
    bottom: 260px;
    width: min(360px, calc(100% - 36px));
    height: auto;
  }

  .showcase-media-overlay-card {
    right: 18px;
    bottom: 18px;
    width: min(420px, calc(100% - 36px));
  }

  .showcase-founder-chip {
    left: 18px;
    bottom: 212px;
    max-width: min(320px, calc(100% - 36px));
  }
}

@media (max-width: 780px) {
  .showcase-shell {
    padding: 22px 18px 40px;
  }

  .showcase-hero-grid {
    padding: 24px;
  }

  .showcase-title {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .showcase-stat-strip,
  .showcase-feature-grid,
  .showcase-cinema-strip {
    grid-template-columns: 1fr;
  }

  .showcase-media-stage {
    min-height: 760px;
  }

  .showcase-media-frame-main {
    inset: 0 0 286px 0;
  }

  .showcase-media-frame-secondary {
    top: auto;
    right: 0;
    bottom: 252px;
    width: min(320px, 100%);
    height: auto;
  }

  .showcase-media-overlay-card {
    right: 0;
    bottom: 0;
    width: 100%;
  }

  .showcase-founder-chip {
    left: 0;
    bottom: 198px;
    max-width: min(320px, 100%);
    border-radius: 22px;
  }

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

.profile-strength {
  display: grid;
  gap: 10px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.check-list div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.check-list div::before {
  content: "✓";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 122, 99, 0.12);
  color: var(--primary);
  font-weight: 800;
}

.settings-shell {
  border-radius: var(--radius-xl);
  padding: 18px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}

.settings-nav {
  padding: 12px;
  border-radius: 22px;
  background: rgba(244, 247, 246, 0.9);
  border: 1px solid rgba(219, 230, 224, 0.9);
}

.settings-group {
  margin-bottom: 18px;
}

.settings-group button {
  width: 100%;
  margin-top: 8px;
}

.settings-panel {
  padding: 10px 6px 10px 2px;
}

.toggle {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #d9e6e0;
  border: 0;
  cursor: pointer;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 10px rgba(15, 40, 33, 0.14);
  transition: 180ms ease;
}

.toggle.on {
  background: linear-gradient(135deg, var(--primary), #2cb28d);
}

.toggle.on::after {
  left: 28px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

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

.callout {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(216, 243, 235, 0.85), rgba(255, 250, 243, 0.8));
  border: 1px solid rgba(13, 122, 99, 0.14);
}

.empty-state {
  padding: 40px 18px;
  text-align: center;
  color: var(--muted);
}

#modalRoot {
  position: fixed;
  inset: 0;
  z-index: 999;
  isolation: isolate;
}

#modalRoot:empty {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 28, 24, 0.42);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1000;
  pointer-events: auto;
}

.modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(219, 230, 224, 0.9);
  box-shadow: 0 28px 80px rgba(15, 40, 33, 0.18);
  padding: 24px;
  z-index: 1001;
  pointer-events: auto;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.modal-title {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.close-btn {
  border: 0;
  background: rgba(239, 245, 242, 0.95);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.helper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 10px;
}

.helper-tile {
  padding: 14px;
  border-radius: 18px;
  background: rgba(244, 247, 246, 0.95);
  border: 1px solid var(--border);
}

.helper-tile strong {
  display: block;
  font-size: 1.05rem;
}

.helper-tile span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.portal-shell {
  min-height: 100vh;
  padding: 48px;
  background:
    radial-gradient(circle at top left, rgba(13, 122, 99, 0.14), transparent 28%),
    linear-gradient(180deg, #f5faf7 0%, #eef6f2 100%);
}

.portal-panel,
.portal-topbar {
  max-width: 1180px;
  margin: 0 auto 24px;
}

.attachment-preview-shell {
  padding: 8px 0 4px;
}

.attachment-preview-image,
.attachment-preview-frame {
  width: 100%;
  min-height: 420px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f6fbf8;
}

.attachment-preview-image {
  object-fit: contain;
  max-height: 70vh;
}

.attachment-preview-text {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f6fbf8;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.5;
}

.danger-btn {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(231, 111, 81, 0.12);
  color: #a84d36;
  font-weight: 700;
  cursor: pointer;
}

.note-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
}

.note-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 12px;
}

.view.active > * {
  animation: rise-in 420ms ease both;
}

.view.active > *:nth-child(2) {
  animation-delay: 50ms;
}

.view.active > *:nth-child(3) {
  animation-delay: 100ms;
}

.view.active > *:nth-child(4) {
  animation-delay: 150ms;
}

.shell-spotlight,
.shell-rail-card,
.hero-panel,
.calendar-shell,
.list-card,
.table-card,
.stat-card,
.profile-card,
.panel,
.settings-shell {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.shell-spotlight:hover,
.shell-rail-card:hover,
.hero-panel:hover,
.calendar-shell:hover,
.list-card:hover,
.table-card:hover,
.stat-card:hover,
.profile-card:hover,
.panel:hover,
.settings-shell:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(15, 40, 33, 0.11);
  border-color: rgba(13, 122, 99, 0.16);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .shell-hero,
  .shell-spotlight-grid,
  .stats-grid,
  .analytics-grid,
  .split-grid,
  .marketing-grid,
  .hero-panel,
  .settings-shell {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-right: 0;
    border-bottom: 1px solid rgba(191, 211, 199, 0.6);
  }

  .sidebar-nav,
  .sidebar-group {
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar {
    padding: 18px 16px 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .demo-guide-card {
    margin: 0 16px 18px;
  }

  .shell-hero {
    padding: 10px 16px 6px;
  }

  .view {
    padding: 10px 16px 26px;
  }

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

  .calendar-agenda-grid,
  .calendar-hero-pills {
    grid-template-columns: 1fr;
  }

  .weekday {
    display: none;
  }

  .calendar-day {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .search-shortcut {
    display: none;
  }

  .role-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .shell-spotlight,
  .shell-rail-card {
    padding: 18px;
    border-radius: 22px;
  }

  .spotlight-title {
    max-width: none;
    font-size: 2.2rem;
  }

  .stats-grid,
  .form-grid,
  .helper-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .page-title {
    font-size: 2.2rem;
  }
}
