/* Visual refresh: self-contained so the previous design can be restored. */
:root { --ks-ink: #172b36; --ks-muted: #536575; --ks-line: #dfe7ea; --ks-accent: #a64b08; --ks-tint: #fff5e6; }
body { background: #f6f8f9; color: var(--ks-ink); }
body[data-utility-type="su"] { --ks-accent: #036a94; --ks-tint: #edf8ff; }
:where(a, button, select, summary):focus-visible { outline: 3px solid #0284c7; outline-offset: 4px; }
.ks-brand-name { font-size: 16px; letter-spacing: -.5px; }
.ks-brand-name > span { color: #667582; }
.ks-hero { position: relative; overflow: hidden; padding: 38px; margin-bottom: 26px; border: 1px solid var(--ks-line); border-radius: 26px; background: radial-gradient(ellipse at 95% 0%, #fff0d6 0, transparent 55%), #fff; }
.ks-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #596873; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ks-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #199375; }
.ks-hero h1 { max-width: 660px; margin: 20px 0 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.09; letter-spacing: -.045em; font-weight: 750; }
.ks-hero h1 span { color: #b9550b; }
.ks-hero-intro { max-width: 560px; color: var(--ks-muted); font-size: 16px; line-height: 1.7; }
.ks-finder { margin-top: 28px; padding: 22px; border: 1px solid var(--ks-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px #172b3607; }
.ks-finder-types { display: flex; gap: 8px; border: 0; padding: 0; margin: 0 0 20px; }
.ks-finder-types label { position: relative; cursor: pointer; }
.ks-finder-types input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ks-finder-types span { display: block; border: 1px solid var(--ks-line); border-radius: 10px; padding: 10px 20px; color: var(--ks-muted); font-weight: 650; font-size: 14px; }
.ks-finder-types input:checked + span { color: #954409; border-color: #edbf83; background: #fff5e6; }
.ks-finder-types input[value="su"]:checked + span { color: #036a94; border-color: #8dcde9; background: #edf8ff; }
.ks-finder-types input:focus-visible + span { outline: 3px solid #0284c7; outline-offset: 3px; }
.ks-finder-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.ks-field { display: grid; gap: 7px; color: #445766; font-size: 13px; font-weight: 650; min-width: 0; }
.ks-field select { width: 100%; min-height: 48px; border: 1px solid #c9d5db; border-radius: 10px; background: #f9fbfc; padding: 10px 34px 10px 13px; color: var(--ks-ink); font-size: 16px; font-weight: 500; }
.ks-submit { min-height: 48px; padding: 12px 22px; border-radius: 10px; background: #203b46; color: white; font-size: 14px; font-weight: 650; cursor: pointer; }
.ks-submit:hover { background: #305460; }
.ks-finder-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 17px; color: #657784; font-size: 12px; }
.ks-location { color: #234c60; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; min-height: 30px; }
.ks-quicklinks { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 21px; font-size: 13px; color: #627481; }
.ks-quicklinks a { background: #fff; border: 1px solid var(--ks-line); border-radius: 8px; padding: 8px 13px; color: #334e5e; }
.ks-quicklinks a:hover { border-color: #9aafb9; }
.ks-region-picker { margin: 18px 0 22px; padding: 17px 20px; border: 1px solid var(--ks-line); border-radius: 15px; background: white; display: flex; align-items: center; gap: 18px; }
.ks-region-picker > div { flex: 1; min-width: 0; }
.ks-region-picker strong { font-size: 14px; }
.ks-region-picker p { font-size: 12px; color: var(--ks-muted); margin-top: 3px; }
.ks-region-picker .ks-field { width: min(100%, 320px); }
.ks-outage { padding: 22px; border: 1px solid var(--ks-line); border-radius: 17px; background: #fff; box-shadow: 0 3px 12px #172b3603; min-width: 0; }
.ks-outage:hover { border-color: #b9cbd3; }
.ks-outage-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.ks-outage-date { font-size: 12px; font-weight: 650; color: #586b78; }
.ks-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #f0f3f5; color: #52636e; }
.ks-status::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.ks-status--planned { color: #945008; background: #fff3db; }
.ks-status--ongoing { color: #b52f35; background: #fff0f0; }
.ks-status--completed { color: #157258; background: #eaf7f1; }
.ks-outage h3 { font-size: 17px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.ks-outage h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ks-outage-time { margin: 17px 0 15px; padding: 14px 16px; background: var(--ks-tint); border-radius: 10px; }
.ks-outage-time strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ks-outage-time span { display: block; font-size: 12px; color: #566774; margin-top: 5px; }
.ks-outage-reason { color: #526674; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.ks-outage details { margin-top: 13px; border-top: 1px solid #edf1f3; padding-top: 12px; color: #536575; font-size: 13px; line-height: 1.65; }
.ks-outage summary { cursor: pointer; font-weight: 600; padding: 3px 0; }
.ks-outage details p { margin-top: 9px; }
.ks-outage-source { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 16px; font-size: 12px; color: #617481; }
.ks-outage-source a { text-decoration: underline; text-underline-offset: 3px; }
.ks-date-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--ks-line); background: #edf2f4; border-radius: 12px; width: fit-content; margin-bottom: 24px; }
.ks-date-tabs a { padding: 10px 17px; border-radius: 8px; color: #526674; font-size: 13px; font-weight: 650; }
.ks-date-tabs a[aria-current="page"] { background: white; color: #1d3744; box-shadow: 0 2px 5px #172b360b; }
.ks-tool-page { max-width: 1240px; margin: 0 auto; }
.ks-tools-hub { max-width: 1120px; margin: 0 auto; }
.ks-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ks-tool-card { display: flex; min-height: 230px; flex-direction: column; padding: 26px; border: 1px solid var(--ks-line); border-radius: 20px; background: radial-gradient(ellipse at 100% 0, #fff3df, transparent 48%), #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ks-tool-card:hover { border-color: #e3b477; transform: translateY(-2px); box-shadow: 0 14px 35px #172b360b; }
.ks-tool-card > span { width: fit-content; padding: 5px 9px; border-radius: 7px; background: #edf4f6; color: #536d79; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.ks-tool-card h2 { margin-top: 20px; color: #203b46; font-size: 21px; font-weight: 750; line-height: 1.25; }
.ks-tool-card p { margin-top: 10px; color: #667984; font-size: 13px; line-height: 1.65; }
.ks-tool-card strong { margin-top: auto; padding-top: 20px; color: #9b490c; font-size: 13px; }
.ks-tool-intro { max-width: 800px; margin: 4px 0 28px; }
.ks-tool-intro h1 { margin: 15px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.04em; font-weight: 760; }
.ks-tool-intro > p { max-width: 720px; color: var(--ks-muted); font-size: 16px; line-height: 1.7; }
.ks-tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.ks-calculator-card, .ks-summary-card, .ks-last-bill, .ks-tool-content { border: 1px solid var(--ks-line); background: #fff; border-radius: 20px; }
.ks-calculator-card { padding: 26px; }
.ks-tool-section-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.ks-tool-section-head h2, .ks-device-list-section h2 { font-size: 18px; font-weight: 720; }
.ks-tool-section-head p { margin-top: 5px; color: var(--ks-muted); font-size: 13px; line-height: 1.55; }
.ks-text-button { flex: none; min-height: 36px; color: #647681; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.ks-device-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.ks-device-presets button { min-height: 64px; padding: 11px; border: 1px solid #d7e0e4; border-radius: 11px; background: #f9fbfc; color: #294451; font-size: 13px; font-weight: 650; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.ks-device-presets button span { display: block; margin-top: 4px; color: #778792; font-size: 11px; font-weight: 550; }
.ks-device-presets button:hover { border-color: #e2ac67; background: #fff8ec; transform: translateY(-1px); }
.ks-custom-device { margin-top: 24px; padding: 18px; border-radius: 14px; background: #f4f7f8; }
.ks-custom-device h3 { margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.ks-custom-device-grid { display: grid; grid-template-columns: minmax(150px, 1.5fr) 1fr 1fr auto; gap: 10px; align-items: end; }
.ks-custom-device label, .ks-device-inputs label, .ks-last-bill label { display: grid; gap: 6px; color: #50636f; font-size: 11px; font-weight: 650; }
.ks-custom-device input, .ks-device-inputs input, .ks-last-bill input { width: 100%; min-height: 42px; border: 1px solid #cbd7dc; border-radius: 9px; background: #fff; padding: 9px 10px; color: var(--ks-ink); font-size: 14px; font-weight: 550; }
.ks-tool-button { min-height: 42px; border-radius: 9px; background: #203b46; padding: 9px 17px; color: #fff; font-size: 13px; font-weight: 700; }
.ks-tool-button:hover { background: #305460; }
.ks-tool-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.ks-tool-form label { display: grid; align-content: start; gap: 7px; color: #435864; font-size: 12px; font-weight: 700; }
.ks-tool-form input, .ks-tool-form select { width: 100%; min-height: 46px; border: 1px solid #c8d5da; border-radius: 10px; background: #fff; padding: 9px 11px; color: var(--ks-ink); font-size: 15px; font-weight: 550; }
.ks-tool-form small { color: #7b8991; font-size: 10px; font-weight: 500; line-height: 1.45; }
.ks-input-with-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; overflow: hidden; border: 1px solid #c8d5da; border-radius: 10px; background: #fff; }
.ks-input-with-unit input { border: 0; border-radius: 0; }
.ks-input-with-unit > span { padding: 0 12px; color: #6e7e87; font-size: 12px; font-weight: 650; white-space: nowrap; }
.ks-inline-note { margin-top: 20px; padding: 14px 16px; border-radius: 11px; background: #f3f7f8; color: #60737e; font-size: 12px; line-height: 1.6; }
.ks-form-error { margin-top: 14px; color: #b4232b; font-size: 12px; font-weight: 650; }
.ks-form-submit { grid-column: 1 / -1; min-height: 48px; margin-top: 2px; font-size: 14px; }
.ks-block-button { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 18px; text-align: center; }
.ks-compensation-status { display: block; margin: 10px 0 9px; color: #8a4a0b; font-size: 23px; line-height: 1.2; }
.ks-compensation-result > p { color: #5b6f7a; font-size: 13px; line-height: 1.65; }
.ks-compensation-result ul { display: grid; gap: 8px; margin: 17px 0 0; color: #405864; font-size: 12px; line-height: 1.5; }
.ks-compensation-result li { position: relative; padding-left: 17px; }
.ks-compensation-result li::before { position: absolute; left: 0; content: '\2713'; color: #168063; font-weight: 800; }
.ks-faq-list { border-top: 1px solid #e7edef; }
.ks-faq-list details { border-bottom: 1px solid #e7edef; }
.ks-faq-list summary { cursor: pointer; padding: 14px 2px; color: #304a57; font-weight: 700; }
.ks-faq-list p { padding: 0 2px 15px; }
.ks-device-list-section { margin-top: 28px; }
.ks-device-list { display: grid; gap: 10px; margin-top: 13px; }
.ks-device-row { display: grid; grid-template-columns: minmax(130px, .85fr) minmax(320px, 2fr) 105px; gap: 16px; align-items: center; padding: 15px; border: 1px solid #e0e7ea; border-radius: 13px; }
.ks-device-row-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ks-device-row-title strong { overflow: hidden; color: #29434f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ks-device-row-title button { width: 30px; height: 30px; flex: none; border-radius: 8px; color: #8a99a2; font-size: 20px; line-height: 1; }
.ks-device-row-title button:hover { background: #fff0f0; color: #ba3b40; }
.ks-device-inputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ks-device-inputs input { min-height: 38px; padding: 7px 8px; font-size: 13px; }
.ks-device-consumption { text-align: right; }
.ks-device-consumption strong { display: block; color: #a64b08; font-size: 14px; font-variant-numeric: tabular-nums; }
.ks-device-consumption span { display: block; margin-top: 2px; color: #89969d; font-size: 10px; }
.ks-empty-devices { margin-top: 13px; padding: 30px 20px; border: 1px dashed #cbd6db; border-radius: 13px; text-align: center; }
.ks-empty-devices p { color: #405762; font-size: 14px; font-weight: 700; }
.ks-empty-devices span { display: block; margin-top: 5px; color: #7a8992; font-size: 12px; }
.ks-calculator-summary { position: sticky; top: 86px; display: grid; gap: 12px; }
.ks-summary-card { overflow: hidden; padding: 25px; background: radial-gradient(ellipse at 100% 0, #fff0d6, transparent 55%), #fff; }
.ks-summary-label { display: block; color: #677984; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ks-summary-primary { display: block; margin-top: 7px; color: #1d3743; font-size: 38px; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ks-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
.ks-summary-grid > div { padding: 12px; border-radius: 10px; background: #f4f7f8; }
.ks-summary-grid span, .ks-cost-result span { display: block; color: #71818a; font-size: 10px; }
.ks-summary-grid strong { display: block; margin-top: 4px; color: #334d59; font-size: 14px; font-variant-numeric: tabular-nums; }
.ks-price-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #50636f; font-size: 12px; font-weight: 650; }
.ks-price-field > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ks-price-field input { width: 78px; min-height: 38px; border: 1px solid #cbd7dc; border-radius: 8px; padding: 7px 8px; background: #fff; font-weight: 700; text-align: right; }
.ks-cost-result { margin-top: 17px; padding: 16px; border-radius: 12px; background: #203b46; color: #fff; }
.ks-cost-result span { color: #bfd0d6; }
.ks-cost-result strong { display: block; margin-top: 5px; font-size: 27px; font-variant-numeric: tabular-nums; }
.ks-summary-note { margin-top: 13px; color: #70818b; font-size: 11px; line-height: 1.55; }
.ks-share-result { width: 100%; min-height: 42px; margin-top: 15px; border: 1px solid #cdd8dd; border-radius: 10px; color: #36525f; font-size: 13px; font-weight: 700; }
.ks-share-result:hover { border-color: #9cafb8; background: #f8fafb; }
.ks-last-bill { padding: 0 18px; }
.ks-last-bill summary { cursor: pointer; padding: 16px 0; color: #415965; font-size: 13px; font-weight: 700; }
.ks-last-bill > div { display: grid; gap: 10px; padding: 0 0 18px; }
.ks-last-bill [data-last-bill-error] { color: #b52f35; font-size: 11px; }
.ks-tool-content { margin-top: 24px; padding: 28px; color: #536575; font-size: 14px; line-height: 1.75; }
.ks-tool-content h2 { margin: 28px 0 8px; color: var(--ks-ink); font-size: 20px; font-weight: 730; }
.ks-tool-content h2:first-child { margin-top: 0; }
.ks-tool-content a { color: #214e62; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.ks-formula { margin: 16px 0; padding: 14px 17px; border-left: 4px solid #e89b3d; border-radius: 0 10px 10px 0; background: #fff7e9; color: #604523; font-weight: 700; }
.ks-tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 20px; border-radius: 14px; background: #edf4f6; }
.ks-tool-cta strong, .ks-tool-cta span { display: block; }
.ks-tool-cta strong { color: #263f4b; }
.ks-tool-cta span { margin-top: 3px; color: #6b7d87; font-size: 12px; }
.ks-tool-cta a { flex: none; }
@media (max-width: 640px) {
    body > main { padding-top: 20px; }
    .ks-brand-name { font-size: 13px; line-height: 1.15; }
    .ks-brand-name > span { display: block; }
    body > header > div:first-child { gap: 8px; }
    body > header > div:first-child > div:last-child { gap: 9px; }
    .ks-hero { padding: 23px 18px; border-radius: 20px; }
    .ks-hero h1 { margin-top: 17px; font-size: 35px; }
    .ks-hero-intro { font-size: 14px; }
    .ks-finder { margin-top: 22px; padding: 16px; }
    .ks-finder-row { grid-template-columns: 1fr; }
    .ks-finder-types { margin-bottom: 16px; }
    .ks-finder-types label { flex: 1; text-align: center; }
    .ks-region-picker { align-items: stretch; flex-direction: column; gap: 12px; padding: 16px; }
    .ks-region-picker .ks-field { width: 100%; }
    .ks-outage { padding: 18px; }
    .ks-date-tabs { width: 100%; }
    .ks-date-tabs a { flex: 1; padding: 10px 5px; text-align: center; }
    .ks-tool-intro > p { font-size: 14px; }
    .ks-tools-grid { grid-template-columns: 1fr; }
    .ks-tool-card { min-height: 210px; padding: 21px; }
    .ks-calculator-card, .ks-tool-content { padding: 18px; }
    .ks-device-presets { grid-template-columns: 1fr 1fr; }
    .ks-custom-device-grid { grid-template-columns: 1fr 1fr; }
    .ks-tool-form { grid-template-columns: 1fr; }
    .ks-custom-device-grid label:first-of-type { grid-column: 1 / -1; }
    .ks-device-row { grid-template-columns: 1fr; gap: 12px; }
    .ks-device-inputs { grid-template-columns: 1fr 1fr; }
    .ks-device-consumption { text-align: left; }
    .ks-tool-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 959px) {
    .ks-tool-layout { grid-template-columns: 1fr; }
    .ks-calculator-summary { position: static; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) and (max-width: 1100px) {
    .ks-device-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ks-device-row { grid-template-columns: 130px minmax(300px, 1fr) 100px; }
}
@media (max-width: 640px) { .ks-calculator-summary { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .ks-brand-name { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
