/* The M1 look, from the design canvas (M1 · Write and return). */
:root {
  --ink: #16181d; --text: #2a2e35; --muted: #4a5059; --quiet: #6a7079; --faint: #8a9099;
  --line: #e6e8eb; --soft: #f1f2f4; --accent: #2f4fcf; --danger: #b42318; --danger-dot: #d92d20;
  --code-bg: #1a1b26; --code-fg: #c0caf5;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; }
body { color: var(--ink); font-family: "Geist", system-ui, sans-serif; font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: #203aa8; }
.root { min-height: 100vh; display: flex; flex-direction: column; }

.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; }
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; line-height: 1; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.stage { padding: 4px 7px; border-radius: 999px; background: #fff6e5; color: #6b3a06; font-size: 11px; font-weight: 600; }
.sep { color: #c4c8ce; }
.crumb-title { min-width: 0; max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.crumb-title.placeholder { color: var(--quiet); }
.header-right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; font-size: 13px; line-height: 1; }
.status { color: var(--quiet); display: flex; align-items: center; gap: 7px; }
.status.failed { color: var(--danger); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger-dot); }
.toggle { display: flex; gap: 2px; padding: 2px; background: #f2f3f5; border-radius: 999px; }
.toggle button { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(22, 24, 29, 0.1); cursor: default; }

.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; padding: 12px 28px; background: #fff6e5; border-top: 1px solid #f5ddb0; border-bottom: 1px solid #f5ddb0; font-size: 14.5px; line-height: 1.5; color: #6b3a06; }
.banner span { max-width: 70ch; }
.banner button { height: 34px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }

.page-main { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 700px; margin: 0 auto; padding: 72px 24px 0; }
.page-main[hidden] { display: none; }
.page-below { flex: 1; min-height: 160px; cursor: text; }
.page-editor { outline: none; color: var(--text); }
/* Block rhythm. Margins are reset with zero specificity, then spacing is set only between top-level blocks,
   so element rules can never undo the rhythm. */
.page-editor :where(p, ul, ol, blockquote, pre, h1, h2, h3, h4, h5, h6, hr) { margin: 0; }
.page-editor > * + * { margin-top: 14px; }
.page-editor > h1:not([data-title]), .page-editor > h2 { margin-top: 48px; }
.page-editor > h3 { margin-top: 36px; }
.page-editor > :is(h4, h5, h6) { margin-top: 28px; }
.page-editor > :is(blockquote, pre) { margin-top: 28px; }
.page-editor > hr, .page-editor > hr + * { margin-top: 36px; }
.page-editor > :is(h1, h2, h3, h4, h5, h6):not([data-title]) + * { margin-top: 16px; }
.page-editor > h1[data-title] + * { margin-top: 28px; }

.page-editor h1[data-title] { font-size: 44px; line-height: 1.12; font-weight: 650; letter-spacing: -0.025em; color: var(--ink); }
.page-editor h1:not([data-title]) { font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.page-editor h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.page-editor h3 { font-size: 18.5px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.page-editor h4, .page-editor h5, .page-editor h6 { font-size: 17px; font-weight: 600; color: var(--ink); }
.page-editor strong { font-weight: 650; }
.page-editor a { color: var(--accent); }
.page-editor code { padding: 1px 6px; border-radius: 5px; background: var(--soft); font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.86em; color: var(--text); }

/* Lists: the same spacing between items in every kind of list. */
.page-editor ul, .page-editor ol { padding-left: 24px; }
.page-editor li + li, .page-editor li > :is(ul, ol) { margin-top: 4px; }
.page-editor ul[data-type="taskList"] { list-style: none; padding-left: 0; }
.page-editor ul[data-type="taskList"] li { display: flex; align-items: flex-start; gap: 12px; }
/* The checkbox sits in a box one text line tall, so it centres on the first line of its item. */
.page-editor ul[data-type="taskList"] li > label { flex: none; display: flex; align-items: center; height: 1.7em; }
.page-editor ul[data-type="taskList"] li > label > span { display: none; }
.page-editor ul[data-type="taskList"] li > label input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.page-editor ul[data-type="taskList"] li > div { flex: 1; min-width: 0; }
.page-editor ul[data-type="taskList"] li[data-checked="true"] > div { color: var(--quiet); }
.page-editor ul[data-type="taskList"] ul[data-type="taskList"] { padding-left: 0; }

.page-editor blockquote { padding: 2px 0 2px 18px; border-left: 3px solid #e3e5e9; color: var(--muted); }
.page-editor hr { border: 0; border-top: 1px solid var(--line); }
.page-editor hr.ProseMirror-selectednode { border-top-color: var(--accent); }
.page-editor pre { padding: 18px 20px; border-radius: 10px; background: var(--code-bg); color: var(--code-fg); overflow-x: auto; }
.page-editor pre code { padding: 0; background: none; color: inherit; font-size: 14px; line-height: 1.7; }
.page-editor .is-empty::before { content: attr(data-placeholder); float: left; height: 0; pointer-events: none; color: var(--quiet); }
.page-editor h1[data-title].is-empty::before { color: var(--faint); }

/* Tokyo Night, for code blocks (B11). */
.hljs-keyword, .hljs-selector-tag, .hljs-built_in.hljs-keyword, .hljs-meta .hljs-keyword { color: #bb9af7; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #7aa2f7; }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-template-tag { color: #9ece6a; }
.hljs-number, .hljs-literal, .hljs-symbol, .hljs-bullet { color: #ff9e64; }
.hljs-comment, .hljs-quote, .hljs-deletion { color: #8a93bf; font-style: italic; }
.hljs-operator, .hljs-punctuation, .hljs-meta { color: #89ddff; }
.hljs-attr, .hljs-property, .hljs-attribute { color: #73daca; }
.hljs-type, .hljs-built_in, .hljs-class .hljs-title, .hljs-title.class_ { color: #2ac3de; }
.hljs-variable, .hljs-template-variable, .hljs-params { color: #e0af68; }
.hljs-tag, .hljs-name { color: #f7768e; }

.md-main { width: 100%; max-width: 860px; margin: 0 auto; padding: 48px 24px 160px; }
.md-panel { border: 1px solid #eceef0; border-radius: 10px; background: #f8f9fa; overflow: hidden; }
.md-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #eceef0; font-size: 13px; line-height: 1.4; color: var(--quiet); }
.md-lines { padding: 14px 0 18px; overflow-x: auto; font-family: "Geist Mono", ui-monospace, monospace; font-size: 14px; line-height: 24px; color: var(--text); }
.md-line { display: flex; gap: 20px; padding-right: 20px; }
.md-n { flex: none; width: 40px; text-align: right; color: var(--quiet); user-select: none; }
.md-text { flex: 1 1 auto; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 24px; }

.not-found { width: 100%; max-width: 700px; margin: 0 auto; padding: 160px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.not-found h1 { margin: 0; font-size: 44px; line-height: 1.12; font-weight: 650; letter-spacing: -0.025em; }
.not-found p { margin: 0; color: var(--muted); }
.primary { display: inline-flex; border: 0; font-family: inherit; cursor: pointer; align-items: center; height: 40px; margin-top: 8px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }
.primary:hover { color: #fff; }

@media (max-width: 600px) {
  .header { padding: 12px 16px; }
  .page-main { padding-top: 40px; }
  .page-editor h1[data-title] { font-size: 34px; }
}

/* B21: writing that isn't saved yet, while the banner says so (M2Updated.dc.html). */
.unsaved { padding: 1px 3px; border-radius: 3px; background: #fbe3a6; color: var(--ink); }

/* M3: an llm block and its llm output, one card (M3Outputs.dc.html, M3Editing.dc.html). */
.page-editor pre.llm-block { padding: 12px 16px 14px; border: 1px solid #e3e5e9; border-radius: 12px; overflow: hidden; background: #fff; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.page-editor pre.llm-block.focused { border-color: #c9d1f5; }
.page-editor pre.llm-block code { font-size: 14.5px; line-height: 1.65; }
.page-editor pre.llm-block[data-output] { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.page-editor > .llm-output { margin-top: 28px; }
.page-editor .llm-output { position: relative; border: 1px solid #e3e5e9; border-radius: 12px; overflow: hidden; background: #fff; }
.page-editor .llm-output.below-llm { margin-top: 0; border-top-color: #e6e8eb; border-top-left-radius: 0; border-top-right-radius: 0; }
.page-editor .output-shown { position: relative; padding: 16px 20px 18px; cursor: text; }
.page-editor .llm-frame { display: block; width: 100%; height: 0; border: 0; background: #fff; }
.page-editor .output-markdown { display: none; margin: 0; padding: 16px 20px 18px; border-radius: 0; background: #fbfbfc; color: var(--text); box-shadow: inset 0 0 0 2px #c9d1f5; white-space: pre-wrap; overflow-wrap: anywhere; }
.page-editor .output-markdown code { padding: 0; background: none; color: inherit; font-size: 14px; line-height: 1.7; }
.page-editor .llm-output.editing .output-shown, .page-editor .llm-output.editing .output-source { display: none; }
.page-editor .llm-output.editing .output-markdown { display: block; }
.page-editor .llm-output.ProseMirror-selectednode { outline: 2px solid #c9d1f5; }
/* Source floats over the llm result's bottom-right corner while someone is at the block (D47). */
.page-editor .source-button { position: absolute; right: 10px; bottom: 10px; display: none; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid #dde0e4; border-radius: 50%; background: #fff; color: var(--muted); box-shadow: 0 1px 3px rgba(22, 24, 29, 0.1); cursor: pointer; }
.page-editor .source-button:hover { border-color: #c4c8ce; background: #f6f7f8; color: var(--text); }
.page-editor .source-button[aria-expanded="true"] { display: flex; border-color: #c9d1f5; background: #eef1fd; color: #203aa8; }
.page-editor .llm-output:hover .source-button, .page-editor pre.llm-block:hover + .llm-output .source-button, .page-editor pre.llm-block[data-caret] + .llm-output .source-button { display: flex; }

/* M3: the bar llm blocks and code blocks share (D48, M3BarG.dc.html). At rest a corner label; with the caret in the
   block, a bar above the content, which moves down 30px: the bar is 32px and takes 2px of the content's top padding. */
.page-editor pre { position: relative; }
.page-editor .block-label { position: absolute; top: 18px; right: 0; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 16px 0 28px; background: linear-gradient(90deg, rgba(26, 27, 38, 0), var(--code-bg) 20px); font: 12px/16px "Geist Mono", ui-monospace, monospace; color: #8a93bf; pointer-events: none; user-select: none; }
.page-editor .block-label[hidden], .page-editor pre.focused .block-label { display: none; }
.page-editor .block-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; height: 32px; margin: -18px -20px 16px; padding: 0 20px; background: #24263a; border-bottom: 1px solid #2e3148; font: 12px/16px "Geist Mono", ui-monospace, monospace; color: #c0caf5; white-space: normal; }
.page-editor pre.focused .block-bar { display: flex; }
.page-editor .bar-name { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
.page-editor .bar-kind[hidden] { display: none; }
.page-editor .bar-input { flex: 1; min-width: 0; height: 24px; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; }
.page-editor .bar-input::placeholder { color: #565f89; }
.page-editor .block-label.changed, .page-editor .bar-status { display: inline-flex; align-items: center; gap: 6px; font: 12.5px/16px "Geist", system-ui, sans-serif; color: #8a4b08; }
.page-editor .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d98a1e; }
.page-editor pre.llm-block .block-label { top: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 20px); color: var(--faint); }
.page-editor pre.llm-block .block-label.changed { color: #8a4b08; }
.page-editor pre.llm-block .block-bar { margin: -12px -16px 10px; padding: 0 16px; background: #f3f5fd; border-bottom: 1px solid #e2e7f8; color: #5d636c; }
.page-editor pre.llm-block .bar-input { color: var(--ink); }
.page-editor pre.llm-block .bar-input::placeholder { color: #a6abb3; }

/* B26: the llm source, below the llm result while Source is open (M3Source.dc.html). */
.page-editor .source-button[hidden] { display: none !important; }
.page-editor .output-source[hidden] { display: none; }
.page-editor .llm-source { padding: 12px 20px 14px; border-top: 1px solid #e6e8eb; background: #f6f7f8; font-size: 14.5px; line-height: 1.55; color: var(--text); cursor: default; }
.page-editor .source-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 0 0 10px; font-size: 13px; line-height: 1.5; color: #5d636c; }
.page-editor .source-model { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--text); }
.page-editor .source-steps { margin: 0; padding: 0; list-style: none; }
.page-editor .source-step { margin: 0; border-top: 1px solid #e3e5e9; }
.page-editor .source-step.open { padding-bottom: 12px; }
.page-editor .step-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.page-editor .step-head svg { flex: none; color: var(--faint); transition: transform 0.1s; }
.page-editor .step-head[aria-expanded="true"] svg { transform: rotate(90deg); color: #5d636c; }
.page-editor .step-n { flex: none; width: 14px; font: 12.5px "Geist Mono", ui-monospace, monospace; color: var(--faint); }
.page-editor .step-line { flex: 1 1 auto; min-width: 0; }
.page-editor .step-file { flex: none; font: 12.5px "Geist Mono", ui-monospace, monospace; color: var(--faint); }
.page-editor .step-body { overflow: hidden; border: 1px solid #e3e5e9; border-radius: 8px; background: #fff; }
.page-editor .step-body[hidden] { display: none; }
.page-editor .step-code { position: relative; }
.page-editor .copy-code { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid #e3e5e9; border-radius: 7px; background: #fff; color: var(--quiet); cursor: pointer; }
.page-editor .llm-source pre { margin: 0; padding: 12px 14px; border-radius: 0; background: none; white-space: pre; overflow-x: auto; }
.page-editor .llm-source pre.src-code code { font-size: 13px; line-height: 1.6; color: #383a42; }
.page-editor .llm-source pre.step-printed { padding: 10px 14px; border-top: 1px solid #eceef0; background: #fafafb; font: 12.5px/1.6 "Geist Mono", ui-monospace, monospace; color: var(--muted); }
/* One Light, for the code an llm step ran (M3Source.dc.html). */
.src-code .hljs-keyword, .src-code .hljs-selector-tag { color: #a626a4; }
.src-code .hljs-string, .src-code .hljs-regexp { color: #50a14f; }
.src-code .hljs-number, .src-code .hljs-literal { color: #986801; }
.src-code .hljs-comment, .src-code .hljs-quote { color: #a0a1a7; font-style: italic; }
.src-code .hljs-title, .src-code .hljs-title.function_ { color: #4078f2; }
.src-code .hljs-built_in, .src-code .hljs-type { color: #0184bc; }
.src-code .hljs-attr, .src-code .hljs-variable, .src-code .hljs-params, .src-code .hljs-operator, .src-code .hljs-punctuation, .src-code .hljs-meta, .src-code .hljs-property, .src-code .hljs-attribute, .src-code .hljs-template-variable, .src-code .hljs-symbol, .src-code .hljs-bullet, .src-code .hljs-name, .src-code .hljs-tag { color: #383a42; }

/* B32, B49, B50: the Agent button and what it opens (M4Agent.dc.html). */
.agent { position: relative; }
.agent-button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border: 1px solid #dde0e4; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.agent-button:hover { background: #f6f7f8; }
.agent-button[aria-expanded="true"] { border-color: #c9d1f5; background: #eef1fd; color: #203aa8; }
.agent-away { position: fixed; z-index: 9; inset: 0; }
.agent-dialog { position: absolute; z-index: 10; top: calc(100% + 12px); right: 0; display: flex; flex-direction: column; gap: 14px; width: 440px; max-width: calc(100vw - 32px); padding: 20px; border: 1px solid #dde0e4; border-radius: 14px; background: #fff; box-shadow: 0 14px 36px rgba(22, 24, 29, 0.12), 0 2px 6px rgba(22, 24, 29, 0.06); font-size: 14.5px; line-height: 1.55; color: var(--ink); text-align: left; }
.agent-text { display: flex; flex-direction: column; gap: 4px; }
.agent-text h2 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.agent-text p { margin: 0; color: var(--muted); }
.agent-line { padding: 12px 14px; border-radius: 10px; background: #f3f4f6; font: 13px/1.6 "Geist Mono", ui-monospace, monospace; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.agent-copy { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.agent-copy:disabled { opacity: 0.4; cursor: default; }
.agent-note { margin: 0; padding-top: 12px; border-top: 1px solid #eceef0; font-size: 13px; color: #5d636c; }
.agent-button { white-space: nowrap; }
.agent-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; }
.agent-dot.away { background: #b6bbc2; }
/* B56: greyed while the tab can't reach atomic.page; pointing at one says why. */
.agent-button[aria-disabled="true"], .agent-disconnect[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.agent-dialog { width: 460px; }
.agent-tabs { align-self: flex-start; display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: #f2f3f5; font-size: 13px; line-height: 1; }
.agent-tabs button { height: 28px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #4a5059; font: inherit; font-weight: 500; cursor: pointer; }
.agent-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(22, 24, 29, 0.1); }
.agent-panel { display: flex; flex-direction: column; gap: 14px; }
.agent-step { display: flex; flex-direction: column; gap: 8px; }
.agent-step-title { font-size: 13px; font-weight: 600; color: #4a5059; }
.agent-where, .agent-app-note { margin: 0; font-size: 13.5px; color: #4a5059; }
.agent-address { display: flex; align-items: center; gap: 10px; }
.agent-address .agent-line { flex: 1 1 auto; min-width: 0; padding: 10px 14px; line-height: 1.5; }
.agent-copy-address { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #dde0e4; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.agent-actions { display: flex; align-items: center; gap: 10px; }
.agent-disconnect { height: 36px; padding: 0 14px; border: 1px solid #dde0e4; border-radius: 999px; background: #fff; color: #b42318; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }

/* B40–B48: an llm block's run state and its button, in its label or bar, and the line under its prompt (M4Blocks.dc.html). */
.page-editor pre.llm-block .block-label:has(.run-button), .page-editor pre.llm-block .block-label:has(.run-state) { gap: 12px; padding-right: 8px; }
.page-editor .run-button { pointer-events: auto; height: 24px; padding: 0 10px; border: 1px solid #dde0e4; border-radius: 999px; background: #fff; color: var(--ink); font: 500 12.5px/1 "Geist", system-ui, sans-serif; cursor: pointer; }
.page-editor .run-button:hover { background: #f6f7f8; }
.page-editor .run-button[aria-disabled="true"] { opacity: 0.45; cursor: default; background: #fff; }
.page-editor .run-buttons { display: inline-flex; gap: 6px; pointer-events: auto; }
.page-editor pre.llm-block:not(:hover):not(.focused) .run-button.quiet { display: none; }
.page-editor .label-text { display: inline-flex; align-items: center; gap: 12px; }
.page-editor .block-label.changed .label-text { gap: 6px; }
.page-editor .run-state { display: inline-flex; align-items: center; gap: 6px; font: 12.5px/16px "Geist", system-ui, sans-serif; }
.page-editor .run-state.waiting, .page-editor .run-state.running { color: #203aa8; }
.page-editor .run-state.waiting::before { content: ""; width: 7px; height: 7px; box-sizing: border-box; border: 1.5px solid #2f4fcf; border-radius: 50%; }
.page-editor .run-state.running::before { content: ""; width: 10px; height: 10px; box-sizing: border-box; border: 2px solid #2f4fcf; border-right-color: transparent; border-radius: 50%; animation: run-spin 0.9s linear infinite; }
.page-editor .run-state.failed { color: #b42318; }
.page-editor .run-time { font-variant-numeric: tabular-nums; }
.page-editor .run-state.failed::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d92d20; }
.page-editor .run-agent { font: 12.5px/16px "Geist", system-ui, sans-serif; color: #5d636c; }
.page-editor .bar-status { gap: 12px; }
.page-editor .bar-right { display: inline-flex; align-items: center; gap: 12px; }
.page-editor .bar-button { display: inline-flex; }
@keyframes run-spin { to { transform: rotate(360deg); } }
.page-editor .block-note { margin: 14px -16px -14px; padding: 9px 16px 10px; font: 13.5px/1.5 "Geist", system-ui, sans-serif; white-space: normal; user-select: none; }
.page-editor .block-note[hidden] { display: none; }
.page-editor .block-note.failed { border-top: 1px solid #f4d4d0; background: #fdf3f2; color: #8f1d14; }
.page-editor .block-note.no-agent { border-top: 1px solid #e2e7f8; background: #f3f5fd; color: #2a2e35; }
.page-editor .block-note-link { color: #2f4fcf; }
.page-editor .block-note-link { margin-right: 4px; }

/* I11: the storage reason stays visible without activating the disabled Agent button. */
.tab-link { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.storage-explanation { margin: 0 28px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.storage-explanation strong { font-weight: 500; color: var(--ink); }
.storage-explanation span { display: block; }
.first-save, .migration { padding-top: 10px; border-top: 1px solid #eceef0; }
.page-editor .run-button { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 600px) {
  .storage-explanation { margin: 0 16px; }
  .header { position: relative; }
  .agent { position: static; }
  .agent-dialog { right: 16px; top: calc(100% + 12px); }
}

.confirmation-note { margin: 0; padding: 10px 0; border-top: 1px solid #eceef0; color: #6b3a06; font-size: 13.5px; line-height: 1.55; }

.run-uncertainty { color: #80570b; }

/* B60: the proposed notice uses the existing block-note layout. */
.page-editor .block-note.paused { border-top: 1px solid #f5d9aa; background: #fff8ec; color: #6b3a06; }
