:root {
  --ink: #262626;
  --muted: #666666;
  --paper: #f5f5f3;
  --panel: #ffffff;
  --sea: #262626;
  --sea-dark: #151515;
  --wind: #666666;
  --sun: #ededed;
  --coral: #d86d50;
  --line: #d9d9d9;
  --shadow: 0 18px 52px rgba(38, 38, 38, .10);
  --radius: 18px;
  --on-primary: #ffffff;
  --ci-font: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-family: var(--ci-font);
  color: var(--ink);
  background: var(--paper);
}
html[data-design="idaswind"] { --sea: #800000; --sea-dark: #650000; --wind: #666666; --sun: #ededed; --coral: #b8533e; --on-primary: #ffffff; --ci-font: "Open Sans", "Segoe UI", Arial, sans-serif; }
html[data-design="resolut"] { --sea: #c4a11c; --sea-dark: #a18416; --wind: #666666; --sun: #c4a11c; --coral: #c0614b; --on-primary: #262626; --ci-font: "Raleway", "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0%, #ededed 0, transparent 34rem), var(--paper); color: var(--ink); }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 22px 22px; color: white; background: linear-gradient(165deg, #303030, #262626 66%, #1b1b1b); box-shadow: 8px 0 32px rgba(38, 38, 38, .18); z-index: 1000; }
.brand { color: white; display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 11px; margin-bottom: 30px; }
.brand:hover { color: white; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-family: var(--ci-font); font-size: 25px; background: rgba(255,255,255,.07); }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .04em; font-family: var(--ci-font); font-size: 17px; }
.brand small { color: #d0d0d0; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav { display: grid; gap: 4px; }
.primary-nav a { color: #e2e2e2; padding: 11px 13px; border-radius: 10px; font-size: 14px; }
.primary-nav a:hover { background: rgba(255,255,255,.08); color: white; }
.project-nav { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.project-nav > a { color: white; }
.project-nav > a span, .project-nav > a strong { display: block; }
.project-nav > a span { color: #bdbdbd; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.project-nav > a strong { margin-top: 5px; }
.project-nav nav { display: grid; gap: 3px; margin-top: 13px; }
.project-nav nav a { color: #d0d0d0; font-size: 13px; padding: 7px 9px; border-radius: 8px; }
.project-nav nav a:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar-ci-lockup { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-ci-logo { display: block; width: auto; max-width: 92px; max-height: 30px; object-fit: contain; }
.sidebar-ci-logo-resolut { padding: 4px 6px; border-radius: 4px; background: #ffffff; }
.user-box { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 10px; }
.user-box .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #262626; background: var(--sun); font-weight: 800; }
.user-box strong, .user-box small { display: block; }
.user-box strong { font-size: 13px; }
.user-box small { color: #bdbdbd; font-size: 11px; }
.user-box form { margin-left: auto; }
.logout-button { min-height: 31px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; color: #ffffff; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.logout-button:hover { background: rgba(255,255,255,.14); }
.icon-button { border: 0; background: transparent; color: inherit; font-size: 22px; }
.page-main { min-width: 0; padding: 42px clamp(24px, 4vw, 68px) 70px; }
.page-content { max-width: 1500px; margin: 0 auto; }
.page-back-button { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 17px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 11px; font-weight: 700; }
.page-back-button:hover { color: var(--sea); border-color: var(--sea); }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.hero h1 { max-width: 900px; margin: 0; overflow-wrap: anywhere; font: 700 clamp(34px, 4vw, 58px)/1 var(--ci-font); letter-spacing: -.03em; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { max-width: 100%; margin: 4px 0 7px; overflow-wrap: anywhere; font: 700 clamp(34px, 4vw, 58px)/1 var(--ci-font); letter-spacing: -.03em; }
.page-heading p { margin: 0; max-width: 780px; color: var(--muted); line-height: 1.6; }
.eyebrow { color: var(--sea); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
.sidebar .eyebrow, .login-intro .eyebrow { color: var(--sun); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button, button.button { min-height: 42px; display: inline-flex; justify-content: center; align-items: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--sea); color: var(--on-primary); box-shadow: 0 8px 20px rgba(38,38,38,.18); }
.button.primary:hover { background: var(--sea-dark); color: var(--on-primary); }
.button.secondary { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.7); }
.button.compact, button.button.compact { min-height: 34px; padding: 7px 12px; font-size: 11px; }
.button.full { width: 100%; }
.panel, .card, .table-panel { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 25px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 34px; }
.kpi-grid article { min-width: 0; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.kpi-grid span, .kpi-grid strong { display: block; }
.kpi-grid span { color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.kpi-grid strong { margin-top: 10px; overflow-wrap: anywhere; font: 700 clamp(20px, 2.2vw, 28px) var(--ci-font); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 34px 0 15px; }
.section-heading h2 { margin: 4px 0 0; font: 700 29px var(--ci-font); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 17px; }
.project-card { min-height: 220px; display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 22px; color: var(--ink); }
.project-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 21px 55px rgba(38,38,38,.14); }
.project-card h3 { font: 700 23px var(--ci-font); margin: 9px 0 7px; }
.project-card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.project-card footer { grid-column: 1/-1; align-self: end; display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--on-primary); background: var(--sea); font: 700 24px var(--ci-font); }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; color: #262626; background: #ededed; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-pill.status-failed { color: #7b2f22; background: #f6dcd4; }
.status-pill.status-completed { color: #245d42; background: #dbeee2; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.module-grid.compact-modules { grid-template-columns: repeat(6, 1fr); }
.module-card { min-height: 180px; padding: 21px; border-radius: 16px; color: var(--ink); background: linear-gradient(155deg, #fffefb, #f0f0ed); border: 1px solid var(--line); transition: transform .15s, border .15s; }
.module-card:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--wind); }
.module-card span { color: var(--sea); font: 700 13px var(--ci-font); }
.module-card h3 { margin: 35px 0 6px; font: 700 22px var(--ci-font); }
.module-card p { margin: 0; color: var(--muted); font-size: 12px; }
.compact-modules .module-card { min-height: 145px; }
.compact-modules .module-card h3 { margin-top: 25px; font-size: 18px; }
.stack-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field[hidden] { display: none !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.field small { color: var(--muted); line-height: 1.45; }
input, select, textarea { width: 100%; min-height: 43px; border: 1px solid #cfcfcf; border-radius: 10px; padding: 10px 12px; color: var(--ink); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(38,38,38,.12); border-color: var(--wind); }
.checkbox-field { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.checkbox-field input { width: 18px; min-height: 18px; }
.filter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.analysis-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.analysis-layout.with-map { grid-template-columns: 340px minmax(400px, 1fr); }
.analysis-layout.with-map .result-panel { grid-column: 1/-1; }
.analysis-map { min-height: 620px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #e2e2e2; }
.analysis-map [data-map] { height: 590px; }
.map-caption { padding: 9px 13px; color: var(--muted); background: var(--panel); font-size: 10px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 17px; }
.panel-heading h2, .panel h2 { margin: 4px 0 10px; font: 700 25px var(--ci-font); }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.result-grid > div { padding: 14px; background: #f1f1ef; border-radius: 10px; }
.result-grid dt { color: var(--muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.result-grid dd { margin: 7px 0 0; font-weight: 700; }
.result-grid .result-wide { grid-column: 1/-1; }
.limit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.limit-highlight { padding: 16px; border-left: 5px solid var(--coral); border-radius: 10px; background: #f8e9e3; }
.limit-highlight.after { border-left-color: #4f8a5b; background: #e5f1e8; }
.limit-highlight span, .limit-highlight strong, .limit-highlight small { display: block; }
.limit-highlight span { color: var(--muted); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.limit-highlight strong { margin: 7px 0; }
.cashflow-chart { height: 250px; display: flex; align-items: stretch; gap: 4px; margin: 8px 0 22px; padding: 28px 12px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(#f7faf8, #fff); }
.cashflow-bar-wrap { flex: 1; min-width: 7px; display: flex; align-items: center; justify-content: end; flex-direction: column; position: relative; }
.cashflow-bar { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--wind); }
.cashflow-bar.negative { border-radius: 0 0 3px 3px; background: var(--coral); }
.cashflow-bar-wrap small { position: absolute; bottom: -18px; font-size: 8px; color: var(--muted); }
pre { white-space: pre-wrap; word-break: break-word; }
.data-block { max-height: 520px; overflow: auto; padding: 14px; border-radius: 10px; color: #ededed; background: #262626; font-size: 11px; line-height: 1.55; }
.table-panel { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: var(--muted); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; text-align: left; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); vertical-align: top; }
td small { display: block; color: var(--muted); margin-top: 4px; }
tbody tr:last-child td { border-bottom: 0; }
.selected-row { background: #f0f0f0; }
.selection-checkbox { width: 18px; min-height: 18px; margin: 0; accent-color: var(--sea); }
.radio-button, .text-button { padding: 0; border: 0; color: var(--sea); background: transparent; }
.text-button.danger { color: #a04434; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--sun); }
.status-dot.status-in-betrieb { background: #3d9b6b; }
.empty-state { padding: 36px; color: var(--muted); text-align: center; border: 1px dashed #cfcfcf; border-radius: 14px; }
.empty-state.small { padding: 20px; }
.messages { position: fixed; right: 26px; top: 24px; display: grid; gap: 8px; z-index: 2500; }
.message { max-width: 440px; padding: 13px 16px; border-radius: 10px; color: white; background: var(--sea); box-shadow: var(--shadow); }
.message.error { background: #9b4635; }
.map-page .page-main { padding-right: 24px; padding-left: 24px; }
.map-workspace { display: grid; grid-template-columns: 310px minmax(0,1fr); min-height: 690px; gap: 14px; }
.map-filters { max-height: 760px; overflow: auto; z-index: 2; }
.map-stage { position: relative; min-height: 690px; overflow: hidden; border-radius: var(--radius); background: #e2e2e2; box-shadow: var(--shadow); }
.map-stage [data-map] { height: 760px; }
.map-result-drawer { position: absolute; right: 15px; top: 15px; z-index: 700; width: min(390px, calc(100% - 30px)); max-height: 70%; overflow: auto; padding: 13px; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.search-summary { margin: 4px 0 10px; color: var(--muted); font-size: 11px; }
.result-list { display: grid; gap: 7px; max-height: 430px; overflow: auto; }
.result-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.result-item.is-picked { border-color: var(--sea); background: #edf5f1; box-shadow: 0 0 0 2px rgba(31,101,91,.12); }
.result-item strong, .result-item small { display: block; }
.result-item small { color: var(--muted); margin-top: 4px; }
.result-actions { display: flex; align-self: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.result-item .mini-button { align-self: center; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; color: var(--on-primary); background: var(--sea); font-size: 11px; }
.result-item .mini-button.secondary { color: var(--ink); border-color: var(--line); background: #ffffff; }
.layer-legend { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 14px; }
.layer-legend h3 { font: 700 18px var(--ci-font); }
.layer-legend label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; margin: 8px 0; }
.legend-area { width: 18px; height: 10px; border-radius: 2px; background: var(--sea); opacity: .65; }
.legend-area.draft { background: var(--sun); }
.legend-area.special { background: var(--coral); }
.map-page .page-content { max-width: 1640px; }
.map-page-heading { margin-bottom: 14px; }
.map-page-heading h1 { font-size: clamp(34px, 3.3vw, 51px); }
.map-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.central-map-workspace { display: grid; grid-template-columns: 240px minmax(380px, 1fr) 270px; gap: 12px; align-items: stretch; height: min(780px, calc(100vh - 195px)); min-height: 650px; }
.central-map-sidebar, .central-map-detail { min-height: 0; overflow: auto; padding: 18px; border-radius: 15px; box-shadow: 0 10px 35px rgba(38,38,38,.09); }
.central-map-sidebar .stack-form { gap: 10px; }
.central-map-sidebar input, .central-map-sidebar select { min-height: 38px; padding: 8px 9px; font-size: 12px; }
.central-map-sidebar .field { gap: 5px; }
.central-map-sidebar .field label { font-size: 9px; }
.map-advanced-filters { padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map-advanced-filters summary { color: var(--sea); font-size: 11px; font-weight: 700; cursor: pointer; }
.map-advanced-filters[open] summary { margin-bottom: 10px; }
.date-range-fields { min-width: 0; display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.date-range-fields legend { margin-bottom: 7px; padding: 0; color: var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.central-map-sidebar input[type="date"] { min-width: 0; max-width: 100%; color-scheme: light; }
.map-utility-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.map-utility-actions a:not(.button), .map-utility-actions button:not(.button) { padding: 0; border: 0; color: var(--sea); background: transparent; font-size: 9px; font-weight: 700; }
.map-layer-controls, .map-neighbor-controls, .map-search-list { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.map-layer-controls h2, .map-neighbor-controls h2 { margin: 0; font: 700 16px var(--ci-font); }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.section-title-row .text-button { font-size: 10px; }
.layer-switch { display: grid; grid-template-columns: 17px 20px minmax(0,1fr) auto; align-items: center; gap: 7px; min-height: 30px; color: #464646; font-size: 10px; cursor: pointer; }
.layer-switch input { width: 15px; min-height: 15px; margin: 0; accent-color: var(--sea); }
.layer-switch strong { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.legend-point { width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #4f8a5b; box-shadow: 0 0 0 1px #777; }
.legend-area.valid { background: #4f8a5b; }
.legend-area.draft { background: #e1b944; }
.legend-area.special { background: #777; }
.legend-area.historic { border-color: #78534b; background: repeating-linear-gradient(135deg, #9a6d62 0 4px, #e8deda 4px 8px); }
.legend-area.unknown { background: #aaa; background-image: repeating-linear-gradient(135deg, transparent 0 3px, #777 3px 4px); }
.legend-radius { width: 17px; height: 17px; border: 2px dashed var(--sea); border-radius: 50%; opacity: .75; }
.neighbor-factor { margin-top: 8px; }
.neighbor-factor > label { display: block; margin-bottom: 4px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.neighbor-factor > div { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; }
.neighbor-factor input { min-height: 34px; }
.neighbor-factor span, .field-note { color: var(--muted); font-size: 9px; line-height: 1.45; }
.field-note { margin: 7px 0; }
.wind-sector-legend { display: grid; gap: 4px; margin-top: 8px; color: var(--muted); font-size: 9px; }
.wind-sector-legend span { display: flex; align-items: center; gap: 6px; }
.wind-sector-legend i { width: 17px; height: 7px; display: inline-block; border-radius: 2px; }
.main-wind { background: #d6af72; }
.secondary-wind { background: #58a6a6; }
.map-search-list .result-list { max-height: 220px; }
.map-search-list .result-item { grid-template-columns: 1fr; padding: 8px; font-size: 10px; }
.map-search-list .result-actions { justify-content: flex-start; }
.central-map-stage { min-width: 0; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #e3e5e1; box-shadow: var(--shadow); }
.central-map-stage [data-map] { width: 100%; height: 100%; min-height: 650px; }
.leaflet-selection-pane, .leaflet-selection-pane canvas, .leaflet-selection-pane svg { pointer-events: none !important; }
.map-status-strip { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 710; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 11px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: 0 8px 25px rgba(38,38,38,.15); }
.map-status-strip span { min-width: 0; padding: 8px 10px; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; white-space: nowrap; text-align: center; }
.map-status-strip span:last-child { border-right: 0; }
.map-status-strip strong { color: var(--ink); font-size: 11px; }
.central-map-detail { position: relative; }
.map-detail-empty { min-height: 100%; display: grid; place-content: center; text-align: center; }
.map-detail-empty[hidden], .map-detail-content[hidden] { display: none !important; }
.detail-empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 13px; border: 1px solid var(--line); border-radius: 50%; color: var(--sea); background: #f3f3f1; font-size: 26px; }
.map-detail-empty h2 { margin: 0 0 7px; font-size: 21px; }
.map-detail-empty p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.map-detail-content header { margin: -18px -18px 0; padding: 19px 18px 16px; color: #fff; background: linear-gradient(145deg, #303030, #202020); }
.map-detail-content header h2 { margin: 4px 0 5px; color: #fff; font-size: 22px; overflow-wrap: anywhere; }
.map-detail-content header p { margin: 0; color: #d5d5d5; font-size: 10px; line-height: 1.45; }
.map-detail-project-action { padding: 13px 0 0; }
.detail-kicker { color: var(--sun); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.detail-section { padding: 15px 0; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h3 { margin: 0 0 9px; font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-value { min-width: 0; padding: 8px; border-radius: 8px; background: #f3f3f1; }
.detail-value.wide { grid-column: 1/-1; }
.detail-value span, .detail-value strong { display: block; }
.detail-value span { color: var(--muted); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.detail-value strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 11px; }
.detail-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.detail-links a { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; font-weight: 700; }
.neighbor-list { display: grid; gap: 6px; max-height: 230px; overflow: auto; }
.neighbor-card { display: grid; grid-template-columns: 11px 1fr auto; gap: 7px; align-items: start; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; }
.neighbor-card i { width: 9px; height: 9px; margin-top: 2px; border-radius: 50%; background: #58a6a6; }
.neighbor-card i.main { background: #d6af72; }
.neighbor-card strong, .neighbor-card small { display: block; }
.neighbor-card small { margin-top: 2px; color: var(--muted); }
.plan-status-label { display: inline-flex; margin-bottom: 8px; padding: 4px 7px; border-radius: 999px; color: #254a32; background: #dfeee3; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.plan-status-label.draft { color: #664d00; background: #f8edc7; }
.plan-status-label.special, .plan-status-label.unknown { color: #454545; background: #e7e7e7; }
.plan-status-label.historic { color: #6b3f37; background: #efe1dd; }
.turbine-cluster { width: var(--cluster-size, 36px); height: var(--cluster-size, 36px); display: grid; place-items: center; border: 3px solid rgba(255,255,255,.92); border-radius: 50%; color: white; background: var(--sea); box-shadow: 0 4px 12px rgba(38,38,38,.25); font-size: var(--cluster-font-size, 10px); font-weight: 800; }
.leaflet-tooltip.fv-tooltip { padding: 4px 7px; border: 0; border-radius: 6px; color: #fff; background: rgba(38,38,38,.88); box-shadow: none; font-size: 9px; }
.turbine-popup { min-width: 240px; }
.turbine-popup > strong { margin-bottom: 8px; color: var(--ink); font-size: 14px; }
.turbine-popup dl { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0; }
.turbine-popup dl > div { min-width: 0; padding: 5px 6px; border-radius: 6px; background: #f3f3f1; }
.turbine-popup dt { color: var(--muted); font-size: 7px; letter-spacing: .04em; text-transform: uppercase; }
.turbine-popup dd { margin: 2px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 9px; font-weight: 700; }
.site-project-popup-note { margin-top: 8px; color: var(--sea); font-weight: 800; }
.regional-info-popup { display: grid; gap: 7px; line-height: 1.45; }
.regional-info-popup strong { color: var(--sea); font-size: 13px; }
.regional-info-popup span { color: var(--ink); font-size: 11px; }
.regional-info-popup small { padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.regional-info-popup a { color: var(--sea); font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.site-page-heading { margin-bottom: 14px; }
.site-map-workspace { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; min-height: 650px; }
.site-map-sidebar { min-height: 0; padding: 19px; }
.site-map-sidebar-heading { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.site-map-sidebar-heading h2 { margin: 5px 0 0; font-size: 21px; overflow-wrap: anywhere; }
.site-map-sidebar .stack-form { gap: 13px; padding-top: 18px; }
.site-map-sidebar input, .site-map-sidebar select { min-height: 40px; font-size: 12px; }
.site-fixed-selection { margin: 20px 0 0; padding: 13px; border-radius: 10px; color: #54362f; background: #f5e9e5; font-size: 10px; line-height: 1.55; }
.site-fixed-selection i { width: 9px; height: 9px; display: inline-block; margin-right: 7px; border: 2px solid #800000; border-radius: 50%; background: #fff; }
.site-map-legend { display: grid; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-map-legend span { display: flex; align-items: center; gap: 8px; }
.site-map-legend i { width: 10px; height: 10px; display: inline-block; border-radius: 50%; background: #6f7778; }
.site-map-legend i.project { border: 2px solid #800000; background: #fff; }
.site-map-legend i.main { background: #d6af72; }
.site-map-legend i.secondary { background: #58a6a6; }
.site-map-stage { position: relative; min-width: 0; min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #e3e5e1; box-shadow: var(--shadow); }
.site-map-stage [data-map] { width: 100%; height: 100%; min-height: 650px; }
.site-map-status { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-analysis-settings { margin-top: 16px; padding: 0; overflow: hidden; }
.site-analysis-settings > summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; cursor: pointer; list-style-position: inside; }
.site-analysis-settings > summary span { display: inline-flex; flex-direction: column; gap: 3px; margin-left: 6px; }
.site-analysis-settings > summary small { color: var(--muted); font-weight: 400; }
.site-analysis-settings[open] > summary { border-bottom: 1px solid var(--line); }
.site-settings-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 20px; align-items: end; }
.site-settings-grid .button { min-height: 43px; }
.site-reader-note { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 15px 18px; }
.site-reader-note p { margin: 0; color: var(--muted); font-size: 11px; }
.site-evaluations { display: grid; gap: 16px; margin-top: 28px; }
.site-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.site-results-heading h2 { margin: 4px 0 0; font: 700 28px var(--ci-font); }
.site-results-heading p { max-width: 540px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: right; }
.site-evaluation { padding: 0; overflow: hidden; }
.site-evaluation-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.site-evaluation-header h3 { margin: 4px 0; font: 700 21px var(--ci-font); }
.site-evaluation-header p { margin: 0; color: var(--muted); font-size: 10px; }
.site-evaluation-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; border-bottom: 1px solid var(--line); background: var(--line); }
.site-evaluation-kpis > div { padding: 13px 18px; background: #f6f6f3; }
.site-evaluation-kpis dt { color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.site-evaluation-kpis dd { margin: 5px 0 0; color: var(--ink); font-size: 16px; font-weight: 800; }
.site-neighbor-table-wrap { overflow-x: auto; }
.site-neighbor-table { min-width: 1480px; font-size: 11px; }
.site-neighbor-table th, .site-neighbor-table td { padding: 11px 12px; }
.site-neighbor-table th { padding-top: 9px; padding-bottom: 9px; background: #fafaf8; }
.site-neighbor-table th button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; cursor: pointer; }
.site-neighbor-table th button::after { content: "↕"; color: #aaa; font-size: 10px; }
.site-neighbor-table th[aria-sort="ascending"] button::after { content: "↑"; color: var(--sea); }
.site-neighbor-table th[aria-sort="descending"] button::after { content: "↓"; color: var(--sea); }
.site-neighbor-table td { white-space: nowrap; }
.site-neighbor-table td small { margin-top: 4px; }
.wind-sector-pill, .life-phase-pill { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.wind-sector-pill.main { color: #604a22; background: #f5e8ca; }
.wind-sector-pill.secondary { color: #22585b; background: #dff0f0; }
.life-phase-pill { color: #3e4547; background: #eceeed; }
dialog { width: min(1100px, calc(100vw - 40px)); max-height: 90vh; overflow: auto; border: 0; border-radius: 20px; padding: 25px; color: var(--ink); background: var(--panel); box-shadow: 0 30px 90px rgba(38,38,38,.28); }
dialog::backdrop { background: rgba(38,38,38,.66); backdrop-filter: blur(3px); }
.dialog-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.dialog-header h2 { margin: 4px 0; font: 700 31px var(--ci-font); }
.dialog-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.map-project-dialog { width: min(680px, calc(100vw - 40px)); }
.map-project-options { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; }
.map-project-choice { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fafaf9; }
.map-project-choice h3 { margin: 0 0 12px; font-size: 17px; }
.dialog-separator { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dialog-separator::before, .dialog-separator::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.map-project-options .dialog-separator { flex-direction: column; margin: 0; }
.map-project-options .dialog-separator::before, .map-project-options .dialog-separator::after { width: 1px; height: auto; }
.map-project-feedback { min-height: 20px; margin: 13px 0 0; padding: 9px 11px; border-radius: 8px; color: var(--muted); background: #f3f3f1; font-size: 11px; }
.map-project-feedback:empty { display: none; }
.map-project-feedback.success { color: #245d42; background: #e5f1e8; }
.map-project-feedback.error { color: #7b2f22; background: #f6dcd4; }
.map-project-feedback a { margin-left: 4px; font-weight: 800; }
.turbine-dialog-filters { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(130px, 1fr)) auto; gap: 10px; align-items: end; }
.turbine-dialog-filters label { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.turbine-dialog-filters .button { margin-bottom: 1px; }
.dialog-map { height: 320px; margin: 14px 0; border-radius: 13px; background: #e2e2e2; }
.reference-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin: 17px 0; }
.reference-kpis > div { padding: 12px; border-radius: 10px; background: #f0f0ed; }
.reference-kpis strong, .reference-kpis span { display: block; }
.reference-kpis span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.reference-trigger { flex-direction: column; align-items: flex-start; gap: 1px; min-height: 48px; border-radius: 14px; text-align: left; }
.reference-trigger > span { line-height: 1.1; }
.reference-trigger small { max-width: 390px; overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.inline-links { display: flex; gap: 10px; margin-top: 6px; }
.job-list { display: grid; gap: 8px; }
.job-list > a, .job-list > div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); }
.scada-page-heading { margin-bottom: 20px; }
.scada-process { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 13px; margin-bottom: 20px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); }
.scada-process span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.scada-process b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #777; }
.scada-process i { height: 1px; background: var(--line); }
.scada-phase-panel { margin-bottom: 18px; }
.scada-phase-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: -25px -25px 22px; padding: 22px 25px; border-bottom: 1px solid var(--line); background: #f7f7f5; border-radius: var(--radius) var(--radius) 0 0; }
.scada-phase-head > div { min-width: 0; display: flex; gap: 16px; align-items: flex-start; }
.scada-phase-number { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #666; font-size: 13px; font-weight: 800; }
.scada-phase-head h2 { margin: 4px 0 5px; font-size: 25px; }
.scada-phase-head p { max-width: 820px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.scada-drop-zone { min-height: 245px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 26px; border: 2px dashed #aaa; border-radius: 14px; text-align: center; background: #f3f3f1; transition: .15s ease; }
.scada-drop-zone.drag-active { border-color: var(--sea); background: #ececeb; transform: scale(.997); }
.scada-drop-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #666; font-size: 25px; }
.scada-drop-zone > strong { font-size: 20px; }
.scada-drop-zone > span { color: var(--muted); font-size: 11px; }
.scada-native-inputs { width: 1px; height: 1px; position: absolute; overflow: hidden; opacity: 0; pointer-events: none; }
.scada-file-selection { padding: 17px; border: 1px solid var(--line); border-radius: 13px; }
.scada-file-selection h3 { margin: 4px 0 0; }
.scada-file-table-wrap { margin-top: 12px; overflow-x: auto; }
.scada-file-table-wrap table { min-width: 850px; font-size: 11px; }
.scada-file-table-wrap th, .scada-file-table-wrap td { padding: 10px 11px; }
.scada-file-table-wrap select { min-width: 280px; }
.scada-mapping-list { display: grid; gap: 13px; }
.scada-mapping-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.scada-mapping-card > header { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 11px; align-items: center; padding: 14px 16px; background: #f3f3f1; }
.scada-mapping-card > header strong, .scada-mapping-card > header small { display: block; }
.scada-mapping-card > header small { margin-top: 3px; color: var(--muted); }
.scada-job-check input { width: 17px; height: 17px; accent-color: #666; }
.scada-mapping-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.scada-unit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.scada-mapping-card .field-note { margin: 0; padding: 11px 16px; border-top: 1px solid var(--line); background: #fafaf8; }
.scada-inline-error { margin: 0; padding: 10px 16px; color: #7a3227; background: #f9e9e5; font-size: 11px; }
.scada-inline-error.is-valid { color: #2d6942; background: #e9f4ec; }
.scada-ready-list { display: grid; gap: 8px; }
.scada-ready-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; }
.scada-ready-list label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: center; }
.scada-ready-list input { accent-color: #666; }
.scada-ready-list strong, .scada-ready-list small { display: block; }
.scada-ready-list small { margin-top: 3px; color: var(--muted); }
.scada-results-list { margin-top: 24px; }
.scada-result-job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.scada-delete-job { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid #d7b8b1; border-radius: 7px; color: #7a3227; background: #fff; font-size: 17px; line-height: 1; }
.scada-delete-job:hover { color: #fff; border-color: #7a3227; background: #7a3227; }
.scada-blocker { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 22px; background: rgba(25,25,25,.74); backdrop-filter: blur(5px); }
.scada-blocker[hidden] { display: none; }
.scada-blocker > div { width: min(440px, 100%); padding: 32px; border-radius: 18px; text-align: center; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.scada-blocker strong, .scada-blocker p, .scada-blocker small { display: block; }
.scada-blocker strong { margin-top: 17px; font-size: 25px; }
.scada-blocker p { margin: 8px 0; }
.scada-blocker small { color: var(--muted); }
.scada-spinner { width: 44px; height: 44px; display: inline-block; border: 4px solid #ddd; border-top-color: #666; border-radius: 50%; animation: scada-spin .8s linear infinite; }
.scada-busy { overflow: hidden; }
@keyframes scada-spin { to { transform: rotate(360deg); } }
.scada-graphics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.scada-graphics figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.scada-graphics img { display: block; width: 100%; height: auto; }
.scada-graphics figcaption { padding: 10px 14px; color: var(--muted); font-size: 11px; }
.scada-result-heading { align-items: flex-start; }
.scada-result-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 20px 0 14px; }
.scada-result-intro h2 { margin: 5px 0; }
.scada-result-intro p { margin: 0; color: var(--muted); }
.scada-kpi-grid article { min-height: 132px; }
.scada-kpi-grid article small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.scada-result-section { margin-top: 28px; }
.scada-result-graphics figcaption { display: grid; gap: 5px; padding: 15px 17px 18px; }
.scada-result-graphics figcaption strong { color: var(--ink); font-size: 14px; }
.scada-result-graphics figcaption span { line-height: 1.55; }
.scada-result-layout { margin-top: 22px; }
.scada-result-layout .panel { min-width: 0; }
.scada-result-layout .table-wrap { max-height: 440px; overflow: auto; }
.scada-result-layout table { min-width: 650px; }
.scada-normal-reductions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 22px; align-items: center; }
.scada-normal-reductions h2 { margin: 5px 0; }
.scada-normal-reductions p { color: var(--muted); }
.scada-normal-reductions dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.scada-normal-reductions dl div, .scada-quality-grid div { padding: 13px; border-radius: 10px; background: #f1f1ef; }
.scada-normal-reductions dt, .scada-quality-grid span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.scada-normal-reductions dd { margin: 5px 0 0; font-size: 17px; font-weight: 800; }
.scada-quality-panel { margin-top: 18px; }
.scada-quality-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 16px 0; }
.scada-quality-grid strong { display: block; margin-top: 5px; font-size: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 15px; }
.method-card { padding: 22px; }
.method-card h3 { margin: 13px 0 8px; font: 700 22px var(--ci-font); }
.method-card p { color: var(--muted); line-height: 1.55; }
.method-card dl { display: grid; grid-template-columns: 105px 1fr; gap: 7px 12px; font-size: 11px; }
.method-card dt { color: var(--muted); }
.method-card dd { margin: 0; word-break: break-word; }
.drop-zone { padding: 26px; border: 2px dashed #bdbdbd; border-radius: 13px; text-align: center; background: #f3f3f1; }
.drop-zone.drag-active { border-color: var(--sea); background: #ededed; }
.login-page {
  --login-primary: #800000;
  --login-primary-hover: #650000;
  --login-dark: #262626;
  --login-soft: #ededed;
  --login-intro: #262626;
  --login-intro-text: #ffffff;
  --login-intro-muted: #ededed;
  --login-button-text: #ffffff;
  --login-font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --sea: var(--login-primary);
  --sea-dark: var(--login-primary-hover);
  --wind: var(--login-primary);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: var(--login-font);
  background: linear-gradient(135deg, var(--login-dark) 0 52%, var(--login-soft) 52%);
}
html[data-design="resolut"] .login-page {
  --login-primary: #c4a11c;
  --login-primary-hover: #a18416;
  --login-soft: #ffffff;
  --login-intro: #ffffff;
  --login-intro-text: #262626;
  --login-intro-muted: #555555;
  --login-button-text: #262626;
  --login-font: "Raleway", "Segoe UI", Arial, sans-serif;
}
.login-shell {
  width: min(980px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid rgba(38,38,38,.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 35px 100px rgba(0,0,0,.28);
}
.login-intro {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
  padding: 54px 58px 44px;
  color: var(--login-intro-text);
  background: var(--login-intro);
  transition: color .2s ease, background .2s ease;
}
.ci-lockup { min-height: 76px; display: flex; align-items: start; }
.ci-logo { display: none; width: auto; height: auto; object-fit: contain; object-position: left center; }
.ci-logo-idaswind { max-width: 270px; max-height: 74px; }
.ci-logo-resolut { max-width: 330px; max-height: 116px; }
html[data-design="idaswind"] .ci-logo-idaswind,
html[data-design="resolut"] .ci-logo-resolut { display: block; }
.login-intro-copy { align-self: center; }
.login-intro h1 {
  margin: 0 0 25px;
  font: 700 clamp(43px, 5vw, 58px)/1.04 var(--login-font);
  letter-spacing: -.045em;
}
.login-intro-copy p {
  max-width: 420px;
  margin: 0;
  color: var(--login-intro-muted);
  font-size: 18px;
  line-height: 1.55;
}
.active-design {
  margin: 0;
  color: var(--login-intro-muted);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.active-design strong { color: var(--login-intro-text); }
.login-form { padding: 52px 46px; display: grid; align-content: center; background: #ffffff; }
.login-form-inner { width: 100%; max-width: 390px; margin: 0 auto; }
.login-form h2 { margin: 0 0 12px; font: 700 34px/1.15 var(--login-font); letter-spacing: -.025em; }
.login-form > div > .muted { margin: 0 0 24px; }
.login-note, .muted { color: var(--muted); font-size: 12px; line-height: 1.55; }
.login-note { margin: 18px 0 0; text-align: center; }
.login-page input:focus,
.login-page select:focus,
.login-page textarea:focus { outline: 3px solid color-mix(in srgb, var(--login-primary) 22%, transparent); border-color: var(--login-primary); }
.login-page .button.primary { color: var(--login-button-text); background: var(--login-primary); box-shadow: 0 8px 20px rgba(38,38,38,.16); }
.login-page .button.primary:hover { color: var(--login-button-text); background: var(--login-primary-hover); }
.login-page .button.secondary { color: #262626; background: #ffffff; border-color: #cfcfcf; }
.login-page .button.secondary:hover { color: #262626; border-color: var(--login-primary); }
.login-messages { margin: 0 0 18px; }
.login-message { margin: 0; padding: 11px 13px; border-left: 4px solid var(--login-primary); border-radius: 8px; color: #294b35; background: #e8f4eb; font-size: 12px; line-height: 1.45; }
.account-create { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 19px; border-top: 1px solid #dedede; }
.account-create strong, .account-create span { display: block; }
.account-create strong { color: #262626; font-size: 12px; }
.account-create span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.design-picker { margin: 0; padding: 0; border: 0; }
.design-picker legend { margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.design-picker > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.design-picker label { display: flex; align-items: center; gap: 8px; padding: 11px; border: 1px solid #d6d6d6; border-radius: 10px; font-size: 12px; transition: border-color .15s, background .15s; }
.design-picker label:has(input:checked) { border-color: var(--login-primary); background: color-mix(in srgb, var(--login-primary) 8%, #ffffff); }
.design-picker input { width: 16px; min-height: 16px; accent-color: var(--login-primary); }
.registration-dialog { width: min(800px, calc(100vw - 32px)); padding: 30px; font-family: var(--login-font); border-top: 6px solid var(--login-primary); }
.registration-header { padding-bottom: 17px; border-bottom: 1px solid #dedede; }
.registration-header h2 { margin: 0 0 6px; font: 700 30px/1.2 var(--login-font); }
.registration-header p { margin: 0; }
.dialog-close { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #262626; background: #ededed; }
.dialog-close-floating { position: absolute; top: 15px; right: 15px; z-index: 5; border: 0; cursor: pointer; }
.registration-form { gap: 18px; }
.password-help { margin-top: -6px; padding: 12px 14px; border-radius: 9px; color: var(--muted); background: #f5f5f5; font-size: 11px; line-height: 1.45; }
.password-help ul { margin: 0; padding-left: 18px; }
.consent-box { padding: 16px; border: 1px solid #d8d8d8; border-radius: 11px; background: #fafafa; }
.consent-field { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; }
.consent-field input { margin-top: 2px; accent-color: var(--login-primary); }
.consent-field label { color: #3d3d3d; font-size: 12px; line-height: 1.55; }
.registration-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 2px; }
.form-errors { padding: 10px 12px; border-left: 4px solid #9b4635; border-radius: 8px; color: #7a3227; background: #f9e9e5; }
.errorlist { color: #a04434; margin: 3px 0; padding-left: 18px; font-size: 11px; }
.leaflet-container { font-family: inherit; }
.leaflet-popup-content strong, .leaflet-popup-content small { display: block; }
.potential-page-heading { margin-bottom: 18px; }
.valuation-page-heading { flex-wrap: wrap; }
.valuation-page-heading > div:first-child { flex: 1 1 390px; }
.valuation-page-heading h1 { overflow-wrap: normal; word-break: normal; font-size: clamp(34px, 3.3vw, 50px); }
.valuation-page-heading .button-row { flex: 0 1 auto; }
.potential-layout { display: grid; grid-template-columns: minmax(340px, 410px) minmax(0, 1fr); gap: 18px; align-items: start; }
.potential-editor { position: sticky; top: 22px; max-height: calc(100vh - 44px); overflow-y: auto; }
.potential-editor-head { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.potential-editor-head h2 { margin: 5px 0 7px; }
.potential-editor-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.potential-editor .stack-form { padding-top: 18px; }
.potential-live-status { margin: 0; padding: 10px 12px; border-radius: 9px; color: #315b3d; background: #e7f1e9; font-size: 11px; }
.potential-live-status.is-pending { color: #70561c; background: #f7efd9; }
.potential-live-status.is-error { color: #7a3227; background: #f9e9e5; }
.potential-results { min-width: 0; display: grid; gap: 18px; }
.potential-summary-panel { padding-bottom: 0; overflow: hidden; }
.potential-kpis, .potential-active-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 -25px; background: var(--line); }
.potential-kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.potential-kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.potential-kpis > div, .potential-active-kpis > div { min-width: 0; padding: 16px 18px; background: #f7f7f4; }
.potential-kpis .accent { background: #f4e9e6; }
.potential-kpis dt, .potential-active-kpis dt { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.potential-kpis dd, .potential-active-kpis dd { margin: 6px 0 0; overflow-wrap: normal; word-break: normal; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.potential-active-result { padding: 0; overflow: hidden; }
.potential-result-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 21px 24px; border-bottom: 1px solid var(--line); }
.potential-result-head h2 { margin: 5px 0 0; font-size: 24px; }
.potential-result-head small { color: var(--muted); }
.potential-active-kpis { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); margin: 0; }
.potential-active-kpis > div.primary { background: #e7f1e9; }
.status-banner { margin: 14px 0; padding: 12px 15px; border-left: 4px solid var(--sea); background: #edf4f0; color: var(--ink); font-size: 12px; }
.status-banner.warning { border-left-color: #c18b18; background: #fbf4df; }
.component-table tr.is-limiting-before:not(.is-limiting) { background: #fbf4df; }
.valuation-overview-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.valuation-portfolio-summary { margin-top: 20px; }
.potential-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px 24px 24px; }
.potential-method-grid > div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.potential-method-grid span, .potential-method-grid strong, .potential-method-grid small { display: block; }
.potential-method-grid span { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.potential-method-grid strong { margin: 8px 0; overflow-wrap: anywhere; }
.potential-method-grid small { color: var(--muted); line-height: 1.45; }
.potential-effect-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 20px 24px; }
.potential-effect-grid article { min-width: 0; padding: 17px; border-left: 5px solid #b8533e; border-radius: 11px; background: #f8e9e3; }
.potential-effect-grid article.after { border-left-color: #4f8a5b; background: #e5f1e8; }
.potential-effect-grid article.gain { border-left-color: var(--sea); background: #f4e9e6; }
.potential-effect-grid span, .potential-effect-grid strong, .potential-effect-grid small { display: block; }
.potential-effect-grid span { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.potential-effect-grid strong { margin: 8px 0; font-size: 22px; }
.potential-effect-grid small { color: var(--muted); line-height: 1.45; }
.component-basis { padding: 4px 24px 24px; }
.component-basis .section-title-row { margin: 5px 0 12px; }
.component-basis h3 { margin: 4px 0 0; font-size: 21px; }
.component-basis .section-title-row small { color: var(--muted); }
.component-table-wrap { max-height: 510px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
.component-table { min-width: 850px; font-size: 11px; }
.component-table th, .component-table td { padding: 10px 11px; vertical-align: middle; }
.component-table th:not(:first-child), .component-table td:not(:first-child) { text-align: center; }
.component-table input { width: 16px; min-height: 16px; accent-color: var(--sea); }
.potential-cost-overview { padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #fafaf8; }
.potential-cost-overview summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; cursor: pointer; }
.potential-cost-overview summary span, .potential-cost-overview summary strong, .potential-cost-overview summary small { display: block; }
.potential-cost-overview summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.potential-cost-overview summary b { color: var(--sea); font-size: 11px; }
.potential-cost-overview[open] { padding-bottom: 12px; }
.potential-cost-rows, .potential-measure-rows { display: grid; gap: 7px; padding: 0 12px; }
.potential-measure-rows { margin-top: 7px; }
.potential-cost-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 30px 28px; gap: 6px; align-items: center; }
label.potential-cost-row { grid-template-columns: minmax(0, 1fr) 104px 30px; }
.potential-cost-row input { min-width: 0; padding: 8px 9px; font-size: 10px; }
.potential-cost-row small { color: var(--muted); font-size: 9px; }
.potential-cost-row button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: #7a3227; background: transparent; font-size: 16px; }
.potential-cost-overview > .mini-button { margin: 10px 12px 0; }
.component-table tr.is-limiting { background: #fff3df; }
.potential-portfolio-table { padding: 0; overflow: hidden; }
.potential-portfolio-table .panel-heading { padding: 21px 24px 4px; }
.potential-table-wrap { overflow-x: auto; }
.potential-table-wrap table { min-width: 1050px; font-size: 11px; }
.potential-table-wrap th, .potential-table-wrap td { padding: 12px 13px; }
.potential-table-wrap tr.is-active { background: #f4e9e6; }
.valuation-editor { width: auto; }
.valuation-layout { grid-template-columns: minmax(430px, 480px) minmax(0, 1fr); }
.valuation-editor .stack-form { gap: 10px; }
.valuation-cost-head, .section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.valuation-cost-head h3, .valuation-chart-section h3, .valuation-detail-table h3 { margin: 3px 0 0; font-size: 19px; }
.valuation-cost-list { display: grid; gap: 7px; }
.valuation-cost-row { display: grid; grid-template-columns: minmax(0, 1fr) 102px 38px 28px; gap: 6px; align-items: center; }
.valuation-cost-row input { min-width: 0; padding: 8px 9px; font-size: 10px; }
.valuation-cost-row span { color: var(--muted); font-size: 9px; }
.valuation-cost-row button { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 1px solid #d7b8b1; border-radius: 6px; color: #7a3227; background: #ffffff; font-size: 15px; line-height: 1; }
.valuation-cost-row button:hover { color: #ffffff; background: #7a3227; border-color: #7a3227; }
.valuation-cost-basis { margin: 0; padding: 12px 14px; border-left: 4px solid var(--sea); border-radius: 8px; color: var(--muted); background: #edf4f0; font-size: 10px; line-height: 1.55; }
.valuation-cost-basis strong { color: var(--ink); }
.valuation-add-position { min-height: 34px; padding: 7px 11px; border-radius: 8px; background: #ffffff; }
.valuation-field-groups { display: grid; gap: 8px; }
.valuation-group { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #fafaf8; }
.valuation-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; color: var(--sea); cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.valuation-group > summary strong { color: var(--ink); font-size: 10px; letter-spacing: 0; }
.valuation-group-body { display: grid; gap: 8px; padding: 0 11px 10px; }
.valuation-group:not([open]) > .valuation-group-body { display: none; }
.valuation-group[open] > .valuation-group-body { display: block; content-visibility: visible; }
.valuation-group-body > * + * { margin-top: 8px; }
.valuation-foundation-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.project-active-selector { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 18px; padding:12px; background:#edf3ef; border-radius:10px; }
.project-active-selector label { font-weight:700; font-size:12px; }
.project-active-selector select { flex:1; min-width:180px; }
.commercial-phase { margin:8px 0; padding:10px; background:#fff; border:1px solid var(--line); border-radius:9px; }
.phase-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.phase-range { display:grid; grid-template-columns:minmax(0,1fr) 72px 72px; gap:7px; }
.commercial-phase label, .extra-refurbishment label { display:grid; gap:4px; font-size:11px; min-width:0; }
.commercial-phase input, .extra-refurbishment input { width:100%; min-width:0; }
.phase-cost-group { margin:8px 0; border-top:1px solid var(--line); }
.phase-cost-group summary { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 0; cursor:pointer; font-weight:700; font-size:11px; }
.phase-cost-group summary small { display:block; font-weight:400; color:var(--muted); }
.phase-cost-item { display:grid; grid-template-columns:minmax(0,1fr) 88px 120px 28px; gap:7px; align-items:end; padding:7px 0; border-bottom:1px solid var(--line); }
.cost-annual-result { grid-column: 1 / -1; color: var(--sea); font-size: 10px; font-weight: 800; text-align: right; }
.transaction-cost-item { display:grid; grid-template-columns:minmax(0,1fr) 105px 28px; gap:7px; align-items:end; padding:7px 0; border-bottom:1px solid var(--line); }
.extra-refurbishment { display:grid; grid-template-columns:minmax(0,1fr) 80px 105px 28px; gap:7px; align-items:end; padding:7px 0; border-bottom:1px solid var(--line); }
.phase-cost-item > button, .extra-refurbishment > button { margin:0 0 6px; }
.phase-cost-item select, .transaction-cost-item input, .extra-refurbishment input { width:100%; min-width:0; }
.transaction-cost-item label { display:grid; gap:4px; font-size:11px; min-width:0; }
.cost-unit { font-size:11px; color:var(--muted); padding-bottom:12px; }
.cost-position-adder { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; padding-top:8px; }
.cost-position-adder select { min-width:0; min-height:34px; padding:6px 8px; }
.phase-total { display:block; padding-top:8px; color:var(--sea); font-size:11px; text-align:right; }
.site-radius-note { grid-column:1 / -1; }
.valuation-results .valuation-overview-kpis > div { background:var(--paper, #fafaf8); }
.valuation-results .valuation-overview-kpis > .primary, .valuation-results .valuation-overview-kpis > .accent { background:var(--sea); color:var(--on-primary); }
.valuation-results .valuation-overview-kpis > .primary *, .valuation-results .valuation-overview-kpis > .accent * { color:inherit; }
.phase-cost-group:not([open]) > div { display:none; }
.map-export-control { background:#fff; border:0; padding:8px 10px; color:#173e31; font-weight:700; cursor:pointer; }
.map-export-dialog { width:min(960px,94vw); max-height:92vh; padding:22px; border:0; border-radius:14px; }
.map-export-dialog::backdrop { background:#0009; }
.map-export-dialog header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.map-export-dialog header .dialog-close { position:static; }
.map-export-dialog img { display:block; max-width:100%; max-height:67vh; object-fit:contain; margin:12px auto; }
.map-export-error { max-width:260px; background:#fff; color:#7f1710; padding:12px; }
.purchase-metrics { margin:18px 24px; padding:16px; background:#edf3ef; border-radius:10px; }
.purchase-metrics dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.purchase-metrics dd { margin:5px 0; font-size:20px; font-weight:700; }
.valuation-field-groups .field { gap: 4px; }
.valuation-field-groups input, .valuation-field-groups select { padding: 9px 10px; }
.valuation-field-groups input[readonly] { color: #49645a; background: #edf3ef; }
.valuation-hero-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); }
.valuation-hero-kpis > div { min-width: 0; padding: 18px; background: #f8f8f5; }
.valuation-hero-kpis > div.primary { background: #e7f1e9; }
.valuation-hero-kpis dt { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.valuation-hero-kpis dd { margin: 7px 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.valuation-hero-kpis small { color: var(--muted); line-height: 1.35; }
.valuation-breakdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 18px 24px; }
.valuation-breakdown > div { padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.valuation-breakdown span, .valuation-breakdown strong { display: block; }
.valuation-breakdown span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.valuation-breakdown strong { margin-top: 7px; font-size: 14px; }
.valuation-target { display: flex; align-items: center; gap: 18px; margin: 0 24px 18px; padding: 14px 16px; border-left: 5px solid var(--sea); border-radius: 9px; background: #f4e9e6; }
.valuation-target strong { margin-left: auto; }
.valuation-target small { color: var(--muted); }
.valuation-chart-section, .valuation-detail-table { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.valuation-legend { display: flex; flex-wrap: wrap; gap: 11px; color: var(--muted); font-size: 9px; }
.valuation-legend span::before { content: ""; width: 8px; height: 8px; display: inline-block; margin-right: 5px; border-radius: 2px; background: #6b6f73; }
.valuation-legend .continuation::before { background: var(--sea); }
.valuation-legend .negative::before { background: var(--coral); }
.valuation-cashflow-chart { height: 250px; display: flex; align-items: end; gap: 4px; margin-top: 18px; padding: 22px 10px 25px; overflow-x: auto; border-bottom: 1px solid var(--line); background: linear-gradient(#f8faf8, #fff); }
.valuation-bar-wrap { flex: 1 0 21px; height: 100%; display: flex; align-items: center; justify-content: end; flex-direction: column; position: relative; }
.valuation-bar { width: 100%; min-height: 3px; border-radius: 3px 3px 0 0; background: #6b6f73; }
.valuation-bar.continuation { background: var(--sea); }
.valuation-bar.negative { background: var(--coral); }
.valuation-bar-wrap small { position: absolute; bottom: -18px; color: var(--muted); font-size: 8px; transform: rotate(-35deg); transform-origin: center; }
.valuation-detail-table .potential-table-wrap { max-height: 610px; margin-top: 15px; border: 1px solid var(--line); border-radius: 10px; }
.valuation-detail-table table { min-width: 1320px; font-size: 10px; }
.valuation-detail-table th { position: sticky; top: 0; z-index: 1; background: #f4f4f0; }
.valuation-detail-table tr.phase-continuation td:first-child { border-left: 4px solid var(--sea); }
.valuation-detail-table tr.phase-existing td:first-child { border-left: 4px solid #6b6f73; }
.report-form { margin-top: 18px; }
.report-purpose-hint { margin: -6px 0 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.report-module-selector { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.report-module-selector legend { padding: 0 7px; color: var(--sea); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.report-module-options { display: grid; gap: 8px; }
.report-module-options label { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 8px; background: #f6f7f4; cursor: pointer; }
.report-module-options input { margin-top: 3px; accent-color: var(--sea); }
.report-module-options strong, .report-module-options small { display: block; }
.report-module-options small { margin-top: 3px; color: var(--muted); }
.report-map-note { display: grid; gap: 4px; margin: 20px 0; padding: 14px; border-left: 5px solid var(--sea); border-radius: 9px; background: #edf4f1; }
.report-map-note span { color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 1300px) {
  .kpi-grid { grid-template-columns: repeat(3,1fr); }
  .potential-kpis, .potential-kpis.five, .potential-kpis.six, .potential-active-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .valuation-hero-kpis, .valuation-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .potential-method-grid, .potential-effect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .potential-method-grid > :last-child:nth-child(odd), .potential-effect-grid > :last-child:nth-child(odd) { grid-column: 1/-1; }
}
@media (max-width: 1150px) {
  .module-grid.compact-modules { grid-template-columns: repeat(3,1fr); }
  .filter-grid { grid-template-columns: repeat(3,1fr); }
  .turbine-dialog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .turbine-address-search { grid-column: 1/-1; }
  .result-grid { grid-template-columns: repeat(2,1fr); }
  .central-map-workspace { height: auto; grid-template-columns: 270px minmax(0, 1fr); }
  .central-map-stage { min-height: 680px; }
  .central-map-detail { grid-column: 1/-1; min-height: 280px; }
  .map-detail-empty { min-height: 220px; }
  .site-settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .potential-layout { grid-template-columns: 340px minmax(0, 1fr); }
  .potential-kpis, .potential-active-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .potential-method-grid, .potential-effect-grid { grid-template-columns: 1fr; }
  .scada-mapping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scada-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-cost-item { grid-template-columns: minmax(0, 1fr) 28px; }
  .phase-cost-item > label:first-child { grid-column: 1 / -1; }
  .phase-cost-item > label:nth-child(2) { grid-column: 1; }
  .phase-cost-item > label:nth-child(3), .phase-cost-item > .cost-unit { grid-column: 1 / -1; grid-row: 3; }
  .phase-cost-item > button { grid-column: 2; grid-row: 2; }
}
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 16px; }
  .primary-nav { display: flex; overflow: auto; }
  .project-nav { display: none; }
  .sidebar-ci-lockup { margin-top: 16px; }
  .user-box { margin-top: 15px; }
  .page-main { padding: 28px 18px 50px; }
  .hero, .page-heading { align-items: start; flex-direction: column; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .module-grid, .module-grid.compact-modules { grid-template-columns: repeat(2,1fr); }
  .analysis-layout, .analysis-layout.with-map { grid-template-columns: 1fr; }
  .potential-layout { grid-template-columns: 1fr; }
  .potential-editor { position: static; max-height: none; }
  .valuation-foundation-grid { grid-template-columns: 1fr; }
  .scada-unit-grid { grid-template-columns: 1fr; }
  .scada-result-intro { display: grid; }
  .scada-normal-reductions { grid-template-columns: 1fr; }
  .scada-normal-reductions dl { grid-template-columns: 1fr; }
  .analysis-layout.with-map .result-panel { grid-column: auto; }
  .map-workspace { grid-template-columns: 1fr; }
  .map-filters { max-height: none; }
  .central-map-workspace { grid-template-columns: 1fr; }
  .central-map-stage { order: -1; min-height: 580px; }
  .central-map-stage [data-map] { min-height: 580px; }
  .central-map-detail { grid-column: auto; }
  .site-map-workspace { grid-template-columns: 1fr; min-height: 0; }
  .site-map-stage { order: -1; min-height: 560px; }
  .site-map-stage [data-map] { min-height: 560px; }
  .site-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-results-heading, .site-evaluation-header { align-items: flex-start; flex-direction: column; }
  .site-results-heading p { text-align: left; }
  .login-page { padding: 16px; }
  .login-shell { min-height: 0; grid-template-columns: 1fr; }
  .login-intro { min-height: 300px; grid-template-rows: auto 1fr; gap: 28px; padding: 34px; }
  .ci-lockup { min-height: 58px; }
  .ci-logo-idaswind { max-width: 220px; max-height: 58px; }
  .ci-logo-resolut { max-width: 270px; max-height: 88px; }
  .login-intro h1 { margin-bottom: 14px; font-size: 42px; }
  .login-intro-copy p { max-width: 560px; font-size: 16px; }
  .active-design { display: none; }
  .login-form { padding: 40px 34px; }
}
@media (max-width: 560px) {
  .kpi-grid, .project-grid, .module-grid, .module-grid.compact-modules, .field-row, .filter-grid, .turbine-dialog-filters, .reference-kpis { grid-template-columns: 1fr; }
  .turbine-address-search { grid-column: auto; }
  .result-item { grid-template-columns: 1fr; }
  .result-actions { justify-content: flex-start; }
  .hero h1, .page-heading h1 { font-size: 38px; }
  .map-result-drawer { top: auto; bottom: 12px; max-height: 45%; }
  .map-status-strip { grid-template-columns: 1fr 1fr; }
  .map-status-strip span:nth-child(2) { border-right: 0; }
  .map-status-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .site-map-status { grid-template-columns: 1fr; }
  .site-map-status span { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-map-status span:last-child { border-bottom: 0; }
  .site-settings-grid, .site-evaluation-kpis { grid-template-columns: 1fr; }
  .potential-kpis, .potential-kpis.five, .potential-kpis.six, .potential-active-kpis { grid-template-columns: 1fr; }
  .scada-process { grid-template-columns: 1fr; border-radius: 14px; }
  .scada-process i { display: none; }
  .scada-phase-head, .scada-phase-head > div { flex-direction: column; }
  .scada-phase-head { align-items: stretch; }
  .scada-mapping-grid { grid-template-columns: 1fr; }
  .scada-ready-list > div { grid-template-columns: 1fr; }
  .scada-quality-grid { grid-template-columns: 1fr; }
  .valuation-hero-kpis, .valuation-breakdown { grid-template-columns: 1fr; }
  .valuation-cost-row { grid-template-columns: minmax(0, 1fr) 90px 28px; }
  .valuation-cost-row span { display: none; }
  .phase-range { grid-template-columns: minmax(0,1fr) 64px 64px; }
  .phase-cost-item { grid-template-columns: minmax(0,1fr) 28px; }
  .phase-cost-item > label:first-child { grid-column: 1 / -1; }
  .phase-cost-item > label:nth-child(2) { grid-column: 1; }
  .phase-cost-item > label:nth-child(3), .phase-cost-item > .cost-unit { grid-column: 1 / -1; grid-row: 3; }
  .phase-cost-item > button { grid-column: 2; grid-row: 2; }
  .transaction-cost-item { grid-template-columns: minmax(0,1fr) 90px 28px; }
  .cost-position-adder { grid-template-columns: 1fr; }
  .login-page { display: block; padding: 0; background: #ffffff; }
  .login-shell { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .login-intro { min-height: 270px; padding: 28px 24px; }
  .login-intro h1 { font-size: 37px; }
  .login-form { padding: 34px 24px 42px; }
  .account-create { align-items: stretch; flex-direction: column; }
  .account-create .button { width: 100%; }
  .registration-dialog { width: calc(100vw - 16px); padding: 22px 18px; }
  .registration-actions { align-items: stretch; flex-direction: column-reverse; }
  .registration-actions .button { width: 100%; }
  .reference-trigger small { max-width: 250px; white-space: normal; }
  .map-project-options { grid-template-columns: 1fr; }
  .map-project-options .dialog-separator { flex-direction: row; margin: 0; }
  .map-project-options .dialog-separator::before, .map-project-options .dialog-separator::after { width: auto; height: 1px; }
}
