#gmDashboardPage{width:96%;max-width:2400px;margin:20px auto;padding:0;min-width:0}
.gm-controls{display:grid;grid-template-columns:minmax(160px,240px) minmax(240px,clamp(240px,calc(50vw - 200px),760px)) 205px 175px;gap:20px;align-items:start;margin-bottom:14px}
.gm-controls [hidden]{display:none!important}.gm-controls label,.gm-control-label{display:grid;gap:5px;min-width:0}.gm-control-label{font-weight:bold;font-size:12px;text-transform:uppercase}
#gmDashboardGroupText{display:grid;gap:5px}#gmDashboardContext{display:flex;align-items:center;min-height:42px;overflow-wrap:anywhere}
.gm-controls input,.gm-controls select{width:100%;min-width:0}.gm-controls input[type="search"],.gm-controls .dcc-select-button{box-sizing:border-box;height:42px!important;min-height:42px!important;padding:0 12px!important}
.gm-controls #gmDashboardCollapse{box-sizing:border-box;height:42px;min-height:42px;padding:0 12px}
.gm-controls .gm-toggle{display:grid;gap:5px}.gm-controls .gm-toggle .dcc-toggle{align-items:center}
@media(max-width:1199px){.gm-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.gm-search-control{max-width:540px}}
@media(max-width:600px){.gm-controls{grid-template-columns:minmax(0,1fr);gap:14px}.gm-search-control{max-width:none}}
.sheet-floor-collapse{order:1;margin-left:auto;align-self:center;text-align:right;white-space:nowrap;font-size:16px;color:var(--de-text)}.sheet-floor-collapse[hidden]{display:none}
.gm-section{margin:18px 0;border:1px solid var(--de-structure);background:var(--de-panel)}
.gm-section>summary{padding:10px;background:var(--de-heading);color:var(--de-text);cursor:pointer;font-weight:bold}
.gm-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px}
.gm-card{position:relative;container-type:inline-size;border:1px solid var(--de-structure);background:var(--de-shell);padding:10px 10px 8px 30px;min-width:0;overflow-wrap:anywhere}
.gm-card.inactive{opacity:.7;border-style:dashed}
.gm-card.dragging{opacity:.5;outline:2px dashed var(--de-accent)}
.gm-card-header{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:4px 8px;align-items:baseline;margin-bottom:10px}
.gm-identity,.gm-identity>div{display:contents}.gm-identity .gm-portrait{grid-column:1;grid-row:1/span 3;align-self:center}.gm-character-name{grid-column:2;grid-row:1;min-height:0!important;line-height:1.2}.gm-level{grid-column:2;grid-row:2}.gm-identity .muted{grid-column:2;grid-row:3}.gm-identity .muted,.gm-level{font-size:13px}.gm-level{margin:0;color:var(--de-muted)}
.gm-portrait{width:44px;height:54px;flex:0 0 44px;background:var(--de-bg);border:1px solid var(--de-structure);padding:0!important;overflow:hidden;cursor:pointer}
.gm-portrait img,.gm-portrait svg{width:100%;height:100%;object-fit:cover;object-position:50% 0%}
.gm-character-name{display:block;background:transparent!important;padding:0!important;border:0!important;color:var(--de-text)!important;font:inherit;font-size:17px;font-weight:bold;text-align:left;overflow-wrap:anywhere}
.gm-character-name:hover{text-decoration:underline}
.gm-combat-summary{grid-column:3;grid-row:1;display:grid;grid-template-columns:repeat(4,auto);gap:7px;color:var(--de-text);font-size:12px}.gm-combat-summary span{white-space:nowrap}
.gm-card .gm-vitals{display:grid;gap:6px}
.gm-vitals .gm-resource-row{display:grid;grid-template-columns:4.3em 7.5em minmax(45px,1fr);gap:6px;align-items:center;font-size:12px}
.gm-resource-readout{white-space:nowrap}
.gm-resource-bar{position:relative;display:grid;align-items:center;box-sizing:border-box;height:30px;border:1px solid var(--de-structure);background:var(--de-input);overflow:hidden}
.gm-resource-fill{position:absolute;inset:0 auto 0 0;background:var(--de-health)}.gm-resource-bar.mana .gm-resource-fill{background:var(--de-mana)}.gm-resource-percent{position:relative;justify-self:start;margin-left:12px;padding:0;border:0;border-radius:0;background:transparent;color:#fff;box-shadow:none;text-shadow:none;line-height:1.2}
.gm-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;text-align:center;font-size:12px;margin-top:10px}
.gm-stat{min-width:0;border:1px solid var(--de-structure);padding:4px 2px;background:var(--de-panel)}.gm-stat>b{color:var(--de-accent)}
.gm-stat-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;margin-top:4px}.gm-stat-values span{min-width:0}.gm-stat small{display:block;color:var(--de-muted);font-size:9px;margin-bottom:3px}
#gmDashboardMessage{color:var(--de-text);margin:10px 0;font-size:13px}#gmDashboardMessage:empty{display:none}
.gm-empty{padding:18px;color:var(--de-muted)}
.gm-drag-handle{position:absolute;inset-block:0;left:0;width:25px;height:48px;margin-block:auto;padding:0!important;border:0!important;background:transparent!important;color:var(--de-accent)!important;cursor:grab;font-size:22px}
.gm-character-name:focus-visible,.gm-drag-handle:focus-visible,.gm-section>summary:focus-visible{outline:2px solid var(--de-accent);outline-offset:2px}
@container(max-width:350px){.gm-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.gm-stat small{font-size:10px}.gm-combat-summary{grid-template-columns:repeat(4,auto);justify-content:space-between;gap:4px}}
@container(max-width:290px){.gm-vitals .gm-resource-row{grid-template-columns:4em minmax(0,1fr)}.gm-resource-bar{grid-column:1/-1}.gm-combat-summary{grid-template-columns:repeat(2,auto);justify-content:start;gap:5px 12px}}
@media(max-width:700px){#gmDashboardPage{width:calc(100% - 24px)}.gm-card-grid{padding:8px;gap:10px}}

@container(max-width:380px){.gm-card-header{grid-template-columns:44px minmax(0,1fr)}.gm-combat-summary{grid-column:1/-1;grid-row:4;justify-content:space-between}}
@media(max-width:1100px){.gm-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.gm-card-grid{grid-template-columns:minmax(0,1fr)}}

#characterManagePage>.back-link{margin-bottom:18px}
#manageCharacterName{box-sizing:border-box;height:42px}
#characterManageForm .action-row{align-items:center;flex-wrap:wrap}
#characterManageForm .action-row button{box-sizing:border-box;height:42px;min-height:42px;padding:0 14px}
#gmDashboardCollapseField{min-width:0}#gmDashboardCollapse{width:7ch;align-self:start}
.archive-filter{display:flex;gap:8px;align-items:center;margin-bottom:12px}.archive-filter input{width:auto}
@media(max-width:600px){.sheet-floor-collapse{font-size:12px;flex-basis:100%;margin-left:auto;text-align:right}}

/* Navigation follows the shared sheet frame width outside its border. */
.sheet-dashboard-navigation{width:calc(100% - 24px);max-width:var(--sheet-frame-max);margin:18px auto 10px}.sheet-dashboard-navigation:has(:is(button,a)[style*="display: none"]){display:none}.sheet-dashboard-navigation .back-link{margin:0}#sheetPage .sheet-dashboard-navigation+.shell{margin-top:0}
@media(min-width:701px){.sheet-dashboard-navigation{width:96%}}
/* The mobile group list is in the top layer, outside all dashboard containers. */
.gm-group-picker{box-sizing:border-box;position:fixed;inset:12px;margin:0;width:calc(100% - 24px);max-width:none;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:16px;border:1px solid var(--de-structure);background:var(--de-panel);color:var(--de-text)}
.gm-group-picker[open]{display:flex;flex-direction:column;gap:14px}.gm-group-picker::backdrop{background:rgba(0,0,0,.65)}.gm-group-picker header{display:flex;justify-content:space-between;align-items:center;gap:12px}.gm-group-picker h2{margin:0;font-size:20px}.gm-group-picker header button{min-height:44px!important}.gm-group-picker input{box-sizing:border-box;width:100%;min-height:44px}.gm-group-choices{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px}.gm-group-choice{flex-shrink:0;box-sizing:border-box;width:100%;min-height:52px!important;text-align:left;padding:12px!important;white-space:normal;overflow-wrap:anywhere;background:var(--de-input)!important;color:var(--de-text)!important;border:1px solid var(--de-structure)!important}.gm-group-choice[aria-pressed="true"]{background:var(--de-selected)!important;color:var(--de-selected-text)!important;font-weight:bold}.gm-group-picker button:focus-visible{outline:2px solid var(--de-accent);outline-offset:2px}
/* Shared grid gutter; the existing breakpoint continues to stack fields. */
#characterManageForm{column-gap:clamp(28px,4vw,64px)}
/* GM dashboard geometry is independent of protected character-sheet tables. */
#gmDashboardPage .gm-controls{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
#gmDashboardPage .gm-controls h1{margin:0;flex:0 0 auto;font-size:24px}
#gmDashboardPage .gm-search-control{width:220px;max-width:100%}
#gmDashboardCollapseField{width:245px;max-width:100%}
#gmDashboardPage #gmDashboardCollapse{width:100%;align-self:center}
#gmDashboardPage .gm-toggle{display:flex;align-items:center}
#gmDashboardPage .gm-toggle span{font-size:12px;white-space:nowrap}
#gmDashboardPage .gm-group-control{margin-left:auto;min-width:140px;max-width:240px}
#gmDashboardPage .gm-tabs{margin:18px 0 8px}
.gm-combat-info{grid-column:3;grid-row:1/span 3;min-width:0;max-width:250px;font-size:12px;text-align:left}
.gm-combat-info .gm-combat-summary{display:flex;flex-wrap:wrap;margin-bottom:5px}
.gm-race,.gm-class{overflow-wrap:anywhere;margin-top:3px}
.gm-matrix[hidden]{display:none}
.gm-matrix{min-width:0;max-width:100%}
.gm-matrix-scroll{overflow:auto;max-height:70vh;max-width:100%;isolation:isolate;border:1px solid var(--de-structure);background:var(--de-panel)}
.gm-matrix-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;background:var(--de-panel);color:var(--de-text);table-layout:fixed}
.gm-matrix-table th,.gm-matrix-table td{box-sizing:border-box;border:0;border-right:1px solid var(--de-structure);border-bottom:1px solid var(--de-structure);padding:8px;background:var(--de-panel);color:var(--de-text);text-align:center;width:160px;min-width:160px;max-width:160px;vertical-align:top;position:relative}
.gm-matrix-table thead th{position:sticky;top:0;z-index:3;background:var(--de-heading)!important}
.gm-matrix-table tr>th:first-child{position:sticky;left:0;z-index:2;text-align:left;min-width:160px;max-width:220px;overflow-wrap:anywhere;background:var(--de-heading)!important}
.gm-matrix-table thead th:first-child{z-index:4}
.gm-matrix-table small{display:block;font-size:11px;margin-top:4px}
.gm-matrix-table th button{width:100%;min-height:0;padding:4px;border:0;background:transparent!important;color:var(--de-text)!important;overflow-wrap:anywhere}
.gm-matrix-used{display:flex;justify-content:center;align-items:center;gap:5px;margin:6px 0;font-size:12px}
.gm-matrix-used input{width:18px!important;height:18px!important}

.gm-matrix-table .gm-npc-divider{border-left:var(--dcc-party-divider-width) solid var(--dcc-party-divider-color)!important}
.gm-matrix-table .gm-search-match{box-shadow:inset 0 0 0 2px var(--de-accent)}
.gm-special-resource>th{font-style:italic}


input[autocomplete="one-time-code"]::placeholder{color:#767676!important;opacity:1}
 :root:not([data-theme="light"]) input[autocomplete="one-time-code"]::placeholder{color:#aaa!important}


@container(max-width:380px){.gm-combat-info{grid-column:1/-1;grid-row:4;max-width:none}}
@media(max-width:600px){#gmDashboardPage .gm-controls{gap:10px}#gmDashboardPage .gm-controls h1{flex-basis:100%}#gmDashboardPage .gm-group-control{margin-left:0;max-width:none;flex:1 1 160px}.gm-editor-rows fieldset{grid-template-columns:minmax(0,1fr)}}

/* Refined GM-only geometry; protected sheet tables retain their existing rules. */
#gmDashboardPage .gm-controls h1{margin-right:auto}
#gmDashboardPage .gm-search-control{width:260px}
#gmDashboardPage .gm-group-control{margin-left:0}
#gmDashboardCollapseField{width:auto}#gmDashboardPage #gmDashboardCollapse{width:22ch}
.gm-matrix-heading{margin:0;padding:8px 10px;background:var(--de-heading);color:var(--de-text);font-size:16px;font-weight:bold}
.gm-matrix-table th,.gm-matrix-table td{padding:3px 6px;vertical-align:middle}
.gm-matrix-used{display:inline-flex;margin:0;gap:0}
.gm-matrix-used input{width:18px!important;height:18px!important;margin:0}
.gm-matrix-table td[tabindex]:focus-visible{outline:2px solid var(--de-accent);outline-offset:-2px}
#twoFactorLoginForm .factor-controls{flex-direction:column;justify-content:center;align-items:center}
#twoFactorLoginForm .factor-controls .account-actions{justify-content:center;flex-wrap:wrap}
@media(max-width:600px){#gmDashboardPage .gm-search-control{flex:1 1 240px;width:auto}#gmDashboardPage .gm-controls h1{margin-right:0}#gmDashboardPage #gmDashboardCollapse{max-width:100%}}





/* Matrix labels follow the reference sheet heading; only the section banner is green. */
#gmMatrixPanel .gm-matrix-table thead th,#gmMatrixPanel .gm-matrix-table tbody th{background:var(--de-panel)!important;font-weight:bold}
#gmMatrixPanel .gm-matrix-table td{background:var(--de-input)!important}
.gm-rank-readout{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:26px;text-align:left;font-size:13px}
.gm-rank-readout>span{min-width:0;white-space:nowrap}
.gm-matrix-used{flex:none;display:flex;align-items:center;gap:5px;margin:0;font-size:12px}
.gm-matrix-used input:disabled{pointer-events:none;opacity:1}
.gm-matrix-used{pointer-events:none}
.gm-quantity-readout{display:block;min-height:26px;line-height:26px;overflow-wrap:anywhere}
.gm-matrix-details{box-sizing:border-box;position:fixed;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:0;padding:12px;border:1px solid var(--de-structure);background:var(--de-panel);color:var(--de-text);z-index:1000;font:inherit;box-shadow:0 5px 22px #0008;overflow-wrap:anywhere}
.gm-matrix-details dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 12px;margin:0 0 8px}.gm-matrix-details dt{font-weight:bold}.gm-matrix-details dd{margin:0;white-space:pre-wrap}.gm-inventory-notes{white-space:pre-wrap}


.gm-matrix-table th button{font:inherit;font-weight:bold}
.gm-matrix-table th button{border:0!important;box-shadow:none!important}.gm-special-resource>th{font-style:normal}.gm-rank-readout{overflow-x:auto}.gm-rank-readout>span{flex:none}.gm-matrix-details:focus-visible{outline:2px solid var(--de-accent);outline-offset:2px}

/* Content-measured GM overviews; no selectors target the character sheet. */
#gmDashboardPage:has(#gmMatrixPanel:not([hidden])){max-width:2400px}
#gmDashboardPage .gm-controls{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:12px;position:relative}
#gmDashboardPage .gm-controls h1{flex:0 1 auto;flex-basis:auto;margin:0;min-width:0;font-size:clamp(20px,calc(18px + .4vw),24px)!important;line-height:1.25}
#gmControlsToggle{flex:none;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;min-height:44px;padding:0!important;background:var(--de-panel)!important;color:var(--de-text)!important;border:1px solid var(--de-structure)!important}
#gmControlsToggle:focus-visible{outline:2px solid var(--de-accent);outline-offset:2px}
#gmControlsMenu{position:fixed;z-index:900;box-sizing:border-box;width:min(360px,calc(100vw - 24px));padding:14px;display:grid;gap:14px;overflow-y:auto;overscroll-behavior:contain;background:var(--de-panel);color:var(--de-text);border:1px solid var(--de-structure);box-shadow:0 5px 22px #0008}
#gmControlsMenu[hidden]{display:none}
#gmDashboardPage #gmControlsMenu .gm-search-control,#gmDashboardPage #gmControlsMenu .gm-group-control,#gmControlsMenu #gmDashboardCollapseField{width:100%;max-width:none;min-width:0;margin:0;flex:none}
#gmDashboardPage #gmControlsMenu input[type=search],#gmDashboardPage #gmControlsMenu #gmDashboardCollapse,#gmControlsMenu .dcc-select-button{width:100%;height:44px!important;min-height:44px!important;box-sizing:border-box}
#gmControlsMenu .gm-toggle{min-height:44px}
#gmMatrixPanel .gm-matrix-table{min-width:0;width:max-content;font-size:13px;line-height:1.3;table-layout:fixed}
#gmMatrixPanel .gm-matrix-table th,#gmMatrixPanel .gm-matrix-table td{width:var(--gm-column-width,180px);min-width:0;max-width:none;padding:4px;vertical-align:middle}
#gmMatrixPanel .gm-matrix-table th:not(:first-child),#gmMatrixPanel .gm-matrix-table td{width:var(--gm-column-width,180px);min-width:0;max-width:none}
#gmMatrixPanel .gm-matrix-table tr>th:first-child{width:var(--gm-name-width,auto);min-width:0;max-width:none;padding:4px 6px;overflow-wrap:anywhere}
#gmMatrixPanel .gm-matrix-table th button{font:inherit;font-weight:normal;text-transform:none;display:block;position:relative;width:100%;padding:0!important;white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.3;min-height:24px}
#gmMatrixPanel .gm-matrix-table th button>span{display:block;writing-mode:horizontal-tb;transform:none;white-space:normal;overflow-wrap:normal;word-break:normal}
#gmMatrixPanel .gm-rotated-names th button{height:calc(var(--gm-name-track-length) + 8px)}
#gmMatrixPanel .gm-rotated-names th button>span{position:absolute;left:50%;top:50%;width:var(--gm-name-track-length);max-width:none;transform:translate(-50%,-50%) rotate(-90deg);text-align:left}
#gmMatrixPanel .gm-rank-readout{display:flex;justify-content:flex-start;align-items:center;gap:10px;min-height:26px;font-size:13px;line-height:1.3;overflow:visible}
#gmMatrixPanel .gm-rank-readout>span{white-space:normal;overflow-wrap:anywhere;flex:none;max-width:100%}
#gmMatrixPanel .gm-matrix-used{font:inherit;font-weight:normal;text-transform:none;display:flex;align-items:center;gap:5px;justify-content:flex-start;margin:0;white-space:nowrap}
#gmMatrixPanel .gm-matrix-used input{flex:none;width:18px!important;height:18px!important;margin:0}
#gmMatrixPanel .gm-stack-values .gm-rank-readout{flex-direction:column;align-items:flex-start;gap:4px}
.gm-matrix-details{width:max-content;min-width:0;max-width:min(420px,calc(100vw - 24px))}
.gm-matrix-details dl{grid-template-columns:max-content minmax(0,1fr)}
.gm-matrix-details dd{min-width:0}

/* Final GM header refinements; character-sheet tables remain untouched. */
#gmMatrixPanel .gm-rank-readout{justify-content:space-between}
#gmMatrixPanel .gm-stack-values .gm-rank-readout{justify-content:flex-start}
#gmControlsToggle{border:0!important;background:transparent!important;box-shadow:none!important;justify-content:flex-end}
#gmControlsToggle:hover{color:var(--de-accent)!important}
#gmDashboardPage .gm-tab-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 16px;margin:8px 0}
#gmDashboardPage .gm-tab-row .gm-tabs{margin:0}
#gmDashboardPage .gm-search-indicator{margin:0;min-width:0;text-align:right;font:inherit;font-size:13px;font-weight:normal;line-height:1.3;overflow-wrap:anywhere}
#gmDashboardPage .gm-search-indicator[hidden]{display:none}
@media(max-width:700px){#gmDashboardPage .gm-tab-row{display:flex;flex-direction:column;align-items:stretch}#gmDashboardPage .gm-search-indicator{order:-1;text-align:left}}

/* One full-width divider owns spacing for every dashboard tab. */
#gmDashboardPage .gm-tab-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 16px;padding:0 0 16px;border-bottom:1px solid var(--de-structure);width:100%;box-sizing:border-box}
#gmDashboardPage .gm-tab-row .gm-tabs{border:0;padding:0;flex:1 1 auto}
#gmDashboardPage .gm-section:first-child{margin-top:0}
#gmDashboardPage #gmLootPanel>.loot-status:empty{display:none}
#gmDashboardPage .gm-row-sort{flex:0 1 260px;width:260px;max-width:100%;height:36px;min-height:36px;margin:0;box-sizing:border-box;font:inherit}
#gmDashboardPage .gm-row-sort[hidden]{display:none}
#gmDashboardPage .gm-search-indicator{flex:1 1 100%;order:2}
#gmDashboardPage .gm-search-clear{font:inherit;text-decoration:underline;cursor:pointer;background:transparent!important;border:0!important;color:var(--de-text)!important;padding:4px;min-height:30px}
@media(max-width:700px){#gmDashboardPage .gm-tab-row{flex-direction:row}#gmDashboardPage .gm-row-sort{flex:1 1 220px}#gmDashboardPage .gm-search-indicator{order:-1;text-align:left}}

#gmDashboardPage .gm-tabs button,#gmDashboardPage .gm-row-sort{box-sizing:border-box;height:40px;min-height:40px!important}
#gmDashboardPage .gm-search-indicator{margin:0 0 8px}
@media(max-width:700px){#gmDashboardPage .gm-tabs button,#gmDashboardPage .gm-row-sort{height:44px;min-height:44px!important}}

/* Decorative grip stays outside the measured name track and changes no table geometry. */
#gmMatrixPanel .gm-column-grip{position:absolute;left:0;top:50%;transform:translateY(-50%);color:var(--de-accent);pointer-events:none;font-style:normal}

#gmMatrixPanel .gm-column-name{display:block;font:inherit;font-stretch:normal;letter-spacing:normal;transform:none;padding-left:24px;box-sizing:border-box;white-space:normal}
#gmMatrixPanel [data-column]{cursor:grab}#gmMatrixPanel [data-column]:active{cursor:grabbing}

#gmMatrixPanel .gm-column-grip{pointer-events:auto;touch-action:none;cursor:grab;width:24px;min-height:24px;display:grid;align-content:center}
#gmMatrixPanel .gm-column-dragging{user-select:none}
#gmMatrixPanel .gm-column-dragging td,#gmMatrixPanel .gm-column-dragging th{will-change:transform}
@media(prefers-reduced-motion:reduce){#gmMatrixPanel .gm-column-dragging td,#gmMatrixPanel .gm-column-dragging th{transition:none!important}}

#gmDashboardPage .gm-sort-control{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0;max-width:100%}#gmDashboardPage .gm-sort-control[hidden]{display:none}#gmDashboardPage .gm-sort-control>label{font:inherit;font-weight:normal;margin:0;white-space:nowrap}#gmMatrixPanel .gm-missing-value{font-weight:normal;text-align:center}

.gm-permanent-label{display:block;color:var(--de-accent);font-size:12px;line-height:18px;margin-bottom:6px}
#gmDashboardFloor{width:100%;min-width:0;box-sizing:border-box}
.tab-drag-grip{display:inline-grid!important;grid-template-columns:repeat(2,3px);gap:3px;margin-right:9px;vertical-align:middle;touch-action:none;cursor:grab;color:var(--de-accent);flex:none}
.tab-drag-grip .row-drag-dot{display:block;width:3px;height:3px;border-radius:50%;background:var(--de-accent)}
#logoutBtn{appearance:none;border:0!important;box-shadow:none!important;background:transparent;min-height:0;margin:0;padding:10px 11px;font:inherit;font-size:14px;line-height:normal;color:inherit}
#logoutBtn:focus-visible{outline:2px solid var(--de-accent);outline-offset:2px}

@media(max-width:700px){.tabs button:has(>.tab-drag-grip){display:flex;align-items:center;text-align:left}}

/* Gold headers keep white dots on selection, hover, press and drag snapshots. */
.tabs button:is(.active,:hover,:active)>.tab-drag-grip .row-drag-dot{background:#fff3df}
.tabs button:has(>.tab-drag-grip){position:relative}
.tabs button:is(.dcc-tab-drop-before,.dcc-tab-drop-after)::after{content:"";position:absolute;top:0;bottom:0;width:2px;background:var(--de-accent);pointer-events:none;z-index:1001}
.tabs button.dcc-tab-drop-before::after{left:-5px}
.tabs button.dcc-tab-drop-after::after{right:-5px}

/* Attack link popup and collapsed label only; protected tables remain unchanged. */
.attack-link-select .dcc-select-button{height:auto!important;min-height:40px!important;font-weight:400;white-space:normal;gap:8px;padding-top:8px!important;padding-bottom:8px!important}.attack-link-value{min-width:0;white-space:normal;overflow-wrap:anywhere}.attack-link-select .dcc-select-button>span:last-child{flex:none}.attack-link-list{box-sizing:border-box;overflow-x:hidden;overflow-y:auto}.attack-link-list .dcc-select-option{white-space:normal;overflow-wrap:anywhere;font-weight:400}.attack-link-heading{padding:8px;color:var(--de-accent);font-size:12px;letter-spacing:.06em}.attack-link-separator{height:12px;pointer-events:none}.attack-link-list [aria-disabled=true]{opacity:.6;cursor:default}

/* Tab content only: preserve tab box and all sheet table geometry. */
.tabs button:has(>.tab-drag-grip){display:inline-flex;align-items:center;justify-content:flex-start}
.tabs button>.tab-drag-grip{align-self:center;line-height:0;translate:0 0!important;transform:none!important;vertical-align:middle}
