/* One semantic palette for navigation, editing, sign-in and recovery.
   Plum/rose actions, cream neutrals and sage success, inspired by the Studio palette. */
:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --panel: #fffdfa;
  --text: #30282c;
  --muted: #70636c;
  --line: #e3dcd9;
  --input-line: #a99aa2;
  --accent: #870058;
  --accent-soft: #f3e6ee;
  --on-accent: #ffffff;
  --yes: #426035;
  --yes-soft: #edf2e5;
  --no: #70636c;
  --no-soft: #eee9e6;
  --warn: #80501c;
  --warn-soft: #ffeccc;
  --bad: #a4303f;
  --bad-soft: #f8e6e8;
  --tag: #785174;
  --code: #f0ebe8;
  --mark-bg: #c8d6af;
  --mark-text: #344a2b;
  --backdrop: #211a25a8;
  --shadow: 0 16px 52px #30282c16;
  --sidebar-width: 196px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1c191e;
    --panel: #252127;
    --text: #f3ebe8;
    --muted: #bbadb7;
    --line: #403640;
    --input-line: #887780;
    --accent: #efa6d2;
    --accent-soft: #432b3b;
    --on-accent: #2b1724;
    --yes: #c8d6af;
    --yes-soft: #2d3729;
    --no: #bbadb7;
    --no-soft: #342e35;
    --warn: #f2d0a4;
    --warn-soft: #403323;
    --bad: #f6a7b0;
    --bad-soft: #442b33;
    --tag: #d4afd0;
    --code: #322b33;
    --mark-bg: #c8d6af;
    --mark-text: #344a2b;
    --backdrop: #08060bc4;
    --shadow: 0 16px 52px #00000038;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; }
code { background: var(--code); padding: 0.05em 0.35em; border-radius: 4px; }
pre { background: var(--code); padding: 12px 14px; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }

/* The header owns global search/account; the sidebar owns navigation. */
header.top { position: sticky; top: 0; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line); }
.top-bar { display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 16px; }
.draft-label { font-size: 11px; font-weight: 500; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
form { margin: 0; }
form.find { margin-left: auto; width: min(320px, 35vw); }
form.find input, form.big-find input { width: 100%; }
form.big-find input { max-width: 560px; font-size: 1.1em; }
.sign-out { flex: none; }
.studio-status { display: flex; justify-content: space-between; gap: 8px 20px; padding: 7px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--yes); }
.agent-links { display: inline-flex; gap: 14px; white-space: nowrap; }
.workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); max-width: 1540px; margin: 0 auto; }
.studio-navigation { position: sticky; top: 99px; align-self: start; max-height: calc(100dvh - 99px); overflow-y: auto; padding: 20px 12px; }
.studio-navigation > summary { display: none; }
.studio-navigation nav { display: grid; gap: 16px; }
.nav-group { display: grid; gap: 2px; }
.nav-label { padding: 0 12px 5px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.nav-group a { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 12px; border-radius: 7px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.nav-group a:hover { color: var(--text); background: var(--no-soft); text-decoration: none; }
.nav-group a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 650; }
main { min-width: 0; width: 100%; max-width: 1240px; margin: 0 auto; padding: 26px 30px 48px; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 101; padding: 8px 14px; background: var(--panel); border: 2px solid var(--accent); border-radius: 8px; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { max-width: 100%; border: 1px solid var(--input-line); border-radius: 7px; padding: 7px 10px; font: inherit; background: var(--panel); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
[hidden] { display: none !important; }

h1 { margin: 0.2em 0 0.3em; font-size: 1.8em; }
h2 { margin: 1.4em 0 0.5em; font-size: 1.2em; }
h3 { margin: 1em 0 0.4em; font-size: 1em; }
.lead { font-size: 1.05em; color: var(--muted); max-width: 760px; }
.muted { color: var(--muted); }
.meta { color: var(--muted); margin: 0.2em 0 0.6em; }
.crumbs { color: var(--muted); font-size: 0.9em; }
.id { color: var(--muted); font-size: 0.8em; font-family: ui-monospace, monospace; }

.audit { padding: 10px 14px; border-radius: 8px; }
.audit.ok { background: var(--yes-soft); color: var(--yes); }
.audit.bad { background: var(--bad-soft); color: var(--bad); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.card {
  display: flex; gap: 14px; align-items: center; padding: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
}
.card:hover { border-color: var(--accent); text-decoration: none; }
.card h3 { margin: 0 0 4px; font-size: 1.1em; }
.card p { margin: 0; font-size: 0.9em; }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin: 14px 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 12px; }
.panel h2 { margin-top: 0.7em; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 3px 0; }

.head { display: flex; gap: 20px; align-items: flex-start; }
.portrait { width: 132px; height: 132px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.thumb.big { width: 64px; height: 64px; flex: none; }
.thumb.none { background: var(--no-soft); color: var(--muted); font-size: 0.8em; font-weight: 600; }

.badge { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 0.78em; line-height: 1.7; background: var(--no-soft); color: var(--muted); white-space: nowrap; }
.badge.kind { background: var(--accent-soft); color: var(--accent); }
.badge.yes, .badge.recipe { background: var(--yes-soft); color: var(--yes); }
.badge.no { background: var(--no-soft); color: var(--no); }
.badge.voice { background: var(--accent-soft); color: var(--accent); }
.badge.tool { background: var(--warn-soft); color: var(--warn); }
.badge.docs { background: var(--no-soft); color: var(--muted); }
.badge.unreferenced { background: var(--bad-soft); color: var(--bad); }

table { border-collapse: collapse; width: 100%; background: var(--panel); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-size: 0.8em; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
table.stats { border: none; }
table.stats th { width: 38%; color: var(--muted); font-weight: 500; }
dl { margin: 6px 0; }
dt { color: var(--muted); font-size: 0.85em; margin-top: 8px; }
dd { margin: 2px 0 0; }
code.missing { color: var(--bad); }

.abilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.ability { display: flex; gap: 12px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.ability p { margin: 4px 0 0; }
ul.assets li { margin: 6px 0; }

.prompt { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--panel); color: var(--muted); font-style: italic; }
.cues { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.cue { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 2px 12px 8px; }
.cue h3 { margin: 10px 0 4px; font-family: ui-monospace, monospace; font-size: 0.9em; color: var(--accent); }
table.lines { background: none; }
table.lines td { padding: 5px 6px; }
td.btn { width: 44px; }
td.len { width: 48px; color: var(--muted); font-size: 0.85em; text-align: right; }
.steer { color: var(--muted); font-size: 0.8em; font-style: italic; }
.tag { color: var(--tag); font-family: ui-monospace, monospace; font-size: 0.85em; }
button.play {
  width: 34px; height: 28px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); cursor: pointer; font-size: 12px;
}
button.play.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

details.data { margin-top: 24px; }
details.data summary { cursor: pointer; color: var(--muted); }
ul.docs li { margin: 3px 0; }

article.doc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 28px 20px; max-width: 900px; }
article.doc table { border: 1px solid var(--line); font-size: 0.92em; }
article.doc img { max-width: 100%; }
article.doc blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--line); color: var(--muted); }

/* ---- editing ---- */
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.actions.small { margin: 6px 0 2px; }
a.button, button {
  display: inline-block; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-size: 0.9em; cursor: pointer; text-decoration: none;
}
a.button:hover, button:hover:not(:disabled) { border-color: var(--accent); text-decoration: none; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button:disabled { opacity: 0.45; cursor: default; }
.audit.warn { background: var(--warn-soft); color: var(--warn); }
.editor input, .editor select, .editor textarea, input.filter {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px;
}
.editor input:focus, .editor select:focus, .editor textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.tabs { display: flex; gap: 4px; margin: 10px 0; }
.tabs button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
input.filter { width: 100%; max-width: 420px; margin: 4px 0 10px; }
table.fields th { width: 42%; font-family: ui-monospace, monospace; font-size: 0.82em; color: var(--muted); font-weight: 500; }
table.fields input { width: 100%; }
table.fields tr.changed th { color: var(--accent); }
table.fields tr.changed input { border-color: var(--accent); }
textarea.code { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; line-height: 1.5; tab-size: 2; }
textarea.prose { font-family: inherit; font-size: 0.95em; }
pre.diff { max-height: 420px; overflow: auto; font-size: 0.82em; }
pre.diff .add { color: var(--yes); background: var(--yes-soft); display: inline-block; width: 100%; }
pre.diff .del { color: var(--bad); background: var(--bad-soft); display: inline-block; width: 100%; }
pre.diff .hunk { color: var(--muted); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; margin: 10px 0 14px; }
.grid-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85em; color: var(--muted); }
.grid-form label.wide { grid-column: 1 / -1; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.split article.preview { max-height: 640px; overflow: auto; padding: 4px 18px 12px; }
.cue.edit label.steer { display: flex; gap: 8px; align-items: center; font-size: 0.85em; color: var(--muted); margin-bottom: 6px; }
.cue.edit label.steer input { flex: 1; }
.cue.edit input.line { width: 100%; margin-bottom: 3px; }
.cue.edit input.line-steer { width: 100%; font-size: 0.82em; font-style: italic; }
.cue.edit td.id { color: var(--muted); font-family: ui-monospace, monospace; font-size: 0.78em; width: 90px; }
section.note { margin: 12px 0; }
section.note article.doc { padding: 4px 22px 12px; }

/* Pipeline: readiness, jobs */
.badge.part { background: var(--warn-soft); color: var(--warn); }
.badge.stale, .badge.error { background: var(--bad-soft); color: var(--bad); }
.badge.none { background: transparent; color: var(--muted); }
a.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
form.inline { display: inline; margin: 0; }
a.button.small, button.small { padding: 1px 8px; font-size: 0.8em; }
.small { font-size: 0.85em; }
.scroll { overflow-x: auto; }
table.readiness td { vertical-align: top; }
table.tally { width: auto; }
table.tally td, table.tally th { text-align: center; }
table.tally tbody th { text-align: left; }
pre.log { max-height: 65vh; min-height: 6em; overflow: auto; white-space: pre-wrap; font-size: 0.8em; }
.readiness-panel { margin: 12px 0; }

/* Game bible */
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line); margin-right: 4px; vertical-align: middle; }
a.missing-link, span.missing-link { color: var(--muted); border-bottom: 1px dashed var(--muted); }
a.wiki { border-bottom: 1px dotted var(--accent); }
a.embed { font-style: italic; }
.card.bible { display: block; }
.card.bible h3 { margin: 0 0 4px; }
ul.questions { padding-left: 1.2em; }
ul.questions li { margin: 3px 0; }
.chapter { border-top: 1px solid var(--line); margin-top: 18px; }
table.arcs td { vertical-align: top; min-width: 140px; }
table.arcs td div { margin: 2px 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.gallery img { height: 160px; width: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--code); }
.note-panel { margin: 12px 0 18px; }
.note-panel table.stats th { width: 150px; }
label.block { display: block; margin: 10px 0 4px; }
label.block textarea { width: 100%; margin-top: 4px; }

/* Loading bar, shown when a page takes longer than a moment */
#loading { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 100; opacity: 0; pointer-events: none; }
#loading.on { opacity: 1; animation: loading 6s cubic-bezier(0.1, 0.7, 0.2, 1) forwards; }
@keyframes loading { from { width: 0; } to { width: 92%; } }

/* Comment threads */
.comments .thread { border-top: 1px solid var(--line); padding: 8px 0; }
.comments .thread h3 { margin: 6px 0 2px; }
.comments .post { margin: 8px 0 8px 10px; padding-left: 10px; border-left: 2px solid var(--line); }
.comments .post .doc > :first-child { margin-top: 0; }
.comments .post .doc > :last-child { margin-bottom: 0; }
.comments ul.tasks li { display: flex; gap: 8px; align-items: baseline; margin: 3px 0; }
.comments ul.tasks form { margin: 0; }
.comments form.reply textarea, .comments form.reply input[name=title] { width: 100%; box-sizing: border-box; margin-top: 6px; }
button.small { font-size: 0.8em; padding: 1px 8px; }
.studio-navigation .count { display: inline-block; min-width: 1.4em; padding: 0 5px; margin-left: 3px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.75em; text-align: center; }
/* A post's own checkboxes: the thread's numbered task list below shows them, with buttons. */
.comments .post li:has(> input[type="checkbox"]) { display: none; }

/* Files and snapshots share tables, notices and dialogs. */
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading > .button { flex: none; margin-top: 24px; }
.page-heading .lead { margin: 6px 0 0; max-width: 660px; font-size: .94em; }
.notice { margin: 12px 0; padding: 10px 14px; border-radius: 8px; background: var(--yes-soft); color: var(--yes); overflow-wrap: anywhere; }
.notice:empty { display: none; }
.notice.error { background: var(--bad-soft); color: var(--bad); }
.upload-panel { padding: 12px 16px; margin-bottom: 24px; }
.upload-panel summary { cursor: pointer; font-size: .9em; font-weight: 600; color: var(--accent); }
.upload-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.upload-form label { flex: 1; min-width: min(100%, 220px); }
.upload-form label, .filter-label, .version-create label, .file-replace label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.upload-form input { width: 100%; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 18px 0 12px; }
.section-heading h2 { margin: 0; }
.filter-label { width: min(320px, 100%); }
.filter-label input { width: 100%; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.file-table, .version-table { table-layout: fixed; font-size: 13px; }
.file-table { min-width: 640px; }
.file-table th:first-child { width: 49%; }
.file-table th:nth-child(2) { width: 13%; }
.file-table th:nth-child(3) { width: 16%; }
.file-table td:nth-child(2) { white-space: nowrap; }
.file-table td, .version-table td { padding: 10px 12px; overflow-wrap: anywhere; }
.file-link { padding: 0; border: 0; background: transparent; color: var(--accent); text-align: left; font-size: inherit; overflow-wrap: anywhere; max-width: 100%; }
.file-link:hover { text-decoration: underline; }
.file-table time, .version-table time { font-size: 12px; color: var(--muted); }
.file-path { overflow-wrap: anywhere; }
.empty-state { padding: 32px 20px !important; text-align: center; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: end; gap: 8px; margin: 12px 0; font-size: 12px; }
.pagination > span { margin-right: auto; }
.version-create { display: flex; align-items: center; gap: 24px; padding: 18px 20px; border-left: 3px solid var(--accent); }
.version-create h2, .version-create p { margin: 0; }
.version-create p { margin-top: 4px; font-size: 13px; }
.version-create form { margin-left: auto; min-width: min(100%, 320px); }
.input-action { display: flex; gap: 8px; margin-top: 5px; }
.input-action input { width: 100%; min-width: 0; }
.input-action button { flex: none; }
.version-table th:first-child { width: 30%; }
.version-table th:nth-child(2) { width: 15%; }
.version-table th:nth-child(3) { width: 23%; }
.version-table th:last-child { width: 32%; }
.version-id { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
button.subtle { border-color: transparent; color: var(--muted); background: transparent; }
button.danger { color: var(--bad); }
.studio-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.studio-dialog::backdrop { background: var(--backdrop); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 16px; }
.dialog-heading h2 { margin: 0; overflow-wrap: anywhere; }
.dialog-heading > button { flex: none; }
.confirm-dialog { max-width: 480px; }
.confirm-dialog h2 { margin-top: 0; }
.confirm-dialog .actions { justify-content: end; margin-bottom: 0; }
.file-replace { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; border-top: 1px solid var(--line); padding: 16px 0; }
.file-replace form { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-right: auto; }
#file-history section { border-top: 1px solid var(--line); padding: 16px 0; overflow-wrap: anywhere; }
#file-history section img { display: block; margin: 10px 0; max-width: min(240px, 100%); }
#file-history section button, #file-history section a { margin-right: 8px; }
#text-comparison { white-space: pre-wrap; }

/* Sign-in uses the same typography, controls and semantic colours. */
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; }
main.login-card { max-width: 410px; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.login-card .brand { font-size: 14px; margin-bottom: 30px; }
.login-card h1 { font-size: 24px; }
.login-card .lead { font-size: 14px; margin: 8px 0 24px; }
.login-form { display: grid; gap: 8px; }
.login-form label { font-size: 13px; font-weight: 600; }
.login-form input { width: 100%; margin-bottom: 8px; padding: 10px; }
.login-form button { padding: 10px; margin-top: 8px; }
.login-note { color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin: 24px 0 0; }

@media (max-width: 900px) {
  .top-bar { padding: 12px 16px; gap: 12px; }
  .draft-label { display: none; }
  .studio-status { padding: 6px 16px; flex-wrap: wrap; }
  .workspace { display: block; }
  .studio-navigation { position: static; max-height: none; padding: 0; border-bottom: 1px solid var(--line); background: var(--panel); }
  .studio-navigation > summary { display: list-item; padding: 10px 20px; font-size: 13px; color: var(--accent); cursor: pointer; }
  .studio-navigation nav { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 12px 16px; }
  .nav-group { align-content: start; }
  main { padding: 22px 20px 40px; }
  .version-create { flex-wrap: wrap; gap: 14px; }
  .version-create form { width: 100%; margin: 0; }
}
@media (max-width: 540px) {
  .top-bar { flex-wrap: wrap; }
  .brand { font-size: 14px; }
  .sign-out { margin-left: auto; }
  form.find { order: 3; width: 100%; }
  .studio-status { font-size: 10px; }
  .agent-links { gap: 12px; }
  .studio-navigation nav { grid-template-columns: 1fr 1fr; }
  main { padding: 18px 14px 32px; }
  .page-heading, .section-heading { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-heading > .button { margin: 0; align-self: start; }
  .filter-label { width: 100%; }
  .version-create { padding: 14px; }
  .version-table { min-width: 590px; }
  .pagination { flex-wrap: wrap; }
  .pagination > span { flex: 1 1 100%; }
  .studio-dialog { padding: 16px; }
  .head { flex-wrap: wrap; }
  main.login-card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
