/* Shared helpers: a bounded dialog, compact categories, and a movable controller. */
.gh-dialog{box-sizing:border-box;display:flex;flex-direction:column;width:min(920px,calc(100vw - 24px));height:min(790px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--ui-border,#496575);border-radius:16px;background:var(--ui-chrome,#152a34);color:var(--ui-text,#eee);font:15px/1.5 system-ui;overflow:hidden;box-shadow:0 24px 80px #0007}.gh-dialog:not([open]),.gh-dialog [hidden],.gh-controller[hidden],.gh-controller [hidden]{display:none!important}.gh-dialog::backdrop{background:#0009}.gh-dialog *,.gh-controller *{box-sizing:border-box}.gh-dialog header,.gh-dialog footer{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:12px;padding:16px 20px;background:var(--ui-chrome,#152a34);border-bottom:1px solid var(--ui-border,#496575)}.gh-dialog footer{border-top:1px solid var(--ui-border,#496575);border-bottom:0}.gh-dialog h2{font-size:24px;line-height:1.2;margin:3px 0 0;font-weight:700}.gh-dialog .gh-eyebrow{font-size:10px;letter-spacing:.16em;color:var(--ui-accent,#ace);font-weight:700}.gh-dialog h3{font-size:16px;line-height:1.3;margin:0;color:var(--ui-text,#eee)}.gh-dialog p{margin:8px 0 14px;font-size:14px;line-height:1.5}.gh-dialog .gh-identity{margin:0;padding:0 20px 14px;font-size:12px;color:var(--ui-muted,#b5c4ce)}.gh-body{padding:18px 20px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;scrollbar-gutter:stable}.gh-dialog .gh-intro{margin:0 0 16px;max-width:70ch}.gh-tabs{display:flex;gap:4px;padding:0 20px 12px;border-bottom:1px solid var(--ui-border,#496575);flex-shrink:0}.gh-tabs button{flex:1;white-space:normal}.gh-dialog button,.gh-controller button{min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--ui-border,#496575);border-radius:9px;background:var(--ui-raised,#243b46);color:var(--ui-accent,#ace);font:600 14px/1.3 system-ui;cursor:pointer;box-shadow:none;letter-spacing:normal;text-transform:none}.gh-dialog button[aria-pressed=true],.gh-dialog .gh-primary{background:var(--ui-accent,#ace);color:var(--ui-deep,#091323);border-color:var(--ui-accent,#ace)}.gh-dialog button:disabled,.gh-controller button:disabled{opacity:.5;cursor:default}.gh-dialog :is(button,input,select,textarea,summary):focus-visible,.gh-controller button:focus-visible,.gh-handle:focus-visible{outline:2px solid var(--ui-accent,#ace);outline-offset:3px}.gh-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.gh-card{padding:16px;border:1px solid var(--ui-border,#496575);border-radius:12px;background:var(--ui-deep,#091323);min-width:0;overflow-wrap:anywhere}.gh-card-head{display:flex;gap:12px;align-items:center;justify-content:space-between}.gh-card-head button{width:44px;flex-shrink:0;border-radius:50%;background:transparent}.gh-card .gh-description{color:var(--ui-muted,#b5c4ce);margin:6px 0 12px}.gh-card-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--ui-border,#496575);padding-top:12px;margin-top:12px}.gh-state{font-size:12px;color:var(--ui-muted,#b5c4ce)}.gh-switch{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-size:13px}.gh-dialog input[type=checkbox]{appearance:auto;width:22px;min-width:22px;height:22px;min-height:22px;padding:0;margin:0;accent-color:var(--ui-accent,#ace)}.gh-shared{padding:4px 14px;background:var(--ui-deep,#091323);border:1px solid var(--ui-border,#496575);border-radius:12px;margin-bottom:16px}.gh-dialog summary{min-height:44px;padding:11px 0;color:var(--ui-accent,#ace);cursor:pointer;font-size:14px;font-weight:600}.gh-setup .gh-fields{padding:6px 0 12px}.gh-fields{display:grid;gap:14px}.gh-field{display:grid;gap:6px;font-size:13px}.gh-dialog :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;min-width:0;width:100%;min-height:44px;background:var(--ui-chrome,#152a34);color:var(--ui-text,#eee);border:1px solid var(--ui-border,#496575);border-radius:8px;padding:10px;font:16px/1.4 system-ui}.gh-dialog textarea{resize:vertical}.gh-dialog :is(input,select,textarea):disabled{opacity:.65}.gh-dialog .gh-error{color:var(--ui-warning,#ffd060);padding:10px 12px;border:1px solid currentColor;border-radius:8px}.gh-error:empty{display:none}.gh-dialog .gh-busy{font-size:12px;color:var(--ui-muted,#b5c4ce)}.gh-buff-list{display:grid;gap:4px}.gh-buff-choice{display:flex;align-items:center;gap:12px;min-height:44px;text-transform:capitalize;font-size:14px}.gh-one-shot{display:flex;gap:16px;align-items:center;justify-content:space-between;border:1px solid var(--ui-border,#496575);border-radius:12px;padding:16px;margin-top:16px}.gh-one-shot p{margin-bottom:0;color:var(--ui-muted,#b5c4ce)}.gh-one-shot button{flex-shrink:0}.gh-footer-main{display:flex;gap:8px;flex-wrap:wrap}.gh-dialog .gh-stop,.gh-controller .gh-stop{color:var(--ui-danger,#ffb1ae)}.gh-help{width:min(560px,calc(100vw - 24px));height:auto}.gh-help h3{margin:16px 0 6px}.gh-help p{font-size:15px}.gh-controller{position:fixed;z-index:950;box-sizing:border-box;width:min(300px,calc(100vw - 16px));background:var(--ui-chrome,#152a34);color:var(--ui-text,#eee);border:1px solid var(--ui-border,#496575);border-radius:12px;box-shadow:0 8px 28px #0008;font:13px/1.4 system-ui;overflow:hidden}.gh-handle{display:flex;align-items:center;gap:6px;padding:4px 8px;cursor:grab;touch-action:none;background:var(--ui-raised,#243b46)}.gh-handle strong{flex:1;font-size:13px}.gh-handle button{padding:4px;background:transparent}.gh-controller-body{padding:12px}.gh-controller p{margin:8px 0;color:var(--ui-muted,#b5c4ce);overflow-wrap:anywhere}.gh-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.gh-controller progress{width:100%;margin:0 0 8px;accent-color:var(--ui-accent,#ace)}.gh-meters{display:flex;gap:8px;margin:12px 0}.gh-meters span{flex:1;font-size:11px}.gh-meters progress{display:block;height:5px;margin:5px 0}.gh-controller button{font-size:12px}#gh-available-skills{display:flex;gap:6px;flex-wrap:wrap;max-height:180px;overflow:auto}#gh-available-skills button{font-size:12px}#character-gameplay-helpers,#bm-gameplay-helpers{display:block;width:100%;min-height:44px;text-align:left;font:600 14px system-ui;padding:12px;color:var(--ui-accent,#ace);background:var(--ui-raised,#243b46);border:1px solid var(--ui-border,#496575);border-radius:6px}#tools-gameplay-helpers{display:block;width:100%;min-height:44px;text-align:left}@media(max-width:620px){.gh-grid{grid-template-columns:1fr}.gh-dialog h2{font-size:21px}.gh-body{padding:14px 12px}.gh-dialog header,.gh-dialog footer{padding:12px}.gh-tabs{padding:0 12px 12px;gap:4px}.gh-tabs button{padding:8px 5px;font-size:12px}.gh-dialog .gh-identity{padding:0 12px 12px}.gh-card{padding:14px}.gh-dialog footer button{padding:8px;font-size:12px}.gh-one-shot{align-items:flex-start;flex-direction:column}.gh-controller{width:min(280px,calc(100vw - 16px))}}@media(prefers-reduced-motion:reduce){.gh-dialog,.gh-controller{scroll-behavior:auto}}
/* Status readouts stay dense and legible without changing other panel typography. */
#beta-sheet-body[data-panel=status] .bp-status-sheet{display:grid;gap:14px;font:14px/1.5 system-ui;color:var(--ui-text,#eee)}
#beta-sheet-body[data-panel=status] .bp-status-section{border:1px solid var(--ui-border,#496575);border-radius:12px;padding:16px;background:var(--ui-chrome,#152a34);min-width:0}
#beta-sheet-body[data-panel=status] .bp-status-section h3{margin:0 0 12px;font:700 16px/1.3 system-ui;color:var(--ui-text,#eee)}
#beta-sheet-body[data-panel=status] .bp-status-list{display:grid;gap:0}
#beta-sheet-body[data-panel=status] .bp-status-list>*+*{border-top:1px solid var(--ui-border,#496575)}
#beta-sheet-body[data-panel=status] :is(.bp-form-ability,.bp-status-line,.bp-effect-row,.bp-status-timers){padding:12px 0;margin:0;overflow-wrap:anywhere;font:14px/1.5 system-ui}
#beta-sheet-body[data-panel=status] .bp-ability-head{display:flex;gap:8px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
#beta-sheet-body[data-panel=status] .bp-ability-head strong{font-size:14px;font-weight:650}
#beta-sheet-body[data-panel=status] .bp-ability-badge{border:1px solid var(--ui-border,#496575);border-radius:20px;padding:2px 8px;font:600 11px/1.5 system-ui;white-space:nowrap;color:var(--ui-muted,#b5c4ce)}
#beta-sheet-body[data-panel=status] .bp-ability-badge.unlocked{color:var(--ui-good,#bdedbc)}
#beta-sheet-body[data-panel=status] .bp-form-ability p{margin:6px 0 0;font:14px/1.5 system-ui;color:var(--ui-muted,#b5c4ce)}
#beta-sheet-body[data-panel=status] .bp-status-timers{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
#beta-sheet-body[data-panel=status] .bp-status-timers>div{padding:10px;border-radius:8px;background:var(--ui-deep,#091323)}
#beta-sheet-body[data-panel=status] .bp-status-timers :is(span,strong){display:block;font:500 13px/1.5 system-ui}
#beta-sheet-body[data-panel=status] .bp-status-timers span{font-size:11px;color:var(--ui-muted,#b5c4ce)}
#beta-sheet-body[data-panel=status] .bp-status-timers p{font:14px/1.5 system-ui;margin:0}
#beta-sheet-body[data-panel=status] .bp-effect-row{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
#beta-sheet-body[data-panel=status] .bp-effect-row small{font:12px/1.5 system-ui;color:var(--ui-muted,#b5c4ce);flex-shrink:0;max-width:35%}
#beta-sheet-body[data-panel=status] .bp-status-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:10px 0}
#beta-sheet-body[data-panel=status] .bp-status-facts :is(dt,dd){margin:0;font:14px/1.5 system-ui}
#beta-sheet-body[data-panel=status] .bp-status-facts dt{font-size:12px;color:var(--ui-muted,#b5c4ce)}
/* Explicitly collapsing is independent of saved motion, zoom and layout preferences. */
body.ck-map-collapsed #beta-map-panel>:not(.bm-toolbar){display:none!important}
body.ck-map-collapsed #beta-map-panel{min-height:0!important;height:auto!important}
body.ck-map-collapsed #beta-map-host{min-height:0!important;max-height:none!important;height:auto!important;flex:none!important}
body.ck-map-collapsed #beta-map-panel .bm-toolbar{flex-wrap:wrap}
body.ck-map-collapsed :is(#bm-out,#bm-in,#bm-center,#bm-expand){display:none!important}
body.beta-client.ck-map-collapsed[data-beta-view=map] #game-area,body.beta-client.ck-sidebar-preset.ck-map-collapsed[data-beta-view]:not(.ck-text-mode) #game-area{grid-template-rows:auto minmax(0,1fr)!important}
body.beta-client.ck-map-collapsed[data-beta-view=map] #beta-stage,body.beta-client.ck-sidebar-preset.ck-map-collapsed[data-beta-view]:not(.ck-text-mode) #beta-stage{min-height:0!important;height:auto!important;align-self:start}
body.beta-client.ck-map-collapsed[data-beta-view=map] #br-live:not(.ck-panel-floating),body.beta-client.ck-sidebar-preset.ck-map-collapsed[data-beta-view]:not(.ck-text-mode) #br-live:not(.ck-panel-floating){display:flex;flex-direction:column;min-height:0;height:auto!important}
body.beta-client.ck-map-collapsed[data-beta-view=map] #br-live:not(.ck-panel-floating) #br-feed,body.beta-client.ck-sidebar-preset.ck-map-collapsed[data-beta-view]:not(.ck-text-mode) #br-live:not(.ck-panel-floating) #br-feed{flex:1;min-height:0;height:auto!important;max-height:none!important}
body.ck-map-collapsed #bm-collapse{min-width:44px;min-height:36px}

/* Native/fullscreen page chrome rules must not hide dialog controls. */
body.beta-client .gh-dialog>:is(header,footer){display:flex!important;position:static;inset:auto;height:auto;min-height:0;margin:0;background-image:none;box-shadow:none;border-image:none;text-align:left;visibility:visible}
body.beta-client .gh-dialog>:is(header,footer)::after{display:none!important}

/* Paused background helpers can resume without a floating activity controller. */
.gh-dialog footer{flex-wrap:wrap}.gh-dialog .gh-footer-main{flex:1}@media(max-width:620px){.gh-dialog #gh-resume{width:100%}}

/* Focused helper setup. Existing status-panel and map-collapse styles above stay intact. */
.gh-dialog.gh-polished{width:min(880px,calc(100vw - 24px));height:min(860px,calc(100dvh - 24px));font:14px/1.5 system-ui}
.gh-dialog .gh-dialog-head,.gh-dialog .gh-dialog-foot,.gh-dialog .gh-detail-footer{position:static;display:flex;flex-shrink:0;align-items:center;gap:12px;padding:16px 20px;background:var(--ui-chrome,#152a34);border:0;border-bottom:1px solid var(--ui-border,#496575)}
.gh-dialog .gh-dialog-head>div{flex:1;min-width:0}.gh-dialog .gh-dialog-head h2{font-size:23px;overflow-wrap:anywhere}.gh-dialog #gh-back{padding:8px 10px;white-space:nowrap;font-size:12px}.gh-dialog .gh-dialog-foot{border-bottom:0;border-top:1px solid var(--ui-border,#496575);justify-content:space-between;padding:10px 20px}.gh-dialog-foot>span{max-width:65%;color:var(--ui-muted,#b5c4ce);font-size:11px;line-height:1.45}.gh-dialog-foot button{font-size:12px}
.gh-polished .gh-identity{padding:8px 20px;margin:0;font-size:11px;border-bottom:1px solid var(--ui-border,#496575)}.gh-polished .gh-body{padding:20px;scrollbar-gutter:stable}.gh-dialog :is(button,input,select,textarea,summary):focus-visible,.gh-controller button:focus-visible{outline:3px solid var(--ui-accent,#ace);outline-offset:2px}
.gh-dialog .gh-live{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:var(--ui-deep,#091323);border-bottom:1px solid var(--ui-border,#496575);flex-shrink:0}.gh-live>div:first-child{display:grid;gap:3px;min-width:0}.gh-live-title{font-size:13px}.gh-live-note{font-size:11px;color:var(--ui-muted,#b5c4ce);overflow-wrap:anywhere}.gh-live-actions{display:flex;gap:6px;flex-shrink:0}.gh-live-actions button{font-size:11px;padding:7px 10px}
.gh-overview-tools{padding:12px 20px 0;flex-shrink:0;border-bottom:1px solid var(--ui-border,#496575)}.gh-overview-tools .gh-tabs{padding:8px 0;border:0;margin:0}.gh-overview-tools .gh-tabs button{font-size:12px;min-height:40px;padding:8px}.gh-overview-tools .gh-tabs button[aria-pressed=true]{background:var(--ui-raised,#243b46);border-color:var(--ui-accent,#ace);color:var(--ui-accent,#ace)}
.gh-polished .gh-overview-intro h3{font-size:18px;margin:0 0 5px}.gh-polished .gh-overview-intro p{font-size:13px;color:var(--ui-muted,#b5c4ce);margin-bottom:20px}.gh-polished .gh-category>h3{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--ui-muted,#b5c4ce);margin:24px 0 10px}.gh-polished .gh-category>.gh-muted{font-size:12px;margin:0 0 12px;color:var(--ui-muted,#b5c4ce)}
.gh-polished .gh-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gh-dialog button.gh-helper-tile{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:16px;border-radius:13px;background:var(--ui-deep,#091323);min-width:0;white-space:normal;box-shadow:none;transition:border-color .12s ease}.gh-helper-tile:hover{border-color:var(--ui-accent,#ace)}.gh-helper-tile[data-active=true]{border-color:var(--ui-good,#bdedbc)}.gh-tile-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.gh-helper-tile .gh-eyebrow{font-size:9px;letter-spacing:.08em}.gh-helper-tile .gh-state{font-size:10px;font-weight:500;border:1px solid var(--ui-border,#496575);border-radius:20px;padding:2px 7px;max-width:65%;overflow-wrap:anywhere}.gh-helper-tile[data-active=true] .gh-state{color:var(--ui-good,#bdedbc);border-color:var(--ui-good,#bdedbc)}.gh-helper-tile>strong{font-size:16px;font-weight:650}.gh-dialog .gh-helper-tile>p{font-size:12px;font-weight:400;color:var(--ui-muted,#b5c4ce);margin:6px 0 14px;line-height:1.5}.gh-tile-summary{font-size:11px;font-weight:400;color:var(--ui-muted,#b5c4ce);margin-top:auto;overflow-wrap:anywhere}.gh-tile-link{font-size:12px;font-weight:600;color:var(--ui-accent,#ace);margin-top:12px}
.gh-detail-hero{margin-bottom:16px}.gh-dialog .gh-detail-description{font-size:17px;line-height:1.45;margin:6px 0 12px}.gh-flow{display:inline-block;padding:7px 10px;border-radius:8px;background:var(--ui-deep,#091323);font-size:12px;color:var(--ui-accent,#ace)}.gh-helper-status{display:grid;gap:4px;padding:13px 15px;margin-bottom:20px;border:1px solid var(--ui-border,#496575);border-radius:12px;background:var(--ui-deep,#091323)}.gh-helper-status strong{font-size:13px;text-transform:capitalize}.gh-helper-status span{font-size:12px;color:var(--ui-muted,#b5c4ce)}.gh-helper-status[data-active=true]{border-color:var(--ui-good,#bdedbc)}.gh-helper-status[data-active=true] strong{color:var(--ui-good,#bdedbc)}
.gh-polished .gh-fields{gap:18px}.gh-polished .gh-field{font-size:14px;font-weight:600}.gh-polished .gh-field small{font-size:12px;font-weight:400;color:var(--ui-muted,#b5c4ce);line-height:1.5}.gh-polished .gh-field input,.gh-polished .gh-field select{padding:11px 12px}.gh-polished .gh-route-preview{font-size:12px;color:var(--ui-muted,#b5c4ce);padding:10px 12px;margin:-8px 0 0;border-left:2px solid var(--ui-border,#496575);overflow-wrap:anywhere}.gh-picker-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.gh-picker-head h3{font-size:14px}.gh-picker-head button{font-size:12px}.gh-choice-list{display:grid!important;gap:5px!important;max-height:300px!important;overflow:auto!important;scrollbar-gutter:stable}.gh-choice{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:46px;padding:9px 11px;border:1px solid var(--ui-border,#496575);border-radius:8px;font-size:13px;cursor:pointer}.gh-choice>span{text-transform:capitalize;overflow-wrap:anywhere}.gh-choice>small{font-size:10px;color:var(--ui-muted,#b5c4ce);max-width:100px;text-align:right}.gh-choice:has(input:checked){border-color:var(--ui-accent,#ace);background:var(--ui-raised,#243b46)}.gh-choice:has(input:disabled){cursor:default}.gh-polished .gh-empty{color:var(--ui-muted,#b5c4ce);font-size:13px;padding:16px;border:1px dashed var(--ui-border,#496575);border-radius:10px}.gh-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gh-facts>div{padding:12px;background:var(--ui-deep,#091323);border-radius:8px;border:1px solid var(--ui-border,#496575)}.gh-facts small,.gh-facts strong{display:block}.gh-facts small{font-size:11px;color:var(--ui-muted,#b5c4ce)}.gh-facts strong{font-size:18px;margin-top:4px}#gh-daily-facts{display:block}#gh-daily-facts strong{font-size:14px}#gh-daily-facts p{font-size:12px;color:var(--ui-muted,#b5c4ce)}
.gh-requirements{margin-top:22px;padding:14px 16px;border-radius:10px;border:1px solid var(--ui-border,#496575);background:var(--ui-deep,#091323)}.gh-requirements>strong{font-size:12px}.gh-dialog .gh-requirements p{font-size:12px;color:var(--ui-muted,#b5c4ce);margin:6px 0 0}.gh-full-help,.gh-advanced{border-top:1px solid var(--ui-border,#496575);margin-top:16px}.gh-dialog .gh-full-help p,.gh-dialog .gh-advanced p{font-size:13px;color:var(--ui-muted,#b5c4ce)}.gh-full-help h4{font-size:13px;margin:16px 0 5px}.gh-polished .gh-error{margin:16px 0 0;font-size:13px}
.gh-dialog .gh-detail-footer{display:block;border-bottom:0;border-top:1px solid var(--ui-border,#496575)}.gh-detail-actions{display:flex;justify-content:flex-end;gap:8px}.gh-detail-actions button{min-width:130px}.gh-dialog .gh-action-reason{font-size:12px;color:var(--ui-muted,#b5c4ce);margin:0 0 10px}.gh-action-reason:empty{display:none}.gh-detail-actions .gh-primary{border-color:var(--ui-accent,#ace);color:var(--ui-accent,#ace)}.gh-detail-actions .gh-stop{border-color:var(--ui-danger,#ffb1ae);color:var(--ui-danger,#ffb1ae)}
.gh-confirm{padding:16px;margin:0 0 18px;border:1px solid var(--ui-warning,#ffd060);border-radius:12px;background:var(--ui-deep,#091323)}.gh-confirm>strong{font-size:15px}.gh-dialog .gh-confirm>p{margin:7px 0 13px;font-size:13px}.gh-confirm-actions{display:flex;gap:8px;flex-wrap:wrap}.gh-confirm-actions button{font-size:12px}
@media(max-width:620px){.gh-dialog.gh-polished{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:14px}.gh-dialog .gh-dialog-head{padding:12px;gap:8px}.gh-dialog .gh-dialog-head h2{font-size:19px}.gh-dialog .gh-dialog-head button{font-size:12px;padding:8px}.gh-polished .gh-identity{padding:7px 12px}.gh-polished .gh-body{padding:16px 12px}.gh-overview-tools{padding:10px 12px 0}.gh-polished .gh-grid{grid-template-columns:1fr;gap:10px}.gh-dialog button.gh-helper-tile{padding:14px}.gh-helper-tile>strong{font-size:16px}.gh-tile-head{margin-bottom:9px}.gh-dialog .gh-live{padding:10px 12px;align-items:stretch;flex-direction:column;gap:8px}.gh-live-actions{display:grid;grid-template-columns:1fr 1fr}.gh-live-actions button{padding:7px;font-size:11px;min-height:40px}.gh-dialog .gh-dialog-foot{padding:8px 12px;gap:8px}.gh-dialog-foot>span{font-size:10px;max-width:64%}.gh-dialog-foot button{font-size:11px;padding:7px;min-height:40px}.gh-dialog .gh-detail-footer{padding:12px}.gh-detail-actions button{flex:1;min-width:0;font-size:13px}.gh-polished .gh-detail-description{font-size:16px}.gh-picker-head button{font-size:11px}.gh-choice{gap:8px;padding:9px;font-size:12px}.gh-choice>small{font-size:9px;max-width:75px}}
@media(prefers-reduced-motion:reduce){.gh-dialog button.gh-helper-tile{transition:none}}
@media(max-width:380px){.gh-overview-tools .gh-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.gh-overview-tools .gh-tabs button{white-space:normal;overflow:visible;text-overflow:clip;min-width:0;padding:8px;font-size:12px}}

/* Overview filters remain readable and tappable on narrow phones. */
.gh-overview-tools .gh-tabs{flex-wrap:wrap}.gh-overview-tools .gh-tabs button{flex:1 1 auto}

/* Shared315: the sheet has one scrolling content area, not a slot between fixed panels. */
#ck-gameplay-helpers{height:min(860px,calc(var(--gh-view-height,100dvh) - 16px));max-height:calc(var(--gh-view-height,100dvh) - 16px);top:var(--gh-view-top,0px);bottom:auto;margin:8px auto;}
#ck-gameplay-helpers .gh-dialog-head{padding:12px 18px;gap:10px;}
#ck-gameplay-helpers .gh-dialog-head h2{font-size:21px;margin:0;}
#ck-gameplay-helpers .gh-identity{border:0;padding:3px 0 0;font-size:12px;line-height:1.4;}
#ck-gameplay-helpers .gh-body{padding:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;}
#ck-gameplay-helpers #gh-view{padding:0 18px 18px;}
#ck-gameplay-helpers .gh-overview-intro{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
#ck-gameplay-helpers .gh-live{padding:12px 18px;gap:10px;}
#ck-gameplay-helpers .gh-overview-tools{padding:12px 18px;border:0;}
#ck-gameplay-helpers .gh-tabs{padding-bottom:0;}
#ck-gameplay-helpers .gh-tabs button{min-height:44px;}
#gh-category-select{display:none;}
#ck-gameplay-helpers .gh-preferences{margin:0 18px 8px;border:1px solid var(--ui-border,#496575);border-radius:10px;padding:0 12px;}
#ck-gameplay-helpers .gh-preferences>summary{font-size:13px;min-height:44px;}
#ck-gameplay-helpers .gh-preferences .gh-muted{font-size:13px;color:var(--ui-muted,#b5c4ce);line-height:1.5;}
#ck-gameplay-helpers .gh-preferences .gh-choice{margin-top:8px;grid-template-columns:22px minmax(0,1fr);}
#ck-gameplay-helpers .gh-preferences .gh-choice>span{text-transform:none;}
#ck-gameplay-helpers #gh-update-status{padding:8px 0;border:0;margin:0;font-size:12px;}
#ck-gameplay-helpers .gh-category>h3{margin:14px 0 8px;}
#ck-gameplay-helpers .gh-detail-hero{padding-top:16px;}
#ck-gameplay-helpers .gh-detail-footer{padding:10px 18px;}
#ck-gameplay-helpers .gh-detail-actions button{min-height:44px;}
#ck-gameplay-helpers .gh-detail-actions .gh-primary{background:var(--ui-accent,#ace);color:var(--ui-deep,#091323);}
#ck-gameplay-helpers .gh-detail-actions .gh-stop{background:var(--ui-raised,#243b46);color:var(--ui-danger,#ffb1ae);}
#ck-gameplay-helpers .gh-live-actions button{min-height:44px;font-size:12px;}
@media(max-width:620px),(max-height:500px){
 #ck-gameplay-helpers{width:calc(100vw - 8px);max-width:calc(100vw - 8px);height:calc(var(--gh-view-height,100dvh) - 8px);max-height:calc(var(--gh-view-height,100dvh) - 8px);margin:4px auto;border-radius:12px;}
 #ck-gameplay-helpers .gh-dialog-head{padding:10px 12px;gap:8px;}
 #ck-gameplay-helpers .gh-dialog-head h2{font-size:18px;line-height:1.25;}
 #ck-gameplay-helpers .gh-dialog-head button{min-height:44px;font-size:13px;}
 #ck-gameplay-helpers .gh-identity{font-size:11px;}
 #ck-gameplay-helpers #gh-view{padding:0 12px 16px;}
 #ck-gameplay-helpers .gh-overview-tools{padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;}
 #ck-gameplay-helpers .gh-overview-tools .gh-tabs{display:none;}
 #ck-gameplay-helpers #gh-category-select{display:block;}
 #ck-gameplay-helpers .gh-preferences{margin:0 12px 6px;}
 #ck-gameplay-helpers .gh-live{padding:10px 12px;flex-direction:column;align-items:stretch;gap:8px;}
 #ck-gameplay-helpers .gh-live-title{font-size:14px;}
 #ck-gameplay-helpers .gh-live-note{font-size:12px;}
 #ck-gameplay-helpers .gh-live-actions{display:grid;grid-template-columns:1fr 1fr;}
 #ck-gameplay-helpers .gh-helper-tile{padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;align-items:center;border-radius:10px;}
 #ck-gameplay-helpers .gh-tile-head{grid-column:2;grid-row:1;margin:0;}
 #ck-gameplay-helpers .gh-tile-head .gh-eyebrow{display:none;}
 #ck-gameplay-helpers .gh-state{max-width:none;font-size:11px;}
 #ck-gameplay-helpers .gh-helper-tile>strong{grid-column:1;grid-row:1;font-size:16px;}
 #ck-gameplay-helpers .gh-helper-tile>p{grid-column:1/-1;font-size:13px;margin:0;}
 #ck-gameplay-helpers .gh-tile-summary{grid-column:1/-1;font-size:12px;}
 #ck-gameplay-helpers .gh-tile-link{display:none;}
 #ck-gameplay-helpers .gh-detail-footer{padding:8px 12px;}
 #ck-gameplay-helpers .gh-detail-actions button{font-size:13px;min-width:0;}
 #ck-gameplay-helpers .gh-choice-list{max-height:none!important;overflow:visible!important;}
}

/* Practice remains in the single mobile scroll area. */
#ck-gameplay-helpers .gh-choice>span>small{display:block;text-transform:none;font-weight:400;line-height:1.4;margin-top:4px;color:var(--ui-muted,#b5c4ce);}
#ck-gameplay-helpers .gh-practice-presets{display:flex;flex-wrap:wrap;gap:8px;}
#ck-gameplay-helpers .gh-practice-presets h3,#ck-gameplay-helpers .gh-practice-presets p{flex-basis:100%;margin:4px 0;}
#ck-gameplay-helpers .gh-practice-presets button{min-height:44px;}
#ck-gameplay-helpers #gh-available-skills{max-height:none;overflow:visible;}
