:root {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #182433;
	background: #f5f7fa;
}
* { box-sizing: border-box; }
body { min-width: 1080px; height: 100vh; margin: 0; overflow: hidden; background: #f5f7fa; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.goal-block { min-width: 0; flex: 1; }
header { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 26px; background: #fff; border-bottom: 1px solid #e3e8ef; }
small { display: block; color: #728096; font-size: 10px; letter-spacing: .16em; }
h1, h2, h3, p { margin: 0; }
#goal { display: block; width: min(760px, 100%); margin-top: 5px; padding: 0; border: 0; outline: none; color: #172234; background: transparent; font-size: 21px; font-weight: 700; }
#goal:focus { border-bottom: 1px solid #278ab9; box-shadow: 0 2px 0 #d1edf9; }
h2 { color: #1e2b3d; font-size: 15px; }
.header-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: #718096; font-size: 11px; }
#connection { color: #1e7a46; }
main { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); grid-template-rows: minmax(0, 1fr); height: calc(100vh - 78px); gap: 1px; background: #dce3eb; }
.map-pane, .conversation-pane { display: flex; min-width: 0; min-height: 0; overflow: hidden; flex-direction: column; background: #f9fbfd; }
.bar, .map-toolbar, #conversation-actions, #notice, .composer-shell { flex-shrink: 0; }
.bar { display: flex; min-height: 69px; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #e6ebf1; background: #fff; }
.bar p { margin-top: 5px; color: #718096; font-size: 11px; }
.conversation-pane > .bar:has(#status[hidden]) { min-height: 48px; padding-top: 14px; padding-bottom: 14px; }
#map { position: relative; flex: 1; overflow: hidden; cursor: grab; background-color: #f9fbfd; background-image: radial-gradient(#e1e7ee 1px, transparent 1px); background-size: 22px 22px; }
#map:active { cursor: grabbing; }
.map-world { position: absolute; transform-origin: 0 0; }
.map-world svg { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.edge { fill: none; stroke: #aebaca; stroke-width: 1.7; }
.edge.active-path { stroke: #1683be; stroke-width: 2.4; }
.map-node { position: absolute; width: 204px; height: 98px; }
.map-node .node-select { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 16px 28px 11px 14px; border: 1px solid #bdc9d8; border-radius: 9px; color: #243247; background: #fff; box-shadow: 0 3px 8px #1b35540a; text-align: left; }
.map-node:hover .node-select { border-color: #278bbd; box-shadow: 0 4px 12px #1b5c7d1a; }
.map-node.current .node-select { border: 2px solid #1181b9; }
.map-node.preview .node-select { border: 2px dashed #7c4db1; }
.map-node.on-path .node-select { background: #fbfdff; }
.node-title { display: -webkit-box; width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; font-weight: 650; line-height: 1.45; }
.node-state { margin-top: 7px; color: #64748b; font-size: 10px; }
.map-node.current .node-state { color: #0d719f; font-weight: 700; }
.map-node.preview .node-state { color: #70439e; font-weight: 700; }
.node-add, .node-fold { position: absolute; z-index: 2; border: 0; }
.node-add { top: 34px; right: -12px; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #1289bd; box-shadow: 0 2px 7px #123b5040; font-size: 17px; line-height: 20px; }
.node-add { opacity: 0; transition: opacity .12s; }
.map-node:hover .node-add, .map-node:focus-within .node-add { opacity: 1; }
@media (hover: none) { .node-add { opacity: 1; } }
.node-add:disabled { cursor: not-allowed; background: #9eacba; }
.node-fold { right: 8px; bottom: 7px; max-width: 177px; padding: 0; color: #76859a; background: transparent; font-size: 9px; text-align: right; }
.node-manage { position: absolute; z-index: 3; top: 3px; right: 4px; width: 26px; height: 24px; padding: 0; border: 0; border-radius: 5px; color: #647a8e; background: transparent; font-size: 21px; line-height: 18px; }
.node-manage:hover, .node-manage:focus-visible { color: #0b719f; background: #e6f3fa; }
.node-star { position: absolute; left: 13px; bottom: 7px; color: #a97821; font-size: 12px; pointer-events: none; }
#branch-menu { position: fixed; z-index: 110; width: min(224px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow-y: auto; padding: 5px; border: 1px solid #c8d7e4; border-radius: 9px; background: #fff; box-shadow: 0 8px 30px #2549632b; }
.branch-menu-title { overflow: hidden; padding: 7px 9px; border-bottom: 1px solid #e6edf3; color: #687d90; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#branch-menu button { display: block; width: 100%; padding: 9px; border: 0; border-radius: 5px; color: #28485f; background: transparent; font-size: 12px; text-align: left; }
#branch-menu button:hover:enabled, #branch-menu button:focus-visible { background: #edf6fb; }
#branch-menu .danger { color: #a53232; border-color: #e5bbbb; background: #fff5f4; }
.branch-menu-hint { padding: 6px 9px; color: #7c8996; font-size: 11px; line-height: 1.5; }
.deleted-branches article { margin: 12px 0; padding: 13px; border: 1px solid #dbe5ed; border-radius: 8px; background: #f9fbfd; }
.deleted-branches strong { overflow-wrap: anywhere; }
.deleted-branches p { margin-top: 5px; color: #74869a; font-size: 11px; }
.map-empty button { align-self: flex-start; padding: 7px 10px; border: 1px solid #cbd6e2; border-radius: 6px; color: #21698c; background: #f2f8fb; }
.branch-pending { position: absolute; width: 204px; padding: 7px 10px; border: 1px dashed #8cbcd2; border-radius: 7px; color: #2b7497; background: #eff9fd; font-size: 10px; text-align: center; }
.map-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 12px; border-top: 1px solid #e1e7ee; color: #7a899c; background: #fff; font-size: 10px; }
.map-toolbar button, #conversation-actions button { border: 1px solid #cbd6e2; border-radius: 6px; padding: 6px 9px; color: #3b5068; background: #fff; font-size: 11px; }
.map-toolbar button:hover, #conversation-actions button:hover { border-color: #2588ba; color: #0a6e9b; }
#conversation-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 10px 16px; border-bottom: 1px solid #e6ebf1; background: #fff; }
#conversation-actions[hidden] { display: none; }
#conversation-actions label { color: #65758a; font-size: 11px; }
#conversation-actions select { margin-left: 4px; border: 1px solid #cbd6e2; border-radius: 5px; padding: 5px; color: #3b5068; background: #fff; font-size: 11px; }
.return-label { color: #2d708e; font-size: 10px; }
.pending-label { color: #815d20; font-size: 10px; }
#notice { max-height: 96px; overflow: auto; padding: 9px 16px; border-bottom: 1px solid #f1cf8d; color: #815d20; background: #fffaf0; font-size: 11px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
#notice[hidden] { display: none; }
#conversation { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 22px 24px 14px; }
.message { max-width: 820px; margin: 0 0 17px; }
.message.user { margin-left: auto; }
.message .label { margin: 0 0 5px; color: #74839a; font-size: 10px; }
.message.user .label { text-align: right; }
.message .body { padding: 16px 18px; border: 1px solid #e1e7ee; border-radius: 10px; color: #29394d; background: #fff; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.message.user .body { border-right: 3px solid #1684b9; background: #f0f8fc; }
.message.assistant .body { border-left: 3px solid #71849a; }
.message .body > :first-child { margin-top: 0; }
.message .body > :last-child { margin-bottom: 0; }
.message .body p { margin: 0 0 .85em; }
.message .body h1, .message .body h2, .message .body h3, .message .body h4, .message .body h5, .message .body h6 { margin: 1.25em 0 .55em; color: #172b43; line-height: 1.45; }
.message .body h1 { padding-bottom: .4em; border-bottom: 1px solid #e6edf3; font-size: 21px; }
.message .body h2 { font-size: 18px; }
.message .body h3 { font-size: 16px; }
.message .body h4, .message .body h5, .message .body h6 { font-size: 14px; }
.message .body ul, .message .body ol { margin: .5em 0 1em; padding-left: 1.6em; }
.message .body li { margin: .3em 0; }
.message .body li > p { margin: .3em 0; }
.message .body li > ul, .message .body li > ol { margin: .3em 0; }
.message .body blockquote { margin: 1em 0; padding: .65em 1em; border-left: 3px solid #90bdcf; color: #536e83; background: #f1f7fa; }
.message .body blockquote p:last-child { margin-bottom: 0; }
.message .body hr { margin: 1.4em 0; border: 0; border-top: 1px solid #e1e7ee; }
.message .body a { color: #117aa8; text-underline-offset: 3px; }
.message .body img { max-width: 100%; height: auto; }
.markdown-table { margin: 1em 0; overflow-x: auto; border: 1px solid #dce5ee; border-radius: 8px; }
.markdown-table table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.65; }
.markdown-table th, .markdown-table td { padding: 9px 12px; border-bottom: 1px solid #e3ebf2; text-align: left; vertical-align: top; }
.markdown-table th { color: #2c4c65; background: #eef4f8; font-weight: 650; white-space: nowrap; }
.markdown-table tr:nth-child(even) td { background: #f8fafc; }
.markdown-table tr:last-child td { border-bottom: 0; }
.message code { padding: 1px 4px; border-radius: 3px; color: #214b66; background: #edf3f7; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.message pre { overflow: auto; margin: 8px 0 0; padding: 9px 10px; border-radius: 6px; color: #dbeaf4; background: #1f2b36; font: 12px/1.55 ui-monospace, Menlo, monospace; white-space: pre-wrap; }
.message pre code { padding: 0; color: inherit; background: transparent; }
.message .markdown-fallback { margin: 0; padding: 0; color: inherit; background: transparent; font: inherit; white-space: pre-wrap; }
.markdown-code { margin: 1em 0; overflow: hidden; border-radius: 8px; background: #1f2b36; }
.code-language { padding: 6px 12px; border-bottom: 1px solid #ffffff14; color: #a7bdcf; background: #18232e; font: 11px/1.5 ui-monospace, Menlo, monospace; }
.message .markdown-code pre { margin: 0; padding: 13px 15px; border-radius: 0; white-space: pre; }
.message .markdown-code code { font-size: 12px; }
.hljs-comment, .hljs-quote { color: #91a4b7; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal { color: #b6a4fa; }
.hljs-string, .hljs-doctag, .hljs-regexp { color: #a1d7b6; }
.hljs-number, .hljs-symbol, .hljs-bullet { color: #e8bb84; }
.hljs-title, .hljs-section, .hljs-attr, .hljs-attribute { color: #8bc8f2; }
.hljs-built_in, .hljs-type { color: #75d4d0; }
.hljs-deletion { color: #f2a5a5; }
.hljs-addition { color: #a1d7b6; }
.mermaid-block { margin: 1em 0; overflow: hidden; border: 1px solid #dce7ef; border-radius: 10px; background: #f8fbfd; }
.mermaid-status { padding: 9px 13px; color: #658096; font-size: 12px; }
.mermaid-output { padding: 15px; overflow: auto; text-align: center; background: #fff; }
.mermaid-output:empty { display: none; }
.mermaid-image { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.mermaid-source { border-top: 1px solid #e3ebf2; }
.mermaid-source summary { padding: 7px 13px; color: #5e7b90; cursor: pointer; font-size: 11px; }
.message .mermaid-source pre { margin: 0; border-radius: 0; }
.mermaid-block[data-diagram-state="error"] .mermaid-status { color: #9a642e; }
.inline-explore { display: block; margin-top: 7px; padding: 0; border: 0; color: #1775a1; background: transparent; font-size: 11px; text-decoration: underline; }
.inline-explore:hover { color: #0b4c6c; }
.record { margin: 0 0 10px; border: 1px solid #e3d9bf; border-left: 3px solid #c4872c; border-radius: 7px; background: #fffcf5; }
.record summary { padding: 8px 10px; color: #826326; cursor: pointer; font-size: 11px; }
.record pre { overflow: auto; margin: 0; padding: 10px; border-top: 1px solid #f0e5cd; color: #5c4b2e; background: #fffcf5; font: 11px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; }
.thought-process { border-left: 2px solid #dce5ee; color: #66798c; }
.thought-process summary { padding: 5px 10px; cursor: pointer; font-size: 12px; }
.message.thought-process .thought-summary { padding: 8px 12px; border: 0; border-radius: 0; color: inherit; background: transparent; font-size: 12px; line-height: 1.7; }
.thought-process .thought-summary :is(h1, h2, h3, h4, h5, h6) { padding: 0; border: 0; color: inherit; font-size: 13px; }
.thinking { color: #75869a; font-size: 12px; }
.welcome, .map-empty { display: flex; flex-direction: column; gap: 8px; max-width: 580px; margin: 28px auto; padding: 25px; border: 1px dashed #cad6e2; border-radius: 11px; color: #738197; background: #fff; line-height: 1.6; }
.welcome h3, .map-empty strong { color: #31435a; font-size: 16px; }
.empty-branch { display: inline-block; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: #1289bd; font-size: 20px; line-height: 27px; text-align: center; }
.map-empty { margin: 24px; }
.composer-shell { padding: 12px 17px; border-top: 1px solid #e2e8ef; background: #fff; }
#composer { margin: 0; }
.composer-input { padding: 10px; border: 1px solid #cbd6e2; border-radius: 16px; background: #fff; box-shadow: 0 3px 12px #243e5608; }
.composer-input:focus-within { border-color: #278ab9; box-shadow: 0 0 0 2px #d1edf9; }
#prompt { display: block; width: 100%; resize: none; padding: 3px 4px 10px; border: 0; border-radius: 6px; outline: none; color: #23354a; background: transparent; line-height: 1.5; }
#prompt:focus-visible { outline: none; }
#prompt:disabled { color: #98a5b4; background: #f6f8fa; }
.composer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 4px; color: #62768a; font-size: 11px; }
.composer-tools, .composer-model-controls, .composer-running-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.composer-tools { flex-wrap: wrap; }
.composer-model-controls { margin-left: auto; max-width: 100%; }
.composer-bar button { flex-shrink: 0; min-height: 32px; padding: 7px 9px; border: 0; border-radius: 7px; color: #fff; background: #1289bd; font-size: 11px; font-weight: 650; white-space: nowrap; }
.composer-bar button:disabled { cursor: not-allowed; background: #aeb9c4; }
.composer-bar button.secondary { color: #40556b; background: transparent; }
.composer-bar button.secondary:hover:enabled { background: #edf3f7; }
.composer-bar select { min-width: 0; max-width: 100%; height: 32px; padding: 4px 6px; border: 0; border-radius: 7px; color: #304b60; background: #f3f6f9; font-size: 12px; cursor: pointer; }
.composer-bar select:disabled { cursor: not-allowed; opacity: .65; }
#model-select { width: 146px; flex: 1 1 146px; text-overflow: ellipsis; }
.composer-thinking { display: flex; flex-shrink: 0; align-items: center; gap: 2px; padding-left: 6px; border-radius: 7px; background: #f3f6f9; font-size: 10px; }
#thinking-select { max-width: 72px; }
.composer-running-actions { flex-wrap: wrap; flex-basis: 100%; justify-content: flex-end; }
.composer-running-actions:not(:has(button:not([hidden]))) { display: none; }
.composer-hint { margin: 7px 4px 0; color: #8495a7; font-size: 10px; }
button:disabled { cursor: not-allowed; opacity: .65; }
.cursor { color: #1289bd; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Workspace controls keep runtime choices visible while leaving the reading pane quiet. */
:root { --map-width: 46%; }
body { min-width: 0; }
[hidden] { display: none !important; }
button, select, input, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [role="separator"]:focus-visible { outline: 2px solid #1789bd; outline-offset: 2px; }
header { gap: 14px; padding: 12px 20px; }
#goal { font-size: 19px; }
.header-settings, .workspace-nav button, .node-tools button, #workspace-drawer button { padding: 7px 10px; border: 1px solid #cbd6e2; border-radius: 6px; color: #31536b; background: white; font-size: 12px; }
.header-settings { flex-shrink: 0; }
.learning-library-nav { display: flex; flex-shrink: 0; align-items: center; gap: 4px; padding-right: 12px; border-right: 1px solid #e3eaf0; }
.learning-library-nav button { padding: 8px 10px; border: 0; border-radius: 6px; color: #31536b; background: transparent; font-size: 12px; white-space: nowrap; }
.learning-library-nav button:hover, .learning-library-nav button:focus-visible { color: #0b719f; background: #edf6fb; }
.header-meta { max-width: 190px; }
.header-meta:has(#connection[hidden]) { display: none; }
.workspace-nav { display: flex; align-items: center; gap: 9px; height: 40px; padding: 5px 16px; border-bottom: 1px solid #dce3eb; background: #fff; }
.workspace-nav button { padding: 4px 9px; font-size: 11px; }
.workspace-nav > button { flex-shrink: 0; white-space: nowrap; }
.workspace-nav #session-new { color: #fff; border-color: #1289bd; background: #1289bd; font-weight: 650; }
.workspace-nav #session-new:hover:enabled { border-color: #0f719d; background: #0f719d; }
#session-history { margin-right: 4px; }
#mobile-chat, #mobile-map { display: none; }
#runtime-status { flex: 1; color: #536b80; font-size: 11px; }
#draft-status { color: #608291; cursor: pointer; font-size: 11px; }
main { height: calc(100dvh - 118px); grid-template-columns: minmax(0, var(--map-width)) 5px minmax(0, 1fr); gap: 0; }
#pane-resizer { cursor: col-resize; background: #e1e8ef; touch-action: none; }
#pane-resizer:hover, #pane-resizer:focus { background: #93c6dc; }
body[data-map-hidden="true"] main { grid-template-columns: minmax(0, 1fr); }
body[data-map-hidden="true"] .map-pane, body[data-map-hidden="true"] #pane-resizer { display: none; }
.map-search { position: relative; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #e3eaf0; background: #fff; }
.map-search > input { width: 100%; min-width: 60px; padding: 8px; border: 1px solid #cbd6e2; border-radius: 6px; font-size: 12px; }
.map-search label { flex-shrink: 0; color: #5f778c; font-size: 11px; }
#search-results { position: absolute; top: 100%; right: 10px; left: 10px; max-height: min(500px, 65vh); overflow: auto; border: 1px solid #cbd6e2; border-radius: 7px; background: #fff; box-shadow: 0 6px 20px #25496326; }
#search-results button { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #e9eef2; color: #29465c; background: white; font-size: 12px; line-height: 1.5; text-align: left; }
#search-results button:hover { background: #f0f8fc; }
#search-results p { padding: 16px; color: #75889a; font-size: 12px; }
#search-results small { margin-bottom: 4px; letter-spacing: 0; }
#context-path { flex-shrink: 0; overflow-x: auto; padding: 8px 18px; border-bottom: 1px solid #e5edf3; color: #4f6e83; background: #f3f9fc; font-size: 11px; white-space: nowrap; }
.node-tools { display: flex; flex-shrink: 0; gap: 6px; overflow-x: auto; padding: 7px 12px; border-bottom: 1px solid #e6edf3; background: #fff; }
.node-tools button { flex-shrink: 0; padding: 4px 7px; border: 0; background: #f1f6f9; font-size: 11px; }
#queue-status { flex-shrink: 0; max-height: 90px; overflow: auto; padding: 8px 16px; border-bottom: 1px solid #dce7ee; color: #4b7287; background: #f4f8fb; font-size: 11px; white-space: pre-wrap; }
#send-destination { margin-bottom: 7px; color: #5b7d91; font-size: 11px; line-height: 1.5; }
.attachment-control { position: relative; }
#attachment-menu { position: fixed; z-index: 110; width: min(220px, calc(100vw - 24px)); max-height: calc(100dvh - 16px); overflow-y: auto; padding: 5px; border: 1px solid #c8d7e4; border-radius: 8px; background: #fff; box-shadow: 0 6px 24px #2549632b; }
#attachment-menu button { display: block; width: 100%; padding: 9px 10px; color: #28485f; background: transparent; text-align: left; }
#attachment-menu button:hover:enabled, #attachment-menu button:focus-visible { background: #edf6fb; }
#attachment-menu p { padding: 7px 10px; border-top: 1px solid #e6edf3; color: #708497; font-size: 11px; line-height: 1.5; }
#attachment-status { margin: 0 0 7px; color: #5b7d91; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
#attachment-list { display: flex; gap: 8px; overflow-x: auto; }
#attachment-list > div { position: relative; flex-shrink: 0; margin-bottom: 7px; }
#attachment-list img { width: 80px; height: 65px; border: 1px solid #ccdae5; border-radius: 6px; object-fit: cover; }
#attachment-list button { position: absolute; right: 0; bottom: 0; padding: 3px 5px; border: 0; border-radius: 4px; color: #fff; background: #344d64dd; font-size: 10px; }
.message-image { display: block; max-width: 100%; max-height: 440px; margin-top: 8px; border-radius: 8px; object-fit: contain; }
#workspace-drawer { position: fixed; z-index: 100; inset: 0 0 0 auto; width: min(600px, 100vw); overflow-y: auto; border-left: 1px solid #ccd9e5; background: #fff; box-shadow: -12px 0 50px #19364a24; }
.drawer-heading { position: sticky; z-index: 1; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid #dce7ee; background: #fff; }
#drawer-body { padding: 22px; color: #36546a; font-size: 13px; line-height: 1.6; }
#drawer-body h3 { margin-bottom: 12px; color: #24485e; font-size: 15px; }
#drawer-body p { margin-bottom: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
#drawer-body label { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; color: #46667b; font-size: 12px; }
#drawer-body input:not([type="checkbox"]), #drawer-body select, #drawer-body textarea { width: 100%; padding: 9px 10px; border: 1px solid #c8d7e3; border-radius: 6px; color: #25465c; background: #fff; }
#drawer-body textarea { resize: vertical; line-height: 1.6; }
#drawer-body button { margin: 4px 5px 4px 0; }
#drawer-body button[type="submit"], #drawer-body form > button:first-of-type { color: white; border-color: #1289bd; background: #1289bd; }
#drawer-body button.danger { color: #a53232; border-color: #e5bbbb; background: #fff5f4; }
.settings-section { margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid #e0e9ef; }
.profile-service-bar { display: flex; align-items: center; gap: 8px; }
.profile-service-bar > label { flex: 1; min-width: 0; }
.settings-hint { color: #708497; font-size: 11px; line-height: 1.6; }
.model-entry-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#drawer-body .model-entry-actions button { margin: 0; }
#model-entry-hint { margin-top: 8px; }
.settings-advanced summary { padding: 8px 0; color: #526f83; cursor: pointer; font-size: 12px; }
#profile-form > .settings-advanced { margin-top: 14px; padding: 8px 12px; border: 1px solid #e0e9ef; border-radius: 8px; background: #f9fbfd; }
#profile-status { margin-top: 10px; color: #426a81; font-size: 12px; }
.model-selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#model-selection-count { color: #708497; font-size: 11px; }
.profile-model-list { max-height: 280px; overflow-y: auto; border: 1px solid #d5e1ea; border-radius: 8px; }
#drawer-body .model-choice { display: flex; flex-direction: row; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-bottom: 1px solid #e9eff4; cursor: pointer; }
#drawer-body .model-choice:last-child { border-bottom: 0; }
#drawer-body .model-choice:hover { background: #f2f8fc; }
.model-choice input { flex-shrink: 0; }
.model-choice span { min-width: 0; overflow-wrap: anywhere; }
.model-choice strong { color: #2d4b62; font-size: 12px; font-weight: 550; }
.model-choice small { margin-top: 2px; letter-spacing: 0; }
.profile-model-list > p { padding: 12px; }
.profile-save { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
#drawer-body .profile-save button { flex-shrink: 0; }
.form-row { display: flex; gap: 10px; }
.form-row > label { flex: 1; min-width: 0; }
#drawer-body .check-label { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.session-list article, .draft-item { margin-top: 15px; padding: 13px; border: 1px solid #dbe5ed; border-radius: 8px; background: #f9fbfd; }
.session-list small { margin-top: 5px; letter-spacing: 0; }
#drawer-body .session-select { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 0; color: #36546a; font-size: 13px; cursor: pointer; }
.session-select input { flex-shrink: 0; margin-top: 4px; }
.session-select strong { overflow-wrap: anywhere; }
.session-bulk { position: sticky; z-index: 1; top: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 16px; padding: 8px 10px; border: 1px solid #dbe5ed; border-radius: 8px; background: #f4f9fc; }
#drawer-body .session-bulk label, #drawer-body .session-bulk button { margin: 0; }
#session-selection-count { flex: 1; min-width: 80px; color: #687f92; font-size: 11px; }
.session-delete-titles { max-height: 220px; overflow-y: auto; padding-left: 22px; overflow-wrap: anywhere; }
#drawer-body .directory-item { display: block; width: 100%; padding: 12px; text-align: left; line-height: 1.6; }
.library-group { margin-top: 24px; }
#drawer-body .library-group > h3 { margin-bottom: 8px; color: #718096; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.library-card { margin-top: 10px; padding: 15px; border: 1px solid #dbe5ed; border-radius: 9px; background: #f9fbfd; }
.library-card strong { display: block; color: #29465c; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.library-note-preview { display: -webkit-box; overflow: hidden; margin-top: 8px; -webkit-box-orient: vertical; -webkit-line-clamp: 4; color: #587085; white-space: pre-wrap; }
.library-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
#drawer-body .library-actions button { margin: 0; padding: 5px 8px; background: #fff; font-size: 11px; }
.library-empty { padding: 36px 14px; color: #74879a; text-align: center; }
#selection-actions { position: fixed; z-index: 90; bottom: 155px; left: 50%; display: flex; gap: 4px; padding: 7px; border: 1px solid #c8d8e5; border-radius: 8px; background: #fff; box-shadow: 0 6px 28px #27475e33; transform: translateX(-15%); }
#selection-actions button { padding: 7px 10px; border: 0; border-radius: 5px; color: #21698c; background: #eef7fb; font-size: 12px; }
@media (max-width: 1250px) { .header-meta { display: none; } }
@media (max-width: 850px) {
	header { height: 72px; gap: 6px; padding: 10px 14px; }
	.goal-block { flex: 1; min-width: 0; }
	.learning-library-nav { padding-right: 0; border-right: 0; }
	.learning-library-nav button { padding: 7px; }
	#goal { font-size: 17px; }
	.header-settings { padding: 7px; }
	main { height: calc(100dvh - 112px); display: flex; }
	#mobile-chat, #mobile-map { display: block; }
	#toggle-map, #pane-resizer, #draft-status { display: none; }
	.workspace-nav { gap: 6px; padding: 5px 10px; }
	#runtime-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.map-pane { display: none; }
	.conversation-pane { width: 100%; }
	body[data-mobile-pane="map"] .map-pane { display: flex; width: 100%; }
	body[data-mobile-pane="map"] .conversation-pane { display: none; }
	#conversation { padding: 16px 13px; }
	.message .body { padding: 13px; font-size: 14px; }
	.bar { min-height: 58px; padding: 11px 14px; }
	.composer-shell { padding: 10px; }
	.composer-hint { display: none; }
	#selection-actions { bottom: 175px; left: 50%; width: max-content; max-width: 95vw; transform: translateX(-50%); }
}
