.draft-page-shell {
    margin-top: 18px;
    margin-bottom: 40px;
}

.draft-hero-panel,
.draft-system-panel,
.draft-components-panel {
    border: 1px solid rgba(138, 122, 93, 0.16);
    border-radius: 18px;
    background: rgba(249, 246, 238, 0.74);
    backdrop-filter: blur(1px);
}

.draft-hero-panel {
    padding: 22px;
    margin-bottom: 18px;
}

.draft-hero-head {
    margin-bottom: 16px;
}

.draft-hero-kicker {
    margin: 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 11px;
    color: #557192;
    font-weight: 700;
}

.draft-hero-title {
    margin: 8px 0 8px;
    font-size: 32px;
    line-height: 1.2;
    color: #1f2430;
}

.draft-hero-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #4f5157;
}

.draft-hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.draft-metric-card {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(138, 122, 93, 0.12);
}

.draft-metric-label {
    margin: 0 0 6px;
    font-size: 12px;
    color: #65717f;
}

.draft-metric-value {
    margin: 0;
    font-size: 27px;
    line-height: 1;
    font-weight: 700;
    color: #253346;
}

.draft-system-panel {
    padding: 18px;
    margin-bottom: 18px;
}

.draft-system-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.draft-system-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.draft-system-select-wrap.is-single {
    opacity: 0.76;
}

.draft-system-label {
    margin: 0;
    font-size: 13px;
    color: #5d6875;
    font-weight: 700;
}

.draft-system-select-shell {
    position: relative;
}

.draft-system-select {
    appearance: none;
    min-width: 280px;
    border: 1px solid rgba(116, 125, 138, 0.35);
    border-radius: 10px;
    padding: 9px 34px 9px 12px;
    font-size: 14px;
    color: #243343;
    background: rgba(255, 255, 255, 0.92);
}

.draft-system-select-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #5b6d83;
    pointer-events: none;
}

.draft-scene-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.draft-scene-btn {
    border: 1px solid rgba(116, 125, 138, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #33475d;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    transition: all 0.2s ease;
}

.draft-scene-btn:hover,
.draft-scene-btn:focus {
    color: #214f7a;
    border-color: rgba(33, 79, 122, 0.5);
    outline: none;
}

.draft-scene-btn.is-active {
    background: linear-gradient(120deg, rgba(57, 90, 123, 0.15), rgba(57, 90, 123, 0.02));
    color: #214f7a;
    border-color: rgba(33, 79, 122, 0.45);
}

.draft-scene-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.draft-system-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.9fr) minmax(280px, 1fr);
    gap: 14px;
}

.draft-stage-wrap {
    position: relative;
    border-radius: 14px;
    background: rgba(253, 252, 248, 0.94);
    border: 1px solid rgba(138, 122, 93, 0.14);
    overflow: hidden;
}

.draft-system-svg {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--draft-system-aspect, 2670 / 1846);
    min-height: 520px;
}

.draft-flow-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
}

.draft-bg-image {
    opacity: 1;
}

.draft-link {
    fill: none;
    stroke: rgba(91, 101, 115, 0.24);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.42;
    transition: opacity 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.draft-link--beer {
    stroke: rgba(219, 145, 43, 0.92);
}

.draft-link--gas {
    stroke: rgba(44, 110, 175, 0.95);
}

.draft-link--annotation {
    stroke: rgba(25, 142, 204, 0.65);
}

.draft-link--role-callout {
    stroke-width: 4;
    stroke-dasharray: 12 9;
    opacity: 0.55;
}

.draft-link--role-decorative {
    stroke-width: 3;
    opacity: 0.35;
}

.draft-link.is-scene-hidden {
    opacity: 0 !important;
}

.draft-link.is-step-hidden {
    opacity: 0 !important;
}

.draft-link.is-active {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(31, 55, 83, 0.35));
}

.draft-link.is-flowing {
    stroke-dasharray: 30 20;
    animation: draft-flow 1.35s linear infinite;
}

.draft-stage-wrap.is-webgl-flow .draft-link.is-flowing {
    stroke-dasharray: none;
    animation: none;
    opacity: 0.9;
    filter: drop-shadow(0 0 6px rgba(31, 55, 83, 0.3));
}

.draft-stage-wrap.is-webgl-flow .draft-link.is-active {
    opacity: 0.8;
    filter: drop-shadow(0 0 4px rgba(31, 55, 83, 0.22));
}

.draft-link.is-clean {
    stroke: rgba(57, 133, 101, 0.95);
}

.draft-link.is-fault {
    stroke: rgba(189, 54, 54, 0.98);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(166, 33, 33, 0.42));
}

@keyframes draft-flow {
    to {
        stroke-dashoffset: -120;
    }
}

.draft-hotspot {
    fill: rgba(255, 255, 255, 0.01);
    stroke: rgba(60, 84, 110, 0.08);
    stroke-width: 3;
    stroke-dasharray: 14 10;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, stroke 0.2s ease, fill 0.2s ease;
}

.draft-hotspot:focus {
    opacity: 0.72;
    outline: none;
    stroke: rgba(43, 90, 136, 0.42);
    fill: transparent;
}

.draft-hotspot:hover {
    opacity: 0.62;
    stroke: rgba(51, 93, 136, 0.38);
    fill: transparent;
}

.draft-hotspot.is-scene-active {
    opacity: 0;
    stroke: transparent;
    fill: transparent;
}

.draft-hotspot.is-selected {
    opacity: 0;
    stroke: transparent;
    fill: transparent;
}

.draft-hotspot.is-fault {
    opacity: 1;
    stroke: rgba(186, 58, 58, 0.92);
    fill: rgba(216, 75, 75, 0.04);
}

.draft-status-panel {
    border-radius: 14px;
    border: 1px solid rgba(138, 122, 93, 0.14);
    background: rgba(252, 250, 245, 0.92);
    padding: 16px;
}

.draft-status-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #62809e;
    font-weight: 700;
}

.draft-scene-title {
    margin: 6px 0 8px;
    font-size: 23px;
    line-height: 1.2;
    color: #1f2f43;
}

.draft-scene-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #525a66;
}

.draft-indicator-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.draft-indicator {
    border-radius: 10px;
    border: 1px solid rgba(116, 125, 138, 0.24);
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #4d5a6a;
}

.draft-indicator strong {
    font-weight: 700;
}

.draft-indicator.is-on {
    border-color: rgba(47, 121, 76, 0.36);
    color: #2e6a46;
}

.draft-indicator.is-standby {
    border-color: rgba(78, 108, 145, 0.34);
    color: #385b84;
}

.draft-indicator.is-warn {
    border-color: rgba(182, 116, 43, 0.4);
    color: #9a5d1f;
}

.draft-indicator.is-off {
    color: #717985;
}

.draft-indicator.is-alarm {
    border-color: rgba(168, 53, 53, 0.48);
    color: #8f2b2b;
    background: rgba(255, 239, 239, 0.82);
}

.draft-hotspot-panel {
    margin-top: 12px;
    border: 1px solid rgba(138, 122, 93, 0.16);
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
}

.draft-hotspot-heading {
    margin: 0 0 8px;
    font-size: 15px;
    color: #2e3e54;
}

.draft-hotspot-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2a4563;
}

.draft-hotspot-description {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.65;
    color: #586272;
}

.draft-fault-panel {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(138, 122, 93, 0.2);
}

.draft-fault-title {
    margin: 0 0 8px;
    font-size: 15px;
    color: #28374a;
}

.draft-fault-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.draft-fault-btn {
    border: 1px solid rgba(118, 91, 91, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #634646;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.draft-fault-btn.is-active {
    border-color: rgba(170, 59, 59, 0.52);
    color: #8e3030;
    background: rgba(255, 240, 240, 0.94);
}

.draft-fault-description {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #5a4b4b;
}

.draft-components-panel {
    padding: 18px;
}

.draft-components-head {
    margin-bottom: 12px;
}

.draft-components-title {
    margin: 0;
    font-size: 24px;
    color: #1f2430;
}

.draft-components-subtitle {
    margin: 6px 0 0;
    color: #5a6471;
    font-size: 14px;
}

.draft-components-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.draft-component-group {
    border-radius: 12px;
    border: 1px solid rgba(138, 122, 93, 0.16);
    background: rgba(255, 255, 255, 0.72);
    padding: 10px 12px;
}

.draft-component-group h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #30445c;
}

.draft-component-group ul {
    margin: 0;
    padding-left: 18px;
}

.draft-component-group li {
    margin-bottom: 4px;
    color: #515d6e;
    font-size: 13px;
}

@media (max-width: 1199px) {
    .draft-system-layout {
        grid-template-columns: 1fr;
    }

    .draft-system-svg {
        min-height: 460px;
    }

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

@media (max-width: 767px) {
    .draft-hero-panel,
    .draft-system-panel,
    .draft-components-panel {
        border-radius: 14px;
        padding: 14px;
    }

    .draft-hero-title {
        font-size: 27px;
    }

    .draft-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .draft-system-select {
        min-width: 220px;
    }

    .draft-system-svg {
        min-height: 310px;
    }

    .draft-components-grid {
        grid-template-columns: 1fr;
    }
}
