/* Shared interaction states; no changes to prices or data. */
#password-result[data-tone=error]{color:#a32335;background:#fff1f2;padding:12px;border:1px solid #fecdd3;border-radius:6px}#password-result[data-tone=success]{color:#166534;background:#f0fdf4;padding:12px;border:1px solid #bbf7d0;border-radius:6px}
.pool-plan .configured-pool{max-height:420px;object-fit:contain}.pool-plan-legend{font-size:12px}.pool-measures{font-variant-numeric:tabular-nums}.project-progress .progress-dot{transition:background-color .22s ease,border-color .22s ease,color .22s ease}.portal-layout .project-hint-copy summary{min-height:32px}.portal-layout .project-hint-banner{align-items:center}.portal-layout .project-primary-actions button{min-height:40px}.pool-selection{font-size:12px}@media(max-width:760px){.portal-layout .project-primary-actions button{min-height:44px}.pool-plan .configured-pool{max-height:300px}}@media(prefers-reduced-motion:reduce){.project-progress .progress-dot{transition:none}}

/* One compact primary action; secondary actions stay visually quiet. */
.portal-layout .project-identity .project-primary-actions{gap:8px;flex-wrap:nowrap;max-width:none;align-self:flex-start;padding-top:2px}
.portal-layout .project-identity .project-primary-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;height:36px;padding:0 12px;font-size:13px;line-height:1;font-weight:600;border-radius:7px;white-space:nowrap;box-shadow:none}
.portal-layout .project-identity .project-primary-actions>button svg{width:16px;height:16px;flex-shrink:0}
.portal-layout .project-identity .project-primary-actions>.project-actions-trigger{background:transparent;border:1px solid transparent;color:#526781;padding-inline:10px}
.portal-layout .project-identity .project-primary-actions>.project-actions-trigger:hover{background:#e9eef5;color:#173554}
.portal-layout .project-identity .project-primary-actions>button:focus-visible{outline:2px solid #2459b8;outline-offset:3px}
@media(max-width:760px){.portal-layout .project-identity .project-primary-actions{flex-wrap:wrap}.portal-layout .project-identity .project-primary-actions>button{min-height:44px;height:44px;font-size:14px}}

/* Operate-mode refinement: calm hierarchy, consistent controls, purposeful motion. */
.portal-layout{--motion-fast:160ms;--motion-ease:cubic-bezier(.16,1,.3,1)}
.portal-layout ::selection{background:#dbe7ff;color:#142e51}
.portal-layout input,.portal-layout textarea{caret-color:#245bd6}
.portal-layout a{text-underline-offset:3px}
.portal-layout button,#modal-root button{transition:background-color 160ms ease-out,border-color 160ms ease-out,color 160ms ease-out;}
.portal-layout .project-workspace-view{max-width:1200px;margin-inline:auto}
.portal-layout .project-identity{padding-bottom:8px}
.portal-layout .project-back{margin-bottom:8px}
.portal-layout .project-title-row h1{font-size:28px;margin-bottom:8px;letter-spacing:-.025em}
.portal-layout .project-identity .project-progress{margin-top:16px!important;padding-top:10px!important}
.portal-layout .project-progress ol{margin:8px 0 12px;padding:0;gap:12px}
.portal-layout .project-progress .progress-dot{width:26px;height:26px;min-width:26px;font-size:12px}
.portal-layout .project-progress .progress-label{font-size:12px}
.portal-layout .project-progress .progress-state{display:none}
.portal-layout .project-workspace-view .project-tabs{margin-bottom:0;gap:22px!important}
.portal-layout .project-tab-content{padding-top:20px}
.portal-layout .project-hint-banner{background:#f0f4f8;border:1px solid #dce5ee;padding:8px 12px;margin-bottom:16px}
.portal-layout .project-hint-copy summary{font-weight:550}
.portal-layout .project-hint-copy p{max-width:72ch;font-size:13px;line-height:1.6}
.portal-layout .offer-review-state{padding:5px 9px;line-height:1.4;justify-self:start}
.portal-layout .offer-row-amount{font-variant-numeric:tabular-nums;white-space:nowrap}
.portal-layout .offer-list-row{padding-block:18px}
.portal-layout .offer-more>summary{min-height:40px;padding:9px 12px;font-size:13px;border-radius:6px}
.portal-layout .catalog-workspace{max-width:1200px;margin-inline:auto}
.catalog-workspace .pagehead{align-items:flex-start}
.catalog-workspace .subtitle{max-width:65ch;font-size:14px;line-height:1.6;margin-top:8px}
.catalog-list{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:24px}
.catalog-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px 24px;border-bottom:1px solid var(--line)}
.catalog-toolbar h2{font-size:17px;margin:0}
.catalog-search{width:min(280px,50%)}
.catalog-search input{width:100%}
.catalog-list table{width:100%;border-collapse:collapse}
.catalog-list th{background:#f8fafc;color:#526176;font-size:12px;font-weight:600;text-transform:none;letter-spacing:0;padding:12px 20px}
.catalog-list td{padding:16px 20px;font-size:14px;vertical-align:middle;border-bottom:1px solid #e9edf2}
.catalog-list td:first-child{width:46%;line-height:1.5}
.catalog-list td:first-child strong{font-weight:550}
.catalog-list td:nth-child(2),.catalog-list td:nth-child(3){color:#526176}
.catalog-list .num{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
.catalog-list td:last-child{text-align:right}
.catalog-list tbody tr:last-child td{border-bottom:0}
.catalog-list [hidden],.catalog-list tr[hidden]{display:none!important}
.catalog-rule{border-bottom:1px solid var(--line);background:transparent}
.catalog-rule>summary{display:list-item;cursor:pointer;min-height:48px;padding:14px 4px;font-size:14px;font-weight:600;color:#263e5d;list-style-position:inside}
.catalog-rule-body{padding:0 4px 20px;font-size:13px;line-height:1.6;color:#526176}
.catalog-rule-body p{max-width:72ch}
.catalog-rule-body .summaryline{gap:20px;padding:10px 0}
.catalog-rule-body .summaryline b{font-variant-numeric:tabular-nums;text-align:right}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(hover:hover) and (pointer:fine){
 .catalog-list tbody tr:hover{background:#f8faff}
 .catalog-rule>summary:hover{color:#245bd6}
}
@media(max-width:760px){
 .catalog-workspace .pagehead{gap:16px}
 .catalog-toolbar{padding:16px;align-items:stretch;flex-direction:column;gap:12px}
 .catalog-search{width:100%}
 .catalog-list .table-wrap{overflow:visible}
 .catalog-list table,.catalog-list tbody{display:block}
 .catalog-list thead{display:none}
 .catalog-list tr{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:16px;gap:8px 16px;border-bottom:1px solid var(--line)}
 .catalog-list tr:last-child{border-bottom:0}
 .catalog-list td{display:block;padding:0;border:0;min-width:0;font-size:13px}
 .catalog-list td:first-child{width:auto;grid-column:1/-1;font-size:15px;margin-bottom:4px}
 .catalog-list td:nth-child(2){grid-column:1/-1}
 .catalog-list td:nth-child(3){grid-column:1}
 .catalog-list td:nth-child(4){grid-column:1;text-align:left}
 .catalog-list td:nth-child(4)::after{content:' netto';font-weight:400;color:#526176}
 .catalog-list td:last-child{grid-column:2;grid-row:3/5;align-self:center}
 .catalog-rule-body .summaryline{flex-wrap:wrap;gap:4px}
 .portal-layout .project-title-row h1{font-size:26px}
 .portal-layout .project-primary-actions{width:100%}
}
@media(prefers-reduced-motion:reduce){.portal-layout button,#modal-root button,.portal-layout .progress-dot{transition:none!important}}

/* ==========================================================================
   Partnerbereich 2026 UX & Visual Upgrade (Poolbauer Workflow & Plausibility)
   ========================================================================== */
:root{
 --surface-elevated:#ffffff;
 --surface-subtle:#f6f9fc;
 --surface-blueprint:#f2f7fb;
 --border-hairline:#dde6f0;
 --border-strong:#bfd0e2;
 --brand-primary:#1d56c9;
 --brand-primary-hover:#1746a6;
 --brand-soft:#eef4ff;
 --shadow-card:0 1px 2px rgba(15,28,46,.04),0 8px 24px -6px rgba(15,28,46,.05);
 --shadow-float:0 12px 32px -8px rgba(15,28,46,.12),0 2px 6px rgba(15,28,46,.05);
}

.portal-layout .card{
 border:1px solid var(--border-hairline);
 border-radius:14px;
 box-shadow:var(--shadow-card);
 background:var(--surface-elevated);
}

/* Interactive 4-stage project progress bar */
.project-stage .stage-step[role="button"]{
 cursor:pointer;
 transition:transform 150ms ease,border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease;
 border-radius:10px;
}
.project-stage .stage-step[role="button"]:hover{
 border-color:#94b3e8;
 background:#f5f9ff;
 transform:translateY(-1px);
 box-shadow:0 4px 12px rgba(29,86,201,.08);
}
.project-stage .stage-step[role="button"]:focus-visible{
 outline:2px solid var(--brand-primary);
 outline-offset:2px;
}

/* Clickable Wizard Step Navigation & Progress Bar */
.wizard .stepnav{
 display:flex;
 flex-direction:column;
 gap:6px;
}
.wizard .stepnav .step[role="button"]{
 cursor:pointer;
 border-radius:10px;
 padding:10px 12px;
 border:1px solid transparent;
 transition:background-color 150ms ease,border-color 150ms ease,transform 150ms ease;
 user-select:none;
}
.wizard .stepnav .step[role="button"]:hover{
 background:#eef4fb;
 border-color:#d0dff0;
}
.wizard .stepnav .step.active[role="button"]{
 background:#eaf2ff;
 border-color:#b8d0f7;
 box-shadow:0 1px 3px rgba(29,86,201,.08);
}
.wizard .stepnav .step.complete[role="button"] b{
 background:#16794b;
 color:#fff;
}
.wizard .stepnav .step[role="button"]:focus-visible{
 outline:2px solid var(--brand-primary);
 outline-offset:2px;
}
.wizard .progress span[role="button"]{
 cursor:pointer;
 transition:transform 140ms ease,background-color 140ms ease;
}
.wizard .progress span[role="button"]:hover{
 transform:scaleY(1.45);
}

/* Touch-friendly - / + Steppers for Fitting Counts in Step 3 */
.fitting-stepper{
 display:grid;
 grid-template-columns:42px minmax(0,1fr) 42px;
 align-items:center;
 border:1px solid var(--border-strong);
 border-radius:10px;
 background:#fff;
 overflow:hidden;
 margin-top:4px;
 transition:border-color 150ms ease,box-shadow 150ms ease;
}
.fitting-stepper:focus-within{
 border-color:var(--brand-primary);
 box-shadow:0 0 0 3px rgba(29,86,201,.14);
}
.fitting-stepper input[type="number"]{
 border:0!important;
 border-radius:0!important;
 text-align:center;
 font-weight:650;
 font-size:16px;
 font-variant-numeric:tabular-nums;
 min-height:42px;
 padding:0 6px!important;
 background:transparent!important;
 box-shadow:none!important;
 -moz-appearance:textfield;
}
.fitting-stepper input[type="number"]::-webkit-outer-spin-button,
.fitting-stepper input[type="number"]::-webkit-inner-spin-button{
 -webkit-appearance:none;
 margin:0;
}
.fitting-stepper .stepper-btn{
 min-height:42px;
 height:100%;
 padding:0;
 border:0;
 border-radius:0;
 background:#f3f7fb;
 color:#1b3656;
 font-size:19px;
 font-weight:600;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 cursor:pointer;
 user-select:none;
}
.fitting-stepper .stepper-btn:first-child{
 border-right:1px solid var(--border-hairline);
}
.fitting-stepper .stepper-btn:last-child{
 border-left:1px solid var(--border-hairline);
}
.fitting-stepper .stepper-btn:hover{
 background:#e3edf8;
 color:var(--brand-primary);
}
.fitting-stepper .stepper-btn:active{
 background:#d4e4f7;
}

/* Optional Roller Shaft Accordion in Wizard Step 2 */
.wizard-optional-shaft{
 margin-top:14px;
 border:1px dashed var(--border-strong);
 border-radius:10px;
 padding:10px 14px;
 background:#f9fbfd;
}
.wizard-optional-shaft>summary{
 cursor:pointer;
 font-weight:600;
 font-size:13.5px;
 color:#244263;
 list-style-position:inside;
}
.wizard-optional-shaft>summary small{
 font-weight:400;
 color:#5b7088;
 margin-left:4px;
}

/* Sticky Calculation Summary Card & Responsive Bottom Bar */
#wizard-summary{
 display:flex;
 flex-direction:column;
 gap:14px;
}
#wizard-summary>.card:first-child{
 border-color:#c6d8f2;
 background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%);
 box-shadow:var(--shadow-float);
}
.wizard-live-bar{
 display:none;
}
@media(max-width:1150px){
 .wizard-live-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position:sticky;
  bottom:12px;
  z-index:25;
  margin-top:16px;
  padding:12px 16px;
  background:rgba(16,33,54,.95);
  color:#fff;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(10,22,38,.28);
  backdrop-filter:blur(8px);
 }
 .wizard-live-bar-info{
  display:flex;
  flex-direction:column;
  gap:2px;
 }
 .wizard-live-bar-info .tiny{
  color:#b6cae2;
  font-size:11.5px;
  margin:0;
 }
 .wizard-live-bar-info strong{
  font-size:19px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  color:#fff;
 }
 .wizard-live-bar button{
  background:#fff;
  color:#132d4c;
  border:0;
  font-weight:650;
  white-space:nowrap;
 }
}
@media(max-width:760px){
 .wizard-live-bar{
  bottom:68px;
 }
}

/* Pool Configurator Modal: Unified 2D Blueprint & Quick Position Pills */
.quick-position-pills{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin:10px 0 12px;
}
.quick-pos-pill{
 padding:7px 12px;
 font-size:13px;
 font-weight:600;
 border-radius:999px;
 border:1px solid var(--border-strong);
 background:#fff;
 color:#213d5c;
 cursor:pointer;
}
.quick-pos-pill[aria-pressed="true"]{
 background:var(--brand-primary);
 border-color:var(--brand-primary);
 color:#fff;
 box-shadow:0 2px 8px rgba(29,86,201,.24);
}
.pool-preview-tap-stage{
 position:relative;
 display:block;
 width:100%;
}
.pool-preview-tap-stage>svg.configured-pool{
 display:block;
 width:100%;
 height:auto;
}
/* On desktop (>= 851px), the right sticky preview is visible right beside the form and now hosts the interactive tap targets, so hide the duplicate SVG canvas inside the left form column */
@media(min-width:851px){
 #pool-setup-form [data-touch-editor] .pool-tap-canvas{
  display:none;
 }
}

/* Compact, Crisp Pool Configurator Step 2 (Stair Cards, Step Cockpit & Addons) */
#pool-setup-form .pool-picture-choices{
 gap:8px;
 margin:8px 0 14px;
}
#pool-setup-form .pool-picture-choices button{
 position:relative;
 background:#ffffff;
 border:1px solid #d5e0ec;
 border-radius:10px;
 padding:8px 10px;
 gap:5px;
 font-size:12.5px;
 font-weight:600;
 color:#1e3653;
 transition:border-color 140ms ease,background-color 140ms ease,box-shadow 140ms ease;
}
#pool-setup-form .pool-picture-choices button:hover{
 background:#f7faff;
 border-color:#8eb0e2;
 filter:none;
}
#pool-setup-form .pool-picture-choices button svg{
 width:78px;
 height:46px;
}
#pool-setup-form .pool-picture-choices button[aria-pressed="true"]{
 background:#edf4ff;
 border:2px solid #245bd6;
 color:#143e8c;
 box-shadow:0 3px 10px rgba(36,91,214,.12);
}
#pool-setup-form .pool-picture-choices button[aria-pressed="true"]::after{
 content:"✓";
 position:absolute;
 top:6px;
 right:6px;
 width:18px;
 height:18px;
 border-radius:50%;
 background:#245bd6;
 color:#fff;
 font-size:11px;
 font-weight:700;
 display:grid;
 place-items:center;
 line-height:1;
}
#simple-stair-count{
 padding:14px 16px!important;
 margin:10px 0!important;
 border-radius:12px;
 border:1px solid #d6e2ef;
 background:#f9fbfe;
}
#simple-stair-count h3{
 margin:0 0 2px;
 font-size:14.5px;
}
#simple-stair-count>.tiny{
 margin:0 0 10px;
}
#simple-stair-mount{
 margin-bottom:12px!important;
 padding-bottom:10px;
 border-bottom:1px solid #e3ebf4;
}
.stair-config-grid{
 display:grid;
 grid-template-columns:minmax(0,1.4fr) minmax(150px,.9fr);
 gap:14px;
 align-items:end;
}
.stair-step-pills{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:6px;
}
.stair-step-pills button[data-step-count]{
 min-height:38px!important;
 height:38px;
 padding:0 12px!important;
 font-size:13px!important;
 background:#fff;
}
.stair-steps-inline{
 display:inline-flex!important;
 align-items:center;
 gap:6px;
 margin:0 0 0 4px!important;
 font-size:12px!important;
 color:#526781;
}
.stair-steps-inline input{
 width:62px!important;
 min-height:38px!important;
 height:38px;
 padding:4px 8px!important;
 margin:0!important;
 text-align:center;
 font-weight:650;
 font-variant-numeric:tabular-nums;
}
.stair-config-col label.field{
 margin-bottom:0!important;
}
.stair-config-col label.field input{
 min-height:38px!important;
 height:38px;
 margin-top:5px!important;
}
.entry-addons-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;
 margin-top:10px;
}
.entry-addons-grid .option{
 margin:0!important;
 min-height:44px!important;
 padding:10px 12px!important;
}
#pool-setup-form [data-touch-editor="entry"]{
 margin:8px 0;
 padding:10px 14px;
 background:#fff;
 border:1px solid #dce5ef;
 border-radius:10px;
}
#pool-setup-form [data-touch-editor="entry"]:empty{
 display:none;
}
#pool-setup-form [data-touch-editor="entry"] .touch-element-tabs{
 margin:0 0 8px!important;
}
#pool-setup-form [data-touch-editor="entry"] .touch-instruction{
 margin:4px 0 6px!important;
 font-size:13px!important;
}
#pool-setup-form [data-touch-editor="entry"]>.tiny{
 margin:4px 0 0!important;
}
@media(max-width:680px){
 .stair-config-grid,.entry-addons-grid{
  grid-template-columns:1fr;
 }
}

/* Live Plausibility Cards & Ergonomics Pill in Pool Configurator */
.pool-plausibility-live{
 display:grid;
 gap:10px;
 margin:10px 0 12px;
}
.plausibility-card{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:14px;
 padding:12px 14px;
 border-radius:10px;
 border:1px solid #f2cb82;
 background:#fffaf0;
 color:#4d3508;
 font-size:13.5px;
 line-height:1.45;
}
.plausibility-card.tone-blue{
 border-color:#bcd5f6;
 background:#f2f7ff;
 color:#183a66;
}
.plausibility-card strong{
 display:block;
 font-weight:650;
 margin-bottom:2px;
}
.plausibility-card p{
 margin:0;
 font-size:13px;
 opacity:.92;
}
.plausibility-card button{
 flex-shrink:0;
 white-space:nowrap;
 background:#fff;
 border:1px solid currentColor;
 font-weight:600;
}
.step-ergonomics-badge{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:8px;
 margin:10px 0 2px;
}
.ergo-quick-btn{
 min-height:28px!important;
 height:28px;
 padding:0 10px!important;
 font-size:12px!important;
 font-weight:600!important;
 border-radius:999px!important;
 background:#fff!important;
 border:1px solid #d99b26!important;
 color:#7c4a08!important;
}
.ergo-quick-btn:hover{
 background:#fff3d6!important;
}
.ergo-pill{
 display:inline-flex;
 align-items:center;
 gap:6px;
 padding:4px 10px;
 border-radius:999px;
 font-size:12px;
 font-weight:600;
 font-variant-numeric:tabular-nums;
}
.ergo-pill.is-good{
 background:#eafaf1;
 color:#145a38;
 border:1px solid #b7e6cb;
}
.ergo-pill.is-warn{
 background:#fff6e5;
 color:#7c4a08;
 border:1px solid #f5d491;
}
#simple-bench-measures,#simple-plage-measures,#simple-shaft-measures{
 margin-top:14px;
 padding:14px 16px;
 border-radius:12px;
 border:1px solid var(--border-hairline);
 background:var(--surface-subtle);
}
#simple-bench-measures h3,#simple-plage-measures h3,#simple-shaft-measures h3{
 margin-top:0;
 font-size:15px;
}
.addon-quick-toolbar{
 display:grid;
 gap:10px;
 margin:10px 0 12px;
 padding:10px 12px;
 border-radius:10px;
 background:#fff;
 border:1px solid #dce6f1;
}
.addon-preset-group,.addon-pos-group{
 display:grid;
 gap:4px;
}
.addon-preset-group .quick-position-pills,.addon-pos-group .quick-position-pills{
 margin:2px 0 0;
}
.addon-live-badge{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin-top:10px;
}
.fittings-planner-card{
 margin:14px 0!important;
 padding:16px!important;
 border-radius:12px;
 border:1px solid #d5e1ee;
 background:#f8fbff;
}
.fittings-planner-card h3{
 margin:0 0 2px;
 font-size:15px;
}
.fittings-planner-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
 gap:10px;
 margin-top:12px;
}
.fitting-planner-item{
 display:flex;
 flex-direction:column;
 gap:6px;
 padding:10px 12px;
 border-radius:10px;
 background:#fff;
 border:1px solid #dce6f1;
 transition:border-color 140ms ease,box-shadow 140ms ease;
}
.fitting-planner-item.is-active{
 border-color:#87ade4;
 background:#f4f8ff;
 box-shadow:0 2px 6px rgba(36,91,214,.06);
}
.fitting-planner-head{
 display:flex;
 align-items:center;
 gap:8px;
 font-size:13.5px;
}
.fitting-dot{
 width:11px;
 height:11px;
 border-radius:50%;
 flex-shrink:0;
 border:1px solid rgba(24,63,91,.35);
}
.fitting-planner-item .quick-position-pills{
 margin:2px 0;
}
.fitting-wall-select{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:8px;
 margin-top:2px;
 padding-top:6px;
 border-top:1px solid #e3ecf6;
}
.fitting-wall-select select{
 min-height:28px!important;
 height:28px;
 padding:2px 8px!important;
 font-size:12px!important;
 width:auto!important;
}
.surface-guidance-row{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 padding:6px 0;
 border-bottom:1px solid #e4ecf5;
}
.surface-guidance-area{
 font-weight:700;
 font-size:13.5px;
 color:#183f5b;
 white-space:nowrap;
}




/* --- Direct 2D CAD Interaction & Hover Feedback --- */
.plan-interactive-poly{
 cursor:pointer;
 transition:filter 140ms ease,stroke 140ms ease,stroke-width 140ms ease;
}
.plan-interactive-poly:hover{
 filter:brightness(0.92);
 stroke:#154a73!important;
 stroke-width:1.5px!important;
}
.plan-label-group{
 cursor:pointer;
 transition:transform 140ms ease;
}
.plan-label-group:hover circle{
 fill:#edf7fc;
 stroke:#154a73;
 stroke-width:1.8px;
}
.plan-depth-zone{
 cursor:pointer;
 transition:transform 140ms ease;
}
.plan-depth-zone:hover rect{
 stroke:#1d6fa5;
 fill:#ffffff;
 filter:drop-shadow(0 2px 4px rgba(24,63,91,.15));
}
.plan-overflow-rim{
 cursor:pointer;
}
.plan-overflow-rim:hover line,
.plan-overflow-rim:hover rect,
.plan-overflow-rim:hover path{
 stroke:#0f476b!important;
 stroke-width:3.5px!important;
}
.pool-plan-legend li[data-plan-target]{
 cursor:pointer;
 padding:4px 6px;
 border-radius:6px;
 transition:background 140ms ease,color 140ms ease;
}
.pool-plan-legend li[data-plan-target]:hover{
 background:#e9f2fa;
 color:#0e3654;
}
.plan-legend-dim{
 display:inline-block;
 margin-left:6px;
 padding:1px 6px;
 border-radius:4px;
 font-size:11px;
 font-weight:600;
 background:#e2edf7;
 color:#154467;
}

/* --- Floor Zone & Overflow Cards (Step 0 / Pool Setup) --- */
.floor-zone-card,
.overflow-card{
 margin-top:14px;
 padding:14px 16px;
 border-radius:12px;
 background:#ffffff;
 border:1px solid #dce6f1;
 box-shadow:0 1px 3px rgba(18,52,77,.04);
}
.floor-zone-card h3,
.overflow-card h3{
 margin:0 0 2px;
 font-size:15px;
 font-weight:700;
 color:#183f5b;
}
.floor-slope-fields{
 padding:10px 12px;
 border-radius:8px;
 background:#f8fafc;
 border:1px dashed #cad9e8;
}
.stair-rotate-pill{
 background:#ebf3fa!important;
 color:#183f5b!important;
 border-color:#bed5ea!important;
 font-weight:600!important;
}
.stair-rotate-pill:hover{
 background:#d8e8f5!important;
 border-color:#9dc1e0!important;
}

/* --- Edge Profile Selection (Wizard Step 3) --- */
.edge-profile-wizard-card{
 display:flex;
 flex-direction:column;
 gap:10px;
 padding:14px 16px;
 border-radius:12px;
 background:#ffffff;
 border:1px solid #dbe6f1;
 box-shadow:0 1px 4px rgba(24,63,91,.04);
 margin-top:10px;
}
.edge-profile-wizard-card > .row{
 align-items:center;
}
.edge-profile-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
 gap:10px;
 margin-top:4px;
}
.edge-profile-choice{
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 justify-content:space-between;
 gap:8px;
 padding:12px 14px;
 border-radius:10px;
 border:1.5px solid #d8e4f0;
 background:#fbfdff;
 text-align:left;
 cursor:pointer;
 transition:border-color 140ms ease,background 140ms ease,box-shadow 140ms ease,transform 120ms ease;
 min-height:104px;
}
.edge-profile-choice:hover{
 border-color:#87b0e4;
 background:#f3f8fe;
 transform:translateY(-1px);
}
.edge-profile-choice.is-selected{
 border-color:#2a75d3;
 background:#f0f6ff;
 box-shadow:0 2px 8px rgba(42,117,211,.14);
}
.edge-profile-title{
 font-size:13.5px;
 font-weight:700;
 color:#183f5b;
 line-height:1.3;
}
.edge-profile-sub{
 font-size:11.5px;
 color:#5c778f;
 line-height:1.35;
 flex-grow:1;
}
.edge-profile-badge{
 align-self:flex-start;
 font-size:11px;
 font-weight:600;
 padding:3px 8px;
 border-radius:12px;
 background:#e9f0f7;
 color:#2c5270;
}
.edge-profile-badge.is-good{
 background:#e6f4ea;
 color:#137333;
 font-weight:700;
}


/* ========================================================== */
/* EMIL KOWALSKI PRO UI/UX WORKSPACE EXPERIENCE                */
/* ========================================================== */

.portal-layout .project-workspace-view {
  max-width: 1220px;
  margin-inline: auto;
  padding-bottom: 60px;
}

.portal-layout .project-identity {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  margin-bottom: 18px;
}

.portal-layout .project-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
  color: #64748b;
  text-decoration: none;
  padding: 4px 10px;
  margin-left: -10px;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
.portal-layout .project-back:hover {
  color: #0f172a;
  background: #f1f5f9;
  transform: translateX(-2px);
}

.portal-layout .project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.portal-layout .project-title-row h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 8px;
}

.portal-layout .project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #64748b;
}

.portal-layout .project-reference {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.portal-layout .project-identity .project-primary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-layout .project-identity .project-primary-actions > .project-actions-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
.portal-layout .project-identity .project-primary-actions > .project-actions-trigger:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.06);
}
.portal-layout .project-identity .project-primary-actions > .project-actions-trigger:active {
  transform: translateY(0) scale(0.985);
}

.portal-layout .project-identity .project-progress {
  margin: 18px 0 0 !important;
  padding: 14px 16px !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(15, 23, 42, 0.03);
}

.portal-layout .project-progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}
.portal-layout .project-progress-heading span {
  display: inline-block !important;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}
.portal-layout .project-progress-heading strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 9999px;
  color: #1e40af;
  font-size: 11.5px;
  font-weight: 650;
}

.portal-layout .project-progress ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.portal-layout .project-progress li {
  position: relative;
  min-width: 0;
}
.portal-layout .project-progress li:not(:last-child):after {
  content: "";
  position: absolute;
  left: 36px;
  right: -4px;
  top: 15px;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
  transition: background 200ms ease;
}
.portal-layout .project-progress li.is-done:after {
  background: #10b981;
}

.portal-layout .project-progress a {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  padding: 0 4px;
  min-height: 52px;
}

.portal-layout .project-progress .progress-dot {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #94a3b8;
}

.portal-layout .project-progress .is-current .progress-dot {
  background: #2563eb;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(37, 99, 235, 0.35);
  animation: pulse-aura 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.portal-layout .project-progress .is-done .progress-dot {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}
.portal-layout .project-progress .is-done a:hover .progress-dot {
  transform: scale(1.08);
  border-color: #34d399;
}

.portal-layout .project-progress .progress-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  background: transparent !important;
  padding: 0;
  line-height: 1.3;
}
.portal-layout .project-progress .is-current .progress-label {
  color: #1d4ed8;
  font-weight: 700;
}
.portal-layout .project-progress .is-done .progress-label {
  color: #0f172a;
}
.portal-layout .project-progress .is-upcoming .progress-label {
  color: #94a3b8;
}

@keyframes pulse-aura {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.08), 0 2px 10px rgba(37, 99, 235, 0.25); }
}

.portal-layout .project-navigation {
  margin: 18px 0 20px;
}
.portal-layout .project-navigation .project-tabs {
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 4px !important;
  padding: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}
.portal-layout .project-navigation .project-tabs a {
  border: 0 !important;
  border-radius: 9px !important;
  min-height: 38px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  color: #64748b !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.portal-layout .project-navigation .project-tabs a:hover {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.65) !important;
}
.portal-layout .project-navigation .project-tabs a.active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 650 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
.portal-layout .project-navigation .project-tabs a span {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  background: #e2e8f0;
  color: #475569;
}
.portal-layout .project-navigation .project-tabs a.active span {
  background: #eff6ff;
  color: #2563eb;
}

.portal-layout .workflow-guide {
  position: relative;
  padding: 24px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 55%, #e6f1fe 100%) !important;
  border: 1px solid rgba(193, 218, 248, 0.9) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 4px 22px -2px rgba(37, 99, 235, 0.09) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
  overflow: hidden;
}

.portal-layout .workflow-guide::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.portal-layout .workflow-guide .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-layout .beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
  display: inline-block;
  animation: beacon-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beacon-ping {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.portal-layout .workflow-guide h2 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 10px 0 6px;
}

.portal-layout .workflow-guide p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
  max-width: 680px;
}

.portal-layout .workflow-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.portal-layout .workflow-actions button.primary {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: 1px solid #1d4ed8 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 11px 22px !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(37, 99, 235, 0.28) !important;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}
.portal-layout .workflow-actions button.primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}
.portal-layout .workflow-actions button.primary:active {
  transform: translateY(0) scale(0.985);
}

.portal-layout .detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
  gap: 20px;
  align-items: start;
}

.portal-layout .card.pad,
.portal-layout .site-contact-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 14px -2px rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.portal-layout .card.pad:hover,
.portal-layout .site-contact-card:hover {
  border-color: #cbd5e1;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(15, 23, 42, 0.06), 0 8px 20px -3px rgba(15, 23, 42, 0.04);
}

.portal-layout .card h2,
.portal-layout .site-contact-card h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin: 0;
}

.portal-layout .card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-layout .card-icon-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.portal-layout .media-icon-badge {
  background: #eff6ff;
  color: #2563eb;
  border-color: #dbeafe;
}
.portal-layout .chat-icon-badge {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #dcfce7;
}

.portal-layout .card button.small,
.portal-layout .site-contact-card button.small {
  background: #f8fafc;
  border: 1px solid #dce4ed;
  color: #334155;
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  cursor: pointer;
}
.portal-layout .card button.small:hover,
.portal-layout .site-contact-card button.small:hover {
  background: #edf3fa;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
}
.portal-layout .card button.small:active,
.portal-layout .site-contact-card button.small:active {
  transform: translateY(0) scale(0.985);
}

.portal-layout .site-contact-card {
  margin-bottom: 20px;
}
.portal-layout .empty-contact-placeholder {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fbfcfe;
  border: 1.5px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.portal-layout .empty-contact-placeholder p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
}
.portal-layout .empty-contact-placeholder small {
  font-size: 12px;
  color: #64748b;
}

.portal-layout .site-contact-info {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.portal-layout .site-contact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.portal-layout .contact-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.portal-layout .contact-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-layout .call-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 650;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  text-decoration: none;
  transition: all 140ms ease;
}
.portal-layout .call-pill:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}

.portal-layout .keyvalue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.portal-layout .keyvalue small {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}
.portal-layout .keyvalue b {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
}

.portal-layout .pool-state-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f6;
}
.portal-layout .pool-empty-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}
.portal-layout .pool-empty-hint strong {
  color: #2563eb;
}

.portal-layout .timeline {
  margin-top: 14px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid #e2e8f0;
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.portal-layout .timeline > div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  font-weight: 550;
  color: #1e293b;
}
.portal-layout .timeline > div::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.portal-layout .timeline small {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: #64748b;
}
.timeline-meta {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 4px !important;
}
.timeline-time {
  font-size: 11.5px !important;
  font-variant-numeric: tabular-nums !important;
  color: #64748b !important;
  font-weight: 450 !important;
  display: inline-block !important;
  margin-top: 0 !important;
}
.timeline-actor-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}
.timeline-actor-pill.admin {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #dbeafe !important;
}
.timeline-actor-pill.admin .actor-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #2563eb !important;
  display: inline-block !important;
}
.timeline-actor-pill.partner {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}
.timeline-actor-pill.partner .actor-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  display: inline-block !important;
}

.portal-layout .media-summary-card h2,
.portal-layout .chat-summary-card h2 {
  margin: 12px 0 4px;
}
.portal-layout .card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px;
}
.portal-layout aside button.w-full,
.portal-layout aside a.w-full {
  width: 100%;
  justify-content: center;
  min-height: 40px;
}

@media (max-width: 820px) {
  .portal-layout .detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .portal-layout .workflow-guide {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .portal-layout .workflow-actions {
    width: 100%;
  }
  .portal-layout .workflow-actions button {
    width: 100%;
  }
}


/* ========================================================== */
/* PRO UI/UX POLISH: ALL 6 DESIGN GAP AREAS                   */
/* ========================================================== */

/* --- AREA 1: 2D-POOLPLANER & MODAL-EDITOR (poolSetupModal) --- */
.pool-simple-nav {
  display: flex !important;
  gap: 6px !important;
  margin: 0 0 20px !important;
  padding: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}
.pool-simple-nav button {
  flex: 1 !important;
  min-height: 40px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 550 !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
.pool-simple-nav button:hover:not([aria-current="step"]) {
  background: rgba(255, 255, 255, 0.7) !important;
  color: #0f172a !important;
}
.pool-simple-nav button[aria-current="step"] {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
.pool-simple-nav button.is-done {
  color: #059669 !important;
}
.pool-simple-nav button.is-done::after {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}

/* Tactile Stair & Shape Selection Cards */
#pool-setup-form .pool-picture-choices {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 10px 0 18px !important;
}
#pool-setup-form .pool-picture-choices button {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 10px !important;
  gap: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  cursor: pointer !important;
  transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 140ms ease,
              background-color 140ms ease,
              box-shadow 140ms ease !important;
}
#pool-setup-form .pool-picture-choices button:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  transform: translateY(-2px) !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 16px -2px rgba(15, 23, 42, 0.08) !important;
}
#pool-setup-form .pool-picture-choices button:active {
  transform: translateY(0) scale(0.98) !important;
}
#pool-setup-form .pool-picture-choices button svg {
  width: 82px !important;
  height: 48px !important;
}
#pool-setup-form .pool-picture-choices button[aria-pressed="true"] {
  background: #f0f7ff !important;
  border-color: #2563eb !important;
  color: #1e40af !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px #2563eb, 0 4px 14px rgba(37, 99, 235, 0.14) !important;
}
#pool-setup-form .pool-picture-choices button[aria-pressed="true"]::after {
  content: "✓" !important;
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3) !important;
}

/* Segmented Step Count Pills */
.stair-step-pills {
  display: inline-flex !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 3px !important;
  gap: 3px !important;
}
.stair-step-pills button[data-step-count],
#simple-stair-count button[data-step-count] {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.stair-step-pills button[data-step-count]:hover,
#simple-stair-count button[data-step-count]:hover {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.7) !important;
}
.stair-step-pills button[data-step-count][aria-pressed="true"],
#simple-stair-count button[data-step-count][aria-pressed="true"] {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.28) !important;
}

/* CAD Technical Dot-Grid Blueprint Canvas */
.pool-plan-live,
#pool-setup-preview,
.pool-tap-canvas,
.pool-plan {
  background-color: #f8fafc !important;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px) !important;
  background-size: 16px 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.02) !important;
  position: relative !important;
  overflow: hidden !important;
}


/* --- AREA 2: DAS DASHBOARD (#dashboard) --- */
.hero {
  background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.28) 0%, rgba(15, 23, 42, 0.98) 75%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 28px 32px !important;
}
.hero .eyebrow {
  color: #93c5fd !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  font-weight: 700 !important;
}
.hero h2 {
  color: #ffffff !important;
  font-size: 26px !important;
  font-weight: 750 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.2 !important;
  margin: 10px 0 8px !important;
}
.hero p {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 0 20px !important;
}
.hero button {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #ffffff !important;
  font-weight: 650 !important;
  border-radius: 9px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hero button:hover {
  background: #f8fafc !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important;
}
.hero button:active {
  transform: translateY(0) scale(0.985) !important;
}
.hero button .icon {
  transition: transform 140ms ease !important;
}
.hero button:hover .icon {
  transform: translateX(4px) !important;
}

/* Dashboard Summary Strip (quiet editorial hairline grid, no decorative color bars) */
.metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 18px 0 !important;
  background: #ffffff !important;
  border: 1px solid #e4eaf2 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.metrics .metric {
  position: relative !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 20px 24px !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  overflow: visible !important;
  transform: none !important;
  transition: none !important;
}
.metrics .metric + .metric {
  border-left: 1px solid #edf1f6 !important;
}
.metrics .metric:hover {
  transform: none !important;
  box-shadow: none !important;
}
.metrics .metric::before,
.metrics .metric:nth-child(1)::before,
.metrics .metric:nth-child(2)::before,
.metrics .metric:nth-child(3)::before {
  content: none !important;
  display: none !important;
}
.metrics .metric .label {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
}
.metrics .metric strong {
  font-size: 28px !important;
  font-weight: 650 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  color: #0f172a !important;
  font-variant-numeric: tabular-nums !important;
  margin-top: 2px !important;
}
.metrics .metric span:last-child {
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}
@media (max-width: 680px) {
  .metrics {
    grid-template-columns: 1fr !important;
  }
  .metrics .metric + .metric {
    border-left: 0 !important;
    border-top: 1px solid #edf1f6 !important;
  }
}

/* Asymmetric 2:1 Operational Focus Split (replaces generic 3-box KPI strip) */
.dashboard-focus-split {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(240px, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.focus-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-width: 0;
}
.focus-primary {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}
.focus-primary.is-clear {
  background: #ffffff;
}
.focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.focus-kicker {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.focus-count {
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.focus-count.is-ok {
  color: #15803d;
  background: #f0fdf4;
}
.focus-body h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.focus-meta {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}
.focus-meta strong {
  color: #1e293b;
  font-weight: 600;
}
.focus-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.focus-more {
  font-size: 12.5px;
  font-weight: 550;
  color: #475569;
  text-decoration: none;
  transition: color 140ms ease;
}
.focus-more:hover {
  color: #0f172a;
  text-decoration: underline;
}
.focus-ops {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.focus-ops-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: background 140ms ease;
}
.focus-ops-row + .focus-ops-row {
  border-top: 1px solid #edf1f6;
}
.focus-ops-row:hover {
  background: #f8fafc;
}
.focus-ops-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.focus-ops-row small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}
.focus-ops-val {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
}
@media (max-width: 780px) {
  .dashboard-focus-split {
    grid-template-columns: 1fr;
  }
}

/* Borderless Table on Dashboard */
.table-wrap {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}
.table-wrap table {
  width: 100% !important;
  border-collapse: collapse !important;
}
.table-wrap th {
  background: #f8fafc !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #64748b !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.table-wrap td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  transition: background 120ms ease !important;
}
.table-wrap tr:last-child td {
  border-bottom: none !important;
}
.table-wrap tr.clickable {
  cursor: pointer !important;
}
.table-wrap tr.clickable:hover td {
  background: #f8fafc !important;
}
.table-wrap tr.clickable td:last-child svg {
  transition: transform 140ms ease !important;
  color: #94a3b8 !important;
}
.table-wrap tr.clickable:hover td:last-child svg {
  transform: translateX(4px) !important;
  color: #2563eb !important;
}
.table-wrap td.num {
  font-variant-numeric: tabular-nums !important;
}


/* --- AREA 3: PROJEKTVERWALTUNG (#projects) --- */
.project-controls {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}
.project-search {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 560px !important;
  min-height: 44px !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 0 14px 0 40px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: all 140ms ease !important;
}
.project-search:focus-within {
  background: #ffffff !important;
  border-color: #2563eb !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}
.project-search .icon {
  position: absolute !important;
  left: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 17px !important;
  height: 17px !important;
  color: #64748b !important;
  pointer-events: none !important;
}
.project-search input {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 14px !important;
  color: #0f172a !important;
  -webkit-appearance: none !important;
}
.project-search input:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.project-filter-row select {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  color: #1e293b !important;
  padding: 8px 12px !important;
  min-height: 42px !important;
  transition: all 140ms ease !important;
}
.project-filter-row select:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

/* Modern Bento Project Cards */
.project-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 16px !important;
  padding: 18px 0 !important;
}
.project-list .project-folder {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 22px 24px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 140ms ease,
              border-color 140ms ease !important;
  position: relative !important;
}
.project-list .project-folder:hover {
  transform: translateY(-2px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 24px -4px rgba(15, 23, 42, 0.08) !important;
}
.project-list .folder-art {
  display: none !important;
}
.project-folder-info h3 {
  font-size: 18px !important;
  font-weight: 750 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin: 6px 0 4px !important;
}
.project-folder-info .eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  display: inline-block !important;
  letter-spacing: 0.02em !important;
}
.project-folder-info p {
  font-size: 13.5px !important;
  color: #475569 !important;
  margin: 0 0 6px !important;
}
.project-folder-info small {
  font-size: 12px !important;
  color: #64748b !important;
}
.project-record-status {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
}
.project-record-status strong {
  font-size: 15.5px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  font-variant-numeric: tabular-nums !important;
}
.project-record-status a.link {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2563eb !important;
  transition: transform 140ms ease !important;
}
.project-record-status a.link:hover {
  transform: translateX(3px) !important;
}
.project-quick-actions {
  display: flex !important;
  gap: 8px !important;
  padding-top: 12px !important;
  border-top: 1px solid #f1f5f9 !important;
}
.project-quick-actions a,
.project-quick-actions button {
  min-height: 36px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
}
.project-quick-actions a:hover,
.project-quick-actions button:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}


/* --- AREA 4: ANGEBOTS-WIZARD (#wizard) --- */
.wizard .stepnav {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  background: transparent !important;
  padding: 0 !important;
}
.wizard .step {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  color: #64748b !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.wizard .step b {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 140ms ease !important;
}
.wizard .step:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}
.wizard .step.active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 650 !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}
.wizard .step.active b {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}
.wizard .step.complete {
  color: #1e293b !important;
}
.wizard .step.complete b {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #a7f3d0 !important;
}
.wizard .progress {
  display: flex !important;
  gap: 6px !important;
  height: 4px !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
  background: transparent !important;
  margin: 12px 0 24px !important;
}
.wizard .progress span {
  flex: 1 !important;
  height: 100% !important;
  background: #e2e8f0 !important;
  border-radius: 9999px !important;
  transition: background 200ms ease !important;
}
.wizard .progress span.done {
  background: #2563eb !important;
}

/* Executive Cost Breakdown Sidebar */
#wizard-summary .card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 20px 22px !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
#wizard-summary .eyebrow {
  display: inline-block !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  margin-bottom: 4px !important;
}
#wizard-summary h3 {
  font-size: 20px !important;
  font-weight: 750 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin: 6px 0 2px !important;
}
#wizard-summary .summaryline {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13px !important;
  color: #475569 !important;
}
#wizard-summary .summaryline b {
  color: #0f172a !important;
  font-weight: 600 !important;
}
.wizard .priceTable table,
.priceTable table {
  width: 100% !important;
  border-collapse: collapse !important;
}
.priceTable tr:nth-child(even) td {
  background: #fcfdfe !important;
}


/* --- AREA 5: EINSATZAUFTRAG & CHECKLISTEN (#job & #dates) --- */
.check {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #ffffff !important;
  margin-bottom: 8px !important;
  cursor: pointer !important;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  line-height: 1.45 !important;
}
.check:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}
.check:has(input:checked) {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
  color: #14532d !important;
}
.check input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px !important;
  accent-color: #10b981 !important;
  cursor: pointer !important;
  border-radius: 4px !important;
}

/* Tear-Off Calendar Badges */
.dateblock {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 52px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.dateblock span {
  display: block !important;
  width: 100% !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 9.5px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  text-align: center !important;
  padding: 2px 0 !important;
  line-height: 1.2 !important;
}
.dateblock b {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  font-variant-numeric: tabular-nums !important;
  padding: 3px 0 4px !important;
  line-height: 1.1 !important;
}


/* --- AREA 6: GLOBALE MICRO-INTERACTIONS & ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16) !important;
}
button,
.button,
a.button {
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1),
              background 140ms ease,
              border-color 140ms ease,
              box-shadow 140ms ease !important;
}
button:hover:not(:disabled),
.button:hover:not(:disabled),
a.button:hover {
  transform: translateY(-1px);
}
button:active:not(:disabled),
.button:active:not(:disabled),
a.button:active {
  transform: translateY(0) scale(0.985) !important;
}
.metric strong,
.priceTable td.num,
.table-wrap td.num,
.project-record-status strong,
.pool-measures b,
[data-offer-total] {
  font-variant-numeric: tabular-nums !important;
}


/* ========================================================== */
/* SMARTPHONE BUTTON STANDARDIZATION & PROPORTIONAL HARMONY    */
/* ========================================================== */

@media (max-width: 768px) {
  /* 1. Universal Touch-Target & Visual Height Standardization (44px) */
  button:not(.call-pill):not(.ergo-quick-btn):not(.fitting-dot):not([data-step-count]):not(.password-toggle):not(.switch button):not(.plan-legend-dim),
  .button:not(.call-pill),
  a.button:not(.call-pill) {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
  }

  /* 2. Workspace Header & Identity Primary Actions */
  .portal-layout .project-identity .project-primary-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .portal-layout .project-identity .project-primary-actions > button,
  .portal-layout .project-identity .project-primary-actions > .project-actions-trigger,
  .portal-layout .project-identity .project-primary-actions > a {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
  }

  /* 3. Hero & Next-Action Workflow Guide Buttons */
  .portal-layout .workflow-actions,
  .portal-layout .workflow-actions button,
  .portal-layout .workflow-actions button.primary {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    padding: 0 18px !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
  }
  .hero button {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
  }

  /* 4. Card-Header & In-Row Secondary Action Buttons */
  /* Replaces squished 32px buttons with standard 44px buttons */
  .portal-layout .card button.small,
  .portal-layout .site-contact-card button.small,
  .cardhead button,
  .card .row.between button {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
  }

  /* 5. Aside & Card Full-Width Action Buttons */
  /* Unifies "Medien öffnen" and "Chat öffnen" to exact same height */
  .portal-layout aside button.w-full,
  .portal-layout aside a.w-full,
  .portal-layout .media-summary-card button,
  .portal-layout .chat-summary-card button {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
  }

  /* 6. Project List Card Quick Actions */
  /* Unifies "Medien", "Chat", "Löschen" with equal 44px height and balanced width */
  .project-quick-actions {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .project-quick-actions a,
  .project-quick-actions button {
    flex: 1 1 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* 7. Segmented Tabs & Step Buttons */
  .portal-layout .project-navigation .project-tabs {
    display: flex !important;
    gap: 4px !important;
    width: 100% !important;
    overflow-x: auto !important;
    padding: 4px !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .portal-layout .project-navigation .project-tabs a {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }
  .pool-simple-nav button {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }
  .stair-step-pills button[data-step-count],
  #simple-stair-count button[data-step-count] {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    flex: 1 1 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }

  /* 8. Save Actions & Modal Footers */
  .plan-save-actions,
  #pool-setup-form .plan-save-actions,
  .modalfoot {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .plan-save-actions button,
  #pool-setup-form .plan-save-actions button,
  .modalfoot button {
    flex: 1 1 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* 9. Wizard Navigation */
  .wizard-footer {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .wizard-footer button {
    flex: 1 1 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }

  /* 10. List & Table Action Buttons */
  .table-wrap tr.clickable td:last-child button,
  .task button,
  .option button {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  /* On narrow phones, stack card header buttons cleanly so they don't awkwardly wrap */
  .portal-layout .card .row.between.wrap,
  .portal-layout .site-contact-card .row.between.wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .portal-layout .card .row.between.wrap button,
  .portal-layout .site-contact-card .row.between.wrap button {
    width: 100% !important;
  }
  .portal-layout .project-title-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .portal-layout .project-identity .project-primary-actions {
    width: 100% !important;
  }
  .portal-layout .project-identity .project-primary-actions > button,
  .portal-layout .project-identity .project-primary-actions > .project-actions-trigger,
  .portal-layout .project-identity .project-primary-actions > a {
    flex: 1 1 0 !important;
    width: 100% !important;
  }
  .plan-save-actions button,
  #pool-setup-form .plan-save-actions button {
    min-width: calc(50% - 4px) !important;
  }
  .plan-save-actions button.primary,
  #pool-setup-form .plan-save-actions button.primary {
    min-width: 100% !important;
    order: -1 !important;
  }
}

/* ========================================================== */
/* PARTNER WORKSPACE & MODAL WINDOWS (PRO UI / EMIL KOWALSKI) */
/* ========================================================== */

.partner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.partner-toolbar .search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  max-width: 440px;
  min-width: 260px;
}

.partner-toolbar .search input {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 38px 0 38px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: border-color 140ms ease, box-shadow 140ms ease !important;
}

.partner-toolbar .search input:focus {
  border-color: #2563eb !important;
  outline: 2px solid rgba(37, 99, 235, 0.25) !important;
  outline-offset: 1px !important;
}

.partner-toolbar .search .icon {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #64748b;
  pointer-events: none;
}

.partner-toolbar .search-clear {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: #f1f5f9;
  color: #64748b;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.partner-toolbar .search-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.partner-filter-pills {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.partner-pill {
  border: 0 !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 550 !important;
  padding: 6px 14px !important;
  border-radius: 7px !important;
  min-height: 36px !important;
  height: 36px !important;
  cursor: pointer !important;
  transition: all 140ms ease !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.partner-pill:hover {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

.partner-pill.active {
  background: #ffffff !important;
  color: #1e40af !important;
  font-weight: 650 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.partner-count-badge {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 550;
  white-space: nowrap;
}

.partner-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partner-card-modern {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease;
  position: relative;
  overflow: hidden;
}

.partner-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.03);
  border-color: #cbd5e1;
}

.partner-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.partner-card-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.partner-card-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}

.partner-card-name-wrap {
  min-width: 0;
}

.partner-card-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.partner-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms ease;
}

.partner-card-title a:hover {
  color: #2563eb;
}

.partner-card-city {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.partner-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.partner-badge.active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.partner-badge.active .badge-dot {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.partner-badge.invited {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.partner-badge.invited .badge-dot {
  background: #f59e0b;
}

.partner-badge.blocked {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.partner-badge.blocked .badge-dot {
  background: #ef4444;
}

.partner-badge.pending {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.partner-badge.pending .badge-dot {
  background: #94a3b8;
}

.partner-card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 20px;
  padding: 14px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}

.partner-meta-item,
.partner-meta-link,
.partner-meta-muted {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-meta-item svg,
.partner-meta-link svg,
.partner-meta-muted svg {
  width: 15px;
  height: 15px;
  color: #64748b;
  flex-shrink: 0;
}

.partner-meta-link {
  color: #2563eb;
  font-weight: 550;
  transition: color 120ms ease;
}

.partner-meta-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.partner-meta-muted {
  color: #94a3b8;
  font-style: italic;
}

.partner-card-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.partner-kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 550;
  color: #334155;
}

.partner-kpi-chip svg {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
}

.partner-kpi-chip.highlight {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.partner-kpi-chip.highlight svg {
  color: #2563eb;
}

.partner-kpi-chip.attention {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.partner-kpi-chip.attention svg {
  color: #f59e0b;
}

.partner-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.partner-card-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.partner-card-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.partner-lock-btn {
  color: #991b1b !important;
}

.partner-lock-btn:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

/* Partner Modals ("Fenster") */
.partner-modal-sheet {
  display: flex;
  flex-direction: column;
}

.partner-modal-sheet .fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.partner-modal-info {
  margin: 16px 0;
  padding: 12px 14px;
  background: #f0f6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 12.5px;
  color: #1e3a8a;
  line-height: 1.5;
}

.partner-account-pill {
  margin: 16px 0;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #475569;
}

@media (max-width: 650px) {
  .partner-card-modern {
    padding: 18px 16px;
  }
  .partner-card-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .partner-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .partner-card-actions-left,
  .partner-card-actions-right {
    width: 100%;
    flex-direction: column;
  }
  .partner-card-actions-left button,
  .partner-card-actions-right button {
    width: 100% !important;
    min-height: 44px !important;
  }
  .partner-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .partner-toolbar .search {
    max-width: none;
  }
  .partner-filter-pills {
    width: 100%;
    overflow-x: auto;
  }
  .partner-pill {
    flex: 1;
    text-align: center;
  }
  .partner-modal-sheet .fields {
    grid-template-columns: 1fr;
  }
}

/* ========================================================== */
/* PRO POOL CONFIGURATOR WORKSPACE (UX113)                    */
/* ========================================================== */
.modal:has(#pool-setup-form) {
  max-width: min(calc(100vw - 24px), 1460px) !important;
  width: min(calc(100vw - 24px), 1460px);
}

@media (min-width: 1180px) {
  .pool-editor-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr) !important;
    gap: 28px !important;
  }
}

.pool-starter-bar {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.pool-starter-bar h3 {
  margin: 0 0 2px;
  font-size: 13.5px;
  color: #142e51;
}

.pool-starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.pool-starter-btn {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 2px;
  padding: 9px 11px !important;
  border-radius: 9px !important;
  border: 1px solid #d5e1f0 !important;
  background: #ffffff !important;
  text-align: left;
  white-space: normal !important;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.pool-starter-btn:hover {
  border-color: #245bd6 !important;
  background: #f0f5ff !important;
  box-shadow: 0 2px 6px rgba(36, 91, 214, 0.08);
}

.pool-starter-btn strong {
  font-size: 12.5px;
  font-weight: 650;
  color: #142e51;
  line-height: 1.25;
}

.pool-starter-btn small {
  font-size: 11px;
  font-weight: 450;
  color: #5c7089;
  line-height: 1.25;
}

.pool-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

.pool-view-tabs {
  display: inline-flex;
  background: #edf2f8;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.pool-view-tab {
  border: 0 !important;
  background: transparent !important;
  color: #51657d !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  min-height: 30px !important;
}

.pool-view-tab.is-active {
  background: #ffffff !important;
  color: #173c73 !important;
  box-shadow: 0 1px 3px rgba(20, 46, 81, 0.12);
}

.pool-print-btn {
  padding: 5px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  min-height: 32px !important;
  border-radius: 7px !important;
  border: 1px solid #cbd9ea !important;
  background: #ffffff !important;
  color: #183f5b !important;
}

.pool-print-btn:hover {
  border-color: #245bd6 !important;
  color: #245bd6 !important;
  background: #f4f8ff !important;
}

.pool-section-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d6e2ee;
}

.pool-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 650;
  color: #3d5670;
  margin-bottom: 6px;
}

.configured-pool-section {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dce7f2;
  border-radius: 8px;
  background: #f9fcfd;
}

.pool-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.pool-kpi-strip > div {
  min-width: 0;
  background: #f4f8fc;
  border: 1px solid #dde7f2;
  border-radius: 8px;
  padding: 7px 9px;
}

.pool-kpi-strip small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5c7089;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pool-kpi-strip b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #142e51;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
  white-space: nowrap;
}

/* Keep 2D tap-target pins anchored at their center on hover/active (prevent jitter from global button translateY) */
.pool-tap-targets button {
  transform: translate(-50%, -50%) !important;
}

.pool-tap-targets button:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.08) !important;
  border-color: #245bd6;
  box-shadow: 0 4px 12px rgba(36, 91, 214, 0.22);
}

.pool-tap-targets button:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.96) !important;
}

/* ========================================================== */
/* STEP 3 EQUIPMENT POLISH: FITTINGS 2-COL GRID & SHAFT CARD  */
/* ========================================================== */
.fittings-planner-card {
  background: #ffffff !important;
  border: 1px solid #d7e3f1 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  margin: 12px 0 18px !important;
  box-shadow: 0 2px 8px rgba(20, 46, 81, 0.04);
}

.fittings-planner-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8eff7;
}

.fittings-planner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fittings-planner-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 14px !important;
}

.fitting-planner-item {
  gap: 10px !important;
  padding: 13px 14px !important;
  border-radius: 11px !important;
  border: 1px solid #dce6f2 !important;
  background: #fafcff !important;
}

.fitting-planner-item.is-active {
  border-color: #93b4e8 !important;
  background: #f4f8ff !important;
}

.fitting-planner-item.is-fullspan {
  grid-column: 1 / -1;
}

.fitting-planner-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fitting-planner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fitting-planner-title strong {
  font-size: 13.5px;
  color: #142e51;
}

.fitting-count-badge {
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf0f6;
  color: #5a6f87;
  white-space: nowrap;
}

.fitting-count-badge.is-on {
  background: #dbeafe;
  color: #1d4ed8;
}

.fitting-seg-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 6px;
}

.fitting-seg-btn {
  padding: 6px 6px !important;
  min-height: 34px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  border: 1px solid #d2deec !important;
  background: #ffffff !important;
  color: #274160 !important;
  justify-content: center;
}

.fitting-seg-btn[aria-pressed="true"] {
  background: #245bd6 !important;
  border-color: #245bd6 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(36, 91, 214, 0.22);
}

.fitting-wall-select {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 5px !important;
  margin-top: 2px !important;
  padding-top: 10px !important;
  border-top: 1px solid #e1ebf6 !important;
}

.fitting-wall-select span {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5b7089;
}

.fitting-wall-select select {
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 4px 10px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
  border: 1px solid #cbd9ea !important;
  background: #ffffff !important;
  color: #142e51 !important;
}

.shaft-feature-card {
  background: #ffffff !important;
  border: 1px solid #d7e3f1 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  margin: 0 0 18px !important;
  box-shadow: 0 2px 8px rgba(20, 46, 81, 0.04);
}

.shaft-feature-card.is-active {
  border-color: #8fb1e6 !important;
  background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%) !important;
}

.shaft-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.shaft-card-head h3 {
  margin: 0 0 2px;
  font-size: 15px;
  color: #142e51;
}

.ergo-pill.is-neutral {
  background: #eef3f8;
  color: #536880;
  border: 1px solid #d8e2ee;
}

.shaft-choice-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.shaft-choice-btn {
  min-height: 40px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
  border: 1px solid #cfdceb !important;
  background: #ffffff !important;
  color: #243c59 !important;
}

.shaft-choice-btn[aria-pressed="true"] {
  background: #245bd6 !important;
  border-color: #245bd6 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(36, 91, 214, 0.22);
}

#simple-shaft-position {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e3ecf6;
}

@media (max-width: 640px) {
  .fittings-planner-grid {
    grid-template-columns: 1fr !important;
  }
  .shaft-choice-pills {
    grid-template-columns: 1fr;
  }
}

/* ========================================================== */
/* PROJECT TABS & MODERN PROJECT CHAT (UX116)                 */
/* ========================================================== */
.portal-layout .project-navigation .project-tabs {
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 4px !important;
  padding: 5px !important;
  background: #f1f5f9 !important;
  border: 1px solid #dbe4ef !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.portal-layout .project-navigation .project-tabs a {
  gap: 7px !important;
  padding: 8px 14px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  color: #556982 !important;
  font-weight: 560 !important;
  border: 1px solid transparent !important;
}

.portal-layout .project-navigation .project-tabs a .project-tab-icon {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 150ms ease, color 150ms ease;
}

.portal-layout .project-navigation .project-tabs a:hover {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.portal-layout .project-navigation .project-tabs a:hover .project-tab-icon {
  opacity: 1;
}

.portal-layout .project-navigation .project-tabs a.active {
  background: #ffffff !important;
  color: #1d4ed8 !important;
  font-weight: 650 !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.09), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.portal-layout .project-navigation .project-tabs a.active .project-tab-icon {
  color: #245bd6;
  opacity: 1;
}

.portal-layout .project-navigation .project-tabs a span.tab-label {
  display: inline;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  border-radius: 0;
}

.portal-layout .project-navigation .project-tabs a span.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 2px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.portal-layout .project-navigation .project-tabs a.active span.tab-count {
  background: #dbeafe;
  color: #1d4ed8;
}

.portal-layout .project-navigation .project-tabs a span.tab-count.is-unread {
  background: #245bd6;
  color: #ffffff;
}

/* Modern Chat Card */
.modern-chat-card {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #dbe4ef !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e6edf5;
}

.chat-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-title-row h2 {
  margin: 0;
  font-size: 17px;
  color: #142e51;
}

.chat-count-pill {
  font-size: 11.5px;
  font-weight: 650;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef4fc;
  color: #245bd6;
}

.chat-header-info p.tiny {
  margin: 4px 0 0;
  color: #60738a;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-chat-history {
  background: #f8fafd;
  padding: 22px 24px;
  min-height: 240px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modern-chat-history .message {
  display: flex;
  flex-direction: column;
  max-width: 78%;
  margin: 0 !important;
}

.modern-chat-history .message.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.modern-chat-history .message.theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-msg-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.chat-msg-head small {
  font-size: 11.5px;
  color: #64788f;
}

.chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chat-avatar.is-theirs {
  background: #e2eaf4;
  color: #1e3a5f;
}

.chat-avatar.is-mine {
  background: #dbeafe;
  color: #1d4ed8;
}

.modern-chat-history .message .bubble {
  padding: 11px 15px !important;
  border-radius: 14px !important;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.modern-chat-history .message.theirs .bubble {
  background: #ffffff !important;
  border: 1px solid #dce5f0 !important;
  color: #172b46 !important;
  border-top-left-radius: 4px !important;
}

.modern-chat-history .message.mine .bubble {
  background: #245bd6 !important;
  border: 1px solid #1d4ed8 !important;
  color: #ffffff !important;
  border-top-right-radius: 4px !important;
}

.chat-empty-state {
  margin: auto;
  text-align: center;
  max-width: 560px;
  padding: 18px 12px;
}

.chat-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #e8f0fe;
  color: #245bd6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-empty-state strong {
  display: block;
  font-size: 15px;
  color: #142e51;
  margin-bottom: 4px;
}

.chat-empty-state p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #60738a;
}

.chat-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chat-quick-chip {
  font-size: 12px !important;
  font-weight: 550 !important;
  padding: 7px 12px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid #cfdceb !important;
  background: #ffffff !important;
  color: #234062 !important;
  white-space: normal !important;
  text-align: left;
}

.chat-quick-chip:hover {
  border-color: #245bd6 !important;
  color: #1d4ed8 !important;
  background: #f0f5ff !important;
}

.modern-chat-composer {
  padding: 16px 24px 18px;
  background: #ffffff;
  border-top: 1px solid #e6edf5;
}

.chat-input-wrap textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  border: 1.5px solid #d5e0ec;
  border-radius: 12px;
  background: #fbfdff;
  color: #142e51;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.chat-input-wrap textarea:focus {
  outline: none !important;
  background: #ffffff;
  border-color: #245bd6;
  box-shadow: 0 0 0 3px rgba(36, 91, 214, 0.14);
}

.chat-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.chat-composer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.chat-attach-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #d5e1ee;
  background: #f8fbff;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.chat-attach-link:hover {
  border-color: #245bd6;
  background: #edf4ff;
}

.chat-meta-inline {
  font-size: 12px;
  color: #6b7f96;
  font-variant-numeric: tabular-nums;
}

.chat-send-btn {
  min-height: 40px !important;
  padding: 0 18px !important;
  border-radius: 10px !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .chat-header,
  .modern-chat-history,
  .modern-chat-composer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modern-chat-history .message {
    max-width: 92%;
  }
  .chat-send-btn {
    width: 100%;
  }
}

/* ========================================================== */
/* INTERACTIVE FREEFORM POOL CONTOUR EDITOR (UX117)           */
/* ========================================================== */
.freeform-card {
  grid-column: 1 / -1;
  background: #ffffff !important;
  border: 1.5px solid #bfd4ee !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  margin: 4px 0 12px !important;
  box-shadow: 0 3px 12px rgba(36, 91, 214, 0.06);
}

.freeform-card h3 {
  margin: 0 0 2px;
  font-size: 15px;
  color: #142e51;
}

.freeform-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
  padding: 10px 12px;
  background: #f6f9fe;
  border: 1px solid #e1ebf6;
  border-radius: 10px;
}

.freeform-preset-row,
.freeform-controls-row,
.freeform-snap-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.freeform-preset-row {
  justify-content: flex-start;
}

.freeform-canvas-wrap {
  border: 1px solid #d4e0ee;
  border-radius: 11px;
  overflow: hidden;
  background: #f9fcff;
}

.freeform-svg {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.freeform-handle {
  cursor: grab;
}

.freeform-handle:active {
  cursor: grabbing;
}

.freeform-handle circle {
  transition: r 120ms ease, fill 120ms ease;
}

.freeform-handle:hover circle {
  fill: #173f9e;
}

.freeform-mid-btn {
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 120ms ease;
}

.freeform-mid-btn:hover {
  opacity: 1;
}

.freeform-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: #51667f;
}

.freeform-edge-dim {
  cursor: pointer;
}

.freeform-edge-dim:hover rect {
  stroke: #245bd6;
  fill: #eef5ff;
}

.freeform-edge-dim:hover text {
  fill: #1d4ed8;
}

/* Foil color theme preview picker (RENOLIT ALKORPLAN Catalog) */
.pool-foil-bar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 11px;
  margin-bottom: 10px;
  background: #f5f9fd;
  border: 1px solid #e1ebf6;
  border-radius: 10px;
}

.pool-foil-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pool-foil-label {
  font-size: 11.5px;
  color: #52677f;
}

.pool-foil-label strong {
  color: #142e51;
}

.pool-foil-meta {
  font-size: 10.5px;
  font-weight: 600;
  color: #245bd6;
  background: #e9f1fe;
  padding: 1px 7px;
  border-radius: 999px;
}

.pool-foil-series {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pool-foil-series-btn {
  padding: 3px 8px !important;
  min-height: 24px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  border-radius: 6px !important;
  border: 1px solid #d5e1ee !important;
  background: #ffffff !important;
  color: #4a6078 !important;
}

.pool-foil-series-btn.is-active {
  background: #245bd6 !important;
  border-color: #245bd6 !important;
  color: #ffffff !important;
}

.pool-foil-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 2px;
}

.pool-foil-swatch {
  width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: var(--swatch, #4aa3d5) !important;
  border: 2px solid rgba(20, 46, 81, 0.24) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.pool-foil-swatch.is-active {
  border-color: #1d4ed8 !important;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #245bd6 !important;
}

/* ========================================================== */
/* GLOBAL SCROLL & VIEWPORT STABILITY (UX121)                 */
/* ========================================================== */
html,
body {
  overflow-x: clip !important;
  overscroll-behavior-x: none;
  max-width: 100%;
}

.portal-layout,
.main,
.content,
.content > *,
.dashboard-grid > *,
.detail-grid > *,
.grid2 > *,
.wizard > * {
  min-width: 0;
}

.main {
  width: auto;
  max-width: 100%;
  overflow-x: clip;
}

/* Keep fixed sidebar cleanly anchored on desktop/tablet (> 760px) while letting the document
   scroll naturally vertically (never lock html/body with overflow:hidden, which traps scrollY/scrollX). */
@media (min-width: 761px) {
  .portal-layout .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    z-index: 30;
  }
}

.sidebar {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.topbar {
  max-width: 100%;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.modal-overlay,
.modal {
  overscroll-behavior: contain;
}

/* Keep wizard sidebars cleanly anchored and independently scrollable on desktop */
@media (min-width: 1151px) {
  .wizard .stepnav {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .wizard > .sticky {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* Compact mini-preview inside the narrow 265px wizard summary column (prevent overflow & broken words) */
.wizard > .sticky .pool-view-bar,
.wizard > .sticky .pool-foil-bar,
.wizard > .sticky .pool-section-wrap,
.wizard > .sticky .pool-plan-legend,
.wizard > .sticky .pool-kpi-strip,
.wizard > .sticky .pool-caption,
.wizard > .sticky .plan-notes {
  display: none !important;
}

.wizard > .sticky .pool-preview-head {
  font-size: 11px;
  gap: 6px;
}

.wizard > .sticky .pool-measures {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 4px !important;
}

.wizard > .sticky .pool-measures > div {
  padding: 5px 4px !important;
}

.wizard > .sticky .pool-measures b {
  font-size: 12px !important;
}

/* Prevent horizontal overflow from project tabs on narrower viewports */
.portal-layout .project-navigation {
  max-width: 100%;
  overflow-x: clip;
}

/* Container-aware responsiveness for all 2D pool preview blocks (works in narrow sidebars AND full width) */
.pool-plan-live,
#live-pool-preview,
.pool-overview-card {
  min-width: 0;
  max-width: 100%;
}

.pool-view-tabs {
  flex-wrap: wrap;
  max-width: 100%;
}

.pool-section-head {
  flex-wrap: wrap;
  gap: 4px 10px;
}

.pool-measures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)) !important;
  gap: 8px !important;
}

.pool-measures > div {
  min-width: 0;
}

.pool-plan-legend {
  max-width: 100%;
  flex-wrap: wrap;
}

.pool-plan-legend li {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  .pool-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pool-starter-grid {
    grid-template-columns: 1fr 1fr;
  }
}


