/* CASE ATLAS v3 — open-answer interview studio and logic tree builder */
.studio-section{background:#f8faf7;border-block:1px solid #e5ece5}
.studio-mode{font-weight:800;font-size:10px;letter-spacing:.8px;color:#698c76;border:1px solid #d0e3d3;border-radius:30px;padding:9px 14px;white-space:nowrap}
.studio-mode-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8db79a;margin-right:6px}
.studio-shell{display:grid;grid-template-columns:315px minmax(0,1fr);border:1px solid #dde8dc;box-shadow:0 20px 62px rgba(30,58,40,.05);border-radius:15px;overflow:hidden;background:#fff}
.studio-sidebar{padding:27px 24px;background:#edf4ec;display:flex;flex-direction:column;border-right:1px solid #dce9dd}
.studio-sidebar-label{font-weight:900;font-size:10px;letter-spacing:1.1px;color:#718f79}
.studio-case-select,.tree-label input,.tree-label select{width:100%;border:1px solid #d1dfd1;background:white;border-radius:7px;color:#263b2e;font-size:12px;padding:11px 12px;margin-top:10px;font-weight:700}
.studio-case-summary{margin-top:16px;background:white;padding:15px 13px;border-radius:9px;border:1px solid #dce9dc;color:#698172;font-size:11px;line-height:1.85}
.studio-case-summary strong{display:block;color:#263f30;font-size:13px;margin-bottom:7px}
.studio-stage-list{display:grid;gap:8px;margin-top:24px}
.studio-stage{border:1px solid #d3e1d4;background:#f6f9f5;border-radius:8px;padding:12px 14px;display:flex;align-items:center;gap:11px;text-align:left;width:100%;transition:background .2s}
.studio-stage:hover{background:white}
.studio-stage.active{background:#2b4433;border-color:#2b4433;color:white}
.studio-stage-number{font-size:10px;font-weight:900;color:#8faca0;min-width:22px}
.studio-stage.active .studio-stage-number{color:#b9d5bb}
.studio-stage-name{font-weight:800;font-size:12px}
.studio-stage-state{margin-left:auto;color:#70a683;font-size:12px;font-weight:900}
.studio-stage.active .studio-stage-state{color:#cbe2ce}
.studio-sidebar-footer{font-size:10px;color:#839a87;line-height:1.9;margin-top:auto;padding-top:32px}
.studio-sidebar-footer span{color:#d79976;font-size:16px;margin-right:7px}
.studio-workbench{padding:30px 35px}
.studio-workbench-top{display:flex;justify-content:space-between;gap:15px;align-items:center}
.studio-step-label{font-size:10px;font-weight:900;letter-spacing:1.2px;color:#9ab3a0}
.studio-saved{font-size:10px;color:#7ba18a}
.studio-question-title{font-size:24px;font-weight:900;margin:20px 0 12px;letter-spacing:-.5px}
.studio-question{color:#63786a;font-size:13px;line-height:2;margin:0 0 19px}
.studio-followup{background:#fff2e8;border:1px solid #efd8c6;border-left:3px solid #dd9d77;padding:13px 16px;font-size:12px;color:#7f6650;margin-bottom:16px;line-height:1.9;border-radius:5px}
.studio-followup[hidden]{display:none}
.studio-answer-label{font-size:10px;color:#6d8b75;font-weight:900;letter-spacing:1px;display:block;margin-bottom:8px}
.studio-answer{width:100%;min-height:168px;resize:vertical;border:1px solid #d7e3d6;border-radius:8px;background:#fcfdfb;color:#293d30;font-size:13px;line-height:1.95;padding:16px;outline:none}
.studio-answer:focus{border-color:#86b193;box-shadow:0 0 0 3px #dcefe1}
.studio-editor-foot{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#93a498;margin-top:5px}
.studio-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;align-items:center}
.studio-toolbar .button{font-size:11px;padding:12px 16px;gap:12px}
.studio-bottom-toolbar{border-top:1px solid #e3eae2;margin-top:25px;padding-top:15px}
.studio-link-button{font-size:11px;background:transparent;border:0;color:#658371;font-weight:800;padding:8px 5px}
.studio-link-button:hover{text-decoration:underline}
.studio-review-panel{border-radius:10px;background:#f0f6ed;border:1px solid #d9e9d7;padding:21px;margin-top:20px}
.studio-review-panel[hidden]{display:none}
.studio-review-heading{font-size:13px;font-weight:900;color:#385b40;margin-bottom:10px}
.studio-review-intro{font-size:11px;color:#7b9480;margin:0 0 13px;line-height:1.85}
.studio-reference-list{padding-left:23px;margin:8px 0 16px;color:#45644e;font-size:12px;line-height:2}
.studio-reflection-tip{background:white;padding:12px;border-left:3px solid #dba37d;color:#756652;font-size:12px;line-height:1.85}
.studio-scoring{margin-top:17px;border-top:1px solid #d8e6d4;padding-top:14px}
.studio-scoring>label{font-size:12px;font-weight:800;color:#416549;display:block;margin-bottom:9px}
.studio-score-pills{display:flex;gap:8px;flex-wrap:wrap}
.studio-score-pills button{border:1px solid #ccdccc;background:white;border-radius:7px;padding:10px 13px;font-weight:800;font-size:12px}
.studio-score-pills button.selected{background:#2a5137;color:white;border-color:#2a5137}
.studio-score-caption{font-size:10px;color:#839789;margin-top:9px}
.studio-note{font-size:11px;color:#8b9c90;line-height:1.9;margin:18px 0 0}
.tree-section{background:#f2f5ee}
.tree-lab-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:19px}
.tree-editor,.tree-preview-panel{background:#fff;border-radius:12px;border:1px solid #dde8de;padding:26px}
.tree-label{font-size:11px;font-weight:800;color:#5d7b66;display:block;margin:18px 0}
.tree-label input,.tree-label select{display:block;margin-top:7px}
.tree-edit-head{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e9eee6;padding-top:15px;margin-top:17px}
.tree-edit-head span{font-size:11px;font-weight:900;color:#597661}
.tree-field{display:flex;gap:8px;margin:10px 0;align-items:center}
.tree-field input{flex:1;min-width:0;padding:11px;border:1px solid #d9e5da;border-radius:6px;font-weight:700;color:#29432f;background:#fff;font-size:12px}
.tree-field button{height:37px;width:37px;display:grid;place-items:center;border:1px solid #e7dfdd;background:#fff5ef;border-radius:6px;color:#b68069;font-size:17px}
.tree-editor-actions{display:flex;gap:15px;align-items:center;margin-top:19px;flex-wrap:wrap}
.tree-editor-actions .button{font-size:11px;padding:12px 14px}
.tree-preview-panel{background:#fbfdfa}
.tree-preview-top{display:flex;justify-content:space-between;gap:12px;font-size:10px;font-weight:900;letter-spacing:1px;color:#79917f}
.tree-preview{min-height:208px;padding:26px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.tree-node-root{min-width:130px;background:#2c4835;color:white;border-radius:8px;padding:13px 24px;text-align:center;font-weight:900;font-size:15px;max-width:100%;overflow-wrap:anywhere}
.tree-connector-v{height:26px;border-left:2px solid #aac2ac}
.tree-node-row{width:100%;display:flex;align-items:stretch;justify-content:center;gap:11px;flex-wrap:wrap}
.tree-node-child{flex:1 1 110px;max-width:170px;text-align:center;padding:14px 10px;border:1px solid #cde0d0;background:#e8f4e9;border-radius:8px;color:#40684a;font-size:12px;font-weight:800;overflow-wrap:anywhere;position:relative}
.tree-node-child:nth-child(2n){background:#e6eef8;color:#587f9c;border-color:#d1dfe9}
.tree-node-child:nth-child(3n){background:#faeee2;color:#a27b58;border-color:#f0e0d0}
.tree-operator{margin-top:20px;text-align:center;font-size:11px;color:#748a7a;font-weight:800}
.tree-thinking-check{margin-top:21px;padding:17px;background:#edf5ed;border-radius:8px}
.tree-thinking-check strong{display:block;font-size:12px;margin-bottom:11px;color:#51735b}
.tree-thinking-check label{display:flex;gap:10px;font-size:11px;color:#5e7967;margin:10px 0;line-height:1.8;align-items:start}
.tree-thinking-check input{accent-color:#49795a;margin-top:4px}
.tree-thinking-check p{font-size:10px;color:#91a393;margin-top:13px;line-height:1.85}
@media(max-width:1050px){.studio-shell{grid-template-columns:270px minmax(0,1fr)}.tree-lab-layout{grid-template-columns:300px minmax(0,1fr)}.studio-workbench{padding:27px}}
@media(max-width:760px){.studio-mode{display:none}.studio-shell,.tree-lab-layout{grid-template-columns:1fr}.studio-sidebar{border-right:0;border-bottom:1px solid #dce9dd;padding:22px}.studio-stage-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;overflow-x:auto}.studio-stage{flex-direction:column;justify-content:center;padding:10px 5px;text-align:center;gap:3px;min-height:62px}.studio-stage-number{min-width:0}.studio-stage-name{font-size:9px}.studio-stage-state{display:none}.studio-sidebar-footer{padding-top:16px}.studio-workbench,.tree-editor,.tree-preview-panel{padding:22px}.tree-preview{min-height:180px}.studio-workbench-top{flex-wrap:wrap}.studio-question-title{font-size:21px}}
@media(max-width:480px){.studio-workbench,.tree-editor,.tree-preview-panel{padding:19px 15px}.studio-editor-foot{flex-wrap:wrap}.studio-toolbar .button{flex:1;justify-content:center}.studio-score-pills{gap:6px}.studio-score-pills button{flex:1}.studio-stage-name{font-size:8px}.tree-node-child{flex:1 1 75px;max-width:135px;font-size:10px}}
