/* Wattdatum design reference; no framework or build integration selected.
 * Exact root tokens from Lupaeditais globals.css, read 2026-11-06.
 * See DESIGN.md for provenance and usage.
 */
:root {
  --canvas: oklch(1 0 0);
  --surface: oklch(0.985 0.004 255);
  --surface-blue: oklch(0.964 0.017 252);
  --brand-soft: oklch(0.925 0.05 252);
  --brand: oklch(0.5 0.18 257);
  --brand-strong: oklch(0.43 0.18 257);
  --ink: oklch(0.24 0.052 258);
  --ink-soft: oklch(0.36 0.04 258);
  --muted: oklch(0.49 0.028 258);
  --line: oklch(0.89 0.018 254);
  --line-strong: oklch(0.78 0.038 254);
  --focus: oklch(0.58 0.17 253);
  --focus-soft: oklch(0.89 0.065 250);
  --success: oklch(0.45 0.115 173);
  --success-soft: oklch(0.93 0.04 173);
  --success-ink: oklch(0.34 0.09 173);
  --warning: oklch(0.61 0.14 72);
  --warning-soft: oklch(0.95 0.055 78);
  --warning-ink: oklch(0.38 0.09 68);
  --danger: oklch(0.52 0.18 28);
  --danger-strong: oklch(0.44 0.17 28);
  --danger-soft: oklch(0.95 0.045 28);
  --danger-ink: oklch(0.4 0.13 28);
  --info-soft: oklch(0.93 0.045 245);
  --info-ink: oklch(0.37 0.11 250);
  --radius: 0.65rem;
  --shadow-popover: 0 16px 34px oklch(0.24 0.052 258 / 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Canonical theme is prepended by the auth handler from assets/design/theme.css. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.account-page {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.account-page * {
  box-sizing: border-box;
}
.account-page ::selection {
  background: var(--brand-soft);
  color: var(--ink);
}
.account-page a {
  color: var(--brand);
  text-underline-offset: 4px;
}
.account-page :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.account-page h1,
.account-page h2,
.account-page h3,
.account-page p {
  margin: 0;
  font-weight: 400;
}
.account-header,
.account-main {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
.account-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.account-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.account-header a {
  color: var(--ink-soft);
}
.account-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.account-wordmark img {
  display: block;
  width: 208px;
  max-width: 44vw;
  height: auto;
}
.account-heading {
  padding-block: 48px 40px;
}
.account-heading h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.account-heading p {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 65ch;
}
.account-heading .account-action {
  margin-top: 24px;
}
.account-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 64px;
}
.account-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.account-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink-soft);
  border-radius: var(--radius);
  text-decoration: none;
}
.account-navigation a:hover {
  background: var(--surface-blue);
  color: var(--brand);
}
.account-content {
  min-width: 0;
}
.account-section {
  padding-bottom: 32px;
  scroll-margin-top: 24px;
}
.account-section + .account-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.account-section h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.account-page .account-description {
  max-width: 65ch;
  color: var(--ink-soft);
  margin-top: 12px;
}
.account-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  white-space: nowrap;
}
.account-status--active {
  color: var(--success-ink);
}
.account-status--pending {
  color: var(--warning-ink);
}
.account-status--neutral {
  color: var(--muted);
}
.account-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.account-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out);
}
.account-action.account-action--primary {
  color: var(--canvas);
  background: var(--brand);
}
.account-action--primary:hover {
  background: var(--brand-strong);
}
.account-action--outline {
  color: var(--ink);
  background: var(--canvas);
  border-color: var(--line-strong);
}
.account-action--outline:hover {
  background: var(--surface-blue);
  border-color: var(--brand);
}
.account-action--danger {
  color: var(--canvas);
  background: var(--danger);
}
.account-action--danger:hover {
  background: var(--danger-strong);
}
.account-action:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line);
  transition: none;
}
.account-page form {
  margin: 0;
}
.account-clients {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.account-client {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.account-client-details {
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-client h3 {
  font-size: 18px;
  line-height: 1.4;
}
.account-client-details p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 16px;
}
.account-empty {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
}
.account-empty p + p {
  margin-top: 8px;
  color: var(--ink-soft);
}
.account-page .account-notice {
  padding: 16px;
  background: var(--warning-soft);
  color: var(--warning-ink);
  border-radius: var(--radius);
  max-width: 75ch;
  margin-bottom: 24px;
}
.account-reauth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  background: var(--surface-blue);
  border-radius: var(--radius);
}
.account-skip {
  position: absolute;
  top: -80px;
  left: 24px;
  z-index: 2;
  padding: 12px 16px;
  background: var(--canvas);
}
.account-skip:focus {
  top: 12px;
}
@media (max-width: 900px) {
  .account-header,
  .account-main {
    width: calc(100% - 48px);
  }
  .account-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .account-navigation {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .account-client {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .account-client-details {
    grid-column: 1/-1;
  }
  .account-client form {
    justify-self: end;
  }
}
@media (max-width: 480px) {
  .account-header {
    min-height: 80px;
    gap: 16px;
  }
  .account-header nav {
    gap: 12px;
  }
  .account-header nav > a {
    display: none;
  }
  .account-heading {
    padding-block: 32px;
  }
  .account-heading h1 {
    font-size: 28px;
  }
  .account-reauth {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-status {
    white-space: normal;
  }
  .account-client {
    gap: 16px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .account-action {
    transition: none;
  }
}

.pricing-page .account-header nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.pricing-page .account-header {
  flex-wrap: wrap;
  padding-block: 16px;
}
.pricing-page .account-heading h1 {
  text-wrap: balance;
}
.pricing-page h2 {
  font-size: 24px;
  line-height: 1.3;
}
.pricing-offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-block: 8px 40px;
  border-bottom: 1px solid var(--line);
}
.pricing-offer p,
.pricing-section p {
  max-width: 70ch;
  margin-top: 12px;
}
.pricing-page .pricing-price {
  font-size: 40px;
  line-height: 1.2;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.pricing-start .account-action {
  margin-top: 24px;
}
.pricing-section {
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}
.pricing-rules {
  margin-block: 24px;
  display: grid;
  gap: 24px;
}
.pricing-rules > div {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}
.pricing-rules dd,
.pricing-balance dd {
  margin: 0;
}
.pricing-rules dd {
  color: var(--ink-soft);
  max-width: 70ch;
}
.pricing-actions,
.pricing-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.pricing-actions > a,
.pricing-footer > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.pricing-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-block: 24px;
}
.pricing-balance dd {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.pricing-page .pricing-help {
  color: var(--ink-soft);
}
.pricing-footer {
  padding-bottom: 40px;
}
.pricing-page [hidden] {
  display: none;
}
@media (max-width: 600px) {
  .pricing-offer,
  .pricing-rules > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pricing-offer {
    gap: 32px;
  }
  .pricing-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .pricing-page .account-action {
    white-space: normal;
    text-align: center;
  }
}
