/* Project study keeps optional research tools out of the main modelling flow. */
.project-study{width:min(1080px,calc(100vw - 32px));max-width:none;height:min(850px,calc(100dvh - 32px));max-height:none;padding:0;border:1px solid #cfdbd3;border-radius:22px;background:#f6f8f3;color:#233c34;box-shadow:0 25px 100px #18352c38;overflow:hidden}
.project-study[open]{display:flex;flex-direction:column}.project-study::backdrop{background:#122b2280;backdrop-filter:blur(8px)}
.study-header{display:flex;justify-content:space-between;gap:20px;padding:24px 28px 18px;border-bottom:1px solid #dce3da;flex-shrink:0}.study-header span{font-size:10px;letter-spacing:2px;color:#789080}.study-header h2{font-size:24px;margin:8px 0}.study-header p{font-size:13px;margin:0;color:#6f8176}.study-close{font-size:27px;align-self:start;width:38px;height:38px;border-radius:10px;background:#e8eee5}
.study-tabs{display:flex;gap:6px;padding:10px 28px;border-bottom:1px solid #dce3da;flex-shrink:0}.study-tabs button{padding:10px 16px;font-size:13px;border-radius:9px;color:#6c7e72}.study-tabs button.active{background:#dce8d8;color:#2d5847;font-weight:600}
.study-content{overflow:auto;padding:24px 28px;min-height:0;flex:1}.study-content section>h3{font-size:17px;margin:24px 0 14px}.study-content section>h3:first-child{margin-top:0}.study-content p{font-size:13px;line-height:1.7}.study-note{color:#738177;font-size:12px!important;line-height:1.7}.study-content small{display:block;font-size:11px;line-height:1.65;color:#79867b}.study-content button{border:1px solid #cdd9ca;border-radius:9px;background:#fff;padding:9px 12px;font-size:12px;color:#365d4c;cursor:pointer}.study-content button:hover{background:#e6eee1}.study-content button:disabled{opacity:.45;cursor:not-allowed}.study-content button[type=submit]{background:#355d4b;color:white;border-color:#355d4b;margin-top:14px;min-width:150px}.study-content button:focus-visible,.study-content input:focus-visible,.study-content select:focus-visible,.study-content textarea:focus-visible{outline:2px solid #53816a;outline-offset:2px}.study-content input,.study-content select,.study-content textarea{min-width:0;width:100%;box-sizing:border-box;background:#fff;color:#294739;border:1px solid #cfdbcd;border-radius:8px;padding:10px;font:inherit;font-size:13px}.study-content input[type=checkbox]{width:16px;margin:0 8px 0 0}.study-content code{font-size:10px;overflow-wrap:anywhere}.study-content a{color:#2d6552;text-decoration:underline;font-size:13px}.study-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.study-phase-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.study-phase-cards button{text-align:left;padding:16px}.study-phase-cards strong{display:block;font-size:15px}.study-phase-cards span{display:block;font-size:11px;line-height:1.6;color:#7b887e;margin-top:7px}.study-phase-cards button.selected{border-color:#658c6c;background:#e3edda}.study-source-card{background:#edf1e7;border:1px solid #d9e2d3;border-radius:12px;padding:14px 16px;margin:12px 0}.study-source-card>span{font-size:12px;display:block;margin-top:6px;color:#738572}.study-source-card p{margin:6px 0 12px}.study-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.study-field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#718071}.study-view-form{margin:18px 0 24px}.study-section-title{display:flex;justify-content:space-between;align-items:center;margin-top:24px}.study-section-title h3{font-size:17px}.study-section-title span{color:#82907e;font-size:12px}.study-view-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.study-view-card{padding:16px;border:1px solid #d8e1d2;border-radius:12px;background:#fff}.study-view-card>div:first-child{display:flex;justify-content:space-between;gap:10px}.study-view-card strong{font-size:13px}.study-view-card p{font-size:11px}.study-view-card .study-actions{margin-top:10px}.study-empty{padding:20px;border:1px dashed #cbd9c5;border-radius:10px;color:#81907b;grid-column:1/-1}.study-context-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:24px}.study-context-map{height:250px;border:1px solid #d5dfcf;border-radius:12px;background:#e9eee1;margin:12px 0;overflow:hidden}.study-context-map svg{width:100%;height:100%}.study-context-map polygon{fill:#c6c9bd;stroke:#96a18f;stroke-width:1;cursor:pointer}.study-context-map polygon:hover,.study-context-map polygon.selected{fill:#cfb385;stroke:#936c31;stroke-width:2}.study-context-map polygon.study-plot-outline{fill:none;stroke:#b96a5c;stroke-width:2;stroke-dasharray:7 4;pointer-events:none}.study-context-list{height:210px;overflow:auto;display:flex;flex-direction:column;gap:6px}.study-context-item{text-align:left;flex-shrink:0}.study-context-item.selected{background:#e3edda;border-color:#6c8f70}.study-context-item strong,.study-context-item span{display:block;font-size:11px;margin-bottom:3px}.study-context-editor{padding:4px 0}.study-context-editor .study-fields{grid-template-columns:1fr 1fr}.study-context-editor h4{margin:0 0 8px}.study-context-editor>button{margin:12px 8px 0 0}.study-envelope-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.study-envelope-list article{border:1px solid #d4dfcc;border-radius:12px;padding:14px}.study-envelope-list label{display:flex;align-items:center;font-size:13px}.study-envelope-list p{font-size:12px}.study-issues{margin:16px 0}.study-issues details{border-bottom:1px solid #d9e1d2;padding:12px 0}.study-issues summary{font-size:13px;cursor:pointer}.study-issues .study-fields{margin:12px 0}.study-plan-image{display:block;width:100%;max-height:350px;object-fit:contain;background:white;border-radius:8px;margin-top:12px}.study-official{margin-top:26px;padding:18px;border:1px solid #ceddca;background:#edf3e6;border-radius:12px}.study-official h3{font-size:16px;margin:0}.study-official a,.study-official button{display:inline-block;margin:10px 10px 10px 0}.study-constraint-report{background:#edf0e7;padding:14px;border-radius:10px;margin-top:16px}.study-constraint-report strong{font-size:13px}.study-device-result{padding:16px;border:1px solid #d7dfd0;border-radius:10px;margin:12px 0;font-size:13px;line-height:1.7}.study-footer{padding:12px 28px;border-top:1px solid #d9e2d1;display:flex;gap:15px;justify-content:space-between;flex-shrink:0;background:#f0f4eb;min-height:45px;align-items:center}.study-storage{font-size:10px;color:#839079;max-width:40%}.study-message{font-size:12px;color:#476d50;line-height:1.5;text-align:right}
.study-compare-bar{position:fixed;z-index:42;top:94px;left:24px;right:24px;padding:14px 18px;background:#f6f8f2ef;border:1px solid #cbd9c7;border-radius:14px;box-shadow:0 10px 30px #1a3f3018}.study-compare-bar[hidden]{display:none}.study-compare-kicker{font-size:10px;color:#7b8f78;margin-right:12px}.study-compare-bar>strong{font-size:14px}.study-compare-bar .study-actions{margin:10px 0}.study-compare-bar button{font-size:11px;border:1px solid #d1decb;border-radius:7px;background:#fff;padding:7px 10px}.study-compare-bar button[aria-pressed=true]{background:#dcebd4;border-color:#5f8264}.study-compare-bar>small{font-size:10px;color:#7d8b76}.design-phase-switch{display:flex;gap:3px}.design-reference-caption .design-phase-switch button{padding:5px 7px;border-radius:6px;text-decoration:none;font-size:10px;border:1px solid transparent}.design-phase-switch button.active{background:#dfebd9;border-color:#a1b99b}.design-phase-note{font-size:9px;color:#809077;margin:0;padding:4px 18px;background:#f0f4e9;flex-shrink:0;line-height:1.5}.plan-retained{fill:#c8ccc0;stroke:#7d8a72;stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none}.plan-imported-envelope{fill:none;stroke:#88719e;stroke-width:2;stroke-dasharray:4 3;vector-effect:non-scaling-stroke;pointer-events:none}.study-entry{white-space:nowrap}
@media(max-width:900px){.project-study{height:calc(100dvh - 16px);width:calc(100vw - 16px);border-radius:16px}.study-header{padding:18px}.study-header h2{font-size:20px}.study-tabs{padding:8px 18px}.study-content{padding:18px}.study-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.study-footer{padding:10px 18px}.study-entry{padding:8px!important}.study-phase-cards button{padding:12px}.study-phase-cards strong{font-size:13px}}
@media(max-width:600px){.study-tabs{gap:0;padding:8px}.study-tabs button{padding:9px 10px;flex:1;font-size:11px}.study-header{padding:16px 14px 12px}.study-header h2{font-size:18px}.study-header p{font-size:11px}.study-content{padding:14px}.study-phase-cards{gap:6px}.study-phase-cards button{padding:10px 8px}.study-phase-cards strong{font-size:11px}.study-phase-cards span{font-size:10px}.study-context-layout,.study-view-list,.study-envelope-list{grid-template-columns:1fr}.study-context-list{height:150px}.study-context-map{height:220px}.study-fields{gap:9px}.study-view-card>div:first-child{display:block}.study-footer{padding:10px 14px;display:block}.study-storage{display:block;max-width:none;margin-bottom:4px}.study-message{display:block;text-align:left;font-size:11px}.study-compare-bar{top:76px;left:8px;right:8px;padding:12px;max-height:34vh;overflow:auto}.design-reference-caption{flex-wrap:wrap;gap:6px!important;padding:5px 8px!important}.design-reference-caption .design-phase-switch{flex:1}.design-reference-caption .design-phase-switch button{font-size:9px;padding:4px}.design-reference-caption>button{font-size:9px}.design-phase-note{padding:3px 10px;font-size:8px}.topbar .study-entry{font-size:9px!important;padding:7px!important}.top-actions{gap:4px}}

.study-file-download{display:block;flex-shrink:0;padding:10px 18px;background:#e2ecd9;color:#2b6247;font-size:12px;text-decoration:underline;border-top:1px solid #c7d8ba;overflow-wrap:anywhere}
