.location-picker{padding:14px;border:1px solid var(--ui-line,#9eaf9a);border-radius:10px;margin:14px 0;background:color-mix(in srgb,currentColor 3%,transparent)}.location-preview{display:grid;grid-template-columns:180px minmax(0,1fr);gap:14px;margin:12px 0;align-items:start}.location-preview[hidden],.location-details[hidden]{display:none!important}.location-regional{background:#173a30;border-radius:8px;overflow:hidden;text-align:center;color:#edf4df}.location-regional svg{display:block;width:100%;height:auto}.location-regional text{fill:#edf4df;font-size:10px;text-anchor:middle}.location-regional small{display:block;padding:6px;color:inherit}.location-pins g{cursor:pointer;outline:none}.location-pins g:focus-visible circle{stroke:white;stroke-width:3}.location-preview figure{margin:0;min-width:0}.location-preview canvas{display:block;width:100%;height:auto;max-height:280px;object-fit:contain;background:#294b3c;border:1px solid var(--ui-line,#9eaf9a);border-radius:7px}.location-preview figcaption{font-size:12px;line-height:1.5;margin-top:6px}.location-status{min-height:1.5em}.location-details summary{cursor:pointer;padding:8px 0;font-weight:650}.location-details a{color:inherit;text-decoration:underline}.new-area-dialog #managementScenarioSummary,.new-area-dialog #areaMandateSummary,.new-area-dialog #startingStandHint,.new-area-dialog .location-status,.new-area-dialog label,.new-area-dialog summary,.new-area-dialog th,.new-area-dialog td,.new-area-dialog .forest-question-hint{color:inherit!important}.new-area-dialog label small{color:inherit!important;opacity:.9}.new-area-dialog .setup-stands th{background:var(--ui-panel,#edf0e7);color:inherit}.new-area-dialog .area-advanced p,.new-area-dialog .location-details p{color:inherit!important}.new-area-dialog .recommended-start{color:var(--ui-ink,#eef5e6)!important}.new-area-dialog .recommended-start :is(strong,span,small){color:inherit!important}@media(max-width:600px){.location-preview{grid-template-columns:100px minmax(0,1fr);gap:8px}.location-picker{padding:10px}.location-preview figcaption{font-size:11px}.location-regional small{font-size:10px}}@media(min-width:901px){#newManagement,.management-picker>button[aria-label="Manage saved areas"]{height:34px;min-height:34px;box-sizing:border-box}.management-picker>button[aria-label="Manage saved areas"]{width:34px;min-width:34px;padding:6px;display:grid;place-items:center;line-height:1}.management-picker>button[aria-label="Manage saved areas"] svg{display:block;width:18px;height:18px}.right-panel[data-rail=true]:not([data-panel-mode=floating]):not([data-panel-mode=popover]){right:124px!important}.map-build-menu,.tree-field-panel,.vehicle-control-panel:not([data-mode=cab]){right:124px!important}}
.new-area-dialog[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);overflow:hidden}.new-area-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-shrink:0}.new-area-heading h2{margin:0}.new-area-heading button{min-height:34px;flex:none}.new-area-dialog>p{flex-shrink:0}.new-area-dialog #areaForm{display:flex;flex-direction:column;flex:1;min-height:0}.new-area-form-body{overflow:auto;min-height:0;flex:1;padding-right:4px}.new-area-dialog .dialog-actions{flex-shrink:0;flex-wrap:wrap}.new-area-dialog #areaError{flex-shrink:0;max-height:60px;overflow:auto;color:inherit;margin:8px 0 0}.new-area-dialog #areaError:empty{margin:0}@media(max-width:600px){.new-area-heading{gap:8px}.new-area-heading h2{font-size:21px}.new-area-heading button{font-size:11px;max-width:140px}.new-area-dialog .dialog-actions button{min-height:44px}}

.new-area-dialog details{color:inherit!important}.location-preview{grid-template-columns:150px minmax(0,360px);justify-content:center}.location-preview canvas{max-height:none;aspect-ratio:1}.location-preview figcaption{max-width:360px}@media(max-width:600px){.location-preview{grid-template-columns:90px minmax(0,1fr);justify-content:stretch}}

.header-square-icon,.header-square-label{display:none}@media(min-width:901px){body>header :is(#newManagement,.management-picker>button[aria-label="Manage saved areas"],.mandate-launch,.header-all-menu>summary){box-sizing:border-box;width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important;flex:0 0 48px;padding:5px 2px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px!important;border-radius:7px;line-height:1!important;overflow:hidden}body>header .header-square-icon,body>header .header-square-label{display:block}body>header .header-square-original{display:none}body>header :is(#newManagement,.mandate-launch,.management-picker>button[aria-label="Manage saved areas"],.header-all-menu>summary) svg{width:20px!important;height:20px!important;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}body>header .header-square-label,body>header .header-all-menu>summary>span{font-size:9px!important;line-height:1.1!important;font-weight:650;letter-spacing:0;white-space:nowrap;color:inherit!important}body>header .header-all-menu>summary::after{display:none}}

.area-picker-map{display:none}@media(min-width:901px){body>header .management-identity{width:48px!important;min-width:48px;flex:none}body>header .management-combo{width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;border-radius:7px}body>header .area-picker-map{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.85}body>header .management-combo #managementName{position:absolute;inset:0;z-index:1;width:100%;padding:29px 15px 4px 3px!important;font-size:8px!important;font-weight:700;line-height:12px;color:#fff!important;text-shadow:0 1px 3px #000;background:linear-gradient(transparent 38%,#102d23df)!important}body>header .management-caret{position:absolute;right:0;bottom:0;z-index:2;height:18px;width:15px;border:0;font-size:11px;color:#fff}body>header .management-combo #managementArea{z-index:3;width:15px!important;max-width:15px!important}body>header .header-main-actions{position:relative}body>header .header-main-actions>.theme-picker{display:flex!important;position:absolute;top:calc(100% + 1px);left:50%;transform:translateX(-50%);gap:0;padding:0!important;margin:0!important;height:17px;white-space:nowrap;color:var(--ui-muted,#bdccba);font-size:9px!important;letter-spacing:0}body>header .header-main-actions>.theme-picker>span{display:none}body>header .header-main-actions>.theme-picker select{width:104px!important;max-width:104px;min-height:0!important;height:17px!important;padding:0 12px 0 3px!important;font-size:9px!important;line-height:15px;background:transparent!important;border-color:transparent!important;color:inherit!important}body>header .management-picker>label{display:none}body>header,body>header.header-one-row{grid-template-columns:auto minmax(0,1fr) auto auto!important;column-gap:10px}body>header .header-control-row{display:contents}body>header .brand{grid-column:1!important;grid-row:1!important}body>header .panel-dock-strip{grid-column:2!important;grid-row:1!important;min-width:0}body>header .header-buttons{grid-column:3!important;grid-row:1!important;display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin:0}body>header .clock-panel{grid-column:4!important;grid-row:1!important}body>header .management-picker{flex:none;gap:5px;flex-wrap:nowrap;margin:0}body>header .panel-dock-strip .panel-launchers{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;min-width:0}body>header .header-main-actions{flex:none}}

.area-switch-menu{position:fixed;z-index:2200;width:220px;max-height:min(360px,60dvh);overflow:auto;padding:6px;border:1px solid var(--ui-line,#789886);border-radius:8px;background:var(--ui-panel,#183a2d);color:var(--ui-ink,#eff4e7);box-shadow:0 8px 24px #0006}.area-switch-menu[hidden]{display:none}.area-switch-menu button{display:block;width:100%;min-height:44px;padding:9px;text-align:left;color:inherit;background:var(--ui-control,#284b3a);border:1px solid transparent;border-radius:5px;line-height:1.4}.area-switch-menu button[aria-selected=true]{border-color:var(--ui-accent,#decd8b);font-weight:750}.area-switch-menu button:hover,.area-switch-menu button:focus-visible{color:var(--ui-accent-ink,#18362a);background:var(--ui-accent,#decd8b);outline:none}@media(max-width:900px){.area-switch-menu{display:none!important}}
@media(min-width:901px){body>header,body>header.header-one-row{height:128px!important;min-height:128px!important;max-height:128px!important}body>header .brand small{display:none}}@media(min-width:901px) and (max-width:1000px){body>header .brand{font-size:14px}body>header .clock-panel{width:420px!important;min-width:420px!important;max-width:420px!important;grid-template-columns:98px minmax(100px,1fr) 46px 90px!important}body>header .clock-panel #clockToggle{width:46px;min-width:46px}body>header .clock-panel .speed-control{width:90px;flex-basis:90px}}

/* Setup follows the same order on every screen; only the content surface scrolls. */
.setup-section{margin:14px 0;padding:14px;border:1px solid var(--ui-line,#829a87);border-radius:10px;color:inherit}
.setup-section>h3,.setup-section>summary{margin:0 0 12px;font-size:16px;line-height:1.35;font-weight:750;color:inherit;letter-spacing:0}
.setup-disclosure>summary{margin:0;cursor:pointer;min-height:44px;padding:10px 0}
.setup-disclosure[open]>summary{margin-bottom:10px}
.new-area-dialog .setup-section label{font-size:13px;letter-spacing:0;line-height:1.4}
.setup-section .location-picker,.setup-section .forest-question-setup{margin:10px 0 0;border:0;padding:0;background:transparent}
.setup-scroll-cue{display:block;flex:none;padding:4px 0 8px;font-size:12px;line-height:1.3;color:var(--ui-muted,#c8d6c1)}
.setup-scroll-cue[hidden]{display:none}.new-area-intro{margin:0 0 12px}.setup-measured-option{width:100%;margin:16px 0 4px}
@media(max-width:900px){
 dialog.management-dialog.new-area-dialog:has(#areaForm)[open]{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:0!important;border:0;border-radius:0;overflow:hidden!important}
 .new-area-dialog .new-area-heading{padding:12px 14px 8px;margin:0;gap:10px;background:var(--ui-panel,#17382b)}
 .new-area-heading h2{font-size:20px;line-height:1.2;margin:0;min-width:0}.new-area-heading button{min-height:44px;max-width:116px;font-size:12px;line-height:1.25;white-space:normal}
 .new-area-dialog .setup-scroll-cue{margin:0;padding:0 14px 8px}
 .new-area-dialog #areaForm{flex:1 1 0;overflow:hidden;min-height:0}
 .new-area-dialog .new-area-form-body{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 14px 20px;overscroll-behavior:contain;scroll-padding-block:12px;-webkit-overflow-scrolling:touch}
 .new-area-dialog .new-area-intro{font-size:14px;line-height:1.5;color:inherit}
 .new-area-dialog .setup-section{padding:12px;margin:0 0 12px;background:var(--ui-control,#254335)}
 .new-area-dialog .setup-section>h3,.new-area-dialog .setup-section>summary{font-size:16px}
 .new-area-dialog .setup-section label{font-size:14px!important;letter-spacing:0;gap:6px;margin:12px 0}
 .new-area-dialog :is(input:not([type=checkbox]):not([type=range]),select){width:100%;min-height:44px;font-size:16px!important;max-width:100%!important}
 .new-area-dialog p{font-size:14px!important;line-height:1.5!important}
 .new-area-dialog #managementScenarioSummary{min-height:0;margin:8px 0 14px}
 .new-area-dialog .recommended-start{padding:12px;margin:12px 0 0;gap:5px}.new-area-dialog .recommended-start strong{font-size:15px}
 .new-area-dialog .area-advanced{border-top:1px solid var(--ui-line,#829a87)}
 .new-area-dialog :is(.area-fields,.form-grid){grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .new-area-dialog #areaError{margin:0;padding:0 14px;max-height:64px}
 .new-area-dialog #areaError:empty{padding:0}
 .new-area-dialog #areaForm>.dialog-actions{position:static!important;display:grid!important;grid-template-columns:1fr 2fr;gap:8px;margin:0!important;padding:10px 14px max(10px,env(safe-area-inset-bottom))!important;border-top:1px solid var(--ui-line,#829a87);background:var(--ui-panel,#17382b);flex:none}
 .new-area-dialog .dialog-actions button{min-height:48px;font-size:15px;white-space:normal;line-height:1.25}
 .new-area-dialog .setup-measured-option{padding:12px;display:grid;gap:5px;text-align:left}.new-area-dialog .setup-measured-option strong{font-size:15px}.new-area-dialog .setup-measured-option span{font-size:13px}.new-area-dialog .setup-measured-option small{display:none}
 /* Stand edits become vertical cards; no fields hide off the right edge. */
 #areaForm .setup-stands{overflow:visible!important}#areaForm .setup-stands table{display:block;width:100%;min-width:0!important}#areaForm .setup-stands thead{display:none}#areaForm .setup-stands tbody{display:grid;gap:12px}
 #areaForm .setup-stands tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:12px;border:1px solid var(--ui-line,#829a87);border-radius:9px;background:var(--ui-panel,#17382b)}
 #areaForm .setup-stands td{display:flex;flex-direction:column;gap:5px;padding:0!important;border:0;min-width:0;color:inherit!important}
 #areaForm .setup-stands td:first-child{grid-column:1/-1;font-size:16px;font-weight:750}#areaForm .setup-stands td:nth-child(4){grid-column:1/-1}
 #areaForm .setup-stands td:nth-child(2)::before{content:'Age · years'}#areaForm .setup-stands td:nth-child(3)::before{content:'Trees / net acre'}#areaForm .setup-stands td:nth-child(4)::before{content:'Species mix'}#areaForm .setup-stands td:nth-child(5)::before{content:'Height multiplier'}#areaForm .setup-stands td:nth-child(6)::before{content:'Stand row'}
 #areaForm .setup-stands td::before{font-size:12px;font-weight:600;line-height:1.3}#areaForm .setup-stands :is(input,select,button){width:100%!important;max-width:100%!important;min-height:44px}
 .new-area-dialog .location-preview{grid-template-columns:minmax(0,1fr);gap:10px}.new-area-dialog .location-regional{display:none}.new-area-dialog .location-preview canvas{max-height:220px;object-fit:contain}.new-area-dialog .location-preview figcaption{font-size:12px}
}

.new-area-dialog{--setup-bg:var(--ui-panel,#edf0e7);--setup-ink:var(--ui-ink,#243c2b);--setup-card:var(--ui-control,#ffffff)}
.new-area-dialog .setup-scroll-cue{color:var(--ui-muted,#536a54)}
@media(max-width:900px){dialog.management-dialog.new-area-dialog:has(#areaForm)[open]{background:var(--setup-bg)!important;color:var(--setup-ink)!important}.new-area-dialog .new-area-heading,.new-area-dialog #areaForm>.dialog-actions{background:var(--setup-bg)}.new-area-dialog .new-area-heading h2{color:inherit!important}.new-area-dialog .setup-section{background:var(--setup-card);color:var(--setup-ink)!important}.new-area-dialog .setup-section :is(h3,summary,label){color:inherit!important}#areaForm .setup-stands tr{background:var(--setup-bg)}}
@media(max-width:900px){.new-area-dialog .new-area-form-body{overflow-anchor:none}.new-area-dialog .starting-stand-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.new-area-dialog .starting-stand-actions :is(strong,p){grid-column:1/-1;margin:0;font-size:14px!important}.new-area-dialog .starting-stand-actions button{min-height:44px;font-size:13px;padding:8px;white-space:normal}.new-area-dialog .setup-stands td:nth-child(6) button{margin-top:auto}}
