:root{font-family:'DM Sans',sans-serif;color:#28362f;background:#edece5;font-synthesis:none;--line:#cccfc3;--muted:#6b756a;--green:#2e5b41;--orange:#a45333}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:40px;padding:8px 13px;border:1px solid var(--line);background:transparent;color:inherit;border-radius:4px;font-size:12px;font-weight:600}button:hover{background:#dfe2d6}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--green);outline-offset:3px}.quiet{border-color:transparent}.accent,.play{background:var(--green);color:#f1f2e8;border-color:var(--green)}.accent:hover,.play:hover{background:#244c35}.app{height:100dvh;max-width:1680px;margin:auto;display:flex;flex-direction:column;padding:0 30px}header{height:76px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}header a{color:inherit;text-decoration:none;font-size:11px;text-transform:uppercase;letter-spacing:.12em}.brand{font-family:'Libre Caslon Display',Georgia,serif;font-size:30px}.brand span{color:var(--muted)}main{display:grid;grid-template-columns:minmax(0,1fr) 330px;flex:1;min-height:0}.stage-section{padding:28px 30px 15px 0;display:flex;flex-direction:column;min-height:0;min-width:0}.stage-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.16em;color:var(--muted)}h1{font-family:'Libre Caslon Display',Georgia,serif;font-size:32px;font-weight:400;line-height:1.05;margin:8px 0 0}.views{display:flex;flex-shrink:0;background:#e1e3d8;padding:3px;border-radius:5px}.views button{min-height:32px;padding:5px 12px;border:0;color:var(--muted)}.views button[aria-pressed=true]{background:#f8f8f0;color:#28362f;box-shadow:0 1px 3px #20302016}.viewport{position:relative;flex:1;min-height:200px;overflow:hidden;border:1px solid #bfc8b7;border-radius:3px;background:#dce2d2}canvas{display:block;width:100%;height:100%;touch-action:none}#overlay{pointer-events:none;position:absolute;top:17px;left:19px;right:19px;display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.06em;text-transform:uppercase}#hint{pointer-events:none;position:absolute;bottom:14px;left:0;right:0;text-align:center;font-size:11px;color:#64725c}.transport{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.play{min-width:65px}input[type=range]{accent-color:var(--green);min-width:0;cursor:pointer}.transport input{flex:1}.transport output{font-variant-numeric:tabular-nums;font-size:11px;min-width:65px}.cause{display:flex;align-items:center;gap:12px;min-height:88px;border-bottom:1px solid var(--line)}.indicator{width:7px;height:7px;border-radius:50%;background:var(--green);flex-shrink:0}.indicator.blocked{background:var(--orange)}.cause div{flex:1}.cause strong{font-size:13px}.cause p{font-size:11px;line-height:1.5;color:var(--muted);margin:5px 0;max-width:440px}.takebar{display:flex;gap:7px;align-items:center;padding-top:12px}.takebar span{font-size:10px;color:var(--muted);flex:1;margin-left:4px}.takebar button{font-size:11px}aside{border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0;padding:20px 0 16px 25px}.panel-tabs{display:flex;border-bottom:1px solid var(--line);gap:6px}.panel-tabs button{border:0;border-radius:0;font-size:12px;padding:10px 10px 13px;color:var(--muted)}.panel-tabs button[aria-selected=true]{color:var(--green);border-bottom:2px solid var(--green)}.panel-tabs span{font-size:10px;padding-left:3px}.panel{overflow:auto;min-height:0;padding:20px 3px 12px 0;scrollbar-width:thin}h2{font-family:'Libre Caslon Display',Georgia,serif;font-size:25px;font-weight:400;margin:0 0 8px}p{line-height:1.6}.panel-intro p{font-size:12px;color:var(--muted);margin:0 0 22px}.cue{border-top:1px solid var(--line);padding:13px 0 15px}.cue-head{display:flex;gap:8px;align-items:center;margin-bottom:9px}.cue-number{font-size:10px;color:var(--muted);letter-spacing:.08em}.cue-head select{margin-left:auto;width:auto}.cue-head button{padding:0 6px;min-height:27px;border:0;color:var(--muted);font-size:10px}.cue textarea{resize:vertical;width:100%;min-height:50px;max-height:110px;border:0;background:#f7f7ef90;border-radius:3px;padding:9px;color:#2b3d2e;font-family:Georgia,serif;font-size:14px;line-height:1.45}.cue label{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);margin-top:8px}.cue input{width:100%}.cue.selected .cue-number{color:var(--green);font-weight:700}.cue.selected textarea{box-shadow:inset 2px 0 var(--green)}select{border:1px solid var(--line);background:#f4f4eb;padding:7px;color:inherit;border-radius:3px;font-size:11px;max-width:100%}.inline{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.inline button{font-size:11px}.select-label{display:flex;flex-direction:column;gap:9px;margin-top:25px;font-size:11px;color:var(--muted)}.fine{font-size:10px;color:var(--muted);line-height:1.65;margin-top:16px}#conditions-panel>label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:12px;margin:20px 0}#conditions-panel>label input{width:100%}.stone-row{display:flex;gap:8px;align-items:center;font-size:11px;margin:10px 0}.stone-row input{width:60px}.take{border:1px solid var(--line);padding:13px;margin:12px 0;border-radius:3px}.take strong{font-family:Georgia,serif;font-size:16px;font-weight:400}.take p{font-size:11px;color:var(--muted);margin:7px 0}.take.active{border-color:var(--green)}footer{height:35px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);color:var(--muted);font-size:9px;letter-spacing:.04em;flex-shrink:0}dialog{width:min(590px,calc(100% - 28px));max-height:85dvh;border:1px solid var(--line);border-radius:6px;padding:24px;background:#f3f3ea;color:#28362f}dialog::backdrop{background:#1a2d2560;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-head h2{margin:0}dialog p,dialog li{font-size:13px;line-height:1.7}dialog textarea{width:100%;height:170px;margin:20px 0 8px;background:white;border:1px solid var(--line);padding:12px;resize:vertical}dialog label{font-size:12px}dialog button{margin-top:8px}.error{color:var(--orange)}
@media(min-width:1500px){.stage-heading{margin-bottom:28px}h1{font-size:40px}main{grid-template-columns:minmax(0,1fr) 365px}}
@media(max-width:900px){.app{padding:0 18px}main{grid-template-columns:minmax(0,1fr) 280px}.stage-section{padding-right:18px}.stage-heading{align-items:flex-start;flex-direction:column;gap:13px}aside{padding-left:17px}.cause{gap:8px}.cause .accent{max-width:90px}.takebar span{display:none}}
@media(max-width:650px){.app{padding:0 14px}header{height:55px}.brand{font-size:25px}header a{font-size:9px;letter-spacing:.06em}header button{font-size:11px;padding-right:0}main{display:flex;flex-direction:column}.stage-section{flex:0 0 59%;padding:13px 0 0;min-height:0}.stage-heading{flex-direction:row;align-items:center;gap:8px;margin-bottom:11px}h1{font-size:24px;margin-top:5px;max-width:220px}.eyebrow{font-size:8px}.views{padding:2px}.views button{font-size:10px;padding:4px 8px;min-height:32px}.viewport{min-height:110px}#overlay{top:10px;left:12px;right:12px;font-size:8px}#hint{font-size:9px;bottom:9px}.transport{padding:7px 0;gap:8px}.transport button{min-height:35px;padding:7px 10px;font-size:11px}.transport output{font-size:9px;min-width:57px}.cause{min-height:67px;gap:8px}.cause strong{font-size:11px}.cause p{font-size:10px;margin:3px 0;line-height:1.4}.cause button{font-size:10px;min-height:36px}.takebar{padding:6px 0;gap:4px}.takebar button{min-height:30px;padding:5px 10px;font-size:10px}#undo{margin-left:auto}aside{padding:0;border-left:0;flex:1;min-height:0}.panel-tabs button{padding:7px 12px;min-height:35px;font-size:11px}.panel{padding-top:12px}.panel-intro{display:none}.cue{padding-top:10px}.cue textarea{min-height:45px}.cue label{margin-top:5px}.panel-tabs{position:sticky;top:0}.select-label{margin-top:16px}footer{height:23px;font-size:8px}#runtime-status{max-width:155px;overflow:hidden;white-space:nowrap}}
@media(max-height:650px) and (max-width:650px){.stage-section{flex-basis:65%}h1{font-size:19px}.eyebrow{display:none}.cause p{display:none}.cause{min-height:43px}.takebar{padding:3px 0}.transport{padding:4px 0}header{height:44px}.panel-tabs button{min-height:30px}.viewport{min-height:75px}}

@media(max-width:650px){.brand{font-size:clamp(20px,6vw,25px);white-space:nowrap}header a{white-space:nowrap}.stage-heading>div:first-child{min-width:0}}
