:root {
    --sidebar-width: 220px;
    --sidebar-bg: #0f0f1a;
    --sidebar-text: #b0b8c8;
    --sidebar-accent: #4fc3f7;
    --sidebar-hover-bg: rgba(255,255,255,0.05);
    --sidebar-active-bg: rgba(79,195,247,0.1);
    --main-bg: #141420;
    --surface: #1c1c2e;
    --surface-raised: #22223a;
    --border: #2a2a42;
    --border-subtle: #1e1e32;
    --text: #e0e4f0;
    --text-muted: #7a83a0;
    --text-dim: #4a5070;
    --accent: #4fc3f7;
    --accent-dim: rgba(79,195,247,0.12);
    --success-bg: #0d2e1a;
    --success-text: #4caf7d;
    --danger-bg: #2e0d0d;
    --danger-text: #e57373;
    --warning-bg: #2e240d;
    --warning-text: #ffb74d;
    --neutral-bg: rgba(255,255,255,0.06);
    --neutral-text: #7a83a0;
    --btn-primary-bg: #1565c0;
    --btn-primary-text: #e3f2fd;
    --btn-secondary-bg: #2a2a42;
    --btn-secondary-text: #b0b8c8;
    --btn-danger-bg: #7f1d1d;
    --btn-danger-text: #fca5a5;
    --input-bg: #12121e;
    --input-border: #2a2a42;
    --input-focus-border: #4fc3f7;
    --input-focus-shadow: rgba(79,195,247,0.15);
    --code-bg: #0d0d1a;
    --code-text: #cdd6f4;
    --modal-bg: #12121e;
    --modal-border: #2a2a42;
    --modal-panel-width: 480px;
    --modal-backdrop: rgba(0,0,0,0.65);
    --cpf-panel-width: 900px;
    --sgc-chev-unlit: #3d1a08; --sgc-chev-edge: #6a3010; --sgc-chev-jewel: #522010;
    --sgc-chev-lit: #d45a00; --sgc-chev-bright: #ff8c20; --sgc-chev-glow: rgba(210,90,0,0.6);
    --sgc-cyan: #00d4e8; --sgc-cyan-dim: #0a8a9a;
    --sgc-green-ok: #22dd66; --sgc-panel-bg: #020408;
    --sgc-panel-border: rgba(0,180,200,0.3);
    --sgc-font: 'Consolas', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--main-bg); color: var(--text); }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); min-width: var(--sidebar-width); background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; flex-shrink: 0; border-right: 1px solid var(--border-subtle); }
.sidebar-header { padding: 1.5rem 1rem; border-bottom: 1px solid var(--border-subtle); }
.sidebar-title { font-size: 1.1rem; font-weight: 700; color: var(--sidebar-accent); letter-spacing: 0.1em; text-transform: uppercase; }
.nav-links { list-style: none; padding: 0.75rem 0; margin: 0; }
.nav-links li a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1.25rem; color: var(--sidebar-text); text-decoration: none; font-size: 0.9rem; border-left: 3px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.nav-links li a:hover { background: var(--sidebar-hover-bg); border-left-color: var(--sidebar-accent); color: var(--text); }
.nav-links li a.active { background: var(--sidebar-active-bg); border-left-color: var(--sidebar-accent); color: var(--sidebar-accent); font-weight: 600; }
.main-content { flex: 1; padding: 2rem; overflow-y: auto; min-width: 0; }
.page-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.page-header .icon { color: var(--accent); }
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 0; }
.page-header-text p { color: var(--text-muted); margin-top: 0.2rem; font-size: 0.875rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; }
.card-title { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.card-title .icon { color: var(--accent); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table td { padding: 0.75rem; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; color: var(--text); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface-raised); }
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.55rem; border-radius: 10px; font-size: 0.72rem; font-weight: 600; }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-danger  { background: var(--danger-bg); color: var(--danger-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-text); }
.btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.4rem 0.9rem; border-radius: 6px; border: none; cursor: pointer; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: opacity 0.15s, background 0.15s; }
.btn:hover { opacity: 0.85; } .btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-text); border: 1px solid var(--border); }
.btn-danger { background: var(--btn-danger-bg); color: var(--btn-danger-text); }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.8rem; }
.btn-icon { background: transparent; border: none; color: var(--text-muted); padding: 0.2rem; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; transition: color 0.15s, background 0.15s; flex-shrink: 0; }
.btn-icon:hover { color: var(--accent); background: var(--accent-dim); }
.btn-icon:disabled { opacity: 0.35; cursor: not-allowed; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-control { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--input-border); border-radius: 6px; font-size: 0.9rem; font-family: inherit; background: var(--input-bg); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.form-control:focus { outline: none; border-color: var(--input-focus-border); box-shadow: 0 0 0 3px var(--input-focus-shadow); }
.form-control[readonly] { opacity: 0.75; cursor: default; }
.alert { display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.9rem; border-radius: 6px; font-size: 0.875rem; border: 1px solid transparent; }
.alert-danger { background: var(--danger-bg); color: var(--danger-text); border-color: rgba(229,115,115,0.2); }
.code-block { background: var(--code-bg); color: var(--code-text); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; font-family: 'Consolas', 'Monaco', monospace; font-size: 0.85rem; line-height: 1.7; overflow-x: auto; white-space: pre; word-break: normal; margin: 0; }
.code-block-wrap { position: relative; }
.code-copy-btn { position: absolute; top: 0.5rem; right: 0.5rem; opacity: 0; transition: opacity 0.15s, color 0.15s, background 0.15s; color: var(--text-muted); background: var(--surface-raised); border: 1px solid var(--border); border-radius: 5px; padding: 0.2rem 0.3rem; }
.code-block-wrap:hover .code-copy-btn { opacity: 1; }
.code-copy-btn:hover { color: var(--accent); background: var(--accent-dim); border-color: var(--accent); }
.code-corner-actions { position: absolute; top: 0.5rem; right: 0.5rem; display: flex; gap: 0.2rem; opacity: 0; transition: opacity 0.15s; }
.code-block-wrap:hover .code-corner-actions { opacity: 1; }
.code-corner-actions .code-copy-btn { position: static; opacity: 1; }
.secret-row { display: flex; align-items: center; gap: 0.5rem; }
.secret-value { font-family: 'Consolas', 'Monaco', monospace; font-size: 0.875rem; flex: 1; }
.icon { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-smoothing: antialiased; user-select: none; vertical-align: middle; }
.icon-sm { font-size: 16px; } .icon-lg { font-size: 26px; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
.text-muted { color: var(--text-muted); font-size: 0.85rem; } .text-danger { color: var(--danger-text); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1 { gap: 0.5rem; }
.modal-backdrop { position: fixed; inset: 0; background: var(--modal-backdrop); z-index: 200; animation: fadeIn 0.15s ease; }
.modal-panel { position: fixed; top: 0; right: 0; bottom: 0; width: var(--modal-panel-width); max-width: 100vw; background: var(--modal-bg); border-left: 1px solid var(--modal-border); z-index: 201; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(0,0,0,0.5); animation: slideInRight 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.modal-panel-header { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-shrink: 0; font-size: 0.95rem; }
.modal-panel-header .icon { color: var(--accent); }
.modal-panel-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.modal-panel-footer { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.modal-panel-footer .btn-danger { margin-right: auto; }
.gate-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 1rem; overflow: hidden; }
.gate-card--offline { opacity: 0.65; }
.gate-card-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border-subtle); gap: 0.75rem; }
.gate-card--offline .gate-card-header { border-bottom: none; }
.gate-card-version--outdated { color: var(--warning-text); font-weight: 500; }
.gate-card-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.gate-card-title .icon { color: var(--accent); }
.gate-card-notes { font-size: 0.8rem; font-weight: normal; }
.gate-card-badges { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.gate-card-version { font-size: 0.75rem; font-family: 'Consolas', 'Monaco', monospace; }
.gate-info-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--border-subtle); font-size: 0.82rem; color: var(--text-muted); }
.gate-info-item { display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.gate-info-item .icon { color: var(--text-dim); }
.gate-bar-wrap { display: inline-block; width: 48px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.gate-bar { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s ease; }
.gate-bar--warn { background: var(--warning-text); } .gate-bar--danger { background: var(--danger-text); }
.gate-section { border-bottom: 1px solid var(--border-subtle); } .gate-section:last-child { border-bottom: none; }
.gate-sections-row { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.gate-sections-row .gate-section { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.gate-sections-row .gate-section:last-child { border-right: 1px solid var(--border); }
.gate-section-toggle { display: flex; align-items: center; gap: 0.4rem; width: 100%; background: none; border: none; padding: 0.55rem 1.25rem; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; text-align: left; transition: background 0.15s, color 0.15s; }
.gate-section-toggle:hover { background: var(--surface-raised); color: var(--text); }
.gate-section-toggle .icon { color: var(--text-dim); }
.gate-section-count { margin-left: auto; font-size: 0.75rem; font-weight: 500; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.gate-section-body { padding: 0.25rem 0 0.5rem; }
.gate-project-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 1.25rem 0.3rem 2.5rem; font-size: 0.85rem; }
.gate-project-name { flex: 1; color: var(--text); }
.gate-project-name--link { background: none; border: none; padding: 0; cursor: pointer; font-size: 0.85rem; font-family: inherit; text-align: left; color: var(--accent); transition: color 0.15s, text-decoration 0.15s; }
.gate-project-name--link:hover { color: var(--text); text-decoration: underline; }
.gate-container-list { padding-bottom: 0.25rem; }
.gate-container-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 1.25rem 0.2rem 3.75rem; font-size: 0.8rem; color: var(--text-muted); }
.gate-container-name { color: var(--text); min-width: 160px; font-family: 'Consolas', 'Monaco', monospace; font-size: 0.78rem; }
.gate-operation-result { margin: 0.25rem 1.25rem 0.25rem 2.5rem; border-radius: 6px; border: 1px solid var(--border); font-size: 0.82rem; overflow: hidden; }
.gate-operation-result--success { border-color: rgba(76,175,125,0.25); background: rgba(76,175,125,0.05); }
.gate-operation-result--error { border-color: rgba(229,115,115,0.25); background: rgba(229,115,125,0.05); }
.gate-operation-result-header { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; font-weight: 600; }
.gate-operation-result--success .gate-operation-result-header { color: var(--success-text); }
.gate-operation-result--error   .gate-operation-result-header { color: var(--danger-text); }
.gate-operation-output { margin: 0; padding: 0.5rem 0.75rem; font-family: 'Consolas', 'Monaco', monospace; font-size: 0.78rem; line-height: 1.5; white-space: pre-wrap; word-break: break-all; color: var(--text-muted); border-top: 1px solid var(--border-subtle); max-height: 200px; overflow-y: auto; }
.gate-operation-output--error { color: var(--danger-text); }
.cpf-panel { width: var(--cpf-panel-width); }
.cpf-tabs { display: flex; border-bottom: 1px solid var(--border); flex-shrink: 0; padding: 0 1.25rem; gap: 0; }
.cpf-tab { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.9rem; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: color 0.15s, border-color 0.15s; margin-bottom: -1px; }
.cpf-tab:hover { color: var(--text); } .cpf-tab--active { color: var(--accent); border-bottom-color: var(--accent); } .cpf-tab .icon { color: inherit; }
.cpf-meta-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.cpf-meta-row { display: flex; align-items: baseline; gap: 0.75rem; font-size: 0.85rem; }
.cpf-meta-label { min-width: 130px; flex-shrink: 0; color: var(--text-muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.cpf-meta-value { color: var(--text); word-break: break-all; }
.cpf-section-label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.cpf-section-label .icon { color: var(--text-dim); }
.cpf-loading { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 2rem 0; color: var(--text-muted); font-size: 0.875rem; }
.cpf-loading .icon { color: var(--accent); animation: spin 1.2s linear infinite; }
.cpf-repo-path-row { padding-bottom: 1rem; border-bottom: 1px solid var(--border-subtle); margin-bottom: 0; }
.cpf-repo-path-field { display: flex; flex-direction: column; }
.cpf-log-block { max-height: calc(100vh - 260px); overflow-y: auto; font-size: 0.78rem; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }


/* ════════════════════════════════════════════════════════════════════════════
   SGC GATE
   ════════════════════════════════════════════════════════════════════════════ */

.sgc-gate-wrap { width: 100%; aspect-ratio: 1; position: relative; }
.sgc-gate-svg  { width: 100%; height: 100%; display: block; overflow: visible; }
.sgc-glyph { filter: invert(1) brightness(0.85); opacity: 0.7; }

.sgc-chevron-body, .sgc-chevron-arm, .sgc-chevron-cap, .sgc-chevron-nub {
    fill: var(--sgc-chev-unlit); stroke: var(--sgc-chev-edge); stroke-width: 0.7; transition: fill 0.25s, filter 0.25s;
}
.sgc-chevron-jewel { fill: var(--sgc-chev-jewel); stroke: #7a3515; stroke-width: 0.8; transition: fill 0.25s, filter 0.25s; }
.sgc-chevron--lit .sgc-chevron-body, .sgc-chevron--lit .sgc-chevron-arm,
.sgc-chevron--lit .sgc-chevron-cap,  .sgc-chevron--lit .sgc-chevron-nub {
    fill: var(--sgc-chev-lit); stroke: var(--sgc-chev-bright); stroke-width: 0.5;
    filter: drop-shadow(0 0 5px var(--sgc-chev-glow)) drop-shadow(0 0 12px rgba(210,90,0,0.35));
}
.sgc-chevron--lit .sgc-chevron-jewel { fill: var(--sgc-chev-bright); stroke: #ffcc80; stroke-width: 0.5; filter: drop-shadow(0 0 8px var(--sgc-chev-glow)); }
@keyframes sgc-chevron-flash { 0% { filter: none; } 15% { filter: brightness(4) drop-shadow(0 0 20px #fff8e0); } 100% { filter: drop-shadow(0 0 6px var(--sgc-chev-glow)); } }
.sgc-chevron--flash .sgc-chevron-body, .sgc-chevron--flash .sgc-chevron-arm, .sgc-chevron--flash .sgc-chevron-cap, .sgc-chevron--flash .sgc-chevron-jewel { animation: sgc-chevron-flash 0.4s ease-out forwards; }
@keyframes sgc-chevron-pulse { 0% { filter: drop-shadow(0 0 6px var(--sgc-chev-glow)); } 40% { filter: drop-shadow(0 0 24px var(--sgc-chev-bright)) brightness(1.9); } 100% { filter: drop-shadow(0 0 6px var(--sgc-chev-glow)); } }
.sgc-chevron--pulse .sgc-chevron-body, .sgc-chevron--pulse .sgc-chevron-arm, .sgc-chevron--pulse .sgc-chevron-jewel { animation: sgc-chevron-pulse 0.75s ease-in-out; }

.sgc-kawoosh-fill { fill: transparent; opacity: 0; }
@keyframes sgc-kawoosh { 0% { fill: #d0f4ff; opacity: 1; r: 12; } 25% { fill: #4fc3f7; opacity: 0.95; r: 190; } 55% { fill: #1a6fa8; opacity: 0.75; r: 193; } 100% { fill: transparent; opacity: 0; r: 193; } }
.sgc-kawoosh--active .sgc-kawoosh-fill { animation: sgc-kawoosh 1s ease-out forwards; }


/* ════════════════════════════════════════════════════════════════════════════
   IRIS APERTURE
   Nautilus spiral geometry tuned via interactive widget.
   PIVOT_R=250 — pivot sits on outer ring, blades retract behind it on open.
   OPEN_DEG=128 — large sweep fully clears the center.
   ════════════════════════════════════════════════════════════════════════════ */

.sgc-iris-group {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.sgc-iris-ready .sgc-iris-group { opacity: 1; }

.sgc-gate--active.sgc-iris-open .sgc-iris-group {
    opacity: 0;
    transition: opacity 0.3s ease 1.0s;
}

.sgc-iris-blade-fill { fill: rgba(8, 15, 22, 0.92); }
.sgc-iris-blade-stroke { fill: none; stroke: rgba(0, 180, 210, 0.55); stroke-width: 0.8; }

.sgc-iris-blade {
    transition: transform 1.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
}
.sgc-iris-closed .sgc-iris-blade { transform: rotate(0deg); }
.sgc-iris-open   .sgc-iris-blade { transform: rotate(128deg); }


/* ════════════════════════════════════════════════════════════════════════════
   WORMHOLE
   ════════════════════════════════════════════════════════════════════════════ */

.sgc-wormhole-base { opacity: 0; transition: opacity 1.2s ease 0.3s; }
.sgc-gate--active.sgc-iris-open .sgc-wormhole-base { opacity: 1; }
.sgc-wormhole-ring, .sgc-wormhole-ring--2, .sgc-wormhole-ring--3 { opacity: 0; }
@keyframes wormhole-ripple { 0% { r: 6; opacity: 0.8; stroke-width: 3.5; } 65% { opacity: 0.25; } 100% { r: 198; opacity: 0; stroke-width: 0.5; } }
.sgc-gate--active.sgc-iris-open .sgc-wormhole-ring    { animation: wormhole-ripple 7s ease-out infinite 0.8s; }
.sgc-gate--active.sgc-iris-open .sgc-wormhole-ring--2 { animation: wormhole-ripple 7s ease-out infinite 3.13s; }
.sgc-gate--active.sgc-iris-open .sgc-wormhole-ring--3 { animation: wormhole-ripple 7s ease-out infinite 5.47s; }


/* ════════════════════════════════════════════════════════════════════════════
   SGC DASHBOARD
   ════════════════════════════════════════════════════════════════════════════ */

.main-content:has(.sgc-dashboard) { padding: 0; overflow: hidden; }
.sgc-dashboard { display: flex; flex-direction: column; height: 100%; background: var(--sgc-panel-bg); font-family: var(--sgc-font); color: var(--sgc-cyan); overflow: hidden; }
.sgc-topbar { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 1rem; border-bottom: 1px solid var(--sgc-panel-border); background: rgba(0,20,28,0.9); flex-shrink: 0; }
.sgc-topbar-left, .sgc-topbar-right { display: flex; align-items: baseline; gap: 0.5rem; }
.sgc-title { font-size: 0.9rem; font-weight: bold; letter-spacing: 0.18em; color: var(--sgc-cyan); text-transform: uppercase; }
.sgc-subtitle { font-size: 0.6rem; letter-spacing: 0.12em; color: var(--sgc-cyan-dim); }
.sgc-clock { font-size: 1rem; font-weight: bold; letter-spacing: 0.12em; color: var(--sgc-cyan); }
.sgc-date { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--sgc-cyan-dim); }
.sgc-main { flex: 1; display: grid; grid-template-columns: 160px 1fr 180px; overflow: hidden; min-height: 0; }
.sgc-panel { background: rgba(0,10,16,0.95); display: flex; flex-direction: column; overflow: hidden; padding: 0.5rem; gap: 0.25rem; }
.sgc-panel--left  { border-right: 1px solid var(--sgc-panel-border); }
.sgc-panel--right { border-left:  1px solid var(--sgc-panel-border); }
.sgc-panel-label { font-size: 0.55rem; letter-spacing: 0.2em; color: var(--sgc-cyan-dim); text-transform: uppercase; border-bottom: 1px solid rgba(0,180,200,0.15); padding-bottom: 0.2rem; margin-bottom: 0.15rem; }
.sgc-data-scroll { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
.sgc-data-line { font-size: 0.6rem; color: rgba(0,200,220,0.4); letter-spacing: 0.06em; line-height: 1.4; white-space: nowrap; overflow: hidden; }
.sgc-chevron-status { display: flex; flex-direction: column; gap: 3px; }
.sgc-chevron-row { display: flex; align-items: center; gap: 0.3rem; font-size: 0.6rem; color: rgba(0,200,220,0.35); }
.sgc-chevron-bar { width: 40px; height: 5px; background: rgba(0,100,120,0.3); border: 1px solid rgba(0,150,170,0.25); border-radius: 1px; flex-shrink: 0; position: relative; overflow: hidden; }
.sgc-chevron-row--lit .sgc-chevron-bar::after { content: ''; position: absolute; inset: 0; background: var(--sgc-green-ok); box-shadow: 0 0 4px var(--sgc-green-ok); }
.sgc-chevron-num { color: var(--sgc-cyan-dim); min-width: 8px; }
.sgc-chevron-ok { color: var(--sgc-green-ok); font-size: 0.55rem; letter-spacing: 0.08em; margin-left: 2px; }
.sgc-chevron-row--final .sgc-chevron-ok { color: #88ffaa; }
.sgc-auth-block { padding-top: 0.5rem; border-top: 1px solid rgba(0,150,170,0.15); }
.sgc-auth-code { font-size: 0.6rem; color: var(--sgc-cyan); letter-spacing: 0.08em; margin-top: 0.15rem; }
.sgc-center { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 0.5rem 1rem; overflow: hidden; gap: 0.4rem; }
.sgc-gate-container { position: relative; width: min(100%, calc(100vh - 220px)); aspect-ratio: 1; flex-shrink: 0; }
.sgc-center-glyph { position: absolute; inset: 22%; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2; animation: sgc-glyph-appear 0.2s ease-out; }
.sgc-center-glyph-img { width: 65%; height: 65%; object-fit: contain; filter: invert(1) brightness(1.2); opacity: 0.9; }
@keyframes sgc-glyph-appear { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.sgc-lst-row { display: flex; gap: 1rem; width: 100%; max-width: 440px; }
.sgc-lst-block { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sgc-lst-label { font-size: 0.55rem; letter-spacing: 0.15em; color: var(--sgc-cyan-dim); }
.sgc-lst-bar { height: 6px; background: rgba(0,80,100,0.4); border: 1px solid rgba(0,150,170,0.3); border-radius: 1px; overflow: hidden; }
.sgc-lst-fill { height: 100%; background: var(--sgc-cyan); box-shadow: 0 0 4px var(--sgc-cyan); transition: width 0.4s ease; border-radius: 1px; }
.sgc-status-display { background: rgba(0,8,14,0.95); border: 1px solid var(--sgc-panel-border); width: 100%; max-width: 440px; padding: 0.4rem 1rem; text-align: center; }
.sgc-status-text { font-size: 1.6rem; font-weight: bold; letter-spacing: 0.2em; display: block; }
.sgc-status--idle    { color: rgba(0,200,220,0.4); }
.sgc-status--engaged { color: var(--sgc-cyan); animation: sgc-status-pulse 1.5s ease-in-out infinite; }
.sgc-status--locked  { color: #aaffcc; text-shadow: 0 0 12px #44ffaa; }
@keyframes sgc-status-pulse { 0%,100% { opacity: 0.75; } 50% { opacity: 1; text-shadow: 0 0 8px var(--sgc-cyan); } }
.sgc-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sgc-action-btn { font-family: var(--sgc-font); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sgc-cyan); background: rgba(0,40,55,0.8); border: 1px solid var(--sgc-panel-border); padding: 0.4rem 1rem; cursor: pointer; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }
.sgc-action-btn:hover { background: rgba(0,70,90,0.9); border-color: var(--sgc-cyan); box-shadow: 0 0 8px rgba(0,200,230,0.2); }
.sgc-action-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.sgc-action-btn--dim { color: var(--sgc-cyan-dim); border-color: rgba(0,120,140,0.3); }
.sgc-action-btn--iris-closed { color: #22dd66; border-color: rgba(34,221,102,0.5); background: rgba(0,35,12,0.85); animation: iris-btn-pulse 2s ease-in-out infinite; }
.sgc-action-btn--iris-closed:hover { background: rgba(0,55,20,0.95); border-color: #22dd66; box-shadow: 0 0 10px rgba(34,221,102,0.35); animation: none; }
.sgc-action-btn--iris-open { color: #ff7030; border-color: rgba(255,100,40,0.5); background: rgba(40,10,0,0.85); }
.sgc-action-btn--iris-open:hover { background: rgba(65,15,0,0.95); border-color: #ff7030; box-shadow: 0 0 10px rgba(255,90,30,0.35); }
@keyframes iris-btn-pulse { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 10px rgba(34,221,102,0.4); } }
.sgc-iris-status { font-family: var(--sgc-font); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 2px; transition: all 0.3s; }
.sgc-iris-status--closed { color: rgba(255,70,30,0.75); border: 1px solid rgba(255,70,30,0.2); }
.sgc-iris-status--open   { color: #22dd66; border: 1px solid rgba(34,221,102,0.3); animation: sgc-status-pulse 2.5s ease-in-out infinite; }
.sgc-destination-header { display: flex; flex-direction: column-reverse; gap: 0.15rem; margin-bottom: 0.25rem; }
.sgc-destination-name { font-size: 0.85rem; font-weight: bold; letter-spacing: 0.18em; color: var(--sgc-cyan); text-transform: uppercase; }
.sgc-glyph-list { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sgc-glyph-slot { position: relative; display: flex; align-items: center; gap: 0.4rem; border: 1px solid rgba(0,100,120,0.25); background: rgba(0,15,20,0.8); padding: 2px 4px; min-height: 32px; transition: border-color 0.2s, background 0.2s; }
.sgc-glyph-slot--locked { border-color: rgba(210,90,0,0.7); background: rgba(25,8,0,0.9); box-shadow: inset 0 0 8px rgba(160,60,0,0.2), 0 0 5px rgba(200,80,0,0.25); animation: sgc-slot-appear 0.3s ease-out; }
@keyframes sgc-slot-appear { from { opacity: 0.2; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.sgc-glyph-num { font-size: 0.6rem; color: var(--sgc-cyan-dim); min-width: 10px; text-align: right; }
.sgc-glyph-thumb { width: 28px; height: 28px; object-fit: contain; filter: invert(1) brightness(1.1); opacity: 0.9; }
.sgc-operator-block { margin-top: auto; padding-top: 0.5rem; border-top: 1px solid rgba(0,150,170,0.15); }
.sgc-op-line { font-size: 0.55rem; letter-spacing: 0.1em; color: var(--sgc-cyan-dim); line-height: 1.7; text-transform: uppercase; }
