/* v1.2: the user's monochrome toolbar, map list, and MiMind-style controls. */
:root{--blue:#171717;--line:#e2e2e2;--muted:#7e838a;--header:80px;color:#202124;background:#fff}
body{font-family:MapSans,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.header{background:#fff;border-bottom:1px solid #e8e8e8;box-shadow:none;padding:10px 20px;gap:20px}
.brand{gap:12px;min-width:200px;max-width:310px;text-align:left}
.brand img{width:48px;height:48px;object-fit:contain;border-radius:12px;background:#000;box-shadow:0 2px 7px #00000012}
.brand strong{font-size:19px;color:#1b1b1b;letter-spacing:0}
.brand small{font-size:12px;color:#888;font-weight:400}
.toolbar,.headerRight{gap:7px}.toolbar{margin-left:auto}.headerRight{margin-left:0}
.tool,.iconbtn{border:1px solid #e3e3e3;border-radius:12px;background:#fff;color:#252525;box-shadow:0 1px 3px #00000006}
.tool.ghost{border:1px solid #e3e3e3}.tool:hover,.iconbtn:hover{background:#f4f4f4;color:#111}
.tool.selected,.modeSwitch .selected{background:#171717;border-color:#171717;color:white}
.tool-separator{background:#e8e8e8}.modeSwitch{margin:0;gap:0}.modeSwitch .tool{border-radius:12px}
.primary{background:#171717;border:1px solid #171717;color:#fff;box-shadow:none;border-radius:11px}
.primary:hover{background:#323232;border-color:#323232}.secondary{border-color:#e2e2e2;color:#282828;background:#fff;box-shadow:none;border-radius:11px}.secondary:hover{background:#f7f7f7;border-color:#bbb}
.textbtn{color:#323232}.dangerText{color:#c93d46!important}
.eyebrow{color:#7b7d82}.breadcrumb,.breadcrumb span,.breadcrumb button{color:#5c6269}.jumpBar .chip{background:#fafafa;border:1px solid #e7e7e7;color:#50555a}.jumpBar .chip:hover{background:#eee;color:#111}
.viewport{background-image:linear-gradient(#e9e9e980 1px,transparent 1px),linear-gradient(90deg,#e9e9e980 1px,transparent 1px);background-size:24px 24px}
.viewport.cameraMode,.viewport.cameraMode .mapNode{cursor:grab}.viewport.cameraMode.dragging,.viewport.cameraMode.dragging .mapNode{cursor:grabbing}
.mapNode{cursor:pointer}.mapNode.selected .selectionHalo{stroke:#687888;stroke-width:2;stroke-dasharray:7 5;fill:#ffffff10}
.mapEdge{cursor:pointer}.edgeHit{pointer-events:stroke}.edgeHalo,.edgeLine{pointer-events:none}.mapEdge:focus-visible .edgeHalo{stroke:#a8c9ff;stroke-width:9}.horizonLabel{cursor:pointer}.horizonLabel:hover rect{stroke:#333;stroke-width:2}
.motion-flow{animation:link-flow 1.8s linear infinite}.motion-pulse{animation:link-pulse 2s ease-in-out infinite}.motion-particles{animation:link-flow 1.3s linear infinite}
@keyframes link-flow{to{stroke-dashoffset:-36}}@keyframes link-pulse{0%,100%{opacity:1}50%{opacity:.32}}
.zoomtools{position:absolute;right:15px;bottom:18px;left:auto;padding:0;display:flex;flex-direction:column;align-items:flex-end;gap:8px;background:none;border:none;box-shadow:none;border-radius:0}
.zoomtools>.iconbtn{width:46px;height:46px;background:#fffffff2;border:1px solid #e1e1e1;box-shadow:0 2px 8px #00000008;border-radius:13px}
.zoomtools>.cameraButton{min-width:112px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;background:#fffffff2;border:1px solid #e1e1e1;border-radius:13px;padding:9px 14px;font-size:12px;box-shadow:0 2px 8px #00000008}
.cameraButton.active{background:#171717;color:white;border-color:#171717}.cameraButton span{font-size:19px}
.zoomtools>span{display:none}.zoomtools>output{order:10;font-size:11px;min-width:46px;text-align:center;color:#777;background:#ffffffd9;padding:4px;border-radius:7px}
.zoomtools #btnCenter{display:inline-flex}.zoomtools #btnZoomIn{order:1}.zoomtools #btnZoomOut{order:2}.zoomtools #btnFit{order:3}.zoomtools #btnCenter{order:4}
.mapHint{bottom:16px;left:15px;max-width:calc(100% - 155px);font-size:11px;color:#7a7d82;background:#ffffffdb;border:1px solid #ebebeb;box-shadow:none}
.bottomnav{background:#fff;border-top:1px solid #e6e6e6;gap:0;justify-content:space-around}
.bottomnav button{color:#8a8a8a;min-width:0;width:20%;height:100%;border-radius:0;padding:10px 10px 9px;font-size:11px}.bottomnav button.active{color:#171717;background:#ededed}.bottomnav button.active:after{display:none}.bottomnav button .icon{width:23px;height:23px}
.appFooter{color:#898989;border-color:#ededed}.appFooter #saveFlag[data-state=saved]{color:#798575}
.pageInner{max-width:1120px;padding:35px 26px 65px}.pageHead{margin-bottom:25px}.pageHead h1{color:#1d1d1f;font-size:30px;font-weight:700;letter-spacing:-.7px}.pageHead p{color:#858585}.pageHead .eyebrow{display:none}.pageActions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.pageActions button{min-height:47px;padding:10px 17px}
#projectCards{display:flex;flex-direction:column;gap:14px}.mapListRow{display:flex;gap:20px;align-items:center;background:#fff;border:1px solid #e2e2e2;border-radius:15px;padding:20px;min-height:95px;cursor:pointer;user-select:none;-webkit-user-select:none;transition:border-color .15s,background .15s}.mapListRow:hover{background:#fafafa;border-color:#aaa}.mapListRow:focus-visible{outline:3px solid #aeb8c4;outline-offset:3px}.mapListIcon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:12px;background:#f5f5f5;color:#5b5b5b}.mapListIcon .icon{width:27px;height:27px}.mapListText{min-width:0}.mapListRow h2{font-size:17px;font-weight:600;line-height:1.4;margin:0 0 7px;color:#252525;overflow-wrap:anywhere}.mapListRow p{font-size:13px;color:#929292;margin:0;line-height:1.5}.quietInfo{font-size:12px;color:#969696;line-height:1.8;margin-top:20px}
.card,.panel{border-color:#e2e2e2;box-shadow:none}.cardMark{color:#555;background:#f3f3f3}.card h2{color:#252525}.status{color:#5c725a;background:#eff3ed}.profileGrid .panel p{color:#757575}
.selectionBar{position:absolute;display:block;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;max-width:none;left:0;top:0;bottom:auto;right:auto;transform:none;overflow:visible;pointer-events:none;z-index:12}
.selectionOutline{position:absolute;inset:0;border:1.5px dashed #9ca8b4;border-radius:9px;pointer-events:none}
.nodeActions{position:absolute;display:flex;gap:1px;padding:3px;background:#f1f3f7;border:1px solid #c6cdd8;border-radius:10px;box-shadow:0 2px 8px #192c4525;pointer-events:auto;max-width:none}
.nodeActions.top{bottom:calc(100% + 7px);left:50%;transform:translateX(-50%)}.nodeActions.bottom{top:calc(100% + 7px);left:50%;transform:translateX(-50%)}.nodeActions.left{right:calc(100% + 6px);top:50%;transform:translateY(-50%);flex-direction:column}.nodeActions.right{left:calc(100% + 6px);top:50%;transform:translateY(-50%);flex-direction:column}
.selectionBar .nodeActions button{width:49px;height:45px;min-width:0;min-height:44px;padding:3px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:6px;background:none;color:#2c3440;pointer-events:auto}
.nodeActions button span{font-size:8px;line-height:1.1;white-space:nowrap;letter-spacing:-.1px}.nodeActions button .icon{width:19px;height:19px}.nodeActions button:hover{background:#dde4ef}
.canvasMenu{position:absolute;z-index:18;min-width:225px;padding:6px;background:#fff;border:1px solid #d6d6d6;border-radius:12px;box-shadow:0 6px 30px #00000018}.canvasMenu button{width:100%;min-height:44px;display:flex;align-items:center;gap:10px;text-align:left;padding:8px 10px;border-radius:7px;font-size:13px}.canvasMenu button:hover{background:#f2f2f2}
.connectBanner{position:absolute;top:13px;left:50%;transform:translateX(-50%);z-index:18;display:flex;gap:12px;align-items:center;padding:5px 5px 5px 16px;border:1px solid #d7d7d7;border-radius:12px;background:#fff;box-shadow:0 3px 20px #00000012;font-size:13px}.connectBanner .iconbtn{width:35px;height:35px;border:0;box-shadow:none}
.notePanel{width:540px;border-color:#dedede;box-shadow:-10px 0 45px #00000012}.noteHead{padding:24px 25px 19px}.noteHead h2{font-size:20px;font-weight:700;line-height:1.4;color:#202124}.noteHead .eyebrow{font-size:10px;color:#888;letter-spacing:.6px;margin-bottom:8px}.instructionLabel{display:flex;align-items:center;justify-content:space-between;gap:15px;border-block:1px solid #ededed;padding:12px 25px;flex-shrink:0}.instructionLabel h3{font-size:15px;margin:0;font-weight:600;color:#555}.instructionLabel label{display:flex;align-items:center;gap:6px;font-weight:400;font-size:11px;color:#888}.instructionLabel select{margin:0;width:65px;min-height:33px;font-size:12px;padding:5px 8px;border-radius:7px}.notePanel>.richbar{padding:7px 20px;border-bottom:1px solid #eee;flex-shrink:0;gap:2px}.richbar button{height:38px;width:41px;min-height:38px;color:#393e44}.notePane{padding:23px 28px 35px}.instructionText{font-size:17px;color:#2c3036;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;outline:none;min-height:150px;letter-spacing:.05px;tab-size:4}.instructionText:empty:before{content:attr(data-placeholder);color:#a0a0a0}.instructionText .noteHeading{display:block;font-size:1.08em;font-weight:700;line-height:1.5;color:#17191d;margin:17px 0 4px;white-space:pre-wrap}.instructionText h1,.instructionText h2,.instructionText h3{font-size:1.2em;font-weight:700;line-height:1.45;color:#17191d;margin:24px 0 10px;letter-spacing:-.2px}.instructionText p,.instructionText div{font-size:inherit;color:inherit;line-height:inherit;margin:0 0 12px}.instructionText ul,.instructionText ol{white-space:normal;padding-left:25px;margin:12px 0 20px}.instructionText li{margin:6px 0;white-space:pre-wrap}.instructionText blockquote{border-left:3px solid #c7cbd0;padding:5px 0 5px 17px;margin:17px 0;color:#60656b}.instructionText img{max-width:100%;height:auto;display:block;border-radius:8px;margin:16px 0}.instructionText:focus{box-shadow:none}.instructionText[contenteditable=true]{cursor:text}.instructionText .leadingWhitespace{display:none}.editorStatus{font-size:11px;color:#909090;padding-top:20px}.notePane>#saveNote{width:auto;min-width:125px}.rawDetails{margin-top:28px;border-color:#e7e7e7;color:#898989}.rawDetails summary{font-size:12px;min-height:44px;display:flex;align-items:center;cursor:pointer}.rawDetails pre{font-size:12px;line-height:1.75;color:#666;background:#fafafa;padding:14px;border-radius:10px;max-height:450px;overflow:auto}.originalMedia img{background:#fafafa}
.dialog{border:1px solid #dedede;border-radius:17px;color:#222;box-shadow:0 20px 100px #00000030;background:#fff}.dialog::backdrop{background:#00000060;backdrop-filter:blur(2px)}.dialogHead{padding:21px 24px 15px}.dialogHead h2{color:#222;font-size:22px;font-weight:600;line-height:1.4}.dialogHead .iconbtn{background:#f7f7f7}.dialogBody{padding:14px 25px 25px}.dialogBody p{color:#838383;font-size:13px}.dialogFoot{background:#fff;border-color:#eee;padding:16px 24px 20px}.dialogBody input,.dialogBody textarea,.dialogBody select{border-color:#dedede;color:#282828}.dialogBody label{font-size:13px;font-weight:500;color:#454545}.dialogList button{border-color:#e6e6e6;color:#333}.dialogList button:hover{background:#f6f6f6;border-color:#b7b7b7}.wideDialog{width:780px}.fieldRow{gap:15px}.settingRow{border-color:#efefef}
.settingsSection{padding:22px;border:1px solid #e4e4e4;border-radius:15px;margin:0 0 20px;background:#fff}.settingsSection:last-child{margin-bottom:0}.settingsSection h3{font-size:17px;font-weight:600;color:#252525;margin:0 0 13px}.settingsSection p{font-size:13px;line-height:1.75;color:#929292;margin-bottom:18px}.settingsSection .settingRow label{margin:0}.settingsSection>.settingRow{margin-bottom:12px}.settingsSection label:last-child{margin-bottom:0}.scalePreview{border:1px solid #e9e9e9;border-radius:15px;overflow:hidden;margin:16px 0;background:#fff}.scalePreview svg{display:block;width:100%;height:230px}.scaleHeading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:15px 0 10px}.scaleHeading b{font-size:14px;font-weight:500}.scaleHeading output{font-size:27px;font-weight:600;color:#1c1c1c}.rangeEnds{display:flex;justify-content:space-between;font-size:11px;color:#aaa;margin:6px 0 18px}.scaleExact{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:14px}.scaleExact label{max-width:160px;margin:0}.scaleExact .secondary{font-size:12px;min-height:45px}.scalePresets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.scalePresets button{border:1px solid #dedede;border-radius:10px;min-height:44px;font-size:13px}.scalePresets button.selected{background:#171717;color:white;border-color:#171717}.scalePresets button:hover{border-color:#555}.connectionPreview{border:1px solid #ededed;border-radius:12px;margin-bottom:19px;background:#fcfcfc;overflow:hidden}.connectionPreview svg{display:block;width:100%;max-height:110px}.inheritColor{display:flex;align-items:center;gap:10px;font-size:12px!important;color:#777!important}.inheritColor input{margin:0}
.connectionStatus{display:inline-flex;align-items:center;gap:7px;border:1px solid #e4e4e4;background:#f6f6f6;border-radius:25px;padding:6px 10px;font-size:11px;color:#7a7a7a;margin-bottom:12px}.connectionStatus:before{content:'';width:6px;height:6px;border-radius:50%;background:#a1a1a1}.backupGrid{display:flex;flex-direction:column;gap:22px;margin-bottom:24px}.backupGrid b{font-size:13px;font-weight:500}.backupButtons{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}.backupButtons .secondary{min-height:44px;font-size:12px;padding:10px 14px}.nodeTitleToolbar{display:flex;align-items:center;gap:3px;flex-wrap:wrap;padding:6px;background:#f4f5f7;border:1px solid #dcdfe3;border-radius:11px;margin-bottom:20px}.nodeTitleToolbar button{width:39px;min-height:40px;border-radius:7px;font-size:19px}.nodeTitleToolbar button[aria-pressed=true]{background:#242b34;color:#fff}.nodeTitleToolbar select{font-size:11px;min-height:35px;min-width:85px;max-width:calc(50% - 6px);flex:1;padding:6px;margin:0}.nodePreviewBox{padding:17px;border-radius:12px;background:#f7f7f7;text-align:center}.nodePreviewBox .subtle{font-size:11px}.nodePreviewBox #nodePreview{display:block;width:max-content;max-width:100%;min-width:130px;margin:15px auto 0;padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}.busyOverlay{position:fixed;inset:0;z-index:200;background:#ffffffeb;display:flex;align-items:center;justify-content:center;text-align:center}.busyOverlay b{display:block;font-size:20px;margin:17px}.busyOverlay p{font-size:13px;color:#888}.busySpinner{display:block;margin:auto;width:32px;height:32px;border:3px solid #ddd;border-top-color:#222;border-radius:50%;animation:busy-spin .8s linear infinite}@keyframes busy-spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){.header{padding-inline:30px;gap:25px}.brand img{width:51px;height:51px}.brand strong{font-size:21px}.toolbar{gap:8px}.tool{width:46px;height:46px}}
@media(max-width:1050px) and (min-width:781px){.header{padding:10px 16px;gap:11px}.brand{min-width:185px;gap:10px}.brand strong{font-size:18px}.brand img{width:44px;height:44px}.toolbar{gap:6px}.headerRight{gap:6px}.headerRight .desktopOnly{display:none}.toolbar .tool,.headerRight .tool{width:42px;height:44px}.pageInner{padding-inline:25px}}
@media(max-width:780px){:root{--header:119px;--context:66px}.header{display:grid;grid-template-columns:1fr auto;grid-template-rows:45px 44px;padding:8px 12px;gap:7px}.brand{min-width:0;gap:10px}.brand img{width:40px;height:40px;border-radius:10px}.brand strong{font-size:19px}.brand small{font-size:10px;max-width:190px}.toolbar{grid-row:2;grid-column:1/-1;justify-content:flex-start;gap:9px;margin:0;padding:0 1px}.toolbar .tool{width:44px;height:44px;border-radius:11px}.headerRight{grid-column:2;grid-row:1;gap:5px}.headerRight .tool{width:38px;height:38px}.tool-separator{display:none}.modeSwitch{margin:0}.mapContext{padding-inline:13px}.mapHint{bottom:12px;font-size:9px;max-width:calc(100% - 135px);left:10px;white-space:normal;line-height:1.6}.zoomtools{right:10px;bottom:13px;gap:6px;padding:0}.zoomtools>.iconbtn{width:43px;height:43px}.zoomtools>.cameraButton{min-width:103px;min-height:42px;padding:8px 12px;font-size:11px}.zoomtools #btnCenter{display:none}.zoomtools>output{font-size:10px}.pageInner{padding:25px 17px 50px}.pageHead{flex-direction:column;gap:18px}.pageHead h1{font-size:28px}.pageHead p{font-size:12px;margin-bottom:0}.pageActions{width:100%;gap:8px}.pageActions .primary,.pageActions .secondary{font-size:12px;min-height:44px;flex:1;padding:9px 12px;white-space:nowrap}.mapListRow{padding:17px 15px;gap:13px;min-height:86px;border-radius:14px}.mapListIcon{width:43px;height:43px;border-radius:10px}.mapListRow h2{font-size:15px}.mapListRow p{font-size:11px}.quietInfo{font-size:10px}.bottomnav button{font-size:9px;padding-inline:2px}.bottomnav button .icon{width:21px;height:21px}.notePanel{width:100%;top:0;bottom:0;z-index:40}.noteHead{padding:calc(18px + env(safe-area-inset-top,0px)) 18px 15px}.noteHead h2{font-size:18px}.instructionLabel{padding:11px 19px}.notePanel>.richbar{padding-inline:12px;justify-content:center;flex-wrap:wrap}.richbar button{width:36px;height:38px;min-height:38px;font-size:13px}.notePane{padding:17px 22px 30px}.instructionText{font-size:17px;line-height:1.85}.instructionText .noteHeading{font-size:1.04em}.dialog{max-width:calc(100vw - 18px);border-radius:15px}.dialogHead{padding:18px 18px 12px}.dialogHead h2{font-size:20px}.dialogBody{padding:12px 17px 20px}.dialogFoot{padding:14px 17px 18px}.settingsSection{padding:17px;border-radius:13px}.settingsSection h3{font-size:16px}.settingsSection p{font-size:12px}.scalePreview svg{height:190px}.scaleExact{align-items:flex-end;gap:10px}.scaleExact label{max-width:130px;font-size:11px}.scaleExact .secondary{font-size:10px;padding:9px;line-height:1.5}.scalePresets{gap:6px}.scalePresets button{font-size:12px}.scaleHeading output{font-size:25px}.fieldRow{gap:12px}.nodeTitleToolbar{gap:2px}.nodeTitleToolbar button{width:35px}.selectionBar .nodeActions button{width:44px;height:44px;min-height:44px}.nodeActions button span{font-size:7px}.nodeActions.top,.nodeActions.bottom{padding:3px}.nodeActions.left,.nodeActions.right{padding:2px}.nodeActions.left{right:calc(100% + 3px)}.nodeActions.right{left:calc(100% + 3px)}.nodeActions.top{bottom:calc(100% + 4px)}.nodeActions.bottom{top:calc(100% + 4px)}}
@media(max-width:360px){.toolbar{gap:6px}.toolbar .tool{width:42px}.brand strong{font-size:17px}.brand small{max-width:157px}.headerRight .tool{width:34px;height:36px}.brand img{width:37px;height:37px}.settingsSection{padding:13px}.richbar button{width:33px}.notePane{padding-inline:18px}.nodeActions button span{font-size:7px}}
@media(prefers-reduced-motion:reduce){.motion-flow,.motion-pulse,.motion-particles{animation:none!important}}
@media print{.selectionBar,.canvasMenu,.connectBanner,.busyOverlay{display:none!important}.viewport{background-image:none!important}}
.colourPalette{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:7px;margin:12px 0}
.colourPalette button{display:block;min-width:0;width:100%;aspect-ratio:1;min-height:24px;padding:0;background:var(--swatch);border:1px solid #b5bbc4;border-radius:6px;box-shadow:inset 0 0 0 2px #ffffff33}
.colourPalette button:hover,.colourPalette button:focus-visible{outline:2px solid #202124;outline-offset:2px;transform:scale(1.1)}
.paletteDetails{margin:10px 0;border-bottom:1px solid #eee;padding-bottom:6px}.paletteDetails summary{font-size:13px;color:#555;cursor:pointer}
.horizonLabel{cursor:pointer}.horizonLabel:hover text,.horizonLabel:focus-visible text{fill-opacity:1}
#originalMedia audio{width:100%;margin:14px 0}
@media(max-width:440px){.colourPalette{grid-template-columns:repeat(8,minmax(0,1fr))}.colourPalette button{min-height:28px}}
@media(prefers-reduced-motion:reduce){.wheelTraveller{display:none}}
