@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #fafafa;
  --surface: #ffffff;
  --sunken: #f5f5f7;
  --fill: #efeef2;
  --line: #e8e7ec;
  --line-soft: #f0eff3;
  --line-strong: #d7d5de;
  --line-hover: #bdb9c8;
  --dot: #b9b5c4;
  --ink: #1b1726;
  --ink-2: #453f54;
  --muted: #6b6578;

  --violet: #4b24d4;
  --violet-hover: #3c1ab4;
  --violet-tint: #f3f0fd;
  --violet-soft: #ddd4fa;
  --violet-line: #cfc4f5;
  --on-violet: #ffffff;

  --acid: #e5fc98;
  --acid-line: #c3df62;
  --acid-ink: #2f4200;
  --ok: #6aa50f;

  --warn: #a35a06;
  --warn-tint: #fdf4e4;
  --warn-line: #f0d9ae;
  --warn-dot: #d08a1c;
  --danger: #b3261e;
  --danger-tint: #fdf0ef;
  --danger-line: #f1c9c5;
  --danger-ink: #8c1d17;
  --info: #2f7fd1;

  --radius: 8px;
  --radius-lg: 12px;
  --ring: 0 0 0 3px rgb(75 36 212 / 18%);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font: Manrope, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 500 .875rem/1.55 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--violet);
}

::selection {
  background: var(--violet-soft);
  color: var(--ink);
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

h1 {
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h2 {
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.01em;
}

h3 {
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
}

a {
  color: inherit;
}

strong {
  font-weight: 650;
}

code,
pre {
  font-family: var(--mono);
  font-size: .8125rem;
  font-variant-ligatures: none;
}

p code,
dd code,
td code,
.radio-desc code {
  font-size: .8125rem;
  color: var(--ink-2);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite {
  position: absolute;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-violet);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1088px;
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
}

.brand-mark rect {
  fill: var(--violet);
}

.brand-mark path {
  fill: none;
  stroke: var(--acid);
  stroke-width: 2.6;
}

.brand-name {
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-sub {
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}

.nav-tab:hover {
  color: var(--ink);
  background: var(--sunken);
}

.nav-tab.active {
  color: var(--ink);
  background: var(--fill);
}

.nav-count {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--acid);
  transition: box-shadow .5s var(--ease), background-color .2s;
}

.live-dot.pulse-hit {
  box-shadow: 0 0 0 6px rgb(229 252 152 / 55%);
  transition-duration: .12s;
}

.live-dot.reconnecting {
  background: var(--warn-dot);
  box-shadow: 0 0 0 3px var(--warn-tint);
}

.mode-chip {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  background: var(--warn-tint);
  color: var(--warn);
  font-size: .8125rem;
  font-weight: 650;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
}

.icon-btn .icon {
  stroke-width: 2.4;
}

.icon-btn:hover,
.icon-btn[aria-expanded='true'] {
  background: var(--fill);
  color: var(--ink);
}

.menu {
  position: relative;
}

.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 232px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 28px -12px rgb(27 23 38 / 22%);
  transform-origin: top right;
  animation: menu-in .16s var(--ease);
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.menu-item:hover,
.menu-item:focus-visible {
  background: var(--sunken);
  outline: 0;
}

.menu-item .icon,
.menu-hint {
  color: var(--muted);
}

.menu-hint {
  font-size: .8125rem;
  font-weight: 500;
}

.menu-sep {
  height: 1px;
  margin: 5px;
  background: var(--line);
}

/* ---------- page shell ---------- */

main {
  flex: 1;
}

.boot {
  display: none;
  padding: 96px 24px;
  color: var(--muted);
  text-align: center;
}

main[aria-busy='true'] .boot {
  display: block;
}

main[aria-busy='true'] .panel {
  display: none;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
  animation: fade-up .32s var(--ease);
}

.page {
  max-width: 1088px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.page-narrow {
  max-width: 688px;
  padding-top: 56px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-sub {
  max-width: 62ch;
  margin-top: 4px;
  color: var(--muted);
  text-wrap: balance;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section {
  margin-top: 36px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  min-height: 32px;
  margin-bottom: 10px;
}

.section-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: .8125rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stack {
  display: grid;
  gap: 12px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1088px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
}

.footer nav {
  display: flex;
  gap: 18px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
}

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease);
}

.btn:hover {
  background: var(--sunken);
  border-color: var(--line-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  transition: transform .2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(2px);
}

.btn-primary {
  border-color: var(--violet);
  background: var(--violet);
  color: var(--on-violet);
}

.btn-primary:hover {
  border-color: var(--violet-hover);
  background: var(--violet-hover);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-2);
}

.btn-ghost:hover {
  border-color: transparent;
  background: var(--fill);
}

.btn-sm {
  min-height: 30px;
  padding: 0 10px;
  font-size: .8125rem;
}

.btn-danger {
  color: var(--danger);
}

.btn-danger.armed {
  border-color: var(--danger-line);
  background: var(--danger-tint);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

.btn.is-busy {
  opacity: .75;
  cursor: progress;
  pointer-events: none;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--violet);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--violet-line);
  text-underline-offset: 3px;
}

.link:hover {
  text-decoration-color: currentColor;
}

.link .icon {
  width: 14px;
  height: 14px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 6px;
  flex: 1 1 200px;
  min-width: 0;
}

.field-narrow {
  flex: 0 1 220px;
}

.field-label {
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
}

.field-hint,
.hint {
  color: var(--muted);
  font-size: .8125rem;
}

.field-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.field-row-end {
  align-items: flex-end;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

input[type='text'],
input[type='password'],
select,
textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input[type='text']:hover,
input[type='password']:hover,
select:hover,
textarea:hover {
  border-color: var(--line-hover);
}

input[type='text']:focus-visible,
input[type='password']:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  border-color: var(--violet);
  border-radius: var(--radius);
  box-shadow: var(--ring);
}

select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b6578' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 16px;
  text-overflow: ellipsis;
}

.select-sm {
  width: auto;
  min-height: 30px;
  padding-block: 4px;
  font-size: .8125rem;
  font-weight: 600;
}

textarea {
  min-height: 96px;
  resize: vertical;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.6;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-2);
}

input[type='checkbox'],
input[type='radio'] {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--violet);
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: var(--fill);
}

.seg-btn {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  transition: background-color .15s, color .15s, box-shadow .15s;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(27 23 38 / 14%);
}

.seg-sm .seg-btn {
  min-height: 28px;
  padding: 0 11px;
  font-size: .8125rem;
}

.chips {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.chip {
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}

.chip:hover {
  color: var(--ink);
}

.chip.active {
  background: var(--fill);
  color: var(--ink);
}

/* ---------- status ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--dot);
}

.status-ok .status-dot {
  background: var(--ok);
  box-shadow: 0 0 0 2.5px var(--acid);
}

.status-live .status-dot {
  background: var(--violet);
  box-shadow: 0 0 0 2.5px var(--violet-soft);
  animation: breathe 1.6s ease-in-out infinite;
}

.status-warn {
  color: var(--warn);
}

.status-warn .status-dot {
  background: var(--warn-dot);
}

.status-bad {
  color: var(--danger);
}

.status-bad .status-dot {
  background: var(--danger);
}

.more-body > .error {
  margin-top: 0;
}

.error {
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid var(--danger-line);
  border-radius: var(--radius);
  background: var(--danger-tint);
  color: var(--danger-ink);
  overflow-wrap: anywhere;
}

.note {
  margin-top: 14px;
  color: var(--ink-2);
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
}

/* ---------- setup ---------- */

.steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.steps li + li {
  flex: 1;
}

.steps li + li::before {
  content: '';
  flex: 1;
  height: 1px;
  min-width: 12px;
  background: var(--line-strong);
  transition: background-color .4s var(--ease);
}

.steps li.reached::before {
  background: var(--ink);
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-weight: 650;
}

.step:focus-visible {
  border-radius: 999px;
}

.step-node {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-size: .75rem;
  font-weight: 700;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.step-node .icon {
  display: none;
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.step:hover {
  color: var(--ink);
}

.step[aria-current='step'] {
  color: var(--ink);
}

.step[aria-current='step'] .step-node {
  border-color: var(--violet);
  color: var(--violet);
  box-shadow: var(--ring);
}

.step.done .step-node {
  border-color: var(--acid-line);
  background: var(--acid);
  color: var(--acid-ink);
}

.step.done .step-num {
  display: none;
}

.step.done .step-node .icon {
  display: block;
}

.step-card {
  padding: 28px;
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
  animation: fade-up .34s var(--ease);
}

.step-pane > h2 {
  font-size: 1.0625rem;
  letter-spacing: -.015em;
}

.lede {
  max-width: 58ch;
  margin-top: 6px;
  color: var(--muted);
}

.step-pane > .actions,
.step-pane > .field,
.step-pane > .seg,
.step-pane > .radio-cards,
.step-pane > .connected,
.step-pane > .connected-list {
  margin-top: 20px;
}

.step-pane > .field input {
  max-width: 340px;
}

.step-pane > .field + .actions {
  margin-top: 14px;
}

.connected,
.connected-list li {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.connected-list {
  display: grid;
  gap: 8px;
}

.connected strong,
.connected-list strong {
  font-weight: 650;
}

.connected .sub,
.connected-list .sub {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}

.cloud-pane {
  display: none;
  margin-top: 20px;
}

.cloud-pane.active {
  display: block;
}

.cloud-pane > .hint,
#gcp-auth-area > .hint {
  max-width: 58ch;
  margin-top: 10px;
}

.inset {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.inset-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kv {
  display: grid;
  gap: 6px;
}

.kv > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.kv dt {
  min-width: 88px;
  color: var(--muted);
}

.kv code {
  overflow-wrap: anywhere;
}

.progress-list {
  display: grid;
  gap: 10px;
}

.progress-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
}

.progress-list .status {
  margin-top: 7px;
  justify-self: center;
}

.progress-list .sub {
  color: var(--muted);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}

.more {
  margin-top: 14px;
}

.cloud-pane > .more:first-of-type,
.step-pane > .more:first-of-type {
  margin-top: 22px;
}

.more + .more {
  margin-top: 4px;
}

.more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 2px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary:hover {
  color: var(--ink);
}

.more summary .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform .2s var(--ease);
}

.more[open] > summary .icon {
  transform: rotate(90deg);
}

.more-value {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 500;
}

.more-body {
  display: grid;
  gap: 12px;
  padding: 10px 0 10px 22px;
}

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

.radio-card {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.radio-card:hover {
  border-color: var(--line-hover);
}

.radio-card:has(input:checked) {
  border-color: var(--violet);
  background: var(--violet-tint);
  box-shadow: 0 0 0 1px var(--violet);
}

.radio-card:has(input:focus-visible) {
  box-shadow: 0 0 0 1px var(--violet), var(--ring);
}

.radio-card input:focus-visible {
  outline: 0;
}

.radio-body {
  display: grid;
  align-content: start;
  gap: 4px;
}

.radio-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  flex-wrap: wrap;
  font-weight: 650;
}

.radio-meta {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}

.radio-desc {
  color: var(--muted);
  font-size: .8125rem;
}

.save-status {
  min-height: 1.25rem;
  margin-top: 4px;
  color: var(--muted);
  font-size: .8125rem;
}

.verify {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.verify-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.verify-head .hint {
  margin-top: 2px;
}

.timeline {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: .8125rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  animation: fade-up .3s var(--ease);
}

.timeline .status {
  margin-top: 7px;
  justify-self: center;
}

.timeline li:last-child {
  color: var(--ink);
}

.code {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sunken);
  overflow: hidden;
}

.more-body > .code,
.dialog > .code {
  margin-top: 0;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 0 6px 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}

.code pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.7;
  scrollbar-width: thin;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 650;
}

.copy:hover {
  background: var(--fill);
  color: var(--ink);
}

.copy .icon {
  width: 14px;
  height: 14px;
}

.copy.copied {
  color: var(--acid-ink);
}

.step-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px -28px -28px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--bg);
}

.step-foot .btn-primary,
.step-foot-hint {
  margin-left: auto;
}

.step-foot-hint {
  color: var(--muted);
  font-size: .8125rem;
  text-align: right;
}

.footnote {
  margin-top: 18px;
  color: var(--muted);
  font-size: .8125rem;
}

.footnote .link {
  margin-left: 4px;
  font-size: inherit;
}

/* ---------- dashboard ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stat {
  display: grid;
  gap: 2px;
  padding: 16px 20px 15px;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat-label {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}

.stat-value {
  font-size: 1.625rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.stat-meta {
  color: var(--muted);
  font-size: .8125rem;
}

.feed-card {
  overflow: hidden;
}

.feed {
  max-height: 322px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.feed:focus-visible {
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

.feed-row {
  display: grid;
  grid-template-columns: 68px 76px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 8px 16px;
  font-size: .8125rem;
}

.feed-row + .feed-row {
  border-top: 1px solid var(--line-soft);
}

.feed-row-new {
  animation: row-in 1.4s var(--ease);
}

.feed-time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .75rem;
}

.feed-cat {
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}

.feed-cat::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--dot);
  vertical-align: .08em;
}

.feed-cat-job::before {
  background: var(--violet);
}

.feed-cat-cache::before {
  background: var(--ok);
}

.feed-cat-cloud::before {
  background: var(--info);
}

.feed-body {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.feed-subject {
  margin-right: 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
}

.empty {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

.table-card {
  overflow-x: auto;
  scrollbar-width: thin;
}

.table-card:focus-visible {
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
}

th,
td {
  padding: 10px 16px;
  text-align: left;
  vertical-align: top;
}

thead th {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}

tbody th {
  font-weight: 500;
  white-space: nowrap;
}

tbody tr + tr > * {
  border-top: 1px solid var(--line-soft);
}

td.num,
th.num {
  text-align: right;
  white-space: nowrap;
}

td code,
tbody th code {
  color: var(--ink);
  white-space: nowrap;
}

td .sub,
tbody th .sub {
  display: block;
  color: var(--muted);
  white-space: nowrap;
}

td.wrap {
  max-width: 420px;
  overflow-wrap: anywhere;
}

td.wrap code {
  color: var(--ink-2);
  white-space: normal;
}

.row-flash > * {
  animation: row-in 1.2s var(--ease);
}

.cost {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.cost-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 110px;
  gap: 16px;
  align-items: center;
}

.cost-label {
  color: var(--ink-2);
}

.cost-track {
  height: 6px;
  border-radius: 999px;
  background: var(--sunken);
  overflow: hidden;
}

.cost-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--dot);
  transition: width .5s var(--ease);
}

.cost-row-own .cost-track span {
  background: var(--violet);
}

.cost-value {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.cost-value strong {
  color: var(--ink);
}

.cost-summary {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.cost-summary strong {
  color: var(--ink);
}

/* ---------- clouds ---------- */

.cloud {
  padding: 18px 20px;
}

.cloud-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.cloud-head .sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: .8125rem;
}

.cloud .more {
  margin-top: 12px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 10px 0 4px 2px;
}

.check-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
}

.check-list .icon {
  margin-top: 3px;
  color: var(--ok);
  stroke-width: 2;
}

.check-list .warn .icon {
  color: var(--warn-dot);
}

.check-list .sub {
  display: block;
  color: var(--muted);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}

.cloud-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.empty-card {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 24px 20px;
}

.empty-card p {
  color: var(--muted);
}

.empty-card .btn {
  margin-top: 10px;
}

.placement {
  display: grid;
  gap: 4px;
}

.placement li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  white-space: nowrap;
}

.placement .ord {
  width: 14px;
  color: var(--muted);
}

.placement .where {
  color: var(--muted);
}

.facts {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 20px;
}

.facts > div + div {
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 650;
}

.facts dd {
  max-width: 68ch;
  color: var(--muted);
}

/* ---------- settings ---------- */

.rows .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 18px 20px;
}

.rows .row + .row {
  border-top: 1px solid var(--line);
}

.rows h2,
.cloud h2,
.empty-card h2 {
  font-size: .875rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.rows h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rows p {
  max-width: 64ch;
  margin-top: 2px;
  color: var(--muted);
}

/* ---------- dialog & toast ---------- */

.dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 48px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px -20px rgb(27 23 38 / 35%);
}

.dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  animation: fade-up .24s var(--ease);
}

.dialog::backdrop {
  background: rgb(27 23 38 / 28%);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-head h2 {
  font-family: var(--mono);
  font-size: .9375rem;
  letter-spacing: 0;
}

.dialog-head .hint {
  margin-top: 4px;
}

.dialog .code {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.dialog .code pre {
  overflow: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  max-width: calc(100vw - 32px);
  padding: 9px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-violet);
  font-weight: 600;
  translate: -50% 0;
  animation: fade-up .24s var(--ease);
}

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

/* ---------- motion ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(.97) translateY(-4px);
  }
}

@keyframes row-in {
  from {
    background-color: var(--violet-tint);
  }
}

@keyframes breathe {
  50% {
    opacity: .45;
  }
}

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

/* ---------- responsive ---------- */

@media (pointer: coarse) {
  .btn,
  input[type='text'],
  input[type='password'],
  select,
  .seg-btn,
  .nav-tab {
    min-height: 44px;
  }

  .btn-sm,
  .chip,
  .copy,
  .select-sm,
  .seg-sm .seg-btn {
    min-height: 40px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .more summary {
    padding-block: 11px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 0 12px;
    height: auto;
    padding: 0 16px;
  }

  .brand {
    height: 52px;
  }

  .topbar-end {
    margin-left: auto;
  }

  .nav {
    order: 3;
    flex: 0 0 calc(100% + 32px);
    margin: 0 -16px;
    padding: 0 12px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .page {
    padding: 28px 16px 56px;
  }

  .page-narrow {
    padding-top: 32px;
  }

  .footer {
    padding-inline: 16px;
  }

  .step-card {
    padding: 20px;
  }

  .step-foot {
    margin: 24px -20px -20px;
    padding: 12px 20px;
  }

  .steps {
    gap: 8px;
  }

  .steps li {
    gap: 8px;
  }

  .radio-cards {
    grid-template-columns: 1fr;
  }

  .field-narrow {
    flex-basis: 200px;
  }

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

  .stat {
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 16px;
    padding: 12px 16px;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat-value {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 1.375rem;
  }

  .feed-row {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 2px 10px;
    padding: 9px 14px;
  }

  .feed-body {
    grid-column: 1 / -1;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tbody tr {
    display: block;
    padding: 12px 14px;
  }

  tbody tr + tr {
    border-top: 1px solid var(--line);
  }

  tbody tr + tr > * {
    border-top: 0;
  }

  tbody th,
  tbody td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
    text-align: right;
  }

  tbody th {
    display: block;
    padding-bottom: 6px;
    font-weight: 600;
    text-align: left;
    white-space: normal;
  }

  td.stack {
    display: block;
    text-align: left;
  }

  td.stack::before {
    display: block;
    margin-bottom: 4px;
  }

  tbody th code,
  td code,
  td .sub,
  tbody th .sub,
  .placement li {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  tbody td::before {
    content: attr(data-label);
    flex: none;
    color: var(--muted);
    text-align: left;
  }

  td.empty {
    display: block;
    padding: 16px 0;
    text-align: center;
  }

  td.empty::before {
    content: none;
  }

  td.wrap {
    max-width: none;
  }

  .placement li {
    flex-wrap: wrap;
    gap: 0 8px;
  }

  .cost-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  .cost-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .facts > div {
    grid-template-columns: 1fr;
  }

  .rows .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dialog {
    padding: 18px;
  }
}
