/* Approved single-sided Plan mind map. Colors describe node roles, not paragraphs. */
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"]{
  --mm-root:#4c6151;--mm-section:#82927e;--mm-info:#dce5e9;--mm-info-ink:#425a65;
  --mm-argument:#e7dfd1;--mm-argument-ink:#665b49;--mm-line:#a0ad9d;--mm-outline:#b9c4b5;
}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] .page{padding-top:30px}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] .page-title{font-size:32px;letter-spacing:.02em;margin-bottom:18px}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] .page .plan-manager{padding:0 0 20px;margin-bottom:28px;border:0;border-bottom:1px solid #d9ded4;border-radius:0;background:transparent;gap:10px}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] .plan-manager #plan-select{flex:0 1 345px;max-width:360px;min-width:260px;background:#fffefa;border-color:#cbd3c7;border-radius:6px;font-size:14px;min-height:40px}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] .plan-manager-actions{gap:9px;margin-left:0}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] .plan-manager .plan-manager-actions button{padding:9px 17px;min-height:40px;min-width:68px;color:#344137;background:#e0e5da;border-color:#cdd5c7;border-radius:5px;font-size:14px}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] .plan-manager .plan-manager-actions button:hover{background:#d2dccd;border-color:#b7c4b1}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] .mm-canvas{
  --mm-section-width:172px;--mm-section-gap:44px;--mm-label-width:198px;--mm-node-gap:38px;
  position:relative;isolation:isolate;display:grid;grid-template-columns:96px minmax(0,1fr);gap:36px;
  align-items:center;min-height:560px;padding:12px 0 28px;width:100%;
}
#plan-links{position:absolute;inset:0;display:block;pointer-events:none;z-index:-1;overflow:visible}
#plan-links path{fill:none;stroke:var(--mm-line);stroke-width:2.2;stroke-linecap:round;vector-effect:non-scaling-stroke}
#plan-root{grid-column:1;grid-row:1;align-self:center;justify-self:start;display:grid;place-items:center;width:96px;min-height:60px;background:var(--mm-root);color:#fff;font:650 26px/1.3 "Segoe UI","Microsoft YaHei",sans-serif;border-radius:5px;letter-spacing:.02em}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] #plan-tree{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:58px;padding:0;min-width:0;position:relative}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] #plan-tree::before{display:none}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] #plan-tree>.mm-section{display:grid;grid-template-columns:var(--mm-section-width) minmax(0,1fr);gap:var(--mm-section-gap);align-items:center;grid-column:auto;min-width:0;scroll-margin-top:30px}
#plan-tree>.mm-section::before{display:none}
#plan-tree .mm-section-label{display:inline-flex;align-items:center;justify-content:space-between;gap:9px;justify-self:start;width:fit-content;max-width:100%;background:var(--mm-section);border-radius:5px;padding:10px 11px;color:white}
#plan-tree .mm-section-toggle{padding:0;border:0;background:transparent;color:inherit;text-align:left;min-height:27px;font:600 21px/1.4 Georgia,"Times New Roman",serif}
#plan-tree .mm-section-toggle:hover{opacity:.85}
#plan-tree .mm-section-label:has(.mm-count){width:100%}
#plan-tree .mm-section-label:has(.mm-add-idea){width:100%}
html[data-iwa-layout] body #plan-tree .mm-add-idea{display:grid;place-items:center;flex:none;width:28px;height:30px;min-height:30px;padding:0;font:400 25px/1 "Segoe UI",sans-serif;background:transparent!important;color:#fffbed!important;border:0}
#plan-tree .mm-count{display:flex;flex-shrink:0;align-items:center}
#plan-tree .mm-count select{border:1px solid #d5dbd1;border-radius:4px;background:#fffefa;color:#354139;padding:5px 6px;min-height:31px;max-width:65px;font:13px/1.4 "Segoe UI","Microsoft YaHei",sans-serif}
#plan-tree .mm-section-content{min-width:0;padding:0}
#plan-tree .mm-children{list-style:none;display:flex;flex-direction:column;gap:24px;margin:0;padding:0;min-width:0}
#plan-tree .mm-row{position:relative;display:grid;grid-template-columns:var(--mm-label-width) minmax(0,1fr);gap:var(--mm-node-gap);align-items:center;min-width:0;margin:0;padding:0;border:0}
#plan-tree .mm-row::before,#plan-tree .mm-row::after{display:none}
#plan-tree .mm-group{margin:8px 0}
#plan-tree .mm-group>.mm-children{gap:22px}
#plan-tree .mm-group>.mm-children>.mm-row{grid-template-columns:100px minmax(0,1fr);gap:24px}
#plan-tree .mm-node{justify-self:start;min-width:0;width:100%;position:relative}
#plan-tree .mm-label-line{display:flex;align-items:center;gap:7px;width:max-content;max-width:calc(var(--mm-label-width) + var(--mm-node-gap) - 5px)}
#plan-tree .mm-label{display:inline-block;min-height:34px;padding:6px 12px;background:var(--mm-info);color:var(--mm-info-ink);border:0;border-radius:4px;font:500 16px/1.4 Georgia,"Times New Roman",serif;margin:0;white-space:nowrap}
#plan-tree .mm-group-label .mm-label,#plan-tree .mm-stage .mm-label{background:var(--mm-argument);color:var(--mm-argument-ink)}
#plan-tree .mm-stage .mm-label-line{max-width:124px;gap:5px}
#plan-tree .mm-stage .mm-label{padding-left:11px;padding-right:11px}
#plan-tree .collection-add{margin:0;display:grid;place-items:center;flex:none;width:26px;height:30px;min-height:30px;padding:0;border:0;border-radius:50%;background:transparent;color:#81947e;font:400 24px/1 "Segoe UI",sans-serif;box-shadow:none}
#plan-tree .collection-add:hover{background:#e7eee2;color:#486746}
#plan-tree .collection-add:focus-visible{outline:2px solid #8a9f85;outline-offset:2px}
#plan-tree .idea-keyword-field{display:flex;align-items:center;gap:4px;width:100%;max-width:188px;padding:5px 8px;margin:8px 0 0;background:#fffefa;border:1px solid #d3d9ce;border-radius:5px;color:#596350;font:12px/1.5 "Segoe UI","Microsoft YaHei",sans-serif;letter-spacing:0}
#plan-tree .idea-keyword-field>span{flex:none}
#plan-tree .idea-keyword-field input{margin:0;border:0;border-radius:0;outline-offset:2px;box-shadow:none;background:transparent;padding:1px 0;min-width:0;width:100%;font:13px/1.5 "Segoe UI","Microsoft YaHei",sans-serif;color:#3e493b}
#plan-tree .mm-content{position:relative;min-width:0}
#plan-tree .mm-materials{display:flex;flex-direction:column;gap:12px}
#plan-tree>.mm-section:has(.topic-sentence-input){align-self:stretch}
#plan-tree .topic-sentence-input{display:block;resize:vertical;width:min(100%,380px);min-height:49px;margin:0;padding:12px 15px;border:1px solid #b8c6bb;border-radius:5px;background:#fffefa;font:16px/1.75 Georgia,"Times New Roman","Microsoft YaHei",serif;color:#34483b}
#plan-tree .topic-sentence-input::placeholder{font:14px/1.75 "Segoe UI","Microsoft YaHei",sans-serif;color:#85917f}
#plan-tree .plan-material{position:relative;margin:0;padding:21px 29px 15px;border:1px dashed var(--mm-outline);border-radius:6px;background:#fffefa;min-width:0;box-shadow:none}
#plan-tree .plan-material .material-text{font:16px/1.85 Georgia,"Times New Roman","Microsoft YaHei",serif;color:#3c4b42;margin:0 0 8px;overflow-wrap:anywhere}
#plan-tree .plan-material .evidence-citation{font:14px/1.7 Georgia,"Times New Roman",serif;text-align:right;margin:7px 0 0;color:#68736b;overflow-wrap:anywhere}
#plan-tree .plan-material .material-remove,#plan-tree .plan-material .translation-button{position:absolute;display:grid;place-items:center;width:24px;min-width:24px;height:24px;min-height:24px;padding:3px;border:0;border-radius:4px;background:transparent;color:#819080;box-shadow:none;top:4px}
#plan-tree .plan-material .material-remove{left:3px;font-size:17px;line-height:1}
#plan-tree .plan-material .translation-button{right:3px}
#plan-tree .plan-material .translation-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#plan-tree .plan-material .material-remove:hover{background:#f1e7e0;color:#916a5d}
#plan-tree .plan-material .translation-button:hover{background:#edf2e8;color:#53734f}
#plan-tree .mm-empty{padding:20px 22px;min-height:75px;display:flex;align-items:center;border:1px dashed #c7d0c0;border-radius:6px;background:#fffefa80;color:#98a18f;font:13px/1.8 "Segoe UI","Microsoft YaHei",sans-serif}
#plan-tree .mm-empty p{margin:0}
#plan-tree .relation-row{margin:0;align-self:flex-start;max-width:100%}
#plan-tree .relation-row select{max-width:100%;padding:4px 7px;border:1px solid #d7ded0;border-radius:5px;background:#f6f7f1;color:#86917b;font-size:12px}
#plan-tree .angle-picker{display:block;margin-top:9px;max-width:236px;width:max-content}
#plan-tree .angle-select{display:inline-flex;justify-content:space-between;align-items:center;gap:8px;background:#fffefa;border:1px solid #d3d9ce;border-radius:4px;padding:5px 8px;max-width:236px;font:12px/1.5 "Segoe UI","Microsoft YaHei",sans-serif;color:#65735c;white-space:normal;text-align:left}
#plan-tree .angle-menu{width:290px;max-width:calc(100vw - 100px);z-index:20;background:#fffefa;border-color:#d1dacb}
#plan-tree .angle-option{font-size:13px;color:#596d50;padding:10px}
#plan-tree .angle-option[aria-pressed="true"]{background:#e7eee2}
#plan-tree .angle-option small{font-size:11px;color:#87947d}
#plan-tree .hidden-materials{font-size:12px;line-height:1.7;color:#89947e;margin:0 0 13px}
.mm-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-iwa-layout="desktop"] body[data-iwa-page="plan"] .map-footer{font-size:12px;color:#8d9786;margin-top:25px;padding-top:13px}
@media(prefers-reduced-motion:reduce){#plan-links{transition:none}}
