.dem-workbench{margin:0;background:#f5f8f9;color:#283f45;font-size:14px}
.dem-header{height:66px;background:#fff;border-bottom:1px solid #dfe7e8;padding:0 28px;display:flex;align-items:center;gap:12px}.dem-header h1{font-size:21px;margin:0}.dem-header>span{margin-left:auto;color:#6b7f84;font-size:12px}.dem-header svg{color:#286b93}
.dem-page{max-width:1500px;margin:auto;padding:24px 28px 40px}.dem-page h2{font-size:18px;margin:0}.dem-page h3{font-size:14px;margin:0 0 15px}
#dem-form{border:1px solid #dfe7e8;border-radius:5px;background:#fff;padding:24px}.form-heading{display:flex;align-items:center;gap:15px;margin-bottom:24px;flex-wrap:wrap}.form-heading>span{margin-left:auto;color:#6b7f84;font-size:12px}
.file-label{font-size:13px;display:block;margin-bottom:9px}.file-row{display:flex;gap:10px;margin:0}.file-row input{flex:1;min-width:0}.file-row button{white-space:nowrap}.dem-workbench input,.dem-workbench select,.dem-workbench textarea{font-size:14px;width:100%;min-width:0;box-sizing:border-box;color:#283f45;border:1px solid #d0dbdd;border-radius:4px;padding:10px;background:#fff}
.dem-workbench button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:14px;border:1px solid #d0dbdd;border-radius:4px;background:white;color:#365c6a;padding:9px 14px;cursor:pointer}.dem-workbench button:disabled{opacity:.45;cursor:default}.dem-workbench button.primary{background:#286b93;border-color:#286b93;color:white}
.dem-workbench svg.lucide{width:17px;height:17px;flex-shrink:0}.mode-tabs{display:flex;gap:20px;border-bottom:1px solid #dfe7e8;margin:25px 0}.mode-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:11px 0;background:transparent}.mode-tabs button[aria-pressed=true]{border-color:#286b93;color:#286b93;font-weight:bold}
.dem-parameters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.dem-parameters label{display:grid;gap:10px;align-content:start;margin:0;font-size:13px}.wide-field{grid-column:span 2}.stepper{display:flex}.stepper button{flex:0 0 34px;padding:8px;background:#f4f7fa;border-radius:0}.stepper input{text-align:center;border-radius:0;border-inline:0;appearance:textfield}.stepper input::-webkit-inner-spin-button{appearance:none}
.metadata-parameters dl{display:grid;grid-template-columns:2fr 1fr;gap:25px;margin:0}.metadata-parameters dt{color:#6b7f84;font-size:12px;margin-bottom:10px}.metadata-parameters dd{margin:0;font-size:14px;line-height:1.8}
.run-row{display:flex;align-items:center;gap:18px;margin-top:30px}.run-row>span{font-size:12px;color:#6b7f84}#runProgress{display:block;width:100%;height:6px;margin-top:15px;accent-color:#286b93}.analysis-error{padding:14px 16px;margin-top:18px;background:#fff0f0;border-left:3px solid #c65a5a;color:#a33737;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.dem-results{margin-top:28px;min-width:0}.dem-results>header{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid #dfe7e8}.dem-results>header h2{margin-right:auto}.nodata-toggle{display:flex;align-items:center;gap:6px;font-size:12px;margin:0}.nodata-toggle input{width:auto;accent-color:#286b93}#fileMessage{font-size:13px;color:#6b7f84;padding:16px 0;margin:0}
.dem-results .metadata{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 22px;margin:0 0 20px}.dem-results .metric{padding:8px 0;background:none;border:0;border-radius:0;min-width:0}.metric small{display:block;font-size:12px;color:#6b7f84;margin-bottom:7px}.metric b{font-size:14px;font-weight:normal;overflow-wrap:anywhere}
.dem-result{overflow:auto}.dem-result:empty{display:none}.dem-result table{width:100%;border-collapse:collapse;background:#fff;font-size:13px}.dem-result th,.dem-result td{padding:10px 14px;text-align:right;border-bottom:1px solid #dfe7e8;white-space:nowrap}.dem-result th{background:#edf4f7;color:#526e78;font-weight:normal}.profile-chart{width:100%;max-width:900px;aspect-ratio:3/1;display:block;background:white;margin:0 0 20px}.profile-chart text{font-family:var(--font-app);font-size:12px}
#metadataDetails{margin:0 0 20px}#metadataDetails>summary{cursor:pointer;color:#567c87;font-size:13px;padding:9px 0}
.dem-boundary{margin-top:30px;padding:16px 0;border-top:1px solid #dfe7e8;color:#82724a;font-size:12px;line-height:1.9}.dem-boundary p{margin:6px 0 0}
[hidden]{display:none!important}
@media(max-width:950px){.dem-parameters{grid-template-columns:repeat(2,minmax(0,1fr))}.dem-results .metadata{grid-template-columns:repeat(2,minmax(0,1fr))}.wide-field{grid-column:span 1}}
@media(max-width:560px){.dem-page{padding:16px}.dem-header{padding:0 16px;height:56px}.dem-header h1{font-size:19px}#dem-form{padding:18px 14px}.form-heading>span{margin:0;flex-basis:100%}.dem-parameters{grid-template-columns:1fr}.metadata-parameters dl{grid-template-columns:1fr}.file-row{flex-wrap:wrap}.file-row input{flex-basis:100%}.mode-tabs{gap:16px}.mode-tabs button{font-size:13px}.dem-results>header{gap:12px}.dem-results>header h2{flex-basis:100%}.dem-result th,.dem-result td{padding:9px}.run-row{flex-wrap:wrap}}
