:root {
  --canvas: #f5f7fa;
  --paper: #ffffff;
  --paper-strong: #ffffff;
  --ink: #0f1f33;
  --ink-soft: #405064;
  --muted: #718096;
  --line: #dfe5ec;
  --line-strong: #c5d0dc;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-wash: #edf4ff;
  --forest: #0c1b2a;
  --forest-soft: #14283d;
  --success: #0f766e;
  --success-wash: #e8f7f4;
  --warning: #9a6700;
  --warning-wash: #fff7df;
  --danger: #a84136;
  --danger-wash: #fae9e5;
  --shadow: 0 18px 48px rgba(15, 31, 51, 0.09);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --font-sans: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

.public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 78% 16%, rgba(37, 99, 235, 0.09), transparent 25rem),
    linear-gradient(180deg, #ffffff 0, var(--canvas) 42rem);
}

.public-header,
.public-footer {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-header {
  height: 76px;
  border-bottom: 1px solid rgba(197, 208, 220, 0.75);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  margin-left: auto;
  margin-right: 34px;
}

.public-nav a,
.public-footer nav a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 590;
  transition: color 150ms ease;
}

.public-nav a:hover,
.public-footer nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: #0f2742;
  border-radius: 11px;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.brand-inverse {
  color: #f7f4ea;
}

.brand-inverse .brand-mark {
  color: var(--forest);
  background: #f4efe3;
}

.quiet-link {
  color: var(--ink-soft);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  padding: 5px 0;
}

.quiet-link:hover {
  border-bottom-color: var(--ink);
}

.landing {
  width: min(1240px, calc(100% - 64px));
  margin: auto;
  padding: 54px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.68fr);
  gap: clamp(58px, 7vw, 104px);
  align-items: start;
}

#capabilities,
#architecture,
#security,
#billing-model,
#access {
  scroll-margin-top: 24px;
}

.trust-band {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.trust-band div {
  min-width: 0;
  padding: 24px 24px 24px 0;
}

.trust-band div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.trust-band span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.enterprise-section {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 112px 0;
}

.enterprise-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(360px, 1fr);
  gap: 36px 80px;
  align-items: end;
  margin-bottom: 56px;
}

.enterprise-heading .section-note {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.enterprise-heading h2,
.security-intro h2,
.billing-section h2,
.architecture-copy h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.enterprise-heading > p:last-child,
.security-intro > p:last-child,
.architecture-copy > p {
  max-width: 500px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.capability-rail {
  border-top: 1px solid var(--line-strong);
}

.capability-rail article {
  min-height: 132px;
  display: grid;
  grid-template-columns: 84px minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.capability-rail article > span {
  align-self: start;
  padding-top: 31px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.capability-rail article > div {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(300px, 1.3fr);
  gap: 34px;
  align-items: center;
}

.capability-rail h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.capability-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.architecture-section {
  padding: 100px max(32px, calc((100vw - 1240px) / 2)) 94px;
  display: grid;
  grid-template-columns: minmax(270px, 0.75fr) minmax(0, 1.25fr);
  gap: 56px 72px;
  color: #f4f1e8;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--forest);
  background-size: 48px 48px;
}

.architecture-section .section-note {
  color: #8e978d;
}

.architecture-copy {
  align-self: center;
}

.architecture-copy h2 {
  max-width: 470px;
}

.architecture-copy > p {
  margin-top: 25px;
  color: #b5bcb3;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding-bottom: 4px;
  color: #f7f4ea;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 650;
}

.architecture-flow {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
}

.flow-node {
  min-height: 152px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.flow-node.is-primary {
  color: var(--forest);
  background: #f1ede2;
  border-color: #f1ede2;
}

.flow-node span {
  margin-bottom: auto;
  color: #899189;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.flow-node.is-primary span {
  color: #788078;
}

.flow-node strong {
  font-size: 17px;
  letter-spacing: -0.025em;
}

.flow-node small {
  margin-top: 5px;
  color: #8e978d;
  font-size: 10px;
  line-height: 1.5;
}

.flow-node.is-primary small {
  color: #5f675f;
}

.flow-connector {
  position: relative;
  width: clamp(24px, 4vw, 58px);
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.flow-connector::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
}

.flow-connector span {
  position: absolute;
  top: -18px;
  left: 50%;
  color: #778077;
  font-family: var(--font-mono);
  font-size: 7px;
  transform: translateX(-50%);
}

.architecture-code {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #171c17;
  overflow: hidden;
}

.architecture-code > div {
  padding: 12px 17px;
  display: flex;
  justify-content: space-between;
  color: #8e978d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.architecture-code pre {
  padding: 22px;
  color: #dae1d8;
}

.security-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 80px;
}

.security-intro > p:last-child {
  margin-top: 24px;
}

.security-list {
  border-top: 1px solid var(--line-strong);
}

.security-list article {
  min-height: 92px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.security-list span {
  font-size: 14px;
  font-weight: 720;
}

.security-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.billing-section {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto 100px;
  padding: 50px 52px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr) auto;
  gap: 50px;
  align-items: center;
  color: #f4f1e8;
  background: var(--forest);
  border-radius: var(--radius-lg);
}

.billing-section .section-note {
  color: #929b91;
}

.billing-section h2 {
  max-width: 430px;
  font-size: clamp(30px, 3vw, 45px);
}

.billing-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.billing-points p {
  margin: 0;
  padding: 8px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.billing-points strong,
.billing-points span {
  display: block;
}

.billing-points strong {
  font-size: 12px;
}

.billing-points span {
  margin-top: 8px;
  color: #9ca59b;
  font-size: 10px;
  line-height: 1.55;
}

.landing-copy {
  max-width: 690px;
}

.section-note,
.form-kicker {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 5.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 720;
}

.landing-lead {
  max-width: 570px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.72;
}

.hero-actions {
  margin-top: 29px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-list {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.flow-list li {
  min-height: 104px;
  padding: 19px 17px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid var(--line);
}

.flow-list li:first-child {
  padding-left: 0;
}

.flow-list li:last-child {
  padding-right: 0;
  border-right: 0;
}

.flow-list span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.flow-list strong {
  margin-top: 10px;
  font-size: 14px;
}

.flow-list small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.trust-line {
  margin-top: 21px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  color: var(--muted);
  font-size: 13px;
}

.trust-line span::before {
  content: "";
  width: 5px;
  height: 5px;
  display: inline-block;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--success);
}

.auth-panel {
  min-height: 560px;
  padding: 24px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(201, 197, 185, 0.75);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-context {
  padding: 0 4px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.auth-context span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
}

.auth-context i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  margin-bottom: 30px;
  background: #f1f4f8;
  border-radius: 13px;
}

.auth-panel.is-reset .auth-tabs {
  display: none;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.auth-tab.is-active {
  color: var(--ink);
  background: var(--paper-strong);
  box-shadow: 0 3px 12px rgba(15, 31, 51, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f9fb;
}

.login-method {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.login-method.is-active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 31, 51, 0.08);
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form h2,
.modal h2,
.section-heading h2,
.block-heading h2,
.quick-panel h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.auth-form label,
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--paper-strong);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input {
  height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 93, 54, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #a3a69f;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-dark {
  color: #f9f7ef;
  background: var(--forest);
}

.button-dark:hover {
  background: var(--forest-soft);
}

.button-quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.button-danger {
  color: var(--danger);
  background: var(--danger-wash);
  border-color: #efcbc4;
}

.button-small {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 12px;
}

.button-wide {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

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

.sms-button {
  min-width: 104px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #efede5;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sms-button:hover:not(:disabled) {
  border-color: var(--accent);
}

.sms-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.form-footnote {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-aux {
  margin-top: -8px;
  display: flex;
  justify-content: flex-end;
}

.forgot-link,
.back-link {
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 620;
  cursor: pointer;
}

.forgot-link:hover,
.back-link:hover {
  color: var(--accent);
}

.back-link {
  align-self: center;
  color: var(--muted);
}

.public-footer {
  min-height: 118px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.public-footer > div {
  display: flex;
  align-items: center;
  gap: 24px;
}

.public-footer .brand {
  flex: none;
  color: var(--ink);
  font-size: 17px;
}

.public-footer p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.public-footer nav {
  display: flex;
  gap: 24px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: var(--canvas);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 27px 20px 20px;
  display: flex;
  flex-direction: column;
  background: var(--forest);
  color: #f4f0e6;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 54px;
}

.nav-item {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  color: #afb5ad;
  background: transparent;
  font-size: 14px;
  font-weight: 590;
  text-align: left;
  cursor: pointer;
}

.nav-item svg {
  width: 17px;
  height: 17px;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-foot {
  margin-top: auto;
  padding: 15px 12px 2px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a9afa7;
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #76c493;
  box-shadow: 0 0 0 4px rgba(118, 196, 147, 0.09);
}

.workspace {
  min-width: 0;
  padding: 0 clamp(28px, 4.5vw, 68px) 64px;
}

.app-header {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.app-header .section-note {
  margin-bottom: 7px;
}

.app-header h1 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.identity-banner {
  margin-top: 20px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #edc66e;
  border-radius: var(--radius-md);
  background: #fff5dc;
}

.identity-banner strong {
  font-size: 14px;
}

.identity-banner p {
  margin: 4px 0 0;
  color: #755d2b;
  font-size: 12px;
}

.identity-banner.is-pending {
  border-color: var(--line-strong);
  background: #eeece5;
}

.identity-banner.is-verified {
  border-color: #bcd9c7;
  background: var(--success-wash);
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-copy {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.account-copy strong {
  font-size: 13px;
}

.account-copy span {
  color: var(--muted);
  font-size: 12px;
}

.icon-button,
.modal-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.modal-close:hover {
  background: #eceae3;
}

.view-panel {
  padding-top: 38px;
  animation: panel-in 230ms ease both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.metric-band article {
  min-width: 0;
  padding: 27px 24px 25px 0;
}

.metric-band article + article {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}

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

.metric-band strong {
  display: block;
  margin: 9px 0 5px;
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.65fr);
  gap: 22px;
  margin: 26px 0;
}

.content-block,
.quick-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.content-block {
  min-width: 0;
  padding: 26px;
}

.block-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.block-heading .section-note {
  margin-bottom: 7px;
}

.block-heading h2,
.quick-panel h2 {
  font-size: 20px;
}

.quiet-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.bar-chart {
  height: 205px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(8px, 2vw, 22px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.bar-column {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.bar-value {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.bar {
  width: min(34px, 72%);
  min-height: 3px;
  border-radius: 5px 5px 0 0;
  background: var(--accent);
  transition: height 500ms cubic-bezier(.2,.8,.2,1);
}

.bar-label {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.quick-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #e8e4d8;
  border-color: #d7d1c2;
}

.quick-panel p:not(.section-note) {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.quick-panel .button {
  width: 100%;
  margin-top: auto;
}

.text-button {
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.quick-panel .text-button {
  margin-top: 13px;
  color: var(--ink);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 21px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  padding: 11px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 15px 14px;
  border-bottom: 1px solid #ebe8df;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(244, 242, 236, 0.55);
}

.mono,
code {
  font-family: var(--font-mono);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-wash);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.is-pending {
  color: var(--warning);
  background: var(--warning-wash);
}

.status-pill.is-revoked,
.status-pill.is-rejected {
  color: var(--danger);
  background: var(--danger-wash);
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 34px;
}

.section-heading p:not(.section-note) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-size: 15px;
}

.balance-strip {
  padding: 30px 32px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 5px 30px;
  align-items: end;
  color: #f5f1e7;
  background: var(--forest);
  border-radius: var(--radius-md);
}

.balance-strip span,
.balance-strip small {
  color: #aeb4ac;
  font-size: 12px;
}

.balance-strip strong {
  grid-row: span 2;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

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

.setup-grid .content-block:first-child {
  grid-column: span 1;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-heading span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.step-heading h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.setup-grid p,
.endpoint-block p {
  color: var(--muted);
  font-size: 14px;
}

.code-block {
  position: relative;
  margin-top: 20px;
  border-radius: 10px;
  background: #20251f;
  overflow: hidden;
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #e9eee6;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  tab-size: 2;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 5px 9px;
  color: #dce2da;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  cursor: pointer;
}

.copy-button.is-static {
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.endpoint-block {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.endpoint-block h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 22px;
}

.endpoint-block p {
  margin: 0;
}

#app-view {
  grid-template-columns: 238px minmax(0, 1fr);
  background: #f6f8fb;
}

#app-view .sidebar {
  background: #ffffff;
  color: var(--ink);
  border-right: 1px solid var(--line);
}

#app-view .brand {
  color: var(--ink);
}

#app-view .brand-mark {
  color: #ffffff;
  background: var(--ink);
}

#app-view .side-nav {
  margin-top: 42px;
}

#app-view .side-utility {
  margin-top: auto;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

#app-view .nav-item {
  color: #5c6878;
}

#app-view .nav-item:hover {
  color: var(--ink);
  background: #f4f6f9;
}

#app-view .nav-item.is-active {
  color: #1849d6;
  background: #edf3ff;
  font-weight: 680;
}

#app-view .sidebar-foot {
  border-top-color: var(--line);
  color: var(--muted);
}

.usage-notice {
  margin-bottom: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #174ea6;
  background: #eaf2ff;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
}

.usage-notice strong {
  font-size: 13px;
}

.usage-notice p {
  margin: 3px 0 0;
  color: #4c6f9e;
  font-size: 12px;
}

.usage-notice button {
  flex: none;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: #2f6fed;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

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

.wallet-card {
  min-height: 142px;
  padding: 22px 23px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e7ebf1;
  border-radius: 15px;
  background: #f1f4f8;
}

.wallet-card > span {
  color: #526173;
  font-size: 12px;
}

.wallet-card strong {
  margin-top: 16px;
  font-size: 33px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.wallet-card small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.wallet-card.is-balance {
  background: #eaf2ff;
  border-color: #d5e3fb;
}

.wallet-action {
  align-self: flex-end;
  min-height: 29px;
  margin-top: auto;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #111827;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.usage-controls {
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.usage-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.usage-controls select {
  height: 35px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  outline: none;
}

.usage-controls .button {
  margin-left: auto;
}

.usage-summary-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.usage-summary-grid article {
  min-height: 128px;
  padding: 21px 23px;
  border: 1px solid #e7ebf1;
  border-radius: 14px;
  background: #f1f4f8;
}

.usage-summary-grid span,
.usage-summary-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.usage-summary-grid strong {
  display: block;
  margin: 16px 0 5px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.usage-chart-panel {
  margin-top: 18px;
}

.usage-chart-panel .bar-chart {
  height: 280px;
  margin-top: 24px;
  background:
    linear-gradient(to bottom, #edf0f4 1px, transparent 1px);
  background-size: 100% 25%;
  border-bottom-color: #dfe4ea;
}

.usage-chart-panel .bar {
  background: #ee7d36;
  border-radius: 4px 4px 0 0;
}

.usage-chart-panel .bar-chart.is-dense .bar-value {
  display: none;
}

.usage-chart-panel .bar-chart.is-dense .bar-label {
  font-size: 8px;
}

.usage-chart-total {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

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

.help-grid h3,
.support-callout h2 {
  margin: 18px 0 8px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.help-grid p,
.support-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.help-number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.support-callout {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.pricing-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.pricing-card h3 {
  margin: 0;
  font-size: 22px;
}

.pricing-card > p {
  margin: 7px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.pricing-row {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.pricing-row strong {
  font-family: var(--font-mono);
  font-weight: 600;
}

.modal {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(17, 20, 17, 0.55);
  backdrop-filter: blur(5px);
}

.modal-shell {
  position: relative;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
  border-radius: inherit;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
}

.modal p:not(.section-note) {
  margin: -7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.secret-box {
  position: relative;
  min-height: 64px;
  padding: 16px 76px 16px 16px;
  display: flex;
  align-items: center;
  background: #efede5;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow-wrap: anywhere;
}

.secret-box code {
  font-size: 12px;
}

.privacy-note {
  margin: -4px 0 0 !important;
  color: var(--muted);
  font-size: 11px !important;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  max-width: min(460px, calc(100% - 32px));
  padding: 12px 17px;
  border-radius: 9px;
  color: #f8faf6;
  background: var(--forest);
  box-shadow: 0 12px 36px rgba(20, 24, 19, 0.23);
  font-size: 13px;
  transform: translateX(-50%);
}

.toast.is-error {
  background: var(--danger);
}

.admin-shell {
  min-height: 100vh;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(24, 26, 23, 0.82), rgba(24, 26, 23, 0.82)),
    repeating-linear-gradient(45deg, #30372f 0 1px, transparent 1px 12px);
}

.admin-login-card {
  width: min(420px, 100%);
  padding: 34px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 18px 0 8px;
  font-size: 31px;
  letter-spacing: -0.045em;
}

.admin-login-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.admin-content {
  padding: 0 clamp(24px, 4vw, 54px) 60px;
}

.admin-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-table-block {
  margin-top: 26px;
}

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

.admin-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 22px;
  margin-top: 26px;
}

.admin-side-note {
  padding: 28px;
  color: #f3f0e7;
  background: var(--forest);
  border-radius: var(--radius-md);
}

.admin-side-note p {
  color: #b4bbb2;
  font-size: 13px;
}

.admin-side-note strong {
  display: block;
  margin-top: 20px;
  font-size: 34px;
  letter-spacing: -0.045em;
}

.identity-review {
  margin: 2px 0 0;
  border-block: 1px solid var(--line);
}

.identity-review div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid #ebe8df;
}

.identity-review div:last-child {
  border-bottom: 0;
}

.identity-review dt {
  color: var(--muted);
  font-size: 12px;
}

.identity-review dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.mobile-admin-nav {
  display: none;
}

@media (max-width: 1050px) {
  .public-nav {
    display: none;
  }

  .landing {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 42px;
  }

  .landing h1 {
    font-size: clamp(48px, 6vw, 70px);
  }

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

  .metric-band article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric-band article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .quick-panel {
    min-height: 260px;
  }

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

  .enterprise-heading,
  .security-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .enterprise-heading .section-note {
    grid-column: auto;
    margin-bottom: -14px;
  }

  .architecture-section {
    grid-template-columns: 1fr;
  }

  .architecture-flow {
    margin-top: 8px;
  }

  .billing-section {
    grid-template-columns: 1fr auto;
  }

  .billing-points {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .public-header,
  .public-footer,
  .landing {
    width: min(100% - 36px, 650px);
  }

  .public-header {
    height: 76px;
  }

  .header-actions .button {
    min-height: 38px;
    padding-inline: 13px;
  }

  .landing {
    padding-top: 34px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .landing h1 {
    font-size: clamp(46px, 13vw, 69px);
  }

  .flow-list li {
    grid-template-columns: 42px 125px minmax(0, 1fr);
  }

  .auth-panel {
    min-height: auto;
  }

  .public-footer {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .public-footer > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .public-footer nav {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .trust-band {
    width: min(100% - 36px, 650px);
    grid-template-columns: 1fr 1fr;
  }

  .trust-band div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-band div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .enterprise-section,
  .billing-section {
    width: min(100% - 36px, 650px);
  }

  .enterprise-section {
    padding: 76px 0;
  }

  .architecture-section {
    padding: 76px 18px;
    gap: 44px;
  }

  .architecture-flow {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .flow-node {
    min-height: 120px;
  }

  .flow-connector {
    width: 1px;
    height: 26px;
    margin-left: 28px;
  }

  .flow-connector::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .flow-connector span {
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
  }

  .capability-rail article {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .capability-rail article > span {
    grid-row: 1;
    padding-top: 6px;
  }

  .capability-rail article > div {
    grid-column: 2;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .security-list article {
    grid-template-columns: 110px 1fr;
  }

  .billing-section {
    margin-bottom: 64px;
    padding: 34px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .billing-points {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .billing-points p {
    padding: 0 0 0 16px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 15px 18px 12px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
  }

  .sidebar .brand span:last-child,
  .sidebar-foot {
    display: none;
  }

  #app-view .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    margin: 0;
    flex-direction: row;
    gap: 3px;
  }

  #app-view .side-nav {
    margin: 0;
  }

  #app-view .side-utility {
    padding-top: 0;
    border-top: 0;
  }

  .nav-item {
    min-height: 39px;
    padding: 0 11px;
    white-space: nowrap;
  }

  .nav-item svg {
    display: none;
  }

  .workspace {
    padding: 0 18px 42px;
  }

  .app-header {
    min-height: 92px;
  }

  .account-copy {
    display: none;
  }

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

  .identity-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-card-grid,
  .usage-summary-grid,
  .help-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .usage-controls {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .usage-controls label {
    flex: 1 1 150px;
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-controls select {
    width: 100%;
  }

  .usage-controls .button {
    margin-left: 0;
  }

  .support-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-chart-panel .bar-chart {
    height: 230px;
  }

  .section-heading .button {
    width: 100%;
  }

  .balance-strip {
    grid-template-columns: 1fr;
  }

  .balance-strip strong {
    grid-row: auto;
    margin: 8px 0;
  }

  .endpoint-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-layout {
    display: block;
  }

  .admin-layout > .sidebar {
    border-radius: 0;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .landing h1 {
    font-size: clamp(40px, 11.5vw, 54px);
    overflow-wrap: anywhere;
  }

  .landing-lead {
    margin-top: 25px;
    font-size: 16px;
  }

  .flow-list {
    margin-top: 38px;
  }

  .flow-list li {
    grid-template-columns: 36px 1fr;
    padding: 13px 0;
  }

  .flow-list small {
    grid-column: 2;
  }

  .trust-line {
    display: grid;
  }

  .auth-panel,
  .content-block,
  .quick-panel {
    padding: 21px;
  }

  .metric-band {
    grid-template-columns: 1fr 1fr;
  }

  .metric-band article {
    padding: 21px 14px 20px 0;
  }

  .metric-band article + article {
    padding-left: 14px;
  }

  .metric-band strong {
    font-size: 24px;
  }

  .dashboard-grid {
    gap: 14px;
  }

  .bar-chart {
    gap: 6px;
  }

  .bar-value {
    display: none;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
