:root { --dash-rail: 14rem; --dash-line: #e0e5e2; --dash-text: #202d29; --dash-muted: #586860; }
body { background: #f5f6f7; color: var(--dash-text); }
.dash-icon { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.dash-bar { display: flex; align-items: center; min-height: 66px; padding-right: clamp(1rem, 3vw, 3rem); background: white; border-bottom: 1px solid var(--dash-line); }
.dash-bar > a { width: var(--dash-rail); padding-left: 1.6rem; }
.dash-bar img { object-fit: contain; }
.bar-title { padding-left: 2rem; border-left: 1px solid var(--dash-line); font-weight: 600; }
.bar-tools, .bar-tools a, .dash-primary, .dash-menu summary { display: flex; align-items: center; }
.bar-tools { margin-left: auto; gap: .55rem; }
.bar-tools a { width: 44px; height: 44px; justify-content: center; text-decoration: none; }
.bar-tools .user-avatar { border-radius: 50%; background: #ebf2e8; color: #36593d; font-weight: 700; }
.user-avatar img, .profile-photo { border-radius: 50%; object-fit: cover; }
.user-avatar img { width: 100%; height: 100%; }
.profile-photo { width: 80px; height: 80px; }
.address-options { border: 0; padding: 0; margin: 1rem 0; }
.address-options legend { font-weight: 600; }
.address-options label, .address-save label { display: flex; align-items: baseline; gap: .55rem; padding: .45rem 0; overflow-wrap: anywhere; }
.address-options input, .address-save input { width: auto; flex: none; }
.address-save { margin-top: .65rem; }

/* Checkout panels share the same controls across cart, single-item and quote orders. */
.checkout-heading { display: flex; align-items: center; gap: .7rem; }
.checkout-icon { display: inline-grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; background: #e7f3ea; color: #216144; border-radius: .75rem; }
.checkout-delivery > p { margin-block: .75rem 1.35rem; }
.checkout-delivery .address-options { min-width: 0; margin: 1.25rem 0; }
.checkout-addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .6rem; margin-top: .55rem; }
.checkout-addresses label, .checkout-totals .redeem-choice { display: flex; align-items: center; gap: .75rem; margin: 0; padding: .85rem; border: 1px solid #d2dfd6; border-radius: .7rem; cursor: pointer; }
.checkout-addresses label:has(:checked), .checkout-totals .redeem-choice:has(:checked) { border-color: #39815a; background: #edf7f0; box-shadow: inset 0 0 0 1px #39815a; }
.checkout-addresses label:focus-within, .redeem-choice:focus-within { outline: 2px solid #287549; outline-offset: 2px; }
.checkout-delivery .address-save label { align-items: center; font-size: .92rem; }
.checkout-delivery :is(.address-options,.address-save) input, .checkout-totals .redeem-choice input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; flex: none; accent-color: #23754b; }
.checkout-totals { display: grid; gap: .75rem; margin-block: 1.1rem; }
.checkout-totals .redeem-choice { background: #f7faf7; }
.redeem-choice .dash-icon { color: #36754b; }
.redeem-choice span { flex: 1; }
.redeem-choice small { display: block; margin-top: .15rem; color: #52665b; font-weight: 400; line-height: 1.45; }
.checkout-totals p { margin: 0; }
.checkout-totals .reward-line { color: #216144; font-size: .9rem; }
.dash-body .checkout-totals .checkout-due { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .3rem .7rem; padding: .95rem 1rem; background: #183f31; color: white; border-radius: .7rem; }
.checkout-due strong { font-size: 1.2rem; color: inherit; font-variant-numeric: tabular-nums; }
.shopping-page .basket-summary .review-lines li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .15rem .85rem; }
.basket-summary .review-lines .product-thumb { grid-row: span 2; }
.basket-summary .review-lines li > span:last-child { grid-column: 2; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .checkout-delivery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .15rem 1rem; }
  .checkout-delivery > * { grid-column: 1 / -1; }
  .checkout-delivery > .delivery-field:has(input[name=recipient]), .checkout-delivery > .delivery-field:has(input[name=phone]) { grid-column: span 1; }
}
.dash-shell { display: grid; grid-template-columns: var(--dash-rail) minmax(0,1fr); min-height: calc(100vh - 66px); }
.dash-rail, .dash-menu { background: white; padding: 1rem; }
.dash-rail { border-right: 1px solid var(--dash-line); }
.dash-shell nav p { color: var(--dash-muted); font-size: .83rem; font-weight: 600; margin: 1.2rem .75rem .5rem; }
:is(.dash-rail,.dash-menu) :is(nav a,button) { display: flex; gap: .8rem; align-items: center; width: 100%; min-height: 44px; padding: .55rem .8rem; border: 0; border-radius: .45rem; color: #45554e; background: transparent; text-decoration: none; font-size: .94rem; }
:is(.dash-rail,.dash-menu) :is(a:hover,button:hover,a[aria-current]) { color: #1f6144; background: #eaf3ed; }
:is(.dash-rail,.dash-menu) form { border-top: 1px solid var(--dash-line); padding-top: .65rem; margin-top: 1rem; }
.dash-menu { display: none; }
.account-back, .section-link, .case-filter a { display: inline-flex; min-height: 44px; align-items: center; font-size: .94rem; font-weight: 600; }
.section-link { margin-left: auto; white-space: nowrap; }
.case-filter { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem 1.25rem; border-bottom: 1px solid var(--dash-line); }
.case-filter a { padding-inline: .85rem; border-radius: .45rem; text-decoration: none; }
.case-filter a[aria-current], .case-filter a:hover { background: #eaf3ed; color: #21593e; }
.dash-stats a:focus-visible, .dash-shell nav a:focus-visible, .section-link:focus-visible { outline: 3px solid #477a54; outline-offset: 3px; }
.account-list .point-value { margin-inline-start: auto; }
.account-detail .case:target { border-left: 3px solid #538064; padding-left: .85rem; }
.dash-body { width: 100%; max-width: 1600px; margin-inline: auto; padding: clamp(1.2rem, 3vw, 3rem); }
.dash-intro, .dash-stats, .dash-grid { margin-bottom: 1.5rem; }
.dash-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.dash-intro h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.045em; line-height: 1.2; overflow-wrap: anywhere; }
.dash-intro p { color: var(--dash-muted); margin: .4rem 0 0; }
.dash-primary { gap: .6rem; min-height: 44px; padding: .65rem 1rem; background: #21593e; color: white; border-radius: .55rem; text-decoration: none; font-weight: 600; }
.dash-primary:hover { background: #18432f; color: white; }
.dash-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .9rem; }
.stat, .dash-panel { background: white; border: 1px solid var(--dash-line); border-radius: .8rem; box-shadow: 0 2px 5px #1c362806; }
.stat { padding: 1.15rem; display: flex; align-items: flex-start; flex-direction: column; gap: .85rem; text-decoration: none; color: var(--dash-text); font-size: .94rem; font-weight: 550; }
.stat:hover { border-color: #92ac99; }
.stat strong { display: block; font-size: 2rem; font-weight: 650; line-height: 1.2; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.stat-icon { padding: .55rem; border-radius: .65rem; }
.stat-points, .stat-points:hover { color: white; background: radial-gradient(ellipse at 140% -10%, #45795f, transparent 70%), #1c4938; }
.stat-points .stat-icon { background: #ffffff20; color: #daefb8; }
.stat-orders .stat-icon { background: #edf0fb; color: #515399; }
.stat-cases .stat-icon { background: #fdf2e4; color: #946127; }
.stat-install .stat-icon { background: #e6f2ee; color: #327362; }
.dash-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: start; gap: 1.15rem; }
.dash-panel { min-width: 0; overflow-wrap: anywhere; scroll-margin-top: 1rem; }
.dash-panel > header { display: flex; gap: .65rem; align-items: center; padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--dash-line); }
.dash-panel > header .dash-icon { color: #506c5a; }
.dash-panel h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; font-weight: 650; }
.purchase, .dash-row, .dash-empty { margin: 0; padding: 1rem 1.25rem; }
.purchase + .purchase, .dash-row + .dash-row { border-top: 1px solid var(--dash-line); }
.purchase-head, .order-line, .dash-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem .8rem; }
.purchase-head { padding-bottom: .55rem; }
.purchase-head a, .dash-empty a { font-weight: 600; text-underline-offset: .22em; }
.dash-panel time, .dash-panel small { font-size: .875rem; color: var(--dash-muted); }
.order-line { padding-block: .45rem; }
.order-line > div, .dash-row > div { flex: 1 1 10rem; }
.order-line a, a.dash-row { color: var(--dash-text); text-decoration: none; }
.order-line a, .dash-row strong { font-weight: 550; }
.order-target { min-height: 44px; text-decoration: none; color: var(--dash-text); }
.order-target strong { font-weight: 550; }
.order-target:hover strong, .order-target:focus-visible strong { color: #21593e; text-decoration: underline; }
.order-line a:hover, a.dash-row:hover strong { text-decoration: underline; }
.dash-panel small { display: block; margin-top: .3rem; }
.status { padding: .18rem .6rem; background: #edf0f3; color: #475364; border-radius: 1rem; font-size: .85rem; font-weight: 550; }
.status-delivered, .status-approved, .status-closed { background: #e6f3eb; color: #26613e; }
.status-quoted, .status-review, .status-requested { background: #fbf1dc; color: #815b1c; }
.status-rejected, .status-cancelled { color: #833d45; background: #f8e9ea; }
.point-value { color: #246044; white-space: nowrap; }
.dash-empty { color: var(--dash-muted); line-height: 1.65; }
.dash-empty p { margin: 0 0 .6rem; }
@media (max-width: 1050px) { :root { --dash-rail: 12rem; } .dash-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 760px) {
  .dash-shell { display: block; }
  .dash-rail, .bar-title { display: none; }
  .dash-bar > a { padding-left: 1rem; }
  .dash-menu { display: block; padding: 0 1rem; border-bottom: 1px solid var(--dash-line); }
  .dash-menu summary { gap: .7rem; min-height: 46px; cursor: pointer; font-weight: 600; }
  .dash-menu[open] { padding-bottom: .8rem; }
  .dash-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .stat { padding: .9rem; }
  .dash-body { padding: 1.25rem 1rem; }
}

/* Account records, delivery forms and product support use the dashboard card layout. */
.account-detail { min-width: 0; overflow-wrap: anywhere; }
.account-detail .portal-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.account-detail .panel, .dash-body .basket-summary, .dash-body .delivery-fields,
.dash-body .empty-basket, .dash-body section[aria-label="Products in your cart"] {
  background: white; border: 1px solid var(--dash-line); border-radius: .8rem;
  padding: clamp(1rem, 2vw, 1.6rem); box-shadow: 0 2px 5px #1c362806;
}
.account-detail .profile-panel { max-width: 42rem; }
.account-detail .order-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.account-detail #requests { grid-column: 1 / -1; scroll-margin-top: 1rem; }
.account-detail .panel h2 { margin: 0 0 1rem; font-size: 1.18rem; letter-spacing: -.025em; }
.account-detail .panel p { color: var(--dash-muted); }
.account-detail .record, .receipt-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; border-top: 1px solid var(--dash-line); padding-block: 1rem; }
.account-detail .record { color: inherit; text-decoration: none; }
.account-detail a.record:hover strong { text-decoration: underline; }
.account-detail .record small, .account-detail .timeline small { display: block; color: var(--dash-muted); font-size: .9rem; }
.account-detail .pill { background: #eaf1ec; color: #315742; padding: .2rem .65rem; font-size: .88rem; border-radius: 1rem; }
.account-detail .facts { display: grid; grid-template-columns: minmax(7rem, .7fr) minmax(0, 1.4fr); gap: .65rem 1rem; }
.account-detail .facts dt { color: var(--dash-muted); }
.account-detail .facts dd { margin: 0; }
.account-detail .timeline { padding-left: 1.35rem; }
.account-detail .timeline li { padding: .45rem 0 .45rem .25rem; }
.account-detail .timeline li::marker { color: #40825e; }
.account-detail .case { padding-block: 1rem; border-top: 1px solid var(--dash-line); }
.account-detail .case h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.account-detail summary { padding-block: .75rem; font-weight: 600; color: #21593e; }
.account-detail .portal-form { max-width: 38rem; }
.account-detail .portal-form label { display: block; margin: .85rem 0 .35rem; font-weight: 600; }
.account-detail .portal-form :is(input, select, textarea) { width: 100%; min-height: 44px; padding: .65rem; border: 1px solid #a4b3a9; border-radius: .4rem; background: white; color: var(--dash-text); font: inherit; }
.account-detail .portal-form textarea { resize: vertical; }
.account-detail .portal-form input[type="checkbox"] { width: auto; min-height: auto; }
.order-sections .delivery-field { display: grid; gap: .35rem; margin: .85rem 0; }
.order-sections .delivery-field input, .order-sections .delivery-field textarea { width: 100%; padding: .6rem; font: inherit; }
.account-detail .primary { min-height: 44px; border: 0; border-radius: .45rem; padding: .6rem 1rem; background: #21593e; color: white; font-weight: 600; }
.account-detail .errorlist { color: #963a41; }
.account-detail .job-photos { display: flex; flex-wrap: wrap; gap: .75rem; }
.account-detail .job-photos img { width: 9rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .45rem; }
.installation-record h2:not(:first-child) { border-top: 1px solid var(--dash-line); padding-top: 1.25rem; margin-top: 1.5rem; }
.receipt-total { font-size: 1.08rem; }
.dash-body .refined-page .container { width: 100%; max-width: 100%; }
.dash-body .refined-page .company-hero, .dash-body .refined-page .catalog-hero { background: transparent; border: none; padding-block: 0; }
.dash-body .refined-page .display { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.dash-body .refined-page .display em { font: inherit; }
.dash-body .refined-page .shop-section { padding-block: 1.25rem; }
.dash-body .basket-layout { gap: 1rem; }
.dash-body .basket-item:first-child { border-top: 0; padding-top: 0; }
.dash-body .basket-item:last-child { padding-bottom: 0; }
.dash-body .refined-page :is(.guide-band,.catalog-results,.model-guide) { padding: 1.25rem; border: 1px solid var(--dash-line); border-radius: .8rem; background: white; margin-block: 1rem; }
.dash-body .refined-page .catalog-head { padding-block: .5rem 1.25rem; }
.dash-bar > .access-shop { width: auto; margin-left: auto; padding: .7rem; font-weight: 600; }
body:has(.access-shop) .access-page { background: #f5f6f7; min-height: calc(100vh - 66px); }
body:has(.access-shop) .access-card { border-radius: .8rem; box-shadow: 0 3px 16px #162f2310; }
@media (max-width: 1100px) {
  .dash-body .basket-layout, .account-detail .order-sections { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  .account-detail .facts { display: block; }
  .account-detail .facts dd { margin: .1rem 0 .8rem; }
  .account-detail .primary { width: 100%; }
}
