:root { color-scheme: light dark; --fg: #1d1f23; --muted: #646a73; --line: #d9dde3; --surface: #f6f7f9; --accent: #2d5bd7; --error: #b3261e; --warn: #8a5a00; --ok: #1e6b3a; }
@media (prefers-color-scheme: dark) { :root { --fg: #e6e8eb; --muted: #9aa1ab; --line: #343a42; --surface: #1b1e22; --accent: #8fb0ff; --error: #ff8a80; --warn: #e6b450; --ok: #7fd49b; } }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 980px; padding: 24px 20px 64px; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; color: var(--fg); }
body.dragging { outline: 3px dashed var(--accent); outline-offset: -8px; }
code, pre, textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.top .brand { font-weight: 700; font-size: 20px; margin: 0; }
.top .privacy { color: var(--muted); margin: 4px 0 16px; }
.input { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--surface); }
.drop p { margin: 0 0 6px; }
.input > label { display: block; margin: 10px 0 4px; color: var(--muted); }
textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: transparent; color: inherit; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
input[type=search], .row input { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; background: transparent; color: inherit; }
button { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; background: var(--surface); color: inherit; cursor: pointer; }
button[type=submit] { background: var(--accent); color: #fff; border-color: var(--accent); }
.status { min-height: 1.5em; margin: 12px 0; color: var(--muted); }
.status.error { color: var(--error); font-weight: 600; }
.status.ok { color: var(--ok); }
.search { margin: 8px 0; display: flex; gap: 8px; align-items: center; }
.notice { border-left: 4px solid var(--warn); padding: 8px 12px; background: var(--surface); }
.notice.error { border-color: var(--error); }
.meta .title { margin: 16px 0 4px; font-size: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; margin: 0; }
.facts code { overflow-wrap: anywhere; }
.history { margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; max-height: 260px; overflow: auto; }
.history h2 { font-size: 15px; margin: 4px 0; }
.events, .changes { list-style: none; padding: 0; margin: 0; }
.events li, .changes li { padding: 3px 0; font-size: 13px; }
.events li.selected button { background: var(--accent); color: #fff; }
.events .kind, .events .actor, time { color: var(--muted); }
.nojs { color: var(--muted); font-size: 12px; }
.snippet { margin: 4px 0 8px 12px; padding: 4px 8px; border-left: 3px solid var(--line); white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.entity { border-top: 1px solid var(--line); padding: 12px 0; }
.entity.owner { border-top: none; }
.entity header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.entity header h2 { font-size: 18px; margin: 0; }
.entity .type { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.entity .id { color: var(--muted); font-size: 12px; }
.fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 8px 0; font-size: 14px; }
.fields div { display: contents; }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; grid-column: 2; }
.links { padding-left: 18px; font-size: 14px; }
.predicate { color: var(--muted); }
.ref.unresolved, .mention.unresolved { text-decoration: underline dotted; color: var(--warn); }
.rich p, .rich li { white-space: pre-wrap; }
.rich blockquote { border-left: 3px solid var(--line); margin: 8px 0; padding: 0 12px; color: var(--muted); }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 6px 12px; margin: 8px 0; }
.callout.tone-warning, .callout.tone-caution { border-left-color: var(--warn); }
.callout-label { margin: 0; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; margin: 8px 0; }
td { border: 1px solid var(--line); padding: 4px 8px; vertical-align: top; }
td p { margin: 0; }
figure { margin: 8px 0; }
figcaption { font-size: 12px; color: var(--muted); }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
.item-ref, .collection { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; margin: 6px 0; }
.collection-label { margin: 0; font-weight: 600; }
.collection ul { margin: 4px 0; padding-left: 18px; }
.unsupported { border: 1px dashed var(--warn); border-radius: 6px; padding: 6px 10px; margin: 8px 0; }
.unsupported summary { cursor: pointer; color: var(--warn); }
.unsafe-link { text-decoration: underline wavy var(--warn); }
.source { margin-top: 20px; }
.source summary { cursor: pointer; color: var(--muted); }
footer { margin-top: 40px; color: var(--muted); font-size: 12px; }
footer code { overflow-wrap: anywhere; }
