:root {
  color-scheme: dark;
  --bg: #060814;
  --bg-deep: #03050c;
  --surface: rgba(10, 15, 31, 0.72);
  --surface-strong: rgba(12, 18, 38, 0.88);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: rgba(245, 247, 255, 0.96);
  --text-soft: rgba(208, 216, 255, 0.82);
  --text-dim: rgba(177, 190, 232, 0.66);
  --primary: #78f2ff;
  --primary-strong: #31d6f3;
  --primary-ink: #071523;
  --secondary: #a78bfa;
  --success: #41d39a;
  --warning: #f8c15f;
  --danger: #ff7c98;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 48px rgba(4, 8, 20, 0.28);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --container: min(1240px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(99, 102, 241, 0.42), transparent 60%),
    radial-gradient(1000px 700px at -5% 25%, rgba(34, 211, 238, 0.24), transparent 58%),
    radial-gradient(1100px 900px at 50% 120%, rgba(168, 85, 247, 0.15), transparent 65%),
    url("../img/wavey-fingerprint-blue.svg"),
    #050812;
  background-size: cover;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: linear-gradient(to bottom, rgba(5, 8, 18, 0.72), rgba(5, 8, 18, 0.86));
}

img {
  max-width: 100%;
  display: block;
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  padding: 28px 0 72px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0 0;
}

.nav-shell {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(10, 14, 26, 0.56);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  flex: none;
}

.brand-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 9px;
  background: transparent;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  display: block;
  font-family: "Outfit", "Source Sans 3", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.tm-mark {
  font-size: 0.58em;
  vertical-align: super;
  margin-left: 1px;
  opacity: 0.88;
}

.brand-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.session-chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.badge.primary {
  color: var(--primary);
  border-color: rgba(120, 242, 255, 0.22);
  background: rgba(120, 242, 255, 0.08);
}

.badge.success {
  color: var(--success);
  border-color: rgba(65, 211, 154, 0.22);
  background: rgba(65, 211, 154, 0.08);
}

.badge.warning {
  color: var(--warning);
  border-color: rgba(248, 193, 95, 0.22);
  background: rgba(248, 193, 95, 0.08);
}

.badge.danger {
  color: var(--danger);
  border-color: rgba(255, 124, 152, 0.22);
  background: rgba(255, 124, 152, 0.08);
}

.badge.neutral {
  color: var(--text-soft);
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
  box-shadow: none;
}

.btn:hover,
button:hover,
.btn:focus-visible,
button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.btn:disabled,
button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: var(--primary-ink);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-color: rgba(120, 242, 255, 0.34);
  box-shadow: 0 14px 30px rgba(49, 214, 243, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--primary-ink);
  background: linear-gradient(135deg, #8af5ff, #46def9);
  border-color: rgba(138, 245, 255, 0.48);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  color: #ffd9e2;
  border-color: rgba(255, 124, 152, 0.24);
  background: rgba(255, 124, 152, 0.08);
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: rgba(255, 124, 152, 0.12);
  border-color: rgba(255, 124, 152, 0.32);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  min-width: 48px;
  padding: 12px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 26, 0.52);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
  padding: 24px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 160px at 100% 0, rgba(34, 211, 238, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 48%);
}

.card > * {
  position: relative;
  z-index: 1;
}

.hero-card {
  padding: 30px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  pointer-events: none;
  background:
    radial-gradient(500px 120px at 100% 0, rgba(120, 242, 255, 0.08), transparent 70%),
    radial-gradient(440px 120px at 0 100%, rgba(167, 139, 250, 0.08), transparent 72%);
}

.card-row,
.section-head,
.toolbar,
.split,
.list-row,
.table-row,
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-head,
.toolbar {
  flex-wrap: wrap;
}

.section-title,
h1,
h2,
h3 {
  margin: 0;
  font-family: "Outfit", "Source Sans 3", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

h3,
.section-title {
  font-size: 20px;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead,
.subtitle,
p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.lead {
  max-width: 68ch;
  font-size: 18px;
}

.subtitle {
  font-size: 15px;
}

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

.small {
  font-size: 13px;
}

.micro {
  font-size: 12px;
}

.stack-xs,
.stack-sm,
.stack,
.stack-lg {
  display: grid;
}

.stack-xs { gap: 8px; }
.stack-sm { gap: 12px; }
.stack { gap: 16px; }
.stack-lg { gap: 22px; }

.grid-2,
.grid-3,
.grid-4,
.kpi-grid,
.form-grid,
.metric-grid,
.card-grid,
.timeline,
.slot-grid,
.action-grid {
  display: grid;
  gap: 16px;
}

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

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

.grid-4,
.kpi-grid,
.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layout-main-aside {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.dashboard-main {
  padding: 20px;
}

.dashboard-nav {
  display: grid;
  gap: 10px;
}

.dashboard-banner {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(120, 242, 255, 0.16);
  background:
    radial-gradient(520px 180px at 100% 0, rgba(34, 211, 238, 0.08), transparent 70%),
    rgba(10, 14, 26, 0.4);
}

.dashboard-banner h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.dashboard-banner p {
  margin-top: 8px;
}

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

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

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

.sticky-card {
  position: sticky;
  top: 96px;
}

.metric {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(10, 14, 26, 0.4);
}

.metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.metric-value {
  margin-top: 8px;
  font-family: "Outfit", "Source Sans 3", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.metric-subtext {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.kicker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.input,
.select,
textarea,
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 124px;
  resize: vertical;
}

.input::placeholder,
textarea::placeholder {
  color: rgba(177, 190, 232, 0.52);
}

.input:focus,
.select:focus,
textarea:focus,
input:focus,
select:focus {
  border-color: rgba(120, 242, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(120, 242, 255, 0.08);
}

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

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.field-hint {
  font-size: 12px;
  color: var(--text-dim);
}

.toolbar {
  gap: 12px;
}

.toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grow {
  flex: 1 1 260px;
}

.card-grid.compact .card {
  padding: 20px;
}

.expert-card,
.slot-card,
.summary-card,
.action-card,
.timeline-card,
.panel-card,
.list-card {
  height: 100%;
}

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

.card-title {
  margin: 0;
  font-size: 22px;
  font-family: "Outfit", "Source Sans 3", sans-serif;
}

.card-subtitle {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.meta-list,
.info-list {
  display: grid;
  gap: 10px;
}

.meta-item,
.info-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
}

.meta-item strong,
.info-item strong {
  color: var(--text);
}

.chip-list,
.tag-list,
.action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.empty-state,
.lock-state {
  display: grid;
  gap: 14px;
  place-items: start;
  padding: 26px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.empty-state.center,
.lock-state.center {
  place-items: center;
  text-align: center;
}

.empty-state-emoji {
  font-size: 28px;
  line-height: 1;
}

.banner,
.alert {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
}

.banner.show,
.alert.show {
  display: block;
}

.banner.info,
.alert.info {
  border-color: rgba(120, 242, 255, 0.18);
  background: rgba(120, 242, 255, 0.07);
}

.banner.success,
.alert.success {
  border-color: rgba(65, 211, 154, 0.18);
  background: rgba(65, 211, 154, 0.07);
}

.banner.warning,
.alert.warning {
  border-color: rgba(248, 193, 95, 0.18);
  background: rgba(248, 193, 95, 0.07);
}

.banner.error,
.alert.error {
  border-color: rgba(255, 124, 152, 0.22);
  background: rgba(255, 124, 152, 0.08);
}

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

.timeline-step {
  position: relative;
  padding: 16px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -8px;
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-step:first-child::before {
  display: none;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.timeline-step.done .timeline-dot,
.timeline-step.current .timeline-dot {
  background: var(--primary);
  border-color: rgba(120, 242, 255, 0.5);
}

.timeline-step.done,
.timeline-step.current {
  border-color: rgba(120, 242, 255, 0.18);
}

.timeline-step.current {
  background: rgba(120, 242, 255, 0.07);
}

.timeline-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.timeline-name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.timeline-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.slot-button {
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 16px;
  min-height: 0;
}

.slot-button.selected {
  border-color: rgba(120, 242, 255, 0.3);
  background: rgba(120, 242, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(120, 242, 255, 0.07);
}

.slot-button .slot-time {
  font-family: "Outfit", "Source Sans 3", sans-serif;
  font-size: 18px;
}

.slot-button .slot-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.list,
.table {
  display: grid;
  gap: 12px;
}

.list-row,
.table-row {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
}

.row-main {
  min-width: 0;
}

.row-title {
  font-size: 17px;
  font-weight: 700;
}

.row-subtitle {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 14px;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.price-breakdown {
  display: grid;
  gap: 12px;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
  color: var(--text-soft);
}

.price-line strong {
  color: var(--text);
}

.price-line.total {
  font-size: 18px;
  font-weight: 700;
}

.result {
  min-height: 140px;
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(120, 242, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #d9f7ff;
  overflow: auto;
  line-height: 1.55;
}

.result.error {
  border-color: rgba(255, 124, 152, 0.18);
  color: #ffd6df;
}

.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 24px));
}

.toast {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 14, 29, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  line-height: 1.45;
  animation: toast-in 200ms ease;
}

.toast.info {
  border-color: rgba(120, 242, 255, 0.18);
}

.toast.success {
  border-color: rgba(65, 211, 154, 0.2);
}

.toast.warning {
  border-color: rgba(248, 193, 95, 0.2);
}

.toast.error {
  border-color: rgba(255, 124, 152, 0.24);
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 1.35s infinite;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.lg {
  height: 18px;
}

.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-55 { width: 55%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-85 { width: 85%; }
.skeleton-line.w-100 { width: 100%; }

.skeleton-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--primary);
  animation: spin 720ms linear infinite;
}

.center-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none !important;
}

.footer-note {
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .dashboard-shell,
  .dashboard-kpi-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .grid-4,
  .kpi-grid,
  .metric-grid,
  .grid-3,
  .card-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-main-aside {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 780px) {
  :root {
    --container: min(100%, calc(100% - 20px));
  }

  .site-header {
    position: relative;
    padding-top: 12px;
  }

  .nav-shell {
    border-radius: 24px;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .top-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .top-nav .nav-link {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .page-shell {
    padding-top: 18px;
  }

  .hero-card,
  .card {
    padding: 20px;
    border-radius: 22px;
  }

  .grid-2,
  .form-grid,
  .action-grid,
  .grid-3,
  .dashboard-grid,
  .card-grid,
  .grid-4,
  .dashboard-kpi-grid,
  .kpi-grid,
  .metric-grid,
  .timeline,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .list-row,
  .table-row,
  .card-head,
  .section-head,
  .toolbar,
  .split {
    align-items: flex-start;
  }

  .list-row,
  .table-row,
  .card-head,
  .section-head,
  .toolbar,
  .split,
  .row-actions,
  .header-actions {
    flex-direction: column;
  }

  .row-actions,
  .header-actions {
    align-items: stretch;
    width: 100%;
  }

  .row-actions .btn,
  .row-actions button,
  .header-actions .btn,
  .header-actions button {
    width: 100%;
  }

  .session-chip {
    width: 100%;
    justify-content: center;
  }

  .toast-stack {
    top: auto;
    right: 10px;
    left: 10px;
    bottom: 12px;
    width: auto;
  }
}

.glass {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.015));
}

.glass > * {
  position: relative;
  z-index: 1;
}

.textarea {
  width: 100%;
  min-height: 124px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.textarea:focus {
  border-color: rgba(120, 242, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(120, 242, 255, 0.08);
}

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

.step-pill {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.step-pill-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(120, 242, 255, 0.1);
  border: 1px solid rgba(120, 242, 255, 0.18);
  color: var(--primary);
  font-weight: 800;
}

.step-pill-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.step-pill-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
}

.step-pill.complete {
  border-color: rgba(120, 242, 255, 0.2);
  background: rgba(120, 242, 255, 0.07);
}

.step-pill.complete .step-pill-index {
  background: rgba(120, 242, 255, 0.16);
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(120, 242, 255, 0.8), rgba(167, 139, 250, 0.82));
  transition: width 180ms ease;
}

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

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

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.choice-card input[type="checkbox"],
.choice-card input[type="radio"] {
  margin: 2px 0 0;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--primary-strong);
}

.choice-card.active {
  border-color: rgba(120, 242, 255, 0.26);
  background: rgba(120, 242, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(120, 242, 255, 0.05);
}

.choice-copy {
  display: grid;
  gap: 4px;
}

.choice-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.choice-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
}

.field.invalid .input,
.field.invalid .select,
.field.invalid .textarea,
.field.invalid textarea,
.field.invalid input[type="text"],
.field.invalid input[type="email"],
.field.invalid input[type="tel"],
.field.invalid input[type="url"],
.field.invalid input[type="number"],
.field.invalid select,
.field.invalid .choice-card,
.field.invalid .check-row,
.field.invalid .upload-card,
.upload-card.invalid {
  border-color: rgba(255, 124, 152, 0.34);
  box-shadow: 0 0 0 4px rgba(255, 124, 152, 0.07);
}

.field-error {
  display: none;
  margin-top: 4px;
  font-size: 12px;
  color: #ffc8d4;
}

.field.invalid .field-error {
  display: block;
}

.upload-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.upload-card input[type="file"] {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.upload-card input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.upload-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.inline-checks {
  display: grid;
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.check-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-strong);
}

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

.note-list {
  display: grid;
  gap: 12px;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
}

.note-item .material-icons {
  font-size: 18px;
  color: var(--primary);
  margin-top: 1px;
}

.sticky-shell {
  position: sticky;
  top: 96px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.meta-chip .material-icons {
  font-size: 16px;
  color: var(--primary);
}

@media (max-width: 1100px) {
  .step-grid,
  .choice-grid,
  .choice-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-shell {
    position: static;
  }
}

@media (max-width: 780px) {
  .step-grid,
  .choice-grid,
  .choice-grid.compact,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
  }
}
