/* ═══════════════════════════════════════════════════════════
   KORUM-OS — EXECUTIVE MODE (BRIEFING ALTITUDE)
   Dark slate · Amber/Gold accent · Emerald GO · Red NO-GO
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Panel Shell ─────────────────────────────────────────── */
.executive-briefing-panel {
    display: none;
    grid-column: 2 / 4;
    background: #0a0f19;
    border: 1px solid rgba(255, 176, 32, 0.18);
    border-radius: 12px;
    padding: 28px 32px;
    gap: 24px;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    color: #e8ecf4;
    animation: exec-fadein 0.35s ease;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
}

.executive-briefing-panel.exec-visible {
    display: flex;
}

@keyframes exec-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Close Strip (open/close control) ────────────────────── */
.exec-close-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: -8px;
}

.exec-close-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 176, 32, 0.7);
}

.exec-close-btn {
    background: transparent;
    border: 1px solid rgba(255, 176, 32, 0.3);
    border-radius: 6px;
    color: rgba(255, 176, 32, 0.85);
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.exec-close-btn:hover {
    background: rgba(255, 176, 32, 0.14);
    border-color: rgba(255, 176, 32, 0.6);
    color: #ffb020;
}

/* ─── Header Bar ──────────────────────────────────────────── */
.exec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 176, 32, 0.2);
    padding-bottom: 16px;
    margin-bottom: 4px;
}

.exec-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: rgba(255, 176, 32, 0.7);
    text-transform: uppercase;
}

.exec-header-meta {
    font-size: 11px;
    color: rgba(232, 236, 244, 0.4);
    letter-spacing: 0.5px;
}

/* ─── Section Label ───────────────────────────────────────── */
.exec-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 176, 32, 0.55);
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ─── Mission Status Card ─────────────────────────────────── */
.exec-mission-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.exec-verdict-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
    line-height: 1.2;
}

.exec-verdict-badge.verdict-go {
    background: rgba(52, 211, 153, 0.12);
    border: 2px solid rgba(52, 211, 153, 0.6);
    color: #34d399;
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.15);
}

.exec-verdict-badge.verdict-conditional {
    background: rgba(255, 176, 32, 0.10);
    border: 2px solid rgba(255, 176, 32, 0.6);
    color: #ffb020;
    box-shadow: 0 0 24px rgba(255, 176, 32, 0.12);
}

.exec-verdict-badge.verdict-nogo {
    background: rgba(239, 68, 68, 0.10);
    border: 2px solid rgba(239, 68, 68, 0.55);
    color: #ef4444;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.12);
}

.exec-verdict-badge.verdict-degraded {
    background: rgba(148, 163, 184, 0.08);
    border: 2px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.exec-verdict-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.exec-mission-body {
    flex: 1;
}

.exec-mission-headline {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
    margin-bottom: 8px;
}

.exec-mission-rationale {
    font-size: 13px;
    color: rgba(232, 236, 244, 0.65);
    line-height: 1.6;
    margin-bottom: 14px;
}

.exec-confidence-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.exec-confidence-score {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffb020;
    line-height: 1;
}

.exec-confidence-label {
    font-size: 11px;
    color: rgba(232, 236, 244, 0.4);
    line-height: 1.4;
}

.exec-confidence-band {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.exec-confidence-band.band-high   { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.exec-confidence-band.band-medium { background: rgba(255, 176, 32, 0.15); color: #ffb020; }
.exec-confidence-band.band-low    { background: rgba(239, 68, 68, 0.12);  color: #ef4444; }

/* ─── Top 5 Risks ─────────────────────────────────────────── */
.exec-risks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exec-risk-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 16px;
}

.exec-risk-severity {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 1px;
}

.exec-risk-severity.sev-critical { background: rgba(239, 68, 68, 0.15);  color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.exec-risk-severity.sev-high     { background: rgba(251, 146, 60, 0.15); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.3); }
.exec-risk-severity.sev-medium   { background: rgba(255, 176, 32, 0.12); color: #ffb020; border: 1px solid rgba(255, 176, 32, 0.25); }
.exec-risk-severity.sev-low      { background: rgba(52, 211, 153, 0.10); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.2); }

.exec-risk-text {
    flex: 1;
    font-size: 13px;
    color: rgba(232, 236, 244, 0.8);
    line-height: 1.5;
}

.exec-risk-mitigation {
    font-size: 11px;
    color: rgba(232, 236, 244, 0.4);
    margin-top: 3px;
}

/* ─── Required Actions ────────────────────────────────────── */
.exec-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exec-action-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 16px;
}

.exec-action-text {
    font-size: 13px;
    color: rgba(232, 236, 244, 0.85);
    line-height: 1.4;
}

.exec-action-owner {
    font-size: 11px;
    color: rgba(255, 176, 32, 0.7);
    font-weight: 600;
    white-space: nowrap;
}

.exec-action-timeline {
    font-size: 11px;
    color: rgba(232, 236, 244, 0.4);
    white-space: nowrap;
}

/* ─── Decision Timeline ───────────────────────────────────── */
.exec-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 4px;
}

.exec-timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    padding-bottom: 20px;
}

.exec-timeline-step:last-child {
    padding-bottom: 0;
}

.exec-timeline-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}

.exec-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 176, 32, 0.7);
    border: 2px solid rgba(255, 176, 32, 0.3);
    flex-shrink: 0;
    margin-top: 3px;
}

.exec-timeline-dot.dot-complete { background: #34d399; border-color: rgba(52, 211, 153, 0.3); }
.exec-timeline-dot.dot-warn     { background: #ffb020; border-color: rgba(255, 176, 32, 0.3); }
.exec-timeline-dot.dot-alert    { background: #ef4444; border-color: rgba(239, 68, 68, 0.3); }

.exec-timeline-line {
    width: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    min-height: 16px;
    margin-top: 2px;
}

.exec-timeline-step:last-child .exec-timeline-line {
    display: none;
}

.exec-timeline-content {
    flex: 1;
    padding-bottom: 4px;
}

.exec-timeline-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(232, 236, 244, 0.9);
    margin-bottom: 2px;
}

.exec-timeline-detail {
    font-size: 11px;
    color: rgba(232, 236, 244, 0.4);
    line-height: 1.4;
}

/* ─── Empty State ─────────────────────────────────────────── */
.exec-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(232, 236, 244, 0.25);
}

.exec-empty-state-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.exec-empty-state-text {
    font-size: 13px;
    line-height: 1.6;
}

/* ─── Mode button active state ────────────────────────────── */
.mode-active-executive {
    background: rgba(255, 176, 32, 0.15) !important;
    border-color: rgba(255, 176, 32, 0.6) !important;
    color: #ffb020 !important;
}

/* ─── HITL Inline Response ────────────────────────────────── */
.exec-hitl-wrap {
    display: flex;
    flex-direction: column;
}

.exec-hitl-wrap .exec-risk-row {
    border-radius: 8px;
    transition: border-color 0.15s;
}

.exec-hitl-wrap .exec-risk-row.exec-hitl-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.exec-hitl-wrap .exec-action-row {
    grid-template-columns: 1fr auto auto auto;
    border-radius: 8px;
    transition: border-color 0.15s;
}

.exec-hitl-wrap .exec-action-row.exec-hitl-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.exec-hitl-respond-btn {
    flex-shrink: 0;
    align-self: center;
    padding: 3px 10px;
    background: transparent;
    border: 1px solid rgba(255, 176, 32, 0.25);
    border-radius: 4px;
    color: rgba(255, 176, 32, 0.5);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.exec-hitl-respond-btn:hover {
    background: rgba(255, 176, 32, 0.1);
    border-color: rgba(255, 176, 32, 0.55);
    color: #ffb020;
}

.exec-hitl-respond-btn.responded {
    border-color: rgba(52, 211, 153, 0.35);
    color: rgba(52, 211, 153, 0.7);
}

.exec-hitl-respond-btn.responded:hover {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.55);
    color: #34d399;
}

.exec-hitl-drawer {
    background: rgba(255, 176, 32, 0.03);
    border: 1px solid rgba(255, 176, 32, 0.15);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 12px 16px 14px;
    animation: hitl-expand 0.16s ease;
}

@keyframes hitl-expand {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.exec-hitl-drawer-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 176, 32, 0.45);
    text-transform: uppercase;
    margin-bottom: 7px;
}

.exec-hitl-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e8ecf4;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    padding: 8px 12px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    min-height: 58px;
}

.exec-hitl-textarea:focus {
    border-color: rgba(255, 176, 32, 0.35);
    background: rgba(255, 176, 32, 0.03);
}

.exec-hitl-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.exec-hitl-submit {
    padding: 5px 14px;
    background: rgba(255, 176, 32, 0.12);
    border: 1px solid rgba(255, 176, 32, 0.38);
    border-radius: 5px;
    color: #ffb020;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
}

.exec-hitl-submit:hover {
    background: rgba(255, 176, 32, 0.22);
}

.exec-hitl-cancel {
    padding: 5px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 5px;
    color: rgba(232, 236, 244, 0.3);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
}

.exec-hitl-cancel:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(232, 236, 244, 0.55);
}

.exec-hitl-response-preview {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(52, 211, 153, 0.65);
    font-style: italic;
    line-height: 1.4;
    border-left: 2px solid rgba(52, 211, 153, 0.3);
    padding-left: 8px;
}

/* ─── Recommended Media Statement ────────────────────────── */
.exec-media-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 176, 32, 0.18);
    border-radius: 8px;
    padding: 16px;
}

.exec-media-header,
.exec-media-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.exec-media-header {
    justify-content: space-between;
}

.exec-media-status {
    padding: 3px 8px;
    border: 1px solid rgba(255, 176, 32, 0.3);
    border-radius: 4px;
    color: #ffb020;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.exec-media-status.status-approved {
    border-color: rgba(52, 211, 153, 0.35);
    color: #34d399;
}

.exec-media-status.status-legal_review {
    border-color: rgba(251, 146, 60, 0.35);
    color: #fb923c;
}

.exec-media-owner {
    color: rgba(232, 236, 244, 0.45);
    font-size: 11px;
}

.exec-media-gate {
    margin-top: 10px;
    padding: 8px 10px;
    border-left: 2px solid rgba(255, 176, 32, 0.5);
    background: rgba(255, 176, 32, 0.05);
    color: rgba(255, 176, 32, 0.8);
    font-size: 11px;
    line-height: 1.5;
}

.exec-media-draft {
    margin-top: 12px;
    color: rgba(232, 236, 244, 0.82);
    font-size: 13px;
    line-height: 1.65;
}

.exec-media-editor {
    margin-top: 12px;
}

.exec-media-actions {
    margin-top: 14px;
}

.exec-media-btn {
    padding: 5px 12px;
    background: transparent;
    border: 1px solid rgba(255, 176, 32, 0.24);
    border-radius: 4px;
    color: rgba(255, 176, 32, 0.65);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.exec-media-btn:hover {
    background: rgba(255, 176, 32, 0.1);
    border-color: rgba(255, 176, 32, 0.5);
    color: #ffb020;
}

.exec-media-approve {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.3);
    color: rgba(52, 211, 153, 0.82);
}

.exec-media-approve:hover {
    background: rgba(52, 211, 153, 0.14);
    border-color: rgba(52, 211, 153, 0.5);
    color: #34d399;
}
