
/* Calculator only: larger text, neutral palette and a mobile settings sheet. */
:root { --ink:#151515; --muted:#5f6368; --line:#e6e4df; --paper:#f6f6f3; --accent:#282b2f; }
body { font:16px/1.5 Inter,Arial,sans-serif; }
header,main,footer { max-width:1240px; }
.visual { background:#fff; border-radius:14px; }
.system-card { background:#fff; }
header>span, .eyebrow, .intro>p:last-child, .system-detail,
.visual p, .visual small, .dimension-help, .dimension-errors,
.option-name, .selected-value, .availability, .installation small,
.contact-options small, .terms, .total p, footer,
#reset, .cart-row button { font-size:16px; }
header>span, .visual small, .mobile-total span { color:var(--muted); }
.system-name, #controls legend { font-size:18px; }
.system-detail, .option-name { white-space:normal; overflow-wrap:anywhere; }
.option-button, .swatch-option, .cart-actions button, .contact-options a,
#reset, .dialog-heading button, #cancel-installation, .cart-row button {
  min-height:44px; font-size:16px;
}
#controls textarea, #controls input[type=number], .cart-row input {
  font-size:16px; min-height:44px;
}
.option-button[aria-pressed=true], .system-card[aria-pressed=true] { border-color:#373b40; background:#e8eaed; }
#controls legend .selected-value { color:var(--muted); }
.configuration-step { margin:22px 0 0; font-size:20px; line-height:1.25; font-weight:650; }
.configuration-step:first-child { margin-top:0; }
.configuration-trigger, #configuration-sheet { display:none; }
.configuration-trigger, #configuration-close, #configuration-done {
  min-height:48px; border-radius:10px; line-height:1.2;
  font-family:inherit; font-size:16px; font-weight:600; padding:10px 14px;
}
.configuration-trigger, #configuration-done { background:#282b2f; color:#fff; border:1px solid #282b2f; }
#configuration-close { background:#fff; color:var(--ink); border:1px solid var(--line); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline:2px solid #303439; outline-offset:3px;
}

@media (max-width:740px) {
  .calculator { grid-template-columns:minmax(0,1fr); }
  .visual { position:static; }
  #system-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .system-card { padding:12px 10px; min-height:80px; }
  .system-name { font-size:18px; }
  .has-configuration-sheet #configuration-home { display:none; }
  .has-configuration-sheet body { padding-bottom:112px; }
  .has-configuration-sheet .mobile-total {
    position:fixed; z-index:5; inset:auto 0 0;
    display:flex; justify-content:space-between; align-items:center; gap:8px;
    width:100%; border-top:1px solid var(--line); background:var(--paper);
    padding:9px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    pointer-events:auto;
  }
  .mobile-total .mobile-price-wrap { min-width:0; }
  .mobile-total .mobile-price-wrap>span { display:block; font-size:14px; }
  .mobile-total strong { display:block; font-size:20px; line-height:1.2; color:var(--ink); overflow-wrap:anywhere; }
  .has-configuration-sheet .configuration-trigger { display:inline-flex; align-items:center; flex:none; max-width:53%; text-align:center; justify-content:center; }
  .configuration-open, .configuration-open body { overflow:hidden; }
  #configuration-sheet[open] {
    position:fixed; inset:auto 0 0; width:100%; max-width:none;
    height:min(88vh,820px); height:min(88dvh,820px); max-height:none;
    display:grid; grid-template-rows:auto minmax(0,1fr) auto; margin:0;
    border:1px solid var(--line); border-radius:22px 22px 0 0;
    background:var(--paper); padding:0; overflow:hidden;
  }
  .configuration-sheet-head, .configuration-sheet-footer {
    display:flex; justify-content:space-between; align-items:center; gap:10px;
    padding:12px 14px; background:var(--paper);
  }
  .configuration-sheet-head { border-bottom:1px solid var(--line); }
  .configuration-sheet-head h2 { margin:0; font-size:21px; line-height:1.2; }
  .configuration-sheet-footer { border-top:1px solid var(--line); padding-bottom:max(12px,env(safe-area-inset-bottom)); }
  .configuration-sheet-footer span { display:block; color:var(--muted); font-size:14px; }
  #configuration-price { display:block; font-size:20px; line-height:1.2; overflow-wrap:anywhere; }
  #configuration-sheet-body { overflow:auto; overscroll-behavior:contain; padding:16px 14px 24px; }
  #configuration-sheet-body .swatches { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #configuration-sheet-body fieldset { min-width:0; padding-inline:0; }
  #configuration-sheet-body .choice-buttons { flex-wrap:wrap; }
}


/* Compact, legible system tabs; larger settings text is unchanged. */
#system-options .system-card { min-height:44px; padding:6px 12px; border-radius:8px; gap:0; line-height:1.2; color:#181818; }
#system-options .system-card .system-name { font-size:16px; line-height:1.2; color:#181818; }
#system-options .system-card[aria-pressed="true"] { background:#e8e8e3; border-color:#72716a; color:#181818; }
#system-options .system-card[aria-pressed="true"] .system-name { color:#181818; }
@media(max-width:740px) {
 #system-options { display:flex; gap:6px; margin-bottom:14px; }
 #system-options .system-card { flex:0 0 auto; min-height:44px; padding:6px 10px; }
}

#email-cart-calculation:not([hidden]) { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:8px 14px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:white; font:inherit; text-align:center; text-decoration:none; }
#email-cart-note:not([hidden]) { color:var(--muted); font-size:16px; }
