.wsg-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 1rem 2rem;
}

.wsg-card {
    background: #fff;
    border: 1px solid #d7dee6;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(16, 43, 67, 0.08);
    overflow: hidden;
}

.wsg-header {
    display: grid;
    gap: 0.35rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, #5b87b3 0%, #4c75a0 45%, #3f6488 100%);
    color: #fff;
}

.wsg-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.wsg-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.wsg-header h1 {
    margin: 0;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1.08;
}

.wsg-lead {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.92);
}

.wsg-header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.wsg-header-actions .uk-button {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(22, 50, 74, 0.18);
    color: #16324a;
}

.wsg-banner,
.wsg-messages {
    margin: 1.25rem 1.25rem 0;
}

.wsg-banner {
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid #cbd8e4;
    background: linear-gradient(180deg, #f3f7fb 0%, #edf3f9 100%);
    border-left: 6px solid #4c75a0;
}

.wsg-banner h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #16324a;
}

.wsg-banner--default {
    border-left-color: #64748b;
}

.wsg-banner--success {
    background: linear-gradient(180deg, #f2faf3 0%, #e9f6eb 100%);
    border-color: #bfdcc5;
    border-left-color: #4f8f61;
}

.wsg-banner--warning {
    background: linear-gradient(180deg, #fff8ee 0%, #fff2df 100%);
    border-color: #ecd1a6;
    border-left-color: #d18a32;
}

.wsg-banner--danger {
    background: linear-gradient(180deg, #fff4f2 0%, #fee8e3 100%);
    border-color: #efc0b4;
    border-left-color: #c2513f;
}

.wsg-richtext p:last-child,
.wsg-richtext ul:last-child,
.wsg-richtext ol:last-child {
    margin-bottom: 0;
}

.wsg-alert {
    margin: 0;
    border-radius: 10px;
}

.wsg-surface {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    align-items: start;
}

.wsg-surface--report {
    grid-template-columns: 1fr;
}

.wsg-report {
    display: grid;
    gap: 1rem;
}

.wsg-panel {
    border: 1px solid #dde6ee;
    border-top: 6px solid #183e63;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 1.15rem;
}

.wsg-panel-heading {
    margin-bottom: 1rem;
}

.wsg-panel-kicker {
    margin: 0 0 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a7084;
}

.wsg-panel-heading h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #16324a;
}

.wsg-panel-heading p:last-child {
    margin: 0.35rem 0 0;
    color: #5a7084;
}

.wsg-form {
    display: grid;
    gap: 0.95rem;
}

.wsg-form-note,
.wsg-meter-note {
    padding: 0.95rem 1rem;
    border-radius: 9px;
    background: linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
    border: 1px solid #d8e2eb;
}

.wsg-form-note p,
.wsg-meter-note p,
.wsg-meter-note h3 {
    margin: 0;
}

.wsg-meter-note {
    display: grid;
    gap: 0.35rem;
}

.wsg-meter-note h3 {
    font-size: 1rem;
    color: #16324a;
}

.wsg-field {
    display: grid;
    gap: 0.55rem;
}

.wsg-field span {
    font-weight: 700;
    color: #16324a;
}

.wsg-field input {
    width: 100%;
    border: 1px solid #b9c7d3;
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    color: #16324a;
    background: #fff;
}

.wsg-select {
    width: 100%;
    border: 1px solid #b9c7d3;
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    color: #16324a;
    background: #fff;
}

.wsg-select:focus {
    outline: none;
    border-color: #4c75a0;
    box-shadow: 0 0 0 3px rgba(76, 117, 160, 0.15);
}

.wsg-field input:focus {
    outline: none;
    border-color: #4c75a0;
    box-shadow: 0 0 0 3px rgba(76, 117, 160, 0.15);
}

.wsg-field input:invalid:not(:placeholder-shown) {
    border-color: #d18a32;
}

.wsg-note {
    margin: 0;
    color: #4f6478;
    font-size: 0.94rem;
    line-height: 1.45;
}

.wsg-privacy-note {
    margin-top: 0.1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #dfe7ee;
    color: #4f6478;
    font-size: 0.93rem;
    line-height: 1.5;
}

.wsg-privacy-note p {
    margin: 0;
}

.wsg-privacy-note a,
.wsg-privacy-details summary {
    color: #2a5d88;
    font-weight: 700;
}

.wsg-inline-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #2a5d88;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.wsg-privacy-details {
    margin-top: 0.55rem;
}

.wsg-privacy-summary {
    display: none;
}

.wsg-privacy-details summary {
    cursor: pointer;
    list-style: none;
}

.wsg-privacy-details summary::-webkit-details-marker {
    display: none;
}

.wsg-privacy-body {
    margin-top: 0.65rem;
    padding: 0.9rem 1rem;
    border: 1px solid #d8e2eb;
    border-radius: 9px;
    background: linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
    display: grid;
    gap: 0.75rem;
}

.wsg-privacy-body p {
    margin: 0;
}

.wsg-address-field {
    position: relative;
}

.wsg-lookup-results {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 0;
    right: 0;
    z-index: 10;
    display: grid;
    gap: 0;
    background: #fff;
    border: 1px solid #b9c7d3;
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(16, 43, 67, 0.14);
    max-height: 16rem;
    overflow-y: auto;
}

.wsg-lookup-item {
    border: 0;
    border-bottom: 1px solid #e6edf3;
    background: #fff;
    color: #16324a;
    font: inherit;
    text-align: left;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
}

.wsg-lookup-item:last-child {
    border-bottom: 0;
}

.wsg-lookup-item:hover,
.wsg-lookup-item:focus {
    background: #eef5fb;
    outline: none;
}

.wsg-actions {
    display: grid;
}

.wsg-actions .uk-button {
    width: 100%;
}

.wsg-submit-status {
    margin: 0;
    color: #5a7084;
    font-size: 0.95rem;
}

.wsg-results-grid {
    display: grid;
    gap: 1rem;
}

.wsg-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(260px, 0.95fr) minmax(520px, 1.45fr) minmax(260px, 0.95fr);
    margin-bottom: 1rem;
    align-items: start;
}

.wsg-result-card {
    border: 1px solid #dde6ee;
    border-top: 6px solid #4c75a0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 1.1rem;
}

.wsg-result-card--wide {
    grid-column: 1 / -1;
}

.wsg-result-card h3,
.wsg-result-card h4 {
    margin: 0;
    color: #16324a;
}

.wsg-result-card header {
    margin-bottom: 0.95rem;
    padding: 0;
    background: transparent;
    border: 0;
}

.wsg-card-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #5a7084;
}

.wsg-summary-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.wsg-summary-list div {
    display: grid;
    gap: 0.15rem;
}

.wsg-summary-list dt {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a7084;
}

.wsg-summary-list dd {
    margin: 0;
    color: #16324a;
}

.wsg-stacked-value {
    display: grid;
    gap: 0.25rem;
}

.wsg-stacked-value span {
    display: block;
}

.wsg-inline-section {
    margin-top: 1rem;
}

.wsg-inline-section h4 {
    margin: 0 0 0.55rem;
    color: #16324a;
    font-size: 0.95rem;
}

.wsg-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.wsg-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.wsg-period-card {
    display: grid;
    gap: 1rem;
}

.wsg-period-facts {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0.15rem 0 0.1rem;
}

.wsg-period-facts div {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.wsg-period-facts dt,
.wsg-period-facts dd {
    margin: 0;
    font-size: 1rem;
}

.wsg-period-facts dt {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a7084;
}

.wsg-period-facts dd {
    color: #16324a;
    font-weight: 500;
}

.wsg-period-projection {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    padding: 1rem 1rem;
    border: 1px solid #cfdbe6;
    border-radius: 10px;
    background: linear-gradient(180deg, #f6faff 0%, #edf4fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    text-align: center;
}

.wsg-period-projection strong {
    color: #224a6b;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.wsg-tier-chart-panel {
    display: grid;
    gap: 0.6rem;
}

.wsg-tier-chart-frame {
    padding-top: 0.35rem;
    border-top: 1px solid #e3ebf2;
}

.wsg-stat {
    padding: 0.85rem 0.9rem;
    border: 1px solid #dce5ed;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
}

.wsg-stat-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a7084;
}

.wsg-stat strong {
    font-size: 1.15rem;
    color: #16324a;
}

.wsg-table-wrap {
    overflow-x: auto;
}

.wsg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.wsg-table th,
.wsg-table td {
    border-bottom: 1px solid #e6edf3;
    padding: 0.6rem 0.4rem;
    text-align: left;
    color: #16324a;
}

.wsg-table th {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a7084;
}

.wsg-table--nested th,
.wsg-table--nested td {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    font-size: 0.9rem;
}

.wsg-month-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wsg-empty {
    margin: 0;
    color: #5a7084;
}

.wsg-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #16324a;
}

.wsg-hourly-cell {
    min-width: 16rem;
}

.wsg-hourly-details summary {
    cursor: pointer;
    color: #2a5d88;
    font-weight: 700;
}

.wsg-hourly-details[open] summary {
    margin-bottom: 0.6rem;
}

.wsg-chart-card {
    display: grid;
    gap: 1rem;
}

.wsg-chart-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.wsg-chart-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wsg-chart-paging {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wsg-chart-nav,
.wsg-chart-back {
    border: 1px solid #b9c7d3;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: #fff;
    color: #16324a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.wsg-chart-summary h4 {
    margin: 0 0 0.2rem;
    color: #16324a;
}

.wsg-chart-summary p {
    margin: 0;
    color: #5a7084;
}

.wsg-chart-nav[disabled] {
    opacity: 0.5;
    cursor: default;
}

.wsg-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.wsg-chart-header h3 {
    margin-bottom: 0.25rem;
}

.wsg-chart-header p {
    margin: 0;
    color: #5a7084;
}

.wsg-chart-toggles {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wsg-chart-toggle {
    border: 1px solid #b9c7d3;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: #fff;
    color: #16324a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.wsg-chart-toggle.is-active {
    background: #4c75a0;
    border-color: #4c75a0;
    color: #fff;
}

.wsg-chart-view {
    display: none;
    gap: 1rem;
}

.wsg-chart-view.is-active {
    display: grid;
}

.wsg-chart-frame {
    position: relative;
    min-height: 300px;
    padding: 0.75rem;
    border: 1px solid #dde6ee;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.wsg-chart-frame canvas {
    width: 100% !important;
    height: 320px !important;
}

.wsg-chart-frame--compact canvas {
    height: 220px !important;
}

.wsg-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.wsg-kpi-card {
    padding: 0.85rem 0.9rem;
    border: 1px solid #dce5ed;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
}

.wsg-kpi-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5a7084;
}

.wsg-kpi-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.15rem;
    color: #16324a;
}

.wsg-panel-actions {
    margin-top: 0.9rem;
}

.wsg-panel--hidden {
    display: none;
}

.wsg-surface--report .wsg-panel--results {
    width: 100%;
}

.wsg-warranty {
    margin: 0 0 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #d8e2eb;
}

.wsg-warranty--within_warranty {
    background: linear-gradient(180deg, #f2faf3 0%, #e9f6eb 100%);
    border-color: #bfdcc5;
}

.wsg-warranty--nearing_expiration {
    background: linear-gradient(180deg, #fff8ee 0%, #fff2df 100%);
    border-color: #ecd1a6;
}

.wsg-warranty--out_of_warranty {
    background: linear-gradient(180deg, #fff4f2 0%, #fee8e3 100%);
    border-color: #efc0b4;
}

@media (max-width: 900px) {
    .wsg-surface {
        grid-template-columns: 1fr;
    }

    .wsg-summary-grid {
        grid-template-columns: 1fr;
    }

    .wsg-stat-grid {
        grid-template-columns: 1fr;
    }

    .wsg-register-grid {
        grid-template-columns: 1fr;
    }

    .wsg-chart-header {
        flex-direction: column;
    }

    .wsg-chart-toolbar {
        flex-direction: column;
    }

    .wsg-chart-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .wsg-header-row {
        align-items: flex-start;
    }

    .wsg-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wsg-result-card {
    border: 1px solid #dce6ee;
    border-top: 6px solid #4c75a0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.wsg-result-card h3 {
    margin: 0;
    font-size: 1.12rem;
    color: #16324a;
}

.wsg-result-card ul {
    margin: 0;
    padding: 1rem 1rem 1rem 1.3rem;
    color: #274862;
    display: grid;
    gap: 0.7rem;
}

.wsg-faq-list {
    display: grid;
    gap: 0.75rem;
}

.wsg-faq-item {
    border: 1px solid #dce5ed;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fc 100%);
    padding: 0.9rem 1rem;
}

.wsg-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #16324a;
    list-style: none;
}

.wsg-faq-item summary::-webkit-details-marker {
    display: none;
}

.wsg-faq-item p {
    margin: 0.7rem 0 0;
    color: #4f6478;
    line-height: 1.55;
}

.wsg-tier-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    color: #5a7084;
    font-size: 1rem;
}

.wsg-tier-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.wsg-tier-legend-line,
.wsg-tier-legend-marker {
    display: inline-block;
    width: 1.7rem;
    height: 0;
    border-top: 4px solid #111111;
}

.wsg-tier-legend-marker {
    width: 0;
    height: 1rem;
    border-top: 0;
    border-left: 3px solid #2f80ed;
}

.wsg-tier-legend-marker--forecast {
    border-left-style: dashed;
}

.wsg-tier-guide {
    width: 100%;
    height: auto;
    display: block;
}

.wsg-tier-hitbox {
    fill: transparent;
    pointer-events: all;
}

.wsg-tier-grid-line {
    stroke: #d7e1ea;
    stroke-width: 1;
}

.wsg-tier-grid-line--vertical {
    stroke: #e6edf3;
}

.wsg-tier-axis {
    stroke: #97aabd;
    stroke-width: 1.25;
}

.wsg-tier-rate-line {
    fill: none;
    stroke: #111111;
    stroke-width: 4;
    stroke-linejoin: round;
}

.wsg-tier-usage-line {
    stroke: #2f80ed;
    stroke-width: 3;
}

.wsg-tier-usage-line--forecast {
    stroke-dasharray: 8 6;
}

.wsg-tier-axis-label {
    fill: #5a7084;
    font-size: 18px;
    font-family: inherit;
}

.wsg-tier-axis-title {
    fill: #5a7084;
    font-size: 21px;
    font-weight: 600;
    font-family: inherit;
}

@media (max-width: 960px) {
    .wsg-surface {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wsg-shell {
        margin-top: 1rem;
        padding: 0 0.75rem 1.5rem;
    }

    .wsg-header,
    .wsg-surface {
        padding: 1rem;
    }

    .wsg-banner,
    .wsg-messages {
        margin: 1rem 1rem 0;
    }
}
