/* Interaction and layout layer. Theme colours and typography live in themes.css. */
[hidden]{display:none!important}
.layout.wide-workspace{grid-template-columns:108px minmax(0,1fr)}
.rail{width:auto;padding-inline:8px}.rail button{width:76px;font-size:11px;min-height:62px}.rail{gap:7px}
.workspace{min-width:0}.wide-workspace .workspace{max-width:1700px;width:100%;margin-inline:auto}
.locations-workspace>.section-top{padding:0 0 16px}.locations-workspace>.section-top:nth-of-type(2){padding-top:20px}
.location-picker{display:flex;gap:12px;overflow:auto;padding:4px 3px 12px;max-width:100%;scrollbar-width:thin}
.location-choice{flex:0 0 152px;min-width:0;text-align:left;padding:5px;border:2px solid transparent;background:var(--surface);border-radius:9px}
.location-choice.active{border-color:var(--theme-accent,var(--green))}.location-choice .location-image{height:82px;aspect-ratio:auto;min-height:0;object-fit:cover;border-radius:5px}.location-choice .location-placeholder svg{width:24px;height:24px}.location-choice span{display:block;margin:8px 4px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.location-stage{width:100%;max-height:75vh;min-height:260px;position:relative;overflow:hidden;background:var(--green-soft);border:1px solid var(--line);border-radius:12px;isolation:isolate}
.location-stage>.stage-backdrop,.location-stage>.vz-calque>.stage-backdrop{position:absolute;inset:0;width:100%;height:100%;min-height:0;aspect-ratio:auto;border-radius:0;pointer-events:none}
.location-token{position:absolute;min-width:25px;min-height:25px;padding:0;border:2px solid var(--surface);background:var(--surface);border-radius:50%;transform:translate(-50%,-50%) rotate(var(--token-rotation,0deg));box-shadow:0 2px 10px #292d2738;touch-action:none;z-index:1;cursor:grab}
.location-token:active{cursor:grabbing}.location-token:focus-visible{z-index:3;outline:3px solid var(--copper);outline-offset:5px}.location-token .token-portrait{width:100%;height:100%;min-height:0;border-radius:50%;object-fit:cover;aspect-ratio:auto;pointer-events:none;user-select:none}.location-token .token-portrait svg{width:50%;height:50%}
.token-hidden{border-style:dashed;border-color:var(--copper);opacity:.78}.token-name,.token-status{position:absolute;left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;max-width:170px;overflow:hidden;text-overflow:ellipsis;padding:3px 6px;background:var(--surface);border:1px solid var(--line);border-radius:4px;color:var(--ink);pointer-events:none}.token-name{top:calc(100% + 4px)}.token-status{bottom:calc(100% + 3px);color:var(--copper);font-size:9px}
.token-bank{padding:20px 0}.token-bank>.section-top{padding:0}.token-bank-item{display:inline-flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--line);background:var(--surface);border-radius:8px;margin:0 8px 8px 0;max-width:100%;cursor:grab}.token-bank-item>span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.actor-photo.location-image{width:42px;height:42px;aspect-ratio:1;min-height:0;object-fit:cover;border-radius:50%}.actor-photo.location-placeholder svg{width:23px;height:23px}
.stage-expanded{position:fixed;inset:12px;z-index:20;background:var(--paper);padding:20px;overflow:auto;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.stage-expanded .location-picker{display:none}.stage-expanded .location-stage{max-height:78vh}
.players-table{border-collapse:collapse;width:100%;font-size:12px}.players-table th,.players-table td{padding:12px 9px;border-bottom:1px solid var(--line);text-align:left}.table-scroll{overflow-x:auto}.players-table{min-width:700px}.players-table th[scope=row]{font-weight:600}.players-table select{max-width:200px}.players-table .actions{flex-wrap:nowrap}
.location-upload-zone{border:2px dashed var(--line);padding:18px;border-radius:10px;background:var(--paper);margin-bottom:18px}.location-upload-zone input{max-width:100%;}.location-upload-zone #location-upload-status{margin:8px 0 0;font-size:12px}.location-dimensions{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:12px}.location-dimensions input{width:100%}.location-playlist-bank{border:1px solid var(--line);padding:14px;border-radius:9px;max-height:240px;overflow:auto;margin-bottom:15px}.location-playlist-item{padding:9px 0;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);font-size:12px;cursor:grab}.location-audio-slots{display:grid;grid-template-columns:1fr 1fr;gap:12px}.location-audio-slot{padding:13px;border:2px dashed var(--line);border-radius:9px;margin-bottom:18px;background:var(--paper)}.location-audio-slot .field{margin:0}.drag-over{outline:3px solid var(--copper);outline-offset:2px}
.invitation-url{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:18px}.invitation-url strong{grid-column:1/-1}.invitation-url input,input[type=email]{width:100%;border:1px solid var(--line);border-radius:var(--vs-radius);background:var(--surface)}.access-code{font:600 clamp(28px,7vw,48px)/1.4 ui-monospace,monospace;letter-spacing:.16em;text-align:center;padding:24px 10px;border:1px solid var(--line);border-radius:9px;background:var(--paper);user-select:all}.roll-buttons .button{}
@media(min-width:851px){.layout:not(.wide-workspace){grid-template-columns:108px minmax(0,1fr) 320px}}
@media(max-width:850px){.layout.wide-workspace{grid-template-columns:88px minmax(0,1fr)}.rail button{width:68px}.location-stage{min-height:240px}.location-choice{flex-basis:128px}.location-dimensions{grid-template-columns:1fr 1fr}.location-dimensions>.field:last-child{grid-column:1/-1}}
@media(max-width:600px){.layout.wide-workspace{display:block}.rail{justify-content:flex-start;overflow-x:auto;gap:3px;padding:5px}.rail button{flex:0 0 66px;width:66px;min-height:51px;font-size:10px}.workspace{padding:18px 14px}.location-stage{min-height:210px;max-height:65vh}.location-picker{gap:8px}.location-choice{flex-basis:115px}.location-choice .location-image{height:66px}.locations-workspace .section-top{align-items:flex-start;flex-wrap:wrap}.location-audio-slots{grid-template-columns:1fr}.location-audio-slot{margin-bottom:6px}.location-playlist-item{align-items:flex-start;flex-direction:column}.token-bank-item{display:flex;margin-right:0}.token-bank-item>span{flex:1}.stage-expanded{inset:4px;padding:14px}dialog{padding:18px}.location-token .token-name{font-size:9px;max-width:100px}}
.journal-navigation{min-width:0}.journal-navigation>input{width:100%;margin-bottom:12px}.journal-tree{max-height:65vh;overflow-y:auto}.journal-formatted{white-space:normal}.journal-formatted img{max-width:100%;height:auto}.journal-formatted table{max-width:100%;display:block;overflow:auto}.journal-formatted h1,.journal-formatted h2,.journal-formatted h3{margin-block:18px 10px}.journal-formatted a{overflow-wrap:anywhere}
/* Keep normalized token coordinates aligned with the original location ratio. */
.location-stage{width:min(100%,calc(75vh * var(--location-ratio,1.7778)));min-height:0;margin-inline:auto}.stage-expanded .location-stage{width:min(100%,calc(78vh * var(--location-ratio,1.7778)))}
@media(max-width:600px){.location-stage{width:min(100%,calc(65vh * var(--location-ratio,1.7778)));min-height:0}}
.token-bank{max-height:420px;overflow:auto;scrollbar-width:thin}.token-bank>.section-top{position:sticky;top:0;z-index:2;padding:9px 0;background:var(--paper)}
.manual-badge{white-space:nowrap}.manual-sound-list{display:grid;gap:8px}.manual-sound-row{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--paper)}.manual-sound-row>svg{width:20px;height:20px;flex:none;color:var(--green)}.manual-sound-label{flex:1;min-width:0}.manual-sound-label strong{display:block;font-size:13px;overflow-wrap:anywhere}.manual-sound-label .hint{margin:4px 0 0}.manual-empty{padding:18px;border:1px dashed var(--line);border-radius:8px}.manual-warnings{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
@media(max-width:600px){.playlist-head{flex-wrap:wrap}.playlist-head .manual-badge{order:3}.manual-sound-row{padding:10px;gap:8px}}
/* Large catalogues: small working areas, bounded lists and an always-available mixer. */
body{padding-bottom:36px}.workspace{padding:18px 24px}.workspace-heading{margin-bottom:14px;gap:12px}.workspace-heading h1{font-size:27px}.workspace-heading .eyebrow{margin-bottom:4px}.workspace-heading .subtitle{max-width:75ch}.workspace-heading .brand-tag{display:none}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:8px 0 12px;font-size:11px;color:var(--muted)}.bounded-list{max-height:60vh;overflow:auto;padding:2px 5px 4px 1px;scrollbar-width:thin}.library-grid.bounded-list{align-content:start}.playlist-details summary{font-size:11px;color:var(--muted);padding:9px 15px;cursor:pointer;border-top:1px solid var(--line)}.playlist-details .playlist-entries-preview{max-height:220px;overflow:auto}.playlist-head{padding:12px}.playlist-workbench>.drag-bank{min-width:0}.catalogue-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:start}.catalogue-row{display:flex;align-items:center;gap:12px;min-width:0;padding:11px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.catalogue-row>strong{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}.catalogue-row .location-image{width:52px;height:56px;aspect-ratio:auto;min-height:0;object-fit:cover;flex:none}.catalogue-row .location-placeholder svg{width:24px;height:24px}.catalogue-row .actions{gap:4px}
.catalogue-tools{display:flex;align-items:center;gap:14px;justify-content:space-between}.catalogue-tools>input{width:min(330px,100%);min-width:180px}.catalogue-tools .pagination{margin:6px 0;flex:1}.compact-picker.location-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:205px;overflow:auto;padding:6px 2px 10px}.compact-picker .location-choice{display:flex;align-items:center;gap:9px;padding:4px;min-width:0}.compact-picker .location-choice .location-image{width:48px;height:34px;min-height:0;flex:none}.compact-picker .location-choice span{font-size:11px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.locations-workspace>.section-top{padding-bottom:9px}.locations-workspace>.section-top:nth-of-type(2){padding-top:10px}.location-stage{max-height:62vh;width:min(100%,calc(62vh * var(--location-ratio,1.7778)))}.token-bank{max-height:none;padding-top:14px;overflow:visible}.token-bank>.section-top{position:static}.token-bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:310px;overflow:auto}.token-bank-item{display:flex;margin:0;min-width:0;padding:7px}.token-bank-item>span{flex:1;max-width:none;font-size:12px}.token-bank-item .actor-photo{width:32px;height:32px}.stage-expanded{bottom:80px}.stage-expanded .location-stage{max-height:72vh;width:min(100%,calc(72vh * var(--location-ratio,1.7778)))}
.quick-results-list{display:grid;gap:5px;max-height:55vh;overflow:auto}.quick-result{justify-content:flex-start;text-align:left;font-weight:400;min-height:38px}.quick-result svg{flex:none}.quick-result{overflow-wrap:anywhere}#quick-query,#manual-search{width:100%}.manual-sound-list{max-height:52vh;overflow:auto}.journal-layout{grid-template-columns:250px minmax(0,1fr)}.journal-tree{max-height:62vh}.journal-item{padding-block:7px}.journal-content{min-width:0}
@media(min-width:1600px){.workspace-heading h1{font-size:28px}.workspace-heading{align-items:center}.workspace-heading .subtitle{font-size:12px}.compact-picker.location-picker{grid-template-columns:repeat(4,minmax(0,1fr));max-height:165px}}
@media(max-width:1050px){.catalogue-rows{grid-template-columns:1fr}.journal-layout{grid-template-columns:205px minmax(0,1fr)}}
@media(max-width:600px){body{padding-bottom:112px}.workspace{padding:15px 12px}.workspace-heading h1{font-size:25px}.workspace-heading .subtitle{font-size:11px}.catalogue-tools{flex-direction:column;align-items:stretch;gap:2px}.catalogue-tools>input{width:100%}.compact-picker.location-picker{grid-template-columns:repeat(2,minmax(0,1fr));max-height:165px}.compact-picker .location-choice .location-image{width:36px;height:29px}.compact-picker .location-choice span{font-size:10px}.token-bank-grid{grid-template-columns:1fr;max-height:300px}.bounded-list{max-height:58vh}.catalogue-row .actions{flex-direction:column}.journal-layout{display:block}.journal-tree{max-height:180px;flex-direction:column}.journal-item{flex-shrink:0}.location-stage{width:min(100%,calc(55vh * var(--location-ratio,1.7778)));max-height:55vh}.stage-expanded{bottom:116px}.topbar .button[data-act=quick-search]{font-size:0;width:32px;height:32px;padding:0}.topbar .button[data-act=quick-search] svg{width:17px;height:17px}}
/* The music workspace keeps its catalogue and controls within one viewport. */
[data-page=audio] .wide-workspace .workspace{height:calc(100dvh - 148px);display:flex;flex-direction:column;overflow:hidden}[data-page=audio] .workspace-heading{flex:none;margin-bottom:10px}[data-page=audio] .workspace-heading .subtitle{display:none}[data-page=audio] .mixer{flex:none;margin-bottom:14px}[data-page=audio] .mixer>.section-top{padding:10px 14px}[data-page=audio] .channel{padding:10px 14px}[data-page=audio] .channel-title{margin-bottom:6px}[data-page=audio] .channel-detail{min-height:14px}[data-page=audio] .channel-bottom{margin-top:5px}[data-page=audio] .mixer-footer{padding:6px 14px}[data-page=audio] .library-panel{display:flex;flex-direction:column;flex:1;min-height:0}[data-page=audio] .library-head{margin-bottom:7px;flex:none}[data-page=audio] .tabs{margin-bottom:8px;flex:none}[data-page=audio] .tab{padding-block:8px}[data-page=audio] .toolbar{margin-bottom:5px;flex:none}[data-page=audio] #library-results{flex:1;min-height:0}[data-page=audio] #library-results>div{height:100%;display:flex;flex-direction:column}[data-page=audio] #library-results .pagination{flex:none;margin:6px 0 8px}[data-page=audio] #library-results .bounded-list{min-height:0;max-height:100%;align-content:start}[data-page=audio] .playlist-workbench{flex:1;min-height:0}[data-page=audio] .playlist-workbench>.drag-bank{display:flex;flex-direction:column;min-height:0}[data-page=audio] .drag-bank>.bounded-list{flex:1;min-height:0}[data-page=audio] .library-grid.bounded-list{flex:1;min-height:0}
@media(max-width:600px){[data-page=audio] .wide-workspace .workspace{height:calc(100dvh - 225px);min-height:390px}[data-page=audio] .mixer{display:none}[data-page=audio] .workspace-heading{margin-bottom:10px;gap:5px}[data-page=audio] .workspace-heading h1{font-size:23px}[data-page=audio] .workspace-heading .eyebrow{display:none}[data-page=audio] .group-select label{display:none}[data-page=audio] .group-select select{}[data-page=audio] .library-head{gap:6px}[data-page=audio] .library-head h2{font-size:13px}[data-page=audio] .library-head>.button{}[data-page=audio] .playlist-workbench{display:block;overflow:auto}[data-page=audio] .playlist-workbench>.bounded-list{max-height:55vh}[data-page=audio] .playlist-workbench>.drag-bank{display:none}[data-page=audio] .toolbar .button{}[data-page=audio] .toolbar{gap:6px}[data-page=audio] .search-wrap input{}[data-page=audio] .playlist-head .info h3{font-size:12px}.audio-dock{z-index:25}.stage-expanded{z-index:20}}
@media(max-width:600px){.playlist-head{display:grid;grid-template-columns:20px minmax(0,1fr) 32px 32px;gap:8px}.playlist-head>svg{grid-column:1;grid-row:1;width:18px;height:18px}.playlist-head .info{grid-column:2;grid-row:1}.playlist-head>.icon-button:nth-last-child(2){grid-column:3;grid-row:1}.playlist-head>.icon-button:last-child{grid-column:4;grid-row:1}.playlist-head .manual-badge{grid-column:2/5;grid-row:2;justify-self:start}.playlist-head .info p{line-height:1.35}}

/* Portrait enlarged only while hovered or focused; loaded on demand. */
.token-hover-preview{position:fixed;z-index:100;width:min(260px,calc(100vw - 24px));padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 8px 32px #292d2733;pointer-events:none;display:grid;gap:8px}
.token-hover-preview .hover-portrait{width:100%;height:min(300px,45vh);min-height:0;max-height:45vh;object-fit:contain;border-radius:5px;aspect-ratio:auto;background:var(--paper)}
.token-hover-preview strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere;text-align:center}

.location-token .token-name{max-width:calc(100% + 12px)}

.folder-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);gap:12px;min-width:0}.folder-tree{max-height:280px;overflow:auto;border-right:1px solid var(--line);padding-right:8px}.folder-row{display:flex;align-items:center;gap:3px}.folder-choice{justify-content:flex-start;text-align:left;flex:1;min-width:0;overflow-wrap:anywhere;border:0;padding:7px;font-size:12px}.folder-choice.active{background:var(--green-soft);color:var(--green)}.folder-row .icon-button{flex-shrink:0;}.roster-table input:not([type=checkbox]),.roster-table select{min-width:120px;width:100%;border:1px solid var(--line);border-radius:var(--vs-radius);background-color:var(--surface);color:var(--ink)}.roster-table input[type=email]{min-width:190px}.roster-table td{padding:5px}.roster-table th{white-space:nowrap}.roster-table select{max-width:190px}.roster-table input[type=checkbox]{width:20px;height:20px}.folder-workspace>.compact-picker{grid-template-columns:repeat(2,minmax(0,1fr));max-height:240px}@media(max-width:760px){.folder-workspace{grid-template-columns:135px minmax(0,1fr)}.folder-workspace>.compact-picker{grid-template-columns:1fr}.folder-choice{font-size:11px}.folder-tree{max-height:230px}}

.rich-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border:1px solid var(--line);background:var(--paper)}.rich-toolbar input,.rich-toolbar select{max-width:100%;border:1px solid var(--line)}.wiki-writing{min-height:280px;padding:16px;border:1px solid var(--line);background:var(--surface);line-height:1.6;outline-color:var(--green)}.wiki-writing img,.wiki-writing video,.journal-formatted video{max-width:100%;max-height:50vh;object-fit:contain;display:block;margin:12px auto}.wiki-writing h2{font-size:24px}.wiki-writing blockquote{padding-left:18px;border-left:3px solid var(--green)}.rich-editor{grid-column:1/-1}

.folder-row.drag-over{outline:2px solid var(--green);background:var(--green-soft);outline-offset:-2px}

/* Compact location console: preview in the upper left, persistent expandable libraries. */
html[data-page=locations] .workspace{padding:16px 20px}.location-console{display:grid;grid-template-columns:minmax(0,48fr) minmax(0,52fr);grid-template-rows:auto minmax(0,1fr);gap:14px;align-items:start;max-width:100%}.location-preview-panel,.location-working-panel{min-width:0}.location-preview-panel{padding:12px;border:1px solid var(--line);background:var(--surface);border-radius:8px}.console-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.console-heading h1{font-size:20px;line-height:1.2;margin:0}.location-preview-panel .actions{gap:5px}.location-preview-panel .button{}.console-stage-wrap{height:38vh;min-height:190px;display:flex;justify-content:center;align-items:center;margin-top:12px;background:var(--paper);overflow:visible}.console-stage-wrap .location-stage{width:min(100%,calc(38vh * var(--location-ratio,1.6)));max-height:38vh;min-height:0;margin:0}.token-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}.token-toolbar>span{font-size:11px;color:var(--muted);flex:1;min-width:130px}.location-preview-panel>.hint{font-size:10px;margin:8px 0 0}.location-explorer{grid-column:2;grid-row:1/3;max-height:calc(100vh - 177px);overflow:auto;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:10px}.location-explorer>input{position:sticky;top:-10px;z-index:2;width:100%;background:var(--surface);border:1px solid var(--line);margin-bottom:8px}.console-branch{border-bottom:1px solid var(--line);min-width:0}.console-branch>summary{cursor:pointer;padding:10px 8px;font-size:13px;font-weight:650;list-style-position:inside;color:var(--ink)}.console-branch[open]>summary{background:var(--green-soft);color:var(--green)}.console-branch-content{padding:3px 4px 5px 12px}.console-branch-content .console-branch>summary{font-size:12px;padding:8px}.console-document{display:flex;align-items:center;gap:7px;padding:5px 3px;min-width:0;border-bottom:1px solid var(--line)}.console-document>span{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}.console-document small{display:block;font-size:10px;color:var(--muted)}.console-document .console-thumb{width:30px;height:30px;min-height:0;object-fit:cover;aspect-ratio:1;border-radius:4px;flex:none}.console-document.active{background:var(--green-soft)}.console-doc-title{display:block;text-align:left;justify-content:flex-start;width:100%;border:0;padding:7px;font-size:12px;overflow-wrap:anywhere;min-width:0}.console-document .button.small{flex-shrink:0}.location-working-panel{grid-column:1;grid-row:2}.location-working-panel>.console-branch,.console-note{border:1px solid var(--line);background:var(--surface);border-radius:6px;margin-top:10px}.console-note{padding:12px;max-height:38vh;overflow:auto}.console-note h2{font-size:16px;margin:0;flex:1}.location-docked[open]{position:static;inset:auto;width:100%;max-width:100%;max-height:48vh;margin:0;padding:14px;border:1px solid var(--line);border-radius:8px;box-shadow:none;overflow:auto}.location-docked #dialog-title{font-size:19px}.location-docked #editor-fields{display:block}.location-docked .location-playlist-bank{display:none}.location-docked .location-audio-slots{display:block}.location-docked .location-upload{padding:10px}.location-docked input,.location-docked select{max-width:100%}.location-console.stage-expanded{display:block}.location-console.stage-expanded>.location-explorer,.location-console.stage-expanded>.location-working-panel{display:none}.location-console.stage-expanded .console-stage-wrap{height:65vh}.location-console.stage-expanded .location-stage{max-height:65vh;width:min(100%,calc(65vh * var(--location-ratio,1.6)))}
.location-token{min-width:0;min-height:0}.location-token.token-selected{outline:2px solid var(--copper);outline-offset:4px;z-index:3}.token-resize-handle{display:none;position:absolute;right:-5px;bottom:-5px;width:13px;height:13px;background:var(--copper);border:2px solid var(--surface);border-radius:3px;cursor:nwse-resize}.token-selected>.token-resize-handle{display:block}.token-hover-preview{pointer-events:auto}.token-hover-preview .actions{justify-content:center}.location-token{user-select:none}
@media(max-width:800px){.location-console{grid-template-columns:minmax(0,1fr)}.location-explorer{grid-column:1;grid-row:3;max-height:65vh}.location-working-panel{grid-row:2}.console-stage-wrap{height:30vh}.console-stage-wrap .location-stage{width:min(100%,calc(30vh * var(--location-ratio,1.6)));max-height:30vh}.location-docked[open]{max-height:60vh}html[data-page=locations] .workspace{padding:12px}.console-heading h1{font-size:18px}}

#console-tree>.console-branch>.console-branch-content{max-height:calc(100vh - 420px);min-height:0;overflow:auto}#console-tree>.console-branch>summary{font-size:14px}@media(max-width:800px){#console-tree>.console-branch>.console-branch-content{max-height:40vh}}

.console-carousel-panel>select{width:100%;background-color:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--vs-radius)}.carousel-controls{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:7px 0;font-size:11px}.carousel-controls>span{flex:1;color:var(--muted)}.location-carousel{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;padding:3px 3px 12px;min-width:0;scrollbar-width:thin}.carousel-card{flex:0 0 140px;scroll-snap-align:start;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:6px;padding:7px}.carousel-card.active{border-color:var(--copper);box-shadow:inset 0 0 0 1px var(--copper)}.carousel-card strong{display:block;font-size:11px;line-height:1.3;margin-top:7px;overflow-wrap:anywhere}.carousel-card small{font-size:10px;color:var(--muted)}.carousel-preview{display:block;border:0;background:none;padding:0;width:100%;text-align:left}.carousel-image.location-image{width:100%;height:82px;min-height:0;object-fit:cover;border-radius:4px;aspect-ratio:auto}.carousel-card .actions{display:flex;gap:4px;margin-top:6px}.carousel-card .button{}.token-status{pointer-events:auto;cursor:pointer;user-select:none;min-height:19px}.token-status.is-revealed{color:var(--green);background:var(--green-soft)}.token-selection-box{position:absolute;pointer-events:none;z-index:5;border:1px solid var(--copper);background:color-mix(in srgb,var(--copper) 16%,transparent)}.location-working-panel:has(#editor[open])>.console-branch{display:none}.location-docked[open]{max-height:max(230px,calc(100vh - 650px))}

.music-page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.music-page-heading h1{font-size:22px;margin:0}.music-extra-controls{margin-bottom:8px}.music-extra-controls>summary{font-size:12px;color:var(--muted);cursor:pointer;padding:6px 0}.music-extra-controls .mixer{margin-top:8px}html[data-page=audio] .workspace{padding-top:16px}

.world-current-title{font-weight:600;text-transform:none;letter-spacing:0;font-size:13px}.entry-field select{width:100%;border:1px solid var(--line);background-color:var(--surface);color:var(--ink);border-radius:var(--vs-radius)}.player-contact-details{margin-top:18px}.player-contact-details>summary{cursor:pointer;font-size:14px;font-weight:600;padding:12px;background:var(--surface);border:1px solid var(--line)}.document-large-preview.location-image{width:100%;height:auto;max-height:72vh;min-height:0;object-fit:contain;aspect-ratio:auto}.gallery-grid .gallery-card .location-image{min-height:220px;height:280px;object-fit:contain}.topbar button svg{stroke-width:1.5}html[data-page=actors] .workspace,html[data-page=players] .workspace{padding:16px 20px}

.entry-remember{display:flex;gap:10px;align-items:center;font-size:13px;margin:18px 0}.entry-remember input{width:18px;}.entry-delivery-channels{display:flex;flex-wrap:wrap;gap:7px}.entry-field select{}

/* Le logo est le retour du MJ au choix du scénario. */
.brand-home{color:inherit;text-decoration:none;border-radius:8px}
.brand-home:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
.brand-home:hover .brand-name{text-decoration:underline;text-underline-offset:4px}

#dialog-kicker{font-size:11px}
/* Lot D : petit œil sur chaque acteur ; acteur caché = translucide (plus de libellé « Caché / Révélé », plus de pointillés). */
.location-token.token-hidden{border-style:solid;border-color:var(--surface);opacity:.4;transition:opacity .15s}
.location-token.token-hidden:hover,.location-token.token-hidden:focus-within,.location-token.token-hidden.token-selected{opacity:.75}
.location-token .token-eye{position:absolute;top:-6px;right:-6px;bottom:auto;left:auto;transform:none;box-sizing:border-box;width:18px;height:18px;min-width:18px;padding:0;display:inline-grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--green);pointer-events:auto;cursor:pointer;z-index:4;box-shadow:0 1px 4px #292d2740;font-size:0;line-height:0}
.location-token .token-eye svg{width:12px;height:12px;display:block;pointer-events:none}
.location-token .token-eye.is-hidden-eye{color:var(--copper)}
.location-token .token-eye:hover{background:var(--green-soft)}
.location-token .token-eye:focus-visible{outline:2px solid var(--copper);outline-offset:1px}

/* Vue plein écran partagée aux joueurs ; Échap laisse le joueur revenir à son interface. Sans voile blanc sur la page (Benoit, 30/10 : jamais demandé, il donnait des pages blanches). */
:root[data-player-fullscreen] .location-stage{position:fixed!important;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100vw,calc(100vh * var(--location-ratio,1.777)));height:min(100vh,calc(100vw / var(--location-ratio,1.777)));max-width:none;max-height:none;z-index:8000;border-radius:0}
