
.galxc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.galxc-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #334155;
    padding-bottom: 12px;
}

.galxc-stepper .step {
    background: #1e293b;
    color: #94a3b8;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.galxc-stepper .step.active {
    background: #0284c7;
    color: #ffffff;
}

.galxc-visualization-panel {
    background: #060a12;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    position: relative;
}

.galxc-view-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.btn-toggle {
    background: #1e293b;
    color: #94a3b8;
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.btn-toggle.active {
    background: #0284c7;
    color: #ffffff;
}

.galxc-overlay-info {
    font-size: 11px;
    font-weight: bold;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

.galxc-canvas-container {
    width: 100%;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#galxc-2d-canvas {
    background: #0f172a;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.galxc-3d-toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    gap: 6px;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #334155;
}

.btn-3d-view {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #475569;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
}

.btn-3d-view:hover {
    background: #0284c7;
}

.toggle-label {
    font-size: 11px;
    color: #38bdf8;
    margin-left: 8px;
}

.step-pane {
    display: none;
}

.step-pane.active {
    display: block;
}

.galxc-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.galxc-form-grid label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.galxc-form-grid input, .galxc-form-grid select {
    margin-top: 6px;
    padding: 8px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    border-radius: 4px;
}

.galxc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.galxc-card {
    background: #1e293b;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #334155;
}

.galxc-card h4 {
    margin: 0 0 6px 0;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
}

.galxc-card p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #38bdf8;
}

.galxc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.galxc-table th, .galxc-table td {
    padding: 10px 12px;
    border: 1px solid #334155;
    text-align: left;
    font-size: 12px;
}

.galxc-table th {
    background: #1e293b;
    color: #38bdf8;
}

.badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.badge-pass { background: #166534; color: #4ade80; }
.badge-review { background: #854d0e; color: #fef08a; }

.pricing-summary-box {
    margin-top: 16px;
    background: #1e293b;
    padding: 16px;
    border-radius: 6px;
    border-left: 4px solid #0284c7;
}

.galxc-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #334155;
}

.btn-primary {
    background: #0284c7;
    color: white;
    border: none;
    padding: 10px 24px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary {
    background: #334155;
    color: white;
    border: none;
    padding: 10px 24px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.galxc-alert.success {
    background: #166534;
    border: 1px solid #22c55e;
    padding: 16px;
    border-radius: 6px;
    margin-top: 12px;
}

/* v2.9.0 scenario layer — additive only; baseline workflow remains intact. */
.galxc-scenario-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 12px;
    background: #0b1422;
    border: 1px solid #334155;
    border-radius: 6px;
}
.galxc-scenario-toggle { color: #38bdf8; font-size: 12px; white-space: nowrap; }
.galxc-scenario-note { color: #94a3b8; font-size: 10px; line-height: 1.35; }
.galxc-scenario-panel {
    margin-top: 10px;
    background: #0b1422;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 12px;
}
.galxc-scenario-headline, .galxc-scenario-summary, .galxc-manual-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.galxc-scenario-headline { justify-content: space-between; margin-bottom: 8px; }
.galxc-scenario-headline strong { color: #38bdf8; font-size: 12px; }
.galxc-scenario-headline span { color: #64748b; font-size: 9px; }
.galxc-scenario-summary { margin-bottom: 10px; }
.risk-pill { padding: 4px 8px; border-radius: 12px; font-size: 9px; font-weight: 800; }
.risk-pill.green { background:#14532d; color:#86efac; }
.risk-pill.yellow { background:#713f12; color:#fde68a; }
.risk-pill.orange { background:#7c2d12; color:#fdba74; }
.risk-pill.red { background:#7f1d1d; color:#fca5a5; }
.mini-action { padding: 5px 9px; font-size: 9px; border-radius: 4px; }
.btn-danger { background:#7f1d1d; color:#fecaca; border:1px solid #ef4444; padding:5px 9px; font-weight:700; border-radius:4px; cursor:pointer; }
.btn-danger:disabled { opacity:.45; cursor:not-allowed; }
.galxc-manual-tools { margin: 10px 0; padding: 8px; border: 1px dashed #475569; border-radius: 5px; }
.galxc-manual-tools select { background:#1e293b; color:#fff; border:1px solid #475569; padding:5px 8px; border-radius:4px; font-size:10px; }
.galxc-manual-tools span { color:#94a3b8; font-size:9px; }
.galxc-manual-sequence { margin-top: 8px; }
.galxc-manual-title { color:#94a3b8; font-size:9px; font-weight:800; margin-bottom:4px; }
.manual-token { display:flex; align-items:center; gap:5px; background:#111c2b; border:1px solid #25344a; padding:4px 6px; margin:2px 0; border-radius:4px; }
.manual-token strong { flex:1; font-size:9px; color:#e2e8f0; }
.token-type { font-size:8px; font-weight:800; padding:2px 5px; border-radius:3px; }
.token-type.rack { background:#334155; color:#cbd5e1; }
.token-type.irow { background:#075985; color:#bae6fd; }
.manual-token button { background:#263449; color:#e2e8f0; border:1px solid #475569; border-radius:3px; padding:2px 5px; font-size:9px; cursor:pointer; }
.manual-token button:disabled { opacity:.35; cursor:not-allowed; }
.galxc-scenario-note-box { margin:10px 0; padding:8px; color:#94a3b8; background:#0f172a; border-left:3px solid #0284c7; font-size:9px; line-height:1.45; }
.galxc-irow-state-title { color:#94a3b8; font-size:9px; font-weight:800; margin-bottom:4px; }
.galxc-irow-state-row { display:flex; align-items:center; gap:8px; justify-content:space-between; padding:5px 0; border-bottom:1px solid #1e293b; font-size:10px; }
.irow-status { display:inline-block; margin-left:7px; padding:2px 5px; border-radius:3px; font-size:8px; font-weight:800; }
.irow-status.active { background:#075985; color:#bae6fd; }
.irow-status.standby { background:#713f12; color:#fde68a; }
.irow-status.off { background:#7f1d1d; color:#fecaca; }

@media (max-width: 720px) {
    .galxc-scenario-bar { align-items:flex-start; flex-wrap:wrap; }
    .galxc-scenario-note { width:100%; }
}

/* v2.9.1: four panels retain the permanent live workspace. */
.galxc-stepper {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
.galxc-stepper .step {white-space:normal;font:inherit;cursor:pointer;}
#design-errors {padding:8px 16px;color:#fbbf24;}
#pdf-result {margin-left:12px;}
@media(max-width:600px){.galxc-canvas-container{overflow-x:auto;justify-content:flex-start;}#galxc-2d-canvas{min-width:760px;flex-shrink:0;}.galxc-view-toolbar .view-toggle{display:flex;flex-shrink:0;}.galxc-wrapper{font-family:Arial,sans-serif;}}
.galxc-wrapper details {padding:16px;overflow:auto;}
@media(max-width:600px){.galxc-stepper{grid-template-columns:repeat(2,minmax(0,1fr));}.galxc-overlay-info{font-size:9px;}.galxc-table{font-size:11px;}}

/* v2.9.2 — final visual/engineering polish. */
.galxc-canvas-container {
    height: clamp(440px, 48vw, 620px);
}
.galxc-3d-toolbar {
    flex-wrap: wrap;
    max-width: calc(100% - 20px);
}
.galxc-airflow-disclaimer {
    margin: -10px 0 8px;
    text-align: right;
    padding-right: 4px;
}
.galxc-live-engineering {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
}
.galxc-live-engineering .live-metric {
    min-width: 0;
    padding: 10px 12px;
    background: #0b1422;
    border: 1px solid #26364b;
    border-radius: 5px;
}
.galxc-live-engineering .live-metric span {
    display: block;
    color: #7f91a8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .45px;
    margin-bottom: 4px;
}
.galxc-live-engineering .live-metric strong {
    display: block;
    color: #e6f5ff;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
#live-design-status[data-status="valid"] { color: #4ade80; }
#live-design-status[data-status="review"] { color: #fbbf24; }
.galxc-content > .step-pane > h3:first-child {
    margin-top: 4px;
}

@media (max-width: 980px) {
    .galxc-live-engineering { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .galxc-canvas-container { height: 430px; }
    .galxc-live-engineering { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .galxc-live-engineering .live-metric { padding: 8px 9px; }
    .galxc-3d-toolbar { top: 6px; left: 6px; gap: 4px; padding: 5px; }
    .btn-3d-view { padding: 4px 6px; font-size: 9px; }
    .galxc-airflow-disclaimer { text-align: left; margin-top: -8px; }
}


/* v2.9.4 technical data: compact product-first presentation */
.technical-product-block {margin:0 0 14px;padding:12px 14px;border:1px solid rgba(15,49,70,.12);border-radius:10px;background:rgba(248,251,253,.72)}
.technical-product-head {display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:9px}
.technical-product-head strong {font-size:14px;color:#0b2940}
.technical-product-head span {font-size:9px;letter-spacing:.08em;color:#66808f;font-weight:700}
.technical-mini-grid {gap:8px!important}
.technical-mini-grid .galxc-card {padding:9px 10px;min-height:0}
.technical-mini-grid .galxc-card h4 {font-size:9px;margin-bottom:3px}
.technical-mini-grid .galxc-card p {font-size:12px;line-height:1.3}
.technical-note {font-size:10px;line-height:1.45;color:#647986;margin:4px 2px 12px}
@media(max-width:680px){.technical-product-head{align-items:flex-start;flex-direction:column;gap:3px}.technical-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.galxc-howto-btn{margin-left:auto;font-size:12px;padding:7px 12px}.galxc-howto-modal{position:fixed;inset:0;background:rgba(5,18,30,.68);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}.galxc-howto-card{background:#fff;max-width:680px;width:100%;border-radius:12px;padding:26px;position:relative;box-shadow:0 20px 70px rgba(0,0,0,.35)}.galxc-howto-card li{margin:10px 0}.galxc-howto-close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:28px;cursor:pointer}.galxc-advisory{padding:10px 12px;border-left:4px solid #c58b18;background:#fff8e7;border-radius:4px}.status-badge.review{background:#fff1c7;color:#795800}.galxc-technical-merged{margin-top:22px;border-top:1px solid #dbe3ea;padding-top:16px}

/* v2.11.1 - simplified branded header / How To / RFQ */
.galxc-app-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:2px 2px 10px;border-bottom:1px solid #243447}
.galxc-brand-kicker{font-size:10px;letter-spacing:1.35px;color:#7dd3fc;font-weight:700}
.galxc-app-title{font-size:19px;line-height:1.2;font-weight:750;letter-spacing:.35px;color:#f8fafc;margin-top:3px}
.galxc-howto-btn{margin-left:auto!important;border:1px solid #38bdf8!important;background:#10243a!important;color:#e0f2fe!important;font-size:11px!important;font-weight:750!important;letter-spacing:.65px;padding:8px 13px!important;border-radius:6px!important;cursor:pointer}
.galxc-howto-btn:hover{background:#12304d!important;color:#fff!important}
.galxc-howto-card h2{color:#0c4a6e}.galxc-howto-card{color:#243447}.galxc-howto-card strong{color:#075985}
.galxc-rfq-box{border:1px solid #294257;background:#0b1624;border-radius:8px;padding:16px;margin-top:8px}.galxc-rfq-intro{margin:0 0 12px;color:#dbeafe}.galxc-rfq-confirm{display:block;margin:10px 0 14px;color:#e2e8f0;line-height:1.45}.galxc-rfq-confirm input{margin-right:7px}.galxc-rfq-privacy{font-size:11px;color:#94a3b8;margin:10px 0 0}
@media(max-width:600px){.galxc-app-title{font-size:15px}.galxc-app-header{align-items:flex-start}.galxc-howto-btn{font-size:10px!important;padding:7px 9px!important}}

/* v2.11.3 - full-color downloadable looping Live 3D + Top APNG animation */
.galxc-download-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0 6px}.galxc-download-actions .btn-primary,.galxc-download-actions .btn-secondary{margin:0}.galxc-gif-btn{border-color:#18c7e8;color:#c8f7ff;background:#102235}.galxc-gif-btn:hover{background:#153047}.galxc-download-status{display:flex;gap:18px;flex-wrap:wrap;min-height:22px;font-size:12px;color:#9ec9d6;margin-bottom:12px}.galxc-download-status #gif-result{color:#8fe8f6}

/* v2.11.4 reliable post-encode manual download fallback */
.galxc-ready-download{display:inline-block;margin-left:6px;font-weight:800;text-decoration:none;border-bottom:1px solid currentColor;cursor:pointer}
