:root{--page-width:1320px;--page-inset:max(3vw,16px);--paper:#f5f2e9;--ink:#222b29;--teal:#12584e;--edge:#c9c9b8;--muted:#55605a;font-family:system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:16px}*{box-sizing:border-box}body{margin:0}a{color:var(--teal)}button,input,select,textarea{font:inherit;color:inherit}button,select{cursor:pointer}button,.primary{border:1px solid var(--teal);border-radius:3px;background:transparent;color:var(--teal);padding:.48rem .9rem}.primary{display:inline-block;background:var(--teal);color:white;font-weight:600}.shell-header{background:#173e37;color:#faf6e9;display:flex;align-items:center;justify-content:flex-start;--edge-inset:clamp(6px,.65vw,14px);padding:.35rem var(--edge-inset) .35rem calc(var(--edge-inset) + .225rem);border-bottom:4px solid #d19e55}.shell-title{margin:0;min-width:0;overflow-wrap:anywhere;font:600 1.5rem Georgia,serif;color:inherit;}small,#count{font: .86rem ui-monospace,monospace}main{max-width:var(--page-width);margin:auto;padding:1.8rem var(--page-inset) 3rem}.heading:not([hidden]){display:flex;align-items:baseline;gap:1.4rem}h1,h2,h3{font-family:Georgia,serif;font-weight:500;line-height:1.13}h1{font-size:clamp(2.2rem,4vw,3.8rem);margin:.25rem 0 1rem}h2{font-size:clamp(1.8rem,3vw,2.8rem);margin:.45rem 0 1rem}small,#count{color:var(--muted)}.toolbar,.controls{display:flex;gap:1rem;align-items:end;flex-wrap:wrap}.toolbar label{display:grid;gap:.3rem;font-size:.9rem}.toolbar label:first-child{flex:1}.toolbar input,.toolbar select,#command,textarea{background:#fffdf7;border:1px solid #929b8e;border-radius:3px;padding:.55rem .7rem}.catalog{display:grid;grid-template-columns:minmax(200px,28%) 1fr;gap:2.5rem;margin-top:1.5rem;border-top:1px solid var(--edge)}#titles{max-height:74vh;overflow:auto;border-right:1px solid var(--edge)}#titles a{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.7rem .8rem;color:var(--ink);border-bottom:1px solid var(--edge)}#titles a[aria-current]{background:#dce6dc;border-left:4px solid var(--teal);font-weight:650}.file,summary{display:flex;align-items:center;gap:.7rem;padding:.55rem 0}.file{border-top:1px dotted var(--edge);flex-wrap:wrap;overflow-wrap:anywhere}.file>a:first-child{flex:1}.file>a:last-child:not(:first-child){font-size:.9rem}details{border-top:1px solid var(--edge)}summary{cursor:pointer;font-weight:600}summary:before{content:'+'}details[open]>summary:before{content:'−'}summary small{margin-left:auto}.playgrid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:1rem}.pane{border:1px solid var(--edge);border-radius:4px;background:#fffcf5;overflow:hidden}.pane h3{margin:0;padding:1rem;border-bottom:1px solid var(--edge);font-size:1.45rem}.screen{padding:1rem}.status{background:#203e38;color:#f3eedb;font: .9rem/1.25 ui-monospace,monospace;white-space:pre;overflow:auto;margin:0;padding:.5rem}.transcript{height:45vh;min-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:1rem/1.55 ui-monospace,monospace;margin:0}.command{display:flex;padding:.8rem;gap:.5rem;border-top:1px solid var(--edge)}#command{flex:1;min-width:0}.mapview{height:36vh;min-height:200px;overflow:auto;background:#f7f2df}.mapview svg{display:block}.notes{padding:.8rem;display:grid;gap:.4rem}.notes textarea{width:100%}.controls{padding:1rem 0}.message{color:#743717}.route{font-size:.88rem;padding:0 .8rem}.room{cursor:pointer}.room:focus rect{stroke:#b56227;stroke-width:3}@media(max-width:760px){.catalog{grid-template-columns:1fr;gap:0}#titles{max-height:190px;border-bottom:1px solid var(--edge)}.playgrid{grid-template-columns:1fr}.toolbar{gap:.5rem}.transcript{height:38vh}}
:where(a[href],[role="link"],.preview-trigger,.journal-button,.game-title,.pager-count,.sort-heading,.turn-link,.asset-tree summary){
  text-decoration:none;
  text-underline-offset:3px;
  &:is(:hover,:focus-visible){text-decoration:underline}
}
#pixels:not([hidden]){display:block;width:100%;aspect-ratio:8/5;image-rendering:pixelated;background:#111}#pixels:not([hidden])+.screen .transcript{height:8rem;min-height:0}
.manualmap{padding:.35rem .8rem}.manualmap form{display:grid;gap:.6rem;padding:.6rem 0}.manualmap label{display:grid;gap:.2rem}.manualmap label[hidden]{display:none}.manualmap input,.manualmap select{padding:.4rem;width:100%}
.guide{max-width:82ch;line-height:1.65}.guide code{background:#e7e7d9;padding:.08rem .25rem}.guide h2,#desk h2{margin-top:1.5rem;font-size:1.65rem}.tablinks{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.tablinks a{padding:.45rem .7rem;border:1px solid var(--edge)}.tablinks [aria-current]{background:var(--teal);color:white}.tablewrap{overflow:auto;max-height:65vh;margin:1rem 0;border:1px solid var(--edge);background:#fffcf5}.tablewrap table{border-collapse:collapse;font-size:.94rem;min-width:100%}.tablewrap th,.tablewrap td{height:2.25rem;padding:0 .65rem;text-align:left;vertical-align:middle;border-bottom:1px solid var(--edge);max-width:min(65ch,60vw);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tablewrap tbody tr:nth-child(even){background-image:linear-gradient(#173e370a,#173e370a)}
.tablewrap th{position:sticky;top:0;background:#e0e6d9}#desk select{padding:.4rem}.replaycanvas:not([hidden]){width:100%;image-rendering:pixelated}#error{color:#982e1a}#desk details pre{white-space:pre-wrap}.controls input[type=range]{min-width:8rem;flex:1}

.typed-input{color:var(--teal);font-weight:650}
main:has(.event-list,.session-tables,.database-table){max-width:none;padding-inline:clamp(12px,1.3vw,28px)}
main:has(>#desk>.event-list){padding-block-start:.45rem}
#desk>.event-list{margin:0}
.benchmark-index-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem;margin-bottom:.4rem}
.benchmark-index-actions button{padding:.25rem .55rem;font-size:.88rem}
.event-list tbody .benchmark-empty{cursor:default;color:var(--muted)}
.event-list tbody .benchmark-empty:hover>td{background:transparent}
.session-tables .tablewrap{max-height:none}
.session-tables :is(th,td){padding-inline:clamp(.32rem,.55vw,.7rem);font-variant-numeric:tabular-nums}
.session-tables abbr[title]{text-decoration:none}
:is(.session-tables,.event-list) tbody tr{cursor:pointer}
:is(.session-tables,.event-list) tbody tr:is(:hover,:focus-within)>td{background-color:rgba(18,88,78,.12)}
.session-tables tr.awaiting-first-command{background-color:#e3ebf3}
.session-tables tr.finished-run{background-color:#dde7e3}
.session-tables tr.won-run{background-color:#ffe4a3}
.session-tables th[data-metric],.session-tables td:nth-child(n+3){text-align:center}
.session-tables th[data-metric]{cursor:help;overflow:visible}
.session-tables th[data-metric] svg{display:block;width:1.15rem;height:1.15rem;margin:auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.session-tables th[data-metric]:is(:hover,:focus-visible){z-index:2}
.session-tables th[data-metric]:is(:hover,:focus-visible)::after{content:attr(data-metric);position:absolute;top:100%;left:50%;transform:translateX(-50%);padding:.3rem .55rem;background:#203e38;color:white;border-radius:3px;font-size:.8rem;font-weight:500;white-space:nowrap;pointer-events:none}
.session-tables th[data-metric]:last-child::after{left:auto;right:0;transform:none}


.database-table .db-hash{display:block;width:12ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,monospace;font-size:.9em;user-select:all}

.preview-content img{display:block;max-width:100%;max-height:100%;margin:auto;object-fit:contain}
.preview-content img.exploration-sheet{width:100%;height:auto;max-height:none}
.preview-content iframe{display:block;width:100%;height:100%;border:0;background:white}
.preview-content pre{margin:0;padding:1rem;white-space:pre-wrap;overflow-wrap:anywhere}
body:has(>.page-scroll){display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden}

.page-scroll{scrollbar-gutter:stable}.page-scroll:focus-visible{outline:2px solid var(--teal);outline-offset:-2px}
.archive-search{display:flex;align-items:center;gap:1rem;padding:.8rem max(4vw,20px);border-bottom:1px solid var(--edge)}
.archive-search input{flex:1;min-width:0;border:1px solid #929b8e;border-radius:3px;padding:.55rem .75rem;background:#fffdf7}
.curated-home main{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,23rem),1fr));align-items:start;gap:1rem;max-width:none;padding:1rem clamp(.75rem,2vw,2rem)}
.archive-card{min-width:0;padding:.85rem;border:1px solid var(--edge);border-radius:5px;background:#fffcf4;scroll-margin-top:9rem}
.archive-card{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,7rem) minmax(0,1fr);align-items:start;gap:.75rem}
.archive-card h2{grid-column:1/-1;font-size:1.35rem;margin:0;line-height:1.12}
.archive-cover{display:block;width:100%;height:auto;max-height:9rem;object-fit:contain;object-position:top left}
.archive-actions{display:flex;gap:.4rem;flex-wrap:wrap;align-items:flex-start}
.archive-card:not(:has(.archive-cover)) .archive-actions{grid-column:1/-1}
.archive-actions .primary{position:relative;z-index:2;display:inline-block;background:var(--teal);color:white;border:1px solid var(--teal);border-radius:3px;font:inherit;font-weight:600;font-size:.92rem;line-height:1.3;padding:.25rem .65rem}
.asset-tree,.asset-tree ul{list-style:none;padding:0}
.asset-tree{margin:0;font:.95rem/1.55 ui-monospace,monospace;overflow-wrap:anywhere}
.asset-tree ul{margin:0 0 0 .55rem;padding-inline-start:clamp(1.25rem,2.3vw,2rem);border-inline-start:1px solid var(--edge)}
.asset-tree details{border:0}
.asset-tree summary,.asset-tree .preview-trigger{display:inline-flex;align-items:center;gap:.45rem;max-width:100%;min-height:1.65rem;padding:.05rem 0;overflow-wrap:anywhere;}
.asset-tree summary{color:var(--ink);font-weight:600}
.asset-tree summary::-webkit-details-marker{display:none}
.asset-tree summary::before,.asset-tree details[open]>summary::before{content:'';width:.36rem;height:.36rem;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}
.asset-tree details[open]>summary::before{transform:rotate(45deg)}
.asset-icon{width:1.5rem;height:1.5rem;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:650px){.archive-search{gap:.6rem}}

.preview-trigger{padding:0;border:0;background:none;text-align:left}
.pdf-content{display:flex;flex-direction:column;overflow:hidden}
.pdf-toolbar{flex:none;flex-wrap:wrap}
.pdf-toolbar{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.4rem 1rem;padding:.45rem}
.pdf-toolbar form{display:inline-flex;align-items:center;gap:.35rem;margin:0}
.pdf-toolbar svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pdf-toolbar button{display:grid;place-items:center;padding:.35rem;min-width:2rem;min-height:2rem}
.pdf-toolbar button:disabled{opacity:.45;cursor:default}
.pdf-toolbar .matches:empty{display:none}

.pdf-toolbar input[type=search]{width:10em}
.pdf-stage{position:relative;flex:1;min-height:0;background:#e4e3dd}
.pdf-scroll{position:absolute;inset:0;overflow:hidden;overscroll-behavior:contain}
.pdf-scroll .pdfViewer,.pdf-scroll .spread{display:flex;height:100%;align-items:center;justify-content:center}
.pdf-scroll .pdfViewer.removePageBorders .page{box-sizing:content-box;flex:none;margin:0}
.pdf-scroll .spread>.page+.page::before{content:"";position:absolute;inset:0 auto 0 0;width:1px;background:var(--edge);z-index:1;pointer-events:none}
.font-specimen{font:2.5rem ArchiveSpecimen,serif;padding:1rem}

#collection-tree{max-width:none;padding:1rem clamp(12px,1.3vw,28px)}

.session-tables .journal-button{display:block;width:100%;min-width:1.8rem;background:transparent;border:0;padding:.2rem;color:var(--accent,#11584d);font:inherit}
.session-journal p{white-space:pre-wrap;overflow-wrap:anywhere}

.library-tabs{display:flex;flex-wrap:wrap;align-items:stretch;gap:clamp(.3rem,1vw,1rem);padding-inline:clamp(12px,1.3vw,28px);background:var(--paper);border-bottom:1px solid #c9c8b9}
.library-tabs :is(a,button){border:0;border-radius:0;background:transparent;display:inline-flex;align-items:center;padding:.55rem .45rem .4rem;color:#244c43;border-bottom:3px solid transparent}
.library-tabs [aria-current]{border-color:#15594d;font-weight:700}
.library-tabs :is(a,button):is(:hover,:focus-visible){background:#e4e9df}




.game-title{font:inherit;color:inherit;text-align:left;border:0;background:transparent;padding:0}
.game-title::after{content:"";position:absolute;inset:0;z-index:1;border-radius:5px;cursor:pointer}
.game-title:focus-visible::after{outline:2px solid var(--teal);outline-offset:2px}
.game-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.game-card-actions button{padding:.45rem;border:1px solid var(--teal);text-align:center}
.game-card-actions button:disabled{opacity:.55;cursor:default}
.game-materials li{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.game-materials img{display:block;max-width:100%;max-height:42vh;margin:1rem auto}
.game-materials ul{list-style:none;padding:0}
.game-materials li{border-top:1px solid var(--edge);padding:.4rem 0}
.game-materials .preview-trigger.primary{background:var(--teal);color:white;padding:.25rem .65rem}




.database-preview{padding:1rem}.database-preview .tablewrap{max-height:none}

.shell-header,.library-tabs{flex:none}
.shell-header{gap:.6rem;--brand-gap:.4rem}
.ui-dialog>.shell-header{column-gap:var(--brand-gap)}
.shell-tools{margin-left:auto}
.shell-action{display:grid;place-items:center;background:transparent;color:inherit;border:0;padding:.3rem .45rem}
.shell-action:hover,.shell-action:focus-visible{background:#ffffff20}
.shell-action svg{width:1.3rem;height:1.3rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.player-profile-action.has-edits{background:#277333;color:#fff}
.shell-action.discards-edits{background:#a52c38;color:#fff}
.player-profile-action:disabled{cursor:default}
.player-character-badge{padding:.1rem .45rem;border:1px solid currentColor;border-radius:.35rem;white-space:nowrap}
.player-character-tools{display:flex;gap:.5rem;flex-wrap:wrap;margin:.75rem 0}
.player-character-tools[hidden]{display:none}
.run-log-header,.run-log-summary,.run-log-controls,.run-log-count,.run-log-timeline{max-width:76rem;margin-inline:auto}
.run-log-header h3,.run-log-header p{margin:.15rem 0}
.run-log-header p{color:var(--muted)}
.run-log-summary .tablewrap{max-height:none}
.run-log-summary :is(th,td):last-child{text-align:right;font-variant-numeric:tabular-nums}
.run-log-controls{margin-top:1rem}
.run-log-count{color:var(--muted);margin-block:.65rem}
.run-log-timeline{border:1px solid var(--edge)}
.run-log-entry{background:#fffcf5;border:0;border-bottom:1px solid var(--edge)}
.run-log-entry:last-child{border-bottom:0}
.run-log-entry-heading{display:flex;align-items:baseline;gap:.55rem;flex-wrap:wrap;padding:.55rem .75rem;background:#e3ebf3}
.run-log-entry[data-kind=dialog] .run-log-entry-heading{background:#fff0cb}
.run-log-entry[data-source=gruebench] .run-log-entry-heading{background:#f4dfdb}
.run-log-entry[data-kind=event] .run-log-entry-heading{background:#e0e6d9}
.run-log-entry-heading time,.run-log-source{font-size:.84rem;color:var(--muted)}
.run-log-entry-heading code{flex:1 1 18rem;overflow-wrap:anywhere;font-weight:400}
.run-log-message,.run-log-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:.65rem .75rem}
.run-log-entry pre{max-height:32rem;overflow:auto}
.run-log-json{max-width:76rem;margin:1rem auto 0;white-space:pre-wrap;overflow-wrap:anywhere}
.player-profile-fields label{display:inline-block;margin:0 .65rem .6rem 0}
.player-profile-fields label:has(textarea){display:block;margin-right:0}
.player-startup{max-height:12rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.steering-form{display:grid;gap:.5rem;margin:1rem 0}
.steering-form textarea{display:block;width:100%;box-sizing:border-box}
.steering-form>button{justify-self:start}
.steering-form>p:empty{display:none}
.shell-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.ui-dialog{padding:0;width:min(46rem,96vw);max-width:96vw;max-height:92dvh;overflow:hidden;border:1px solid var(--edge);border-radius:.3rem;color:var(--ink);background:var(--paper)}
.ui-dialog[open]{display:flex;flex-direction:column}
.ui-dialog::backdrop{background:#102823b3}
.ui-dialog[data-size=small]{width:min(32rem,96vw)}
.ui-dialog[data-size=wide]{width:min(84rem,96vw)}
.ui-dialog[data-size=viewer]{width:min(96rem,96vw);height:92dvh}
.ui-dialog>.shell-content{padding:1rem}
.ui-dialog>.preview-content:not(.database-preview){padding:0}
.library-tabs+.library-tabs{background:#e9ebdf}
.archive-card[hidden]{display:none}

#map-editor[hidden],#map-help[hidden]{display:none}#map-editor input{max-width:12em}#map-editor [aria-pressed=true]{background:#185a4a;color:white}#map-help{margin:.3em 0;font-size:.9em}.mapview .room{touch-action:none}

.preview-content img.exploration-sheet{width:100%;height:100%;object-fit:contain}

.pager{display:inline-flex;align-items:center;justify-content:center;gap:.25rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.pager button{color:inherit;background:transparent;border:0;margin:0;padding:.35rem;line-height:1;cursor:pointer}
.pager button:disabled{opacity:.35;cursor:default}
.pager svg{display:block;width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.shell-pager{flex:none;align-self:stretch;padding:.15rem .5rem;background:var(--paper);border-bottom:1px solid var(--edge)}
.markdown-document{line-height:1.6;overflow-wrap:anywhere}
.preview-content>.markdown-document,.preview-content>.markdown-source{max-width:var(--page-width);margin-inline:auto;padding:1.25rem var(--page-inset)}
.markdown-document h1{font-size:clamp(1.95rem,3.4vw,3.2rem)}
.markdown-document h2{font-size:clamp(1.6rem,2.6vw,2.4rem)}
.markdown-document h3{font-size:1.125rem}
.markdown-document p,.markdown-document li{max-width:85ch}
.markdown-document table{border-collapse:collapse;margin-block:1rem;max-width:100%}
.markdown-document :is(th,td){padding:.4rem .75rem;text-align:start;border-bottom:1px solid var(--edge);white-space:normal}
.markdown-document tr>:first-child{white-space:nowrap}
.markdown-document pre{overflow:auto;white-space:pre-wrap}

.database-table .preview-trigger:has(>.asset-icon){display:inline-grid;place-items:center;min-width:1.875rem;min-height:1.875rem;vertical-align:middle;border-radius:.25rem}
.database-table .preview-trigger:has(>.asset-icon):is(:hover,:focus-visible){background:#e4e9df}

.tablewrap .icon-cell{text-align:center}

.tablewrap .sort-heading{font:inherit;color:inherit;background:transparent;border:0;padding:0;text-align:inherit;cursor:pointer}
th[aria-sort=ascending] .sort-heading::after{content:' ▴'}
th[aria-sort=descending] .sort-heading::after{content:' ▾'}

.byte-size{display:inline-block;padding:.06em .5em;border:1px solid rgb(0 0 0 / 9%);border-radius:.35em;background:#edeae4;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.byte-size[data-unit="kB"]{background:#e5eee5}
.byte-size[data-unit="MB"]{background:#e1ecf3}
.byte-size[data-unit="GB"]{background:#eae5f1}
.byte-size[data-unit="TB"]{background:#f3e6dc}
.byte-size[data-unit="PB"]{background:#f1e3e8}
.byte-size[data-unit="EB"]{background:#e1eeeb}

.database-table .material-text{display:block;max-width:min(23ch,12vw);overflow:hidden;text-overflow:ellipsis}
.database-table .material-text[data-column="description"]{max-width:min(34ch,17vw)}

main > .markdown-document{margin:0;padding:0}

.site-brand{display:inline-flex;align-items:center;gap:var(--brand-gap)}

.ui-dialog[data-size=full]{inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0}

.live-player-clock{align-self:center;margin-inline-start:auto;font-variant-numeric:tabular-nums;white-space:nowrap}

.metric-legend{max-width:76rem;margin:1rem 0 2rem}
.event-config{margin:1rem 0 2rem}
.metric-legend{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}
.event-config .tablewrap{max-height:none}
.event-config table{width:100%}
.event-config td{white-space:pre-wrap;overflow-wrap:anywhere;padding-block:.35rem}
.event-config td:first-child{width:18%}.event-config td:nth-child(2){width:36%}
.event-config th .shell-action{display:inline-grid;vertical-align:middle;margin-left:.4rem;color:var(--teal)}
.event-config :is(select,textarea,input){max-width:100%;box-sizing:border-box}
.event-config textarea{width:100%;min-height:3.5rem}.event-config input[type=number]{width:7rem}
.benchmark-config td:first-child{width:16%}.benchmark-config td:nth-child(2){width:58%}
.benchmark-config td{padding-block:.55rem}
.benchmark-value-header,.benchmark-config-actions{display:flex;align-items:center}
.benchmark-value-header{justify-content:space-between;gap:.65rem}
.benchmark-config-actions{justify-content:flex-end;gap:clamp(.75rem,3vw,2rem)}
.benchmark-config-actions [role=alert]:empty{display:none}
.benchmark-config-actions .shell-action{color:var(--teal);min-width:2.4rem;min-height:2.4rem;margin:0}
.benchmark-config-actions .shell-action:hover,.benchmark-config-actions .shell-action:focus-visible{background:#e0e9df}
.benchmark-config .benchmark-prompt{display:block;min-height:10rem;resize:vertical;line-height:1.5}
.notice-editor,.notice-list,.notice-summary{display:grid;gap:.55rem}
.notice-editor>.roster-add{justify-self:start}
.notice-toggle,.notice-threshold{display:flex;align-items:center;gap:.35rem}
.notice-trigger,.notice-summary li{display:grid;align-items:start;grid-template-columns:auto minmax(0,1fr) auto;gap:.55rem}
.benchmark-config .notice-threshold input{width:4rem}
.notice-summary{list-style:none;margin:0;padding:0}
.notice-summary strong{min-width:3rem}
.roster-meta{color:var(--muted);font-size:.85em}
.roster-action{display:inline-flex;align-items:center;gap:.45rem;padding:.35rem .55rem;font-size:.9em}
.roster-action svg{width:1.18rem;height:1.18rem;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.roster-action:hover:not(:disabled){background:#e0e9df}
.roster-action:disabled{opacity:.5;cursor:default}
.roster-trash{border-color:transparent;color:#783436;padding:.3rem}
.roster-trash:hover:not(:disabled){background:#f2e3dd}
.roster-footer{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.65rem}
.roster-footer:not(:empty){margin-top:.8rem}
.roster-table{display:grid;gap:.6rem}
.roster-table table{width:100%}
.roster-table .pager{justify-content:center}
.roster-table .pager[hidden]{display:none}
.roster-table input[type=checkbox]{margin:0;accent-color:var(--teal)}
.roster-search{width:100%;padding:.55rem .65rem;border:1px solid #929b8e;border-radius:.3rem;background:#fffdf7}
.roster-status{margin:.55rem 0 0;color:var(--muted)}
.roster-status:empty{display:none}

.metric-legend{gap:.8rem 2rem}
.metric-legend>div{border-bottom:1px solid var(--edge);padding:.5rem 0 .85rem}
.metric-legend dt{display:flex;align-items:center;gap:.65rem;font-weight:650}
.metric-legend svg{width:1.2rem;height:1.2rem;flex:none;fill:none;stroke:var(--teal);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.metric-legend dd{margin:.35rem 0 0 1.85rem;color:var(--muted);line-height:1.45}

/* Carry the shell's available height through the event Live tab and standalone replay. */
.ui-dialog>.shell-content:has(.replay-split),
.ui-dialog>.shell-content>div:has(>div>.replay-split),
.ui-dialog>.shell-content div:has(>.replay-split),
.page-scroll:has(#desk>.replay-split),
.page-scroll main:has(#desk>.replay-split),
#desk:has(>.replay-split){display:flex;flex-direction:column;min-height:0;min-width:0;flex:1;overflow:hidden}
.ui-dialog>.shell-content:has(.replay-split){padding:0}
.page-scroll:has(#desk>.replay-split){scrollbar-gutter:auto}
.page-scroll main:has(#desk>.replay-split){width:100%;max-width:none;margin:0;padding:.4rem}
:where(.shell-content,#desk) select[aria-label="Player to watch"]{align-self:flex-start}
.replay-split{grid-template-rows:minmax(0,1fr)}
.replay-split .mapview{overscroll-behavior:contain}
.ui-dialog .replay-split{margin:.45rem}
.replay-split{display:grid;grid-template-columns:minmax(0,var(--map-share,62%)) .7rem minmax(0,1fr);min-width:0;min-height:0;flex:1;overflow:hidden}

.replay-divider{touch-action:none;cursor:col-resize;display:grid;place-items:center}
.replay-divider::after{content:"";width:3px;height:3rem;border-radius:2px;background:var(--edge)}
.replay-divider:is(:hover,:focus-visible)::after{background:var(--teal)}
.replay-map-sheet{display:flex;flex-direction:column;min-height:0}
.replay-map-sheet{position:relative;flex:1;overflow:hidden}
.replay-cover{width:2.5rem;padding:0;overflow:hidden;background:var(--paper);flex:none}
.replay-cover img{display:block;width:100%;height:auto}
.replay-map-sheet .map-stage{display:flex;flex:1;min-height:0}
.replay-map-sheet .mapview{flex:1;min-width:0;min-height:0;height:auto;overflow:auto}
.replay-map-sheet .mapview>svg{width:100%;height:100%}
.replay-map-sheet .replaycanvas:not([hidden]){flex:1;min-height:0;height:0;object-fit:contain;background:#111}
.replay-game-screen iframe{display:block;flex:1;width:100%;min-height:0;border:0}
.replay-sidebar{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:.45rem}
.replay-run-info-panel{flex:1;min-height:0;overflow:auto;padding:.65rem;overscroll-behavior:contain}
.replay-game-info{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .65rem}
.replay-position{font-variant-numeric:tabular-nums}
.replay-game-info .live-player-clock{margin:0}
.replay-run-info,.replay-status,.replay-position,.replay-transport{margin:0;font-size:.88rem}
.replay-status{white-space:pre-line;overflow-wrap:anywhere}
.replay-status:empty,.replay-toolbar:empty,.replay-log-controls p:empty{display:none}
.replay-toolbar{flex:none;margin-top:.45rem;padding:.35rem .55rem;flex-wrap:wrap}
.replay-toolbar .replay-transport{display:flex;align-items:center;gap:.3rem;flex:1;min-width:min(100%,12rem);flex-wrap:nowrap;margin:0}
.replay-transport.controls input[type=range]{min-width:3rem;width:3rem}
.replay-toolbar button{flex:none}
.replay-log-controls{display:grid;gap:.3rem;margin-top:.45rem;font-size:.88rem}
.replay-log-controls>button{justify-self:start}
.replay-log-controls :is(h3,p){margin:0}
.replay-log-controls .steering-form{margin:0}
.replay-log-controls textarea{min-height:3rem}
.replay-console{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.replay-console-bar{display:flex;align-items:center;flex:none;gap:.35rem;background:var(--paper);border-bottom:1px solid var(--edge)}
.replay-console-bar .library-tabs{flex:1;gap:.1rem .4rem;padding-inline:.45rem;border-bottom:0;font-size:.88rem}
.replay-console-bar .replay-sync{padding-inline:.35rem .6rem;font-size:.8rem;white-space:nowrap}
.replay-console-bar .replay-sync input{margin:0;vertical-align:middle}
.replay-console-scroll{flex:1;min-height:0;overflow:auto;overflow-anchor:none;overscroll-behavior:contain}
.replay-console-row{padding:.35rem .65rem .45rem;border-bottom:1px solid var(--edge);overflow-wrap:anywhere}
.replay-console-row>header{display:flex;align-items:baseline;flex-wrap:wrap;gap:.15rem .5rem;margin-bottom:.15rem;color:var(--muted);font-size:.79rem}
.replay-console-row[data-source="Dialog"]>header{display:grid;grid-template-columns:minmax(0,1fr) auto}
.replay-console-row[data-source="Dialog"]>header>:first-child{grid-area:1/2}
.replay-console-row[data-source="Dialog"]>header>span{grid-area:1/1}
.replay-chat-model{grid-column:1/-1;font-size:.9em;line-height:1.2}
.replay-console-row .turn-link{margin-left:auto;padding:0;border:0;background:transparent;font:inherit}
.replay-console-row .turn-link:disabled{color:var(--muted);opacity:1;cursor:default;text-decoration:none}
.replay-console-row.current-turn{box-shadow:inset 3px 0 var(--teal)}
.replay-console-row[data-source="Game inputs"]{background:#e5eee8;color:var(--teal)}
.replay-console-row[data-source="Server"]{background:#eef0e7}
.replay-console-row[data-source="Client"]{background:#e9f2fb}
.replay-console-row.replay-coordinator-message{background:#f9e5e2}
.replay-console-row.replay-player-message{background:#fff4d6}
.replay-console-row.replay-broadcast-message{background:#ede6f8}
.replay-console-text{white-space:pre-wrap;margin:0;font-size:.9rem}
.replay-console-empty{margin:.65rem;color:var(--muted)}
.replay-console[data-view="chat"] .replay-console-scroll{background:#f3f0e7}
.replay-console[data-view="chat"] .replay-console-row{width:fit-content;max-width:88%;margin:.65rem auto .65rem .65rem;padding:.5rem .7rem;border:1px solid #ddc4bd;border-radius:.9rem .9rem .9rem .25rem;background:#f9e5e2}
.replay-console[data-view="chat"] .replay-player-message{margin-inline:auto .65rem;border-color:#b9d2c3;border-radius:.9rem .9rem .25rem .9rem;background:#e0eee4}
.replay-console[data-view="chat"] .replay-broadcast-message{border-color:#c8b8df;background:#ede6f8}
.replay-console[data-view="chat"] .replay-console-row>header{flex-direction:row-reverse;justify-content:flex-end;font-size:.73rem}
.replay-console[data-view="chat"] .replay-console-text{line-height:1.43}
.replay-console-row[data-source="Trace"]{background:#edf0f4}
.replay-trace{border:0}
.replay-trace>summary{padding:.12rem 0;font-size:.88rem}
.replay-trace>summary strong{text-transform:capitalize;flex:none;max-width:60%}
.replay-trace-preview{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font:normal .82rem ui-monospace,monospace}
.replay-trace .command-reply{max-height:22rem;overflow:auto;margin:.35rem 0 .1rem;padding:.55rem;background:#fffcf5;border:1px solid var(--edge);font-size:.82rem}
.replay-jsonl{width:max-content;min-width:100%;margin:0;padding:.55rem .65rem;white-space:pre;font:.85rem/1.45 ui-monospace,monospace}
.replay-command>summary,.replay-turn-facts>summary{cursor:pointer}
.replay-command>summary{font-size:.88rem;overflow-wrap:anywhere}
.replay-command .command-reply{margin:.3rem 0 0;max-height:16rem;overflow:auto;font-size:.85rem}
.replay-command p,.replay-turn-facts{margin:.25rem 0 0;color:var(--muted);font-size:.8rem}
.replay-drawer-open,.replay-drawer-close,.replay-drawer-backdrop{display:none}
.watch-transcript .replay-console{height:min(68dvh,42rem)}

@media (min-width:641px) and (max-width:1099px){
 .replay-split{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,58fr) minmax(0,42fr);gap:.45rem}
 .replay-divider{display:none}
}
@media (max-width:640px){
 .replay-split{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:.35rem}
 .replay-divider{display:none}
 .replay-drawer-open{display:block;justify-self:end}
 .replay-drawer-backdrop{display:block;position:absolute;inset:0;background:#142e2a75;visibility:hidden;opacity:0;transition:opacity .18s,visibility .18s;z-index:1}
 .replay-sidebar{position:absolute;inset:0 0 0 auto;z-index:2;width:min(100%,30rem);grid-template-rows:auto minmax(0,1fr) auto;padding:.45rem;background:var(--paper);box-shadow:0 0 1rem #0003;transform:translateX(calc(100% + 1rem));visibility:hidden;transition:transform .18s,visibility .18s}
 .replay-drawer-visible :is(.replay-sidebar,.replay-drawer-backdrop){visibility:visible;opacity:1;transform:none}
 .replay-drawer-close{display:block;justify-self:end}
}
@media (prefers-reduced-motion:reduce){
 .replay-sidebar,.replay-drawer-backdrop{transition:none}
}

.replay-split .replay-action{display:inline-grid;place-items:center;padding:.28rem;width:2rem;height:2rem}
.replay-action svg{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.zoomable-map{touch-action:none;overflow:auto;overscroll-behavior:contain;user-select:none;scrollbar-width:none}
.zoomable-map.map-zoomed,.map-zoomed .room{cursor:grab}
.zoomable-map.map-grabbing,.map-grabbing .room{cursor:grabbing}
.mapview.zoomable-map>svg,.preview-content .zoomable-map>img.exploration-sheet{width:var(--map-scale,100%);height:var(--map-scale,100%);max-width:none;max-height:none}

.replay-toolbar{display:flex;align-items:center;gap:.5rem;min-width:0}
.replay-modes{display:inline-flex}
.replay-modes button{padding:.26rem .9rem;border-radius:0}
.replay-modes button:first-child{border-radius:.25rem 0 0 .25rem}
.replay-modes button:last-child{border-radius:0 .25rem .25rem 0;border-left:0}
.replay-modes button[aria-pressed=true]{background:var(--teal);color:white}
.replay-transport :disabled{opacity:.45;cursor:default;filter:grayscale(1)}

.ramp-controls,.ramp-legend{display:flex;gap:1rem;flex-wrap:wrap}.ramp-controls label{display:grid;gap:.25rem;font-size:.9rem}.ramp-controls select{max-width:100%;padding:.35rem;background:#fffcf5}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:1rem}.ramp-chart{margin:0;padding:.85rem 1rem;border:1px solid var(--edge);background:#fffcf5;border-radius:4px}.ramp-chart figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.ramp-chart figcaption strong{font:1.25rem Georgia,serif}.ramp-chart figcaption span,.ramp-legend{font-size:.85rem;color:var(--muted)}.ramp-chart svg{display:block;width:100%;margin-top:.4rem}.ramp-chart svg text{font:11px system-ui;fill:var(--muted)}.ramp-legend span:before{content:'━';margin-right:.3rem}

.command-label,.command-reply{white-space:pre-wrap;overflow-wrap:anywhere}
.command-label{display:block;color:var(--muted)}
.command-reply{margin:.7rem 0 0;font:1rem/1.45 monospace}

.map-stage{position:relative}
.map-options:not(:empty){position:absolute;top:.5rem;right:.5rem;max-width:calc(100% - 1rem);display:grid;gap:.25rem;padding:.4rem .55rem;background:var(--paper);border:1px solid var(--edge);border-radius:4px}
.map-stage>.map-selector,.preview-content>.map-selector{position:absolute;top:.5rem;left:.5rem;min-width:0;max-width:min(24rem,calc(100% - 1rem));padding:.3rem .45rem;border:1px solid var(--teal);border-radius:3px;background:var(--paper);color:var(--teal);font-weight:600}
.map-stage:has(>.map-options:not(:empty))>.map-selector{max-width:min(24rem,calc(100% - 9rem))}
.map-options label{display:inline-flex;align-items:center;gap:.25rem;font-size:.85rem;white-space:nowrap}
.preview-content:has(>.map-preview-panel){position:relative;display:flex;flex-direction:column}
.map-preview-panel{flex:1;min-height:0;background:#f7f2df}


.markdown-editor{display:grid;grid-template-columns:auto 1fr;grid-template-rows:minmax(12rem,1fr) auto;gap:.6rem;align-items:center;height:100%;box-sizing:border-box;padding:1rem}
.markdown-editor textarea{grid-column:1/-1;width:100%;height:100%;box-sizing:border-box;resize:none;padding:.8rem;font:1rem/1.5 monospace}

.config-footnote{font-size:.875rem;color:var(--muted);margin:.5rem 0}

.log-filters{display:flex;flex:none;flex-wrap:wrap;align-items:center;gap:.2rem .75rem;padding:.45rem .55rem;background:#e9ebdf;border-bottom:1px solid var(--edge);font-size:.8rem}
.log-filters[hidden]{display:none}
.log-filters label{white-space:nowrap}
.log-filters input{margin:0;vertical-align:middle}

.ui-dialog>.watch-wall{display:flex;flex-direction:column;gap:.6rem;overflow:hidden}
.watch-options{flex:none;display:flex;justify-content:flex-end}
.watch-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(16rem,29%,27rem);gap:.6rem}
.watch-sidebar{min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.watch-sidebar-tabs{flex:none;display:flex;gap:.35rem;padding:.35rem;border-bottom:1px solid var(--edge);background:var(--paper)}
.watch-sidebar-tabs button[aria-pressed="true"]{background:var(--teal);color:var(--paper)}
.watch-chat,.watch-seat-transcript,.watch-seat-transcript>.replay-console{flex:1;min-height:0}
.watch-seat-transcript{display:flex;flex-direction:column;overflow:hidden}
.watch-chat[hidden],.watch-seat-transcript[hidden]{display:none}
@media(max-width:760px){
  .watch-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,3fr) minmax(0,2fr)}
}
.watch-grid{flex:1;min-height:0;display:grid;gap:.6rem;grid-template-columns:repeat(var(--watch-columns,1),minmax(0,1fr));grid-template-rows:repeat(var(--watch-rows,1),minmax(0,1fr))}
.watch-grid article{display:flex;flex-direction:column;background:#132723;color:#fff9df;border-radius:.3rem;overflow:hidden}
.watch-grid article.watch-selected{outline:2px solid var(--teal);outline-offset:-2px}
.watch-grid article.watch-selected>header{background:#285248}
.watch-grid header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.35rem .55rem}
.watch-grid img{flex:1;min-height:0;display:block;width:100%;object-fit:contain;image-rendering:pixelated;background:#091310;cursor:pointer}
.watch-grid img[hidden]{display:none}
.watch-grid p{padding:1rem}.watch-grid a{color:#f4daa0}
.watch-output{flex:1;min-height:0;white-space:pre-wrap;overflow:auto;padding:.6rem;margin:0}
.watch-grid header a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650;color:inherit}
.watch-grid header button{flex-shrink:0;color:inherit;border-color:#52685e;padding:.25rem .45rem}

.team-pattern{display:grid;gap:.6rem;margin-top:.75rem}
.team-pattern-row,.team-actions{display:flex;align-items:flex-end;gap:.75rem;flex-wrap:wrap}
.team-pattern-row label{display:grid;gap:.3rem}
.team-pattern-row input{width:5rem}
.team-seat-list,.team-run-list{display:grid;gap:.25rem}

.checkpoint-editor td:nth-child(2){white-space:pre-wrap}
.checkpoint-editor td:nth-child(1){width:26%}
.checkpoint-editor td:nth-child(3){width:6rem}
.checkpoint-editor input,.checkpoint-editor textarea{width:100%;box-sizing:border-box}
.checkpoint-editor textarea{min-height:3rem;resize:vertical}
.checkpoint-actions{display:flex;gap:.25rem}

.watch-grid iframe{flex:1;min-height:0;display:block;width:100%;border:0;background:#091310}
