:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-soft: #eef4f7;
  --text: #172033;
  --muted: #64748b;
  --border: #dfe7ee;
  --primary: #635bff;
  --primary-dark: #1f2a6d;
  --teal: #00c2ff;
  --brand-green: #65b82e;
  --brand-green-dark: #3f8f1f;
  --coral: #ff6b3d;
  --pink: #ec3cff;
  --success: #16a34a;
  --warning: #f59e0b;
  --error: #dc2626;
  --brand-gradient: linear-gradient(135deg, var(--brand-green), var(--teal) 34%, var(--primary) 68%, var(--pink));
  --brand-gradient-wide: linear-gradient(90deg, var(--brand-green), var(--teal), var(--primary), var(--pink), var(--coral));
  --app-card-shadow: 0 18px 54px rgba(31, 42, 109, 0.08);
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.1);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(101, 184, 46, 0.14), transparent 28rem),
    radial-gradient(circle at 80% 8%, rgba(236, 60, 255, 0.1), transparent 24rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 48%, #eef4f8 100%);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
label,
.panel,
.metric-card,
.activity-item,
.file-card,
.pricing-card {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 194, 255, 0.28);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 6%, rgba(101, 184, 46, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 3%, rgba(236, 60, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 74% 42%, rgba(0, 194, 255, 0.07), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(238, 244, 248, 0.72));
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(101, 184, 46, 0.22), transparent 22rem),
    radial-gradient(circle at 84% 18%, rgba(236, 60, 255, 0.16), transparent 22rem),
    radial-gradient(circle at 70% 82%, rgba(0, 194, 255, 0.14), transparent 24rem),
    linear-gradient(180deg, #fdfefe, #eef4f8);
}

.auth-screen.hidden {
  display: none;
}

.auth-panel {
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(22px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
  scroll-behavior: smooth;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.auth-logo strong,
.auth-logo span {
  display: block;
}

.auth-logo strong {
  font-size: 18px;
  font-weight: 700;
}

.auth-logo span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.auth-nav-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-nav-pills span,
.auth-nav-pills button,
.hero-badges span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.auth-nav-pills button {
  border: 0;
}

#sign-in-pill {
  border-color: transparent;
  background: linear-gradient(105deg, var(--primary), #287bff, var(--pink));
  color: white;
  box-shadow: 0 12px 28px rgba(99, 91, 255, 0.24);
}

.auth-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
  align-items: center;
  justify-items: center;
  padding: clamp(8px, 2vw, 18px) 0 clamp(8px, 3vw, 28px);
  text-align: center;
}

.auth-brand {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
  justify-items: center;
  width: 100%;
}

.auth-brand h1 {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.06;
}

.auth-brand h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(105deg, var(--brand-green), var(--teal), var(--primary));
  background-clip: text;
}

.auth-copy {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 36px 0 22px;
}

.auth-showcase {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78));
  box-shadow: 0 28px 80px rgba(31, 42, 109, 0.16);
}

[data-parallax] {
  will-change: transform;
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(101, 184, 46, 0.34), rgba(0, 194, 255, 0.28), rgba(236, 60, 255, 0.2));
  filter: blur(18px);
  opacity: 0.7;
}

.preview-toolbar,
.preview-metrics,
.preview-flow,
.preview-table > div {
  display: grid;
  align-items: center;
}

.preview-toolbar {
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
}

.preview-toolbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 5px rgba(101, 184, 46, 0.12);
}

.preview-toolbar em,
.preview-table em {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.preview-metrics {
  display: none;
}

.preview-table span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.preview-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.preview-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preview-flow span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #e7edf3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-flow .done {
  background: #dcfce7;
  color: #166534;
}

.preview-table {
  overflow: hidden;
  border: 1px solid rgba(223, 231, 238, 0.9);
  border-radius: var(--radius);
  background: white;
}

.preview-table > div {
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
}

.preview-table > div:last-child {
  border-bottom: 0;
}

.preview-table strong {
  font-size: 13px;
}

.auth-access {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  justify-self: stretch;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 18px) 0 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.auth-access h2 {
  margin: 0;
  color: #26334a;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.18;
}

.auth-access p {
  max-width: 540px;
  margin: 8px auto 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
}

.auth-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: min(460px, 100%);
}

.auth-card {
  display: grid;
  gap: 15px;
  align-content: start;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.auth-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
}

.auth-reset-button {
  margin-top: -4px;
  background: rgba(99, 91, 255, 0.06);
  color: var(--primary-dark);
  box-shadow: none;
  font-weight: 650;
}

.auth-reset-button:hover {
  background: rgba(99, 91, 255, 0.1);
  color: var(--primary);
  box-shadow: none;
}

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

.auth-proof-grid article {
  position: relative;
  overflow: hidden;
  min-height: 164px;
  padding: 50px 24px 26px;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.78));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.auth-proof-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--teal), var(--primary), var(--pink));
}

.auth-proof-grid article::after {
  content: none;
  display: none;
}

.auth-proof-grid article:hover {
  border-color: rgba(99, 91, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.auth-proof-grid strong,
.auth-proof-grid span {
  display: block;
  text-align: center;
}

.auth-proof-grid span {
  max-width: 310px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.7;
}

.auth-proof-grid strong {
  color: #22304a;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}

.pricing-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 24px;
  padding: clamp(12px, 3vw, 34px) 0 clamp(8px, 2vw, 22px);
}

.pricing-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.pricing-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.05;
}

.pricing-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

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

.pricing-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(99, 91, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.86));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.pricing-card::before {
  content: "";
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-green), var(--teal), var(--primary));
}

.pricing-card.lite::before {
  background: linear-gradient(90deg, var(--brand-green), #21b35b);
}

.pricing-card.featured {
  border-color: rgba(99, 91, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9));
  box-shadow: 0 18px 44px rgba(99, 91, 255, 0.16);
}

.pricing-card.featured::after {
  content: "Popular";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #2f7bff);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.pricing-card span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}

.pricing-card strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding-left: 18px;
  color: #405066;
  font-weight: 400;
  line-height: 1.55;
}

.final-cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 760px;
  margin: clamp(4px, 2vw, 18px) auto 0;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.82));
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.075);
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--brand-green), var(--teal), var(--primary), var(--pink));
}

.final-cta h2 {
  max-width: 620px;
  margin: 0;
  color: #172033;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.12;
}

.final-cta p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.footer-cta-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0 18px;
}

.auth-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, 0.7fr)) auto;
  gap: 28px;
  align-items: start;
  padding: clamp(24px, 4vw, 38px) 0 0;
  border-top: 1px solid rgba(223, 231, 238, 0.9);
}

.auth-footer strong,
.auth-footer a,
.auth-footer p {
  display: block;
}

.auth-footer strong {
  color: #22304a;
  font-size: 15px;
  font-weight: 650;
}

.auth-footer p,
.auth-footer a {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--primary);
}

.footer-brand strong {
  font-size: 18px;
  font-weight: 750;
}

.footer-credit {
  justify-self: end;
  white-space: nowrap;
}

.dialog-copy {
  margin: 0 0 14px;
  color: var(--muted);
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}

.auth-message.success {
  color: var(--success);
}

.sample-credentials {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px solid #e8eef5;
}

.sample-credentials span {
  color: var(--muted);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background:
    radial-gradient(circle at 14% 8%, rgba(101, 184, 46, 0.12), transparent 12rem),
    radial-gradient(circle at 100% 20%, rgba(236, 60, 255, 0.08), transparent 13rem),
    rgba(255, 255, 255, 0.82);
  border-right: 1px solid rgba(223, 231, 238, 0.86);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px);
}

.brand,
.topbar,
.panel-header,
.inline-actions,
.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  margin-bottom: 34px;
}

.brand-home-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand-mark,
.profile-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: white;
  font-weight: 800;
  font-size: 24px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(145deg, var(--brand-green), var(--brand-green-dark));
  box-shadow: 0 12px 28px rgba(63, 143, 31, 0.28);
}

.brand-mark::after,
.profile-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 210deg, var(--pink), var(--coral), var(--teal), var(--primary), var(--pink));
  opacity: 0.34;
  filter: blur(7px);
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span,
.helper-text,
.security-card p,
.activity-item span,
.hero-strip span,
.metric-card span,
dt {
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-separated {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(223, 231, 238, 0.84);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #334155;
  text-align: left;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.nav-item.active,
.nav-item:hover {
  background:
    linear-gradient(135deg, rgba(101, 184, 46, 0.08), rgba(0, 194, 255, 0.06), rgba(236, 60, 255, 0.07)),
    #fff;
  border-color: var(--border);
  color: var(--primary-dark);
  box-shadow: 0 12px 30px rgba(31, 42, 109, 0.08);
}

.nav-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(135deg, var(--brand-green), var(--teal) 34%, var(--primary) 68%, var(--pink));
  color: white;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(99, 91, 255, 0.16);
}

.nav-item:not(.active):not(:hover) .nav-icon {
  opacity: 0.68;
  filter: saturate(0.82);
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  opacity: 1;
  filter: saturate(1.12);
  transform: scale(1.04);
}

.security-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(31, 42, 109, 0.06);
}

.security-card p {
  margin: 4px 0 0;
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.workspace {
  min-width: 0;
  width: 100%;
  max-width: none;
  padding: 34px clamp(30px, 4vw, 58px) 58px;
}

.topbar {
  position: relative;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 18px;
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-gradient-wide);
  opacity: 0.72;
}

.topbar h1,
.panel h2,
.glass-dialog h2 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1;
}

.topbar h1 {
  display: inline-block;
  color: transparent;
  background:
    linear-gradient(108deg, var(--brand-green), var(--teal) 30%, var(--primary) 58%, var(--pink) 84%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.file-button,
.text-button,
.danger-button {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 750;
  text-decoration: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), #2f7bff);
  color: white;
  box-shadow: 0 12px 24px rgba(99, 91, 255, 0.22);
}

#new-run-button,
#continue-to-upload-button,
#add-parent-button {
  background: var(--brand-gradient);
  box-shadow: 0 14px 30px rgba(99, 91, 255, 0.24);
}

.secondary-button {
  background: linear-gradient(135deg, var(--brand-green), #21b35b);
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(63, 143, 31, 0.18);
}

.file-button {
  display: inline-flex;
  min-width: 142px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.import-csv-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  letter-spacing: 0;
  text-align: center;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary-dark);
  border-color: rgba(99, 91, 255, 0.24);
}

.icon-button {
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
  border-color: var(--border);
}

.text-button {
  min-height: 34px;
  padding: 0 14px;
  background:
    linear-gradient(135deg, rgba(236, 60, 255, 0.96), rgba(99, 91, 255, 0.96) 52%, rgba(0, 194, 255, 0.96));
  color: white;
  text-align: center;
  box-shadow: 0 12px 24px rgba(99, 91, 255, 0.18);
}

.danger-button {
  background: var(--error);
  color: white;
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(31, 42, 109, 0.18);
}

.ghost-button:hover,
.icon-button:hover,
.file-button:hover {
  border-color: rgba(99, 91, 255, 0.34);
  background: #fff;
  transform: translateY(-1px);
}

.icon-button {
  width: 40px;
  padding: 0;
  font-size: 24px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.workflow-intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid rgba(223, 231, 238, 0.92);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 194, 255, 0.12), transparent 28%),
    radial-gradient(circle at 4% 100%, rgba(236, 60, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82));
  box-shadow: var(--app-card-shadow);
}

.workflow-intro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-gradient-wide);
}

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

.workflow-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1;
}

.workflow-intro p:not(.eyebrow) {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 520;
  line-height: 1.48;
}

.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.wizard-step-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
  text-align: left;
}

.wizard-step-link span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8eef5;
  color: var(--muted);
  font-size: 13px;
}

.wizard-step-link.active {
  border-color: rgba(99, 91, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(101, 184, 46, 0.06), rgba(236, 60, 255, 0.06)),
    #fff;
  color: var(--primary-dark);
  box-shadow: 0 12px 30px rgba(99, 91, 255, 0.1);
}

.wizard-step-link.active span {
  background: var(--brand-gradient);
  color: #fff;
}

.wizard-step-link.complete span {
  background: linear-gradient(135deg, var(--brand-green), var(--teal));
  color: white;
}

.wizard-step-panel {
  display: none;
}

.wizard-step-panel.active {
  display: block;
}

.wizard-panel {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  padding: clamp(22px, 4vw, 36px);
}

.wizard-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.wizard-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 520;
  line-height: 1.5;
}

.wizard-primary-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wizard-summary-row,
.export-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-summary-row span,
.export-summary span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #e8eef5;
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--muted);
  font-weight: 750;
}

.wizard-summary-row strong,
.export-summary strong {
  color: var(--text);
}

.wizard-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.large-action {
  min-height: 52px;
  padding: 0 22px;
  font-size: 16px;
}

.compact-preview {
  max-height: 360px;
}

.compact-preview table {
  min-width: 840px;
}

.invoice-review-table {
  max-height: 520px;
}

.export-complete-panel {
  justify-items: start;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-size: 28px;
  font-weight: 900;
}

.metric-grid,
.panel-grid,
.settings-grid,
.file-grid {
  display: grid;
  gap: 16px;
}

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

.panel-grid,
.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric-card,
.panel {
  border: 1px solid rgba(223, 231, 238, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.84);
  box-shadow: var(--app-card-shadow);
  backdrop-filter: blur(18px);
}

.panel:hover,
.metric-card:hover {
  border-color: rgba(99, 91, 255, 0.14);
  box-shadow: 0 22px 64px rgba(31, 42, 109, 0.1);
}

.metric-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--teal), var(--primary), var(--pink), var(--coral));
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
}

.metric-card.warning strong {
  color: #b45309;
}

.metric-card.success strong {
  color: #15803d;
}

.panel {
  margin-bottom: 20px;
  padding: clamp(20px, 2.2vw, 28px);
}

#crm-view .panel,
#runs-view .panel,
#history-view .panel,
#files-view .panel,
#settings-view .panel {
  width: 100%;
  max-width: none;
}

.panel-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

#crm-view .panel-header {
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

#crm-view .panel-header > .helper-text {
  flex: 1 1 340px;
  margin: 0;
}

.crm-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) auto minmax(150px, 190px) auto;
  gap: 10px;
  align-items: end;
  min-width: min(760px, 100%);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.pill.warning {
  background: #fef3c7;
  color: #92400e;
}

.pill.success {
  background: #dcfce7;
  color: #166534;
}

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

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

dt {
  font-size: 13px;
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1.5px dashed #9ddf8d;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(101, 184, 46, 0.1), rgba(99, 91, 255, 0.05));
  text-align: center;
}

.dropzone:hover {
  border-color: var(--brand-green);
  background:
    linear-gradient(180deg, rgba(101, 184, 46, 0.14), rgba(99, 91, 255, 0.07));
}

.dropzone input,
#parentmap-upload {
  display: none;
}

.dropzone span {
  margin-top: 6px;
  color: var(--muted);
}

.mini-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-list span {
  min-width: 0;
}

.mini-delete-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  border-radius: 50%;
  background: #fff;
  color: var(--error);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(223, 231, 238, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: white;
}

.client-crm-table {
  min-width: 1320px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #475569;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crm-sort-heading {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.crm-sort-heading span {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 13px;
  line-height: 1;
}

.crm-sort-heading.active {
  color: var(--primary-dark);
}

.crm-sort-heading.active span {
  background: rgba(99, 91, 255, 0.12);
}

tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(101, 184, 46, 0.035), rgba(0, 194, 255, 0.026), rgba(236, 60, 255, 0.03));
}

.action-heading,
.table-action-cell {
  width: 72px;
  text-align: right;
  white-space: nowrap;
}

.row-delete-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 50%;
  background: #fff;
  color: var(--error);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.row-delete-button:hover {
  border-color: rgba(239, 68, 68, 0.35);
  background: #fff5f5;
}

.editable-cell-button {
  display: block;
  width: 100%;
  min-width: 64px;
  max-width: 100%;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-weight: 600;
  text-align: left;
}

.editable-cell-button:empty::after {
  content: "";
  display: block;
  min-height: 20px;
}

.chip-edit-button {
  display: inline-flex;
  min-width: 56px;
  align-items: center;
  padding: 3px 0;
}

.chip-edit-button:empty::after {
  min-width: 40px;
}

.crm-note-cell,
.crm-email-cell {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-muted {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.service-chip,
.account-status-chip,
.invoice-ref-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.service-chip {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.tone-blue {
  background: #e8efff;
  color: #3345b7;
}

.tone-teal {
  background: #dafaf0;
  color: #04756f;
}

.tone-pink {
  background: #fae8ff;
  color: #a21caf;
}

.tone-sky {
  background: #e0f2fe;
  color: #0369a1;
}

.tone-purple {
  background: #ede9fe;
  color: #5b21b6;
}

.tone-green {
  background: #dcfce7;
  color: #166534;
}

.account-status-chip.status-empty {
  background: #f1f5f9;
  color: #64748b;
}

.account-status-chip.status-new_client {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.14), rgba(0, 194, 255, 0.14));
  color: #3730a3;
}

.account-status-chip.status-paused {
  background: #fef3c7;
  color: #92400e;
}

.account-status-chip.status-left {
  background: #f1f5f9;
  color: #475569;
}

.invoice-ref-chip {
  background: #f8fafc;
  color: #334155;
  border-color: var(--border);
}

.editable-cell-button:hover,
.editable-cell-button:focus-visible {
  border-color: rgba(99, 91, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(101, 184, 46, 0.08), rgba(99, 91, 255, 0.08));
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(31, 42, 109, 0.07);
}

.edit-client-service-field,
.edit-client-new-service-field,
.edit-client-status-field,
.edit-client-text-field {
  display: grid;
  gap: 8px;
}

.cell-with-action {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cell-with-action > span,
.cell-with-action > div {
  min-width: 0;
}

.cell-with-action > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-with-action .row-delete-button {
  flex: 0 0 auto;
}

tr.excluded {
  color: #94a3b8;
  background: #f8fafc;
}

tr.warning-row {
  background: #fffbeb;
}

.status-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: 12px;
}

.status-label.warning {
  background: #fef3c7;
  color: #92400e;
}

.status-label.excluded {
  background: #e2e8f0;
  color: #475569;
}

.status-label.fixed {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-label.ignored {
  background: #f3e8ff;
  color: #7e22ce;
}

td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item,
.file-card {
  padding: 14px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px solid #e8eef5;
}

.file-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.file-card-main {
  min-width: 0;
}

.file-delete-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--error);
  font-size: 24px;
  line-height: 1;
}

.file-uploaded {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.file-processed {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.file-failed {
  border-color: #fecaca;
  background: #fef2f2;
}

.activity-item strong,
.activity-item span,
.file-card strong,
.file-card span {
  display: block;
}

.activity-item span,
.file-card span {
  margin-top: 4px;
  color: var(--muted);
}

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

.plan-option {
  display: grid;
  gap: 6px;
  min-height: 94px;
  align-content: center;
  justify-items: start;
  padding: 14px;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9));
  color: var(--text);
  text-align: left;
}

.plan-option:hover {
  border-color: rgba(99, 91, 255, 0.36);
  box-shadow: 0 14px 28px rgba(99, 91, 255, 0.1);
  transform: translateY(-1px);
}

.plan-option.featured {
  border-color: rgba(99, 91, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(99, 91, 255, 0.08), rgba(0, 194, 255, 0.08)),
    #fff;
}

.plan-option span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-option strong {
  font-size: 24px;
}

.helper-text {
  margin: -6px 0 16px;
}

.crm-toolbar label {
  min-width: 0;
}

.crm-search-field {
  position: relative;
  align-self: end;
}

.crm-search-field span {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  font-size: 17px;
  line-height: 1;
}

.crm-search-field input,
.crm-control-field select {
  border-color: rgba(99, 91, 255, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(101, 184, 46, 0.13), transparent 38%),
    radial-gradient(circle at 100% 20%, rgba(236, 60, 255, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.crm-search-field input {
  padding-left: 42px;
}

.crm-control-field select {
  font-weight: 750;
}

.crm-group-row td {
  position: sticky;
  left: 0;
  z-index: 1;
  padding: 14px 12px;
  background:
    linear-gradient(90deg, rgba(101, 184, 46, 0.11), rgba(0, 194, 255, 0.09), rgba(236, 60, 255, 0.08)),
    #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crm-group-row span {
  display: inline-flex;
  min-width: 28px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.12);
  color: var(--primary-dark);
  font-size: 12px;
}

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

label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  background: white;
  color: var(--text);
}

.glass-dialog {
  width: min(780px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(101, 184, 46, 0.16), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(236, 60, 255, 0.14), transparent 34%),
    radial-gradient(circle at 78% 92%, rgba(0, 194, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 34px 120px rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(26px);
}

.glass-dialog.small {
  width: min(460px, calc(100vw - 32px));
}

.glass-dialog::backdrop {
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 60, 255, 0.2), transparent 19rem),
    radial-gradient(circle at 78% 30%, rgba(0, 194, 255, 0.2), transparent 19rem),
    radial-gradient(circle at 55% 75%, rgba(101, 184, 46, 0.12), transparent 18rem),
    rgba(8, 21, 55, 0.36);
  backdrop-filter: blur(8px);
}

.glass-dialog form {
  position: relative;
  padding: 28px;
}

.glass-dialog form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-gradient-wide);
}

.glass-dialog .dialog-header {
  align-items: flex-start;
  margin-bottom: 16px;
}

.glass-dialog .dialog-header h2 {
  color: var(--primary-dark);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0;
}

.glass-dialog .dialog-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  width: 34px;
  border: 1px solid rgba(99, 91, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(31, 42, 109, 0.08);
}

.dialog-close:hover {
  border-color: rgba(236, 60, 255, 0.22);
  background: #fff;
}

.glass-dialog input,
.glass-dialog select {
  border-color: rgba(99, 91, 255, 0.16);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-dialog input:focus,
.glass-dialog select:focus {
  border-color: rgba(0, 194, 255, 0.46);
  box-shadow:
    0 0 0 4px rgba(0, 194, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dialog-actions {
  justify-content: flex-end;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  transform: translateY(20px);
  opacity: 0;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: white;
  background: #082f49;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

  .auth-hero,
  .auth-access {
    grid-template-columns: 1fr;
  }

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

  .pricing-heading {
    align-items: start;
    flex-direction: column;
  }

  .pricing-heading p {
    white-space: normal;
  }

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

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

  .footer-brand,
  .footer-credit {
    grid-column: 1 / -1;
  }

  .footer-credit {
    justify-self: start;
  }

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

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .security-card {
    position: static;
    margin-top: 16px;
  }

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

  .nav-separated {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .nav-item {
    justify-content: center;
  }

  .nav-item .nav-icon {
    display: none;
  }

  .workspace {
    padding: 18px 18px calc(96px + env(safe-area-inset-bottom));
  }

  #crm-view .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .crm-toolbar {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .panel-grid,
  .settings-grid,
  .file-grid,
  .auth-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-screen {
    padding: 12px;
    place-items: stretch;
  }

  .auth-panel {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .auth-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-nav-pills {
    justify-content: flex-start;
  }

  .auth-brand h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .auth-copy {
    font-size: 16px;
  }

  .auth-showcase,
  .auth-access,
  .auth-card {
    padding: 16px;
  }

  .preview-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .preview-table > div {
    grid-template-columns: 1.05fr 0.95fr auto;
    gap: 6px;
    padding: 9px 8px;
  }

  .preview-flow span,
  .preview-table span,
  .preview-table strong,
  .preview-table em {
    font-size: 11px;
  }

  .preview-table em {
    padding: 3px 7px;
  }

  .sidebar {
    padding: 10px 12px 8px;
  }

  .brand {
    margin-bottom: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .brand span {
    display: none;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-item {
    min-height: 36px;
    padding: 8px 6px;
    font-size: 11px;
  }

  .security-card {
    margin-top: 8px;
    padding: 8px 10px;
  }

  .security-card p {
    display: none;
  }

  .workspace {
    padding-top: 10px;
  }

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

  .pricing-card {
    min-height: auto;
  }

  .final-cta {
    padding: 24px 18px;
  }

  .auth-footer {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer-credit {
    justify-self: center;
  }

  .plan-options {
    grid-template-columns: 1fr;
  }

  .topbar,
  .workflow-intro,
  .panel-header,
  .auth-brand {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .inline-actions,
  .wizard-footer,
  .wizard-primary-action {
    justify-content: stretch;
  }

  .topbar-actions > *,
  .inline-actions > *,
  .crm-toolbar > *,
  .wizard-footer > *,
  .wizard-primary-action > * {
    width: 100%;
  }

  .crm-toolbar {
    grid-template-columns: 1fr;
  }

  .import-csv-button {
    display: flex;
    min-width: 0;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-size: 18px;
    line-height: 1;
    text-align: center;
  }

  #crm-view table {
    min-width: 1120px;
  }

  #crm-view .action-heading,
  #crm-view .table-action-cell {
    width: 54px;
    padding-right: 10px;
    text-align: right;
  }

  .wizard-stepper {
    grid-template-columns: 1fr;
  }

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

  .toast {
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
  }
}

/* YummyMoney Phase 1 design system */
:root {
  --ym-warm-white: #fffdfa;
  --ym-cream: #fff6ef;
  --ym-cream-strong: #ffe9dd;
  --ym-raspberry: #ef3f78;
  --ym-raspberry-deep: #b7225b;
  --ym-peach: #ff9a6a;
  --ym-peach-soft: #ffd5be;
  --ym-plum: #31233a;
  --ym-charcoal: #263044;
  --ym-muted: #6f7889;
  --ym-border: rgba(119, 77, 89, 0.16);
  --ym-glass: rgba(255, 255, 255, 0.72);
  --ym-gradient: linear-gradient(110deg, var(--ym-raspberry), var(--ym-peach));
  --ym-gradient-soft: linear-gradient(135deg, rgba(239, 63, 120, 0.14), rgba(255, 154, 106, 0.13));
  --ym-shadow: 0 26px 70px rgba(93, 52, 67, 0.12);
  --ym-soft-shadow: 0 18px 45px rgba(93, 52, 67, 0.08);
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ym-charcoal);
}

.auth-screen {
  display: block;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 13% 12%, rgba(239, 63, 120, 0.15), transparent 26rem),
    radial-gradient(circle at 86% 8%, rgba(255, 154, 106, 0.18), transparent 24rem),
    radial-gradient(circle at 62% 84%, rgba(255, 214, 190, 0.38), transparent 30rem),
    linear-gradient(180deg, #fffefd 0%, #fff8f2 54%, #fffdfa 100%);
}

.auth-panel {
  width: min(1180px, 100%);
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  gap: clamp(72px, 8vw, 112px);
}

.auth-nav {
  min-height: 54px;
}

.auth-logo .brand-mark,
.final-cta .brand-mark {
  background: #65b82e;
  box-shadow: 0 16px 36px rgba(101, 184, 46, 0.24);
}

.auth-logo strong,
.footer-brand strong {
  color: var(--ym-charcoal);
  font-family: "Fredoka", "Montserrat", sans-serif;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0;
}

.auth-logo span,
.footer-brand p {
  color: var(--ym-muted);
  font-size: 13px;
  font-weight: 400;
}

.auth-nav-pills {
  align-items: center;
  gap: 12px;
}

.auth-nav-pills a,
.auth-nav-pills button,
.ym-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid rgba(119, 77, 89, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ym-charcoal);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(93, 52, 67, 0.05);
  backdrop-filter: blur(16px);
}

.auth-nav-pills a:hover,
.auth-nav-pills button:hover,
.ym-button:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 63, 120, 0.28);
  box-shadow: 0 18px 38px rgba(93, 52, 67, 0.1);
}

#sign-in-pill,
.nav-get-started,
.ym-button-primary,
.auth-screen .primary-button,
.footer-cta-button {
  border: 0;
  background: var(--ym-gradient);
  color: white;
  box-shadow: 0 16px 34px rgba(239, 63, 120, 0.24);
}

.ym-button-warm {
  border: 0;
  background: linear-gradient(110deg, #ff6b7d, var(--ym-peach));
  color: white;
  box-shadow: 0 16px 34px rgba(255, 122, 92, 0.22);
}

.ym-button-peach {
  border: 0;
  background: linear-gradient(110deg, #ffb642, var(--ym-peach));
  color: white;
  box-shadow: 0 16px 34px rgba(255, 154, 106, 0.22);
}

.ym-button-quiet,
.auth-screen .ghost-button,
.auth-screen .text-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ym-charcoal);
}

.auth-hero {
  min-height: auto;
  padding: clamp(30px, 5vw, 68px) 0 0;
}

.auth-brand {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  gap: clamp(36px, 7vw, 86px);
  text-align: left;
}

.auth-brand > div:first-child {
  justify-self: start;
}

.auth-brand h1 {
  max-width: 600px;
  color: #1f2838;
  font-family: "Fredoka", "Montserrat", sans-serif;
  font-size: clamp(48px, 6.4vw, 82px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-brand h1::first-line {
  color: var(--ym-charcoal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-love {
  margin: 30px 0 0;
  color: var(--ym-charcoal);
  font-size: 15px;
  font-weight: 400;
}

.hero-love::before {
  content: "♥";
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(239, 63, 120, 0.12);
  color: var(--ym-raspberry);
}

.hero-badges {
  justify-content: flex-start;
  margin: 24px 0 0;
  padding-top: 0;
}

.hero-badges span {
  min-height: 34px;
  border-color: rgba(239, 63, 120, 0.14);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ym-charcoal);
  font-size: 12px;
  font-weight: 500;
}

.auth-showcase {
  width: min(520px, 100%);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 252, 248, 0.68)),
    var(--ym-gradient-soft);
  box-shadow: var(--ym-shadow);
  backdrop-filter: blur(20px);
}

.auth-showcase::before {
  inset: 16px -26px -28px 40px;
  border-radius: 42px;
  background: radial-gradient(circle, rgba(239, 63, 120, 0.22), transparent 62%);
}

.preview-toolbar {
  min-height: 42px;
}

.preview-toolbar strong {
  color: var(--ym-charcoal);
  font-size: 20px;
  font-weight: 600;
}

.preview-toolbar span {
  background: linear-gradient(135deg, var(--ym-raspberry), var(--ym-peach));
}

.preview-toolbar em,
.preview-table em {
  background: #eaf8e7;
  color: #2c7a2d;
  font-weight: 500;
}

.preview-flow {
  gap: 12px;
}

.preview-flow span {
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: #fff5ee;
  color: var(--ym-charcoal);
  font-weight: 550;
}

.preview-flow .done {
  background: rgba(239, 63, 120, 0.08);
  color: var(--ym-charcoal);
}

.preview-table {
  margin-top: 10px;
  border-color: rgba(119, 77, 89, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.preview-table > div {
  padding: 16px 18px;
}

.preview-table strong,
.preview-table span {
  color: var(--ym-charcoal);
  font-size: 13px;
  font-weight: 450;
}

.auth-access {
  max-width: 520px;
  padding-top: 0;
}

.auth-access h2,
.pricing-heading h2,
.final-cta h2 {
  font-family: "Fredoka", "Montserrat", sans-serif;
  color: var(--ym-charcoal);
  font-weight: 600;
  letter-spacing: 0;
}

.auth-access h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.auth-access p {
  color: var(--ym-muted);
  font-size: 14px;
  font-weight: 300;
}

.auth-card {
  padding: clamp(24px, 4vw, 34px);
  border-color: rgba(119, 77, 89, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--ym-soft-shadow);
  backdrop-filter: blur(18px);
}

.auth-card label {
  color: var(--ym-charcoal);
  font-size: 13px;
  font-weight: 500;
}

.auth-card input,
.auth-card select {
  min-height: 48px;
  border-color: rgba(119, 77, 89, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ym-charcoal);
  font-weight: 400;
}

.auth-card input:focus {
  border-color: rgba(239, 63, 120, 0.48);
  box-shadow: 0 0 0 4px rgba(239, 63, 120, 0.1);
}

.auth-screen .primary-button,
.auth-screen .ghost-button,
.auth-screen .text-button {
  min-height: 48px;
  border-radius: 13px;
  font-weight: 500;
}

.auth-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
}

.auth-proof-grid article {
  position: relative;
  padding: 28px 34px;
  border: 0;
  border-right: 1px solid rgba(119, 77, 89, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.auth-proof-grid article:last-child {
  border-right: 0;
}

.auth-proof-grid article::before {
  content: "✦";
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(239, 63, 120, 0.1);
  color: var(--ym-raspberry);
  font-size: 24px;
}

.auth-proof-grid article:nth-child(2)::before {
  background: rgba(255, 154, 106, 0.14);
  color: #d98316;
}

.auth-proof-grid article:nth-child(3)::before {
  background: rgba(136, 96, 255, 0.11);
  color: #7654d4;
}

.auth-proof-grid strong {
  color: var(--ym-charcoal);
  font-size: 17px;
  font-weight: 550;
}

.auth-proof-grid span {
  max-width: 230px;
  margin: 10px auto 0;
  color: var(--ym-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

.pricing-section {
  display: grid;
  gap: 28px;
  padding: 0 0 8px;
}

.pricing-heading p {
  margin: 0;
  color: var(--ym-raspberry);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  width: min(960px, 100%);
  margin: 0 auto;
}

.pricing-card {
  min-height: 360px;
  padding: 28px;
  border: 1px solid rgba(119, 77, 89, 0.14);
  border-top: 3px solid var(--ym-raspberry);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--ym-soft-shadow);
  backdrop-filter: blur(18px);
}

.pricing-card:nth-child(2) {
  border-top-color: var(--ym-peach);
}

.pricing-card:nth-child(3) {
  border-top-color: #ffbd45;
}

.pricing-card span:first-child {
  color: var(--ym-raspberry);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-card strong {
  margin-top: 18px;
  color: var(--ym-charcoal);
  font-size: 42px;
  font-weight: 550;
}

.pricing-card strong span {
  color: var(--ym-muted);
  font-size: 16px;
  font-weight: 400;
}

.pricing-card p,
.pricing-card li {
  color: var(--ym-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

.pricing-card li::before {
  color: var(--ym-raspberry);
}

.pricing-action {
  width: 100%;
  margin-top: auto;
}

.final-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(119, 77, 89, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--ym-soft-shadow);
  backdrop-filter: blur(18px);
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
}

.auth-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr) auto;
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  padding: 18px 0 34px;
  color: var(--ym-muted);
}

.auth-footer strong {
  color: var(--ym-charcoal);
  font-weight: 550;
}

.auth-footer a,
.auth-footer p {
  color: var(--ym-muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  text-decoration: none;
}

.auth-footer nav {
  display: grid;
  gap: 6px;
}

.footer-credit {
  align-self: end;
  margin: 0;
}

@media (max-width: 860px) {
  .auth-brand {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .auth-brand > div:first-child {
    justify-self: center;
  }

  .hero-actions,
  .hero-badges {
    justify-content: center;
  }

  .auth-proof-grid,
  .pricing-grid,
  .final-cta,
  .auth-footer {
    grid-template-columns: 1fr;
  }

  .auth-proof-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(119, 77, 89, 0.1);
  }

  .auth-proof-grid article:last-child {
    border-bottom: 0;
  }

  .final-cta {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .auth-screen {
    padding: 18px;
  }

  .auth-panel {
    max-height: none;
    padding: 0;
    gap: 64px;
  }

  .auth-nav {
    align-items: center;
    flex-direction: row;
  }

  .auth-logo span {
    display: none;
  }

  .auth-nav-pills {
    gap: 8px;
  }

  .auth-nav-pills a:nth-child(1),
  .auth-nav-pills a:nth-child(2) {
    display: none;
  }

  .auth-nav-pills a,
  .auth-nav-pills button,
  .ym-button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .auth-brand h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .auth-showcase {
    padding: 18px;
    border-radius: 26px;
  }

  .preview-flow {
    grid-template-columns: 1fr;
  }

  .preview-flow span {
    min-height: 48px;
  }

  .preview-table > div {
    grid-template-columns: 1fr auto;
  }

  .preview-table > div:first-child {
    display: none;
  }

  .preview-table > div span {
    grid-column: 1;
  }

  .pricing-card,
  .auth-card {
    border-radius: 22px;
  }
}

/* YummyMoney Phase 2 authenticated app refinement */
:root {
  --app-ink: #2c3040;
  --app-ink-soft: #42495c;
  --app-muted: #7c8495;
  --app-hairline: rgba(104, 83, 91, 0.12);
  --app-panel: rgba(255, 255, 255, 0.76);
  --app-panel-strong: rgba(255, 255, 255, 0.88);
  --app-glow-raspberry: rgba(239, 63, 120, 0.13);
  --app-glow-peach: rgba(255, 154, 106, 0.14);
  --app-glow-lavender: rgba(151, 121, 255, 0.12);
  --app-shadow-soft: 0 22px 54px rgba(77, 52, 62, 0.08);
  --app-shadow-tiny: 0 10px 24px rgba(77, 52, 62, 0.055);
  --app-radius: 24px;
  --app-radius-small: 16px;
  --app-accent: linear-gradient(110deg, var(--ym-raspberry), var(--ym-peach));
  --app-accent-soft: linear-gradient(135deg, rgba(239, 63, 120, 0.11), rgba(255, 154, 106, 0.09));
}

body[data-app-view="history"] {
  --app-accent: linear-gradient(110deg, #ff9a6a, #ff6f61);
  --app-accent-soft: linear-gradient(135deg, rgba(255, 154, 106, 0.13), rgba(255, 111, 97, 0.09));
}

body[data-app-view="crm"] {
  --app-accent: linear-gradient(110deg, var(--ym-raspberry), var(--ym-peach));
  --app-accent-soft: linear-gradient(135deg, rgba(239, 63, 120, 0.12), rgba(255, 154, 106, 0.1));
}

body[data-app-view="files"] {
  --app-accent: linear-gradient(110deg, var(--ym-raspberry), #9c7cff);
  --app-accent-soft: linear-gradient(135deg, rgba(239, 63, 120, 0.1), rgba(156, 124, 255, 0.11));
}

body[data-app-view="settings"] {
  --app-accent: linear-gradient(110deg, #9c7cff, var(--ym-raspberry));
  --app-accent-soft: linear-gradient(135deg, rgba(156, 124, 255, 0.1), rgba(239, 63, 120, 0.1));
}

.app-shell {
  background:
    radial-gradient(circle at 12% 5%, rgba(239, 63, 120, 0.09), transparent 27rem),
    radial-gradient(circle at 86% 4%, rgba(255, 154, 106, 0.12), transparent 29rem),
    radial-gradient(circle at 64% 78%, rgba(255, 221, 208, 0.28), transparent 33rem),
    linear-gradient(180deg, #fffefd 0%, #fff8f3 48%, #f7f9fc 100%);
  color: var(--app-ink);
}

.sidebar {
  padding: 24px 22px;
  background:
    radial-gradient(circle at 0% 8%, rgba(239, 63, 120, 0.09), transparent 15rem),
    radial-gradient(circle at 90% 14%, rgba(255, 154, 106, 0.11), transparent 16rem),
    rgba(255, 255, 255, 0.68);
  border-right: 1px solid var(--app-hairline);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.62);
}

.brand {
  margin-bottom: 30px;
}

.brand strong {
  color: var(--app-ink);
  font-weight: 600;
}

.brand span,
.helper-text,
.security-card p,
.workflow-intro p:not(.eyebrow),
.wizard-copy p:not(.eyebrow),
.activity-item span,
.file-card span {
  color: var(--app-muted);
  font-weight: 400;
}

.nav-list {
  gap: 10px;
}

.nav-item {
  min-height: 46px;
  border-radius: 16px;
  color: var(--app-ink-soft);
  font-weight: 500;
}

.nav-item.active,
.nav-item:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 244, 0.74)),
    var(--app-accent-soft);
  border-color: rgba(239, 63, 120, 0.14);
  color: var(--app-ink);
  box-shadow: var(--app-shadow-tiny);
}

.nav-icon {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.78), transparent 34%),
    var(--app-accent);
  box-shadow: 0 10px 24px rgba(239, 63, 120, 0.14);
}

.security-card {
  border-color: var(--app-hairline);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--app-shadow-tiny);
}

.workspace {
  padding: 38px clamp(34px, 4.8vw, 72px) 64px;
}

.topbar {
  margin-bottom: 34px;
  padding-bottom: 16px;
}

.topbar::after,
.workflow-intro::before,
.glass-dialog form::before {
  height: 2px;
  background: var(--app-accent);
  opacity: 0.9;
}

#view-title,
.workflow-intro h2,
.panel-header h2,
.wizard-copy h2 {
  color: var(--app-ink);
  font-family: "Fredoka", "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
}

#view-title {
  display: inline-block;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.98;
  background: var(--app-accent);
  -webkit-background-clip: text;
  background-clip: text;
}

.topbar-actions {
  gap: 12px;
}

.app-shell .primary-button,
.app-shell .secondary-button,
.app-shell .ghost-button,
.app-shell .icon-button,
.app-shell .file-button,
.app-shell .text-button,
.app-shell .danger-button,
.glass-dialog .primary-button,
.glass-dialog .secondary-button,
.glass-dialog .ghost-button,
.glass-dialog .icon-button,
.glass-dialog .file-button,
.glass-dialog .text-button,
.glass-dialog .danger-button {
  border-radius: 15px;
  font-weight: 500;
}

.app-shell .primary-button,
#new-run-button,
#continue-to-upload-button,
#add-parent-button,
.app-shell .text-button,
.glass-dialog .primary-button,
.glass-dialog .text-button {
  background: var(--app-accent);
  box-shadow: 0 16px 32px rgba(239, 63, 120, 0.16);
}

.app-shell .secondary-button,
.glass-dialog .secondary-button {
  background: linear-gradient(135deg, #67ba38, #4ba83b);
  box-shadow: 0 12px 26px rgba(71, 151, 56, 0.14);
}

.app-shell .ghost-button,
.app-shell .icon-button,
.glass-dialog .ghost-button,
.glass-dialog .icon-button {
  border-color: rgba(119, 77, 89, 0.14);
  background: rgba(255, 255, 255, 0.64);
  color: var(--app-ink-soft);
  box-shadow: 0 8px 18px rgba(77, 52, 62, 0.04);
}

.workflow-intro,
.panel,
.metric-card,
.wizard-panel,
.activity-item,
.file-card {
  border-color: var(--app-hairline);
  border-radius: var(--app-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 154, 106, 0.055), transparent 17rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66));
  box-shadow: var(--app-shadow-soft);
  backdrop-filter: blur(18px);
}

.workflow-intro {
  padding: clamp(28px, 3.5vw, 44px);
}

.workflow-intro h2 {
  font-size: clamp(36px, 4.8vw, 62px);
}

.workflow-intro p:not(.eyebrow) {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.62;
}

.eyebrow {
  color: var(--ym-raspberry);
  font-size: 11px;
  font-weight: 500;
}

.wizard-stepper {
  gap: 16px;
  margin-bottom: 28px;
}

.wizard-step-link {
  min-height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.wizard-step-link span {
  background: rgba(119, 77, 89, 0.08);
  color: var(--app-muted);
  font-weight: 500;
}

.wizard-step-link.active {
  border-color: rgba(239, 63, 120, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 243, 0.8)),
    var(--app-accent-soft);
  color: var(--app-ink);
  box-shadow: var(--app-shadow-tiny);
}

.wizard-step-link.active span,
.wizard-step-link.complete span {
  background: var(--app-accent);
}

.wizard-panel {
  padding: clamp(24px, 3.2vw, 38px);
}

.wizard-copy h2 {
  font-size: clamp(30px, 3.8vw, 46px);
}

.wizard-copy p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.62;
}

.panel {
  padding: clamp(22px, 2.5vw, 34px);
}

.panel:hover,
.metric-card:hover {
  border-color: rgba(239, 63, 120, 0.14);
  box-shadow: 0 24px 62px rgba(77, 52, 62, 0.1);
}

.panel-header {
  margin-bottom: 24px;
}

.panel-header h2 {
  font-size: clamp(24px, 2.6vw, 36px);
}

.crm-toolbar {
  align-items: end;
}

.crm-search-field input,
.crm-control-field select,
.app-shell input,
.app-shell select {
  border-color: rgba(119, 77, 89, 0.14);
  border-radius: 15px;
  background:
    radial-gradient(circle at 0% 0%, rgba(239, 63, 120, 0.055), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(255, 154, 106, 0.075), transparent 42%),
    rgba(255, 255, 255, 0.82);
  color: var(--app-ink);
  font-weight: 400;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.app-shell label {
  color: var(--app-ink-soft);
  font-weight: 400;
}

.table-wrap {
  border-color: var(--app-hairline);
  border-radius: 22px;
  background: var(--app-panel);
  box-shadow: var(--app-shadow-tiny);
}

.app-shell table {
  background: transparent;
}

.app-shell th,
.app-shell td {
  padding: 17px 18px;
  border-bottom: 1px solid rgba(104, 83, 91, 0.09);
  color: var(--app-ink);
  font-size: 13px;
  font-weight: 400;
}

.app-shell th {
  color: #697286;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.94), rgba(255, 248, 244, 0.88));
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.045em;
}

.app-shell tbody tr {
  transition: background 140ms ease, box-shadow 140ms ease;
}

.app-shell tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(239, 63, 120, 0.035), rgba(255, 154, 106, 0.035));
}

.client-crm-table td,
.client-crm-table th {
  padding-top: 16px;
  padding-bottom: 16px;
}

.editable-cell-button {
  min-height: 38px;
  border-radius: 12px;
  color: inherit;
  font-weight: 400;
}

.editable-cell-button:hover,
.editable-cell-button:focus-visible {
  border-color: rgba(239, 63, 120, 0.18);
  background: var(--app-accent-soft);
  color: var(--app-ink);
  box-shadow: 0 8px 20px rgba(77, 52, 62, 0.06);
}

.service-chip,
.account-status-chip,
.invoice-ref-chip,
.pill,
.status-label {
  font-weight: 500;
  letter-spacing: 0;
}

.service-chip {
  background: rgba(239, 63, 120, 0.08);
  color: var(--ym-raspberry-deep);
}

.tone-blue,
.tone-purple,
.tone-pink,
.tone-sky,
.tone-teal {
  background: rgba(239, 63, 120, 0.08);
  color: var(--ym-raspberry-deep);
}

.tone-green {
  background: rgba(77, 168, 59, 0.11);
  color: #367929;
}

.account-status-chip.status-new_client {
  background: rgba(239, 63, 120, 0.1);
  color: var(--ym-raspberry-deep);
}

.account-status-chip.status-paused {
  background: rgba(255, 154, 106, 0.16);
  color: #975534;
}

.account-status-chip.status-empty,
.account-status-chip.status-left,
.invoice-ref-chip {
  background: rgba(119, 77, 89, 0.06);
  color: #697286;
  border-color: transparent;
}

.dropzone {
  border-color: rgba(239, 63, 120, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 63, 120, 0.08), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(255, 154, 106, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.6);
}

.dropzone:hover {
  border-color: rgba(239, 63, 120, 0.32);
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 63, 120, 0.11), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(255, 154, 106, 0.13), transparent 44%),
    rgba(255, 255, 255, 0.72);
}

.file-card,
.activity-item {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 244, 0.7));
}

.file-uploaded,
.file-processed,
.file-failed {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 244, 0.72));
  border-color: var(--app-hairline);
}

.glass-dialog {
  border-radius: 26px;
  border-color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 0% 0%, rgba(239, 63, 120, 0.12), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(255, 154, 106, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 36px 110px rgba(77, 52, 62, 0.22);
}

.glass-dialog::backdrop {
  background:
    radial-gradient(circle at 30% 22%, rgba(239, 63, 120, 0.18), transparent 19rem),
    radial-gradient(circle at 74% 30%, rgba(255, 154, 106, 0.18), transparent 18rem),
    rgba(44, 48, 64, 0.36);
  backdrop-filter: blur(10px);
}

.glass-dialog .dialog-header h2 {
  color: var(--app-ink);
  font-family: "Fredoka", "Montserrat", system-ui, sans-serif;
  font-weight: 500;
}

.dialog-close {
  border-color: rgba(119, 77, 89, 0.12);
  border-radius: 14px;
  color: var(--app-ink-soft);
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  background: rgba(44, 48, 64, 0.92);
  box-shadow: 0 18px 48px rgba(44, 48, 64, 0.2);
}

@media (max-width: 980px) {
  .workspace {
    padding: 22px 18px calc(96px + env(safe-area-inset-bottom));
  }

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

  #view-title {
    font-size: clamp(32px, 8vw, 46px);
  }
}

@media (max-width: 640px) {
  .sidebar {
    background: rgba(255, 255, 255, 0.76);
  }

  .nav-item {
    font-size: 11px;
    font-weight: 500;
  }

  .workflow-intro,
  .wizard-panel,
  .panel {
    border-radius: 20px;
  }

  .workflow-intro h2,
  .wizard-copy h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  th,
  td {
    padding: 14px 12px;
  }
}

/* YummyMoney production design-system pass */
:root {
  --ym-cream: #fff8f1;
  --ym-warm: #fff2e8;
  --ym-paper: rgba(255, 255, 255, 0.84);
  --ym-paper-solid: #fffdf9;
  --ym-raspberry: #ef3f78;
  --ym-coral: #ff6d57;
  --ym-peach: #ffad6f;
  --ym-apricot: #ffc77f;
  --ym-lavender: #b87cff;
  --ym-ink: #252638;
  --ym-soft-ink: #5f6476;
  --ym-muted: #83879a;
  --ym-line: rgba(97, 71, 83, 0.12);
  --ym-glass-line: rgba(255, 255, 255, 0.76);
  --ym-radius-sm: 16px;
  --ym-radius-md: 24px;
  --ym-radius-lg: 34px;
  --ym-shadow: 0 24px 70px rgba(116, 67, 75, 0.12);
  --ym-shadow-soft: 0 12px 38px rgba(116, 67, 75, 0.08);
  --ym-gradient: linear-gradient(120deg, var(--ym-raspberry), var(--ym-coral) 52%, var(--ym-peach));
  --ym-gradient-cool: linear-gradient(135deg, #ff7b96, #ff9e73 54%, #b985ff);
  --app-ink: var(--ym-ink);
  --app-ink-soft: var(--ym-soft-ink);
  --app-hairline: var(--ym-line);
  --app-panel: var(--ym-paper);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ym-ink);
  background:
    radial-gradient(circle at 16% 7%, rgba(255, 195, 120, 0.34), transparent 24rem),
    radial-gradient(circle at 86% 12%, rgba(239, 63, 120, 0.19), transparent 25rem),
    radial-gradient(circle at 72% 72%, rgba(184, 124, 255, 0.12), transparent 31rem),
    linear-gradient(180deg, #fffaf4 0%, #f8fbff 100%);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
#view-title,
.hero-title,
.section-heading,
.pricing-heading,
.workspace h1,
.wizard-copy h2,
.workflow-intro h2,
.panel h2,
.empty-state h2 {
  color: var(--ym-ink);
  font-family: "Fredoka", "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

p,
li,
label,
input,
textarea,
select,
button,
td,
th {
  font-family: "Montserrat", system-ui, sans-serif;
}

.auth-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 13% 18%, rgba(255, 181, 113, 0.32), transparent 25rem),
    radial-gradient(circle at 91% 16%, rgba(239, 63, 120, 0.17), transparent 24rem),
    radial-gradient(circle at 56% 91%, rgba(255, 154, 106, 0.18), transparent 30rem),
    #fff9f2;
}

.auth-panel {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 44px;
}

.auth-nav {
  align-items: center;
  margin-bottom: clamp(42px, 7vw, 82px);
}

.brand,
.auth-brand {
  color: var(--ym-ink);
}

.brand-mark {
  position: relative;
  overflow: visible;
  border: 0;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(145deg, #ff557d, #ff7b56 56%, #ffc168);
  box-shadow: 0 16px 34px rgba(239, 63, 120, 0.2);
  color: white;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 7px;
  width: 12px;
  height: 7px;
  border-radius: 100% 0 100% 0;
  background: #80b75b;
  transform: rotate(-28deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.brand strong,
.auth-brand strong {
  font-weight: 650;
}

.brand span,
.auth-brand span,
.footer-credit,
.helper-text,
.auth-subtitle,
.hero-copy,
.section-copy,
.pricing-card p,
.feature-card p {
  color: var(--ym-soft-ink);
  font-weight: 400;
  line-height: 1.65;
}

.auth-nav-pills {
  gap: 14px;
}

.nav-pill,
.auth-nav-pills a {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 34px rgba(116, 67, 75, 0.08);
  color: var(--ym-ink);
  font-weight: 500;
  backdrop-filter: blur(16px);
}

.nav-pill.primary,
.hero-cta.primary,
.pricing-card .primary-button,
.final-cta .primary-button,
#get-started-pill,
#sign-in-pill,
#trial-signup-button,
.app-shell .primary-button,
.large-action.primary-button,
.topbar .primary-button,
#new-run-button,
#continue-to-upload-button,
#process-pdfs-button,
#review-export-button,
#export-csv-button,
#add-parent-button {
  border: 0;
  background: var(--ym-gradient);
  color: white;
  box-shadow: 0 18px 34px rgba(239, 63, 120, 0.2);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
}

.hero-title {
  max-width: 640px;
  margin: 0;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.94;
}

.hero-gradient-text,
.gradient-text,
#view-title {
  background: linear-gradient(105deg, #ee3f76, #ff745a 54%, #ffb05e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 520px;
  margin-top: 22px;
  font-size: clamp(16px, 1.5vw, 20px);
}

.hero-actions,
.hero-badges {
  margin-top: 30px;
}

.hero-badges .workflow-badge,
.workflow-badge,
.pill,
.badge,
.status-pill {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ym-soft-ink);
  box-shadow: 0 10px 24px rgba(116, 67, 75, 0.08);
  backdrop-filter: blur(14px);
}

.hero-love {
  color: #cf426a;
  font-weight: 500;
}

.auth-showcase,
.peach-dashboard-preview,
.auth-card,
.feature-card,
.pricing-card,
.final-cta,
.contact-shell,
.legal-card,
.footer-shell,
.panel,
.wizard-panel,
.workflow-intro,
.ym-insights-panel {
  border: 1px solid var(--ym-glass-line);
  border-radius: var(--ym-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 188, 116, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--ym-shadow);
  backdrop-filter: blur(18px);
}

.peach-dashboard-preview {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  transform: rotate(1.25deg);
}

.peach-dashboard-preview::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 150px;
  height: 150px;
  border-radius: 45% 55% 48% 52%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.78), transparent 12%),
    linear-gradient(145deg, #ff6c6f, #ff9a5d 58%, #ffc573);
  opacity: 0.92;
  filter: drop-shadow(0 22px 34px rgba(255, 116, 90, 0.23));
  pointer-events: none;
}

.preview-header,
.preview-kpis,
.preview-insights {
  position: relative;
  z-index: 1;
}

.preview-kpis,
.preview-insights {
  display: grid;
  gap: 14px;
}

.preview-kpis {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.preview-insights {
  grid-template-columns: 1.05fr 0.95fr;
  margin-top: 14px;
}

.preview-card,
.preview-chart-card,
.preview-behaviour,
.preview-mini-card {
  min-height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(116, 67, 75, 0.09);
  padding: 18px;
}

.preview-card strong,
.preview-chart-card strong {
  color: #ef3f78;
  font-family: "Fredoka", "Montserrat", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 600;
}

.preview-card:nth-child(2) strong {
  color: #62b769;
}

.preview-card:nth-child(3) strong {
  color: #ff7b3f;
}

.preview-card span,
.preview-chart-card span,
.preview-behaviour span,
.preview-mini-card span,
.ym-insight-card span {
  color: var(--ym-ink);
  font-size: 13px;
  font-weight: 600;
}

.preview-card small,
.preview-chart-card small,
.preview-mini-card small,
.ym-insight-card p {
  color: var(--ym-soft-ink);
  font-size: 12px;
  line-height: 1.5;
}

.mini-line,
.preview-line-chart,
.ym-empty-chart {
  border-radius: 18px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(239, 63, 120, 0.12) 46%),
    linear-gradient(90deg, rgba(239, 63, 120, 0.1), rgba(255, 173, 111, 0.18));
}

.donut,
.ym-empty-donut {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(#ef3f78 0 34%, #ffad6f 34% 68%, #ffd36f 68% 84%, #79c66d 84% 100%);
  box-shadow: inset 0 0 0 25px rgba(255, 255, 255, 0.86);
}

.section-heading,
.pricing-heading,
.contact-section h2,
.legal-card h2,
.final-cta h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
}

.feature-grid,
.pricing-grid,
.contact-section,
.legal-preview,
.final-cta {
  margin-top: clamp(64px, 9vw, 118px);
}

.feature-card {
  padding: 30px;
  box-shadow: var(--ym-shadow-soft);
}

.feature-card h3,
.pricing-card h3 {
  color: var(--ym-ink);
  font-weight: 600;
}

.feature-icon {
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(239, 63, 120, 0.12), rgba(255, 173, 111, 0.2));
}

.pricing-section {
  padding-top: clamp(40px, 6vw, 80px);
}

.pricing-subtitle {
  color: var(--ym-raspberry);
  font-weight: 400;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--ym-gradient);
}

.pricing-card .price {
  color: var(--ym-ink);
  font-family: "Fredoka", "Montserrat", system-ui, sans-serif;
  font-weight: 600;
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  padding: clamp(26px, 5vw, 52px);
}

.contact-form input,
.contact-form textarea,
.auth-form input,
.field input,
.field textarea,
.field select,
input,
textarea,
select {
  border: 1px solid rgba(115, 83, 95, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ym-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.contact-form input:focus,
.contact-form textarea:focus,
.auth-form input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(239, 63, 120, 0.48);
  box-shadow: 0 0 0 4px rgba(239, 63, 120, 0.1);
  outline: none;
}

.contact-status {
  color: var(--ym-soft-ink);
  min-height: 1.5em;
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 196, 122, 0.3), transparent 28rem),
    radial-gradient(circle at 86% 0%, rgba(239, 63, 120, 0.15), transparent 26rem),
    linear-gradient(180deg, #fff9f3 0%, #f7fbff 100%);
}

.sidebar {
  border-right: 1px solid rgba(115, 83, 95, 0.1);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px);
}

.nav-list {
  gap: 10px;
}

.nav-item {
  border-radius: 18px;
  color: var(--ym-soft-ink);
  font-weight: 600;
}

.nav-item::before {
  background: var(--ym-gradient-cool);
  box-shadow: 0 8px 18px rgba(239, 63, 120, 0.18);
}

.nav-item.active {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ym-ink);
  box-shadow: 0 14px 34px rgba(116, 67, 75, 0.08);
}

.workspace {
  max-width: none;
  padding: clamp(28px, 4vw, 58px);
}

.topbar {
  margin-bottom: 30px;
}

#view-title {
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 0.96;
}

.topbar-actions {
  gap: 12px;
}

.secondary-button,
.ghost-button,
.topbar .secondary-button,
.topbar .ghost-button {
  border: 1px solid rgba(115, 83, 95, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ym-ink);
  box-shadow: 0 10px 26px rgba(116, 67, 75, 0.07);
}

.panel,
.wizard-panel,
.workflow-intro {
  padding: clamp(24px, 3vw, 38px);
}

.workflow-intro {
  border-top: 5px solid transparent;
  border-image: var(--ym-gradient) 1;
}

.workflow-intro h2,
.wizard-copy h2 {
  color: var(--ym-ink);
  font-size: clamp(32px, 4.2vw, 56px);
}

.stepper {
  gap: 16px;
  margin: 28px 0;
}

.step-pill {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.step-pill.active {
  border-color: rgba(239, 63, 120, 0.22);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--ym-shadow-soft);
}

.step-pill .step-number {
  background: var(--ym-gradient);
  color: white;
}

.ym-insights-panel {
  margin-bottom: 34px;
  padding: clamp(24px, 4vw, 44px);
}

.ym-insights-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ym-insights-hero h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
}

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

.ym-insight-card {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(116, 67, 75, 0.08);
  padding: 22px;
}

.ym-insight-card.wide {
  grid-column: span 2;
}

.ym-insight-card.accent {
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 173, 111, 0.26), transparent 8rem),
    rgba(255, 255, 255, 0.78);
}

.ym-card-glow {
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 44% 56% 48% 52%;
  opacity: 0.62;
}

.ym-card-glow.peach {
  background: linear-gradient(145deg, #ff7b6a, #ffbd70);
}

.ym-card-glow.coral {
  background: linear-gradient(145deg, #ef3f78, #ff7a55);
}

.ym-card-glow.lavender {
  background: linear-gradient(145deg, #ff9a72, #b87cff);
}

.ym-mini-bars {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 54px;
}

.ym-mini-bars i {
  width: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9a6a, #ef3f78);
  opacity: 0.52;
}

.ym-mini-bars i:nth-child(1) { height: 32px; }
.ym-mini-bars i:nth-child(2) { height: 48px; }
.ym-mini-bars i:nth-child(3) { height: 38px; }

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  color: #6b7286;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

td {
  color: #303347;
  font-weight: 500;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(255, 244, 237, 0.7);
}

.crm-table-wrap,
.review-table-wrap,
.file-list,
.run-list {
  border-radius: 24px;
  border-color: rgba(115, 83, 95, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.crm-toolbar,
.table-toolbar {
  gap: 12px;
}

.crm-search input,
.crm-toolbar select {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(255, 240, 248, 0.78)),
    rgba(255, 255, 255, 0.82);
}

.service-chip {
  border-radius: 999px;
  background: rgba(255, 224, 236, 0.82);
  color: #b7225b;
}

.status-note,
.account-status-chip {
  border-radius: 999px;
  background: rgba(255, 242, 232, 0.9);
  color: #a7513e;
}

.glass-dialog {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 173, 111, 0.24), transparent 16rem),
    radial-gradient(circle at 100% 0, rgba(239, 63, 120, 0.16), transparent 15rem),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 36px 120px rgba(74, 54, 66, 0.26);
}

.glass-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--ym-gradient);
}

.glass-dialog::backdrop {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 173, 111, 0.18), transparent 18rem),
    radial-gradient(circle at 70% 24%, rgba(239, 63, 120, 0.16), transparent 18rem),
    rgba(48, 51, 70, 0.42);
  backdrop-filter: blur(12px);
}

.toast {
  background: #2d2b3c;
  color: white;
}

.footer-shell {
  padding: 36px;
}

#sign-in-pill,
#account-nav-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 246, 240, 0.68)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(239, 63, 120, 0.13);
  color: var(--ym-ink);
  box-shadow: 0 12px 30px rgba(107, 68, 74, 0.08);
}

#sign-in-pill:hover,
#account-nav-button:hover {
  border-color: rgba(239, 63, 120, 0.24);
  transform: translateY(-1px);
}

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

  .peach-dashboard-preview {
    transform: none;
  }

  .preview-kpis,
  .preview-insights,
  .ym-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .auth-panel {
    width: min(100% - 28px, 620px);
    padding-top: 20px;
  }

  .auth-nav {
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 42px;
  }

  .auth-nav-pills {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-title {
    font-size: clamp(44px, 14vw, 62px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-kpis,
  .preview-insights,
  .pricing-grid,
  .feature-grid,
  .ym-insights-grid {
    grid-template-columns: 1fr;
  }

  .ym-insight-card.wide {
    grid-column: auto;
  }

  .peach-dashboard-preview::after {
    width: 96px;
    height: 96px;
    right: -18px;
    bottom: -18px;
  }

  .workspace {
    padding: 20px 16px calc(102px + env(safe-area-inset-bottom));
  }

  .topbar,
  .ym-insights-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #view-title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .panel,
  .wizard-panel,
  .workflow-intro,
  .ym-insights-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .crm-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 14px 12px;
    font-size: 13px;
  }
}
