@property --cluster-panel-width {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 280px;
}

:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #ebf1ff;
  --line: #e0e0e0;
  --line-strong: #99bbff;
  --text: #141414;
  --muted: #525252;
  --subtle: #7a7a7a;
  --accent: #0036a3;
  --accent-surface: #99bbff;
  --accent-dark: #4785ff;
  --danger: #c0453b;
  --success: #287a3f;
  --amber: #d97706;
  --warning: #8a5a00;
  --backdrop: rgb(20 20 20 / 40%);
  --focus-ring: rgb(153 187 255 / 30%);
  --radius: 2px;
  --duration-fast: 150ms;
  --duration-base: 240ms;
  --ease-standard: cubic-bezier(.2, .7, .2, 1);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
}

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

.hidden { display: none !important; }
.shell { min-height: 100vh; }

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 72px;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 46px;
  width: 105px;
}

.product-name {
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding-left: 16px;
}

.topbar-nav { display: flex; gap: 24px; margin-left: auto; }
.topbar-link {
  color: var(--muted);
  font-size: 12px;
  padding-block: 4px;
  text-decoration: none;
}
.topbar-link:hover { color: var(--accent); }
.topbar-link:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }


.header-actions, .terminal-actions, .form-actions, .dialog-actions, .console-actions, .sidebar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.layout {
  --cluster-panel-width: 280px;
  align-content: start;
  display: grid;
  column-gap: 40px;
  row-gap: 32px;
  grid-template-columns: minmax(0, var(--cluster-panel-width)) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1276px;
  min-height: calc(100vh - 72px);
  padding: 40px 48px 88px;
  transition: --cluster-panel-width var(--duration-base) var(--ease-standard), column-gap var(--duration-base) var(--ease-standard);
}

.console-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-bottom: 18px;
}

.console-context {
  align-items: center;
  color: var(--subtle);
  display: flex;
  font-size: 11px;
}

.action-link {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-size: 12px;
  gap: 8px;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
  width: fit-content;
}

.action-link:hover { color: var(--accent-dark); }
.action-link[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.direction-arrow {
  align-items: center;
  color: inherit;
  display: inline-flex;
  flex: none;
  height: 18px;
  justify-content: center;
  transition: transform var(--duration-fast) var(--ease-standard);
  width: 18px;
}
.direction-arrow svg { display: block; height: 16px; width: 16px; }
.action-link:hover > .direction-arrow, .action-link:focus-visible > .direction-arrow { transform: translateX(2px); }
.action-link[data-direction="back"]:hover > .direction-arrow, .action-link[data-direction="back"]:focus-visible > .direction-arrow { transform: translateX(-2px); }
.sidebar {
  background: transparent;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 2;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0 32px 40px 0;
  transition: border-right-width var(--duration-base) var(--ease-standard), padding var(--duration-base) var(--ease-standard);
}

.sidebar-heading, .panel-heading, .workspace-header, .dialog-heading, .spec-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.sidebar-heading { padding: 0 0 24px; }
.sidebar-heading h2 { font-size: 30px; letter-spacing: -0.02em; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 8px; }
h2 { font-size: 18px; letter-spacing: -0.01em; margin: 0; }


.icon-button, .dialog-close {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.icon-button:hover, .dialog-close:hover { border-color: var(--accent); color: var(--accent); }

.cluster-list-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--subtle);
  display: grid;
  flex: none;
  font-size: 10px;
  font-weight: 600;
  grid-template-columns: 1fr;
  height: 33px;
  letter-spacing: 0.06em;
  padding: 10px 8px 10px 10px;
  text-transform: uppercase;
  transition: padding var(--duration-base) var(--ease-standard);
}
.cluster-list-header > span:not(:first-child) { display: none; }
.cluster-list { flex: 1; min-height: 0; overflow-y: auto; }

.cluster-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 7px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  height: 55px;
  padding: 9px 8px 10px 10px;
  text-align: left;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), padding var(--duration-base) var(--ease-standard);
  width: 100%;
}

.cluster-item:hover { color: var(--accent); }
.cluster-item.selected { border-left-color: var(--accent); color: var(--text); }
.cluster-item:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: -2px; }
.cluster-item strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cluster-item .status { align-self: center; justify-self: end; line-height: 1; }
.cluster-spend { justify-self: end; }
.cluster-ready, .cluster-spend { color: var(--subtle); font-size: 11px; }
.cluster-row-arrow { display: none; }

.cluster-index { --cluster-panel-width: 100%; column-gap: 0; }
.cluster-index .sidebar { border-right: 0; grid-column: 1 / -1; padding: 0 0 48px; }
.cluster-index .cluster-list-header,
.cluster-index .cluster-item {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 1.5fr) minmax(100px, 0.5fr) minmax(120px, 0.5fr) minmax(100px, 0.5fr) 16px;
}
.cluster-index .cluster-list-header { padding-inline: 16px; }
.cluster-index .cluster-list-header > span { display: inline; }
.cluster-index .cluster-list { border-top: 0; max-height: none; }
.cluster-index .cluster-item { border-left: 0; padding-inline: 16px; }
.cluster-index .cluster-item strong { font-size: 14px; }
.cluster-index .cluster-item .status,
.cluster-index .cluster-ready,
.cluster-index .cluster-spend { justify-self: start; }
.cluster-index .cluster-row-arrow {
  align-self: center;
  color: var(--accent);
  display: inline-flex;
  justify-self: end;
}
.cluster-index .cluster-item:hover .cluster-row-arrow,
.cluster-index .cluster-item:focus-visible .cluster-row-arrow { transform: translateX(2px); }

.button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 400;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0 14px;
  text-decoration: none;
  transition: 120ms ease;
  white-space: nowrap;
}

.button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.45; pointer-events: none; }
.button.primary { border-color: var(--text); color: var(--text); }
.button.primary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.button.secondary, .button.ghost { color: var(--muted); }
.button.secondary:hover:not(:disabled), .button.ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.button.danger { border-color: var(--danger); color: var(--danger); }
.button.danger:hover:not(:disabled) { opacity: 0.72; }
.button.wide { width: 100%; }
.button.compact { padding: 0 10px; }
.toolbar-actions .button {
  min-width: 7.25rem;
}
.button:focus-visible, .icon-button:focus-visible, .dialog-close:focus-visible, .copy-id:focus-visible, .action-link:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

.sign-in-panel {
  max-width: 420px;
  text-align: center;
}

.sign-in-panel h1 {
  font-size: 38px;
  margin: 0 0 20px;
}

.sign-in-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 32px;
}

.sign-in-gate {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 72px - 112px);
  padding: 48px 0 104px;
}

.sign-in-action {
  display: inline-flex;
  min-width: 10rem;
}

.keys-page { margin: 0 auto; max-width: 1276px; padding: 56px 48px 104px; }
.page-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 40px; }
.page-heading h1 { font-size: 38px; margin: 0; }
.keys-page > .form-error:empty { display: none; }
.keys-list { border-top: 1px solid var(--line); }
.key-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.7fr) auto;
  padding: 9px 16px;
  position: relative;
  transition: background-color var(--duration-base) var(--ease-standard);
}
.key-row:hover, .key-row:focus-within { background-color: var(--surface-soft); }
.key-row-link { cursor: pointer; inset: 0; position: absolute; z-index: 0; }
.key-row-link:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.key-identity, .key-summary { pointer-events: none; position: relative; z-index: 1; }
.key-identity { min-width: 0; }
.key-identity strong { display: block; font-size: 13px; font-weight: 600; line-height: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-identity strong code { font-size: 13px; font-weight: 400; }
.key-credential { align-items: baseline; display: flex; gap: 8px; height: 20px; margin-top: 2px; white-space: nowrap; }
.key-credential code { color: var(--subtle); font-size: 11px; }
.key-state { color: var(--muted); font-size: 11px; }
.key-state.revoked { color: var(--danger); }
.key-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; position: relative; z-index: 1; }
.key-row-arrow { align-self: center; color: var(--muted); opacity: 0.62; pointer-events: none; transition: color var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); }
.key-row:hover .key-row-arrow, .key-row:focus-within .key-row-arrow { color: var(--accent-dark); opacity: 1; transform: translateX(2px); }
.key-summary { display: grid; gap: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.key-summary dt { color: var(--muted); font-size: 11px; line-height: 14px; }
.key-summary dd { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 20px; margin: 2px 0 0; }
.key-summary dd small { color: var(--muted); font-family: "Helvetica Neue", Arial, sans-serif; font-size: 11px; margin-left: 3px; }
.issue-key-dialog { max-width: 560px; }
.layout.read-only #new-cluster, .layout.read-only .command-panel { display: none; }

.docs-page { margin: 0 auto; max-width: 1180px; padding: 56px 48px 104px; }
.docs-back { margin-bottom: 28px; }
.docs-header { border-bottom: 1px solid var(--line); padding-bottom: 36px; }
.docs-header h1 { font-size: 38px; margin: 0; }
.docs-layout { display: grid; gap: 72px; grid-template-columns: 160px minmax(0, 720px); justify-content: center; padding-top: 40px; }
.docs-nav { align-self: start; display: grid; gap: 13px; position: sticky; top: 112px; }
.docs-nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.docs-nav a:hover { color: var(--accent); }
.docs-nav a:focus-visible, .docs-content a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.docs-content section { border-bottom: 1px solid var(--line); padding: 0 0 40px; scroll-margin-top: 104px; }
.docs-content section + section { padding-top: 40px; }
.docs-content h2 { font-size: 24px; margin-bottom: 18px; }
.docs-content h3 { font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 400; margin: 32px 0 16px; }
.docs-content h4 { font-size: 14px; font-weight: 600; margin: 0; }
.docs-content p, .docs-steps { font-size: 14px; line-height: 1.65; }
.docs-content p { margin-bottom: 16px; }
.docs-content p:last-child { margin-bottom: 0; }
.docs-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.docs-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.docs-steps { margin: 0 0 20px; padding-left: 22px; }
.docs-steps li + li { margin-top: 8px; }
.docs-values { border-top: 1px solid var(--line); margin: 24px 0; }
.docs-values div { border-bottom: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: 112px minmax(0, 1fr); padding: 13px 0; }
.docs-values dt { color: var(--muted); font-size: 12px; }
.docs-values dd { font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.docs-tools { margin-bottom: 0; }
.docs-tool-group { scroll-margin-top: 104px; }
.docs-tool-group + .docs-tool-group { margin-top: 40px; }
.docs-tool { border-top: 1px solid var(--line); padding: 20px 0; scroll-margin-top: 104px; }
.docs-tool:last-child { border-bottom: 1px solid var(--line); }
.docs-tool .docs-signature { color: var(--muted); font-size: 12px; margin: 6px 0 12px; overflow-wrap: anywhere; }
.docs-tool .docs-result { color: var(--muted); font-size: 13px; }
.docs-tool .docs-result strong { color: var(--text); font-weight: 600; }
.docs-code { background: var(--text); color: var(--bg); font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 24px 0; overflow-x: auto; padding: 16px 18px; }

.workspace { grid-column: 2; grid-row: 2; min-width: 0; overflow: clip; padding: 0 0 72px; }
.workspace-close { height: 38px; width: 38px; }
.workspace-close svg { height: 18px; width: 18px; }
.workspace > .workspace-header { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.workspace > .workspace-header h1 { margin: 0; }

.title-line { align-items: center; display: flex; gap: 12px; }
.cluster-context { align-items: center; color: var(--subtle); display: flex; flex-wrap: wrap; font-size: 11px; gap: 20px; margin-top: 7px; }
.copy-id { background: transparent; border: 0; color: var(--subtle); cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; padding: 0; }
.copy-id:hover { color: var(--muted); }

.status { color: var(--muted); display: inline-block; font-size: 11px; }
.status.ready, .status.success { color: var(--success); }
.status.failed, .status.cancelled, .status.timedout { color: var(--danger); }
.status.pending, .status.inprogress, .status.delayed, .status.provisioning, .status.launching, .status.connecting { color: var(--accent); }
.status.cancelling, .status.draining { color: var(--warning); }

.content-grid { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(540px, 1.65fr) minmax(300px, 0.85fr); }
#cluster-workspace .content-grid { margin-top: 32px; }
.primary-column, .secondary-column { display: grid; gap: 18px; min-width: 0; }
.panel { background: transparent; overflow: hidden; }
.panel-heading { border-bottom: 1px solid var(--line); min-height: 56px; padding: 12px 18px; }
.workspace .panel-heading { border-top: 1px solid var(--line); padding-inline: 0; }
.workspace .command-panel form { padding-inline: 0; }
.workspace .events-panel .panel-heading,
.workspace .event-list { padding-inline: 18px; }
.workspace .table-wrap th:first-child, .workspace .table-wrap td:first-child { padding-left: 0; }
.workspace .table-wrap th:last-child, .workspace .table-wrap td:last-child { padding-right: 0; }
.muted { color: var(--subtle); font-size: 11px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; font-size: 12px; width: 100%; }
th { color: var(--subtle); font-size: 10px; font-weight: 650; letter-spacing: 0.08em; padding: 10px 18px; text-align: left; text-transform: uppercase; }
td { border-top: 1px solid var(--line); color: var(--muted); padding: 13px 18px; white-space: nowrap; }
td:first-child { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.command-panel form { border-top: 1px solid var(--line); padding: 18px; }
label { color: var(--muted); display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.01em; position: relative; }
input, textarea, select {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  display: block;
  margin-top: 7px;
  outline: none;
  padding: 10px 11px;
  resize: vertical;
  width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px var(--focus-ring); }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.55; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 14px 0; }
.command-panel form > label { margin-bottom: 14px; }
.command-options { border-block: 1px solid var(--line); margin: 16px 0; padding: 12px 0 2px; }
.command-options > label { margin-bottom: 14px; }
.command-options summary { color: var(--muted); cursor: pointer; font-size: 12px; list-style: none; margin-bottom: 10px; }
.command-options summary::before { color: var(--accent); content: "\203a"; display: inline-block; margin-right: 8px; }
.command-options[open] summary::before { transform: rotate(90deg); }
.input-suffix, .input-prefix { bottom: 11px; color: var(--subtle); pointer-events: none; position: absolute; right: 11px; }
.input-prefix { left: 11px; right: auto; }
#new-budget, #new-key-hourly { padding-left: 25px; }
.label-note { color: var(--subtle); font-weight: 400; }
.form-actions { justify-content: space-between; }
.form-error { color: var(--danger); font-size: 11px; margin: 0; min-height: 16px; }

.terminal-heading { align-items: center; }
.terminal { background: var(--text); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); color: var(--bg); font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0; max-height: 420px; min-height: 180px; overflow: auto; padding: 15px; white-space: pre-wrap; word-break: break-word; }
.terminal:empty::before { color: var(--subtle); content: "Waiting for output…"; }
.target-list { padding: 10px 14px; }
.target { align-items: center; display: flex; justify-content: space-between; padding: 7px 3px; }
.target code { color: var(--muted); font-size: 10px; }

.event-list { list-style: none; margin: 0; max-height: 620px; overflow-y: auto; padding: 0 18px 18px; }
.event { border-left: 3px solid var(--accent); padding: 16px 14px; }
.event + .event { border-top: 1px solid var(--line); }
.event-heading { align-items: baseline; display: flex; gap: 16px; justify-content: space-between; }
.event strong { font-size: 12px; font-weight: 600; }
.event-meta { color: var(--subtle); flex: none; font-size: 10px; }
.event time { color: inherit; }
.event[data-severity="warning"] { border-left-color: var(--amber); }
.event[data-severity="error"] { border-left-color: var(--danger); }
.event-details { color: var(--muted); font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 10px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }

.dialog {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  max-width: min(760px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}
.dialog::backdrop { background: var(--backdrop); }
.dialog > form { padding: 28px; }
.dialog-close { font-size: 24px; font-weight: 300; }
.cluster-dialog label { margin-bottom: 15px; }
.spec-heading { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; margin-top: 22px; padding-bottom: 10px; }
.spec-row { align-items: end; display: grid; gap: 9px; grid-template-columns: 1.1fr 1fr 70px 86px 110px 32px; padding: 12px 0; }
.spec-row label { margin: 0; }
.spec-row input, .spec-row select { font-size: 11px; padding: 9px; }
.dialog-actions { border-top: 1px solid var(--line); justify-content: flex-end; margin-top: 14px; padding-top: 18px; }
.admin-dialog { max-width: min(1120px, calc(100vw - 32px)); }
.admin-content { padding: 28px; }
.admin-toolbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 20px; padding: 12px 0; }
.checkbox { align-items: center; display: flex; gap: 8px; }
.checkbox input { margin: 0; width: auto; }
.admin-dialog td strong, .admin-dialog td small { display: block; }
.admin-dialog td small { color: var(--subtle); font: 10px/1.6 ui-monospace, monospace; }

.toast { background: var(--text); border-radius: var(--radius); bottom: 24px; color: var(--surface); font-size: 12px; left: 50%; opacity: 0; padding: 11px 15px; pointer-events: none; position: fixed; transform: translate(-50%, 10px); transition: 180ms ease; z-index: 50; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.loading-copy, .empty-copy { color: var(--subtle); font-size: 12px; padding: 24px 18px; text-align: center; }

@media (max-width: 1080px) {
  .content-grid { grid-template-columns: 1fr; }
  .secondary-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .key-row { align-items: start; grid-template-columns: minmax(220px, 1fr) minmax(380px, 1.5fr); }
  .key-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .layout { column-gap: 0; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .sidebar { border-bottom: 1px solid var(--line); border-right: 0; grid-column: 1; height: auto; max-height: none; padding: 0 0 28px; }
  .workspace { grid-column: 1; grid-row: 3; }
  .docs-layout { gap: 48px; grid-template-columns: 140px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .topbar { padding: 0 20px; }
  .topbar-nav { gap: 16px; }
  .keys-page { padding: 36px 20px 64px; }
  .page-heading { margin-bottom: 28px; }
  .key-row { gap: 12px; grid-template-columns: 1fr; }
  .key-actions { justify-content: flex-start; }
  .key-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { gap: 24px; padding: 28px 20px 64px; }
  .console-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .console-context { align-items: flex-start; flex-direction: column; gap: 8px; }
  .console-actions { flex-wrap: wrap; }
  .workspace { padding: 0 0 48px; }
  .workspace-header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-start; }
  .copy-id { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cluster-list-header { display: none; }
  .cluster-list { border-top: 1px solid var(--line); }
  .cluster-index .cluster-item { gap: 7px 12px; grid-template-columns: minmax(0, 1fr) auto; height: auto; padding: 14px 8px; }
  .cluster-index .cluster-item .status, .cluster-index .cluster-spend { justify-self: end; }
  .cluster-index .cluster-row-arrow { display: none; }
  .secondary-column { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .spec-row .remove-spec { grid-column: 2; justify-self: end; }
  .form-row { grid-template-columns: 1fr; }
  .docs-page { padding: 36px 20px 64px; }
  .docs-header { padding-bottom: 28px; }
  .docs-layout { gap: 32px; grid-template-columns: 1fr; padding-top: 28px; }
  .docs-nav { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 20px; padding-bottom: 28px; position: static; }
  .docs-content section { scroll-margin-top: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .action-link, .direction-arrow, .button, .key-row, .layout, .toast { transition: none; }
}
