:root {
  color-scheme: light;
  font-family: "Inter", "Geist", system-ui, sans-serif;
  background: #f6f7fb;
  color: #18213a;
  --primary: #5144cc;
  --line: #e1e4ee;
  --muted: #525e75;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #8679fa; outline-offset: 3px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .55rem; letter-spacing: -.05em; line-height: 1.07; }
h2 { font-size: 1.15rem; letter-spacing: -.025em; }
p { line-height: 1.55; }
.top { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 5vw, 62px); border-bottom: 1px solid var(--line); background: white; }
.brand { display: inline-flex; align-items: center; gap: .42rem; text-decoration: none; color: inherit; font-size: 1.28rem; letter-spacing: -.055em; font-weight: 800; }
.brand > span:last-child { color: var(--primary); }
.mark { color: white; background: var(--primary); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; margin-right: .3rem; font-size: 1.1rem; }
.welcome { max-width: 1180px; margin: 0 auto; padding: clamp(35px, 9vw, 105px) clamp(18px, 4vw, 54px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, 1fr); gap: clamp(25px, 6vw, 80px); align-items: start; }
.intro h1 { font-size: clamp(2.2rem, 5.2vw, 4.35rem); }
.intro > p:not(.eyebrow), .section-head p { color: var(--muted); }
.eyebrow { color: var(--primary); font-size: .77rem; font-weight: 800; letter-spacing: .12em; }
.panel { padding: clamp(15px, 2.4vw, 26px); background: white; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.access { box-shadow: 0 12px 35px #24264d0c; }
.tabs { display: flex; gap: 8px; padding: 4px; background: #f0eff9; border-radius: 10px; margin-bottom: 24px; }
.tab { flex: 1; padding: 9px; border: 0; background: transparent; border-radius: 7px; font-size: .9rem; color: var(--muted); }
.tab[aria-pressed=true] { background: white; color: var(--primary); font-weight: 700; box-shadow: 0 1px 4px #31356318; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: .88rem; font-weight: 650; }
input, select { width: 100%; min-width: 0; border: 1px solid #cbd0e0; padding: 11px 12px; border-radius: 8px; color: #18213a; background: #fff; }
.primary, .quiet { padding: 10px 15px; border-radius: 8px; font-weight: 650; font-size: .86rem; }
.primary { background: var(--primary); color: white; border: 1px solid var(--primary); }
.primary:hover { background: #4033af; }
.quiet { background: white; color: #4136ad; border: 1px solid #d4d2eb; }
.quiet:where(a) { display: inline-block; text-decoration: none; text-align: center; }
.quiet:hover { background: #f4f2ff; }
.plans, .metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan { padding: 14px; background: white; border: 1px solid var(--line); border-radius: 11px; }
.plan.current { border-color: var(--primary); }
.plan h2 { margin-bottom: 8px; }
.plan p { margin: 0; font-size: .84rem; color: var(--muted); }
.plan button { margin-top: 9px; }
.dashboard { display: grid; grid-template-columns: minmax(165px, 222px) minmax(0, 1fr); min-height: calc(100vh - 68px); }
aside { background: #fff; border-right: 1px solid var(--line); padding: 27px 16px; }
.workspace { font-weight: 750; overflow-wrap: anywhere; padding: 0 10px; }
nav { display: grid; gap: 6px; }
nav button { background: transparent; border: 0; padding: 11px 12px; text-align: left; border-radius: 8px; color: var(--muted); font-size: .9rem; }
nav button span { display: inline-block; width: 23px; font-weight: 800; }
nav button:hover, nav button[aria-current] { background: #eeebfd; color: #4136ad; }
nav button[aria-current] { font-weight: 750; }
.page { width: min(100%, 1200px); padding: clamp(18px, 4vw, 50px); }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-head.compact { margin-bottom: 12px; }
.section-head.compact h2 { margin-bottom: 0; }
.metrics { margin: 14px 0 20px; }
.metric strong { display: block; font-size: clamp(1.25rem, 3vw, 2rem); margin-top: 8px; }
.metric span, .muted { color: var(--muted); font-size: .88rem; }
.notice, .feedback { border-radius: 9px; padding: 12px 16px; background: #fff2d6; color: #654710; }
.feedback { position: fixed; right: 20px; bottom: 12px; z-index: 3; margin: 0; max-width: min(480px, calc(100% - 40px)); background: #221b52; color: white; box-shadow: 0 5px 20px #26224a33; overflow-wrap: anywhere; }
.feedback.error { background: #7b243a; }
.stack, .inline-form, .view > .panel + .panel { margin-bottom: 16px; }
.inline-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row h2 { margin: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; background: #eeebfd; color: #4136ad; padding: 4px 8px; border-radius: 6px; font-size: .76rem; font-weight: 700; }
.badge.ok { background: #e5f5eb; color: #14653d; }
.badge.warn { background: #fff3df; color: #74520e; }
.badge.fail { background: #fce8ee; color: #842541; }
details { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
summary { cursor: pointer; font-weight: 650; }
.dns { border-bottom: 1px solid var(--line); padding: 10px 0; }
.dns code, .secret code { display: block; overflow-wrap: anywhere; margin: 6px 0 10px; }
.secret { margin-bottom: 16px; background: #f0eefb; }
.table { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
td, th { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 650; white-space: nowrap; }
td { overflow-wrap: anywhere; }
td:last-child { white-space: nowrap; }
.account-plans { margin-bottom: 16px; }
.method { font-size: .74rem; color: var(--primary); margin-right: .4rem; }
.admin-row { padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.admin-row p { margin: 4px 0; }
.admin-row .row { justify-content: flex-start; margin-top: 8px; }
.plan-fields { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); margin-bottom: 6px; }
#billing-form { grid-template-columns: minmax(0, 1fr) auto auto; }
pre { color: #f2efff; background: #1e193d; padding: 18px; border-radius: 9px; overflow: auto; line-height: 1.6; }
@media (max-width: 760px) {
  .welcome, .dashboard { grid-template-columns: minmax(0, 1fr); }
  aside { padding: 12px 15px; border-right: none; border-bottom: 1px solid var(--line); }
  .workspace { margin-bottom: 6px; }
  nav { display: flex; overflow-x: auto; }
  nav button { flex: 0 0 auto; padding: 8px; }
  nav button span { width: auto; }
}
@media (max-width: 440px) {
  .plans, .metrics { grid-template-columns: 1fr; }
  .inline-form, #billing-form { grid-template-columns: 1fr; }
}

.quote-form { margin-bottom: 20px; }
.quote-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 16px; }
.quote-form fieldset { margin: 0; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.quote-form legend { font-weight: 650; }
.quote-form h2, .quote-card h2 { margin: 0; overflow-wrap: anywhere; }
.quote-form > p { margin: 0; }
.quote-form textarea, .review-page textarea {
  width: 100%; font: inherit; padding: 11px 12px; resize: vertical;
  color: inherit; background: #fff; border: 1px solid #cbd0e0; border-radius: 8px;
}
.quote-response { white-space: pre-wrap; overflow-wrap: anywhere; }
.quote-card p { margin: 8px 0; }
.quote-actions { justify-content: flex-start; margin-top: 12px; }
.review-page { width: min(100% - 32px, 680px); margin: clamp(24px, 8vw, 80px) auto; }
.review-page h1 { font-size: clamp(1.8rem, 5vw, 3rem); overflow-wrap: anywhere; }
.review-page [role=status] { font-weight: 650; }
