
*{box-sizing:border-box}body{margin:0;background:#edf1e7;color:#314639;font:13px 'Segoe UI','Microsoft YaHei',sans-serif}header{height:64px;display:flex;align-items:center;gap:18px;padding:12px 22px;background:#fafbf7;border-bottom:1px solid #ccd7c5}header strong{font-size:19px}header span{font-size:11px}button{padding:8px 12px;border:1px solid #bccbb5;border-radius:7px;background:white;color:inherit;cursor:pointer}.spacer{flex:1}main{display:grid;grid-template-columns:1fr 1fr;height:calc(100vh - 64px)}section{min-width:0;display:flex;flex-direction:column}section+section{border-left:3px solid #85957d}.label{height:36px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;font-size:11px} .viewport{border:0;flex:1;width:100%;min-height:0}.label b{letter-spacing:2px}#notice{max-width:360px}@media(max-width:900px){header{gap:8px;padding:8px}header strong{font-size:14px}#notice{display:none}button{font-size:10px}}
.guide{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:14px;background:#f9fbf5;border-top:1px solid #cbd5c5;flex-shrink:0}.control-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;border:1px solid #dce3d5;border-radius:9px;background:#fff;padding:8px 3px;min-height:100px}.control-card svg{width:48px;height:38px;color:#68815d}.control-card span{display:block;font-size:12px;line-height:1.2}.control-card kbd{display:block;font-family:inherit;font-size:13px;font-weight:650;margin-top:5px;color:#354a32}.label{height:40px;flex-shrink:0}@media(max-width:1100px){.guide{gap:4px;padding:8px}.control-card span{font-size:10px}.control-card kbd{font-size:14px}.control-card{min-height:88px;padding:5px 2px}.label{padding:0 8px}.label span{font-size:9px}}@media(max-height:700px){.control-card svg{height:25px}.control-card{min-height:76px}.guide{padding:6px}}
.toggle{display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap}.toggle input{appearance:none;width:32px;height:18px;border-radius:12px;background:#c9d2c3;position:relative;cursor:pointer}.toggle input:before{content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:white;left:3px;top:3px;transition:transform .15s}.toggle input:checked{background:#63845a}.toggle input:checked:before{transform:translateX(14px)}.toggle input:focus-visible{outline:2px solid #438cd0}.fps-label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px}#replay-fps{padding:7px;border:1px solid #bccbb5;border-radius:6px;color:#314639;background:white}.control-card{transition:background-color .1s,border-color .1s}.control-card[data-user="1"].is-active{background:#f8e7d2;border-color:#ce9a5e}.control-card[data-user="2"].is-active{background:#deedfb;border-color:#70a4d4}
/* Shared tracks keep both guides and viewports aligned when shortcut labels wrap. */
main{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:40px minmax(0,1fr) auto auto;column-gap:3px;background:#85957d}main>section{display:grid;grid-template-rows:subgrid;grid-row:1 / span 4;background:#edf1e7;min-height:0}main>section:first-child{grid-column:1}main>section+section{grid-column:2;border-left:0}.guide{grid-row:3 / span 2;grid-template-rows:subgrid;row-gap:8px}.viewport{height:100%}.control-card{min-width:0}.control-card kbd{overflow-wrap:anywhere}

[hidden]{display:none!important}main{display:flex;flex-direction:column;height:calc(100dvh - 64px);background:#edf1e7}.viewport{flex:1;min-height:0}.guide{grid-template-rows:auto auto;grid-row:auto}.label{flex-shrink:0}header{gap:12px}#notice{max-width:none}#entry{padding:40px;max-width:680px;margin:auto}#entry input{width:100%;padding:12px;margin:10px 0}#viewport.offline{pointer-events:none;opacity:.65}header b{white-space:nowrap}