.gtl-solar-assistant {
    --gtl-sun: #f4a11a;
    --gtl-sun-dark: #c86d00;
    --gtl-green: #2d7a59;
    --gtl-green-dark: #19523b;
    --gtl-ink: #24322d;
    --gtl-muted: #60706a;
    --gtl-line: #d9e4df;
    --gtl-soft: #f3f8f5;
    --gtl-warn: #fff4dc;
    background: #faf9f6;
    border: 1px solid #e8e6e0;
    border-radius: 10px;
    color: var(--gtl-ink);
    font-family: Lato, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 2rem auto;
    max-width: 1080px;
    overflow: hidden;
}

.gtl-solar-assistant *, .gtl-solar-assistant *::before, .gtl-solar-assistant *::after { box-sizing: border-box; }
.gtl-solar-assistant button, .gtl-solar-assistant input, .gtl-solar-assistant select { font: inherit; }
.gtl-solar-assistant .gtl-sa-hidden { display: none !important; }

.gtl-sa-hero {
    align-items: center;
    background: linear-gradient(135deg, var(--gtl-green), var(--gtl-sun));
    border: 0;
    border-radius: 0;
    color: #fff;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 2.7rem);
    position: relative;
}

.gtl-sa-hero::after {
    background: var(--gtl-sun);
    border-radius: 50%;
    content: "";
    filter: blur(1px);
    height: 180px;
    opacity: .09;
    position: absolute;
    right: -45px;
    top: -75px;
    width: 180px;
}

.gtl-sa-hero h2 { color: inherit; font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.12; margin: .2rem 0 .7rem; }
.gtl-sa-hero p { line-height: 1.65; margin-bottom: 0; max-width: 760px; }
.gtl-sa-eyebrow { color: var(--gtl-sun-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; margin: 0; text-transform: uppercase; }
.gtl-sa-mascot { align-items: center; display: flex; flex: 0 0 auto; gap: .8rem; margin: 0; position: relative; z-index: 1; }
.gtl-sa-mascot-image, .gtl-sa-mascot-fallback { align-items: center; aspect-ratio: 1; background: #fff; border: 3px solid rgba(255,255,255,.85); border-radius: 50%; box-shadow: 0 12px 30px rgba(0,0,0,.18); display: flex; font-size: clamp(2.2rem, 7vw, 4rem); height: clamp(76px, 12vw, 118px); justify-content: center; object-fit: cover; width: clamp(76px, 12vw, 118px); }
.gtl-sa-mascot-image { object-fit: contain; padding: .15rem; }
.gtl-sa-mascot-bubble { background: rgba(255,255,255,.95); border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.12); color: var(--gtl-ink); font-size: .88rem; font-weight: 800; line-height: 1.25; max-width: 190px; padding: .65rem .8rem; position: relative; }
.gtl-sa-mascot-bubble::before { border: 8px solid transparent; border-right-color: rgba(255,255,255,.95); content: ""; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); }

.gtl-sa-progress { display: grid; gap: .4rem; grid-template-columns: repeat(4, 1fr); margin: 1.2rem 1.5rem; }
.gtl-sa-progress span { border-bottom: 4px solid var(--gtl-line); color: var(--gtl-muted); font-size: .82rem; font-weight: 700; padding: .55rem .3rem; text-align: center; }
.gtl-sa-progress .is-active { border-color: var(--gtl-sun); color: var(--gtl-ink); }
.gtl-sa-progress .is-done { border-color: var(--gtl-green); color: var(--gtl-green-dark); }

.gtl-sa-step, .gtl-sa-results {
    background: #fff;
    border: 1px solid var(--gtl-line);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
    margin: 0 1.5rem 1.5rem;
    padding: clamp(1.2rem, 4vw, 2.3rem);
}
.gtl-sa-step h3, .gtl-sa-results h3 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 0 0 .45rem; }
.gtl-sa-help, .gtl-sa-muted { color: var(--gtl-muted); }

.gtl-sa-choice-grid { display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.4rem; }
.gtl-solar-assistant .gtl-sa-choice {
    background: #fff;
    border: 2px solid var(--gtl-line);
    border-radius: 14px;
    box-shadow: none;
    color: var(--gtl-ink);
    cursor: pointer;
    min-height: 112px;
    padding: 1.1rem;
    text-align: left;
    white-space: normal;
    width: 100%;
}
.gtl-sa-choice strong, .gtl-sa-choice span { display: block; }
.gtl-sa-choice strong { font-size: 1rem; margin-bottom: .35rem; }
.gtl-sa-choice span { color: var(--gtl-muted); font-size: .88rem; line-height: 1.45; }
.gtl-solar-assistant .gtl-sa-choice:hover, .gtl-solar-assistant .gtl-sa-choice:focus-visible { border-color: var(--gtl-sun); transform: translateY(-1px); }
.gtl-solar-assistant .gtl-sa-choice.is-selected { background: #fff8e8; border-color: var(--gtl-sun); box-shadow: 0 0 0 3px rgba(244, 161, 26, .14); }

.gtl-sa-field-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.3rem 0; }
.gtl-sa-field-grid label { color: var(--gtl-ink); display: block; font-weight: 750; }
.gtl-sa-field-grid label > span { color: var(--gtl-muted); font-size: .8rem; font-weight: 600; }
.gtl-sa-field-grid input, .gtl-sa-field-grid select {
    background: #fff;
    border: 1px solid #bdccc6;
    border-radius: 9px;
    color: var(--gtl-ink);
    display: block;
    margin-top: .4rem;
    min-height: 46px;
    padding: .65rem .75rem;
    width: 100%;
}
.gtl-sa-field-grid input:focus, .gtl-sa-field-grid select:focus { border-color: var(--gtl-green); box-shadow: 0 0 0 3px rgba(45, 122, 89, .13); outline: none; }
.gtl-sa-field-grid small { color: var(--gtl-muted); display: block; font-size: .78rem; font-weight: 400; line-height: 1.4; margin-top: .35rem; }

.gtl-sa-import-box { align-items: center; background: var(--gtl-soft); border: 1px solid var(--gtl-line); border-radius: 12px; display: flex; gap: 1rem; justify-content: space-between; margin: 1.2rem 0; padding: 1rem; }
.gtl-sa-import-box strong, .gtl-sa-import-box span { display: block; }
.gtl-sa-import-box span { color: var(--gtl-muted); font-size: .85rem; margin-top: .2rem; }

.gtl-sa-actions { align-items: center; display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1.5rem; }
.gtl-solar-assistant .gtl-sa-btn { border: 0; border-radius: 9px; box-shadow: none; cursor: pointer; display: inline-flex; font-weight: 800; justify-content: center; line-height: 1.2; padding: .78rem 1.1rem; text-decoration: none; width: auto; }
.gtl-solar-assistant .gtl-sa-btn-primary { background: var(--gtl-green); color: #fff; }
.gtl-solar-assistant .gtl-sa-btn-primary:hover, .gtl-solar-assistant .gtl-sa-btn-primary:focus-visible { background: var(--gtl-green-dark); }
.gtl-solar-assistant .gtl-sa-btn-secondary { background: #fff3d5; color: #713c00; }
.gtl-solar-assistant .gtl-sa-btn-quiet { background: #edf2ef; color: var(--gtl-ink); }
.gtl-solar-assistant .gtl-sa-btn:disabled { cursor: not-allowed; opacity: .45; }

.gtl-sa-alert { background: #fff0ef; border: 1px solid #d88980; border-radius: 10px; color: #812c22; font-weight: 700; margin: 1rem 0; padding: .9rem 1rem; }
.gtl-sa-advanced { background: var(--gtl-soft); border: 1px solid var(--gtl-line); border-radius: 12px; margin: 1rem 0; padding: .9rem 1rem; }
.gtl-sa-advanced summary, .gtl-sa-calculation summary { cursor: pointer; font-weight: 800; }
.gtl-sa-advanced p { color: var(--gtl-muted); font-size: .85rem; }
.gtl-sa-confirm { align-items: flex-start; background: #fff8e8; border-left: 4px solid var(--gtl-sun); display: flex; font-weight: 650; gap: .55rem; line-height: 1.5; margin: 1rem 0; padding: .9rem; }
.gtl-sa-confirm input { flex: 0 0 auto; margin-top: .28rem; }

.gtl-sa-result-heading { align-items: start; display: flex; gap: 1rem; justify-content: space-between; }
.gtl-sa-result-heading p { color: var(--gtl-muted); line-height: 1.55; max-width: 780px; }
.gtl-sa-result-actions { align-items: stretch; display: flex; flex: 0 0 auto; flex-direction: column; gap: .45rem; max-width: 240px; }
.gtl-sa-result-actions small { color: var(--gtl-muted); font-size: .72rem; line-height: 1.35; text-align: center; }
.gtl-sa-print-frame { border: 0; bottom: 0; height: 1px; opacity: 0; position: fixed; right: 0; width: 1px; }
.gtl-sa-metrics { display: grid; gap: .8rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.4rem 0; }
.gtl-sa-metric { background: var(--gtl-soft); border-left: 4px solid var(--gtl-green); border-radius: 9px; min-height: 105px; padding: .9rem; }
.gtl-sa-metric span, .gtl-sa-metric small { color: var(--gtl-muted); display: block; font-size: .78rem; }
.gtl-sa-metric strong { display: block; font-size: 1.25rem; margin: .3rem 0; }

.gtl-sa-result-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gtl-sa-card { border: 1px solid var(--gtl-line); border-radius: 12px; padding: 1.1rem; }
.gtl-sa-card h4 { color: var(--gtl-green-dark); font-size: 1.08rem; margin: 0 0 .7rem; }
.gtl-sa-card ul, .gtl-sa-card ol { margin: 0; padding-left: 1.25rem; }
.gtl-sa-card li { line-height: 1.5; margin-bottom: .65rem; }
.gtl-sa-card-warning { background: var(--gtl-warn); border-color: #eccb87; }
.gtl-sa-card-warning h4 { color: #7b4700; }
.gtl-sa-diagram-card { background: linear-gradient(180deg, #fbfefc, #f2f8f5); margin-top: 1rem; overflow: hidden; }
.gtl-sa-diagram-card > p { color: var(--gtl-muted); font-size: .84rem; line-height: 1.45; margin: -.25rem 0 1rem; }
.gtl-sa-diagram-flow { align-items: stretch; display: flex; gap: .55rem; overflow-x: auto; padding: .25rem .1rem .65rem; scrollbar-color: #a8cdb9 transparent; }
.gtl-sa-diagram-stage { display: flex; flex: 1 1 132px; flex-direction: column; min-width: 128px; }
.gtl-sa-diagram-stage-label { color: var(--gtl-green-dark); display: block; font-size: .7rem; font-weight: 900; letter-spacing: .08em; margin-bottom: .35rem; text-align: center; text-transform: uppercase; }
.gtl-sa-diagram-stage-nodes { display: flex; flex: 0 0 auto; flex-direction: column; gap: .45rem; }
.gtl-sa-diagram-node { background: #fff; border: 1px solid #cadbd2; border-radius: 10px; box-shadow: 0 3px 10px rgba(27, 78, 55, .08); display: flex; flex: 0 0 auto; flex-direction: column; min-height: 205px; overflow: hidden; padding: .55rem; text-align: center; }
.gtl-sa-diagram-node.is-solar { border-top: 4px solid var(--gtl-sun); }
.gtl-sa-diagram-node.is-wind { border-top: 4px solid #57a0c8; }
.gtl-sa-diagram-media { align-items: center; background: #f4f7f5; border-radius: 7px; display: flex; height: 88px; justify-content: center; margin-bottom: .45rem; overflow: hidden; position: relative; }
.gtl-sa-diagram-icon { font-size: 2.5rem; line-height: 1; }
.gtl-sa-diagram-media.has-image .gtl-sa-diagram-icon { display: none; }
.gtl-sa-diagram-image { height: 100%; object-fit: contain; padding: .25rem; width: 100%; }
.gtl-sa-diagram-image-link { display: block; height: 100%; width: 100%; }
.gtl-sa-diagram-image-link:hover .gtl-sa-diagram-image, .gtl-sa-product-image-link:hover .gtl-sa-product-image { opacity: .84; }
.gtl-sa-diagram-image-link:focus-visible, .gtl-sa-product-image-link:focus-visible { outline: 3px solid var(--gtl-sun); outline-offset: -3px; }
.gtl-sa-diagram-role { color: var(--gtl-muted); font-size: .68rem; font-weight: 800; letter-spacing: .04em; margin-bottom: .2rem; text-transform: uppercase; }
.gtl-sa-diagram-node strong { color: var(--gtl-ink); font-size: .82rem; line-height: 1.25; overflow-wrap: anywhere; }
.gtl-sa-diagram-node small { color: var(--gtl-muted); display: block; font-size: .67rem; line-height: 1.3; margin-top: .35rem; }
.gtl-sa-diagram-node .gtl-sa-diagram-missing { color: #8a5a16; }
.gtl-sa-diagram-arrow { align-items: center; align-self: center; color: var(--gtl-green); display: flex; flex: 0 0 20px; font-size: 1.7rem; font-weight: 900; justify-content: center; margin-top: 1.15rem; }
.gtl-sa-guides { background: #f4fafc; border-left: 5px solid #57a0c8; margin-top: 1rem; }
.gtl-sa-guides > p, .gtl-sa-product-intro { color: var(--gtl-muted); font-size: .85rem; line-height: 1.45; margin: -.2rem 0 .8rem; }
.gtl-sa-guide-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.gtl-sa-guides .gtl-sa-link { background: #eef8fc; border-color: #b8d8e8; color: #225f80; }
.gtl-sa-products { background: #fffdf8; border-color: #ead9b7; margin-top: 1rem; }
.gtl-sa-affiliate-disclosure { background: #fff5df; border-left: 4px solid var(--gtl-sun); color: #6d4a12; font-size: .78rem; line-height: 1.45; margin: 0 0 .85rem; padding: .65rem .75rem; }
.gtl-sa-affiliate-disclosure:empty { display: none; }
.gtl-sa-product-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.gtl-solar-assistant .gtl-sa-link { background: #edf8f2; border: 1px solid #b9d9c9; border-radius: 999px; color: var(--gtl-green-dark); font-size: .85rem; font-weight: 800; padding: .6rem .85rem; text-decoration: none; }
.gtl-solar-assistant .gtl-sa-link:hover { background: #dff1e7; }
.gtl-sa-product-card { background: #fff; border: 1px solid var(--gtl-line); border-radius: 10px; display: grid; flex: 1 1 280px; grid-template-columns: 92px minmax(0, 1fr); max-width: 100%; overflow: hidden; }
.gtl-sa-product-image { height: 100%; min-height: 120px; object-fit: contain; padding: .65rem; width: 92px; }
.gtl-sa-product-image-link { display: block; min-height: 120px; width: 92px; }
.gtl-sa-product-body { min-width: 0; padding: .85rem; }
.gtl-sa-product-body strong, .gtl-sa-product-body small { display: block; }
.gtl-sa-product-badge { background: #fff2c7; border-radius: 999px; color: #704f00; display: inline-block; font-size: .68rem; font-weight: 900; letter-spacing: .04em; margin-bottom: .35rem; padding: .22rem .5rem; text-transform: uppercase; }
.gtl-sa-product-body p { color: var(--gtl-muted); font-size: .85rem; line-height: 1.4; margin: .35rem 0; }
.gtl-sa-product-body .gtl-sa-product-fit { color: var(--gtl-navy); font-weight: 700; }
.gtl-sa-product-body small { color: var(--gtl-muted); margin-bottom: .55rem; }
.gtl-sa-product-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.gtl-solar-assistant .gtl-sa-product-actions .gtl-sa-btn { font-size: .78rem; padding: .55rem .7rem; }
.gtl-sa-calculation { background: #f8faf9; border: 1px solid var(--gtl-line); border-radius: 12px; margin-top: 1rem; padding: 1rem; }
.gtl-sa-calculation ul { margin-bottom: 0; }
.gtl-sa-print-note { color: var(--gtl-muted); font-size: .82rem; margin-bottom: 0; text-align: center; }
.gtl-sa-feedback { background: linear-gradient(135deg, #f0faf4, #fffdf8); border-left: 5px solid var(--gtl-green); margin-top: 1.2rem; }
.gtl-sa-feedback > p { color: var(--gtl-muted); margin-top: -.2rem; }
.gtl-sa-feedback form { display: grid; gap: 1rem; }
.gtl-sa-feedback fieldset { border: 0; margin: 0; padding: 0; }
.gtl-sa-feedback legend, .gtl-sa-feedback-field { color: var(--gtl-ink); display: block; font-size: .9rem; font-weight: 800; margin-bottom: .5rem; }
.gtl-sa-feedback fieldset label { align-items: center; background: #fff; border: 1px solid var(--gtl-line); border-radius: 999px; cursor: pointer; display: inline-flex; font-size: .85rem; gap: .35rem; margin: 0 .35rem .35rem 0; padding: .5rem .7rem; }
.gtl-sa-feedback input[type="radio"] { margin: 0; }
.gtl-sa-feedback-field select { background: #fff; border: 1px solid var(--gtl-line); border-radius: 8px; display: block; margin-top: .35rem; max-width: 420px; padding: .65rem; width: 100%; }
.gtl-sa-feedback-actions { display: flex; }
.gtl-sa-feedback-privacy { color: var(--gtl-muted); font-size: .74rem; line-height: 1.4; margin: 0; }
.gtl-sa-feedback-status { color: var(--gtl-green-dark); font-size: .86rem; font-weight: 800; margin: 0; min-height: 1.3em; }
.gtl-sa-feedback-honeypot { height: 1px; left: -9999px; overflow: hidden; position: absolute; width: 1px; }

@media (max-width: 820px) {
    .gtl-sa-mascot-bubble { display: none; }
    .gtl-sa-hero { grid-template-columns: 1fr; }
    .gtl-sa-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gtl-sa-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gtl-sa-diagram-flow { align-items: stretch; flex-direction: column; overflow-x: visible; }
    .gtl-sa-diagram-stage { flex-basis: auto; width: 100%; }
    .gtl-sa-diagram-stage-nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
    .gtl-sa-diagram-node { min-height: 0; }
    .gtl-sa-diagram-arrow { align-self: center; margin: -.25rem 0; transform: rotate(90deg); }
}

@media (max-width: 560px) {
    .gtl-sa-progress span { font-size: 0; }
    .gtl-sa-progress span::first-letter { font-size: .85rem; }
    .gtl-sa-progress span[data-progress="1"]::after { content: "1"; font-size: .85rem; }
    .gtl-sa-progress span[data-progress="2"]::after { content: "2"; font-size: .85rem; }
    .gtl-sa-progress span[data-progress="3"]::after { content: "3"; font-size: .85rem; }
    .gtl-sa-progress span[data-progress="4"]::after { content: "4"; font-size: .85rem; }
    .gtl-sa-choice-grid, .gtl-sa-field-grid, .gtl-sa-result-grid, .gtl-sa-metrics { grid-template-columns: 1fr; }
    .gtl-sa-import-box, .gtl-sa-result-heading { align-items: stretch; flex-direction: column; }
    .gtl-sa-result-actions { max-width: none; }
    .gtl-sa-actions { align-items: stretch; flex-direction: column-reverse; }
    .gtl-solar-assistant .gtl-sa-btn { width: 100%; }
    .gtl-sa-product-card { grid-template-columns: 72px minmax(0, 1fr); }
    .gtl-sa-product-image { width: 72px; }
    .gtl-sa-product-image-link { width: 72px; }
}

@media print {
    .gtl-sa-form, .gtl-sa-progress, .gtl-sa-result-heading .gtl-sa-btn { display: none !important; }
    .gtl-sa-results { border: 0; box-shadow: none; padding: 0; }
    .gtl-sa-card, .gtl-sa-metric, .gtl-sa-diagram-node { break-inside: avoid; }
    .gtl-sa-diagram-flow { overflow: visible; }
}
