:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color-scheme: light;
  --accent: #514da0;
  --on-accent: #fff;
  --soft: #e6e4ff;
  --on-soft: #201c52;
  --background: #f7f7fc;
  --foreground: #1b1b26;
  --card: #fff;
  --surface: #efeff7;
  --muted: #545466;
  --line: #c6c5d8;
  --error: #a52127;
  --error-bg: #ffdad6;
  --success: #286340;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --accent: #c0beff;
    --on-accent: #292462;
    --soft: #3f3a80;
    --on-soft: #e1deff;
    --background: #10121d;
    --foreground: #e7e7f2;
    --card: #191b29;
    --surface: #262837;
    --muted: #c9c8d8;
    --line: #454657;
    --error: #ffb4ab;
    --error-bg: #5e2529;
    --success: #9bdbb3;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--foreground); overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, .button-link {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 11px 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover:not(:disabled), .button-link:hover { filter: brightness(.95); }
button:disabled { opacity: .52; cursor: not-allowed; }
button.quiet, .button-link.quiet { color: var(--accent); background: transparent; }
button.outline, .button-link.outline { color: var(--accent); background: transparent; border-color: var(--line); }
button.danger { color: var(--error); background: transparent; border-color: var(--line); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: var(--on-accent); background: var(--accent); font-size: 1.2rem; }
.header-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.language { width: auto; min-height: 44px; padding: 8px 12px; }
.navigation { display: flex; gap: 6px; flex-wrap: wrap; padding-block: 14px 0; }
.navigation button { color: var(--muted); background: transparent; padding-inline: 18px; }
.navigation button.active { color: var(--on-soft); background: var(--soft); }
main { min-height: 68vh; padding-block: 28px 48px; }
main > .card + .grid { margin-top: 20px; }
.loading { padding-block: 56px; }
h1, h2, h3 { line-height: 1.3; font-weight: 600; }
h1 { font-size: clamp(1.75rem, 3.8vw, 2.7rem); margin: 0 0 14px; letter-spacing: -.035em; }
h2 { font-size: 1.2rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 10px; }
p { line-height: 1.55; }
.hero { max-width: 760px; padding-block: 20px 26px; }
.hero p { font-size: 1.05rem; color: var(--muted); max-width: 650px; margin-bottom: 0; }
.eyebrow { color: var(--accent); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin: 0 0 12px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--card); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
main > .card + .card, .card > .card { margin-top: 20px; }
.receipt { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.55; padding: 16px; background: var(--surface); border-radius: 12px; }
.field input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-block: 16px 24px; }
.plan { display: flex; flex-direction: column; position: relative; padding-top: 28px; }
.plan.featured { border: 2px solid var(--accent); }
.plan-tag { display: inline-flex; align-self: flex-start; color: var(--on-soft); background: var(--soft); border-radius: 14px; padding: 5px 10px; font-size: .75rem; font-weight: 600; margin-bottom: 14px; }
.price { font-size: 2.1rem; font-weight: 650; letter-spacing: -.035em; margin-block: 12px 2px; }
.price-unit { color: var(--muted); font-size: .9rem; min-height: 1.4rem; }
.plan-terms { font-size: .9rem; flex: 1; margin-block: 20px; }
.plan button { width: 100%; margin-top: 10px; }
.plan .hint { min-height: 1.4rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; gap: 14px 24px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.feature-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: var(--accent); }
.hint, .muted { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.stack { display: grid; gap: 20px; }
.narrow { max-width: 560px; margin-inline: auto; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.section-heading h1, .section-heading h2, .section-heading p { margin-bottom: 6px; }
.section-heading > div { min-width: 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions.compact { margin-top: 0; }
label { display: block; font-weight: 550; font-size: .9rem; margin: 0 0 8px; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); color: var(--foreground); min-width: 0; }
textarea { min-height: 88px; resize: vertical; }
.field { margin-block: 18px; }
.field .hint { margin-top: 7px; }
summary { cursor: pointer; min-height: 44px; padding-block: 12px; color: var(--accent); line-height: 1.5; }
.fields { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.fields .field { margin: 12px 0; }
.check { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; font-weight: 400; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.banner { background: var(--soft); color: var(--on-soft); border-radius: 16px; padding: 16px 20px; line-height: 1.55; margin-bottom: 20px; }
.banner p { margin: 0; }
.banner.error { background: var(--error-bg); color: var(--error); }
.status-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-block: 12px; }
.badge { display: inline-flex; padding: 5px 11px; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 600; }
.badge.success { background: var(--soft); color: var(--success); }
.badge.error { background: var(--error-bg); color: var(--error); }
dl { margin: 0; }
.facts { display: grid; gap: 0 20px; grid-template-columns: 1fr 1fr; }
.facts > div { border-top: 1px solid var(--line); padding-block: 14px; min-width: 0; }
dt { color: var(--muted); font-size: .8rem; margin-bottom: 5px; }
dd { margin: 0; line-height: 1.5; font-size: .95rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { border-bottom: 1px solid var(--line); padding-block: 17px; }
.list > li:last-child { border-bottom: 0; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.row > div:first-child { flex: 1; min-width: 0; }
.row h3, .row p { margin-block: 0 5px; }
.row .hint { margin: 4px 0 0; }
.empty { color: var(--muted); padding-block: 20px; line-height: 1.6; }
.admin-workspace { display: grid; grid-template-columns: minmax(230px, 330px) minmax(0, 1fr); gap: 20px; align-items: start; }
.account-choice { width: 100%; text-align: left; justify-content: flex-start; color: inherit; background: transparent; border-radius: 12px; padding: 14px 12px; }
.account-choice.active { background: var(--soft); color: var(--on-soft); }
.account-choice span { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.subnav button { color: var(--accent); background: transparent; }
.subnav button.active { background: var(--soft); color: var(--on-soft); }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.secret-code { border: 2px solid var(--accent); background: var(--card); border-radius: 16px; padding: 16px; font-size: 1.15rem; user-select: all; overflow-wrap: anywhere; }
.audit-item time { color: var(--muted); font-size: .8rem; }
.audit-item p { margin: 6px 0 0; font-size: .9rem; }
.footer { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; color: var(--muted); border-top: 1px solid var(--line); padding-block: 24px; font-size: .8rem; line-height: 1.6; }
.footer span:first-child { flex: 1 1 240px; }
.notice-host { position: fixed; z-index: 100; bottom: 22px; left: 50%; transform: translateX(-50%); width: min(640px, calc(100% - 32px)); }
.notice { display: flex; align-items: center; gap: 16px; background: var(--foreground); color: var(--background); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; box-shadow: 0 8px 28px rgb(0 0 0 / .18); line-height: 1.5; }
.notice > span { flex: 1; }
.notice.error { background: var(--error-bg); color: var(--error); }
.notice button { background: transparent; color: inherit; padding: 8px 12px; flex-shrink: 0; }
dialog { width: min(540px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: var(--card); color: var(--foreground); max-height: calc(100dvh - 32px); overflow: auto; }
dialog::backdrop { background: rgb(0 0 0 / .52); }
dialog .actions { justify-content: flex-end; }
dialog > p { white-space: pre-line; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 16px; background: var(--accent); color: var(--on-accent); border-radius: 12px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
@media (max-width: 850px) {
  .plans { grid-template-columns: 1fr; }
  .plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr); gap: 0 20px; }
  .plan-terms, .plan-tag, .plan > .hint { grid-column: 1 / -1; }
  .plan .price { margin-top: 0; }
  .plan .price-unit { text-align: right; }
  .plan .actions, .plan button { grid-column: 1 / -1; }
  .admin-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { padding-inline: 16px; }
  .header { gap: 12px; padding-block: 16px; }
  .header-controls { gap: 2px; }
  .header-controls button { padding-inline: 12px; }
  .navigation { gap: 2px; }
  .navigation button { padding-inline: 12px; }
  main { padding-top: 20px; }
  .card { padding: 20px; border-radius: 20px; }
  .hero { padding-top: 8px; }
  .grid, .feature-list, .fields { grid-template-columns: 1fr; }
  .fields { gap: 0; }
  .row { align-items: flex-start; }
  .row .actions { flex-basis: 100%; }
  .facts { grid-template-columns: 1fr; }
  .notice-host { bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .header-controls { width: 100%; justify-content: flex-end; }
  .plan { display: flex; }
  .plan .price-unit { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
