/* ── complaint detail drawer ── */
.drawer { width: min(600px, 100%); height: 100%; background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: drawerIn 0.2s var(--ease); }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px var(--pad); border-bottom: 1px solid var(--line); color: var(--fg-muted); font-size: 12.5px; }
.drawer-body { overflow-y: auto; padding: var(--pad) var(--pad) 40px; flex: 1; }

.dw-top { margin-bottom: 8px; }
.dw-marks { display: flex; gap: 14px; margin-bottom: 10px; }
.dw-top h2 { font-family: var(--display); font-size: 21px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.dw-type { color: var(--fg-muted); font-size: 13px; margin-top: 4px; text-transform: capitalize; }
.dw-type:empty { display: none; }
.dw-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dw-flags span { font-size: 11.5px; color: var(--fg-muted); padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); }

.dw-sec { padding: 16px 0; border-top: 1px solid var(--line); }
.dw-sec:first-of-type { border-top: 0; }
.dw-sec h3 { font-size: 11.5px; font-weight: 600; color: var(--fg-faint); margin-bottom: 10px; }
.dw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px 18px; }
.dw-grid dt { font-size: 11.5px; color: var(--fg-faint); }
.dw-grid dd { font-size: 13px; margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.dw-text { font-size: 14px; line-height: 1.6; white-space: pre-line; }
.dw-orig { margin-top: 10px; font-size: 13px; color: var(--fg-muted); white-space: pre-line; }
.dw-orig b { font-weight: 600; color: var(--fg-faint); margin-right: 4px; }
.dw-source { padding-top: 16px; border-top: 1px solid var(--line); }
.ext { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-weight: 500; }
.ext:hover { text-decoration: underline; }

