:root { color-scheme: dark; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #0b1120; color: #e5e7eb; }
button, input, textarea { font: inherit; }
button { appearance: none; border: 0; border-radius: 9px; padding: 9px 14px; cursor: pointer; font-weight: 700; background: #2563eb; color: #fff; }
button:hover { background: #1d4ed8; }
button.secondary, .filters button { background: #334155; }
button.secondary:hover, .filters button:hover { background: #475569; }
button.danger { background: #b91c1c; }
button.danger:hover { background: #991b1b; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 34px auto 64px; }
.page-header, .toolbar-card, .request-top, .dialog-actions, .field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-header { align-items: flex-start; margin-bottom: 22px; }
.eyebrow { margin: 0 0 4px; color: #60a5fa; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: 28px; }
h2 { margin: 0 0 18px; }
p { margin: 6px 0; }
.hint, .summary, time { color: #94a3b8; }
.card, .request, dialog { border: 1px solid #334155; border-radius: 14px; background: #111827; box-shadow: 0 16px 36px #0004; }
.card { padding: 20px; }
.narrow { max-width: 430px; margin: 62px auto; }
label { display: block; margin: 14px 0; color: #cbd5e1; font-size: 13px; }
input, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #475569; border-radius: 9px; background: #0f172a; color: #f8fafc; }
textarea { min-height: 82px; resize: vertical; }
.toolbar-card { flex-wrap: wrap; }
.filters, .search-row, .actions, .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button.active { background: #0f766e; }
.search-row { flex: 1 1 360px; justify-content: flex-end; }
.search-row input { width: min(420px, 100%); margin: 0; }
.summary { margin: 14px 2px; }
.summary.success { color: #86efac; font-weight: 800; }
.requests { display: grid; gap: 13px; }
.request { padding: 17px; }
.request-top { align-items: flex-start; }
.request-id { margin-left: 10px; color: #cbd5e1; font-size: 12px; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pending { background: #854d0e; }
.approved { background: #166534; }
.rejected, .revoked { background: #991b1b; }
.field { justify-content: flex-start; margin-top: 13px; padding: 10px 12px; border-radius: 9px; background: #0f172a; }
.field > span { flex: 0 0 60px; color: #94a3b8; }
.field > strong { min-width: 0; overflow-wrap: anywhere; }
.copy-link { margin-left: auto; padding: 5px 9px; background: #334155; font-size: 12px; }
.meta { margin-top: 11px; color: #94a3b8; font-size: 13px; }
.message { margin-top: 11px; padding-left: 12px; border-left: 3px solid #334155; }
.message span { color: #94a3b8; font-size: 12px; }
.message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-note { border-color: #7c3aed; }
.revocation-state { display: grid; gap: 4px; margin-top: 12px; padding: 11px 13px; border: 1px solid; border-radius: 10px; }
.revocation-state strong { font-size: 14px; }
.revocation-state span { color: #cbd5e1; font-size: 12px; line-height: 1.5; }
.revocation-state.waiting { border-color: #a16207; background: #42200666; }
.revocation-state.waiting strong { color: #fde68a; }
.revocation-state.delivered { border-color: #15803d; background: #052e1666; }
.revocation-state.delivered strong { color: #86efac; }
.actions { margin-top: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hidden { display: none !important; }
.error { min-height: 18px; color: #fca5a5; }
.empty { padding: 30px; text-align: center; color: #94a3b8; }
.audit-card { margin-top: 20px; }
.audit-card summary { cursor: pointer; font-weight: 700; }
.audit { margin-top: 14px; display: grid; gap: 7px; }
.audit-row { display: grid; grid-template-columns: 165px 160px minmax(180px, 1fr) minmax(160px, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #1f2937; font-size: 12px; }
dialog { width: min(540px, calc(100% - 24px)); color: #e5e7eb; padding: 22px; }
dialog::backdrop { background: #000b; }
.dialog-machine { color: #93c5fd; overflow-wrap: anywhere; }
.decision-notice { min-height: 20px; color: #fbbf24; font-weight: 700; line-height: 1.55; }
.dialog-actions { justify-content: flex-end; margin-top: 18px; }
@media (max-width: 720px) {
  .shell { width: min(100% - 20px, 1180px); margin-top: 18px; }
  .page-header, .toolbar-card { align-items: stretch; }
  .audit-row { grid-template-columns: 1fr; }
  .field { align-items: flex-start; flex-wrap: wrap; }
  .copy-link { margin-left: 0; }
}
