/* tinyShield console. Plain on purpose; served from 'self' (style-src). */
:root { color-scheme: light dark; --fg: #1d2330; --bg: #f7f8fa; --accent: #1f5fbf; --muted: #5b6474; }
@media (prefers-color-scheme: dark) { :root { --fg: #e4e7ec; --bg: #14171c; --accent: #6ea8ff; --muted: #9aa3b2; } }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
.bar { display: flex; gap: 1rem; align-items: center; padding: .6rem 1.2rem; border-bottom: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); }
.brand { font-weight: 600; margin-right: auto; }
.who { color: var(--muted); }
main { max-width: 72rem; margin: 2rem auto; padding: 0 1.2rem; }
form.inline { display: inline; margin: 0; }
label { display: block; margin: .6rem 0; }
input { display: block; width: 100%; padding: .4rem; font: inherit; }
button, .button { display: inline-block; padding: .45rem 1rem; font: inherit; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; text-decoration: none; cursor: pointer; }
.bar button { background: transparent; color: var(--accent); }
.notice { padding: .6rem .8rem; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
details { margin-top: 2rem; }
nav { display: flex; gap: .2rem; }
a.nav { padding: .3rem .7rem; border-radius: 4px; color: var(--fg); text-decoration: none; }
a.nav:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
a.nav.active { background: color-mix(in srgb, var(--accent) 20%, transparent); font-weight: 600; }
a { color: var(--accent); }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
table { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .9em; }
table.audit { font-size: .9em; }
td.details { color: var(--muted); word-break: break-word; }
code.small { font-size: .8em; color: var(--muted); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
dt { color: var(--muted); }
dd { margin: 0; }
select { display: block; width: 100%; padding: .4rem; font: inherit; }
.muted { color: var(--muted); }
.error { padding: .6rem .8rem; border-left: 3px solid #c0392b; background: color-mix(in srgb, #c0392b 12%, transparent); }
.status, .outcome { display: inline-block; padding: 0 .4rem; border-radius: 3px; font-size: .85em; border: 1px solid currentColor; }
.status.active, .outcome.success { color: #2e7d32; }
.status.suspended, .outcome.denied { color: #b26a00; }
.outcome.failure { color: #c0392b; }
form.row { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; }
form.row label { flex: 1 1 16rem; margin: 0; }
form.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .6rem; align-items: end; margin-bottom: 1rem; }
form.filters label { margin: 0; }
button.secondary { background: transparent; color: var(--accent); padding: .2rem .6rem; }
button.danger { background: #c0392b; border-color: #c0392b; }
.paging { display: flex; gap: 1rem; align-items: center; }
