:root {
  --bg: #fbfaf7;
  --bg-2: #f5f9fb;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --text: #223246;
  --text-strong: #10243a;
  --muted: #66788a;
  --border: #dde7ef;
  --border-strong: #c9d8e4;
  --primary: #173a5e;
  --primary-dark: #0f2842;
  --primary-soft: #e9f2f8;
  --accent: #6f91ac;
  --mint: #bfe8dd;
  --mint-ink: #0f6b58;
  --peach: #ffd8c2;
  --peach-ink: #9a4b28;
  --butter: #fff1b8;
  --butter-ink: #7a5a00;
  --lilac: #ddd4f7;
  --lilac-ink: #51458d;
  --sky: #cfe5f5;
  --success: #0f766e;
  --success-soft: #e9fbf6;
  --warning: #9a6700;
  --warning-soft: #fff8dd;
  --danger: #b42318;
  --danger-soft: #fff0ed;
  --shadow-xs: 0 1px 2px rgba(16, 36, 58, .05);
  --shadow-sm: 0 8px 20px rgba(16, 36, 58, .07);
  --shadow: 0 18px 44px rgba(16, 36, 58, .10);
  --shadow-lg: 0 28px 70px rgba(16, 36, 58, .16);
  --radius: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(191, 232, 221, .30) 0%, transparent 26%),
    linear-gradient(225deg, rgba(207, 229, 245, .50) 0%, transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 58, 94, .055) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black 0%, transparent 58%);
  opacity: .36;
}

.shell {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
}

.appShell, .app { padding: 34px 0 52px; position: relative; z-index: 1; }

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(221, 231, 239, .92);
  box-shadow: 0 10px 28px rgba(16, 36, 58, .055);
  backdrop-filter: blur(16px);
}

.navShell {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.brandBlock {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brandMark {
  display: grid;
  place-items: center;
  color: white;
  background: var(--primary);
  font-weight: 900;
  overflow: hidden;
  flex: 0 0 auto;
}

.brandMarkLogo {
  width: 166px;
  height: 56px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(201, 216, 228, .95);
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
  overflow: visible;
}

.brandLogo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}

.brandDivider {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, transparent, #cbd9e4, transparent);
  flex: 0 0 auto;
}

.brandText { display: grid; gap: 4px; min-width: 0; }
.brandText strong { font-size: 20px; line-height: 1.08; color: var(--text-strong); letter-spacing: -.02em; }
.brandText small { font-size: 10.5px; font-weight: 800; letter-spacing: .055em; color: #65788c; white-space: nowrap; }

h1, h2, h3 { margin: 0; color: var(--text-strong); letter-spacing: -.02em; }
h1 { font-size: 25px; line-height: 1.15; }
h2 { font-size: 20px; margin-bottom: 12px; }
h3 { font-size: 15px; margin-bottom: 10px; }
p { margin: 0; color: var(--muted); line-height: 1.62; }

.topLinks, .headerActions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }

.card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(221, 231, 239, .96);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.authCard {
  max-width: 860px;
  margin: 44px auto 24px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cleanAuthCard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(90deg, var(--mint), var(--sky), var(--lilac), var(--peach), var(--butter));
}

.cleanAuthCard::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(191, 232, 221, .72), rgba(207, 229, 245, .64));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9);
  transform: rotate(8deg);
  pointer-events: none;
}

.authBrandMini img { width: 118px; height: 52px; object-fit: contain; display: block; margin-bottom: 12px; }
.authIntro { margin-bottom: 18px; position: relative; z-index: 1; }
.authIntro h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.05; margin: 10px 0 8px; }
.authIntro p { max-width: 680px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #13406a;
  background: #f3f8fb;
  border: 1px solid #d5e5ef;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 13px; color: #243b53; }
input, select {
  width: 100%;
  padding: 12px 13px;
  margin-top: 6px;
  border: 1px solid #ccd9e5;
  border-radius: 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:focus, select:focus {
  outline: none;
  border-color: #80a9c6;
  box-shadow: 0 0 0 4px rgba(207, 229, 245, .78);
  background: #fff;
}
input[type="file"] { padding: 9px 10px; }

button, .button {
  border: 0;
  background: var(--primary);
  color: white;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  min-height: 42px;
  box-shadow: 0 10px 18px rgba(23, 58, 94, .13);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
button:hover, .button:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 14px 24px rgba(23, 58, 94, .18); }
button:disabled { background: #9fb0bf; cursor: not-allowed; transform: none; box-shadow: none; }

.secondaryBtn, .button.secondary, .ssoButton {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid #cedce8;
  box-shadow: var(--shadow-xs);
}
.secondaryBtn:hover, .button.secondary:hover, .ssoButton:hover { background: #f5fafc; color: var(--primary-dark); border-color: #b8cedf; }

.googleButton {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  box-shadow: none;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  gap: 12px;
}
.googleButton:hover {
  background: #f8fafd;
  color: #202124;
  border-color: #d2d6dc;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .18), 0 1px 3px 1px rgba(60, 64, 67, .10);
  transform: none;
}
.googleButton:active { background: #f1f3f4; }
.googleButton:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.googleIcon { width: 18px; height: 18px; flex: 0 0 auto; display: inline-flex; }
.googleIcon svg { width: 18px; height: 18px; display: block; }

.dangerBtn { background: #ffffff; color: var(--danger); border: 1px solid #ffd0cb; box-shadow: none; }
.dangerBtn:hover { background: var(--danger-soft); color: #991b1b; border-color: #ffb7ae; }
.primaryAction { min-width: 230px; }
.iconBtn {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  background: #f2f6f9;
  color: #334155;
  font-size: 22px;
  box-shadow: none;
}
.iconBtn:hover { background: #e8eef3; }

.hidden { display: none !important; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.error { color: var(--danger); font-weight: 900; }
.warning { color: var(--warning); font-weight: 900; }
.ok { color: var(--success); font-weight: 900; }

.authTabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; position: relative; z-index: 1; }
.authTabs button { background: #f0f5f8; color: #2e455e; border: 1px solid #d9e5ee; box-shadow: none; }
.authTabs button:hover { background: #e6f0f7; transform: none; box-shadow: none; }
.authTabs button.active { background: var(--primary); border-color: var(--primary); color: white; }
.formBlock { border-top: 1px solid var(--border); padding-top: 18px; position: relative; z-index: 1; }

.passwordField { position: relative; display: block; }
.passwordField input { padding-right: 44px; }
.passwordToggle {
  position: absolute;
  right: 8px;
  top: calc(50% + 3px);
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-size: 16px;
  box-shadow: none;
}
.passwordToggle:hover { background: #eef4f8; transform: translateY(-50%); box-shadow: none; }

.accountButton {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #cedce8;
  color: var(--text);
  box-shadow: var(--shadow-xs);
  padding: 9px 13px 9px 9px;
  min-width: 260px;
}
.accountButton:hover { background: white; border-color: #b9ccdc; }
.accountAvatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #153657;
  background: var(--sky);
  font-size: 12px;
  font-weight: 900;
}
.accountLabel { display: block; text-align: left; font-size: 13px; font-weight: 900; color: var(--text-strong); }
.accountButton small { display: block; color: var(--muted); text-align: left; font-size: 11px; font-weight: 800; margin-top: 2px; }
.accountChevron { margin-left: auto; color: var(--muted); font-weight: 900; }

.accountBackdrop { position: fixed; inset: 0; z-index: 29; background: rgba(15, 23, 42, .22); }
.accountPanel {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30;
  width: min(440px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.accountPanelHeader { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.accountSection { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.accountActions { margin-top: 12px; }
.subscriptionBox { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 16px; padding: 14px; line-height: 1.5; }
.subscriptionBox p { margin: 4px 0; }
.subscriptionMeta { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 13px; }
.subscriptionMeta span { color: var(--muted); }
.subscriptionMeta strong { color: var(--text); word-break: break-word; }
.paymentBox label { margin-bottom: 10px; }

.dashboardHero {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 385px;
  gap: 30px;
  align-items: center;
  min-height: 220px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(247,250,252,.98) 52%, rgba(207,229,245,.50) 100%);
  position: relative;
  overflow: hidden;
}
.dashboardHero::after {
  content: "";
  position: absolute;
  right: -62px;
  top: -72px;
  width: 260px;
  height: 260px;
  border-radius: 54px;
  background: rgba(191, 232, 221, .52);
  transform: rotate(14deg);
}
.heroArt { position: relative; height: 148px; z-index: 1; }
.heroScreen {
  position: absolute;
  left: 8px;
  top: 26px;
  width: 140px;
  height: 88px;
  border: 1px solid #bdd2e2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(23, 58, 94, .10);
}
.heroScreen::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 9px;
  border-radius: 999px;
  background: #e9f2f8;
}
.heroScreen::after { content: ""; position: absolute; left: 32px; right: 32px; bottom: -18px; height: 7px; border-radius: 999px; background: #bdd2e2; }
.heroScreen span { position: absolute; bottom: 16px; width: 14px; border-radius: 4px 4px 0 0; background: var(--accent); opacity: .88; }
.heroScreen span:nth-child(1) { left: 32px; height: 20px; background: var(--mint); }
.heroScreen span:nth-child(2) { left: 56px; height: 34px; background: var(--sky); }
.heroScreen span:nth-child(3) { left: 82px; height: 52px; background: var(--lilac); }
.heroDoc {
  position: absolute;
  right: 18px;
  top: 56px;
  width: 68px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
  border: 1px solid #d0deea;
  border-radius: 16px;
  background: #fffaf1;
  box-shadow: 0 16px 28px rgba(16, 42, 67, .10);
}
.heroCheck { position: absolute; right: 0; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: #095c4a; display: grid; place-items: center; font-weight: 900; box-shadow: 0 10px 20px rgba(15, 118, 110, .18); }
.heroCopy { position: relative; z-index: 1; }
.dashboardHero h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; margin: 14px 0 12px; max-width: 720px; }
.dashboardHero p { font-size: 17px; max-width: 720px; }
.statusCard {
  position: relative;
  z-index: 1;
  min-height: 112px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px 22px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.statusIcon { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--sky); color: #164262; font-size: 24px; box-shadow: var(--shadow-xs); }
.statusCard span:not(.statusIcon), .statusCard small { color: var(--muted); font-size: 12px; font-weight: 700; }
.statusCard strong { color: var(--primary); font-size: 22px; margin: 4px 0; }

.lockedDashboard { max-width: 860px; margin: 44px auto 24px; box-shadow: var(--shadow-sm); }
.lockedDashboard h2 { margin-top: 10px; font-size: 30px; }
.lockedDashboard button { margin-top: 16px; }

.privacy { display: flex; gap: 16px; align-items: center; background: linear-gradient(180deg, #f0fbf8, #fbfffd); border-color: #b6e2d7; color: #0f6b58; line-height: 1.45; }
.privacy p, .privacy strong { color: #0f6b58; }
.privacyIcon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #0f6b58; flex: 0 0 auto; }

.workCard {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 30px;
  padding: 26px;
}
.workPanel + .workPanel { border-left: 1px solid var(--border); padding-left: 30px; }
.sectionTitle { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sectionTitle span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sky); color: var(--primary); }
.sectionTitle h2 { margin: 0; }
.profileGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.profileGrid label:nth-child(4), .profileGrid label:nth-child(5) { grid-column: span 1; }
.filingGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.templateDownloads { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.templateDownloads .hint { flex-basis: 100%; margin: 0; font-size: 12px; }
.templateDownloads .button.secondary { min-height: 36px; padding: 8px 12px; border-color: #c8dce9; background: #f7fbfd; color: #13406a; box-shadow: none; }
.templateDownloads .button.secondary:hover { background: #eff7fb; }
.templateDownloads .button.secondary::before { content: "⇩"; font-weight: 900; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.actionBar {
  justify-content: space-between;
  position: sticky;
  top: 98px;
  z-index: 10;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(221, 231, 239, .94);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}
.actionBar button { flex: 1 1 180px; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 92px;
  box-shadow: var(--shadow-xs);
  color: #26445f;
  font-size: 13px;
  font-weight: 900;
}
.metricIcon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--primary); font-size: 20px; flex: 0 0 auto; }
.metric strong { display: block; font-size: 24px; line-height: 1.1; margin-top: 3px; color: var(--text-strong); word-break: break-word; }
.metric small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-green .metricIcon { background: var(--mint); color: var(--mint-ink); }
.metric-amber .metricIcon { background: var(--butter); color: var(--butter-ink); }
.metric-purple .metricIcon { background: var(--lilac); color: var(--lilac-ink); }

.tablesGrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; }
.adminTablesGrid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.tableCard { overflow: hidden; }
.tableCard h2 { margin-bottom: 14px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th, td { border-bottom: 1px solid var(--border); text-align: left; padding: 10px 12px; vertical-align: top; }
th { background: #f1f6f9; font-weight: 900; color: #294763; font-size: 12px; }
thead th:first-child { border-top-left-radius: 10px; }
thead th:last-child { border-top-right-radius: 10px; }
.tableWrap { overflow: auto; max-height: 470px; border-radius: 12px; }
.emptyCell { padding: 0; }
.emptyState { min-height: 110px; display: grid; place-items: center; align-content: center; gap: 4px; color: #8395a7; text-align: center; }
.emptyState span { font-size: 28px; opacity: .7; }
.emptyState strong { color: #617790; font-size: 13px; }
.emptyState small { color: #8395a7; font-size: 12px; }

.badge { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); border: 1px solid #cbddeb; font-size: 12px; font-weight: 900; }
.adminShell { padding-top: 34px; }
.adminLead { margin: -4px 0 18px; }
.adminHero { background: linear-gradient(135deg, #ffffff 0%, #f2f8fb 100%); padding: 30px; }
.adminHero h2 { font-size: clamp(26px, 3vw, 38px); margin: 10px 0; }
.adminActionBar { justify-content: flex-start; }
.adminActionBar button { flex: 0 1 auto; }
.adminAuthCard h2 { font-size: 30px; margin: 10px 0; }

.fieldHelp { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.orDivider { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.orDivider::before, .orDivider::after { content: ""; height: 1px; flex: 1; background: var(--border); }

.siteFooter {
  position: relative;
  z-index: 1;
  background: #10243a;
  color: white;
  padding: 22px 0;
  margin-top: 18px;
}
.footerShell { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footerBrand { display: flex; align-items: center; gap: 14px; min-width: 260px; }
.footerBrand img { width: 82px; height: 38px; object-fit: contain; filter: brightness(1.25) contrast(1.08); }
.footerBrand span { display: grid; gap: 3px; }
.footerBrand strong { font-size: 13px; color: #fff; }
.footerBrand small { font-size: 10px; color: rgba(255,255,255,.72); letter-spacing: .04em; }
.siteFooter p { text-align: center; color: rgba(255,255,255,.86); font-size: 12px; }
.siteFooter nav { display: flex; gap: 12px; align-items: center; }
.siteFooter nav a { color: rgba(255,255,255,.88); text-decoration: none; font-size: 12px; }
.siteFooter nav a + a { border-left: 1px solid rgba(255,255,255,.28); padding-left: 12px; }
.siteFooter nav a:hover { color: white; text-decoration: underline; }

@media (max-width: 1160px) {
  .shell { width: min(100% - 44px, 1280px); }
  .dashboardHero { grid-template-columns: 180px minmax(0, 1fr); }
  .statusCard { grid-column: 1 / -1; }
  .workCard, .tablesGrid, .adminTablesGrid { grid-template-columns: 1fr; }
  .workPanel + .workPanel { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-top: 22px; }
  .footerShell { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 800px) {
  .shell { width: min(100% - 24px, 1280px); }
  .appShell, .app { padding-top: 18px; }
  .navShell { min-height: 72px; align-items: center; }
  .brandMarkLogo { width: 126px; height: 50px; padding: 6px 8px; }
  .brandDivider { display: none; }
  .brandText strong { font-size: 17px; }
  .brandText small { display: none; }
  .headerActions { flex-wrap: wrap; justify-content: flex-end; }
  .accountButton { min-width: 0; padding: 8px; }
  .accountLabel, .accountButton small, .accountChevron { display: none; }
  .grid.two, .profileGrid, .filingGrid { grid-template-columns: 1fr; }
  .authCard { margin-top: 24px; padding: 24px; }
  .cleanAuthCard::after { display: none; }
  .dashboardHero { grid-template-columns: 1fr; padding: 24px; }
  .heroArt { display: none; }
  .dashboardHero h2 { font-size: 30px; }
  .dashboardHero p { font-size: 15px; }
  .statusCard { padding-left: 84px; }
  .actionBar { position: static; }
  .actionBar button, .primaryAction { flex-basis: 100%; min-width: 0; }
  .googleButton { width: 100%; }
  .accountPanel { top: 8px; right: 8px; width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .footerBrand { min-width: 0; flex-direction: column; }
  .siteFooter nav { flex-wrap: wrap; justify-content: center; }
}


/* Loading state */
.loadingDashboard {
  max-width: 860px;
  margin: 44px auto 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.loadingSpinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  animation: s2eSpin .8s linear infinite;
  flex: 0 0 auto;
}
@keyframes s2eSpin { to { transform: rotate(360deg); } }
.loadingDashboard h2 { margin: 10px 0 4px; font-size: 28px; }
.contactDetailsList { display: grid; gap: 10px; margin-top: 14px; }
.contactDetailItem { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); line-height: 1.5; }
.contactDetailItem strong { min-width: 78px; color: var(--text-strong); }
.footerContact { color: rgba(255,255,255,.82); font-size: 12px; display: grid; gap: 3px; text-align: center; }
@media (max-width: 800px) {
  .loadingDashboard { align-items: flex-start; }
  .contactDetailItem { display: grid; gap: 2px; }
}

.smallButton { min-height: 32px; padding: 7px 10px; border-radius: 10px; font-size: 12px; }

/* ======================================================
   S2E Marketing Website Layout
   Required by index.html, features.html, pricing.html,
   services.html, security.html, privacy.html, terms.html,
   dpa.html, and contact.html.
   ====================================================== */

.marketingBody {
  background:
    linear-gradient(135deg, rgba(191, 232, 221, .34) 0%, transparent 26%),
    linear-gradient(225deg, rgba(207, 229, 245, .58) 0%, transparent 32%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f9fb 48%, #ffffff 100%);
}

.marketingHeader {
  position: sticky;
  top: 0;
  z-index: 40;
}

.marketingNavShell {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(290px, auto) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.siteNav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.siteNavLink {
  color: #284866;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.siteNavLink:hover {
  background: #f0f7fb;
  border-color: #d7e7f1;
  color: var(--primary);
  text-decoration: none;
}

.siteNavLink.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #cbddeb;
}

.marketingActions .button,
.marketingActions button {
  white-space: nowrap;
}

.marketingPage {
  padding: 44px 0 58px;
  position: relative;
  z-index: 1;
}

.marketingHero {
  position: relative;
  z-index: 1;
  padding: 72px 0 60px;
  overflow: hidden;
}

.marketingHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(191, 232, 221, .45), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(207, 229, 245, .72), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(245,249,251,.66));
  z-index: -1;
}

.marketingHeroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .72fr);
  gap: 42px;
  align-items: center;
}

.marketingHeroCopy h1 {
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 850px;
  margin: 18px 0 18px;
}

.heroLead {
  font-size: clamp(17px, 1.65vw, 22px);
  max-width: 820px;
  color: #526b83;
}

.heroActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.heroPrimary {
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 14px;
}

.heroTrustRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.heroTrustRow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid #dbe9f2;
  color: #244560;
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-xs);
}

.heroTrustRow span::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 11px;
}

.heroProductCard {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(201,216,228,.94);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.heroProductCard::before {
  content: "";
  position: absolute;
  right: -56px;
  top: -64px;
  width: 180px;
  height: 180px;
  border-radius: 42px;
  background: rgba(191,232,221,.48);
  transform: rotate(16deg);
}

.productCardTop {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-strong);
}

.productDot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--peach);
}

.productDot:nth-child(2) { background: var(--butter); }
.productDot:nth-child(3) { background: var(--mint); }
.productCardTop strong { margin-left: 6px; font-size: 14px; }

.productMetricGrid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.productMetricGrid div {
  background: #f7fbfd;
  border: 1px solid #dbe8f1;
  border-radius: 18px;
  padding: 16px;
  min-height: 112px;
}

.productMetricGrid span,
.productMetricGrid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.productMetricGrid strong {
  display: block;
  color: var(--primary);
  font-size: 28px;
  line-height: 1.05;
  margin: 7px 0 5px;
}

.productFlow {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #10243a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 900;
}

.marketingSection {
  padding: 56px 0;
  position: relative;
  z-index: 1;
}

.sectionHeader {
  max-width: 780px;
  margin-bottom: 24px;
}

.sectionHeader h2,
.splitSection h2,
.ctaBand h2,
.pricingAdvice h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.04;
  margin: 14px 0 12px;
}

.featureCards,
.featureMatrix,
.pricingGrid,
.contactGrid {
  display: grid;
  gap: 18px;
}

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

.featureCard,
.featureMatrixCard,
.priceCard,
.contactCard,
.pricingAdvice {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.featureCard span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 18px;
}

.featureCard h3,
.featureMatrixCard h2,
.contactCard h2,
.priceCard h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.splitSection {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 44px;
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.splitSection > .button {
  justify-self: start;
}

.stepsList {
  display: grid;
  gap: 12px;
}

.stepsList div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #f7fbfd;
  border: 1px solid #dce9f2;
}

.stepsList strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
}

.stepsList span {
  color: #314b66;
  font-weight: 800;
  line-height: 1.45;
}

.ctaBand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 36px;
  margin: 48px auto 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #10243a, #173a5e);
  box-shadow: var(--shadow);
}

.ctaBand h2,
.ctaBand p,
.ctaBand .eyebrow {
  color: white;
}

.ctaBand .eyebrow {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}

.ctaBand .button {
  background: white;
  color: var(--primary);
  box-shadow: none;
  flex: 0 0 auto;
}

.websiteHeroCard,
.policyHero.pricingHero {
  padding: 42px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,249,251,.92)),
    radial-gradient(circle at 90% 12%, rgba(191,232,221,.48), transparent 30%);
  box-shadow: var(--shadow-sm);
}

.websiteHeroCard h1,
.policyHero h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
  margin: 16px 0 12px;
}

.websiteHeroCard p,
.policyHero p {
  font-size: 17px;
  max-width: 900px;
}

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

.featureMatrixCard {
  min-height: 200px;
}

.featureMatrixCard h2::before {
  content: "";
  display: block;
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--sky));
  margin-bottom: 16px;
}

.pricingGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin: 24px 0;
}

.priceCard {
  display: flex;
  flex-direction: column;
  position: relative;
}

.highlightPrice {
  border-color: #96b8d2;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.priceBadge {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .045em;
  margin-bottom: 14px;
}

.priceBadge.neutral {
  background: var(--primary-soft);
  color: var(--primary);
}

.priceAudience {
  font-size: 13px;
  min-height: 42px;
}

.priceValue {
  margin: 18px 0 8px;
  color: var(--text-strong);
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
}

.priceValue span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0;
}

.priceNote {
  font-size: 13px;
  min-height: 64px;
}

.priceCard ul,
.policySection ul {
  padding-left: 20px;
  margin: 16px 0 22px;
  color: #3a536d;
  line-height: 1.6;
}

.priceCard li,
.policySection li {
  margin-bottom: 8px;
}

.priceCard .button {
  margin-top: auto;
}

.trialPriceCard {
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.pricingAdvice {
  margin-top: 18px;
}

.contactGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.contactCard .button {
  margin-top: 16px;
}

.policyPage {
  padding: 44px 0 58px;
  position: relative;
  z-index: 1;
}

.policyMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.policyMeta span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f6f9;
  border: 1px solid #dce8f0;
  color: #31526d;
  font-size: 12px;
  font-weight: 900;
}

.policySection {
  padding: 26px;
}

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

.policyMiniCard {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.policyMiniCard strong {
  display: block;
  color: var(--text-strong);
  font-size: 16px;
  margin-bottom: 8px;
}

.marketingFooter .footerShell {
  grid-template-columns: auto 1fr auto;
}

@media (max-width: 1180px) {
  .marketingNavShell {
    grid-template-columns: 1fr auto;
  }
  .siteNav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: 12px;
  }
  .marketingHeroGrid,
  .splitSection {
    grid-template-columns: 1fr;
  }
  .pricingGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featureMatrix,
  .policyGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .marketingNavShell {
    display: flex;
    flex-wrap: wrap;
    min-height: auto;
    padding: 12px 0;
  }
  .siteNav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }
  .siteNavLink {
    white-space: nowrap;
  }
  .marketingActions {
    margin-left: auto;
  }
  .marketingHero {
    padding: 44px 0 38px;
  }
  .marketingHeroGrid {
    gap: 28px;
  }
  .heroProductCard {
    padding: 18px;
  }
  .featureCards,
  .featureMatrix,
  .pricingGrid,
  .contactGrid,
  .policyGrid {
    grid-template-columns: 1fr;
  }
  .highlightPrice {
    transform: none;
  }
  .splitSection,
  .websiteHeroCard,
  .policyHero.pricingHero,
  .ctaBand {
    padding: 24px;
  }
  .ctaBand {
    display: grid;
  }
  .ctaBand .button {
    justify-self: start;
  }
  .marketingFooter .footerShell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .marketingActions .button.secondary {
    display: none;
  }
  .marketingHeroCopy h1,
  .websiteHeroCard h1,
  .policyHero h1 {
    font-size: 34px;
  }
  .productMetricGrid {
    grid-template-columns: 1fr;
  }
  .heroTrustRow span {
    width: 100%;
  }
}

/* ======================================================
   S2E Header one-row + hero no-break fix
   Keeps Home, Features, Pricing, Custom Systems, Security,
   and Contact on one desktop row and prevents re-encoding
   from splitting after the hyphen.
   ====================================================== */

.marketingHeader .shell {
  width: min(1340px, calc(100% - 64px));
}

.marketingNavShell {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.marketingHeader .brandBlock {
  gap: 12px;
}

.marketingHeader .brandMarkLogo {
  width: 150px;
  height: 54px;
  padding: 6px 10px;
}

.marketingHeader .brandText strong {
  font-size: 18px;
}

.marketingHeader .brandText small {
  font-size: 9.5px;
  letter-spacing: .035em;
  white-space: nowrap;
}

.siteNav {
  flex-wrap: nowrap;
  gap: 4px;
}

.siteNavLink {
  white-space: nowrap;
  padding: 9px 9px;
  font-size: 12px;
}

.marketingActions {
  gap: 8px;
}

.marketingActions .button,
.marketingActions button {
  padding-left: 14px;
  padding-right: 14px;
  white-space: nowrap;
}

.marketingHeroCopy h1 {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 880px;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 1180px) and (min-width: 981px) {
  .marketingHeader .shell {
    width: min(100% - 32px, 1180px);
  }

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

  .marketingHeader .brandMarkLogo {
    width: 128px;
    height: 48px;
    padding: 5px 8px;
  }

  .marketingHeader .brandDivider,
  .marketingHeader .brandText small {
    display: none;
  }

  .marketingHeader .brandText strong {
    font-size: 16px;
    white-space: nowrap;
  }

  .siteNav {
    grid-column: auto;
    grid-row: auto;
    justify-content: center;
    flex-wrap: nowrap;
    padding-bottom: 0;
    gap: 2px;
  }

  .siteNavLink {
    font-size: 11.5px;
    padding: 8px 6px;
  }

  .marketingActions .button,
  .marketingActions button {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
  }
}


/* ======================================================
   S2E header logo refinement
   Removes the side divider/gridline and lets the logo fit
   cleanly without appearing cut inside a box.
   ====================================================== */
.brandDivider {
  display: none !important;
}

.brandMarkLogo {
  width: 154px;
  height: 58px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.marketingHeader .brandMarkLogo {
  width: 154px;
  height: 58px;
  padding: 0;
}

.brandLogo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 800px) {
  .brandMarkLogo,
  .marketingHeader .brandMarkLogo {
    width: 128px;
    height: 50px;
    padding: 0;
  }
}


/* Legal checkbox alignment fix */
.legalCheckbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  color: #243b53;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.legalCheckbox input[type="checkbox"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.legalCheckbox span {
  flex: 1 1 auto;
}

.legalCheckbox a {
  color: var(--primary);
  font-weight: 900;
}

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