
#planner-app	{	position:relative;
					min-height:780px;
					background-image:radial-gradient(circle at 1px 1px,rgba(100,116,139,.22) 1px,transparent 0);
					background-size:24px 24px;
					overflow:hidden}

#planner-canvas-wrap {
					position: relative;
					min-height: 780px;
					background-image: radial-gradient(circle at 1px 1px, rgba(120,120,120,0.18) 1px, transparent 0);
					background-size: 24px 24px;
					overflow: visible;
				}

#planner-lines {
					position: absolute;
					inset: 0;
					width: 100%;
					min-height: 780px;
					height: 100%;
					pointer-events: auto;
			}

.planner-line	{	stroke:#64748b;
					stroke-width:2.5}

#planner-canvas	{	position:relative;
					min-height:780px}

.planner-node	{	position:absolute;
					width:190px;
					min-height:84px;
					border-radius:999px;
					display:flex;
					align-items:center;
					justify-content:center;
					text-align:center;
					padding:12px 18px;
					cursor:move;
					color:#fff;
					font-weight:600;
					box-shadow:0 10px 24px rgba(0,0,0,.16);
					border:4px solid rgba(255,255,255,.28);
					user-select:none}
					
.planner-node small{display:block;
					font-size:11px;
					opacity:.86;
					text-transform:uppercase;
					letter-spacing:.06em}

.planner-node .desc{display:block;
					font-size:11px;
					font-weight:400;
					opacity:.88;
					margin-top:2px}
					
.planner-node .strategy{display:inline-block;
					font-size:10px;
					font-weight:600;
					margin-top:3px;
					padding:1px 7px;
					border-radius:999px;
					background:rgba(255,255,255,.22)}

.node-vision	{	background:#1f2937}
.node-goal		{	background:#2563eb}
.node-objective	{	background:#059669}
.node-task		{	background:#f59e0b;
					color:#111}
.node-task .strategy {background:rgba(0,0,0,.12)}
.planner-context-menu{position:fixed;
					width:250px;
					background:#fff;
					border:1px solid #dcdcdc;
					border-radius:14px;
					box-shadow:0 18px 40px rgba(0,0,0,.18);
					padding:8px;
					z-index:9999}

.planner-context-menu button{display:block;
					width:100%;
					text-align:left;
					border:0;
					background:transparent;
					padding:10px 12px;
					border-radius:10px}

.planner-context-menu button:hover{background:#f3f4f6}
.planner-context-menu .danger{color:#b91c1c}
.planner-toolbar-note{font-size:.9rem;
					color:#64748b}


/* MistIDEA brand treatment */
.mi-brand {
    display:inline-flex;
    align-items:baseline;
    font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size:1.42rem;
    line-height:1;
    letter-spacing:-0.055em;
    color:#fff !important;
    text-decoration:none;
}
.mi-brand-mist {
    font-weight:350;
}
.mi-brand-idea {
    font-weight:800;
    letter-spacing:-0.035em;
}
.mi-brand:hover,
.mi-brand:focus {
    color:#fff !important;
    opacity:.9;
}

.mi-home-link{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.35);border-radius:9px;color:#fff;text-decoration:none;font-size:23px;line-height:1}.mi-home-link:hover{color:#fff;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.7)}

.planner-line{pointer-events:stroke;cursor:pointer;stroke-width:2.5}.planner-line:hover,.planner-line.selected{stroke:#dc2626;stroke-width:5}.planner-line-hit{stroke:transparent;stroke-width:16;pointer-events:stroke;cursor:pointer}

.planner-line{pointer-events:none}.planner-line-hit{stroke:transparent;stroke-width:18;pointer-events:stroke;cursor:pointer}.planner-line.selected{stroke:#dc2626;stroke-width:5}
.mi-file-context{font-size:.95rem}.mi-file-context a{font-weight:700;text-decoration:none}.mi-sphere-move{min-width:190px}


/* Unified MistIDEA dark heading treatment */
.mi-dashboard-heading{background:#111827;border-radius:14px;padding:8px}.mi-dashboard-heading .nav-link{color:rgba(255,255,255,.78);border-radius:9px}.mi-dashboard-heading .nav-link:hover{color:#fff;background:rgba(255,255,255,.1)}.mi-dashboard-heading .nav-link.active{background:#fff;color:#111827}
.mi-user-context{font-size:.92rem;white-space:nowrap}.mi-user-context-sep{opacity:.55;margin:0 .15rem}
.mi-sphere-list{display:grid;gap:1px;background:#dfe3e8;border:1px solid #dfe3e8;border-radius:14px;overflow:hidden}.mi-sphere-row{display:grid;grid-template-columns:70px minmax(170px,1.1fr) minmax(150px,.9fr) minmax(220px,1.7fr) auto;gap:12px;align-items:center;background:#fff;padding:10px 12px}.mi-sphere-row-head{background:#111827;color:#fff;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.mi-sphere-row .contents{display:contents}
.mi-module-heading{background:#111827;color:#fff;border-radius:14px;padding:14px 16px;margin-bottom:18px}.mi-module-heading a{color:#fff}.mi-module-heading .text-muted{color:rgba(255,255,255,.65)!important}.mi-module-heading .btn-outline-secondary,.mi-module-heading .btn-outline-primary{color:#fff;border-color:rgba(255,255,255,.5)}.mi-module-heading .btn-outline-secondary:hover,.mi-module-heading .btn-outline-primary:hover{background:#fff;color:#111827;border-color:#fff}.mi-module-heading .form-select{border-color:rgba(255,255,255,.4)}
@media(max-width:900px){.mi-sphere-row{grid-template-columns:56px 1fr}.mi-sphere-row>*:nth-child(3),.mi-sphere-row>*:nth-child(4){grid-column:2}.mi-sphere-row>*:nth-child(5){grid-column:2;justify-content:flex-start!important}.mi-sphere-row-head div:nth-child(n+3){display:none}}

/* 2026-07-16 editor header alignment */
.mi-dashboard-tabs.nav-tabs{border-bottom:1px solid #dee2e6}.mi-dashboard-tabs.nav-tabs .nav-link{color:#495057;background:transparent;border:1px solid transparent;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.mi-dashboard-tabs.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.mi-dashboard-tabs.nav-tabs .nav-link.active{color:#111827;background:#fff;border-color:#dee2e6 #dee2e6 #fff}.mi-editor-heading{min-height:64px}.mi-editor-title-row{display:flex;align-items:center;gap:.55rem;min-width:0}.mi-editor-title{font-size:1.38rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(46vw,720px)}.mi-file-context{font-weight:600;white-space:nowrap}.mi-file-context a{text-decoration:none}.mi-editor-actions{margin-left:auto}.mi-editor-user-context{font-size:.9rem;font-weight:600;white-space:nowrap;padding-left:.35rem}.mi-module-heading .btn-outline-light{border-color:rgba(255,255,255,.52)}.mi-module-heading .btn-light{color:#111827}@media(max-width:900px){.mi-editor-heading{align-items:flex-start!important}.mi-editor-actions{margin-left:0}.mi-editor-title{max-width:70vw}}


/* Exact shared editor top bar, matching workflow.php */
.mi-editor-topbar{position:sticky;top:0;z-index:50;background:#111827;color:#fff;border-bottom:1px solid #111827;padding:12px 18px;margin:0;box-shadow:0 4px 20px rgba(15,23,42,.08);display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:62px}
.mi-editor-brand-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.mi-editor-home-link{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.4);border-radius:9px;text-decoration:none;font-size:23px;line-height:1;color:#fff}.mi-editor-home-link:hover{background:rgba(255,255,255,.12);color:#fff}.mi-editor-brand{display:inline-flex;align-items:baseline;text-decoration:none;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:21px;line-height:1;letter-spacing:-.055em;margin-right:8px;color:#fff}.mi-editor-brand:hover{color:#fff;opacity:.9}.mi-editor-brand span{font-weight:350}.mi-editor-brand strong{font-weight:800;letter-spacing:-.035em}.mi-editor-file-context{font-size:14px;color:rgba(255,255,255,.82);white-space:nowrap}.mi-editor-file-context a{color:#fff;font-weight:700;text-decoration:none}.mi-editor-topbar h1{margin:0;font-size:22px;font-weight:700;line-height:1.2;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(42vw,720px)}.mi-editor-actions-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.mi-editor-btn{border:1px solid #d1d5db;background:#fff;border-radius:10px;padding:9px 13px;text-decoration:none;cursor:pointer;font-weight:650;color:#111827;display:inline-flex;align-items:center;justify-content:center;min-height:38px;font-size:14px;line-height:1}.mi-editor-btn:hover{background:#f9fafb;color:#111827}.mi-editor-btn-primary{background:#2563eb;border-color:#2563eb;color:#fff}.mi-editor-btn-primary:hover{background:#1d4ed8;color:#fff}.mi-editor-user-context,.mi-editor-status{font-size:13px;color:rgba(255,255,255,.78);white-space:nowrap}.mi-editor-badge{font-size:12px;padding:4px 8px;border-radius:999px;background:#fff;color:#111827;font-weight:700}
.mi-editor-editable-title{outline:none;min-width:260px;border-radius:8px;padding:3px 6px}.mi-editor-editable-title[contenteditable="true"]:focus{background:rgba(255,255,255,.1);box-shadow:0 0 0 2px rgba(255,255,255,.18)}
@media(max-width:800px){.mi-editor-topbar{align-items:flex-start;flex-direction:column}.mi-editor-actions-row{justify-content:flex-start}.mi-editor-topbar h1{max-width:72vw}}

/* Dashboard uses the exact shared editor top-bar treatment. */
.mi-dashboard-topbar{position:relative}
.mi-dashboard-topbar .mi-editor-brand{margin-right:0}

.mi-light-home-link{color:#111827;border-color:#94a3b8}.mi-light-home-link:hover{background:#f1f5f9;color:#111827}.mi-light-brand{color:#111827}.mi-light-brand:hover{color:#111827}

.mi-modal-panel-wide { width: min(860px, calc(100vw - 32px)); max-width: 860px; }

/* Shared destructive editor action */
.mi-editor-inline-form { display: inline-flex; margin: 0; }
.mi-editor-btn-danger { border-color: #dc3545; color: #fff; background: #8b1e27; }
.mi-editor-btn-danger:hover, .mi-editor-btn-danger:focus { background: #b02a37; border-color: #f06a76; color: #fff; }

.mi-sphere-switcher{position:relative;display:inline-flex;align-items:center;gap:.25rem}.mi-sphere-switch-button{border:0;background:transparent;color:inherit;padding:0;border-bottom:1px dotted currentColor;cursor:pointer}.mi-admin-stat{font-size:1.8rem;font-weight:700}.mi-status-active{color:#198754}.mi-status-test{color:#b58105}.mi-status-inactive{color:#6c757d}

/* Impersonation indicator */
.mi-impersonation-badge { font-size: .72rem; letter-spacing: .02em; }
.mi-editor-btn-warning { border-color: #ffc107; color: #ffc107; }
.mi-editor-btn-warning:hover { background: #ffc107; border-color: #ffc107; color: #111; }
