/* ── Immersive panel mode ────────────────────────────── */

#workspace-panel.incident-notes-active {
    background: rgba(3, 7, 18, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

#workspace-panel.incident-notes-active .workspace-panel-frame {
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Float close button at the top-right of the full overlay */
#workspace-panel.incident-notes-active .workspace-panel-header {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 50;
    background: transparent;
    border: none;
    padding: 0;
}

#workspace-panel.incident-notes-active .workspace-panel-kicker,
#workspace-panel.incident-notes-active .workspace-panel-header h3 {
    display: none;
}

#workspace-panel.incident-notes-active .workspace-panel-close {
    position: static;
    box-shadow: 4px 4px 0 #050505;
}

#workspace-panel.incident-notes-active .workspace-panel-body {
    background: transparent;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* ── Scene composition ───────────────────────────────── */

.in-scene {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 600px;
    padding: 16px 0;
}

.in-scene--empty {
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.in-scene-empty-msg {
    color: rgba(226, 232, 240, 0.45);
    font-style: italic;
    font-size: 13px;
    text-align: center;
}

.in-scene-ransom-slot {
    width: 600px;
    position: relative;
    z-index: 2;
}

/* ── Ransom note ─────────────────────────────────────── */

.in-ransom {
    position: relative;
    width: 100%;
    /* Portrait paper: 1122 × 1402 */
    aspect-ratio: 1122 / 1402;
    background: url('../resources/notes/asset-note-ransom.png') center / contain no-repeat;
    filter: drop-shadow(6px 6px 0 rgba(5, 5, 5, 0.65));
}

.in-ransom-header {
    position: absolute;
    top: 6%;
    left: 11%;
    right: 11%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.in-ransom-filename {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    font-weight: 900;
    color: #18100a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.1;
}

.in-ransom-time {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #3a240c;
    opacity: 0.75;
}

/* Body text overlaid on the paper asset.
   Explicit color anchors all children against the workspace's white inherited color. */
.in-ransom-body {
    position: absolute;
    top: 14%;
    left: 11%;
    right: 11%;
    bottom: 6%;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    color: #1e1208;
}

.in-rn-title {
    margin: 0 0 7px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12.5px;
    font-weight: 900;
    color: #18100a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    border-bottom: 1px solid rgba(24, 16, 10, 0.3);
    padding-bottom: 6px;
}

.in-rn-para {
    margin: 0 0 7px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #1e1208;
    line-height: 1.5;
}

.in-rn-para strong {
    color: #1e1208;
    font-weight: 900;
}

.in-rn-demand {
    margin: 0 0 7px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #1e1208;
    line-height: 1.6;
    border: 1px solid rgba(24, 16, 10, 0.3);
    padding: 6px 8px;
    background: rgba(200, 40, 20, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.in-rn-demand-line {
    display: block;
    color: #1e1208;
}

.in-rn-demand strong {
    color: #c41a1a !important;
    font-weight: 900;
}

.in-rn-threats-label {
    margin: 0 0 2px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    font-weight: 900;
    color: #18100a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.in-rn-threats {
    margin: 0 0 7px;
    padding: 0 0 0 14px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: #1e1208;
    line-height: 1.6;
}

.in-rn-warning {
    margin: 0 0 7px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    font-weight: 900;
    color: #18100a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.4;
    border-top: 1px solid rgba(24, 16, 10, 0.25);
    padding-top: 6px;
}

/* ── In-paper investigation findings ────────────────── */

.in-rn-findings {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 30px;
}

.in-rn-findings-label {
    margin: 0 0 4px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9.5px;
    font-weight: 900;
    color: #2a1a0a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    border-top: 1px solid rgba(24, 16, 10, 0.2);
    padding-top: 5px;
}

.in-rn-finding {
    border-top: 1px dashed rgba(24, 16, 10, 0.4);
    padding-top: 5px;
}

.in-rn-finding-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.in-rn-finding-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #2a1a0a;
}

.in-rn-finding-time {
    font-family: 'Share Tech Mono', monospace;
    font-size: 8.5px;
    color: #3a240c;
    opacity: 0.7;
    white-space: nowrap;
    margin-left: 6px;
}

.in-rn-finding-body {
    margin: 0;
    padding: 0 0 0 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: #1e1208;
    line-height: 1.5;
    list-style: disc;
}

/* ── Backup assessment table (paper-styled) ─────────────
   Same data as the story-panel .backup-table, re-toned for
   dark ink on the light note paper. Built as a CSS grid on
   <span>s to stay legible at the finding's small scale. */

.in-bt {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 2px 6px;
    margin: 3px 0 0;
    padding-left: 12px;
}

.in-bt-head {
    font-family: 'Share Tech Mono', monospace;
    font-size: 7.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2a1a0a;
    opacity: 0.65;
    border-bottom: 1px solid rgba(24, 16, 10, 0.25);
    padding-bottom: 2px;
}

.in-bt-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    color: #18100a;
}

.in-bt-age {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: #3a240c;
}

.in-bt-risk {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    font-weight: 700;
}

.in-bt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.in-bt-dot.green  { background: #2f7d43; }
.in-bt-dot.yellow { background: #b57e00; }
.in-bt-dot.red    { background: #c41a1a; }

.in-bt-risk.sev-red    { color: #a01414; }
.in-bt-risk.sev-yellow { color: #7a5500; }
.in-bt-risk.sev-green  { color: #2f7d43; }

.in-bt-note {
    margin: 5px 0 0 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 8px;
    color: #7a2a0a;
    line-height: 1.4;
}

/* ── Empty panel state ───────────────────────────────── */

.in-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-muted, #7a9ab8);
    font-style: italic;
    font-size: 13px;
}
