:root {
  font-family: var(--font-landing);
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: var(--canvas);
  background-image: radial-gradient(
    var(--dot-grid) var(--space-1),
    transparent var(--space-1)
  );
  background-size: var(--size-32) var(--size-32);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--space-2) solid var(--accent);
  outline-offset: var(--space-2);
}
button {
  border: var(--space-1) solid var(--line);
  background: var(--surface);
  color: inherit;
  border-radius: var(--radius-8);
  padding: var(--space-8) var(--space-16);
  font-weight: 600;
}
button:hover {
  background: var(--surface-soft);
}
.primary {
  background: var(--blue);
  color: var(--on-primary);
  border-color: var(--link);
  box-shadow: var(--shadow-1);
}
.primary:hover {
  background: var(--blue-hover);
}
.shell {
  display: grid;
  grid-template-columns: var(--size-235) 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: var(--on-dark);
  padding: var(--space-32) var(--space-20);
  display: flex;
  flex-direction: column;
  position: fixed;
  width: var(--size-235);
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-size: var(--text-24);
  letter-spacing: -0.0625em;
  font-weight: 700;
  color: var(--on-primary);
  margin-bottom: var(--space-48);
}
.brand img {
  color-scheme: light;
  display: block;
  width: 100%;
  max-width: var(--size-190);
  height: auto;
  background: var(--logo-tile);
  border-radius: var(--radius-8);
  padding: var(--space-4) var(--space-8);
}
.mark {
  display: inline-flex;
  align-items: flex-end;
  gap: var(--space-2);
  width: var(--size-30);
  height: var(--size-29);
}
.mark i {
  display: block;
  width: var(--size-7);
  background: var(--accent);
  border-radius: var(--radius-2);
}
.mark i:nth-child(1) {
  height: var(--size-12);
}
.mark i:nth-child(2) {
  height: var(--size-21);
}
.mark i:nth-child(3) {
  height: var(--size-29);
}
.nav {
  display: grid;
  gap: var(--space-8);
}
.nav button {
  text-align: left;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-weight: 500;
  padding: var(--space-12) var(--space-12);
  display: flex;
  align-items: center;
  gap: var(--space-12);
}
.nav button.active {
  background: var(--nav-active);
  color: var(--on-primary);
}
.nav button:hover {
  background: var(--nav-hover);
}
.nav .icon {
  font-size: var(--text-18);
  width: var(--size-22);
}
.nav .count {
  margin-left: auto;
  background: var(--nav-active);
  color: var(--on-primary);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-4);
  font-size: var(--text-12);
}
.side-foot {
  margin-top: auto;
}
.trial {
  padding: var(--space-16) var(--space-12);
  background: var(--nav-hover);
  border-radius: var(--radius-8);
  font-size: var(--text-13);
  line-height: 1.7;
  margin-bottom: var(--space-24);
}
.trial strong {
  color: var(--on-dark-accent);
}
.profile {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  font-size: var(--text-13);
}
.avatar {
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  width: var(--size-35);
  height: var(--size-35);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.profile small {
  display: block;
  color: var(--on-dark);
}
.logout {
  padding: var(--space-4);
  border: 0;
  background: none;
  color: var(--on-dark);
  font-size: var(--text-11);
}
.main {
  grid-column: 2;
}
.topbar {
  height: var(--size-78);
  border-bottom: var(--space-1) solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-40);
  background: var(--surface);
  font-size: var(--text-13);
}
.topbar span {
  color: var(--muted);
}
.topbar strong {
  font-weight: 500;
}
.content {
  max-width: var(--size-1450);
  margin: auto;
  padding: var(--space-40) var(--space-40);
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  margin-bottom: var(--space-28);
}
h1 {
  font-size: var(--text-32);
  letter-spacing: -0.0625em;
  margin: 0 0 var(--space-8);
  font-weight: 650;
}
h2 {
  font-size: var(--text-18);
  margin: 0 0 var(--space-8);
  letter-spacing: -0.021875em;
}
h3 {
  font-size: var(--text-16);
  margin: 0 0 var(--space-4);
}
p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
small {
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
  margin-bottom: var(--space-28);
}
.stat {
  background: var(--surface);
  border: var(--space-1) solid var(--line);
  padding: var(--space-24);
  border-radius: var(--radius-8);
}
.stat .value {
  font-size: var(--text-32);
  letter-spacing: -0.0625em;
  margin: var(--space-12) 0 var(--space-8);
  font-weight: 600;
}
.stat label {
  font-size: var(--text-13);
  color: var(--muted);
}
.stat small {
  font-size: var(--text-12);
}
.panel {
  background: var(--surface);
  border: var(--space-1) solid var(--line);
  border-radius: var(--radius-8);
  margin-bottom: var(--space-24);
  overflow: hidden;
}
.panel-head {
  padding: var(--space-20) var(--space-24);
  border-bottom: var(--space-1) solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
}
.panel-head h2 {
  margin: 0;
}
.panel-head p {
  font-size: var(--text-13);
  margin-top: var(--space-4);
}
.panel-body {
  padding: var(--space-24);
}
.grid-two {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-24);
}
.empty {
  text-align: center;
  padding: var(--space-48) var(--space-24);
}
.empty .empty-icon {
  font-size: var(--text-32);
  color: var(--decorative);
  margin-bottom: var(--space-12);
}
.empty p {
  max-width: var(--size-420);
  margin: var(--space-8) auto var(--space-20);
  font-size: var(--text-14);
}
.empty.compact {
  padding: var(--space-32);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-13);
}
th {
  font-size: var(--text-12);
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-soft);
  padding: var(--space-12) var(--space-24);
}
td {
  padding: var(--space-20) var(--space-24);
  border-top: var(--space-1) solid var(--line);
}
td small {
  display: block;
  margin-top: var(--space-4);
}
.site-name {
  font-weight: 600;
  font-size: var(--text-14);
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-4);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-11);
  white-space: nowrap;
  background: var(--surface-soft);
  color: var(--muted);
}
.badge.green {
  background: var(--success-bg);
  color: var(--success-text);
}
.badge.amber {
  background: var(--warning-bg);
  color: var(--warning-text);
}
.badge.red {
  background: var(--error-bg);
  color: var(--error-text);
}
.score {
  font-weight: 650;
  color: var(--success-text);
  font-size: var(--text-18);
}
.subtle {
  font-weight: 400;
  color: var(--muted);
  font-size: var(--text-12);
}
.text-btn {
  background: none;
  border: 0;
  color: var(--link);
  padding: var(--space-4) 0;
}
.steps {
  display: grid;
  gap: var(--space-20);
}
.step {
  display: flex;
  gap: var(--space-16);
  align-items: flex-start;
}
.step-num {
  background: var(--surface-soft);
  color: var(--link);
  width: var(--size-30);
  height: var(--size-30);
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: var(--text-12);
}
.step p {
  font-size: var(--text-13);
}
.activity {
  padding: var(--space-16) var(--space-24);
  border-bottom: var(--space-1) solid var(--line);
  display: flex;
  gap: var(--space-12);
  font-size: var(--text-13);
}
.activity:last-child {
  border: 0;
}
.dot {
  height: var(--size-7);
  width: var(--size-7);
  border-radius: 50%;
  background: var(--accent);
  margin-top: var(--space-8);
  flex-shrink: 0;
}
.activity small {
  display: block;
  margin-top: var(--space-4);
  font-size: var(--text-11);
}
.notice {
  padding: var(--space-16) var(--space-20);
  background: var(--surface-soft);
  border: var(--space-1) solid var(--line);
  border-radius: var(--radius-8);
  font-size: var(--text-13);
  color: var(--info-text);
  margin-bottom: var(--space-24);
  line-height: 1.6;
}
.notice.amber {
  background: var(--warning-bg);
  border-color: var(--warning-line);
  color: var(--warning-text);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-20);
}
.toolbar input {
  max-width: var(--size-300);
}
.muted {
  color: var(--muted);
}
.integration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-20);
  padding: var(--space-24);
  border-bottom: var(--space-1) solid var(--line);
}
.integration p {
  font-size: var(--text-13);
  max-width: var(--size-650);
}
.form-grid {
  display: grid;
  gap: var(--space-16);
}
label {
  font-size: var(--text-13);
  font-weight: 500;
  display: block;
}
input,
select,
textarea {
  width: 100%;
  border: var(--space-1) solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-4);
  padding: var(--space-12) var(--space-12);
  color: var(--text);
  margin-top: var(--space-8);
}
textarea {
  resize: vertical;
  min-height: var(--size-90);
}
.form-hint {
  font-size: var(--text-12);
  line-height: 1.6;
  display: block;
  margin-top: var(--space-4);
}
.actions {
  display: flex;
  gap: var(--space-8);
  justify-content: flex-end;
  margin-top: var(--space-24);
}
.error {
  color: var(--error-text);
  background: var(--error-bg);
  border-radius: var(--radius-4);
  padding: var(--space-8);
  font-size: var(--text-13);
}
.error:empty {
  display: none;
}
dialog {
  border: var(--space-1) solid var(--line);
  border-radius: var(--radius-12);
  padding: var(--space-28);
  width: min(var(--size-550), calc(100vw - var(--size-32)));
  color: var(--text);
  box-shadow: var(--shadow-2);
}
dialog::backdrop {
  background: var(--backdrop);
}
dialog h2 {
  font-size: var(--text-24);
}
dialog p {
  font-size: var(--text-13);
  margin-bottom: var(--space-24);
}
#toast {
  position: fixed;
  bottom: var(--space-24);
  right: var(--space-24);
  background: var(--nav);
  color: var(--on-primary);
  padding: var(--space-12) var(--space-20);
  border-radius: var(--radius-8);
  box-shadow: var(--shadow-3);
  display: none;
  z-index: 10;
  max-width: var(--size-430);
  font-size: var(--text-13);
}
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-story {
  background: var(--nav);
  padding: var(--space-64);
  color: var(--on-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-story h1 {
  font-size: var(--text-56);
  max-width: var(--size-490);
  line-height: 1.12;
  letter-spacing: -0.125em;
}
.auth-story p {
  color: var(--on-dark);
  max-width: var(--size-450);
  margin-top: var(--space-24);
}
.growth-art {
  height: var(--size-180);
  display: flex;
  align-items: flex-end;
  gap: var(--space-12);
  margin: var(--space-48) 0;
}
.growth-art i {
  flex: 1;
  border-radius: var(--radius-4) var(--radius-4) 0 0;
  background: var(--decorative);
}
.growth-art i:nth-last-child(-n + 3) {
  background: var(--accent);
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-32);
}
.auth-form form {
  width: 100%;
  max-width: var(--size-370);
}
.auth-form h2 {
  font-size: var(--text-28);
  margin-bottom: var(--space-8);
}
.auth-form p {
  font-size: var(--text-14);
  margin-bottom: var(--space-28);
}
.auth-form .primary {
  width: 100%;
  margin-top: var(--space-20);
}
.auth-switch {
  text-align: center;
  margin-top: var(--space-20);
  font-size: var(--text-13);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-20);
}
.plan {
  padding: var(--space-28);
}
.plan ul {
  padding-left: var(--space-20);
  font-size: var(--text-14);
  line-height: 2.2;
  margin: var(--space-24) 0;
}
.plan .price {
  font-size: var(--text-28);
  margin-top: var(--space-16);
}
.suggestion {
  padding: var(--space-24);
  border-bottom: var(--space-1) solid var(--line);
}
.suggestion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}
.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  margin: var(--space-16) 0;
  font-size: var(--text-14);
}
.diff > div {
  padding: var(--space-16);
  background: var(--surface-soft);
  border-radius: var(--radius-4);
  overflow-wrap: anywhere;
}
.diff > div:last-child {
  background: var(--surface-soft);
}
.diff small {
  display: block;
  margin-bottom: var(--space-8);
}
.suggestion .actions {
  margin-top: var(--space-12);
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  height: var(--size-110);
  margin: var(--space-20) 0;
}
.spark .bar {
  background: var(--accent);
  min-width: var(--size-10);
  flex: 1;
  border-radius: var(--radius-4) var(--radius-4) 0 0;
}
.wrap {
  overflow-wrap: anywhere;
}
code {
  font-size: var(--text-12);
  background: var(--surface-soft);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-4);
}
footer {
  font-size: var(--text-12);
  color: var(--muted);
  margin-top: var(--space-28);
  display: flex;
  justify-content: space-between;
}
@media (max-width: 68.75rem) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .content {
    padding: var(--space-28);
  }
  .topbar {
    padding: 0 var(--space-28);
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: var(--space-40);
  }
  .auth-story h1 {
    font-size: var(--text-40);
  }
}
@media (max-width: 45rem) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: var(--space-16);
  }
  .brand {
    margin-bottom: var(--space-16);
  }
  .nav {
    display: flex;
    overflow-x: auto;
    gap: var(--space-4);
  }
  .nav button {
    white-space: nowrap;
    padding: var(--space-8);
  }
  .nav .icon,
  .side-foot {
    display: none;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: var(--size-55);
    padding: 0 var(--space-20);
  }
  .content {
    padding: var(--space-24) var(--space-16);
  }
  .heading {
    align-items: flex-start;
  }
  h1 {
    font-size: var(--text-24);
  }
  .heading p {
    font-size: var(--text-13);
  }
  .stats {
    gap: var(--space-8);
  }
  .stat {
    padding: var(--space-16);
  }
  .stat .value {
    font-size: var(--text-28);
  }
  .auth {
    display: block;
  }
  .auth-story {
    padding: var(--space-28);
  }
  .auth-story h1 {
    font-size: var(--text-32);
  }
  .auth-story .growth-art,
  .auth-story > small {
    display: none;
  }
  .auth-story .brand {
    margin-bottom: var(--space-28);
  }
  .auth-form {
    padding: var(--space-32) var(--space-24);
  }
  .diff {
    grid-template-columns: 1fr;
  }
  .integration {
    align-items: flex-start;
  }
  .topbar .date {
    display: none;
  }
  td,
  th {
    padding: var(--space-16);
  }
  footer {
    display: block;
    line-height: 2;
  }
  .heading > button {
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
/* Keep long tables and headings inside their grid tracks. */
.main,
.panel,
.grid-two > * {
  min-width: 0;
}
.heading > div {
  min-width: 0;
}
@media (max-width: 56.25rem) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: var(--space-16);
  }
  .brand {
    margin-bottom: var(--space-16);
  }
  .nav {
    display: flex;
    overflow-x: auto;
    gap: var(--space-4);
  }
  .nav button {
    white-space: nowrap;
    padding: var(--space-8);
  }
  .nav .icon,
  .side-foot {
    display: none;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: var(--size-55);
    padding: 0 var(--space-20);
  }
  .heading {
    flex-wrap: wrap;
  }
  .content {
    padding: var(--space-24) var(--space-16);
  }
}
.source-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-28);
  margin-bottom: var(--space-24);
}
.source-options p {
  font-size: var(--text-14);
  margin: var(--space-8) 0 var(--space-16);
}
.source-result {
  padding: var(--space-24) 0;
  border-top: var(--space-1) solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--space-20);
}
.source-result > div {
  min-width: 0;
}
.source-result small {
  display: block;
  margin: var(--space-8) 0;
}
.source-result details {
  margin-top: var(--space-16);
  font-size: var(--text-13);
  line-height: 1.7;
}
.source-result details li {
  overflow-wrap: anywhere;
}
.source-result summary {
  cursor: pointer;
  color: var(--link);
}
.download-button {
  display: block;
  text-decoration: none;
  color: var(--on-primary);
  background: var(--blue);
  border-radius: var(--radius-4);
  padding: var(--space-12) var(--space-12);
  font-size: var(--text-13);
  margin-top: var(--space-8);
  white-space: nowrap;
}
.consent {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-12);
}
.consent input {
  width: auto;
  margin: 0;
}
.plan h2 {
  margin-top: var(--space-20);
}
@media (max-width: 40.625rem) {
  .source-options {
    grid-template-columns: 1fr;
  }
  .source-result {
    display: block;
  }
  .source-panel .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
.code-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface-soft);
  padding: var(--space-20);
  border-radius: var(--radius-4);
  font-size: var(--text-12);
  line-height: 1.8;
}

/* Brand accents stay blue/cyan; success and error badges retain their meaning. */
.nav .icon {
  color: var(--accent);
}
.trial .text-btn {
  color: var(--on-dark-accent);
}
.auth-story > small {
  color: var(--on-dark);
}
.auth-form {
  background: var(--canvas);
}
.download-button:hover {
  background: var(--blue-hover);
}

/* Electric Growth authentication, adapted from the supplied design. */
.auth-electric {
  grid-template-columns: 7fr 5fr;
  background: var(--surface);
  color: var(--text);
}
.auth-electric .auth-story {
  padding: clamp(var(--space-28), 3.75vw, var(--space-64));
  background:
    radial-gradient(ellipse at 0 0, var(--hero-glow), transparent 60%),
    radial-gradient(ellipse at 100% 70%, var(--hero-edge), transparent 55%),
    var(--nav);
  gap: var(--space-48);
}
.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
}
.auth-electric .brand {
  display: inline-flex;
  width: fit-content;
  background: var(--surface);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-12);
  margin: 0;
}
.auth-electric .brand img {
  color-scheme: light;
  width: var(--size-155);
  height: auto;
}
.auth-pill {
  font-size: var(--text-12);
  color: var(--on-dark);
  padding: var(--space-4) var(--space-12);
  background: var(--glass-soft);
  border-radius: var(--radius-32);
}
.auth-story-content {
  max-width: var(--size-650);
}
.auth-eyebrow {
  display: inline-block;
  background: var(--accent-wash);
  color: var(--accent);
  border-radius: var(--radius-32);
  padding: var(--space-4) var(--space-12);
  font-size: var(--text-13);
  font-weight: 600;
}
.auth-electric .auth-story h1 {
  font-size: clamp(var(--text-40), 4.4vw, var(--text-72));
  line-height: 1.16;
  max-width: none;
  margin: var(--space-24) 0 var(--space-20);
  letter-spacing: -0.045em;
}
.auth-electric .auth-story h1 span {
  background: linear-gradient(
    100deg,
    var(--on-primary),
    var(--on-dark-accent) 45%,
    var(--accent)
  );
  background-clip: text;
  color: transparent;
}
.auth-electric .auth-story p {
  font-size: var(--text-16);
  line-height: 1.65;
  color: var(--on-dark);
  max-width: var(--size-600);
  margin: 0;
}
.auth-chart {
  margin-top: var(--space-32);
  padding: var(--space-24);
  background: var(--glass);
  border-radius: var(--radius-16);
}
.auth-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}
.auth-chart-heading strong {
  font-size: var(--text-14);
}
.auth-chart small {
  display: block;
  color: var(--on-dark);
  font-size: var(--text-11);
}
.auth-chart-icon {
  font-size: var(--text-28);
  color: var(--accent);
}
.auth-bars {
  height: var(--size-145);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-8);
  margin: var(--space-24) 0 var(--space-20);
}
.auth-bars > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-4);
  min-height: 0;
}
.auth-bars i {
  width: 100%;
  background: var(--glass-strong);
  border-radius: var(--radius-4) var(--radius-4) 0 0;
}
.auth-bars span {
  font-size: var(--text-11);
  color: var(--on-dark);
}
.auth-bars > div:nth-child(4) i {
  background: var(--blue);
}
.auth-bars > div:nth-child(5) i {
  background: var(--blue);
}
.auth-bars > div:nth-child(6) i {
  background: var(--accent);
}
.auth-bars > div:last-child i {
  background: var(--accent);
  box-shadow: var(--shadow-4);
}
.auth-bars > div:last-child span {
  color: var(--accent);
}
.auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--glass-soft);
  padding: var(--space-12);
  border-radius: var(--radius-8);
  gap: var(--space-12);
}
.auth-metrics small {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-metrics strong {
  font-size: var(--text-20);
}
.auth-metrics strong span {
  font-size: var(--text-14);
  color: var(--accent);
}
.auth-workflow {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  background: var(--glass-soft);
  padding: var(--space-20);
  border-radius: var(--radius-16);
  margin-top: var(--space-24);
}
.auth-workflow > span {
  color: var(--accent);
  font-size: var(--text-24);
}
.auth-workflow strong {
  font-size: var(--text-14);
}
.auth-electric .auth-workflow p {
  font-size: var(--text-13);
  margin-top: var(--space-4);
}
.auth-electric footer {
  font-size: var(--text-11);
  color: var(--on-dark);
  line-height: 1.6;
}
.auth-electric .auth-form {
  background: var(--surface);
  padding: clamp(var(--space-28), 3.75vw, var(--space-64));
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-48);
}
.auth-electric .auth-switch {
  align-self: flex-end;
  margin: 0;
  color: var(--muted);
}
.auth-electric .auth-form form {
  max-width: var(--size-460);
  margin: auto 0;
}
.auth-electric .auth-form form .brand {
  background: var(--surface-soft);
  margin-bottom: var(--space-24);
}
.auth-electric .auth-form h2 {
  font-size: clamp(var(--text-28), 2.6vw, var(--text-40));
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-12);
}
.auth-electric .auth-form p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-28);
}
.auth-electric .form-grid {
  gap: var(--space-20);
}
.auth-electric input {
  background: var(--surface-soft);
  border: var(--space-1) solid transparent;
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-8);
  color: var(--text);
}
.auth-electric input:focus {
  outline: var(--space-2) solid var(--blue);
  outline-offset: var(--space-2);
  background: var(--surface);
}
.auth-electric .primary {
  background: var(--blue);
  border-color: var(--link);
  padding: var(--space-16) var(--space-20);
  border-radius: var(--radius-12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  margin-top: var(--space-16);
  box-shadow: var(--shadow-5);
}
.auth-electric .primary:hover {
  background: var(--blue);
}
.auth-trial-note {
  display: block;
  text-align: center;
  color: var(--muted);
  margin-top: var(--space-12);
  font-size: var(--text-11);
}
.auth-electric .auth-form footer {
  text-align: center;
  color: var(--muted);
}
.auth-electric .auth-form footer span {
  margin: 0 var(--space-8);
}
@media (max-width: 62.5rem) {
  .auth-electric {
    grid-template-columns: 1fr 1fr;
  }
  .auth-pill {
    display: none;
  }
  .auth-electric .auth-story,
  .auth-electric .auth-form {
    padding: var(--space-28);
  }
}
@media (max-width: 43.75rem) {
  .auth-electric {
    display: flex;
    flex-direction: column;
  }
  .auth-electric .auth-story {
    padding: var(--space-28) var(--space-24);
    gap: var(--space-28);
  }
  .auth-electric .auth-story h1 {
    font-size: var(--text-40);
  }
  .auth-electric .auth-chart,
  .auth-electric .auth-workflow,
  .auth-electric .auth-story footer {
    display: none;
  }
  .auth-electric .auth-story p {
    font-size: var(--text-14);
  }
  .auth-electric .auth-form {
    padding: var(--space-28) var(--space-24);
    gap: var(--space-32);
  }
  .auth-electric .auth-form form {
    max-width: var(--size-460);
  }
  .auth-electric .auth-form form .brand {
    display: none;
  }
}

.auth-electric .brand,
.auth-electric .brand img {
  background: var(--logo-tile);
}
.auth-electric {
  color: var(--text);
}
.auth-electric .auth-story {
  color: var(--on-primary);
}
.auth-electric input {
  color: var(--text);
}
.auth-electric .auth-form {
  background: var(--surface);
}
.auth-electric .auth-form form .brand {
  background: var(--logo-tile);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--space-2) solid var(--focus);
  outline-offset: var(--space-4);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
dialog {
  background: var(--surface);
  max-height: 90dvh;
  overflow-y: auto;
}
#toast {
  display: block;
  max-width: calc(100vw - var(--space-32));
}
[hidden],
#toast[hidden] {
  display: none !important;
}
.loading,
#app > .error {
  margin: var(--space-24);
  padding: var(--space-24);
}
.loading {
  color: var(--muted);
}
#app > .error button {
  display: block;
  margin-top: var(--space-16);
}
.auth-electric .auth-story,
.auth-electric .auth-form {
  min-width: 0;
}
.auth-electric .auth-pill {
  white-space: nowrap;
}
.auth-electric .auth-brand-row {
  flex-wrap: wrap;
}
.panel-head,
.suggestion-head {
  flex-wrap: wrap;
}
.actions {
  flex-wrap: wrap;
}
.table-wrap {
  max-width: 100%;
}
.table-wrap table {
  min-width: var(--table-min);
}
.panel-body,
.integration,
.source-result,
.content footer {
  overflow-wrap: anywhere;
}
@media (max-width: 48rem) {
  .auth-electric {
    display: flex;
    flex-direction: column;
  }
  .auth-electric .auth-chart,
  .auth-electric .auth-workflow,
  .auth-electric .auth-story footer {
    display: none;
  }
  .auth-electric .auth-form form {
    max-width: var(--form-max);
  }
  .sidebar .side-foot {
    display: block;
    margin-top: var(--space-16);
  }
  .sidebar .trial {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.auth-story :focus-visible,
.sidebar :focus-visible {
  outline-color: var(--on-dark-accent);
}
a {
  color: var(--link);
}

.auth-eyebrow,
.auth-metrics strong span,
.auth-bars > div:last-child span {
  color: var(--on-dark-accent);
}
@media (max-width: 48rem) {
  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .nav button {
    justify-content: center;
    white-space: normal;
    padding: var(--space-8);
    min-height: var(--space-48);
    font-size: var(--text-13);
  }
  .nav .count {
    margin-left: 0;
  }
}
@media (max-width: 48rem) {
  .content footer span {
    display: block;
  }
}

/* Account and workspace surfaces share the public template's light palette. */
body {
  background-image: none;
}
button,
input,
select,
textarea {
  border-radius: var(--radius-12);
}
.primary,
.auth-electric .primary,
.download-button {
  background: var(--landing-gradient);
  border-color: transparent;
}
.primary:hover,
.auth-electric .primary:hover {
  background: var(--blue-hover);
}
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.sidebar {
  background: var(--surface);
  color: var(--text);
  border-right: var(--space-1) solid var(--line);
}
.nav button,
.profile small,
.logout {
  color: var(--muted);
}
.nav button.active,
.nav button:hover {
  background: var(--feature-blue-bg);
  color: var(--blue);
}
.nav .count {
  background: var(--blue);
}
.trial {
  background: linear-gradient(
    135deg,
    var(--feature-blue-bg),
    var(--feature-mint-bg)
  );
  border: var(--space-1) solid var(--line);
  border-radius: var(--radius-16);
}
.trial strong,
.trial .text-btn {
  color: var(--text);
}
.panel,
.stat,
dialog {
  border-radius: var(--space-20);
}
.panel {
  box-shadow: var(--shadow-3);
}
.stats .stat:nth-child(4n + 1),
.plan:first-child {
  background: linear-gradient(135deg, var(--feature-blue-bg), var(--surface));
}
.stats .stat:nth-child(4n + 2),
.plan:nth-child(2) {
  background: linear-gradient(135deg, var(--feature-mint-bg), var(--surface));
}
.stats .stat:nth-child(4n + 3),
.plan:nth-child(3) {
  background: linear-gradient(135deg, var(--feature-purple-bg), var(--surface));
}
.stats .stat:nth-child(4n + 4) {
  background: linear-gradient(135deg, var(--feature-peach-bg), var(--surface));
}
.badge {
  border-radius: var(--radius-32);
}
.diff > div:first-child {
  background: var(--feature-peach-bg);
}
.diff > div:last-child {
  background: var(--feature-mint-bg);
}
.auth-electric .auth-story {
  background:
    radial-gradient(ellipse at 0 0, var(--feature-blue-bg), transparent 65%),
    radial-gradient(
      ellipse at 100% 100%,
      var(--feature-mint-bg),
      transparent 65%
    ),
    var(--canvas);
  color: var(--text);
  border-right: var(--space-1) solid var(--line);
}
.auth-electric .auth-story h1 span {
  background-image: var(--landing-text-gradient);
}
.auth-electric .auth-story p,
.auth-electric footer,
.auth-chart small,
.auth-bars span,
.auth-pill {
  color: var(--muted);
}
.auth-eyebrow,
.auth-metrics strong span,
.auth-bars > div:last-child span {
  color: var(--blue);
}
.auth-eyebrow,
.auth-pill {
  background: var(--surface);
  border: var(--space-1) solid var(--line);
}
.auth-chart,
.auth-workflow {
  background: var(--surface);
  border: var(--space-1) solid var(--line);
  box-shadow: var(--shadow-3);
  border-radius: var(--space-20);
}
.auth-bars i {
  background: var(--feature-blue-line);
}
.auth-bars > div:nth-child(n + 4) i {
  background: linear-gradient(to top, var(--blue), var(--accent));
}
.auth-metrics {
  background: var(--feature-mint-bg);
}
.auth-metrics small {
  text-transform: none;
  letter-spacing: normal;
}
.auth-electric .auth-form {
  background: var(--surface);
}
.auth-electric input {
  background: var(--canvas);
  border-color: var(--line);
  border-radius: var(--radius-12);
}
.auth-story :focus-visible,
.sidebar :focus-visible {
  outline-color: var(--focus);
}

/* A focused account card beneath the same clean branding as the homepage. */
.auth-electric {
  display: block;
  min-height: 100dvh;
  padding-bottom: var(--space-40);
  background:
    radial-gradient(
      ellipse at 20% 20%,
      var(--feature-blue-bg),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 90% 80%,
      var(--feature-mint-bg),
      transparent 55%
    ),
    var(--canvas);
}
.auth-electric .auth-story {
  display: block;
  padding: var(--space-8) var(--space-32);
  background: var(--surface);
  border: 0;
  border-bottom: var(--space-1) solid var(--line);
}
.auth-electric .auth-story-content,
.auth-electric .auth-story > footer {
  display: none;
}
.auth-electric .auth-brand-row {
  max-width: var(--landing-size-1160);
  margin: auto;
}
.auth-electric .auth-brand-row .brand {
  padding: 0;
}
.auth-electric .brand img {
  padding: 0;
  width: var(--size-180);
}
.auth-electric .auth-pill {
  display: block;
  border: 0;
  background: none;
}
.auth-electric .auth-form {
  width: min(calc(100% - var(--space-32)), var(--size-460));
  margin: var(--space-48) auto 0;
  padding: var(--space-32);
  gap: var(--space-20);
  border: var(--space-1) solid var(--line);
  border-radius: var(--space-24);
  box-shadow: var(--shadow-2);
}
.auth-electric .auth-form form {
  order: 0;
  max-width: none;
  margin: 0;
}
.auth-electric .auth-form form .brand {
  display: none;
}
.auth-electric .auth-form h2 {
  text-align: center;
  font-size: var(--text-32);
  margin-bottom: var(--space-12);
}
.auth-electric .auth-form form > p {
  text-align: center;
  margin-bottom: var(--space-28);
}
.auth-electric .form-grid {
  gap: var(--space-20);
}
.auth-electric label {
  font-size: var(--text-14);
  font-weight: 600;
}
.auth-electric input {
  min-height: var(--space-48);
  font-size: var(--text-16);
  font-weight: 400;
  background: var(--surface);
}
.auth-electric .primary {
  min-height: var(--space-48);
  padding: var(--space-12) var(--space-20);
  margin-top: var(--space-24);
}
.auth-electric .auth-switch {
  order: 1;
  align-self: stretch;
  text-align: center;
  border-top: var(--space-1) solid var(--line);
  padding-top: var(--space-20);
  font-size: var(--text-14);
}
.auth-electric .auth-form footer {
  order: 2;
  margin: 0;
  font-size: var(--text-11);
}
@media (max-width: 30rem) {
  .auth-electric .auth-story {
    padding-inline: var(--space-16);
  }
  .auth-electric .auth-pill {
    display: none;
  }
  .auth-electric .auth-form {
    margin-top: var(--space-24);
    padding: var(--space-24);
  }
}
/* Account pages share the landing palette and Inter typography. */
.account-page {
  min-height: 100dvh;
  background: #f8fbff;
  color: #19253b;
  display: flex;
  flex-direction: column;
}
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100% - 1200px) / 2));
  background: white;
  border-bottom: 1px solid #e5eaf2;
}
.account-header .brand,
.account-footer .brand {
  width: 168px;
  margin: 0;
}
.account-header .brand img,
.account-footer .brand img {
  width: 100%;
  height: auto;
}
.account-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.account-page a {
  text-decoration: none;
}
.account-header nav a {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.account-header nav .account-cta {
  background: #0755f5;
  color: white;
  padding: 11px 16px;
  border-radius: 10px;
}
.account-menu {
  display: none;
}
.account-main {
  flex: 1;
  padding: 36px 20px 28px;
  background:
    radial-gradient(ellipse at 25% 20%, #edf4ff, transparent 60%),
    radial-gradient(ellipse at 85% 80%, #ecfaf3, transparent 55%);
}
.account-card {
  max-width: 430px;
  margin: auto;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #e0e8f2;
  border-radius: 20px;
  box-shadow: 0 12px 40px #1f46740a;
}
.account-eyebrow {
  display: block;
  color: #1d64d9;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  margin-bottom: 12px;
}
.account-card h1 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
.account-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: #68768b;
  margin: 0 0 24px;
}
.account-card .form-grid {
  gap: 15px;
}
.account-card label {
  font-size: 13px;
  font-weight: 600;
}
.account-card input {
  min-height: 46px;
  background: #fbfcff;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 400;
}
.account-card .primary {
  width: 100%;
  margin-top: 16px;
  min-height: 46px;
  border-radius: 10px;
}
.account-card .form-hint {
  font-size: 11px;
  font-weight: 400;
}
.account-card #otp-fields:not([hidden]) {
  display: grid;
  gap: 15px;
}
.account-card #auth-status {
  font-size: 12px;
  color: #176548;
}
.account-options {
  text-align: center;
  margin: 12px 0;
}
.account-switch {
  border-top: 1px solid #edf0f6;
  padding-top: 17px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.account-switch a {
  font-weight: 600;
  color: #0755f5;
}
.account-legacy {
  display: block;
  margin: 14px auto 0;
  font-size: 11px !important;
  color: #68768b !important;
}
.account-caption {
  text-align: center;
  font-size: 11px;
  color: #718096;
  margin: 20px 0 0;
}
.account-caption span {
  margin: 0 8px;
  color: #77bca0;
}
.account-footer {
  padding: 28px max(24px, calc((100% - 1200px) / 2)) 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  border-top: 1px solid #e5eaf2;
  background: #fff;
}
.account-footer > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.account-footer p,
.account-footer a,
.account-footer small {
  font-size: 12px;
  color: #68768b;
}
.account-footer strong {
  font-size: 12px;
  margin-bottom: 4px;
}
.account-footer > small {
  grid-column: 1/-1;
  border-top: 1px solid #edf0f6;
  padding-top: 16px;
}
.account-card [hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .account-header {
    flex-wrap: wrap;
    padding: 8px 20px;
  }
  .account-menu {
    display: block;
  }
  .account-header nav {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 18px;
  }
  .account-header nav.open {
    display: flex;
  }
  .account-footer {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .account-footer > div:last-of-type {
    grid-column: 1/-1;
  }
}
@media (max-width: 480px) {
  .account-main {
    padding: 20px 14px;
  }
  .account-card {
    padding: 24px 22px;
  }
  .account-card h1 {
    font-size: 27px;
  }
  .account-footer {
    grid-template-columns: 1fr 1fr;
    padding: 24px 20px;
  }
  .account-footer > div:first-child {
    grid-column: 1/-1;
  }
  .account-caption {
    line-height: 1.8;
  }
  .account-header .brand {
    width: 150px;
  }
}
.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e5eaf2;
}
.payment-row:last-child {
  border-bottom: 0;
}
.payment-row small {
  display: block;
  margin-top: 6px;
  color: #64748b;
}
.payment-row button {
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .payment-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.account-card [data-action="resend-otp"] {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  padding: 8px 12px;
  min-height: 40px;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}
