/* Posta inceleme ekranı: karar başlığı, kanıt, YZ yorumu, içerik */
.back-link { display: inline-flex; align-items: center; gap: 0.25rem; margin-bottom: var(--sp-2); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.back-link svg { width: 14px; height: 14px; }

.verdict {
  position: relative;
  margin-bottom: var(--sp-3);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.verdict-body { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sp-3) var(--sp-6); padding-block: var(--sp-4) var(--sp-3); padding-inline: calc(var(--sp-4) + 3px) var(--sp-4); }
.verdict-why { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3125rem; margin-top: 0.4375rem; font-size: var(--fs-sm); }
.verdict-why i { width: 8px; height: 8px; border-radius: 2px; background: var(--info); }
.verdict-why.tone-bad i { background: var(--bad); }
.verdict-why.tone-warn i { background: var(--warn); }
.verdict-why strong { font-weight: 600; }
.verdict::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--faint); border-start-start-radius: var(--radius-lg); border-end-start-radius: var(--radius-lg); }
.verdict[data-verdict="clean"]::before { background: var(--ok); }
.verdict[data-verdict="hold"]::before { background: var(--warn); }
.verdict[data-verdict="block"]::before { background: var(--bad); }
.verdict-main { flex: 1 1 24rem; min-width: 0; }
.verdict-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin-bottom: 0.375rem; }
.verdict-meta .badge { margin-inline-start: 0 !important; }
.verdict-subject { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.verdict-flow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.375rem; margin-top: 0.3125rem; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.verdict-flow i { font-style: normal; color: var(--faint); }
.verdict-sub { margin-top: 0.125rem; font-size: var(--fs-xs); color: var(--muted); }
.verdict-score { flex: 0 0 10rem; }
.verdict-score-lab { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.verdict-score-val { display: block; font-size: 1.75rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sev-high .verdict-score-val { color: var(--bad); }
.sev-mid .verdict-score-val { color: var(--warn); }
.sev-low .verdict-score-val { color: var(--ok); }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--neutral-soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--faint); }
.sev-high .meter i, .meter.sev-high i { background: var(--bad); }
.sev-mid .meter i, .meter.sev-mid i { background: var(--warn); }
.sev-low .meter i, .meter.sev-low i { background: var(--ok); }

.mail-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; padding-block: 0.5rem; padding-inline: calc(var(--sp-4) + 3px) var(--sp-4); border-top: 1px solid var(--line); background: var(--panel2); }
.mail-toolbar form { margin: 0; }
.mail-toolbar-sep { flex: 1 1 auto; }
.mail-toolbar .ml-more > summary { list-style: none; }
.mail-toolbar .ml-more > summary::-webkit-details-marker { display: none; }
.mail-toolbar .ml-menu { inset-inline-start: 0; inset-inline-end: auto; }

.mail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); gap: var(--sp-3); align-items: start; }
.mail-col-main, .mail-col-side { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.mail-layout .card { margin: 0; }
@media (max-width: 1100px) { .mail-layout { grid-template-columns: minmax(0, 1fr); } }

.sys-tag { display: inline-flex; align-items: center; gap: 0.25rem; margin-bottom: 0.1875rem; color: var(--muted); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.sys-tag svg { width: 12px; height: 12px; }

.sig-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.5rem; padding: 0.3125rem 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.sig:first-child { border-top: 0; padding-top: 0; }
.sig i { align-self: center; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--info); }
.sig.tone-bad i { background: var(--bad); }
.sig.tone-warn i { background: var(--warn); }
.sig code { font-size: var(--fs-2xs); color: var(--muted); }

.sub-title { margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.score-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3125rem; font-size: var(--fs-xs); }
.score-parts li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 2.75rem; gap: var(--sp-2); align-items: center; }
.score-parts b { text-align: end; font-weight: 500; font-variant-numeric: tabular-nums; }
.score-credit { color: var(--ok); }
.score-total { margin-top: 0.1875rem; padding-top: 0.3125rem; border-top: 1px solid var(--line); font-weight: 600; }
.score-total b { font-weight: 600; }
.evidence-more { margin-top: var(--sp-3); font-size: var(--fs-xs); }
.evidence-more > summary { color: var(--muted); }
.ctx-list { margin: var(--sp-2) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.1875rem; color: var(--muted); }
.ctx-list code { font-size: var(--fs-2xs); }
.raw-reason { margin-top: var(--sp-2); padding: 0.5rem 0.625rem; max-height: 14rem; overflow: auto; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-2xs); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

.ai-facts { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: 0 0 var(--sp-3); }
.ai-facts dt { font-size: var(--fs-2xs); color: var(--muted); }
.ai-facts dd { margin: 0.125rem 0 0; font-size: var(--fs-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.ai-surface .ai-note { margin-top: var(--sp-2); }

.mail-body-card { padding: 0; overflow: hidden; }
.mail-body-card .view-tabs { padding: 0 var(--sp-2); }
.mail-frame-wrap { background: var(--mail-bg); }
.mail-frame { display: block; width: 100%; height: 34rem; border: 0; background: var(--mail-bg); }
.mail-frame-note { padding: 0.375rem var(--sp-3); font-size: var(--fs-xs); color: var(--muted); background: var(--panel2); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.mail-plain { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-xs); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--mail-text); background: var(--mail-bg); max-height: 36rem; overflow: auto; }
.mail-raw { max-height: 60vh; }

.auth-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.375rem; }
.auth-tile { padding: 0.4375rem 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.auth-tile span { display: block; font-size: var(--fs-2xs); color: var(--muted); font-weight: 500; }
.auth-tile strong { display: block; font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; }
.auth-tile.tone-ok { background: var(--ok-soft); border-color: var(--ok-line); }
.auth-tile.tone-ok strong { color: var(--ok); }
.auth-tile.tone-bad { background: var(--bad-soft); border-color: var(--bad-line); }
.auth-tile.tone-bad strong { color: var(--bad); }

.kv-stack { grid-template-columns: minmax(0, 1fr); gap: 0; }
.kv-stack dt { margin-top: 0.5rem; font-size: var(--fs-xs); }
.kv-stack dt:first-child { margin-top: 0; }
.kv-stack dd { text-align: start; }
.kv-link { display: block; margin-top: 0.125rem; font-size: var(--fs-xs); }
.note-line { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--muted); }
.hops { margin: 0; padding: 0; list-style: none; counter-reset: hop; display: flex; flex-direction: column; gap: 0.5rem; max-height: 20rem; overflow: auto; }
.hops li { position: relative; padding-inline-start: 1.125rem; font-family: var(--font-mono); font-size: var(--fs-2xs); line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.hops li::before { counter-increment: hop; content: counter(hop); position: absolute; inset-inline-start: 0; top: 0; color: var(--faint); font-weight: 500; }
.relay-pick { margin: var(--sp-2) 0 0; }
.relay-pick-list { display: flex; flex-direction: column; gap: 0.3125rem; margin-bottom: var(--sp-2); }
.relay-pick-list .check { display: flex; align-items: center; gap: 0.375rem; padding-inline-start: 0; font-size: var(--fs-xs); }
.relay-pick-list .check input { position: static; }
