/* New-project express wizard; scoped, no impact on existing forms. */
.ec-choice104,.ec-dialog104{color:var(--text,#28313e);border:1px solid #e0e3e6;background:#f5f6f8;box-shadow:0 18px 80px #18253235;border-radius:18px;padding:0;max-width:calc(100vw - 32px);width:1260px;max-height:calc(100dvh - 32px);overflow:hidden}
.ec-choice104{width:780px;background:#fff;padding:26px}.ec-choice104::backdrop,.ec-dialog104::backdrop{background:#18253270;backdrop-filter:blur(4px)}
.ec-shell104{display:flex;flex-direction:column;height:min(900px,calc(100dvh - 34px));min-height:0}.ec-dialog104 *{box-sizing:border-box}.ec-head104{display:flex;gap:16px;justify-content:space-between;align-items:center;background:#fff;padding:18px 24px;border-bottom:1px solid #e0e3e6;flex-shrink:0}.ec-head104 h2{margin:4px 0;font-size:21px}.ec-kicker104{font-size:10px;letter-spacing:1.1px;text-transform:uppercase;color:#9b7425;font-weight:700}.ec-head104 p{margin:0;font-size:12px;color:#75808c;line-height:1.45}.ec-body104{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:0;flex:1}.ec-nav104{padding:16px 12px;background:#fbfbfc;border-right:1px solid #e0e3e6;overflow:auto}.ec-nav104 button{display:flex;gap:10px;text-align:left;align-items:center;width:100%;padding:9px 10px;margin:0 0 4px;border:1px solid transparent;border-radius:9px;background:none;font-size:12px;color:#596573;cursor:pointer}.ec-nav104 button.active{border-color:#d9bf89;background:#fff7e3;color:#775110;font-weight:650}.ec-nav104 .ec-num104{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;background:#edf0f2;border-radius:7px;font-size:11px;flex-shrink:0}.ec-nav104 .active .ec-num104{background:#b27c13;color:white}.ec-pane104{padding:24px;overflow-y:auto;overflow-x:hidden;min-width:0;scrollbar-gutter:stable}.ec-stephead104 h3{font-size:20px;margin:0 0 8px}.ec-stephead104 p{font-size:12px;line-height:1.6;color:#707c88;margin:0 0 18px}.ec-card104{background:#fff;border:1px solid #e1e5e8;border-radius:12px;padding:17px;margin-bottom:15px;min-width:0}.ec-card104 h4{margin:0 0 12px;font-size:14px}.ec-card104 summary{cursor:pointer;font-weight:650;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.ec-card104[open]>summary{margin-bottom:16px}.ec-cardtools104{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.ec-grid104{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;min-width:0}.ec-grid104.three{grid-template-columns:repeat(3,minmax(0,1fr))}.ec-field104{display:grid;grid-template-rows:minmax(30px,auto) 38px auto;align-content:start;gap:5px;min-width:0;font-size:12px}.ec-field104>span:first-child{color:#65717e;align-self:end;line-height:1.45}.ec-field104 input,.ec-field104 select{width:100%;min-width:0;max-width:100%;border:1px solid #ddd5c4;border-radius:7px;height:38px;padding:7px 10px;font:inherit;color:#293644;background:#fff4d2}.ec-field104 select{background:#f0f1f2;border-color:#d9dde1}.ec-field104 input[readonly],.ec-field104 input:disabled{background:#f2f4f5;color:#89929b}.ec-field104 small{color:#87909a;line-height:1.45}.ec-field104 input:focus-visible,.ec-field104 select:focus-visible,.ec-dialog104 button:focus-visible{outline:3px solid #d9ad5260;outline-offset:1px}.ec-full104{grid-column:1/-1}.ec-check104{display:flex;gap:9px;align-items:flex-start;padding:10px;border:1px solid #e2e5e7;background:#fafbfc;border-radius:8px;font-size:12px;line-height:1.55}.ec-check104 input{width:16px;height:16px;min-height:0;accent-color:#b3811c;flex:none;margin:2px 0 0}.ec-products104{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.ec-products104 .ec-check104{padding:7px 10px}.ec-hint104{font-size:12px;line-height:1.6;color:#6e7985;background:#f6f7f9;border:1px solid #e3e6e9;padding:12px 14px;border-radius:9px;margin:14px 0}.ec-hint104.warn{background:#fff6df;border-color:#e6cc97;color:#88621b}.ec-error104{background:#fff2ee;border:1px solid #d67d6a;color:#a44231;padding:12px 16px;border-radius:9px;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:16px}.ec-progress104{display:flex;align-items:center;gap:10px;font-size:12px;color:#755012;background:#fff4d7;border-radius:9px;padding:12px;margin-bottom:14px}.ec-spinner104{width:18px;height:18px;border:2px solid #e5cba0;border-top-color:#a47213;border-radius:50%;animation:ec-spin104 1s linear infinite;flex:none}@keyframes ec-spin104{to{transform:rotate(360deg)}}
.ec-footer104{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:12px;background:white;padding:14px 22px;border-top:1px solid #e0e3e6;flex-wrap:wrap}.ec-footer104>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ec-footer104 small{font-size:11px;color:#7a8590}.ec-dialog104 button.ec-btn104,.ec-choice104 button.ec-btn104{font:inherit;font-size:12px;min-height:34px;border:1px solid #dfe3e7;border-radius:7px;background:white;color:#425160;padding:8px 12px;cursor:pointer;white-space:normal}.ec-dialog104 button.ec-btn104.primary,.ec-choice104 button.ec-btn104.primary{background:#b47d12;border-color:#b47d12;color:white;font-weight:600}.ec-dialog104 button.ec-btn104.danger{color:#b95041}.ec-dialog104 button:disabled,.ec-choice104 button:disabled{opacity:.45;cursor:wait}.ec-dialog104 .ec-bad104{color:#b74d3c}.ec-kpis104{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.ec-kpi104{background:#fff;border:1px solid #e0e4e8;padding:14px;border-radius:10px;min-width:0}.ec-kpi104 small{font-size:11px;color:#7c8792;display:block;margin-bottom:7px}.ec-kpi104 b{display:block;font-size:20px;overflow-wrap:anywhere}.ec-table104{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed}.ec-table104 td,.ec-table104 th{text-align:right;border-bottom:1px solid #e7e9ec;padding:8px 6px;white-space:normal;overflow-wrap:anywhere}.ec-table104 td:first-child,.ec-table104 th:first-child{text-align:left}.ec-table104 th{background:#f4f5f6;color:#75818e;position:static}.ec-mini104{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.ec-mini104>div{background:#f5f7f9;border-radius:8px;padding:10px;font-size:12px;color:#687887}.ec-mini104 b{display:block;color:#293746;font-size:15px;margin-top:4px}.ec-chart104{width:100%;height:190px;display:block}.ec-choicegrid104{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.ec-choicegrid104 .ec-mode104{text-align:left;border:1px solid #e0e4e7;border-radius:12px;background:#fafbfc;padding:22px;cursor:pointer;color:#253140}.ec-mode104 h3{font-size:19px;margin:14px 0 10px}.ec-mode104 p{font-size:12px;line-height:1.6;min-height:58px;color:#74808c}.ec-mode104>span{color:#9d721e;font-weight:600;font-size:12px}.ec-mode104:hover{border-color:#c49842;background:#fff9eb}.express-origin{background:#edf4f8!important;color:#365c72!important}
@media(max-width:1100px){.ec-body104{grid-template-columns:195px minmax(0,1fr)}.ec-pane104{padding:17px}.ec-grid104.three{grid-template-columns:repeat(2,minmax(0,1fr))}.ec-nav104{padding:12px 8px}.ec-nav104 button{font-size:11px}}@media(max-width:750px){.ec-body104{grid-template-columns:1fr}.ec-nav104{display:none}.ec-kpis104{grid-template-columns:repeat(2,minmax(0,1fr))}.ec-grid104,.ec-grid104.three{grid-template-columns:1fr}.ec-choicegrid104{grid-template-columns:1fr}.ec-head104{padding:14px}.ec-pane104{padding:14px}.ec-field104{grid-template-rows:auto 38px auto}}@media(prefers-reduced-motion:reduce){.ec-spinner104{animation:none}}
.ec-dialog104 [hidden],.ec-choice104 [hidden]{display:none!important}

/* v105: full window, secondary read-only panels, no horizontal editor scroll. */
.ec-dialog104.ec-fullscreen105{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}
.ec-fullscreen105 .ec-shell104{height:100%}.ec-head104>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ec-kpi104[type=button]{text-align:left;font:inherit;cursor:pointer}.ec-kpi104>span{display:block;font-size:10px;color:#a17b2c;margin-top:8px}.ec-kpi104:hover{border-color:#b88b30;background:#fffaf0}
.ec-sub105{width:800px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;border:1px solid #d8dde1;border-radius:14px;padding:22px;background:white;color:#2b3947;overflow-y:auto;overflow-x:hidden}
.ec-sub105::backdrop,.ec-report105::backdrop{background:#15233570}.ec-sub105 header,.ec-report105 header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.ec-sub105 h3{margin:0;font-size:19px}.ec-sub105 .ec-field104{margin:12px 0}.ec-sub105 select,.ec-sub105 input{width:100%;min-width:0}.ec-sub-footer105{display:flex;justify-content:flex-end;margin-top:15px}.ec-sub105 .ec-table104 th{width:42%;text-align:left}.ec-sub105 .ec-table104 td{text-align:left}.ec-sub105 details{margin-top:14px}.ec-sub105 [hidden]{display:none!important}.ec-sub105 p{font-size:13px;line-height:1.5;color:#71808a}
.ec-report-actions105{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.ec-report105{border:1px solid #d8dde1;border-radius:12px;background:#fff;width:calc(100vw - 20px);height:calc(100dvh - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);box-sizing:border-box;padding:12px;overflow:hidden}.ec-report105[open]{display:flex;flex-direction:column}.ec-report105 header{flex-shrink:0}.ec-report105 iframe{width:100%;flex:1;min-height:0;border:1px solid #e3e7eb;border-radius:8px}.ec-report105 #ecReportStatus105{font-size:12px;color:#697887;padding:5px 0 10px}.ec-report105 .ec-btn104,.ec-sub105 .ec-btn104{border:1px solid #dfe3e7;background:#fff;padding:9px 12px;border-radius:7px;color:#46586a;cursor:pointer}.ec-sub105 .primary{background:#b47d12;color:white}
.ec-dialog104 .ec-field104 input:invalid{border-color:#be5647}.ec-dialog104 small,.ec-dialog104 summary{overflow-wrap:anywhere}.ec-dialog104 [data-ec-computed-date]{background:#ffe276;color:#2e3942}

/* v106: scoped adapters matching ordinary selection/calendar controls. */
.ec-date106{display:flex;min-width:0;gap:6px}.ec-date106 input{flex:1;width:0}.ec-date106 button{width:38px;flex:none;padding:0!important;background:#fff4d2!important;color:#3b4753!important}
.ec-construction106>summary small{display:block;font-weight:400;color:#72808d;margin-top:6px}.ec-construction106 .ec-cardtools104{margin-top:12px;flex-wrap:wrap}.ec-dialog104 input.ec-formula106{background:#ffdf6c;color:#28343f;font-weight:700;text-align:right}
.ec-dialog104 [aria-invalid="true"]{border-color:#c55442;box-shadow:0 0 0 2px #c5544230}.ec-regionbox106{position:relative;min-width:0}.ec-regionbox106 input{background:#f0f1f2}.ec-regionlist106{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:12;background:white;border:1px solid #dadfe4;border-radius:9px;padding:7px;max-height:230px;overflow:auto;box-shadow:0 8px 24px #16233420}.ec-regionlist106 button{display:block;text-align:left;width:100%;border:0;background:white;color:#34424e;padding:9px;cursor:pointer;border-radius:6px;font-size:12px}.ec-regionlist106 button[aria-selected=true],.ec-regionlist106 button:hover{background:#fff3d4}.ec-regionlist106[hidden]{display:none}
.ec-calendar106{width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border:1px solid #dae0e4;border-radius:12px;padding:16px;color:#354350;box-shadow:0 12px 50px #10203330;background:#fff;overflow:auto}.ec-calendar106::backdrop{background:#15233530}.ec-calendar106 header{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:13px}.ec-calendar106 label{display:flex;gap:10px;align-items:center;font-size:12px}.ec-calendar106 input{width:100px;border:1px solid #dfe3e5;border-radius:6px;padding:6px}.ec-calendar106 button{font:inherit;font-size:13px;border:0;background:#f4f5f5;padding:8px;color:#34424e;cursor:pointer}.ec-calendar106 button:hover{background:#fff0cd}.ec-year106{display:block;width:100%;text-align:left;margin-top:6px}.ec-months106{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:7px 0}.ec-months106 button{background:#fff;border-radius:6px}.ec-calendar106 p{font-size:11px;color:#798490;line-height:1.45}
.ec-sub105.ec-wide106{width:1120px;max-height:calc(100dvh - 24px)}.ec-infra-layout106{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:16px;min-height:220px;max-height:55vh}.ec-infra-layout106>div{min-width:0;overflow:auto}.ec-infra-choice106{display:block;box-sizing:border-box;width:100%;text-align:left;padding:13px;margin-bottom:8px;background:white;border:1px solid #e2e5e7;border-radius:9px;cursor:pointer;color:#354451}.ec-infra-choice106.selected{border-color:#b47d12;background:#fff9ec}.ec-infra-choice106 span,.ec-infra-choice106 small,.ec-infra-choice106 strong{display:block;margin-top:5px}.ec-infra-choice106 span,.ec-infra-choice106 small{color:#7a8590;font-size:11px}.ec-infra-choice106 b{font-size:13px}.ec-infra-choice106 strong{font-size:12px}.ec-sub105 #ecInfraError106{color:#b04636;white-space:pre-wrap}.ec-sub105 .ec-sub-footer105{gap:10px}.ec-sub105 .ec-infra-layout106 td,.ec-sub105 .ec-infra-layout106 th{white-space:normal;overflow-wrap:anywhere}.ec-sub105 header{position:sticky;top:-22px;background:white;z-index:2;padding:8px 0}.ec-sub105 .ec-sub-footer105{position:sticky;bottom:-22px;background:white;padding:12px 0;z-index:2}
@media(max-width:900px){.ec-infra-layout106{grid-template-columns:1fr;max-height:none}.ec-infra-layout106>div:first-child{max-height:240px}.ec-sub105.ec-wide106{width:calc(100vw - 24px)}}

/* Formula output remains a formula colour while the wizard disables read-only controls. */
#ecWizard104 input.ec-formula106:disabled{background:#ffdf6c!important;color:#28343f!important;opacity:1;font-weight:700}

/* v0.9.107 — scoped express layout. No global modal/finance styles. */
#ecContent104 .ec-card104 > button.ec-btn104 {margin-top:16px;margin-bottom:4px;}
#ecContent104 .ec-card104 > .ec-grid104 + .ec-cardtools104 {margin-top:16px;}
#ecContent104 .ec-card104 > .ec-check104 + button.ec-btn104 {margin-top:16px;}
#ecContent104 .ec-card104 {padding-bottom:20px;}
#ecContent104 .ec-card104 > .ec-check104 + .ec-grid104 {margin-top:14px;}
#ecWizard104 .ec-region-control107 {display:flex;align-items:stretch;min-width:0;height:38px;border:1px solid #d9dde1;border-radius:7px;background:#f0f1f2;}
#ecWizard104 .ec-region-control107:focus-within {outline:3px solid #d9ad5260;outline-offset:1px;}
#ecWizard104 .ec-region-control107 input {flex:1;width:0;border:0;background:transparent;outline:none;box-shadow:none;}
#ecWizard104 #ecRegionToggle107 {flex:none;width:36px;min-width:36px;border:0;border-left:1px solid #e1e3e5;border-radius:0 7px 7px 0;background:transparent;color:#657482;font-size:16px;cursor:pointer;}
#ecWizard104 .ec-regionlist106 {max-height:230px;overscroll-behavior:contain;}
#ecWizard104 .ec-region-empty107 {padding:8px;font-size:12px;color:#7c8792;}
/* A bounded middle and a sibling footer: list content cannot flow behind buttons. */
#ecSub105 {padding:0;overflow:hidden;max-height:calc(100dvh - 32px);}
#ecSub105[open] {display:flex;flex-direction:column;}
#ecSub105 * {box-sizing:border-box;min-width:0;}
#ecSub105 > header {position:static;flex:0 0 auto;margin:0;padding:18px 22px;border-bottom:1px solid #e0e4e8;}
#ecSubBody105 {min-height:0;flex:1 1 auto;padding:18px 22px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;}
#ecSub105 #ecSubFooter107 {position:static;bottom:auto;flex:0 0 auto;display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin:0;padding:16px 22px 20px;border-top:1px solid #dfe3e7;background:#fff;box-shadow:0 -3px 10px #1b2b3b05;}
#ecSub105 #ecSubFooter107[hidden] {display:none;}
#ecSub105.ec-wide106 {height:min(820px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);}
#ecSub105.ec-wide106 #ecSubBody105 {display:flex;flex-direction:column;overflow:hidden;gap:12px;}
#ecSub105.ec-wide106 #ecSubBody105 > p,
#ecSub105.ec-wide106 #ecSubBody105 > .ec-grid104,
#ecSub105.ec-wide106 #ecSubBody105 > .ec-hint104 {flex:none;margin:0;}
#ecSub105.ec-wide106 .ec-infra-layout106 {flex:1 1 auto;min-height:0;max-height:none;overflow:hidden;align-items:stretch;}
#ecSub105.ec-wide106 .ec-infra-layout106 > div {min-height:0;overflow:auto;overscroll-behavior:contain;border:1px solid #e0e5e9;border-radius:9px;padding:10px;scrollbar-gutter:stable;}
#ecSub105 .ec-infra-choice106:last-child {margin-bottom:0;}
#ecSub105 #ecInfraError106:empty {display:none;}
#ecSub105 #ecInfraError106 {flex:none;margin:0;font-size:12px;line-height:1.5;}
#ecSub105 #ecInfraDetail106 > button {margin-top:14px;}
#ecSub105 .ec-field104 input,#ecSub105 .ec-field104 select {box-sizing:border-box;}
#ecReport105 .ec-report-toolbar107 {display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;}
#ecReport105 .ec-report-toolbar107 button {min-height:36px;}
@media(max-width:900px){
 #ecSub105.ec-wide106 #ecSubBody105 {display:block;overflow-y:auto;}
 #ecSub105.ec-wide106 .ec-infra-layout106 {display:grid;grid-template-columns:1fr;max-height:none;overflow:visible;}
 #ecSub105.ec-wide106 .ec-infra-layout106>div:first-child {max-height:240px;}
 #ecSub105.ec-wide106 .ec-infra-layout106>div:last-child {overflow:visible;}
 #ecSub105.ec-wide106 #ecSubBody105>.ec-hint104 {margin:12px 0;}
 #ecSub105 > header,#ecSubBody105 {padding:14px 16px;}
 #ecSub105 #ecSubFooter107 {padding:14px 16px 18px;}
}

#ecContent104 .ec-action-row107 {display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #e0e4e8;}

#ecWizard104 .ec-region-control107 #ecRegion106 {background:#f0f1f2!important;border:0!important;outline:none!important;box-shadow:none!important;}

/* v0.9.108 — native land tools above the wizard, independent of project state. */
.ec-land-actions108{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:16px 0;padding:18px;border:1px solid #e1c992;border-radius:10px;background:#fffaf0}
.ec-land-actions108 small{display:block;margin-top:6px;color:#6b7680;line-height:1.5}.ec-land-actions108>div:last-child{display:flex;gap:10px;flex-wrap:wrap}
.ec-land-matrix108{padding:0;border:1px solid #dce2e7;border-radius:12px;width:calc(100vw - 32px);max-width:1600px;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);color:#283441;background:white;overflow:hidden}
.ec-land-matrix108[open]{display:flex;flex-direction:column}.ec-land-matrix108::backdrop{background:#23334188;backdrop-filter:blur(2px)}
.ec-land-matrix108>header{display:flex;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #dce2e7;flex-shrink:0;align-items:center}
.ec-land-matrix108>header h2{margin:5px 0;font-size:20px}.ec-land-matrix108>header small{color:#7a8790}.ec-land-matrix108>header button{background:white;border:1px solid #d7dde3;border-radius:7px;padding:10px 14px;cursor:pointer;font:inherit}
#ecLandMatrixBody108{overflow:auto;min-height:0;flex:1;padding:18px;box-sizing:border-box}#ecLandMatrixBody108>.lpc{width:100%;min-width:0;box-sizing:border-box}
#ecLandMatrix108 *{box-sizing:border-box;overflow-wrap:anywhere}.ec-land-matrix108 .lpc-fullscreen{z-index:2}
@media(max-width:900px){.ec-land-actions108{display:block}.ec-land-actions108>div:last-child{margin-top:12px}.ec-land-matrix108>header{padding:12px;flex-wrap:wrap}#ecLandMatrixBody108{padding:12px}}
