/* Scoped player-notebook presentation. Layout changes reuse the existing controls and actions. */
body.notebook-ui{--bg:#f3f2ee;--panel:#fffefa;--ink:#263b46;--muted:#66757c;--blue:#285868;--line:#e0e4df;--selected:#e8f1f2;background:radial-gradient(ellipse at 12% 0,#e7eeeb 0,transparent 42%),var(--bg);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;line-height:1.65}
.notebook-ui .settings{grid-template-columns:minmax(0,2fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr)}.notebook-ui .settings>label{min-width:0}.notebook-ui :is(#date,#gameSelect){min-width:0;max-width:100%}.notebook-ui #gameSelect{appearance:none;overflow:hidden;text-overflow:ellipsis;padding-right:28px;background-image:linear-gradient(45deg,transparent 50%,#62767d 50%),linear-gradient(135deg,#62767d 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.notebook-ui>header{height:52px;padding:0 max(24px,calc((100vw - 1320px)/2));background:#fffcf6d9;border-bottom:1px solid #dfe5df;gap:12px}.notebook-ui>header>a{display:flex;align-items:center;gap:10px;letter-spacing:.04em;font-size:13px}.notebook-ui>header>a:before{content:'⌑';display:grid;place-items:center;width:25px;height:25px;border:1px solid #9cacaa;border-radius:7px;font-size:23px;line-height:1}.notebook-ui>header>span{font-size:11px;letter-spacing:.03em}
.notebook-ui main{max-width:1368px;padding:26px 24px 24px}.notebook-ui .intro{margin-bottom:12px;gap:20px}.notebook-ui .intro small{font-size:10px;letter-spacing:.15em;color:#65817f}.notebook-ui h1{font-size:30px;font-weight:650;letter-spacing:.06em;line-height:1.3;margin:5px 0}.notebook-ui .intro p{font-size:12px;margin:5px 0 0;color:var(--muted)}.notebook-ui .intro>.actions{gap:6px;justify-content:flex-end}.notebook-ui .intro>.actions>*{font-size:12px;min-height:36px;padding:7px 12px;background:transparent;border-color:#cfd8d1}
.notebook-ui button,.notebook-ui .button{border-radius:9px;transition:background-color .14s,border-color .14s,box-shadow .14s;box-shadow:none;min-height:40px;font-weight:500}.notebook-ui button:not(:disabled):hover,.notebook-ui .button:hover{background:#e7efed;border-color:#a4bbb8}.notebook-ui button.primary,.notebook-ui button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}.notebook-ui button.primary:not(:disabled):hover,.notebook-ui button[aria-pressed=true]:not(:disabled):hover{background:#204957;border-color:#204957}.notebook-ui button:disabled{opacity:.48}.notebook-ui :is(button,input,select,textarea,summary):focus-visible{outline:3px solid #6ba4b7;outline-offset:3px}.notebook-ui :is(input,select,textarea){border-color:#d8e0d9;background:#fff;font-size:14px;border-radius:8px;padding:9px 11px}.notebook-ui textarea{line-height:1.7}.notebook-ui label{font-size:12px;color:#62767d}.notebook-ui input::placeholder,.notebook-ui textarea::placeholder{color:#81908f}
.notebook-ui .panel{border:1px solid #dde4dd;background:var(--panel);border-radius:16px;padding:20px;box-shadow:0 3px 13px #263b4604}.notebook-ui h2{font-size:17px;letter-spacing:.02em;font-weight:650}.notebook-ui .heading{gap:10px}.notebook-ui .hint{line-height:1.7}.notebook-ui .savebar{min-height:30px;font-size:11px;justify-content:flex-start;gap:8px;margin-bottom:10px;color:#4d7167}.notebook-ui .savebar:not(.error):before{content:'';width:6px;height:6px;border-radius:50%;background:#6c9785;flex:none}.notebook-ui .savebar.error{color:#9d4036;background:#fff1e9;padding:8px 12px;border:1px solid #edcebc;border-radius:9px}.notebook-ui .savebar #retry{font-size:12px;min-height:32px;padding:4px 10px}
.session-overview{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:stretch;margin-bottom:16px}.session-context{display:flex;flex-direction:column;gap:12px;min-width:0}.notebook-ui .gamebar{margin:0;padding:16px;gap:10px;align-items:center}.notebook-ui .gamebar>label{flex-basis:100%;min-width:0;font-weight:600;letter-spacing:.03em}.notebook-ui #gameSelect{font-weight:550;min-height:42px}.notebook-ui .gamebar .actions{gap:7px}.notebook-ui .gamebar .actions button{font-size:12px;min-height:34px;padding:6px 12px}.notebook-ui #gameState{font-size:10px;flex:1;text-align:right}.notebook-ui .script-choice{margin:0;padding:16px;flex:1;min-width:0}.notebook-ui .script-choice .heading{align-items:flex-start;flex-wrap:wrap}.notebook-ui .script-choice .heading>div{flex:1 1 160px}.notebook-ui #scriptName{font-size:15px;line-height:1.5}.notebook-ui #scriptSource{font-size:11px;margin:3px 0 0}.notebook-ui #chooseScript{font-size:12px;min-height:34px;padding:6px 12px;background:#edf3ef;border-color:#d4dfd9}.notebook-ui #scriptReference summary{font-size:12px;font-weight:500;min-height:28px}.notebook-ui #scriptReference{margin-top:10px;border-top:1px solid #e5eae3;padding-top:9px}.notebook-ui #scriptRoles{max-height:260px}
.notebook-ui .quick-record{margin:0;padding:20px 22px;background:linear-gradient(130deg,#fbfdf9,#f4f8f4);border-color:#d6e2d8}.section-eyebrow{display:block;color:#70867b;font-size:10px;letter-spacing:.12em;margin-bottom:6px}.notebook-ui #currentPhaseLabel{background:#e4eeea;color:#315f55;border:1px solid #d6e2da;font-size:12px;font-weight:550;padding:4px 10px;border-radius:7px}.notebook-ui .current-phase{gap:8px;margin:12px 0 6px;display:flex}.notebook-ui .current-phase label{width:105px;font-size:10px;gap:3px}.notebook-ui .current-phase :is(input,select){padding:6px 9px;min-height:36px}.notebook-ui .current-phase button{padding:7px 13px;min-height:36px;font-size:12px;background:#fff;border-color:#c8d7ce}.notebook-ui #quickRecord>.hint{font-size:11px;margin:6px 0 12px}.notebook-ui .quick-seats{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.notebook-ui .quick-seats button{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:6px;min-height:58px;padding:9px 8px;text-align:left;border-color:#dde6df;background:#ffffffc4;border-radius:10px}.notebook-ui .quick-seats strong{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:12px;font-weight:650;background:#edf3ee;color:#496e61}.notebook-ui .quick-seats span{font-size:12px;line-height:1.4;color:#425b5d;min-width:0;overflow-wrap:anywhere}.notebook-ui .quick-seats small{grid-column:1/-1;font-size:10px;margin-top:-4px}.notebook-ui .quick-seats button:hover{border-color:#8eafa6;background:#eff6f1;box-shadow:0 2px 6px #284c3f0c}.notebook-ui .quick-seats .my-seat{border-color:#7fa99f;background:#e8f3ee}.notebook-ui .quick-seats .my-seat strong{background:#315f55;color:white}.notebook-ui #quickError:empty{display:none}
.notebook-ui .player-tools{margin:0 0 16px;padding:14px 18px;border-color:#dbe2dc;background:#fcfdf9}.notebook-ui .player-tools>summary{min-height:26px;font-size:13px;line-height:26px}.notebook-ui .player-tools>summary .hint{font-size:11px;color:#7a8c87;letter-spacing:.01em}.notebook-ui .player-tools[open]{padding:18px}.notebook-ui .pt-tabs{padding:5px;background:#eff3ed;border:1px solid #e2e8df;border-radius:10px;gap:4px}.notebook-ui .pt-tabs button{border-color:transparent;background:transparent;font-size:12px;padding:7px 9px;min-height:36px}.notebook-ui .pt-tabs button[aria-pressed=true]{background:#fff;color:var(--blue);box-shadow:0 1px 5px #29464012;border-color:#d6e3dc}.notebook-ui .pt-list{background:#fafbf7;padding:12px 16px;border-radius:10px;border:1px solid #e4e9e1}.notebook-ui .pt-card:last-child{border-bottom:0}.notebook-ui .pt-form{max-width:820px}.notebook-ui .pt-state-grid>div{background:#fff}.notebook-ui .pt-card button{min-height:36px}.notebook-ui .pt-card strong{font-size:14px}.notebook-ui .pt-ability{background:#edf3ee}.notebook-ui #ptStatus:empty{display:none}
.notebook-ui .workspace{grid-template-columns:minmax(320px,370px) minmax(0,1fr);gap:18px;margin:0 0 18px;align-items:start}.notebook-ui .composer{border-top:3px solid #618b86;padding:18px;top:12px}.notebook-ui .composer>.heading{margin-bottom:12px;flex-wrap:wrap}.notebook-ui .tools-shortcut{margin-left:auto;font-size:11px;min-height:30px;padding:4px 8px;color:#55756a;border-color:#dce5dd;background:#f5f8f2}.notebook-ui #entryForm>.heading{background:#f2f6f0;padding:6px 9px;border-radius:7px}.notebook-ui #entryForm .phase{gap:10px;margin:12px 0}.notebook-ui #entryForm .phase label{margin:0}.notebook-ui .tabs,.notebook-ui .analysis-tabs{background:#f0f3ee;padding:4px;border-radius:9px;border:1px solid #e2e8df;gap:4px}.notebook-ui .tabs button,.notebook-ui .analysis-tabs button{background:transparent;border-color:transparent;font-size:12px;min-height:34px;padding:7px 8px}.notebook-ui .tabs button[aria-pressed=true],.notebook-ui .analysis-tabs button[aria-pressed=true]{background:#fff;color:var(--blue);border-color:#d7e2db;box-shadow:0 1px 4px #2e51420d}.notebook-ui .voters{gap:6px}.notebook-ui .voters button{font-size:12px;min-width:40px;min-height:36px;padding:6px 9px;background:#fcfdfa}.notebook-ui .voters button[aria-pressed=true],.notebook-ui .voters button[data-vote-state=yes]{background:var(--blue);color:#fff}.notebook-ui .voters button[data-vote-state=no]{background:#f1e8db;color:#775932}.notebook-ui .related-field legend{font-size:11px}.notebook-ui .submit{min-height:44px;border-radius:9px;letter-spacing:.05em;font-weight:600}.notebook-ui .timeline{padding:22px;min-height:460px}.notebook-ui .timeline>.heading{border-bottom:1px solid #e5eae3;padding-bottom:14px;margin-bottom:12px}.notebook-ui .timeline>.heading .hint{font-size:11px;margin:4px 0 0}.notebook-ui #undo{min-height:32px;padding:4px 10px;font-size:12px}.notebook-ui #recordCount{background:#e9f1eb;color:#507263;font-size:11px;padding:2px 7px;border-radius:5px;margin-left:5px}.notebook-ui .analysis-tabs{margin-top:0}.notebook-ui .filters{margin:14px 0;gap:8px}.notebook-ui .filters input,.notebook-ui .filters select{font-size:12px;min-height:38px}.notebook-ui .stage{display:flex;align-items:center;gap:9px;border:0;font-size:12px;margin:22px 0 8px;padding:0;color:#57796c}.notebook-ui .stage:before{content:'';height:7px;width:7px;background:#91ac9d;border-radius:50%}.notebook-ui .stage:after{content:'';height:1px;background:#e3e9e0;flex:1}.notebook-ui .record{padding:14px 16px;border:1px solid #e8ece4;border-radius:10px;margin:8px 0;background:#fff;box-shadow:0 2px 6px #25402d03}.notebook-ui .record p{font-size:14px;line-height:1.8;margin:8px 0}.notebook-ui .record small{font-size:11px}.notebook-ui .tag{background:#f0f4ec;color:#5f7966;font-size:10px;letter-spacing:.03em;padding:3px 7px}.notebook-ui .record .tools button{border-color:transparent;background:transparent;color:#7b8b89;font-size:11px;min-height:30px;padding:3px 7px}.notebook-ui .record .tools button:hover{background:#edf4ee;color:var(--blue)}.notebook-ui .record .tools [data-delete]:hover{background:#fff0e9;color:#9b5040}.notebook-ui .related-links{gap:4px;margin-top:10px;font-size:11px}.notebook-ui .related-links button{border:0;background:#f2f5ef;color:#526e62;min-height:28px;font-size:11px;padding:3px 8px}.notebook-ui .empty{border:1px dashed #d6e1d4;background:#f9fbf6;border-radius:12px;font-size:12px;padding:45px 20px;margin-top:18px}.notebook-ui .empty strong{font-size:16px;font-weight:550;margin-bottom:8px}
.notebook-ui #setup{margin-top:16px;scroll-margin-top:16px;background:#fafbf6;padding:15px 20px}.notebook-ui #setup summary{font-size:13px;min-height:26px;color:#526c63}.notebook-ui #setup[open]{padding:20px}.notebook-ui .players{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.notebook-ui .players span{width:28px;font-size:11px}.notebook-ui footer{font-size:11px;color:#788982;border-top:1px solid #dde4da;margin-top:22px;padding:16px 0}.notebook-ui dialog{border:1px solid #cfdcd4;border-radius:18px;background:#fffefa;box-shadow:0 22px 90px #102f2845;padding:24px}.notebook-ui dialog::backdrop{background:#19382d66;backdrop-filter:blur(3px)}.notebook-ui #seatActions h2{font-size:22px}.notebook-ui .seat-actions button{background:#f4f8f1;border-color:#d9e4d7;min-height:62px;font-size:13px}.notebook-ui .seat-actions button:hover{background:#e6f0e7}.notebook-ui #recordFeedback{border-color:#b9cfc3;box-shadow:0 8px 32px #28453824;border-radius:11px}.notebook-ui #feedbackText{font-size:12px}.notebook-ui #feedbackUndo{background:#e6efe9;color:#315f55;border-color:#d1e1d4}.notebook-ui #feedbackClose{border-color:transparent;background:transparent}
@media(min-width:1000px){.notebook-ui [data-pt-panel=identity],.notebook-ui [data-pt-panel=status],.notebook-ui [data-pt-panel=link]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px;align-items:start}.notebook-ui [data-pt-panel]>h3,.notebook-ui [data-pt-panel]>p{grid-column:1/-1}.notebook-ui [data-pt-panel=identity]>.pt-list,.notebook-ui [data-pt-panel=status]>.pt-list,.notebook-ui [data-pt-panel=link]>.pt-list{margin-top:0;max-height:520px}}
@media(max-width:1100px) and (min-width:761px){.session-overview{grid-template-columns:minmax(0,1fr) 300px}.notebook-ui .quick-seats{grid-template-columns:repeat(4,minmax(0,1fr))}.notebook-ui .workspace{grid-template-columns:330px minmax(0,1fr)}.notebook-ui .quick-record{padding:18px}.notebook-ui .timeline{padding:18px}}
@media(max-width:760px){.notebook-ui>header{height:44px;padding:0 16px}.notebook-ui>header>span{font-size:10px}.notebook-ui main{padding:18px 12px calc(100px + env(safe-area-inset-bottom))}.notebook-ui .intro{gap:12px;margin-bottom:8px}.notebook-ui h1{font-size:27px;letter-spacing:.04em}.notebook-ui .intro small{font-size:9px}.notebook-ui .intro p{font-size:11px;line-height:1.7}.notebook-ui .intro>.actions{justify-content:flex-start;gap:6px;width:100%}.notebook-ui .intro>.actions>*{font-size:11px;min-height:34px;padding:6px 10px}.notebook-ui .savebar{font-size:10px;margin-bottom:8px;line-height:1.6;min-height:26px}.session-overview{grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:10px}.session-context{gap:10px}.notebook-ui .quick-record{padding:16px}.section-eyebrow{font-size:9px;margin-bottom:4px}.notebook-ui .quick-record h2{font-size:16px}.notebook-ui #currentPhaseLabel{font-size:11px;padding:4px 8px}.notebook-ui .current-phase{display:grid;grid-template-columns:75px minmax(80px,1fr) auto;gap:6px;align-items:end;margin:10px 0 6px}.notebook-ui .current-phase label{width:auto;font-size:10px}.notebook-ui .current-phase input,.notebook-ui .current-phase select{font-size:16px;padding:5px 7px;min-height:38px}.notebook-ui .current-phase button{grid-column:auto;font-size:11px;padding:7px 9px;min-height:38px}.notebook-ui #quickRecord>.hint{font-size:10px;line-height:1.6;margin:7px 0 10px}.notebook-ui .quick-seats{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.notebook-ui .quick-seats button{grid-template-columns:1fr;justify-items:center;text-align:center;gap:4px;padding:7px 4px;min-height:65px}.notebook-ui .quick-seats strong{width:28px;height:28px;font-size:11px}.notebook-ui .quick-seats span{font-size:11px}.notebook-ui .quick-seats small{font-size:9px;margin:0}.notebook-ui .gamebar{padding:12px;gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto}.notebook-ui .gamebar>label{grid-column:1;min-width:0;font-size:10px}.notebook-ui #gameSelect{font-size:16px;min-height:38px;padding:6px 8px}.notebook-ui .gamebar .actions{grid-column:2;align-self:end;gap:5px}.notebook-ui .gamebar .actions button{padding:6px 8px;font-size:11px;min-height:38px}.notebook-ui #gameState{grid-column:1/-1;text-align:left;font-size:10px}.notebook-ui .script-choice{padding:12px}.notebook-ui .script-choice .heading{flex-direction:row;gap:8px;align-items:center}.notebook-ui .script-choice .heading>div{flex:1;min-width:0}.notebook-ui #scriptName{font-size:14px}.notebook-ui #scriptSource{font-size:10px}.notebook-ui #chooseScript{font-size:11px;padding:6px 9px;min-height:38px}.notebook-ui .player-tools{padding:12px 14px;margin-bottom:12px;border-radius:12px}.notebook-ui .player-tools summary .hint{display:inline;margin-left:6px;font-size:10px}.notebook-ui .player-tools[open]{padding:14px}.notebook-ui .pt-tabs{gap:4px;padding:4px}.notebook-ui .pt-tabs button{font-size:12px;min-height:42px}.notebook-ui .pt-form :is(input,select,textarea){font-size:16px}.notebook-ui .pt-list{padding:10px 12px}.notebook-ui .pt-card button{min-height:44px}.notebook-ui .pt-state-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.notebook-ui .workspace{grid-template-columns:minmax(0,1fr);margin:0;gap:12px}.notebook-ui .composer,.notebook-ui .timeline{padding:16px;position:static;min-height:0}.notebook-ui :is(input,select,textarea){font-size:16px}.notebook-ui .filters :is(input,select){font-size:16px}.notebook-ui .filters select{flex-basis:116px;width:116px}.notebook-ui .voters button{min-height:44px;min-width:44px}.notebook-ui .tabs button,.notebook-ui .analysis-tabs button{min-height:42px}.notebook-ui .record{padding:12px}.notebook-ui .record p{font-size:14px}.notebook-ui .record .tools button,.notebook-ui .related-links button{min-height:40px}.notebook-ui .mobile-views{background:#fffffcf5;backdrop-filter:blur(14px);padding:9px 12px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #27463308;border-top:1px solid #d8e2d9;gap:6px}.notebook-ui .mobile-views button{font-size:13px;min-height:44px;border:0;border-radius:10px;background:transparent;color:#658078}.notebook-ui .mobile-views button[aria-pressed=true]{background:#285868;color:#fff;box-shadow:0 3px 8px #28586822}.notebook-ui #mobileRecordCount{font-size:10px;margin-left:3px}.notebook-ui #setup{padding:14px;margin-top:14px}.notebook-ui #setup[open]{padding:16px}.notebook-ui .players{grid-template-columns:repeat(2,minmax(0,1fr))}.notebook-ui .players input{font-size:16px}.notebook-ui footer{font-size:10px}.notebook-ui dialog{padding:20px;border-radius:16px}.notebook-ui #recordFeedback{bottom:calc(78px + env(safe-area-inset-bottom));padding:9px 10px;gap:6px}.notebook-ui #recordFeedback button{min-height:40px}.notebook-ui .seat-actions button{min-height:60px}.notebook-ui #recordFollow,.notebook-ui #ptFollow{min-height:40px}}
@media(prefers-reduced-motion:reduce){.notebook-ui *{transition:none!important;scroll-behavior:auto!important}}

/* Wide workspace: seats and session context stay beside the two editing panes. */
@media(min-width:1180px){
 .notebook-ui main{display:grid;grid-template-columns:268px minmax(0,1fr);column-gap:18px;row-gap:14px;align-items:start}
 .notebook-ui .intro{grid-column:1/-1;grid-row:1;margin-bottom:0}
 .notebook-ui .savebar{grid-column:1/-1;grid-row:2;margin:0;min-height:26px}
 .notebook-ui .session-overview{grid-column:1;grid-row:3/span 2;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;align-content:start}
 .notebook-ui .player-tools{grid-column:2;grid-row:3;margin:0}
 .notebook-ui .workspace{grid-column:2;grid-row:4;grid-template-columns:310px minmax(0,1fr);gap:16px;margin:0}
 .notebook-ui #setup{grid-column:1/-1;grid-row:5;margin-top:4px}
 .notebook-ui footer{grid-column:1/-1;grid-row:6;margin:0}
 .notebook-ui .quick-record{padding:16px}.notebook-ui .quick-record h2{font-size:15px}.notebook-ui .quick-record .heading{gap:6px}.notebook-ui #currentPhaseLabel{font-size:10px;padding:3px 6px}
 .notebook-ui .current-phase{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:5px;align-items:end}.notebook-ui .current-phase label{width:auto;font-size:10px}.notebook-ui .current-phase input,.notebook-ui .current-phase select{padding:5px 6px;font-size:12px;min-height:34px}.notebook-ui .current-phase button{font-size:11px;padding:6px;min-height:34px}.notebook-ui #quickRecord>.hint{font-size:10px}
 .notebook-ui .quick-seats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.notebook-ui .quick-seats button{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:4px;padding:7px 4px;min-height:66px}.notebook-ui .quick-seats strong{font-size:11px;width:27px;height:27px}.notebook-ui .quick-seats span{font-size:11px}.notebook-ui .quick-seats small{font-size:9px;margin:0}
 .notebook-ui .gamebar{padding:14px}.notebook-ui .script-choice{padding:14px}.notebook-ui #scriptName{font-size:14px}.notebook-ui #gameSelect{font-size:13px}.notebook-ui #gameState{flex-basis:100%;text-align:left}
 .notebook-ui .composer{padding:16px}.notebook-ui .timeline{padding:18px}.notebook-ui .record .tools button{min-height:32px}.notebook-ui .tools-shortcut{font-size:10px}
}
@media(min-width:1400px){.notebook-ui main{grid-template-columns:280px minmax(0,1fr);column-gap:20px}.notebook-ui .workspace{grid-template-columns:330px minmax(0,1fr);gap:18px}}

/* Reserve a real mobile scrollport above the navigation, including safe area. */
@media(max-width:760px){body.notebook-ui{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}.notebook-ui>header{flex:0 0 44px}.notebook-ui main{flex:1 1 auto;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;margin:0 0 calc(64px + env(safe-area-inset-bottom));padding-bottom:24px;scroll-padding-block:12px 24px}.notebook-ui #setup,.notebook-ui .composer,.notebook-ui .timeline{scroll-margin-block:12px 24px}}
@media(max-width:760px){.notebook-ui .settings{grid-template-columns:repeat(2,minmax(0,1fr))}}

.notebook-ui .intro>div:first-child{min-width:0}.notebook-ui .intro p{overflow-wrap:anywhere}

@media(prefers-reduced-motion:no-preference){.notebook-ui button,.notebook-ui .button{transition:background-color .14s,color .14s,border-color .14s,box-shadow .14s}}

/* Keep touch actions usable at tablet widths, not just below phone breakpoints. */
@media(any-pointer:coarse){
 .notebook-ui .intro>.actions>*,.notebook-ui .gamebar .actions button,.notebook-ui #chooseScript,
 .notebook-ui .record .tools button,.notebook-ui .related-links button,.notebook-ui .voters button,
 .notebook-ui .pt-card button,.notebook-ui .pt-tabs button,.notebook-ui .tabs button,
 .notebook-ui .current-phase button,.notebook-ui .analysis-tabs button,
 .notebook-ui #recordFollow,.notebook-ui #ptFollow,.notebook-ui #recordFeedback button{min-height:44px;min-width:44px;touch-action:manipulation}
 .notebook-ui .record .tools,.notebook-ui .related-links,.notebook-ui .gamebar .actions{gap:8px;flex-wrap:wrap}
}
