/* Breach additions on top of the Fluent design system (styles.css). Same tokens, same rules. */
.wordmark::before { background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 4 4-4 4'/%3E%3Cpath d='M12 17h7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.codeblock { position: relative; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); }
.codeblock pre { margin: 0; padding: 12px 44px 12px 14px; overflow-x: auto; font: 12.5px/1.7 var(--mono); color: var(--text); white-space: pre; }
.codeblock .copy { position: absolute; top: 6px; right: 6px; }
code { font-family: var(--mono); font-size: .92em; }
.bul { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); }
.bul li { margin-top: 4px; }
.sev { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-3); color: var(--text-2); flex: 0 0 auto; }
.sev.critical { background: var(--bad-soft); color: var(--bad); }
.sev.high { background: color-mix(in srgb, #f5a524 16%, transparent); color: #b26b00; }
.sev.medium { background: var(--primary-soft); color: var(--primary); }
@media (prefers-color-scheme: dark) { .sev.high { color: #f5b84a; } }
.case.intel summary { gap: 10px; }
.case.intel .standup div { grid-template-columns: 120px 1fr; }
@media (max-width: 560px) { .case.intel .standup div { grid-template-columns: 1fr; gap: 2px; } }
.field.area { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; font-size: 15px; }
.chat-log { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.msg .who { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.msg.me { align-self: flex-end; background: var(--primary-soft); border-color: var(--primary-line); }
.msg.sys { align-self: center; max-width: 100%; background: var(--surface-2); color: var(--text-2); font-size: 13px; }
.msg.blocked { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: var(--bad-soft); }
.msg.leak { border-color: color-mix(in srgb, var(--good) 40%, transparent); background: var(--good-soft); color: var(--text); }
.msg code { word-break: break-all; }
.trace { display: grid; gap: 4px; margin-bottom: 8px; }
.trace code { display: block; padding: 6px 8px; border-radius: 4px; background: var(--bg-2); font-size: 12px; }
.img-ph { display: inline-block; padding: 0 6px; border: 1px dashed var(--line-strong); border-radius: 4px; color: var(--text-3); font-size: 12px; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 16px; }
.composer .field { flex: 1; }
.options.two { grid-template-columns: 1fr 1fr; }
.wrong-shake { animation: shake .3s; border-color: var(--bad) !important; }
.btn.disabled { opacity: .45; pointer-events: none; }
.list-row input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; flex: 0 0 auto; }
label.list-row { cursor: pointer; }
.lab-step h3 { margin: 0; }
.setting select.field, .setting input.field { font-size: 14px; }
.nav a { min-width: 0; }
@media (max-width: 420px) { .nav a span { font-size: 10px; } }
.panel.next-up { display: block; padding: 20px; }
@media (min-width: 700px) { .panel.next-up { padding: 24px; } }
.panel.next-up .meta { color: var(--text-3); }
.cat-chips .chip { white-space: nowrap; flex: 0 0 auto; display: inline-flex; align-items: center; font-size: 14px; }
@media (max-width: 560px) { .composer { flex-direction: column; align-items: stretch; } }

/* ---------- workbench (Range) ---------- */
.field.area.mono, textarea.mono { font: 12.5px/1.6 var(--mono); }
.wb { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 14px; }
.wb-tabs { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.wb-label { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.wb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .wb-grid { grid-template-columns: 1fr; } }
.wb-res { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); font: 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 340px; overflow: auto; color: var(--text); }
.wb-hist .list-row { padding: 8px 12px; }
.wb-table { padding: 0; }
.wb-table table { width: 100%; border-collapse: collapse; font: 12.5px/1.5 var(--mono); }
.wb-table th { position: sticky; top: 0; background: var(--surface-2); text-align: left; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; color: var(--text-3); }
.wb-table td { padding: 6px 12px; border-top: 1px solid var(--line); }
.wb-table tr[data-p] { cursor: pointer; }
.wb-table tr.hit td { background: var(--good-soft); color: var(--text); font-weight: 600; }
.wb-table tr:hover td { background: var(--surface-2); }

/* ---------- data flow diagram ---------- */
.dfd-wrap { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 12px; overflow-x: auto; }
.dfd { width: 100%; min-width: 560px; height: auto; }
.dfd text { font: 12px var(--font); fill: var(--text); }
.dfd .dfd-z { font-weight: 700; fill: var(--text-3); text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }
.dfd .dfd-b { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 5 5; }
.dfd .dfd-el rect { fill: var(--surface); stroke: var(--primary); stroke-width: 1.5; }
.dfd .dfd-el rect.external { fill: var(--surface-2); stroke: var(--text-3); stroke-dasharray: 4 3; }
.dfd .dfd-el rect.actor { fill: var(--primary-soft); stroke: var(--primary); }
.dfd .dfd-el rect.store { fill: var(--surface-2); stroke: none; }
.dfd .dfd-el line { stroke: var(--primary); stroke-width: 1.5; }
.dfd .dfd-t { font-size: 11px; font-weight: 600; }
.dfd .dfd-f { stroke: var(--text-3); stroke-width: 1.4; }
.dfd .dfd-ah { fill: var(--text-3); }
.dfd .dfd-n { fill: var(--bg); stroke: var(--text-3); stroke-width: 1; }
.dfd .dfd-nt { font-size: 10px; font-weight: 700; fill: var(--text-2); }
.flow-list { margin: 10px 0 0; padding-left: 20px; } .flow-list li { margin-top: 4px; color: var(--text); }
.stride-tag, .stride-tag { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 700; margin-right: 4px; }

/* ---------- hallucination hunt ---------- */
.hunt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.hunt-claim { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface); }
.hunt-claim p { margin: 0 0 8px; }
.hunt-claim.ok { border-color: color-mix(in srgb, var(--good) 45%, transparent); background: var(--good-soft); }
.hunt-claim.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-soft); }
.hunt-why { margin: 8px 0 0; }
