/* Every rule for the glass theme is scoped. Classic uses the original styles. */
.page-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.appearance-switch{display:inline-flex;gap:3px;padding:4px;border:1px solid #cad9d5;border-radius:999px;background:#edf3f1}
.appearance-switch button{appearance:none;border:0;border-radius:999px;padding:8px 13px;background:transparent;color:#45616b;font:600 12px/1.25 system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.appearance-switch button[aria-pressed=true]{background:#233f4b;color:#fff;box-shadow:0 2px 6px #132d3626}
.appearance-switch button:focus-visible{outline:2px solid #16859d;outline-offset:3px}
html[data-stroyzilla-theme=glass]{
  color-scheme:light;
  --ink:#173d50;--muted:#4a6b7b;--line:#42718526;
  --glass-fill:linear-gradient(126deg,#ffffff40 0%,#ffffff0a 35%,#d5f7ff08 66%,#ffffff2b 100%);
  --glass-shadow:inset 1px 1px 0 #ffffffe0,inset -1px -1px 0 #ffffff70,inset 0 2px 8px #ffffff24,0 10px 26px #254c6c14;
  --appearance-base:#a7cddc;
  background:radial-gradient(ellipse at 12% 42%,#ffffff80,transparent 65%),radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--appearance-base),white 40%),transparent 65%),linear-gradient(130deg,color-mix(in srgb,var(--appearance-base),white 12%),color-mix(in srgb,var(--appearance-base),white 55%) 50%,var(--appearance-base));
  background-attachment:fixed;
}
html[data-stroyzilla-theme=glass] body{background:transparent;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html[data-stroyzilla-theme=glass] :is(h1,h2,h3,.number,.metric strong,.stats strong){color:#173e53;letter-spacing:-.025em}
html[data-stroyzilla-theme=glass] :is(.muted,.small,.context,.topline p,.panel-head p){color:#456878}
html[data-stroyzilla-theme=glass] :is(.card,.forecast-card,.filter-panel,.filters,.panel,.metric,.stats article,.dossier-card,.dossier-open,.finance-evidence,.annual-panel,.annual-facts>div,.install-map-canvas-wrap,.install-map-list,.notes-panel,.landing-card,.admin-card){
  background:var(--glass-fill);border:1px solid #f6ffffad;border-right-color:#e9f8ff75;border-bottom-color:#effbff73;
  border-radius:28px;box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:blur(12px) saturate(145%);backdrop-filter:blur(12px) saturate(145%);
}
html[data-stroyzilla-theme=glass] :is(.filter-panel,.filters){border-radius:24px;background:linear-gradient(120deg,#faffff30,#f2faff08)}
html[data-stroyzilla-theme=glass] :is(.card,.forecast-card,.filter-panel,.panel){background-image:linear-gradient(120deg,#ffffff24 0%,transparent 22%,transparent 49%,#ffffff14 50%,transparent 72%),var(--glass-fill)}
html[data-stroyzilla-theme=glass] :is(.kpi .label,.kpi .context,.forecast-intro,.forecast-card-head span,.forecast-result dt,.forecast-result small,.filter-caption,.eyebrow){color:#3b6376}
html[data-stroyzilla-theme=glass] :is(.kpi .number,.forecast-heading h2){color:#244f65;text-shadow:0 1px #ffffff70}
html[data-stroyzilla-theme=glass] :is(.status-chip,.icon-button,.source-chip,.forecast-tag,.panel-tag){background:linear-gradient(130deg,#ffffff65,#ffffff25);border-color:#efffffb3;color:#355e70;box-shadow:inset 0 1px #ffffffbd}
html[data-stroyzilla-theme=glass] :is(.segment,.presets,.appearance-switch){background:#38667b13;border:1px solid #f1ffff80;box-shadow:inset 0 1px 3px #3154690b}
html[data-stroyzilla-theme=glass] :is(.segment button.active,.quick-periods button.active,.quick-periods button[aria-pressed=true],.appearance-switch button[aria-pressed=true],.primary){background:linear-gradient(135deg,#285f72,#183d55);color:#fff;border-color:#25596f;box-shadow:inset 0 1px #d0f5ff3d,0 4px 10px #24536b24}
html[data-stroyzilla-theme=glass] :is(select,textarea,input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=submit])){background:#f4fcff63;border:1px solid #f4ffffc2;box-shadow:inset 1px 1px #ffffffbd,0 3px 7px #3873880a;color:#244d61}
html[data-stroyzilla-theme=glass] select option{background:#edf5f9;color:#234d60}
html[data-stroyzilla-theme=glass] :is(.secondary,.quick-periods button:not(.active):not([aria-pressed=true])){background:linear-gradient(125deg,#f7ffff65,#f2fcff26);border-color:#f0ffffaa;color:#31586d;box-shadow:inset 0 1px #ffffffba}
html[data-stroyzilla-theme=glass] :is(.table-wrap,.profit-table,.scroll,.sales-table){background:#f4fbff30;border-color:#f1ffff88;border-radius:16px}
html[data-stroyzilla-theme=glass] :is(.data-table th,.sales-table th,.profit-table thead th,.time-table th){background:#dbeef2e8;color:#426478;border-color:#49768b25}
html[data-stroyzilla-theme=glass] :is(.data-table td,.sales-table td,.profit-table td){border-color:#49768b24}
html[data-stroyzilla-theme=glass] :is(.data-table tbody tr:hover,.members-table tbody tr:hover){background:#f5ffff50}
html[data-stroyzilla-theme=glass] :is(.insight,.sales-counter,.overview-activity,.install-site-card,.profit-month,.profit-total,.forecast-extra,.annual-method,.scope,.note){background:#f5ffff50;border-color:#efffff99}
html[data-stroyzilla-theme=glass] :is(.sales-counter.selected,.install-site-card.selected){background:#c4eeec99;border-color:#568e9c}
html[data-stroyzilla-theme=glass] .forecast-fact{background:#e9f9ff60!important;border-color:#f4ffff91;color:#416b7e!important}
html[data-stroyzilla-theme=glass] .forecast-previous{color:#637e8d!important}
html[data-stroyzilla-theme=glass] :is(.forecast-card details,.forecast-result dl>div,footer){border-color:#47768a26}
/* Shell uses a darker pane, with readable light navigation. */
html[data-stroyzilla-theme=glass] #workspace{gap:16px;padding:16px;background:transparent}
html[data-stroyzilla-theme=glass] #workspace>.sidebar{top:16px;height:calc(100dvh - 32px);border-radius:30px;border:1px solid #c3f2ff75;background:linear-gradient(135deg,#194453cf,#17374ad9);box-shadow:inset 1px 1px #ffffff45,0 18px 42px #081c3220;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html[data-stroyzilla-theme=glass] .sidebar :is(.brand,nav button,.signout){color:#e0f5f7}
html[data-stroyzilla-theme=glass] .sidebar :is(.brand small,.nav-label,#identity small){color:#b1d0db}
html[data-stroyzilla-theme=glass] .sidebar nav button{border-radius:12px}
html[data-stroyzilla-theme=glass] .sidebar nav button.active{background:linear-gradient(130deg,#bffbff3b,#53cbd923);border:1px solid #d8f9ff73;color:#fff;box-shadow:inset 0 1px #ffffff55,0 5px 14px #0d2d3b25}
html[data-stroyzilla-theme=glass] .sidebar nav button:hover{background-color:#d9f7ff18}
html[data-stroyzilla-theme=glass] .brand-mark{background:linear-gradient(145deg,#b8f8fc55,#82dbe922);color:#e3ffff;border:1px solid #c4f5ff77;box-shadow:inset 0 1px #edffff6b}
html[data-stroyzilla-theme=glass] #main{padding:24px;min-width:0;border-radius:30px;border:1px solid #efffff8c;background:#c8e7ef18;box-shadow:inset 0 1px #f7ffff99,0 20px 50px #14334f16}
html[data-stroyzilla-theme=glass] .page-header{gap:12px;flex-wrap:wrap}
html[data-stroyzilla-theme=glass] .frame-wrap{background:transparent;border:0;box-shadow:none}
html[data-stroyzilla-theme=glass] #dashboard-frame{background:transparent;border-radius:26px}
html[data-stroyzilla-theme=glass] #identity{color:#d8edf4}
html[data-stroyzilla-theme=glass] .sidebar-bottom{border-color:#d7f5ff33}
html[data-stroyzilla-theme=glass] .notes-panel{margin-bottom:16px}
html[data-stroyzilla-theme=glass] :is(dialog,#competitor-dialog){background:linear-gradient(125deg,#e0f3f5f5,#dae8f3f5);border:1px solid #fff;border-radius:20px;box-shadow:var(--glass-shadow),0 24px 80px #13384d40;color:#183e53}
html[data-stroyzilla-theme=glass] dialog::backdrop{background:#102f4666;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
/* Glass is not applied to map tiles, plots or red/yellow/green status cells. */
@media(max-width:900px){.page-tools{justify-content:flex-start}html[data-stroyzilla-theme=glass] #workspace{gap:10px;padding:10px}html[data-stroyzilla-theme=glass] #main{padding:16px}}
@media(max-width:760px){html[data-stroyzilla-theme=glass] #workspace{padding:0;gap:0}html[data-stroyzilla-theme=glass] #workspace>.sidebar{height:auto;top:0;border-radius:0}html[data-stroyzilla-theme=glass] #main{border-radius:0;padding:16px 10px}.page-tools{width:100%}.appearance-switch button{padding:9px 13px}html[data-stroyzilla-theme=glass] :is(.card,.forecast-card,.panel,.metric){-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html[data-stroyzilla-theme=glass] :is(.card,.forecast-card,.filter-panel,.filters,.panel,.metric,.notes-panel,.landing-card){background:#e1eff4}}
@media(prefers-reduced-transparency:reduce){html[data-stroyzilla-theme=glass] :is(.card,.forecast-card,.filter-panel,.filters,.panel,.metric,.notes-panel,.landing-card){background:#e1eff4;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media print{.appearance-switch{display:none}html[data-stroyzilla-theme=glass],html[data-stroyzilla-theme=glass] body{background:#fff}html[data-stroyzilla-theme=glass] :is(.card,.forecast-card,.panel,.metric){background:#fff;box-shadow:none;backdrop-filter:none}}
/* Keep section navigation above the older ID-based portal rules. */
html[data-stroyzilla-theme=glass] #section-nav button{color:#e0f5f7;border-radius:12px;font-size:13px}
html[data-stroyzilla-theme=glass] #section-nav button.active{background:linear-gradient(130deg,#bffbff3b,#53cbd923);border:1px solid #d8f9ff73;color:#fff;box-shadow:inset 0 1px #ffffff55}
html[data-stroyzilla-theme=glass] #section-nav button:hover{background-color:#d9f7ff18}
html[data-stroyzilla-theme=glass] .shared-plan-bar{background:linear-gradient(120deg,#f4ffff55,#eff8ff22)!important;border:1px solid #f4ffffb0!important;border-radius:14px!important;color:#315769!important;box-shadow:inset 0 1px #fff9}
html[data-stroyzilla-theme=glass] :is(.sidebar,#dashboard-frame,.table-wrap){scrollbar-width:thin;scrollbar-color:#51768a55 transparent}
html[data-stroyzilla-theme=glass]{scrollbar-width:thin;scrollbar-color:#51768a55 transparent}
html[data-stroyzilla-theme=glass][data-stroyzilla-section=overview] #content{display:flex;flex-direction:column}
html[data-stroyzilla-theme=glass][data-stroyzilla-section=overview] #content>.kpi-grid{order:-2}
html[data-stroyzilla-theme=glass][data-stroyzilla-section=overview] #content>.overview-forecast{order:-1}
html[data-stroyzilla-theme=glass] .kpi{padding:20px;min-height:135px}
html[data-stroyzilla-theme=glass] .kpi .number{font-size:clamp(23px,2.2vw,34px);letter-spacing:-.04em;overflow-wrap:anywhere}
html[data-stroyzilla-theme=glass] .kpi .label{font-size:12px}
html[data-stroyzilla-theme=glass] .kpi .context{font-size:11px;line-height:1.5}
html[data-stroyzilla-theme=glass] .selects label{gap:5px}
html[data-stroyzilla-theme=glass] .selects input[type=date]{min-height:34px;padding:6px 9px;border-radius:9px;font:inherit}
@media(min-width:1050px){html[data-stroyzilla-theme=glass] .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
html[data-stroyzilla-theme=glass][data-stroyzilla-section=competitors] :is(table,.dossier-open){background:#f4fbff40}
html[data-stroyzilla-theme=glass][data-stroyzilla-section=competitors] th{background:#dbeef2e8;color:#426478}
html[data-stroyzilla-theme=glass][data-stroyzilla-section=competitors] :is(td,th){border-color:#49768b24}
@media(max-width:600px){
  html[data-stroyzilla-theme=glass] .selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px}
  html[data-stroyzilla-theme=glass] .selects label{display:grid;min-width:0;font-size:11px}
  html[data-stroyzilla-theme=glass] .selects :is(select,input){width:100%;min-width:0;max-width:none;font-size:12px;min-height:36px}
  html[data-stroyzilla-theme=glass] .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Layout constraints apply inside each embedded section, including narrow desktop panes. */
html[data-stroyzilla-theme=glass] *,html[data-stroyzilla-theme=glass] *::before,html[data-stroyzilla-theme=glass] *::after{box-sizing:border-box}
html[data-stroyzilla-theme=glass] :is(.grid,.forecast-grid,.kpi-grid,.stats,.selects,.forecast-inputs,.activity-day,.activity-inputs)>*{min-width:0;max-width:100%}
html[data-stroyzilla-theme=glass] :is(.card,.forecast-card,.panel,.metric,.kpi,.forecast-result,dl,dt,dd,.topline>*,.page-header>*,.panel-head>*){min-width:0;max-width:100%}
html[data-stroyzilla-theme=glass] :is(h1,h2,h3,p,summary,.number,.metric strong,.stats strong,.profit-total,.forecast-result dd,.activity-day strong,.activity-week strong,.kpi .label,.kpi .context){overflow-wrap:anywhere;word-break:normal}
html[data-stroyzilla-theme=glass] .forecast-result dl>div{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:start}
html[data-stroyzilla-theme=glass] :is(.forecast-card,.kpi,.metric){container-type:inline-size}
html[data-stroyzilla-theme=glass] .forecast-result dd{font-size:clamp(17px,6.3cqw,24px);font-variant-numeric:tabular-nums;white-space:normal;line-height:1.3}
html[data-stroyzilla-theme=glass] .kpi .number{font-size:clamp(20px,13cqw,32px);font-variant-numeric:tabular-nums;white-space:normal;line-height:1.25}
html[data-stroyzilla-theme=glass] :is(.panel-head,.forecast-card-head,.forecast-heading,.topline,.activity-title,.shared-plan-bar){flex-wrap:wrap;gap:10px}
html[data-stroyzilla-theme=glass] :is(.table-wrap,.profit-table,.sales-table,.activity-table){max-width:100%;overflow-x:auto}
html[data-stroyzilla-theme=glass] :is(input,select,textarea){max-width:100%;min-width:0}
html[data-stroyzilla-theme=glass] :is(.forecast-tag,.status-chip,.source-chip,.panel-tag,.badge){white-space:normal;overflow-wrap:anywhere}
html[data-stroyzilla-theme=glass] .forecast-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}
@container(max-width:300px){html[data-stroyzilla-theme=glass] .forecast-result dl>div{grid-template-columns:1fr}html[data-stroyzilla-theme=glass] .forecast-result dd{font-size:24px}}
@media(max-width:430px){html[data-stroyzilla-theme=glass] .kpi-grid{grid-template-columns:1fr}html[data-stroyzilla-theme=glass] .kpi{padding:16px;min-height:0}html[data-stroyzilla-theme=glass] .forecast-inputs{grid-template-columns:1fr}.appearance-switch{max-width:100%;flex-wrap:wrap}.appearance-switch button{white-space:normal}}
/* Light backgrounds keep financial figures readable for any selected base colour. */
html[data-stroyzilla-background=mint]{--appearance-base:#a7cebd}
html[data-stroyzilla-background=lavender]{--appearance-base:#c0b7da}
html[data-stroyzilla-background=sand]{--appearance-base:#dfcaaa}
html[data-stroyzilla-background=pearl]{--appearance-base:#dde6e8}
html[data-stroyzilla-background=custom]{--appearance-base:color-mix(in srgb,var(--appearance-custom-bg,#b3d9df),white 62%)}
html[data-stroyzilla-theme=glass] :is(.segment button.active,.quick-periods button.active,.quick-periods button[aria-pressed=true],.appearance-switch button[aria-pressed=true],.primary){background:var(--appearance-accent,#285f72);border-color:var(--appearance-accent,#285f72);color:var(--appearance-accent-text,#fff)}
html[data-stroyzilla-theme=glass] :is(#section-nav button.active,.sales-counter.selected,.install-site-card.selected){border-color:color-mix(in srgb,var(--appearance-accent,#285f72),white 45%);background:color-mix(in srgb,var(--appearance-accent,#285f72),transparent 65%)}
html[data-stroyzilla-theme=glass] #workspace>.sidebar{background:linear-gradient(140deg,color-mix(in srgb,var(--appearance-accent,#285f72),#102b37 75%) 0%,#17374acc 100%)}
html[data-stroyzilla-theme=glass] input[type=range],html[data-stroyzilla-theme=glass] input[type=checkbox]{accent-color:var(--appearance-accent,#285f72)}
#appearance-dialog{width:min(460px,calc(100vw - 24px));max-height:85dvh;padding:24px;overflow:auto}
.appearance-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:22px 0 14px}.appearance-fields label{display:grid;gap:7px;font-size:12px;min-width:0}.appearance-fields label:first-child{grid-column:1/-1}.appearance-fields select{font:inherit;width:100%;padding:10px;border-radius:9px}.appearance-fields input[type=color]{width:100%;height:44px;padding:4px;cursor:pointer;border-radius:9px}.appearance-swatches{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0 24px}.appearance-swatches button{background:var(--swatch);width:38px;height:38px;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #c1cbd0}.appearance-swatches button[aria-pressed=true]{box-shadow:0 0 0 3px #516d79}.appearance-swatches button:focus-visible{outline:3px solid #16859d;outline-offset:4px}

/* Rounded, light-catching panes without extra animated/compositing layers. */
html[data-stroyzilla-theme=glass] .kpi::after{content:none}
html[data-stroyzilla-theme=glass] .kpi .label{padding-right:0}
html[data-stroyzilla-theme=glass] :is(.card,.forecast-card,.panel){background-image:linear-gradient(116deg,#ffffff2b 0%,transparent 20%,transparent 68%,#ffffff17 100%),var(--glass-fill);background-clip:padding-box}
html[data-stroyzilla-theme=glass] :is(.insight,.sales-counter,.overview-activity,.install-site-card,.profit-month,.profit-total,.forecast-extra,.annual-method,.scope,.note,.shared-plan-bar){border-radius:20px!important;background-color:#f5ffff30}
html[data-stroyzilla-theme=glass] :is(select,textarea,input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]),.secondary,.primary){border-radius:14px}
html[data-stroyzilla-theme=glass] :is(dialog,#competitor-dialog){border-radius:28px;background:linear-gradient(125deg,#effaffcc,#e0ebf4cf);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
@media(max-width:760px){html[data-stroyzilla-theme=glass] :is(.card,.forecast-card,.panel,.metric){border-radius:24px}}
@media(prefers-reduced-transparency:reduce){html[data-stroyzilla-theme=glass] :is(.card,.forecast-card,.panel,dialog,#competitor-dialog){background:#e1eff4;-webkit-backdrop-filter:none;backdrop-filter:none}}

html[data-stroyzilla-theme=glass][data-stroyzilla-section=owner-profit] #profit-result>.card{padding:24px}
html[data-stroyzilla-theme=glass][data-stroyzilla-section=owner-profit] .profit-total{background:transparent;border:0;box-shadow:none;padding:0}
