.stn-mindmap { max-width: 810px; border: 1px solid #9baabb; border-radius: 8px; background: #fff; color: #172b40; font: 13px/1.5 Verdana, sans-serif; margin: 18px 0; overflow: hidden; }
.stn-mindmap .stn-mm-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; background: #eef3f8; border-bottom: 1px solid #9baabb; }
.stn-mindmap button { font: inherit; color: #172b40; cursor: pointer; background: white; border: 1px solid #71869c; border-radius: 4px; padding: 6px 10px; }
.stn-mindmap button:hover { background: #e1edfa; }
.stn-mindmap button:focus-visible, .stn-mindmap a:focus-visible, .stn-mm-viewport:focus-visible { outline: 3px solid #164fb3; outline-offset: 2px; }
.stn-mindmap button:disabled { opacity: .5; cursor: default; }
.stn-mm-status { margin-left: auto; }
.stn-mm-viewport { overflow: auto; max-height: 560px; background: #fff; }
.stn-mm-canvas, .stn-mm-layer { position: relative; }
.stn-mm-layer { transform-origin: top left; }
.stn-mm-layer > svg { position: absolute; left: 0; top: 0; }
.stn-mm-node { position: absolute; display: flex; width: 216px; height: 58px; border: 2px solid #37628b; border-radius: 7px; box-sizing: border-box; background: #edf5ff; }
.stn-mindmap .stn-mm-select { flex: 1; min-width: 0; border: 0; border-radius: 5px; padding: 6px 8px; text-align: left; font-size: 12px; font-weight: bold; background: transparent; line-height: 1.4; }
.stn-mindmap .stn-mm-select[aria-pressed=true] { box-shadow: inset 0 0 0 3px #172b40; }
.stn-mindmap .stn-mm-toggle { border: 0; border-left: 1px solid #71869c; border-radius: 0 4px 4px 0; padding: 0; flex: 0 0 30px; font-size: 20px; background: #ffffffaa; }
.stn-mm-color-1 { background: #edf8f0; border-color: #3a7250; }
.stn-mm-color-2 { background: #fff5df; border-color: #91651e; }
.stn-mm-color-3 { background: #f4effc; border-color: #73549a; }
.stn-mm-color-4 { background: #eaf8f8; border-color: #316d75; }
.stn-mm-color-5 { background: #fff0ec; border-color: #995340; }
.stn-mm-detail { padding: 14px 16px; border-top: 1px solid #9baabb; background: #f5f8fc; min-height: 100px; }
.stn-mindmap .stn-mm-detail p { margin: 8px 0; font: inherit; line-height: 1.6; }
.stn-mindmap a { color: #124ca0; text-decoration: underline; }
@media print { .stn-mindmap { display: none; } }

/* Explicit fonts keep legacy page-wide element rules out of the widget. */
.stn-mindmap button, .stn-mindmap strong, .stn-mindmap span, .stn-mindmap a { font-family: Verdana, sans-serif; }

.stn-mm-viewport { cursor: grab; }
.stn-mm-viewport.stn-mm-dragging { cursor: grabbing; user-select: none; }
.stn-mindmap .stn-mm-comment { width: 320px; height: auto; min-height: 58px; display: block; padding: 12px 14px; font: 13px/1.6 Verdana, sans-serif; color: #172b40; border-radius: 6px; }
