:root {
  --fg: #1d2330; --muted: #5f6b7a; --line: #dfe3e8; --bg: #f6f7f9; --card: #fff;
  --green: #1a7f37; --amber: #9a6700; --red: #cf222e; --blue: #0969da; --grey: #6e7781;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
header { background: var(--fg); color: #fff; padding: 12px 24px; display: flex; align-items: baseline; gap: 16px; }
header a { color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
header span { color: #b7bfca; font-size: 13px; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 24px 60px; }
h2 { font-size: 16px; margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: #f0f3f6; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
pre { background: #f6f8fa; padding: 8px; border-radius: 6px; overflow-x: auto; margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--grey); white-space: nowrap; }
.badge.ok { background: var(--green); } .badge.warn { background: var(--amber); }
.badge.bad { background: var(--red); } .badge.info { background: var(--blue); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--fg); }
textarea { width: 100%; min-height: 70px; }
button { font: inherit; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
button:hover:not(:disabled) { background: #f0f3f6; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
button.approve { background: var(--green); border-color: var(--green); color: #fff; }
button.reject { background: var(--red); border-color: var(--red); color: #fff; }
.banner { display: none; padding: 10px 24px; background: #fff8c5; border-bottom: 1px solid #e6d77a; }
.banner.show { display: block; }
.error { color: var(--red); margin: 8px 0 0; }
.notice { padding: 10px 12px; border-radius: 6px; background: #ddf4ff; margin-bottom: 16px; }
ul.reasons { margin: 6px 0 0; padding-left: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 12px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.timeline details summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.qa { border-left: 3px solid var(--blue); padding-left: 10px; margin-top: 10px; }
