.console, .admin { padding-block: clamp(24px, 5vw, 66px) 68px; }
.install-guide { max-width: 820px; }
.install-guide .console-title { margin-bottom: 30px; padding: clamp(18px, 4vw, 40px); border-radius: var(--radius-large); background: var(--wine); }
.install-guide .console-title h1 { font-size: clamp(2.4rem, 7vw, 4.9rem); }
.install-guide .console-title p { max-width: 55ch; }
.guide-checklist { list-style: none; padding: 0; margin: 0; counter-reset: guide-step; }
.guide-checklist > li { counter-increment: guide-step; }
.guide-checklist h2::before { content: counter(guide-step, decimal-leading-zero) ' '; color: var(--soft); font-variant-numeric: tabular-nums; }
.guide-checklist li li { margin-block: 9px; color: var(--muted); }
.guide-checklist strong { color: var(--ink); }
.install-guide code { overflow-wrap: anywhere; color: var(--ink); }
.guide-checklist figure { margin-top: 16px; }
.guide-checklist img { display: block; width: min(100%, 560px); height: auto; border: 1px solid var(--line); border-radius: var(--radius-control); }
.guide-checklist figcaption, .guide-credit { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.install-guide :is(p, li) a:not(.button) { text-decoration: underline; text-underline-offset: .2em; }
.install-guide summary { min-height: 28px; }
.install-guide details:first-of-type { margin-top: 12px; }
.console-stage { display: grid; gap: 12px; }
.console-stage:has(.access-form:not([hidden])) {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  overflow: clip;
  background: var(--panel);
}
.console-title { position: relative; isolation: isolate; overflow: hidden; min-width: 0; }
.console-title h1 {
  margin: 0;
  font-weight: 850;
  font-size: clamp(2.8rem, 7vw, 5.75rem);
  line-height: .97;
  letter-spacing: -.06em;
}
.console-title p { color: var(--muted); margin-top: 14px; overflow-wrap: anywhere; }
.console-stage:has(.access-form:not([hidden])) .console-title {
  min-height: clamp(350px, 41vw, 490px);
  padding: clamp(24px, 4.5vw, 64px);
  background: var(--wine);
}
.console-stage:has(.access-form:not([hidden])) h1 { max-width: 7ch; }
.conversation-mark { display: none; }
.console-stage:has(.access-form:not([hidden])) .conversation-mark {
  inset: auto -3% -5% auto;
  width: 78%;
  max-width: 480px;
  display: block;
  z-index: -1;
}
.access-form {
  align-self: center;
  width: 100%;
  max-width: 525px;
  margin-inline: auto;
  padding: clamp(24px, 4.8vw, 70px);
}
.admin .access-form#sign-in { max-width: 525px; }
.access-form h2 { font-size: clamp(1.65rem, 3.5vw, 2.75rem); letter-spacing: -.045em; font-weight: 780; }
.access-form > p, .access-form label { margin: 14px 0 22px; color: var(--muted); }
.access-form .checkout-terms { margin: 18px 0 0; border: 0; padding: 0; }
.access-form #login-unavailable { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent-hover); background: var(--wine); color: var(--ink); }
.access-form .button, .access-form input { width: 100%; min-height: 52px; }
.access-form label { gap: 8px; }
.stage-feedback { grid-column: 1 / -1; margin: 0; }
.stage-feedback:empty { display: none; }
.console-stage:has(.access-form:not([hidden])) .stage-feedback { padding: 12px 24px; border-top: 1px solid var(--line); }

.console-box { min-width: 0; margin-top: 24px; padding: clamp(16px, 3.5vw, 34px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.console-box h2 { font-size: clamp(1.45rem, 3.4vw, 2.25rem); letter-spacing: -.055em; font-weight: 780; }
.console-box p { color: var(--muted); margin-block: 8px 14px; }
.console-box p:empty { display: none; }
.access-box, .account-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.access-box { background: var(--wine); }
.console-box .actions { margin-top: 14px; }
.key-field { display: flex; gap: 7px; }
.key-field input { min-width: 0; width: 100%; }
.key-field button { flex-shrink: 0; }
.account-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.account-plans article { background: var(--panel); display: grid; justify-items: start; gap: 12px; padding: clamp(12px, 2vw, 22px); }
.account-plans .selected { background: var(--wine); }
.account-plans strong { line-height: 1; font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-variant-numeric: tabular-nums; }
.console-section-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.payment-history { margin: 0; padding: 0; list-style: none; }
.payment-history li { display: grid; gap: 8px; grid-template-columns: 1.1fr .65fr 1fr 1fr; padding: 10px 0; border-top: 1px solid var(--line); }
.payment-history time { color: var(--muted); }
.workspace-nav {
  display: flex;
  flex-wrap: wrap;
  margin: 26px 0 0;
  gap: 8px;
  font-size: .94rem;
}
.workspace-nav a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 100px; }
.workspace-nav a:hover { background: var(--wine); border-color: var(--accent-hover); }
.admin #workspace h2 { scroll-margin-block-start: 24px; }
.admin-settings { max-width: none; margin-bottom: 0; }
.admin-settings form { max-width: 720px; margin-top: 18px; }
.admin-tools { margin-top: 18px; }
.trial-console form { align-items: end; }
.trial-console form label { margin: 0; width: min(320px, 100%); }
.trial-result { align-items: center; overflow-wrap: anywhere; }
.trial-result strong { margin-inline-end: 8px; }
.admin input[type='search'] { width: min(320px, 100%); }
.admin .table-wrap { overscroll-behavior-inline: contain; }
.admin table { font-size: .9rem; }
.admin th { background: var(--bg); color: var(--muted); font-weight: 650; }
.admin th, .admin td { padding: 12px; vertical-align: middle; }
.admin tbody tr:hover { background: var(--wine); }
.admin td .button { min-height: 38px; padding-inline: 12px; }
.usage-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
  font-variant-numeric: tabular-nums;
}
.usage-totals:not(:empty) { margin-block: 18px; border: 1px solid var(--line); }
.usage-stat { display: grid; align-content: center; gap: 8px; padding: clamp(12px, 2vw, 24px); background: var(--bg); color: var(--muted); font-size: .88rem; }
.usage-stat:first-child { background: var(--wine); }
.usage-stat strong { color: var(--ink); font-size: clamp(1.15rem, 2.6vw, 2.25rem); font-weight: 750; line-height: 1.05; letter-spacing: -.045em; overflow-wrap: anywhere; }
.usage-note { grid-column: 1 / -1; background: var(--bg); color: var(--muted); padding: 8px 12px; }
.usage-console input[type='number'] { width: 7em; }
.usage-console .budget-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.usage-console th, .usage-console td { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .console-page .top { min-height: 64px; }
  .console-stage:has(.access-form:not([hidden])) { grid-template-columns: minmax(0, 1fr); border-radius: var(--radius-panel); }
  .console-stage:has(.access-form:not([hidden])) .console-title { min-height: 218px; }
  .console-stage:has(.access-form:not([hidden])) .conversation-mark { width: min(68%, 330px); inset-block-end: -34%; }
  .access-form { max-width: none; }
  .console-box { border-radius: 18px; }
  .usage-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-box { grid-template-columns: 1fr; }
  .account-plans { grid-template-columns: 1fr; }
  .account-plans article { grid-template-columns: 1fr auto; align-items: center; }
  .account-plans button { grid-column: 1 / -1; }
  .payment-history li { grid-template-columns: 1fr 1fr; gap: 2px 6px; }
}
@media (max-width: 460px) {
  .admin-tools form, #usage-search { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .admin input[type='search'] { width: 100%; }
  .key-field { flex-wrap: wrap; }
}
