/* Admin: density per ui-design-policy (12 px tables, 0 4px cells, 8 px gaps, 4 px page padding). */
:root { --ink: #1b1f24; --link: #0645ad; --top: #1F3A5F; --head: #eceff3; --hover: #fff8d6; --rule: #d0d4da; --red: #C23B2E; }
* { box-sizing: border-box; }
body { margin: 0; font: 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: #fff; }
a { color: var(--link); }
.topline { display: flex; align-items: center; gap: 12px; height: 28px; padding: 0 4px; background: var(--top); color: #fff; }
.topline a { color: #fff; text-decoration: none; }
.topline .brand { font-weight: 700; }
.topline .crumbs { flex: 1; }
.topline nav { display: flex; gap: 12px; align-items: center; }
.topline form { margin: 0; }
button.plain { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 0; }
main { padding: 4px; }
.notice { display: flex; gap: 12px; align-items: center; margin: 4px; padding: 4px 8px; background: #e6f4ea; border: 1px solid #9fd3ad; word-break: break-all; }
.notice.err { background: #fde8e6; border-color: #f0a9a2; }
.notice button { font: inherit; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; border: 1px solid var(--rule); padding: 4px; margin-bottom: 8px; }
.filters label { display: flex; flex-direction: column; font-size: 11px; }
.filters input, .filters select { height: 26px; font: 13px inherit; font-family: inherit; width: 160px; border: 0; border-bottom: 1px solid var(--rule); background: #fff; }
.filters select { appearance: auto; }
.filters button, .form button, button.btn { height: 26px; font: 13px inherit; font-family: inherit; padding: 0 10px; border: 1px solid #888; background: #f4f4f4; border-radius: 3px; cursor: pointer; }
table.list { border-collapse: collapse; width: 100%; font-size: 12px; }
table.list th, table.list td { padding: 0 4px; height: 28px; text-align: left; border-bottom: 1px solid #e3e6ea; white-space: nowrap; vertical-align: middle; }
table.list th { background: var(--head); font-weight: 600; }
table.list th a { color: var(--ink); text-decoration: none; }
table.list th a.active::after { content: " ▾"; }
table.list th a.active.asc::after { content: " ▴"; }
table.list tr:hover td { background: var(--hover); }
table.list td.num, table.list th.num { text-align: right; }
table.list td.wrap { white-space: normal; min-width: 240px; }
.status-draft { color: #666; } .status-shared { color: var(--link); } .status-done { color: #2B7A4B; font-weight: 600; } .status-applied { color: #2B7A4B; } .status-stale { color: var(--red); font-weight: 600; }
.section { margin-top: 8px; border: 1px solid var(--rule); padding: 4px; }
.section h2 { font-size: 13px; margin: 0 0 4px; }
.form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.form label { display: flex; flex-direction: column; font-size: 11px; }
.form input, .form select { height: 26px; font: 13px inherit; font-family: inherit; width: 160px; border: 0; border-bottom: 1px solid var(--rule); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; }
pre.text { margin: 0; white-space: pre-wrap; font: 12px/1.35 inherit; font-family: inherit; }
.changed { background: #fff3e0; }
.login { max-width: 320px; margin: 60px auto; border: 1px solid var(--rule); padding: 12px; }
.login label { display: block; margin-bottom: 8px; }
.login input { display: block; width: 100%; height: 30px; font: inherit; border: 1px solid var(--rule); padding: 0 6px; }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 0; top: 100%; z-index: 5; background: #222; color: #fff; font-size: 12px; padding: 2px 6px; white-space: nowrap; }
