:root { --ink:#1b2430; --muted:#5b6778; --line:#d9dee7; --bg:#f6f8fb; --accent:#1b5fd1; --ok:#17794a; --bad:#b3261e; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; color:var(--ink); background:var(--bg); }
header { display:flex; justify-content:space-between; gap:16px; padding:16px 24px; background:#fff; border-bottom:1px solid var(--line); flex-wrap:wrap; }
h1 { margin:0; font-size:20px; } h2 { font-size:17px; margin:12px 0; }
.sub { margin:2px 0 0; color:var(--muted); max-width:760px; }
.tools { display:flex; align-items:center; gap:12px; }
.who { color:var(--muted); } .who.on { color:var(--ok); font-weight:600; }
main { display:grid; grid-template-columns:230px 1fr; gap:20px; padding:20px 24px; align-items:start; }
@media (max-width:820px) { main { grid-template-columns:1fr; } }
nav { background:#fff; border:1px solid var(--line); border-radius:8px; padding:6px; }
nav button { display:block; width:100%; text-align:left; border:0; background:none; padding:9px 10px; border-radius:6px; cursor:pointer; font:inherit; color:var(--ink); }
nav button:hover { background:#eef3fc; } nav button.active { background:var(--accent); color:#fff; }
#work { background:#fff; border:1px solid var(--line); border-radius:8px; padding:16px 20px; min-width:0; }
.note { background:#f2f6fd; border:1px solid #cfdcf3; border-radius:6px; padding:8px 12px; color:#2b4a7a; margin-bottom:6px; }
code, pre { font:12.5px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
form { display:flex; flex-wrap:wrap; gap:10px 14px; align-items:end; }
label { display:flex; flex-direction:column; font-size:12px; color:var(--muted); gap:3px; }
input, select { font:inherit; padding:6px 8px; border:1px solid #bcc5d3; border-radius:5px; min-width:130px; }
input.w-lg { min-width:260px; }
button { font:inherit; padding:6px 12px; border:1px solid #9fb0cc; background:#fff; border-radius:5px; cursor:pointer; }
button.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
button:disabled { opacity:.5; cursor:default; }
.msg { margin:14px 0 6px; padding:8px 12px; border-radius:6px; background:#eef7f1; border:1px solid #bfe0cb; color:var(--ok); min-height:20px; }
.msg.err { background:#fcefee; border-color:#f0c4c0; color:var(--bad); }
.msg.empty { background:#f1f3f6; border-color:var(--line); color:var(--muted); }
table { border-collapse:collapse; margin:8px 0; font-size:13px; }
th, td { border:1px solid var(--line); padding:4px 9px; text-align:left; vertical-align:top; }
th { background:#f1f4f9; font-weight:600; }
tr.click { cursor:pointer; } tr.click:hover { background:#eef3fc; }
.kv th { width:170px; }
.tabs { display:flex; gap:4px; margin-top:16px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.tabs button { border:1px solid var(--line); border-bottom:0; border-radius:6px 6px 0 0; background:#f1f4f9; }
.tabs button.active { background:#fff; font-weight:600; border-color:#9fb0cc; }
.tabpane { padding:10px 0; }
.cols { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:1100px) { .cols { grid-template-columns:1fr; } }
.pane h3 { margin:0 0 4px; font-size:13px; } .pane h3 small { color:var(--muted); font-weight:400; }
pre { margin:0; padding:10px; background:#101826; color:#dbe5f5; border-radius:6px; overflow:auto; max-height:420px; white-space:pre; }
pre.cobol { background:#2a2118; color:#f3e6d4; }
.chg { margin:8px 0; } .chg .op { display:inline-block; min-width:62px; font-weight:700; }
.op.INSERT { color:var(--ok); } .op.UPDATE { color:#9a6700; } .op.DELETE { color:var(--bad); }
footer { padding:14px 24px 30px; color:var(--muted); display:flex; flex-direction:column; gap:4px; font-size:12.5px; }
a { color:var(--accent); }
.small { color:var(--muted); font-size:12px; }

.source-cols { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (max-width:820px) { .source-cols { grid-template-columns:minmax(0,1fr); } }
.pane { min-width:0; }
.source-code { max-height:min(65vh,680px); }
.source-line { display:block; min-width:max-content; }
.line-number { opacity:.65; user-select:none; }
.business-line { background:#4d3a25; }
.source-flash, .source-line:target { background:#79501d; }
.source-code a { color:#a6d3ff; text-underline-offset:2px; }
.source-jumps:empty { display:none; }
.source-jumps, .source-credits { margin-bottom:5px; }
.source-jumps a { margin-inline-end:8px; }
#source-dialog { width:min(920px,94vw); padding:12px; border:1px solid var(--line); border-radius:8px; color:var(--ink); }
#source-dialog::backdrop { background:#101826a0; }
.source-dialog-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.source-dialog-bar h2 { margin:0; }
#source-frame { display:block; width:100%; height:72vh; border:1px solid var(--line); border-radius:6px; }
.source-listing { padding:12px; }
.source-listing h1 { margin-bottom:8px; }
.source-listing .source-code { max-height:none; }
.summary { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px 18px; font-size:14px; }
.summary li { background:#f4f6fa; border:1px solid var(--line); border-radius:6px; padding:4px 10px; }
.summary b { font-size:16px; }
.summary span { color:var(--muted); }
