#workspace{display:flex;flex:1;min-height:0;min-width:0;position:relative;overflow:hidden;--outline-width:33.333333%;--outline-map-min:clamp(56px,16vw,180px)}#workspace>#canvas{min-width:0;min-height:0;flex:1}
.toolbar .thinking-tools{background:#ffc5ac;border:1px solid #e19b7d;gap:5px;padding:3px 5px}.toolbar .thinking-tools button{background:#fff1e7;color:#633d27;border-color:#dba58b}.toolbar .thinking-tools button:hover{background:#ffe0cb}.toolbar .thinking-tools button[aria-pressed="true"]{background:#f5ac83;color:#492c1d;border-color:#b8714f}.toolbar .thinking-tools button:disabled{opacity:1;background:#f5e5da;color:#826b5c;border-color:#d6bbaa}.toolbar .thinking-tools #focusButton,.toolbar .thinking-tools [data-action="showMapName"]{margin:0}

#outlinePanel{width:var(--outline-width);min-width:min(340px,calc(100% - var(--outline-map-min) - 9px));max-width:calc(100% - var(--outline-map-min) - 9px);display:flex;flex-direction:column;min-height:0;background:#f7faff;color:#20374f;border-left:1px solid #a8bed7}#outlinePanel[hidden],#outlineDivider[hidden]{display:none!important}
#outlineDivider{width:9px;flex:none;cursor:col-resize;background:#d7e4f3;touch-action:none;position:relative}#outlineDivider::after{content:"";position:absolute;top:40%;bottom:40%;left:3px;border-left:2px dotted #7092ba}#outlineDivider:hover,#outlineDivider:focus-visible{background:#adcaf0;outline:0}
.outline-heading{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #d5e0ee;background:#e5edf8}.outline-heading strong{font-size:16px}.outline-heading label{margin-left:auto;display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}.outline-heading input{accent-color:#244b78}.outline-heading button{font-size:20px;line-height:1;padding:3px 7px;background:#f7faff;border-color:#b5c7de}
.outline-tip{margin:0;padding:8px 14px;font-size:11px;line-height:1.5;color:#4d6683;border-bottom:1px solid #e0e8f3}
#outlineText{display:block;height:100%;min-height:0;width:100%;resize:none;border:0;border-radius:0;outline:0;padding:14px 18px;font:15px/1.7 Consolas,"Cascadia Mono","Liberation Mono","Courier New",monospace;letter-spacing:0;tab-size:3;white-space:pre;overflow:auto;background:#fff;color:#20374f;box-sizing:border-box;overscroll-behavior:contain;text-align:left}#outlineText:focus{box-shadow:inset 3px 0 #4b7bb6}#outlineText[aria-invalid="true"]{box-shadow:inset 3px 0 #ba4152}
.outline-bottom{display:flex;align-items:center;gap:6px;min-height:38px;padding:5px 12px;border-top:1px solid #d5e0ee;font-size:11px}.outline-bottom span{flex:1}.outline-bottom button{padding:3px 10px;background:#e6f0ff;border-color:#b5c7de}.outline-error{color:#a3263c;font-weight:600}
.tablet-ui .toolbar .thinking-tools{display:flex!important}
@media(max-width:950px){#outlinePanel{min-width:min(300px,calc(100% - var(--outline-map-min) - 9px));max-width:calc(100% - var(--outline-map-min) - 9px)}#outlineText{font-size:14px;padding:12px}.outline-heading{padding:8px;gap:6px}.outline-heading label{font-size:11px}.outline-tip{padding:6px 9px}}
@media(max-width:700px),(pointer:coarse) and (max-width:1000px) and (max-height:500px){#workspace.outline-open #outlinePanel{min-width:0;width:var(--outline-width);max-width:calc(100% - var(--outline-map-min) - 9px)}#workspace.outline-open #outlineDivider{display:block}.outline-heading{flex-wrap:wrap}.outline-heading strong{flex:1}.outline-heading label{order:3;flex-basis:100%;margin:0}.outline-heading button{min-width:32px}#outlineText{font-size:16px;line-height:1.7}#outlinePanel{touch-action:pan-x pan-y}}
@media print{#workspace{display:none!important}#outlinePanel,#outlineDivider{display:none!important}#workspace>#canvas{width:100%;height:180mm}}

#outlineEditor{position:relative;flex:1;min-height:110px;overflow:hidden}#outlineText{padding-right:36px}#outlineOverflow{position:absolute;top:0;bottom:0;width:26px;pointer-events:none;overflow:hidden}.outline-overflow-arrow{position:absolute;right:3px;width:19px;height:19px;line-height:18px;text-align:center;font:700 16px/18px system-ui,sans-serif;color:white;background:#8e4b2b;border:1px solid #fff;border-radius:4px;box-shadow:0 0 0 5px white;user-select:none}.outline-tip{line-height:1.9}

.outline-tip{display:flex;align-items:baseline;flex-wrap:wrap;row-gap:3px}.outline-tip-item{white-space:nowrap}.outline-tip-dot{padding:0 14px;color:#7890a8}.outline-tip b{font-weight:750;color:#34536e}

.toolbar .thinking-tools button[aria-pressed="true"],.toolbar .thinking-tools button[aria-pressed="true"]:hover{background:#fff!important;color:#633d27!important;border-color:#ba7959;box-shadow:inset 0 -2px #ba7959}

.toolbar .tool-group.thinking-tools button{background:#fff1e7!important;color:#633d27;border-color:#dba58b}.toolbar .tool-group.thinking-tools button:hover{background:#ffe0cb!important}.toolbar .tool-group.thinking-tools button:disabled{opacity:1;background:#f5e5da!important;color:#826b5c;border-color:#d6bbaa}.toolbar .tool-group.thinking-tools button[aria-pressed="true"],.toolbar .tool-group.thinking-tools button[aria-pressed="true"]:hover{background:#fff!important;color:#633d27!important;border-color:#ba7959;box-shadow:inset 0 -2px #ba7959}

/* Every map tab stays visible; the nav grows instead of clipping or scrolling. */
body #documents,body.phone-ui #documents,body.tablet-ui #documents{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:center;flex:0 0 auto;height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal;min-height:46px;width:100%;box-sizing:border-box}body #documents .doc,body.phone-ui #documents .doc{flex:0 1 auto;max-width:calc(100% - 16px);min-width:0;box-sizing:border-box}body #documents .doc>button:first-child{min-width:0;max-width:100%}body #documents .map-tab-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body #documents>.new-map{flex:none;margin-left:0}body #documents::-webkit-scrollbar{display:none}

#earlierMapsDialog{width:760px;max-width:94vw;max-height:85dvh;overflow:auto}.earlier-map-row{display:flex;align-items:center;gap:8px;margin:8px 0}.earlier-map-row>span{flex:1;min-width:0;overflow-wrap:anywhere}#documents>.earlier-maps{width:auto;min-width:0;max-width:100%;white-space:normal}

/* Presentation aid: never intercept clicks, enter exported content or print. */
#positionHighlight{position:fixed;z-index:2147483647;width:66px;height:66px;margin:0;transform:translate(-50%,-50%);border:1px solid rgba(220,70,82,.28);border-radius:50%;background:rgba(239,88,99,.17);box-shadow:none;pointer-events:none!important;user-select:none}#positionHighlight[hidden]{display:none!important}@media print{#positionHighlight{display:none!important}}

/* Screen-only view mode; model data and all export renderers remain untouched. */
@media screen{body.screen-branch-colors #nodes>.node[style*="--screen-branch-color"],body.screen-branch-colors #nodes>.node[style*="--screen-branch-color"] .label,body.screen-branch-colors #nodes>.node[style*="--screen-branch-color"] .topic-text,body.screen-branch-colors #nodes>.node[style*="--screen-branch-color"] .topic-text *,body.screen-branch-colors #nodes>.node[style*="--screen-branch-color"] .topic-number{color:var(--screen-branch-color)!important}body.screen-branch-colors #nodes>.node.down-branch[style*="--screen-branch-color"]{border-color:var(--screen-branch-color)!important}body.screen-branch-colors #lines>path{visibility:hidden}}#lines>.screen-branch-color-lines{pointer-events:none}@media print{#lines>.screen-branch-color-lines{display:none!important}}

.node[style*="--topic-align"] .label,.node[style*="--topic-align"] textarea{text-align:var(--topic-align)!important}

.toolbar .depth-indicator,.toolbar .depth-indicator>span{font-size:12px}body.tablet-ui .toolbar .depth-indicator,body.tablet-ui .toolbar .depth-indicator>span{font-size:13.5px}

.info-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.info-dialog-heading h2{margin:0}.info-dialog-close{flex:none;width:34px;height:34px;padding:0;font-size:24px;line-height:1;border-radius:4px;background:#edf2f7;border:1px solid #bdcbd8;color:#223344}

.text-appearance-subgroup{display:inline-flex;align-items:center;gap:0;margin:0 6px;padding:0 3px;border:0;border-radius:5px;background:#f0e7f7;box-shadow:inset 0 0 0 1px #b7a4ca}

#relationsDialog,#mapFiltersDialog{width:760px;max-width:94vw;max-height:86dvh;overflow:auto}#relationsDialog label,#mapFiltersDialog label{display:flex;align-items:center;gap:10px;margin:12px 0}#relationsDialog select,#relationsDialog input:not([type=checkbox]),#mapFiltersDialog select{flex:1;min-width:0;padding:7px;font:inherit}#relationError{color:#b42324}.relation-row{display:flex;align-items:center;gap:6px;border-top:1px solid #dbe2e8;padding:8px 0}.relation-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.relation-row>button{flex:none}#mapFilterState{position:absolute;top:8px;left:10px;right:10px;z-index:20;display:flex;align-items:center;justify-content:center;gap:12px;background:#fff1bf;border:1px solid #dbb64f;border-radius:5px;padding:5px;font-size:12px}#mapFilterState[hidden]{display:none}#mapFilterState button{font-size:12px;padding:3px 8px}#openMapFilters{margin-top:8px}@media print{#mapFilterState{display:none!important}}

/* Every toolbar group shares one outer height; state frames stay inside it. */
.toolbar{--tool-button-height:28px}
@media(pointer:coarse){.toolbar{--tool-button-height:32px}}
.tablet-ui .toolbar{--tool-button-height:44px}
.toolbar .tool-group{height:calc(var(--tool-button-height) + 6px);min-height:calc(var(--tool-button-height) + 6px);padding-top:3px;padding-bottom:3px;border-width:0;box-sizing:border-box}
.toolbar .tool-group button{height:var(--tool-button-height);min-height:var(--tool-button-height);max-height:var(--tool-button-height)}
.toolbar .tool-group.thinking-tools{box-shadow:inset 0 0 0 1px #e19b7d}
.text-appearance-subgroup #textColorButton{margin-left:0}

#mapSwitcherDialog{box-sizing:border-box;width:620px;max-width:94vw;max-height:90dvh;overflow:auto;padding:24px;background:#f7f9fb}#mapSwitcherLabel{display:block;margin:14px 0 8px}#mapSwitcherList{border:1px solid #9ab9d0;border-radius:3px;padding:4px;background:white;max-height:55dvh;overflow:auto}#mapSwitcherList>[role=option]{display:flex;align-items:baseline;gap:12px;padding:8px 10px;cursor:pointer;border:1px solid transparent;border-radius:2px;line-height:1.4;font-weight:400}#mapSwitcherList>[role=option]>span:first-child{flex:none;min-width:28px;font-weight:400}#mapSwitcherList>[role=option]>span:last-child{min-width:0;overflow-wrap:anywhere;font-weight:400}#mapSwitcherList>[aria-selected=true]{background:#dcebf7;border-color:#9dbfdd}#mapSwitcherList strong{font-weight:700}#mapSwitcherList:focus-visible{outline:2px solid #3182c4;outline-offset:2px}

/* Links and relations form an independent, contrasting warm sand group. */
.toolbar .tool-group.reference-tools{background:#e9d39a}
.toolbar .reference-tools .web-link-tool{margin-left:0}
.toolbar .reference-tools [data-action="relations"]{display:inline-flex;align-items:center;gap:5px}
.relation-tool-icon{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}

#relationsDialog{position:fixed;inset:auto;margin:0;z-index:1100;box-shadow:0 8px 32px #18334b40;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}

@media screen{#lines .relation-selected>path{stroke:#592471;stroke-width:2.25}}

#relationsDialog{width:620px;box-sizing:border-box}
#relationsDialog .info-dialog-heading{user-select:none;touch-action:none;padding-bottom:4px}
#relationsDialog .relation-endpoints{display:grid;grid-template-columns:38px minmax(0,1fr) 36px;gap:10px;align-items:center;margin:12px 0}
#relationsDialog .relation-endpoints label{margin:0}
#relationsDialog .relation-endpoints select{width:100%;box-sizing:border-box}
#relationSwap{grid-column:3;grid-row:1 / 3;align-self:center;padding:6px;font-size:22px;line-height:1.2}
#relationsDialog .dialog-actions{padding-bottom:14px}
@media(max-width:480px){#relationsDialog .relation-endpoints{grid-template-columns:34px minmax(0,1fr) 32px;gap:6px}.relation-row{flex-wrap:wrap}.relation-row>span{flex-basis:100%}}

#outlineOverflow .outline-overflow-arrow{pointer-events:auto;cursor:pointer;padding:0;min-width:0;min-height:0;box-sizing:border-box;margin:0}
#outlineOverflow .outline-overflow-arrow:focus-visible{outline:2px solid #174f84;outline-offset:2px}
#searchTitle::after,#noteTitle::after,#relationsTitle::after{content:"";display:inline-block;width:21px;height:21px;margin-left:12px;vertical-align:-3px;opacity:.85;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23436888' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M2 12h20M8.5 5.5 12 2l3.5 3.5M8.5 18.5 12 22l3.5-3.5M5.5 8.5 2 12l3.5 3.5M18.5 8.5 22 12l-3.5 3.5'/%3E%3C/svg%3E")}
@media print{#searchTitle::after,#noteTitle::after,#relationsTitle::after{display:none}}

.toolbar .tool-group.thinking-tools button[aria-pressed="true"],.toolbar .tool-group.thinking-tools button[aria-pressed="true"]:hover{text-decoration:none;box-shadow:inset 0 1px 3px #7c492b35,inset 0 -1px #ba7959}

#relationsDialog .relation-caption-field{position:relative;display:flex;flex:1;min-width:0}
#relationsDialog .relation-caption-field input{width:100%;padding-right:32px;box-sizing:border-box}
#relationClearLabel{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px;height:24px;padding:0;line-height:20px;font-size:19px;border:0;background:transparent;color:#526577}
#relationClearLabel:hover{background:#e8eef4}
#relationClearLabel[hidden]{display:none}

.toolbar .tool-group.thinking-tools button{font-weight:400}
.toolbar .tool-group.thinking-tools button[aria-pressed="true"]{font-weight:700}

.header-links #idea{display:inline-flex;align-items:center;gap:5px;background:#fff0a6;color:#684714;border:1px solid #d9b34c;font-weight:700;box-shadow:0 1px 3px #152d4220}
.header-links #idea:hover{background:#ffe27c;border-color:#b88924}
.idea-icon{width:19px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.features-together{color:#684714;font-weight:700;margin:8px 0 16px}
