/* Kavach — Sentinel — How it Works
 * Scene-specific styles. The editorial chrome is inherited from the
 * shared .kavach-mhiw namespace. This file only adds the two Sentinel scenes:
 *   .mhiw-so — four-agent orchestration loop
 *   .mhiw-sh — human-in-the-loop validation pipeline
 */

/* ========================================================================
 * Scene 1: Orchestration (Four-Agent Loop)
 * ====================================================================== */
.mhiw-so {
    position: absolute;
    inset: 0;
    font-family: 'Fraunces', Georgia, serif;
    color: #e8e2d6;
    background: #050505;
    overflow: hidden;
}

.mhiw-so__label {
    position: absolute;
    top: 28px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 9px;
    font-weight: 500;
}
.mhiw-so__label--left  { left: 60px;  letter-spacing: 4px; color: rgba(212, 175, 55, 0.7); }
.mhiw-so__label--right { right: 60px; letter-spacing: 2px; color: #d4af37; }

.mhiw-so__svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mhiw-so__card {
    position: absolute;
    width: 170px;
    pointer-events: none;
    transition: color 0.3s;
}
.mhiw-so__card-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: #e8e2d6;
    margin-bottom: 3px;
    transition: color 0.3s;
}
.mhiw-so__card--active .mhiw-so__card-name { color: #d4af37; }

.mhiw-so__card-role {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 11px;
    color: rgba(232, 226, 214, 0.55);
    line-height: 1.3;
    margin-bottom: 6px;
    font-style: italic;
}
.mhiw-so__card-log {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(232, 226, 214, 0.4);
    letter-spacing: 0.5px;
    border-left: 2px solid rgba(232, 226, 214, 0.15);
    padding-left: 7px;
    line-height: 1.35;
    min-height: 12px;
    transition: color 0.25s, border-color 0.25s;
}
.mhiw-so__card--active .mhiw-so__card-log {
    color: #d4af37;
    border-left-color: #d4af37;
}

.mhiw-so__caption {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(232, 226, 214, 0.12);
    padding-top: 14px;
}
.mhiw-so__caption-lede {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    color: #e8e2d6;
    letter-spacing: -0.3px;
    max-width: 560px;
    font-weight: 400;
}
.mhiw-so__caption-accent { color: #d4af37; }
.mhiw-so__caption-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
    text-align: right;
}

/* ========================================================================
 * Scene 2: Human-in-the-loop (Analyst Validation)
 * ====================================================================== */
.mhiw-sh {
    position: absolute;
    inset: 0;
    font-family: 'Fraunces', Georgia, serif;
    color: #e8e2d6;
    background: #050505;
    overflow: hidden;
}

.mhiw-sh__label {
    position: absolute;
    top: 28px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 9px;
    font-weight: 500;
}
.mhiw-sh__label--left  { left: 60px;  letter-spacing: 4px; color: rgba(212, 175, 55, 0.7); }
.mhiw-sh__label--right { right: 60px; letter-spacing: 2px; color: #d4af37; }

.mhiw-sh__col-head {
    position: absolute;
    top: 70px;
    width: 240px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
    border-bottom: 1px solid rgba(232, 226, 214, 0.12);
    padding-bottom: 6px;
}

/* --- AI finding card (column 1) --- */
.mhiw-sh__finding {
    position: absolute;
    left: 60px;
    top: 100px;
    width: 240px;
    padding: 14px 16px;
    background: #0a0a0a;
    border: 1px solid #d4af37;
    transition: opacity 0.3s, transform 0.3s;
}
.mhiw-sh__finding-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.mhiw-sh__finding-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: #d4af37;
}
.mhiw-sh__sev {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    padding: 2px 6px;
    border: 1px solid rgba(232, 226, 214, 0.3);
    color: #e8e2d6;
}
.mhiw-sh__sev--crit { color: #e65149; border-color: #e65149; }
.mhiw-sh__sev--high { color: #d4af37; border-color: #d4af37; }
.mhiw-sh__sev--med  { color: #e8e2d6; border-color: rgba(232, 226, 214, 0.3); }
.mhiw-sh__sev--low  { color: #e8e2d6; border-color: rgba(232, 226, 214, 0.3); }

.mhiw-sh__finding-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    color: #e8e2d6;
    letter-spacing: -0.3px;
    line-height: 1.15;
    margin-bottom: 14px;
}
.mhiw-sh__evidence-head {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
    margin-bottom: 6px;
}
.mhiw-sh__evidence-row {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.5px;
    color: rgba(232, 226, 214, 0.25);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.mhiw-sh__evidence-row--on { color: #e8e2d6; }
.mhiw-sh__evidence-check {
    color: rgba(232, 226, 214, 0.2);
    transition: color 0.2s;
}
.mhiw-sh__evidence-row--on .mhiw-sh__evidence-check { color: #d4af37; }

/* --- Analyst column (column 2) --- */
.mhiw-sh__analyst {
    position: absolute;
    left: 340px;
    top: 105px;
    width: 240px;
}
.mhiw-sh__avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.mhiw-sh__avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.05));
    border: 1px solid #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    color: #e8e2d6;
}
.mhiw-sh__analyst-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    color: #e8e2d6;
    letter-spacing: -0.2px;
}
.mhiw-sh__analyst-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: rgba(232, 226, 214, 0.55);
}
.mhiw-sh__reviewing-k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
    margin-bottom: 6px;
}
.mhiw-sh__review-bar {
    position: relative;
    height: 4px;
    background: rgba(232, 226, 214, 0.08);
    margin-bottom: 18px;
}
.mhiw-sh__review-fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: #d4af37;
}
.mhiw-sh__verdict {
    border: 1px solid rgba(232, 226, 214, 0.15);
    padding: 14px 16px;
    background: transparent;
    opacity: 0.4;
    transform: scale(1);
    transition: transform 0.15s, background 0.2s, border-color 0.2s, opacity 0.2s;
}
.mhiw-sh__verdict--on      { opacity: 1; }
.mhiw-sh__verdict--pop     { transform: scale(1.04); }
.mhiw-sh__verdict--approved { border-color: #d4af37; background: rgba(212, 175, 55, 0.05); }
.mhiw-sh__verdict--edited  { border-color: #e8e2d6; background: rgba(232, 226, 214, 0.05); }
.mhiw-sh__verdict--rejected { border-color: #e65149; background: rgba(230, 81, 73, 0.05); }

.mhiw-sh__verdict-stamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.4);
}
.mhiw-sh__verdict--approved .mhiw-sh__verdict-stamp { color: #d4af37; }
.mhiw-sh__verdict--edited   .mhiw-sh__verdict-stamp { color: #e8e2d6; }
.mhiw-sh__verdict--rejected .mhiw-sh__verdict-stamp { color: #e65149; }

.mhiw-sh__verdict-note {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 13px;
    color: rgba(232, 226, 214, 0.55);
    font-style: italic;
    line-height: 1.3;
    margin-top: 6px;
    min-height: 18px;
}

/* --- Customer queue (column 3) --- */
.mhiw-sh__queue {
    position: absolute;
    left: 620px;
    top: 105px;
    width: 240px;
}
.mhiw-sh__queue-new {
    padding: 10px 12px;
    background: #0a0a0a;
    border: 1px solid #d4af37;
    margin-bottom: 8px;
    transition: opacity 0.3s, transform 0.3s;
}
.mhiw-sh__queue-drop {
    padding: 10px 12px;
    border: 1px dashed #e65149;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: #e65149;
    text-align: center;
}
.mhiw-sh__queue-row {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(232, 226, 214, 0.06);
}
.mhiw-sh__queue-row-head {
    display: flex;
    justify-content: space-between;
}
.mhiw-sh__queue-id,
.mhiw-sh__queue-sev {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(232, 226, 214, 0.55);
}
.mhiw-sh__queue-new .mhiw-sh__queue-id,
.mhiw-sh__queue-new .mhiw-sh__queue-sev {
    color: #d4af37;
}
.mhiw-sh__queue-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 12px;
    color: #e8e2d6;
    letter-spacing: -0.2px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
}
.mhiw-sh__queue-new .mhiw-sh__queue-title {
    font-size: 14px;
    opacity: 1;
    margin-top: 4px;
}

/* --- Bottom caption --- */
.mhiw-sh__caption {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(232, 226, 214, 0.12);
    padding-top: 14px;
}
.mhiw-sh__caption-lede {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    color: #e8e2d6;
    letter-spacing: -0.3px;
    max-width: 560px;
    font-weight: 400;
}
.mhiw-sh__caption-accent { color: #d4af37; }
.mhiw-sh__caption-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(232, 226, 214, 0.55);
    text-align: right;
}
