/* =========================================================
   SHEERs Simulator
   Phase 1.3 — Visual System
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {

    /* SHEERs Brand */
    --sheers-navy: #061A36;
    --sheers-deep-navy: #031126;
    --sheers-blue: #082F5C;
    --sheers-cyan: #10BCEB;
    --sheers-light-cyan: #8FE8FF;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F4F8FC;
    --text-dark: #0B1F38;
    --text-muted: #6B7C91;

    /* UI */
    --border-light: rgba(16, 188, 235, 0.18);
    --card-shadow: 0 18px 50px rgba(3, 17, 38, 0.12);

    /* Shape */
    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 26px;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s ease;
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--off-white);

    color: var(--text-dark);

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   3. APPLICATION CONTAINER
   ========================================================= */

#app {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(16, 188, 235, 0.10),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #F8FBFE 0%,
            #F4F8FC 100%
        );
}


/* =========================================================
   4. HEADER
   ========================================================= */

.app-header {
    width: 100%;

    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5vw;

    background: rgba(255, 255, 255, 0.90);

    border-bottom: 1px solid rgba(6, 26, 54, 0.08);

    backdrop-filter: blur(14px);

    position: relative;
    z-index: 10;
}


/* =========================================================
   5. BRAND
   ========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 14px;
}


.brand-logo {
    width: 48px;
    height: 48px;

    object-fit: contain;

    display: block;
}


.brand-text {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.brand-text h1 {
    font-size: 22px;

    font-weight: 800;

    letter-spacing: 0.08em;

    line-height: 1;

    color: var(--sheers-navy);
}


.brand-text p {
    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: var(--sheers-cyan);
}


/* =========================================================
   6. SYSTEM STATUS
   ========================================================= */

.system-status {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px 14px;

    border-radius: 999px;

    background: rgba(6, 26, 54, 0.045);

    border: 1px solid rgba(6, 26, 54, 0.08);

    color: var(--text-muted);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.12em;

    white-space: nowrap;
}


.status-indicator {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--text-muted);

    box-shadow:
        0 0 0 4px rgba(107, 124, 145, 0.10);
}


/* =========================================================
   7. MAIN CONTENT
   ========================================================= */

.main-content {
    width: min(1200px, 90%);

    margin: 0 auto;

    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 80px 0;
}


/* =========================================================
   8. WELCOME SECTION
   ========================================================= */

.welcome-section {
    max-width: 760px;

    margin: 0 auto;

    text-align: center;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(16, 188, 235, 0.09);

    border: 1px solid rgba(16, 188, 235, 0.16);

    color: var(--sheers-cyan);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.welcome-section h2 {
    margin-bottom: 20px;

    font-size: clamp(42px, 6vw, 72px);

    line-height: 0.98;

    font-weight: 800;

    letter-spacing: -0.045em;

    color: var(--sheers-navy);
}


.welcome-section h2 span {
    display: block;

    margin-top: 8px;

    font-size: 0.42em;

    font-weight: 500;

    letter-spacing: 0.01em;

    color: var(--sheers-blue);
}


.welcome-description {
    max-width: 650px;

    margin: 0 auto 32px;

    font-size: 16px;

    line-height: 1.75;

    color: var(--text-muted);
}


/* =========================================================
   9. PRIMARY BUTTON
   ========================================================= */

/* =========================================================
   PRIMARY BUTTON SYSTEM
   ========================================================= */

.primary-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 190px;

    padding: 15px 30px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--sheers-cyan),
            #1684C4
        );

    color: var(--white);

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.10em;

    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 12px 28px
        rgba(16, 188, 235, 0.24);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;

}


.primary-button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 17px 35px
        rgba(16, 188, 235, 0.32);

    filter: brightness(1.06);

}


.primary-button:active {

    transform: translateY(-1px);

    box-shadow:
        0 9px 20px
        rgba(16, 188, 235, 0.22);

}


.primary-button:focus-visible {

    outline: 3px solid
        rgba(16, 188, 235, 0.25);

    outline-offset: 4px;

}


/* =========================================================
   10. SIMULATION AREA
   ========================================================= */

.simulation-area {
    width: 100%;

    margin-top: 60px;
}


.placeholder-card {
    width: min(720px, 100%);

    margin: 0 auto;

    padding: 34px;

    text-align: center;

    background: rgba(255, 255, 255, 0.82);

    border: 1px solid var(--border-light);

    border-radius: var(--radius-medium);

    box-shadow: var(--card-shadow);

    backdrop-filter: blur(12px);

    animation: cardAppear 0.4s ease;
}


.placeholder-card h3 {
    margin-bottom: 10px;

    color: var(--sheers-navy);

    font-size: 20px;

    font-weight: 750;
}


.placeholder-card p {
    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   11. FOOTER
   ========================================================= */

.app-footer {
    min-height: 54px;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5vw;

    background: var(--sheers-deep-navy);

    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.app-footer span:first-child {
    color: var(--sheers-light-cyan);

    font-weight: 800;

    letter-spacing: 0.14em;
}


/* =========================================================
   12. ANIMATIONS
   ========================================================= */

@keyframes cardAppear {

    from {
        opacity: 0;

        transform: translateY(12px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* =========================================================
   13. RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 700px) {

    .app-header {
        min-height: 72px;

        padding: 0 22px;
    }


    .brand-logo {
        width: 40px;
        height: 40px;
    }


    .brand-text h1 {
        font-size: 18px;
    }


    .brand-text p {
        display: none;
    }


    .system-status {
        padding: 7px 10px;

        font-size: 8px;
    }


    .main-content {
        width: 88%;

        padding: 60px 0;
    }


    .welcome-section h2 {
        font-size: 48px;
    }


    .welcome-description {
        font-size: 14px;
    }


    .app-footer {
        min-height: auto;

        padding: 18px 22px;

        flex-direction: column;

        gap: 8px;

        text-align: center;
    }
}
/* =========================================================
   SHEERs Responsive Foundation
   Mobile + Tablet Optimization
   ========================================================= */

@media (max-width: 900px) {

    .main-content {
        width: min(92%, 760px);
        padding: 65px 0;
    }

    .welcome-section {
        max-width: 680px;
    }

    .welcome-section h2 {
        font-size: clamp(42px, 9vw, 64px);
    }

    .simulation-area {
        margin-top: 45px;
    }
}


@media (max-width: 600px) {

    body {
        overflow-x: hidden;
    }

    .app-header {
        min-height: 68px;
        padding: 0 18px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-text h1 {
        font-size: 18px;
    }

    .system-status {
        padding: 7px 9px;
        gap: 6px;
        font-size: 8px;
        letter-spacing: 0.08em;
    }

    .status-indicator {
        width: 7px;
        height: 7px;
    }

    .main-content {
        width: 90%;
        padding: 55px 0 45px;
    }

    .eyebrow {
        margin-bottom: 16px;
        padding: 7px 11px;
        font-size: 8px;
        letter-spacing: 0.14em;
    }

    .welcome-section h2 {
        font-size: clamp(40px, 13vw, 58px);
        letter-spacing: -0.05em;
    }

    .welcome-section h2 span {
        margin-top: 10px;
        font-size: 0.40em;
        line-height: 1.2;
    }

    .welcome-description {
        margin-bottom: 28px;
        font-size: 14px;
        line-height: 1.65;
    }

    #startSimulation {
        width: 100%;
        max-width: 320px;
        padding: 15px 22px;
    }

    .simulation-area {
        margin-top: 38px;
    }

    .placeholder-card {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .placeholder-card h3 {
        font-size: 18px;
    }

    .placeholder-card p {
        font-size: 13px;
    }

    .app-footer {
        padding: 18px 20px;
        gap: 7px;
        font-size: 8px;
        line-height: 1.5;
    }
}


@media (max-width: 380px) {

    .app-header {
        padding: 0 14px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .brand-text h1 {
        font-size: 16px;
    }

    .system-status {
        padding: 6px 7px;
        font-size: 7px;
    }

    .main-content {
        width: 92%;
    }

    .welcome-section h2 {
        font-size: 39px;
    }

    .welcome-description {
        font-size: 13px;
    }
}
/* =========================================================
   Application States
   ========================================================= */

.application-state {
    display: none;
    width: 100%;
}


.application-state.active-state {
    display: block;

    animation: stateEnter 0.45s ease;
}


/* =========================================================
   State Containers
   ========================================================= */

.state-container {

    width: min(1000px, 100%);

    margin: 0 auto;

    text-align: center;
}


.state-container h2 {

    margin-bottom: 18px;

    font-size: clamp(
        36px,
        5vw,
        58px
    );

    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.04em;

    color: var(--sheers-navy);

}


.state-description {

    max-width: 620px;

    margin: 0 auto 35px;

    color: var(--text-muted);

    font-size: 15px;

    line-height: 1.7;

}


/* =========================================================
   State Card
   ========================================================= */

.state-card {

    width: min(650px, 100%);

    margin: 0 auto 30px;

    padding: 40px 30px;

    background: rgba(
        255,
        255,
        255,
        0.85
    );

    border:

        1px solid
        var(--border-light);

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--card-shadow);

}


.state-card h3 {

    margin-bottom: 10px;

    color: var(--sheers-navy);

    font-size: 20px;

}


.state-card p {

    color: var(--text-muted);

    font-size: 14px;

}


/* =========================================================
   Loading Orb
   ========================================================= */

.loading-orb {

    width: 70px;

    height: 70px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:

        rgba(
            16,
            188,
            235,
            0.08
        );

    border:

        1px solid
        rgba(
            16,
            188,
            235,
            0.25
        );

}


.loading-orb span {

    width: 18px;

    height: 18px;

    border-radius: 50%;

    background:
        var(--sheers-cyan);

    box-shadow:

        0 0 20px
        rgba(
            16,
            188,
            235,
            0.7
        );

    animation:
        pulseOrb 1.5s
        infinite ease-in-out;

}


/* =========================================================
   Active System
   ========================================================= */

.active-card {

    border-color:
        rgba(
            16,
            188,
            235,
            0.35
        );

}


.active-indicator {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 22px;

    padding: 8px 13px;

    border-radius: 999px;

    background:

        rgba(
            16,
            188,
            235,
            0.08
        );

    color:
        var(--sheers-cyan);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.13em;

}


.active-indicator span {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background:
        var(--sheers-cyan);

    box-shadow:

        0 0 10px
        rgba(
            16,
            188,
            235,
            0.7
        );

}


/* =========================================================
   Results Grid
   ========================================================= */

.results-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            1fr
        );

    gap: 16px;

    margin-bottom: 32px;

}


.result-card {

    padding: 26px 18px;

    background:
        rgba(
            255,
            255,
            255,
            0.88
        );

    border:
        1px solid
        var(--border-light);

    border-radius:
        var(--radius-medium);

    box-shadow:
        0 12px 35px
        rgba(
            3,
            17,
            38,
            0.08
        );

}


.result-card span {

    display: block;

    margin-bottom: 12px;

    color:
        var(--text-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.12em;

}


.result-card strong {

    display: block;

    color:
        var(--sheers-navy);

    font-size: 24px;

    font-weight: 800;

}


/* =========================================================
   Secondary Button
   ========================================================= */

.secondary-button {

    padding: 13px 26px;

    border:

        1px solid
        rgba(
            6,
            26,
            54,
            0.15
        );

    border-radius: 11px;

    background:
        transparent;

    color:
        var(--sheers-navy);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background
        var(--transition-fast),

        border-color
        var(--transition-fast),

        transform
        var(--transition-fast);

}


.secondary-button:hover {

    background:
        rgba(
            16,
            188,
            235,
            0.06
        );

    border-color:
        rgba(
            16,
            188,
            235,
            0.30
        );

    transform:
        translateY(-1px);

}


/* =========================================================
   Status Indicator Active
   ========================================================= */

.status-indicator.status-active {

    background:
        var(--sheers-cyan);

    box-shadow:

        0 0 0 4px
        rgba(
            16,
            188,
            235,
            0.12
        ),

        0 0 12px
        rgba(
            16,
            188,
            235,
            0.6
        );

}


/* =========================================================
   Animations
   ========================================================= */

@keyframes stateEnter {

    from {

        opacity: 0;

        transform:
            translateY(14px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


@keyframes pulseOrb {

    0%,
    100% {

        transform:
            scale(0.85);

        opacity: 0.65;

    }

    50% {

        transform:
            scale(1.15);

        opacity: 1;

    }

}


/* =========================================================
   Responsive Results
   ========================================================= */

@media (max-width: 800px) {

    .results-grid {

        grid-template-columns:
            repeat(
                2,
                1fr
            );

    }

}


@media (max-width: 520px) {

    .state-card {

        padding: 30px 20px;

    }


    .results-grid {

        grid-template-columns:
            1fr;

    }


    .result-card {

        padding: 22px;

    }

}
/* =========================================================
   PHASE 1.5 — FACTORY POWER SCENARIO
   ========================================================= */


/* =========================================================
   Factory Container
   ========================================================= */

.factory-container {

    width: min(1120px, 100%);

    margin: 0 auto;

}


.factory-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 38px;

}


.factory-heading h2 {

    margin-bottom: 12px;

    font-size: clamp(
        34px,
        5vw,
        54px
    );

    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.04em;

    color:
        var(--sheers-navy);

}


.factory-status {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 10px 14px;

    border-radius: 999px;

    background:
        rgba(
            16,
            188,
            235,
            0.07
        );

    border:
        1px solid
        rgba(
            16,
            188,
            235,
            0.18
        );

    color:
        var(--sheers-blue);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.12em;

    white-space: nowrap;

}


.factory-status-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background:
        var(--sheers-cyan);

    box-shadow:

        0 0 12px
        rgba(
            16,
            188,
            235,
            0.65
        );

}


/* =========================================================
   Main Factory Layout
   ========================================================= */

.factory-layout {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;

}


/* =========================================================
   Panels
   ========================================================= */

.loads-panel,
.electrical-panel {

    padding: 28px;

    background:
        rgba(
            255,
            255,
            255,
            0.88
        );

    border:
        1px solid
        var(--border-light);

    border-radius:
        var(--radius-medium);

    box-shadow:
        var(--card-shadow);

}


.panel-heading {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 24px;

}


.panel-label {

    display: block;

    margin-bottom: 7px;

    color:
        var(--sheers-cyan);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.14em;

}


.panel-heading h3 {

    color:
        var(--sheers-navy);

    font-size: 19px;

    font-weight: 800;

}


.load-count {

    padding: 7px 9px;

    border-radius: 7px;

    background:
        var(--off-white);

    color:
        var(--text-muted);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.08em;

}


/* =========================================================
   Load Cards
   ========================================================= */

.load-card {

    display: grid;

    grid-template-columns:
        42px 1fr auto;

    align-items: center;

    gap: 14px;

    padding: 16px 0;

    border-bottom:
        1px solid
        rgba(
            6,
            26,
            54,
            0.07
        );

}


.load-card:last-child {

    border-bottom: none;

}


.load-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--sheers-navy),
            var(--sheers-blue)
        );

    color:
        var(--sheers-light-cyan);

    font-size: 14px;

    font-weight: 800;

}


.load-information {

    min-width: 0;

}


.load-title-row {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 4px;

}


.load-title-row strong {

    color:
        var(--sheers-navy);

    font-size: 13px;

}


.load-running {

    padding: 3px 6px;

    border-radius: 5px;

    background:
        rgba(
            16,
            188,
            235,
            0.08
        );

    color:
        var(--sheers-cyan);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 0.08em;

}


.load-information p {

    margin-bottom: 9px;

    color:
        var(--text-muted);

    font-size: 10px;

}


.load-bar {

    width: 100%;

    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(
            6,
            26,
            54,
            0.07
        );

}


.load-bar span {

    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--sheers-blue),
            var(--sheers-cyan)
        );

}


.load-power {

    color:
        var(--sheers-navy);

    font-size: 13px;

    white-space: nowrap;

}


/* =========================================================
   Electrical Metrics
   ========================================================= */

.metric-main {

    padding: 22px;

    margin-bottom: 16px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(
                6,
                26,
                54,
                0.04
            ),
            rgba(
                16,
                188,
                235,
                0.07
            )
        );

}


.metric-main > span {

    display: block;

    margin-bottom: 4px;

    color:
        var(--text-muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.12em;

}


.metric-main strong {

    display: block;

    margin-bottom: 12px;

    color:
        var(--sheers-navy);

    font-size: 42px;

    font-weight: 800;

    line-height: 1;

}


.metric-scale {

    width: 100%;

    height: 7px;

    margin-bottom: 9px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(
            6,
            26,
            54,
            0.08
        );

}


.metric-scale span {

    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--sheers-blue),
            var(--sheers-cyan)
        );

}


.metric-main p {

    color:
        var(--text-muted);

    font-size: 10px;

}


/* =========================================================
   Metric Rows
   ========================================================= */

.metric-row {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;

    margin-bottom: 12px;

}


.metric-row > div {

    padding: 15px;

    border-radius: 11px;

    background:
        var(--off-white);

}


.metric-row span {

    display: block;

    margin-bottom: 6px;

    color:
        var(--text-muted);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.09em;

}


.metric-row strong {

    color:
        var(--sheers-navy);

    font-size: 15px;

    font-weight: 800;

}


/* =========================================================
   Problem Message
   ========================================================= */

.problem-message {

    display: flex;

    align-items: flex-start;

    gap: 13px;

    margin: 20px 0 22px;

    padding: 15px;

    border-radius: 12px;

    background:
        rgba(
            6,
            26,
            54,
            0.045
        );

    border:
        1px solid
        rgba(
            6,
            26,
            54,
            0.07
        );

}


.problem-symbol {

    width: 28px;

    height: 28px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        var(--sheers-navy);

    color:
        var(--sheers-light-cyan);

    font-size: 13px;

    font-weight: 900;

}


.problem-message strong {

    display: block;

    margin-bottom: 5px;

    color:
        var(--sheers-navy);

    font-size: 11px;

}


.problem-message p {

    color:
        var(--text-muted);

    font-size: 10px;

    line-height: 1.5;

}


/* =========================================================
   Factory Explanation
   ========================================================= */

.factory-explanation {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 20px;

    padding: 18px 22px;

    border-left:
        3px solid
        var(--sheers-cyan);

    background:
        rgba(
            16,
            188,
            235,
            0.045
        );

}


.factory-explanation > span {

    flex-shrink: 0;

    color:
        var(--sheers-cyan);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 0.13em;

}


.factory-explanation p {

    color:
        var(--text-muted);

    font-size: 11px;

    line-height: 1.55;

}


/* =========================================================
   Responsive Factory Layout
   ========================================================= */

@media (max-width: 850px) {

    .factory-layout {

        grid-template-columns:
            1fr;

    }

}


@media (max-width: 600px) {

    .factory-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;

        margin-bottom: 25px;

    }


    .loads-panel,
    .electrical-panel {

        padding: 20px;

    }


    .load-card {

        grid-template-columns:
            38px 1fr;

    }


    .load-icon {

        width: 38px;

        height: 38px;

    }


    .load-power {

        grid-column: 2;

    }


    .metric-main {

        padding: 18px;

    }


    .metric-main strong {

        font-size: 36px;

    }


    .metric-row {

        grid-template-columns:
            1fr;

    }


    .factory-explanation {

        align-items: flex-start;

        flex-direction: column;

        gap: 7px;

    }

}
/* =========================================================
   PHASE 1.7 — SHEERs ACTIVATION EXPERIENCE
   ========================================================= */

.sheers-active-panel {
    width: min(100%, 1100px);
    margin: 0 auto;
    text-align: center;
    padding: 30px 20px 50px;
}


.sheers-stage-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;

    background: #e8f8ff;
    border: 1px solid #bdeeff;

    color: #08aee0;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.8px;
}


.sheers-active-title {
    margin: 28px 0 10px;

    color: #061a3a;

    font-size: clamp(
        38px,
        5vw,
        68px
    );

    line-height: 1.05;
}


.sheers-active-subtitle {
    max-width: 760px;
    margin: 0 auto 35px;

    color: #617797;

    font-size: 17px;
    line-height: 1.6;
}


.sheers-process-card {

    max-width: 900px;

    margin: 0 auto;

    padding: 38px;

    background: #ffffff;

    border: 1px solid #c9edff;

    border-radius: 28px;

    box-shadow:
        0 25px 70px rgba(
            7,
            47,
            92,
            0.10
        );
}


.sheers-process-status {

    color: #071d40;

    font-size: 23px;

    font-weight: 800;

    letter-spacing: 0.5px;
}


.sheers-process-message {

    margin-top: 10px;

    color: #66809e;

    font-size: 16px;

    line-height: 1.5;

    min-height: 48px;
}


.sheers-progress {

    width: 100%;

    height: 8px;

    margin: 28px 0 32px;

    background: #e8eef4;

    border-radius: 999px;

    overflow: hidden;
}


.sheers-progress-bar {

    width: 0%;

    height: 100%;

    background: linear-gradient(
        90deg,
        #073568,
        #10b7e5
    );

    border-radius: 999px;

    transition:
        width 0.45s ease;
}


.sheers-electrical-readings {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;

    margin-top: 20px;
}


.sheers-reading {

    padding: 22px;

    background: #f4f8fc;

    border-radius: 18px;

    text-align: left;
}


.sheers-reading span {

    display: block;

    margin-bottom: 9px;

    color: #7087a1;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.4px;
}


.sheers-reading strong {

    color: #071d40;

    font-size: 27px;
}


.sheers-switching {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;

    margin-top: 18px;
}


.sheers-switch {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px 17px;

    border: 1px solid #d8e7f0;

    border-radius: 14px;

    background: #ffffff;
}


.sheers-switch span {

    color: #617894;

    font-size: 12px;

    font-weight: 700;
}


.sheers-switch strong {

    color: #8795a5;

    font-size: 12px;

    letter-spacing: 1px;
}


#phase17Results {

    margin-top: 30px;

    min-width: 230px;
}


#phase17Results:disabled {

    opacity: 0.55;

    cursor: not-allowed;
}


@media (
    max-width: 700px
) {

    .sheers-process-card {

        padding: 24px 18px;

        border-radius: 20px;

    }


    .sheers-electrical-readings {

        grid-template-columns: 1fr;

    }


    .sheers-switching {

        grid-template-columns: 1fr;

    }


    .sheers-reading {

        text-align: center;

    }


    .sheers-active-title {

        font-size: 38px;

    }

}
/* =========================================================
   PHASE 1.8 — LIVE ELECTRICAL VISUALIZATION
   ========================================================= */

.sheers-waveform-card {

    margin-top: 24px;

    padding: 26px;

    background: #ffffff;

    border: 1px solid #c9edff;

    border-radius: 22px;

    text-align: left;

}


.sheers-waveform-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 20px;

}


.sheers-waveform-label {

    display: block;

    margin-bottom: 6px;

    color: #08aee0;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.sheers-waveform-header h3 {

    margin: 0;

    color: #071d40;

    font-size: 20px;

}


.phase-angle-display {

    padding: 10px 15px;

    border-radius: 999px;

    background: #eef8fc;

    border: 1px solid #ccecf7;

    color: #073568;

    font-size: 12px;

    font-weight: 800;

    white-space: nowrap;

}


.sheers-waveform {

    width: 100%;

    height: 230px;

    overflow: hidden;

    border-radius: 16px;

}


#powerFactorCanvas {

    display: block;

    width: 100%;

    height: 100%;

}


.sheers-waveform-legend {

    display: flex;

    gap: 25px;

    margin-top: 14px;

}


.sheers-waveform-legend span {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #637b96;

    font-size: 12px;

    font-weight: 700;

}


.wave-dot {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    display: inline-block;

}


.voltage-dot {

    background: #073568;

}


.current-dot {

    background: #10b7e5;

}


@media (
    max-width: 700px
) {

    .sheers-waveform-card {

        padding: 18px;

    }


    .sheers-waveform-header {

        flex-direction: column;

        align-items: flex-start;

    }


    .sheers-waveform {

        height: 180px;

    }

}