:root { --bg: #f6f7f9; --fg: #1b1f24; --muted: #545d69; --line: #d6dbe1; --accent: #0b5cad; --err: #a4161a; --ok: #1b6e3a; --warn: #fff4ce; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
[hidden] { display: none !important; }
.banner { background: var(--warn); border-bottom: 2px solid #b08800; padding: .5rem 1rem; font-weight: 600; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid var(--line); }
nav { display: flex; flex-wrap: wrap; gap: .25rem; }
button { font: inherit; padding: .45rem .9rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 6px; cursor: pointer; }
button.secondary, nav button { background: #fff; color: var(--accent); }
nav button[aria-current="page"] { background: var(--accent); color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid #e69500; outline-offset: 2px; }
a { color: var(--accent); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem; max-width: 1400px; margin: 0 auto; }
.layout.with-detail { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); }
@media (max-width: 860px) { .layout.with-detail { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: .75rem 0; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.stat { display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--fg); background: #fff; border: 1px solid var(--line); margin: 0; }
button.stat:hover { border-color: var(--accent); }
.stat .value { font-size: 1.8rem; font-weight: 700; }
.stat .label { color: var(--muted); font-size: .9rem; }
.controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; padding: .45rem; border: 1px solid #7a8490; border-radius: 6px; background: #fff; }
textarea { width: 100%; min-height: 7rem; }
#import-box { font-family: ui-monospace, monospace; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.num { text-align: right; }
.status { margin: .5rem 0; padding: .5rem .75rem; border-radius: 6px; }
.status.loading { background: #e8f0fb; }
.status.error { background: #fde8e8; color: var(--err); border: 1px solid var(--err); }
.status.ok { background: #e5f4ea; color: var(--ok); }
.status.empty, .status.info { background: #eef0f3; color: var(--muted); }
.muted { color: var(--muted); }
.tag { display: inline-block; padding: 0 .4rem; border-radius: 4px; background: #e8ecf1; font-size: .8rem; }
.tag.synthetic { background: var(--warn); font-weight: 600; }
.evidence-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.evidence-list a { display: block; padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: inherit; text-decoration: none; }
.evidence-list a:hover, .evidence-list a.selected { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.evidence-list p { margin: .25rem 0 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .75rem; }
dt { font-weight: 600; }
dd { margin: 0; word-break: break-word; }
blockquote { margin: 0; padding: .5rem .75rem; border-left: 4px solid var(--line); background: #fafbfc; white-space: pre-wrap; }
.notice { background: #eef0f3; padding: .6rem .75rem; border-radius: 6px; }
.answer { font-size: 1.05rem; }
.login { max-width: 400px; margin: 3rem auto; }
.login form { display: flex; flex-direction: column; gap: .75rem; }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.detail-head h2 { margin: 0; }