:root { --ink: #213343; --muted: #607080; --line: #dfe3eb; --head: #f5f8fa; --accent: #0b7a75; --bad: #b3261e; --box: #cbd6e2; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #fff; color: var(--ink); font: 14px/1.35 "Lexend Deca", "Helvetica Neue", Arial, sans-serif; }
main { height: 100%; overflow: auto; }
.note { margin: 16px; color: var(--muted); }
.pair { position: sticky; top: 0; z-index: 3; background: #fff8e6; border-bottom: 1px solid #f0d38a; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pair input { flex: 1 1 360px; min-width: 200px; font: inherit; padding: 5px 8px; border: 1px solid var(--box); border-radius: 3px; background: #fff; }
.pair strong { letter-spacing: .08em; }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; table-layout: fixed; }
col.c-name { width: 11%; } col.c-miss { width: 12.5%; } col.c-sm { width: 9%; } col.c-se { width: 19.5%; } col.c-pn { width: 9.5%; } col.c-pm { width: 9%; } col.c-pe { width: 19.5%; } col.c-camp { width: 6.5%; } col.c-save { width: 64px; }
th { position: sticky; top: 0; z-index: 2; background: var(--head); text-align: left; font-weight: 600; font-size: 13px; padding: 9px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pairing th { top: var(--pairh, 0px); }
td { padding: 8px 6px; font-size: 13px; overflow-wrap: normal; word-break: normal; border-bottom: 1px solid var(--line); vertical-align: top; }
td.name { font-weight: 600; }
td.miss div + div { margin-top: 3px; }
td .v, td .ov { word-break: normal; overflow-wrap: normal; }
td .e { font-size: 12.5px; }
td input { width: 100%; min-width: 0; font: inherit; padding: 5px 8px; border: 1px solid var(--box); border-radius: 3px; background: #fff; color: var(--ink); }
td input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
td .was { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
td .was s { color: var(--bad); }
button { font: inherit; font-weight: 600; border: 0; border-radius: 3px; padding: 6px 10px; background: var(--accent); color: #fff; cursor: pointer; white-space: nowrap; }
button:disabled { background: #b8c4cf; cursor: default; }
button.plain { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.msg { font-size: 12px; margin-top: 4px; color: var(--bad); white-space: normal; }
.msg.ok { color: var(--accent); }
tr.gone td { opacity: .35; transition: opacity .6s; }
td.save { width: 1%; }
.pair a.golink { color: var(--accent); font-weight: 600; }
.pair .hint { color: var(--bad); }
