/* Layout 01: no changes to board coordinates, transforms, or hit targets. */
.layout-toolbar, #tx-layout-stack { width:100%; max-width:1060px; margin:12px auto; }
.layout-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; color:#bca17d; font-size:12px; padding:0 8px; }
.layout-toolbar button, .layout-moves button { color:#dfc095; background:#302219; border:1px solid #705434; border-radius:6px; cursor:pointer; }
.layout-toolbar button { padding:7px 12px; white-space:nowrap; }
#tx-layout-stack { display:flex; flex-direction:column; gap:10px; }
.layout-section { position:relative; min-width:0; width:100%; scroll-margin-top:12px; }
.layout-heading { display:flex; align-items:center; min-height:48px; padding:0 102px 0 14px; background:#352416; border:1px solid #65492d; border-radius:8px 8px 0 0; }
.layout-toggle { width:100%; text-align:left; font-family:inherit; font-size:13px; font-weight:600; line-height:1.5; color:#e0bd86; background:transparent !important; border:0 !important; cursor:pointer; padding:12px 0; letter-spacing:.06em; }
span.layout-toggle { cursor:default; }
.layout-closed .layout-heading { border-radius:8px; }
.layout-section > [hidden] { display:none !important; }
.layout-moves { position:absolute; z-index:5; right:8px; top:5px; display:flex; gap:5px; }
.layout-moves button { width:38px; height:38px; font-size:19px; }
.layout-moves button:disabled { opacity:.28; cursor:default; }
.layout-moves button:focus-visible, .layout-toggle:focus-visible { outline:2px solid #f6cd65; outline-offset:2px; }
.layout-native > :last-child { margin:0 !important; min-height:48px; }
.layout-native > :last-child > .panel-title, .layout-native .hx-title { min-height:34px; display:flex; align-items:center; padding-right:92px; }
.tx-layout-01 .layout-section > .board-column { width:100%; order:initial; padding-top:8px; }
.tx-layout-01 .layout-section > .right-panel { width:100%; max-width:none; margin:0; order:initial; }
.layout-section > .right-panel > .panel-title, .layout-section > .under-board-row > .under-board-row-title { display:none; }
.layout-section > .under-board-row, .layout-help { padding:14px; background:#2d2017; border:1px solid #65492d; border-top:0; border-radius:0 0 8px 8px; }
.layout-section > .under-board-row { display:flex; flex-direction:column; gap:8px; }
.layout-section > .under-board-row button { padding:10px; color:#dec092; background:#251b16; border:1px solid #705434; border-radius:5px; }
.tx-layout-01 #under-board-controls { display:none; }
.tx-layout-01 #tx-info-row:empty { display:none; }
.tx-layout-01 .page-layout { gap:0; margin:0; }
.tx-layout-01 #tx-section-pro { margin:0; padding:14px; min-height:0; }
.tx-layout-01 #pro-card-trends .pip-race-strip-shell { margin:12px 0 0; }
.tx-layout-01 #pro-card-trends.tx-collapsed > .pip-race-strip-shell { display:none; }
.layout-section > .goc-dyk-card > .tx-tip-title, .layout-section > .goc-beta-card > .tx-beta-title { display:none; }
.layout-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media (max-width:600px) { .layout-toolbar { font-size:11px; } .layout-heading { padding-left:10px; } }

/* Use DOM order for keyboard, visual and stored order; disable scroll anchoring while moving panels. */
#tx-layout-stack{overflow-anchor:none}
#tx-layout-stack > .layout-section{order:0}

.layout-toolbar { flex-wrap:wrap; }
.layout-toolbar button:disabled { opacity:.45; cursor:default; }
