html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root {
    --ink: #172033;
    --muted: #667085;
    --brand: #1664d8;
    --line: #e7eaf0;
    --surface: #ffffff;
    --canvas: #f5f7fb;
}

body { margin: 0; background: var(--canvas); color: var(--ink); }
.page-header { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin:8px 0 24px; }
.page-header h1 { margin:4px 0 6px; font-size:32px; }
.page-header p { margin:0; color:var(--muted); }
.eyebrow { color:var(--brand); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.action-row { display:flex; gap:10px; }
.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; }
.project-card { position:relative; display:flex; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:14px; min-height:92px; box-shadow:0 6px 18px rgba(23,32,51,.05); }
.project-open { flex:1; align-self:stretch; display:flex; align-items:center; gap:12px; border:0; background:transparent; padding:18px; text-align:left; color:inherit; cursor:pointer; }
.project-open strong,.project-open small { display:block; }
.project-open small { color:var(--muted); margin-top:5px; }
.project-icon { width:44px;height:44px;border-radius:10px;background:#eaf2ff;color:var(--brand);display:grid;place-items:center;font-weight:800; }
.icon-button { width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:22px;cursor:pointer;margin-right:10px; }
.icon-button.danger { color:#b42318; }
.empty-card { grid-column:1/-1; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:48px; text-align:center; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:20px; margin-bottom:18px; box-shadow:0 6px 18px rgba(23,32,51,.04); }
.panel h2,.empty-card h2 { font-size:18px; margin:0 0 16px; }
.section-head { display:flex; justify-content:space-between; align-items:center; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-grid label { display:grid; gap:7px; color:var(--muted); font-size:13px; }
.form-grid input,.table-input { width:100%; box-sizing:border-box; border:1px solid #d8dde6; border-radius:8px; padding:10px 12px; color:var(--ink); background:white; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; }
th,td { text-align:left; border-bottom:1px solid var(--line); padding:12px 10px; }
th { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.table-input { min-width:130px; }
.muted { color:var(--muted); }
.btn-outline { border:1px solid #cfd5df; background:white; color:var(--ink); border-radius:8px; padding:9px 14px; }
.kpi-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.kpi-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:18px; }
.kpi-card span,.kpi-card strong { display:block; }
.kpi-card span { color:var(--muted); font-size:13px; }
.kpi-card strong { margin-top:8px; font-size:24px; }
.floor-row { display:grid; grid-template-columns:minmax(180px,1fr) 140px 44px; gap:10px; align-items:center; margin-bottom:8px; }
.plan-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:16px; align-items:start; }
.plan-canvas { background:white; border:1px solid var(--line); border-radius:14px; overflow:hidden; min-height:520px; }
.plan-canvas svg { display:block; width:100%; height:auto; min-height:520px; }
.properties label { display:grid; gap:6px; margin-bottom:10px; color:var(--muted); font-size:13px; }
.properties input { width:100%; box-sizing:border-box; border:1px solid #d8dde6; border-radius:8px; padding:9px 10px; }
.room-shape { cursor:pointer; }
@media (max-width:900px) { .plan-layout { grid-template-columns:1fr; } }
.uzheat-shell { min-height:100vh; background:#eef1f5; color:#172033; }
.desktop-titlebar { height:36px; display:grid; grid-template-columns:minmax(300px,1fr) minmax(180px,1fr) minmax(300px,1fr); align-items:center; background:#f8fafc; border-bottom:1px solid #dfe4ec; }
.quick-access { height:36px; display:flex; align-items:center; gap:2px; padding-left:8px; }
.brand { display:flex; align-items:center; gap:6px; color:#1664d8; text-decoration:none; margin-right:8px; }
.brand-mark { width:22px;height:22px;border-radius:5px;background:#1664d8;color:white;display:grid;place-items:center;font-size:9px;font-weight:800; }
.quick-button { width:28px;height:28px;border:1px solid transparent;background:transparent;border-radius:4px;color:#667085;cursor:pointer; }
.quick-button:hover { border-color:#dfe4ec;background:white; }
.project-title { text-align:center;color:#667085;font-size:12.5px; }
.title-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; padding-right:10px; }
.title-button { color:#667085;text-decoration:none;font-size:12px;padding:6px 8px;border-radius:5px; }
.title-button:hover { background:#edf1f6; }
.theme-dot { color:#667085;font-size:13px; }
.language-picker { position:relative; }
.language-picker > .title-button { border:1px solid #dfe4ec;background:#fff;cursor:pointer;font-weight:600;min-width:34px; }
.language-menu { position:absolute;right:0;top:calc(100% + 4px);z-index:60;background:#fff;border:1px solid #dfe4ec;border-radius:6px;box-shadow:0 6px 18px rgba(16,24,40,.12);padding:4px;min-width:170px;display:flex;flex-direction:column; }
.language-menu button { border:0;background:none;text-align:left;padding:7px 10px;border-radius:4px;font-size:13px;cursor:pointer;color:#1f2937; }
.language-menu button:hover { background:#edf1f6; }
.language-menu button.active { background:#e8f0fd;color:#1664d8;font-weight:600; }
.theme-toggle { width:40px;height:20px;border:0;border-radius:10px;background:#dde3eb;padding:3px;cursor:pointer; }
.theme-toggle span { display:block;width:14px;height:14px;border-radius:50%;background:white;box-shadow:0 1px 3px #9aa3af; }
.desktop-ribbon-tabs { height:32px; display:flex; align-items:flex-end; background:#edf2f8; border-bottom:1px solid #dfe4ec; padding-left:8px; }
.ribbon-file { height:32px;display:flex;align-items:center;padding:0 18px;margin-right:2px;background:#1664d8;color:white!important;text-decoration:none;font-weight:700;font-size:13px;border-radius:4px 4px 0 0; }
.ribbon-tab { height:32px;border:1px solid transparent;border-bottom:0;background:transparent;padding:6px 14px;color:#3f4a5a;cursor:pointer;font-size:13px; }
.ribbon-tab.active { background:white;border-color:#dfe4ec;border-radius:4px 4px 0 0;color:#172033;font-weight:700; }
.desktop-ribbon { height:96px;background:white;border-bottom:1px solid #dfe4ec;display:flex;align-items:stretch;padding:4px 6px;overflow-x:auto; }
.ribbon-group { min-width:92px;display:flex;flex-direction:column;border-right:1px solid #dfe4ec;padding:2px 6px 0; }
.ribbon-items { flex:1;display:flex;align-items:center;gap:2px; }
.ribbon-title { height:18px;text-align:center;color:#667085;font-size:10.5px;margin-top:1px; }
.ribbon-button { min-width:62px;height:70px;border:1px solid transparent;border-radius:4px;background:transparent;color:#172033;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 6px;font-size:11.5px;cursor:pointer;text-align:center; }
.ribbon-button:hover,.ribbon-button.active { background:#edf3fb;border-color:#dfe4ec; }
.ribbon-icon { color:#1664d8;font-size:24px;line-height:26px; }
.ribbon-stack { display:flex;flex-direction:column;gap:1px; }
.ribbon-small { height:24px;min-width:120px;border:0;border-radius:3px;background:transparent;color:#172033;text-decoration:none;display:flex;align-items:center;gap:7px;padding:2px 5px;font-size:11.5px;cursor:pointer; }
.ribbon-small span { color:#1664d8;width:16px;text-align:center; }
.ribbon-small:hover { background:#edf3fb; }
.desktop-main { height:calc(100vh - 190px); min-height:520px; overflow:hidden; }
.desktop-main > * { height:100%; }
/* Pages made of several blocks (the project list, results, project editor) keep their own height and scroll. */
.desktop-main:has(> .page-header) { overflow:auto; }
.desktop-main:has(> .page-header) > * { height:auto; }
.desktop-statusbar { height:26px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:#1f4f86;color:white;font-size:12px; }
.status-left { display:flex;align-items:center;gap:22px; }
.desktop-statusbar b { font-weight:800; }
.import-button { position:relative;overflow:hidden;cursor:pointer; }
.import-button input { position:absolute;inset:0;opacity:0;cursor:pointer;width:100%; }
.window-shell { height:100%;display:grid;grid-template-rows:minmax(0,1fr) 56px;background:#eef1f5; }
.window-body { overflow:auto;padding:16px 18px 24px; }
.window-body h1 { font-size:20px;margin:0 0 12px; }
.window-actions { display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 18px;border-top:1px solid #dfe4ec;background:#fff; }
.window-body .panel { background:#fff;border:1px solid #dfe4ec;border-radius:8px;padding:14px;margin-bottom:12px; }
.climate-result { display:flex;align-items:center;gap:12px;background:#edf3fb;border:1px solid #dfe4ec;border-radius:8px;padding:12px;margin:10px 0; }
.climate-result strong { font-size:20px;color:#1664d8; }
.window-body select { width:100%;min-height:36px;border:1px solid #d8dde6;border-radius:7px;padding:7px 9px;background:#fff;color:#172033; }
.window-body label { display:grid;gap:6px;color:#667085;font-size:12px;margin-bottom:10px; }
.window-body details summary { cursor:pointer;font-weight:700;color:#172033;margin:10px 0; }
.floor-manager { display:grid;grid-template-columns:280px 1fr;gap:16px; }
.floor-list .tree-row { height:34px; }
.floor-list .btn { width:100%;margin:4px 0; }
.btn.danger { color:#b42318; }
.info-callout { border:1px solid #cfe0f5;background:#edf4fc;border-radius:8px;padding:10px;color:#42526a;font-size:12px;margin-top:10px; }
.heating-header { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px; }
.heating-header div { background:#fff;border:1px solid #dfe4ec;border-radius:8px;padding:12px;display:grid;gap:6px; }
.heating-header span { color:#667085;font-size:12px; }
.heating-header strong { font-size:19px; }
.heating-layout { display:grid;grid-template-columns:300px 1fr;gap:12px; }
.room-row { width:100%;height:58px;border:0;border-bottom:1px solid #edf0f4;background:#fff;text-align:left;display:grid;padding:7px 8px;cursor:pointer; }
.room-row.selected { background:#edf4fc;border-left:3px solid #1664d8;padding-left:5px; }
.room-row span { color:#667085;font-size:12px; }
.boiler-layout { display:grid;grid-template-columns:230px 1fr;gap:12px; }
.boiler-drawing svg { width:100%;height:auto;max-height:460px; }
.report-tabs { display:flex;gap:2px;border-bottom:1px solid #dfe4ec;background:#f7f9fc;overflow-x:auto;padding:6px 6px 0; }
.report-tabs button { height:36px;border:0;border-bottom:2px solid transparent;background:transparent;color:#667085;padding:6px 10px;white-space:nowrap; }
.report-tabs button.active { border-bottom-color:#1664d8;color:#172033;font-weight:700; }
.report-preview { min-height:420px;border-radius:0 0 8px 8px; }
.report-table { max-height:calc(100vh - 330px);min-height:300px;overflow:auto; }
.report-table table { border-collapse:collapse;font-size:12.5px; }
.report-table th { position:sticky;top:0;background:#f7f9fc;text-align:left;font-weight:600;white-space:nowrap; }
.report-table th,.report-table td { padding:6px 10px;border-bottom:1px solid #edf0f4;vertical-align:top; }
.report-text { width:100%;min-height:420px;height:calc(100vh - 330px);font-family:Consolas,monospace;font-size:12.5px;border:1px solid #dfe4ec;border-radius:6px;padding:8px;white-space:pre-wrap; }
.cloud-status { margin:0 0 12px;padding:8px 12px;border-radius:8px;background:#eef4fd;color:#1d3f72;font-size:13px; }
.ribbon-message { align-self:center;margin-left:10px;font-size:12px;color:#667085; }
.boiler-list { display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px; }
.boiler-list article { border:1px solid #dfe4ec;border-radius:8px;padding:10px;display:grid;gap:5px; }
.boiler-list span { color:#667085;font-size:12px; }
.uzheat-shell.dark-theme { filter:invert(.88) hue-rotate(180deg); }
.uzheat-shell.dark-theme img,.uzheat-shell.dark-theme svg { filter:invert(1) hue-rotate(180deg); }
.plan-canvas.grid-on { background-image:linear-gradient(#edf0f4 1px,transparent 1px),linear-gradient(90deg,#edf0f4 1px,transparent 1px); background-size:25px 25px; }
.pipe-layout { display:grid;grid-template-columns:260px minmax(0,1fr) 260px;gap:12px;height:100%; }
.pipe-document { display:grid;grid-template-columns:1fr;grid-template-rows:36px minmax(300px,1fr); }
.pipe-document .plan-canvas { border:1px solid #dfe4ec; }
.network-detail { white-space:pre-wrap;font-family:Consolas,monospace;font-size:11px;color:#667085; }
.ok { color:#067647; }.bad { color:#b42318; }
.plan-actions { margin-left:auto;display:flex;align-items:center;gap:4px; }
.plan-actions button { height:27px;border:1px solid #dfe4ec;border-radius:4px;background:#fff;padding:3px 8px;font-size:11.5px;cursor:pointer;color:#334155; }
.plan-actions button.save { background:#1664d8;color:#fff;border-color:#1664d8;font-weight:700; }
.plan-actions button.tool-active { background:#eaf2ff;border-color:#1664d8;color:#1664d8;font-weight:800; }
@media (max-width:900px) { .heating-header { grid-template-columns:repeat(2,1fr); } .heating-layout,.boiler-layout,.floor-manager,.scene-window { grid-template-columns:1fr; } }
@media (max-width:760px) {
    .desktop-titlebar { grid-template-columns:minmax(200px,1fr) auto; }
    .project-title { display:none; }
    .title-actions { gap:3px; }
    .desktop-ribbon-tabs { overflow-x:auto; }
    .desktop-ribbon { height:88px; }
    .desktop-statusbar { display:none; }
    .desktop-main { height:calc(100vh - 156px); }
    .desktop-workspace { grid-template-columns:1fr; }
    .desktop-project-browser { display:none; }
    .desktop-inspector { display:none; }
    .desktop-document { grid-template-columns:1fr; }
    .dashboard { height:190px; }
    .window-shell { height:auto;min-height:calc(100vh - 156px); }
    .heating-header { grid-template-columns:1fr; }
    .heating-layout,.boiler-layout,.floor-manager,.scene-window,.pipe-layout { grid-template-columns:1fr; }
    .window-body { padding:10px; }
    .plan-actions { overflow-x:auto; }
}
.desktop-workspace { display:grid; grid-template-columns:250px minmax(0,1fr) 310px; height:100%; background:#f7f9fc; }
.desktop-project-browser,.desktop-inspector { background:#fff;border-right:1px solid #dfe4ec;overflow:auto; }
.desktop-inspector { border-right:0;border-left:1px solid #dfe4ec;padding:10px 12px; }
.workspace-header { height:34px;margin:-10px -12px 8px;padding:9px 12px;border-bottom:1px solid #dfe4ec;background:#f8fafc;font-weight:700;font-size:12.5px; }
.desktop-project-browser .workspace-header { margin:0;padding:9px 10px; }
.project-tree { padding:4px 2px; }
.tree-row { width:100%;height:30px;border:0;background:transparent;color:#172033;display:flex;align-items:center;gap:7px;padding:4px 10px;text-align:left;border-radius:4px;cursor:pointer; }
.tree-row:hover,.tree-row.selected { background:#eef3fb; }
.tree-row.floor { padding-left:22px; }
.tree-row.room { padding-left:38px; }
.desktop-document { display:grid;grid-template-rows:36px minmax(260px,1fr) 230px;min-width:0;overflow:hidden; }
.document-tabs { display:flex;align-items:flex-end;background:#f1f4f8;border-bottom:1px solid #dfe4ec;padding:5px 8px 0; }
.document-tab { height:31px;border:1px solid transparent;border-bottom:0;background:transparent;padding:5px 10px;margin-right:2px;color:#667085;cursor:pointer;font-size:12px;border-radius:4px 4px 0 0; }
.document-tab.active { background:#fff;border-color:#dfe4ec;color:#172033;font-weight:700; }
.plan-canvas { min-height:260px;overflow:auto;background:#fff;background-image:linear-gradient(#edf0f4 1px,transparent 1px),linear-gradient(90deg,#edf0f4 1px,transparent 1px);background-size:25px 25px; }
.plan-canvas svg { width:100%;height:100%;min-height:260px; }
.dashboard { border-top:1px solid #dfe4ec;background:#fff;overflow:hidden; }
.dashboard-tabs { height:42px;display:flex;align-items:flex-end;border-bottom:1px solid #dfe4ec;padding:0 4px;overflow-x:auto; }
.dashboard-tabs button { height:34px;border:0;border-bottom:2px solid transparent;background:transparent;color:#667085;padding:6px 10px;font-size:12px;white-space:nowrap; }
.dashboard-tabs button.active { border-bottom-color:#1664d8;color:#172033;font-weight:700; }
.dashboard-body { height:148px;overflow:auto; }
.dashboard-body th { position:sticky;top:0;background:#f7f9fc;text-align:left;font-weight:600;color:#475467;white-space:nowrap; }
.dashboard-body tbody tr { cursor:default; }
.dashboard-body tbody tr.selected { background:#e8f0fd; }
.dashboard-empty { padding:12px;color:#667085;font-size:12px; }
.dashboard-body table { border-collapse:collapse;width:100%;font-size:12px; }
.dashboard-body th,.dashboard-body td { padding:8px;border-bottom:1px solid #edf0f4; }
.readiness { border-left:1px solid #dfe4ec;padding:12px;margin:0;overflow:auto; }
.readiness strong { color:#1664d8;font-size:11px; }
.readiness p { color:#667085;font-size:11.5px;line-height:1.5; }
.desktop-inspector h2 { height:26px;margin:8px -12px 6px;padding:6px 12px;background:#f1f4f8;font-size:11.5px; }
.desktop-inspector label { display:grid;gap:5px;margin-bottom:8px;color:#667085;font-size:12px; }
.desktop-inspector input { width:100%;box-sizing:border-box;border:1px solid #d8dde6;border-radius:6px;padding:7px 8px;color:#172033; }
.inspector-selected { color:#1664d8;font-weight:700;font-size:12px;margin-bottom:4px; }
.inspector-section { display:grid;gap:5px;border:1px solid #e1e5ec;border-radius:8px;padding:8px;background:#f8fafc;margin:8px 0; }
.area-value { font-size:18px;font-weight:800; }
.desktop-inspector select { width:100%;box-sizing:border-box;border:1px solid #d8dde6;border-radius:6px;padding:6px 6px;color:#172033;background:#fff; }
.desktop-inspector label.check { display:flex;align-items:center;gap:6px;color:#172033; }
.desktop-inspector label.check input { width:auto; }
.desktop-inspector .field-row { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.desktop-inspector .field-row.three { grid-template-columns:1fr 1fr 1fr; }
.desktop-inspector .hint { color:#667085;font-size:11px;line-height:1.45;margin:0 0 8px; }
.desktop-inspector .note { border:1px solid #e1e5ec;background:#f8fafc;border-radius:6px;padding:6px 8px;font-size:11px;color:#475467; }
.desktop-inspector .error { color:#b42318;font-size:11.5px;margin:0 0 6px; }
.inspector-box { border:1px solid #e1e5ec;border-radius:8px;padding:8px;margin:10px 0;background:#fbfcfe; }
.inspector-box > strong { display:block;font-size:11.5px;color:#1664d8;margin-bottom:4px; }
.desktop-inspector details summary { cursor:pointer;font-weight:600;font-size:12px;margin:8px 0; }
@media (max-width:1100px) { .desktop-workspace { grid-template-columns:200px minmax(0,1fr) 250px; } .project-title { display:none; } .desktop-titlebar { grid-template-columns:1fr auto; } }
@media (max-width:700px) { .form-grid,.kpi-grid { grid-template-columns:1fr; } .page-header { flex-direction:column; } }

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* «Shakllar» — room shape dialog (desktop RoomShapeWindow) */
.shape-backdrop { position:fixed;inset:0;background:rgba(15,23,42,.35);display:flex;align-items:center;justify-content:center;z-index:50; }
.shape-dialog { background:#f5f7fa;border:1px solid #c9d1dc;border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.25);width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;outline:none; }
.shape-title { padding:8px 14px;border-bottom:1px solid #dde3ea;font-weight:600;font-size:13px;background:#fff;border-radius:8px 8px 0 0; }
.shape-body { display:grid;grid-template-columns:190px 1fr auto;gap:12px;padding:14px; }
.shape-kinds { display:flex;flex-direction:column;border:1px solid #d5dbe3;background:#fff;align-self:start; }
.shape-kinds button { text-align:left;border:0;background:none;padding:5px 8px;font-size:12.5px;cursor:pointer; }
.shape-kinds button.selected { background:#1664d8;color:#fff; }
.shape-kinds button:disabled:not(.selected) { color:#9aa4b2;cursor:default; }
.shape-fields label { display:block;margin-top:6px;font-size:12px; }
.shape-fields label input:not([type=checkbox]) { display:block;width:120px;margin-top:2px; }
.shape-fields label.check { display:flex;align-items:center;gap:6px;margin-top:8px; }
.shape-fields .hint { color:#667085;font-size:11.5px;margin:4px 0 8px; }
.shape-area { font-size:16px;font-weight:700;margin-top:10px; }
.shape-error { color:#b42318;font-size:12px;min-height:16px; }
.shape-preview { background:#fff;border:1px solid #d3d3d3;display:block; }
.shape-buttons { justify-content:flex-end;margin-top:14px; }
.room-shape-info { margin-top:8px; }
@media (max-width:720px) { .shape-body { grid-template-columns:1fr; } .shape-kinds { flex-direction:row;flex-wrap:wrap; } }
/* Plan page: tool help / notice get their own row above the plan (the plan never drops into the table's row). */
.desktop-document.plan-document { grid-template-rows:36px auto minmax(260px,1fr) 230px;grid-template-columns:minmax(0,1fr); }
.plan-messages > .plan-help, .plan-messages > .alert { margin:4px 8px; white-space:pre-line; }
/* Plan toolbar: buttons keep one line; a narrow window scrolls the row instead of squeezing the labels. */
.plan-document .plan-actions { min-width:0;overflow-x:auto;overflow-y:hidden;align-self:center; }
.plan-document .plan-actions button, .plan-document .document-tab { flex:none;white-space:nowrap; }
/* The plan at its true size (metres × 70 × zoom px, as the desktop canvas): the area scrolls instead of squeezing it, so «100%» is 100%. */
.plan-document .plan-canvas svg { display:block;width:auto;height:auto;min-height:0;max-width:none; }
/* «Qavatlar» dialog (desktop FloorManagerWindow) and the «Qavat nusxasi» menu */
.floor-dialog { width:min(640px,calc(100vw - 32px)); }
.floor-dialog-body { display:grid;grid-template-columns:220px 1fr;gap:14px;padding:14px; }
.floor-dialog-list .shape-kinds { margin:6px 0 10px; }
.floor-dialog-buttons { display:flex;flex-direction:column;gap:6px; }
.floor-dialog .shape-fields label input, .floor-dialog .shape-fields label select { display:block;width:100%;margin-top:2px; }
.floor-copy-menu { width:min(460px,calc(100vw - 32px)); }
.floor-copy-menu .shape-kinds { margin:12px 14px 0; }
.floor-copy-menu .shape-buttons { padding:0 14px 14px; }
.underlay-menu .shape-kinds button:disabled { color:#9aa4b2;cursor:default; }
.underlay-opacity { display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:5px 8px;font-size:12.5px;border-top:1px solid #eef1f4;border-bottom:1px solid #eef1f4; }
.underlay-opacity button { border:1px solid #d5dbe3 !important;border-radius:4px;padding:2px 6px !important; }
.underlay-opacity button.selected { background:#1664d8;color:#fff; }
.underlay-info { color:#667085;font-size:11.5px;padding:6px 8px;border-top:1px solid #eef1f4; }
.ask-dialog { width:min(440px,calc(100vw - 32px)); }
/* The desktop's pipe options panel (PipeOptionsPanel) under the toolbar while drawing pipes */
.pipe-options { display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:4px 8px;font-size:12px; }
.pipe-options select { font-size:12px;padding:2px 4px; }
.plan-actions .plan-select { font-size:12px;padding:1px 2px;max-width:150px;flex:none; }
.pipe-options button { font-size:12px;padding:2px 8px;border:1px solid #c9d1dc;border-radius:4px;background:#fff;cursor:pointer; }
.pipe-options button.tool-active { background:#1664d8;color:#fff;border-color:#1664d8; }
/* «Quvur xususiyatlari» (desktop PipeSegmentWindow) */
.pipe-dialog { width:min(480px,calc(100vw - 32px)); }
.pipe-dialog-body { padding:14px; }
.pipe-dialog-body strong { display:block;margin-top:12px; }
.pipe-dialog-body select { display:block;margin-top:2px;max-width:100%; }
.pipe-dialog-body .field-row { display:flex;gap:8px; }
.pipe-dialog-body .field-row input { width:90px; }
.pipe-dialog-body input.wide { width:100%;box-sizing:border-box;margin-top:4px; }
.pipe-dialog-body .btn { margin-top:4px; }
.ask-body { padding:14px; }
.ask-prompt { white-space:pre-line;margin:0 0 8px;font-size:13px; }
.ask-body input { width:100%;padding:4px; }
@media (max-width:720px) { .floor-dialog-body { grid-template-columns:1fr; } }
/* 3D view beside the drawing (desktop Scene3DView) */
.scene3d { display:flex;min-height:260px;min-width:0;overflow:hidden;background:#fff; }
.scene3d-side { width:215px;flex:none;overflow-y:auto;padding:12px;font-size:12.5px;border-right:1px solid #dfe4ec; }
.scene3d-side label { display:flex;align-items:center;gap:6px;margin:4px 0; }
.scene3d-title { font-size:16px;font-weight:700;margin-bottom:6px; }
.scene3d-head { font-weight:700;margin:12px 0 4px; }
.scene3d-gap { margin-top:8px !important; }
.scene3d-btn { display:block;width:100%;text-align:left;margin:3px 0;padding:5px 8px;font-size:12.5px; }
.scene3d-small { margin-top:4px;padding:3px 6px;font-size:12px; }
.scene3d-help { font-size:11px;opacity:.75;margin-top:12px; }
.scene3d-muted { opacity:.6; }
.scene3d-main { flex:1;min-width:0;display:flex;flex-direction:column; }
.scene3d-view { flex:1;min-height:0;position:relative;margin:8px 8px 8px 8px;border-radius:8px;overflow:hidden;background:linear-gradient(#F4F7FB,#D9E2EC); }
.scene3d-view canvas { position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none; }
.scene3d-nogl { position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center; }
.scene3d-status { padding:5px 10px;border-top:1px solid #dfe4ec;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
/* Licence (desktop LicenseWindow / LicenseGate) */
.modal-backdrop-lite { position:fixed;inset:0;background:rgba(16,33,58,.35);z-index:900; }
.license-dialog { position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:10px;box-shadow:0 18px 50px rgba(16,33,58,.3);padding:24px;z-index:901;font-size:13.5px; }
.license-head { display:flex;align-items:center;gap:14px;margin-bottom:14px; }
.license-head .brand-mark { width:48px;height:48px;font-size:18px; }
.license-title { font-size:24px;font-weight:700;color:#10213A; }
.license-state { color:#667085;font-weight:600; }
.license-state.deep, .tone-deep { color:#b4322a; }
.tone-warm { color:#c46a12; }
.tone-ok { color:#18A66A; }
.license-label { display:block;font-weight:600;margin-top:6px; }
.license-key { width:100%;margin:4px 0 6px;padding:6px;font-family:Consolas,monospace;border:1px solid #dfe4ec;border-radius:6px;resize:vertical; }
.license-status { font-weight:600;margin-bottom:12px; }
.license-status.ok { color:#18A66A; } .license-status.bad { color:#8b1a1a; }
.license-buttons { display:flex;gap:8px;align-items:center; } .license-buttons .spacer { flex:1; }
.license-locked { max-width:640px;margin:40px auto;padding:24px;background:#fff;border:1px solid #dfe4ec;border-radius:10px; }
.license-status-button { border:0;background:transparent;font-weight:600;cursor:pointer;padding:0 10px;font-size:inherit; }
/* Phone (Telegram Mini App, a narrow browser): one column — the plan, then the properties of what is selected, then the
   table; the page scrolls. Placed last so it wins over the wider breakpoints above. */
@media (max-width:760px) {
    .desktop-main { height:auto;min-height:calc(100vh - 156px); }
    .desktop-workspace { grid-template-columns:minmax(0,1fr) !important;height:auto; }
    .desktop-project-browser { display:none; }
    .desktop-inspector { display:block !important;border-left:0;border-top:1px solid #dfe4ec;background:#fff; }
    .desktop-document.plan-document { grid-template-rows:36px auto 58vh auto;overflow:visible; }
    .plan-canvas { -webkit-overflow-scrolling:touch; }
    .dashboard { height:auto; }
    .dashboard-body { height:auto;max-height:50vh; }
    .desktop-ribbon { height:96px; }
    .desktop-statusbar { display:flex;height:30px;justify-content:center; }
    .desktop-statusbar .status-left, .desktop-statusbar > div:last-of-type { display:none; }
    .scene3d { flex-direction:column; }
    .scene3d-side { width:auto;max-height:18vh;border-right:0;border-bottom:1px solid #dfe4ec;padding:8px 12px; }
    .scene3d-view { min-height:0;margin:6px; }
    .license-dialog { padding:16px; }
    .report-table { max-height:60vh; }
}
.desktop-statusbar .license-status-button { color:#fff; }
.desktop-statusbar .license-status-button.tone-deep { color:#ffd2cc; }
.desktop-statusbar .license-status-button.tone-warm { color:#ffe1b3; }
.desktop-statusbar .license-status-button.tone-ok { color:#b8f0d4; }
/* Ribbon groups keep their width: a narrow window scrolls the ribbon instead of piling the buttons on each other. */
.ribbon-group, .ribbon-items > * { flex:none; }
.mobile-props-jump { display:none; }
@media (max-width:760px) { .mobile-props-jump { display:block;position:fixed;right:12px;bottom:42px;z-index:50;border:0;border-radius:18px;padding:8px 14px;background:#1664d8;color:#fff;font-weight:600;box-shadow:0 4px 14px rgba(16,33,58,.3); } }
.cloud-problem { background:#fff4e5;color:#b54708;border-radius:4px;padding:1px 8px;margin-right:8px;font-weight:600;cursor:help; }
/* A touch screen: the plan takes the fingers (pinch, move, drag a room); the page scrolls outside it. */
@media (pointer:coarse) { .plan-canvas { touch-action:none; } }
.phone-only { display:none; }
@media (max-width:760px) { .phone-only { display:flex; } }
/* The status bar stays one line: the network line is cut short, its full text is the tooltip. */
.desktop-statusbar span { white-space:nowrap; }
.desktop-statusbar .status-net { max-width:42ch;overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:bottom; }
/* North compass in the visible corner of the drawing (MainWindow NorthCompassButton). */
.plan-document { position:relative; }
.north-compass { position:absolute;right:26px;top:48px;z-index:20;width:84px;padding:4px 2px;background:rgba(255,255,255,.95);border:1px solid #dfe4ec;border-radius:6px;display:flex;flex-direction:column;align-items:center;cursor:pointer; }
.north-compass span { font-size:10px;color:#667085; }
/* «TEKSHIRUV HOLATI» beside the bottom table. */
.dashboard-split { display:flex;min-height:0; }
.dashboard-split .dashboard-body { flex:1 1 auto;min-width:0; }
.readiness-card { flex:0 0 260px;height:148px;overflow:auto;border-left:1px solid #dfe4ec;padding:8px 10px;font-size:12px; }
.readiness-card strong { color:#1664d8; }
.readiness-card p { color:#667085;margin:4px 0 8px; }
.readiness-item { display:flex;gap:6px;width:100%;text-align:left;border:1px solid #e4e8ef;background:#fff;border-radius:5px;padding:5px 7px;margin-bottom:6px;font-size:12px;cursor:pointer; }
.readiness-item b { color:#b42318;flex:0 0 auto; }
.readiness-item.ok b { color:#067647; }
@media (max-width:760px) { .dashboard-split { flex-direction:column; } .readiness-card { flex:none;height:auto;max-height:40vh;border-left:0;border-top:1px solid #dfe4ec; } .north-compass { transform:scale(.75);transform-origin:top right;right:8px; } }
/* The drawing takes the room: the project browser and the tables open only when wanted (Ko‘rinish → Panellar). */
.desktop-workspace.no-browser { grid-template-columns:minmax(0,1fr) 310px; }
.desktop-workspace.no-browser > .desktop-project-browser { display:none; }
.desktop-document.plan-document.no-tables { grid-template-rows:36px auto minmax(260px,1fr); }
.document-tab.tables-toggle { margin-left:auto;color:#1664d8; }
@media (max-width:1100px) { .desktop-workspace.no-browser { grid-template-columns:minmax(0,1fr) 250px; } }
/* The logo (the desktop program's). */
.brand-logo { width:22px;height:22px;border-radius:5px;display:block; }
.brand-logo.big { width:48px;height:48px; }
img.project-icon { width:38px;height:38px;border-radius:8px;object-fit:contain;background:#fff; }
/* «Tekshiruv holati» on the ribbon tab bar: warns when something is missing. */
.readiness-tab { margin-left:14px;border:0;background:transparent;font-size:13px;padding:0 10px;cursor:pointer; }
.readiness-tab.ok { color:#067647; }
.readiness-tab.warn { color:#c2410c;font-weight:700;animation:readiness-pulse 2.4s ease-in-out infinite; }
@keyframes readiness-pulse { 0%,100% { opacity:1; } 50% { opacity:.55; } }
.readiness-dialog { width:min(520px,94vw);max-height:86vh;display:flex;flex-direction:column; }
.readiness-head { font-weight:700;font-size:15px;margin:4px 0; }
.readiness-head.warn { color:#b42318; } .readiness-head.ok { color:#067647; }
.readiness-intro { color:#667085;margin:0 0 10px; }
.readiness-list { overflow:auto;min-height:0;flex:1 1 auto; }
@media (max-width:760px) { .desktop-workspace.no-browser { grid-template-columns:minmax(0,1fr) !important; } .desktop-document.plan-document.no-tables { grid-template-rows:36px auto 58vh; } }
/* «Isitish tizimi» (HeatingSystemForm): settings on top, the rooms on the left, the chosen room on the right. */
.heating-title { display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:10px; }
.heating-title p { margin:0;font-size:12px; }
.heating-load { background:#fff;border:1px solid #dfe4ec;border-radius:8px;padding:10px 14px;display:grid;gap:4px;min-width:180px; }
.heating-load span { color:#667085;font-size:12px; } .heating-load strong { font-size:18px; }
.heating-settings { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:4px 14px;background:#fff;border:1px solid #dfe4ec;border-radius:8px;padding:12px 14px;margin-bottom:12px; }
.heating-settings small { color:#667085;font-size:11px; }
.heating-inline { display:flex;gap:10px;align-items:flex-end; } .heating-inline > label { flex:1 1 0; }
.window-body label.check { display:flex;gap:8px;align-items:flex-start;color:#344054; }
.window-body input:not([type=checkbox]) { min-height:34px;border:1px solid #d8dde6;border-radius:7px;padding:6px 9px; }
.heating-layout2 { display:grid;grid-template-columns:260px minmax(0,1fr);gap:12px;align-items:start; }
.heating-rooms { max-height:70vh;overflow:auto; }
.heating-rooms .room-row { display:grid;gap:2px;width:100%;text-align:left;border:1px solid #e4e8ef;background:#fff;border-radius:6px;padding:7px 9px;margin-bottom:6px; }
.heating-rooms .room-row.selected { border-color:#1664d8;background:#e8f0fd; }
.heating-rooms .room-row span { color:#667085;font-size:11px; }
.heating-room h3 { font-size:13px;margin:16px 0 8px;color:#1664d8; }
.pre { white-space:pre-line; }
@media (max-width:760px) { .heating-layout2 { grid-template-columns:1fr; } .heating-title { flex-direction:column; } }
.desktop-statusbar { overflow:hidden;white-space:nowrap; } .desktop-statusbar .license-status-button { white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40ch; }
/* «Gidravlika» (HydraulicsReport cards). */
.hydro-title { color:#1664d8;font-size:15px;margin:0 0 8px; }
.hydro-sub { font-size:13px;margin:10px 0 6px; }
.hydro-tiles { display:flex;flex-wrap:wrap;gap:10px;margin-top:10px; }
.hydro-tiles div { background:#f7f9fc;border:1px solid #dfe4ec;border-radius:6px;padding:8px 12px;min-width:170px;display:grid;gap:2px; }
.hydro-tiles span { color:#667085;font-size:12px; } .hydro-tiles strong { font-size:20px; }
.hydro-facts { border-collapse:collapse;width:100%;font-size:13px; } .hydro-facts td { padding:4px 10px 4px 0;vertical-align:top; } .hydro-facts td:first-child { width:260px; } .hydro-facts td:nth-child(2) { width:300px; }
.hydro-table { overflow-x:auto;margin-bottom:8px; } .hydro-table table { border-collapse:collapse;font-size:12px;min-width:100%; } .hydro-table th { background:#f7f9fc;text-align:left;white-space:nowrap;font-weight:600;color:#475467; } .hydro-table th,.hydro-table td { padding:5px 8px;border-bottom:1px solid #edf0f4; }
.hydro-check { display:flex;gap:10px;margin:3px 0;font-size:13px; } .hydro-check > span:first-child { flex:0 0 118px;font-size:11px;font-weight:600;border-radius:3px;padding:1px 6px;align-self:flex-start; }
.tone-danger { background:#fde8e8; } .tone-warning { background:#fff4e5; } .tone-info { background:#e8f0fd; }
@media (max-width:760px) { .hydro-facts td:first-child,.hydro-facts td:nth-child(2) { width:auto; } }
/* «Issiqlik hisobi» (HeatLossForm). */
.heatloss-toolbar { display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:10px; }
.window-body .heatloss-toolbar label.inline { display:flex;gap:8px;align-items:center;margin:0; } .heatloss-toolbar label.inline select { width:auto; }
.heatloss-status { display:flex;gap:12px;flex-wrap:wrap;margin:10px 0; } .heatloss-status div { flex:1 1 220px;border-radius:8px;padding:10px 14px;display:grid;gap:4px; }
.heatloss-status span { font-size:12px;font-weight:700; } .heatloss-status.ok div { background:#ecfdf3;color:#067647; } .heatloss-status.bad div { background:#fef3f2;color:#b42318; }
.heatloss-rooms { display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin-bottom:12px; }
.heatloss-room { display:grid;gap:2px;text-align:left;border:1px solid #e4e8ef;background:#fff;border-radius:8px;padding:9px 11px;font-size:12px;cursor:pointer; }
.heatloss-room.selected { border-color:#1664d8;background:#e8f0fd; } .heatloss-room span { color:#475467; } .heatloss-room small { color:#667085; }
.hydro-table tr.selected td { background:#e8f0fd; }
/* «Konstruksiyalar va materiallar» (ThermalSetupForm). */
.thermal-tabs { display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid #dfe4ec;margin-bottom:12px; }
.thermal-tabs button { border:0;background:none;padding:7px 10px;font-size:12px;color:#667085;border-bottom:2px solid transparent; }
.thermal-tabs button.active { color:#172033;font-weight:700;border-bottom-color:#1664d8; }
.thermal-row { display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px; } .thermal-row select { max-width:420px; } .thermal-name { flex:1 1 240px; }
.edit-table input, .edit-table select { min-height:30px;font-size:12px;width:100%;min-width:90px;padding:4px 6px; }
.thermal-preview { background:#f7f9fc;border:1px solid #e4e8ef;border-radius:6px;padding:8px 10px;font-size:12px;margin-top:10px; }
.ok-text { color:#067647; } .bad-text { color:#b42318; }
/* «Qozon va qozonxona» (BoilerRoomForm, BoilerSizeForm). */
.boiler-layout2 { display:grid;grid-template-columns:minmax(0,520px) minmax(0,1fr);gap:16px;align-items:start; }
.boiler-left h3, .boiler-right h3 { font-size:13px;margin:14px 0 6px; }
.boiler-tariff { display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:4px 10px;margin:6px 0; }
.boiler-svg { background:#fff;border:1px solid #dfe4ec;border-radius:6px;padding:6px; } .boiler-svg svg { width:100%;height:auto;display:block; }
.boiler-advice { font-size:12px;padding-left:18px; } .advice-error { color:#c62828; } .advice-warning { color:#b26a00; } .advice-good { color:#2e7d32; }
.small { font-size:11px; } tr.clickable { cursor:pointer; }
.boiler-left, .boiler-right { min-width:0; }
@media (max-width:1100px) { .boiler-layout2 { grid-template-columns:minmax(0,1fr); } }
/* Qozonxona: qo'lda terish konstruktori (Core BoilerConstructor) */
.br-bar { display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:4px; } .br-bar select { max-width:320px; }
.br-toggle { display:flex;gap:4px;align-items:center;font-weight:600; }
.br-hint { margin:2px 0 6px;font-size:12px; }
.br-palette { display:flex;flex-wrap:wrap;gap:4px;margin-bottom:6px; }
.br-work { display:grid;grid-template-columns:200px minmax(0,1fr);gap:8px;outline:none; }
.br-library { border:1px solid #dfe4ec;border-radius:6px;padding:6px;max-height:640px;overflow:auto;font-size:12px;background:#fff; }
.br-category { font-weight:600;margin:8px 0 3px; }
.br-tiles { display:grid;grid-template-columns:repeat(2,1fr);gap:4px; }
.br-tile { border:1px solid #d0d7e2;border-radius:5px;padding:3px;background:#fff;cursor:pointer;text-align:center;font-size:11px;user-select:none; }
.br-tile.active { border:2px solid #1e88e5; }
.br-icon svg { width:100%;height:56px;display:block;pointer-events:none; }
.br-stage { position:relative; }
.br-stage .br-overlay { position:absolute;left:0;top:0;width:100%;height:100%;touch-action:none; }
.br-pipe { fill:none;stroke:transparent;stroke-width:60;stroke-linejoin:round;cursor:pointer; } .br-pipe.sel { stroke:rgba(30,136,229,.47); }
.br-box { fill:transparent;cursor:pointer; } .br-part { cursor:move; } .br-box.sel { stroke:#1e88e5;stroke-width:10;stroke-dasharray:30 20; }
.br-port { cursor:crosshair; } .br-grip { cursor:move; }
.boiler-advice li { cursor:pointer; } .boiler-advice li.chosen { font-weight:700; }
@media (max-width:760px) { .br-work { grid-template-columns:1fr; } .br-library { max-height:260px; } }
