:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#283d37;background:#f4f3ed;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,a{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid #ced6ce;background:#fffdf7;color:inherit;padding:10px 13px;border-radius:9px}button:hover,a:hover{color:#9b602f;border-color:#9b602f}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d49e5e;outline-offset:3px}button:disabled{opacity:.4;cursor:default}a{color:#3d6658;text-decoration:none}header{padding:22px 30px;border-bottom:1px solid #dce0d6;display:flex;justify-content:space-between;align-items:center;background:#fbfaf5}header>div{display:flex;align-items:center;gap:14px}header strong{font-size:24px;letter-spacing:5px}.seal{background:#a65139;color:white;border-radius:6px;padding:6px 8px;font-family:serif;font-size:21px}.subtitle,.muted{color:#778078;font-size:12px;line-height:1.8}nav{display:flex;gap:10px;align-items:center}nav a{margin-left:12px}main{display:grid;grid-template-columns:240px minmax(380px,1fr) 310px;gap:28px;padding:30px;max-width:1600px;margin:auto}.eyebrow{letter-spacing:2px;font-size:10px;color:#8a9384;margin:8px 0 20px}h1{font-size:26px;line-height:1.6;font-family:serif;font-weight:500;margin:0 0 12px}h2{font-size:17px;font-weight:600;margin:20px 0 12px}.library label{display:block;font-size:12px;margin:24px 0 8px}input{width:100%;padding:12px;border:1px solid #cbd4c9;border-radius:9px;background:#fffdf8;color:inherit}.library button,.branch{width:100%;text-align:left;margin:5px 0;display:flex;gap:10px;align-items:center}.library button{background:transparent}.board-heading{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-bottom:14px}.board-heading button{font-size:12px}.board-wrap{border-radius:14px;overflow:hidden;background:#e4c68f;box-shadow:0 12px 36px #38453213;border:1px solid #cab384}#board{display:block;width:100%;max-height:74vh}#board .target{cursor:pointer}#board .target:hover circle{fill:transparent;stroke:#a65139;stroke-width:2.5}.controls{display:flex;justify-content:center;gap:10px;margin-top:20px}.controls button:first-child{margin-right:auto}#status{min-height:44px;padding:12px 0;color:#96613a;font-size:13px}.trail{display:flex;flex-wrap:wrap;gap:5px}.trail button{font-size:11px;padding:5px 8px;background:transparent}.detail{border-left:1px solid #dce0d6;padding-left:24px}.detail>h2{font-size:24px;font-family:serif;line-height:1.5}.badge{font-size:11px;color:#9c6235}.comment{white-space:pre-wrap;line-height:1.9;max-height:34vh;overflow:auto;color:#4c5b52;overflow-wrap:anywhere}.section-title{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #dce0d6;margin-top:25px}.branch span:first-child{background:#edf0e7;padding:7px;border-radius:6px;font-size:12px;min-width:38px;text-align:center}.branch.tenuki{border-color:#d4b386;background:#fcf4e7}.branch small{color:#8c948a;font-size:10px;display:block;margin-top:4px}details{font-size:12px;line-height:1.8;margin-top:28px}summary{cursor:pointer}#results{max-height:270px;overflow:auto}dialog{width:min(540px,90vw);border:1px solid #cbd4c9;border-radius:14px;padding:24px;color:inherit}dialog::backdrop{background:#1c312b88}#saved-list{max-height:60vh;overflow:auto}#saved-list>div{display:flex;gap:8px;margin:8px 0}#saved-list>div button:first-child{flex:1;text-align:left}@media(min-width:1450px){main{grid-template-columns:260px minmax(380px,1fr) 350px}}@media(max-width:1100px){main{grid-template-columns:minmax(340px,1fr) 290px;padding:20px;gap:20px}.library{grid-column:1/-1}.library h1,.library>.muted{display:none}.library .eyebrow{display:none}.library label{margin-top:0}#roots{display:flex;gap:8px;overflow:auto}#roots button{min-width:140px}.library details{margin-top:10px}.workspace{min-width:0}}@media(max-width:700px){header{padding:14px;gap:10px;align-items:flex-start}.subtitle,nav a{display:none}nav{gap:5px}nav button{font-size:11px;padding:8px}main{display:block;padding:14px}.workspace{margin-top:20px}.detail{border-left:0;padding:15px 0}.comment{max-height:none}#board{max-height:none}.controls{gap:5px}.controls button{font-size:12px}.library h2{font-size:14px}}

select{width:100%;padding:12px;border:1px solid #cbd4c9;border-radius:9px;background:#fffdf8;color:inherit;font:inherit}#source-stats{white-space:pre-line}#refresh-source{font-size:12px}
.library>#source-stats{display:block}
