:root{font-family:system-ui,sans-serif;background:#f8f3eb;color:#29251f;--dark:#29251f;--line:#ded0bf;--muted:#685c51;--red:#833323}*{box-sizing:border-box}body{margin:0}button,textarea,select{font:inherit}button{cursor:pointer;min-height:44px;border:1px solid #9d7f6a;border-radius:.43rem;background:#fffdf8;color:#513122;padding:.62rem .84rem;font-weight:740}button:hover{background:#f3e7d9}button:disabled{cursor:not-allowed;opacity:.55}:focus-visible{outline:3px solid #7554b0;outline-offset:3px}.primary{background:var(--red);border-color:var(--red);color:#fff}.primary:hover{background:#9e4a38}.shell{max-width:1180px;margin:0 auto;padding:0 25px}header{background:#39291f;color:#fff}.bar{display:flex;align-items:center;justify-content:space-between;height:64px;gap:.5rem}.bar a{text-decoration:none;color:#fff;font-size:1.12rem;font-weight:800;display:flex;align-items:center;gap:.54rem}.bar a span{background:#ffdbb2;color:#583121;border-radius:8px;width:32px;height:32px;display:grid;place-items:center;font-size:1.28rem}.bar button{border-color:#ae8974;background:transparent;color:#fff}.hero{margin:38px 0 25px;display:flex;justify-content:space-between;align-items:end;gap:1rem}.hero h1{font-family:Georgia,serif;font-size:clamp(2.8rem,7.5vw,5.2rem);letter-spacing:-.073em;line-height:.94;margin:.22em 0}.hero p{color:var(--muted);margin:0;line-height:1.48;max-width:540px}.buttons,.pair-form,.map{display:flex;align-items:end;gap:.52rem;flex-wrap:wrap}.kicker{color:#7f4834;font-size:.72rem;font-weight:800;letter-spacing:.13em}.card{background:#fffdf8;border:1px solid var(--line);border-radius:.7rem;min-width:0;overflow-wrap:anywhere}.link,.edit{padding:.94rem 1rem;margin-bottom:1rem}.link{display:grid;grid-template-columns:1fr auto;gap:.52rem}.link>p{grid-column:1/-1;margin:0;font-size:.86rem;color:var(--muted)}.link h2,.queue h2{font-size:1.1rem;margin:.28rem 0 .56rem}.map span{font-size:.75rem;background:#f4eadb;border-radius:1rem;padding:.29rem .52rem;font-weight:700}.pair-form label{font-size:.8rem;font-weight:720;display:grid;gap:.24rem}.pair-form select,.queue select{padding:.38rem .48rem;background:#fffdf8;border:1px solid #a9937e;border-radius:.42rem;min-height:37px;color:#342c24}.pair-form button{min-height:38px}.error{color:#862d2a;font-weight:700}.pair-form p{flex-basis:100%;margin:0}.edit label{font-weight:750}.edit textarea{display:block;width:100%;padding:.75rem;border:1px solid #a8917c;border-radius:.45rem;margin:.5rem 0;font-family:ui-monospace,monospace}.layout{display:grid;grid-template-columns:minmax(200px,.6fr) minmax(0,1.5fr);gap:1rem;align-items:start}.queue-head,.compare{padding:1rem}.queue-head{border-bottom:1px solid var(--line)}.queue-head label{font-size:.84rem;color:var(--muted);display:flex;align-items:center;gap:.5rem}.queue ul{list-style:none;padding:.45rem;margin:0}.queue ul button{width:100%;text-align:left;display:flex;justify-content:space-between;gap:.5rem;align-items:center;background:transparent;border-color:transparent}.queue button span{font-size:.75rem}.queue button[aria-pressed=true]{background:#f4e5d6;border-color:#d9b796}.empty{padding:0 1rem;color:var(--muted)}.compare-head{display:flex;justify-content:space-between;align-items:start;gap:.45rem}.compare-head h2{font-family:Georgia,serif;font-size:clamp(1.8rem,4vw,2.6rem);margin:.15rem 0 .5rem;letter-spacing:-.05em}.status{display:inline-block;padding:.32rem .52rem;font-size:.78rem;font-weight:740;border-radius:1rem;background:#efe5d7;color:#663719}.status.unchanged{background:#e3f0e6;color:#1f5e41}.status.unresolved{background:#eee9f6;color:#53426a}.staffs{display:grid;gap:.62rem}.staff{border:1px solid var(--line);border-radius:.45rem;padding:.6rem .64rem;background:#fffaf1}.staff-head{display:flex;justify-content:space-between;gap:.45rem;font-size:.88rem}.staff-head span,.staff p{color:var(--muted)}.staff svg{width:100%;max-height:120px;display:block}.staff p{font-size:.79rem;margin:.3rem 0 0}.rule{stroke:#afa094}.guide{stroke:#c4b2a1;stroke-dasharray:2 4}.numeral{font-size:12px;fill:#594c41;text-anchor:middle}.mark{font-size:22px;font-weight:800;fill:#65432e}.mark.hot{fill:#9e3528}.focus-dot{fill:#fad7b5}.note{fill:#543325}.result{margin:.72rem 0 .05rem;background:#f5eadc;border-radius:.45rem;padding:.68rem .72rem;display:grid;gap:.24rem;font-size:.88rem}.result p{margin:.25rem 0 0;color:#534335}footer{margin:1.2rem 0 2rem;font-size:.85rem;color:var(--muted)}@media(max-width:800px){.hero{flex-direction:column;align-items:start}.link,.layout{grid-template-columns:1fr}}@media(max-width:480px){.shell{padding:0 14px}.bar a{font-size:.99rem}.bar button{font-size:.8rem}.hero{margin:28px 0 20px}.compare,.link,.edit{padding:.74rem}.staff-head{font-size:.79rem}}@media print{header,.buttons,.link form,.queue,.edit{display:none}.layout{display:block}.shell{padding:0}}
