body[data-auth-state="pending"]>.shell,body[data-auth-state="signed-out"]>.shell{visibility:hidden!important}
body[data-auth-state="pending"] #lmc-live,body[data-auth-state="signed-out"] #lmc-live{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:10000!important;border:0!important;background:#171310;display:block!important;visibility:visible!important}
#lmc-live{width:100%;border:0;min-height:650px;display:block;background:transparent}
#lmc-live[hidden]{display:none!important}
#lmc-live-host[hidden]{display:none!important}
#lmc-live-host{margin:0;min-width:0}
#lmc-backend-status{font:12px/1.5 Lato,Arial,sans-serif;color:#c5b38f}
#lmc-backend-status[data-error=true]{color:#eeab9a}
#site-autosave-status{display:none!important}
#preview-role{display:none!important}
#turf-preview-member{pointer-events:none}
#lmc-sign-out{border:1px solid var(--line);background:var(--panel);color:var(--cream);border-radius:6px;padding:7px 10px;cursor:pointer}

body:is([data-auth-state=pending],[data-auth-state=loading],[data-auth-state=failed])>.shell{visibility:hidden!important}
body[data-auth-state=loading] #lmc-live,body[data-auth-state=failed] #lmc-live{display:none!important}
#lmc-boot-status{position:fixed;left:50%;top:42%;transform:translate(-50%,-50%);max-width:600px;background:#171310;color:#e3cba5;border:1px solid #896342;padding:20px;z-index:20000}
#lmc-boot-status[hidden]{display:none!important}
body[data-auth-state=pending] #lmc-boot-status{top:12px;transform:translateX(-50%);padding:8px;font-size:13px}
#lmc-backend-status[data-error=true]{padding:12px;border:1px solid #a65e53;background:#482624}
#ledger-sync-page{padding:20px}
/* Requested site-wide scale, including native dialogs. */
html{zoom:.75}
body:is([data-auth-state=pending],[data-auth-state=signed-out]) #lmc-live{width:133.333333vw!important;height:133.333333vh!important}
/* Fill the viewport at the requested 75% scale. */
.shell{max-width:none!important;margin:0!important;min-height:133.333333vh;min-height:133.333333dvh}
#cc.v26-home.club-home{width:100%;max-width:none!important;margin:0!important;box-sizing:border-box}
body[data-auth-state=pending] #lmc-boot-status{display:none}
@media(min-width:901px){
 .shell>aside{height:133.333333vh!important;height:133.333333dvh!important;max-height:none!important;position:sticky;top:0;overflow-y:auto!important;overflow-x:hidden!important}
 .shell>aside>.nav{max-height:none!important}
}

/* New Order is the visual reference for every native popup. */
html body dialog[data-popup-theme]{background:#1c1e19!important;color:#e3cba5!important;border:1px solid #57442f!important;border-radius:13px!important;padding:0!important;box-shadow:0 20px 70px #0009!important;font-family:Lato,Arial,sans-serif;overflow:auto;max-height:125dvh}
html body dialog[data-popup-theme]::backdrop{background:#050604bb!important;backdrop-filter:blur(3px)!important}
html body dialog[data-popup-theme] .dialog-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:18px;padding:18px 20px!important;border:0!important;border-bottom:1px solid #414139!important;margin:0!important;background:#1c1e19!important}
html body dialog[data-popup-theme] .dialog-head h2{font:500 24px/1.25 Lato,Arial,sans-serif!important;color:#e3cba5!important;margin:5px 0 0!important}
html body dialog[data-popup-theme] .eyebrow{color:#d1a16a!important;font-size:10px!important;letter-spacing:.2em;text-transform:uppercase}
html body dialog[data-popup-theme] .close-dialog{flex:none!important;width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;margin:0!important;background:#252720!important;border:1px solid #414139!important;border-radius:7px!important;color:#e3cba5!important;font-size:20px!important;line-height:1!important}
html body dialog[data-popup-theme] .lmc-popup-body{padding:18px 20px}
html body dialog[data-popup-theme] .safe-form{display:block;padding:0!important}
html body dialog[data-popup-theme] .safe-form label{display:grid;gap:6px;margin-bottom:14px}
html body dialog[data-popup-theme] label{color:#e5dfd0!important;font-size:13px!important}
html body dialog[data-popup-theme] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;background:#292832!important;color:#eee!important;border:1px solid #8c8992!important;border-radius:3px!important;padding:7px 9px!important;font:inherit!important;min-width:0;max-width:100%}
html body dialog[data-popup-theme] textarea{resize:vertical}
html body dialog[data-popup-theme] :is(input,select,textarea):focus-visible{outline:2px solid #c5a66a!important;outline-offset:2px}
html body dialog[data-popup-theme] button{background:#252720!important;color:#e3cba5!important;border:1px solid #414139!important;border-radius:8px!important;padding:9px 14px;font:600 13px/1.4 Lato,Arial,sans-serif!important;box-shadow:none!important}
html body dialog[data-popup-theme] :is(button.primary,button[type=submit],button.link-save){background:linear-gradient(110deg,#d1a16a,#a75e31)!important;color:#171310!important;border-color:#b5804e!important}
html body dialog[data-popup-theme] button:disabled{opacity:.45;cursor:not-allowed}
html body dialog[data-popup-theme] .dialog-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 20px!important;margin:0!important;border-top:1px solid #414139!important}
html body dialog[data-popup-theme] :is(details,.link-list,.selection-list){background:#252621!important;border-color:#414139!important;color:#e3cba5!important}
html body dialog[data-popup-theme] :is(summary,h4){background:#30312d!important;color:#e3cba5!important;border-color:#414139!important}
html body dialog[data-popup-theme] :is(.link-row,.selection-row){border-color:#414139!important}
html body #order-dialog[data-popup-theme] #shop-categories button{border-radius:22px!important;background:#30312d!important;color:#e5dfd0!important}
html body #order-dialog[data-popup-theme] #shop-categories button.active{background:#c5a66a!important;color:#181914!important}
@media(max-width:650px){html body dialog[data-popup-theme] .form-grid{grid-template-columns:1fr!important}html body dialog[data-popup-theme] .link-toolbar{grid-template-columns:1fr!important}}

/* Shared Delivery History presentation; keep each register's columns and status colours. */
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table{border-collapse:separate;border-spacing:0;width:100%;background:#211b16;color:#e3cba5;font-family:Lato,Arial,sans-serif;line-height:1.5}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table th{background:#30261e!important;color:#e3cba5!important;text-align:left;font:700 12px/1.4 Lato,Arial,sans-serif!important;text-transform:uppercase;letter-spacing:.06em!important;padding:12px 14px!important;border-bottom:1px solid #896342!important;vertical-align:middle}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table td{font-size:13px!important;line-height:1.5;padding:12px 14px!important;vertical-align:middle;border-bottom:1px solid #89634240!important;font-variant-numeric:tabular-nums}
html body .shell main table tbody tr:nth-child(even){background:#e3cba504}
html body .shell main table tbody tr:hover{background:#8963421c}
html body .shell main table :is(input,select,textarea){box-sizing:border-box;font:inherit;color:#e3cba5;background:#171310;border:1px solid #67513b;border-radius:5px}
html body .shell main table :is(input,select,textarea):focus-visible{outline:2px solid #c5a66a;outline-offset:2px}
html body .shell main table [contenteditable=true]:focus{outline:2px solid #c5a66a!important;outline-offset:-2px;background:#30261e!important}
html body .shell main :is(.filterbar,.reference-toolbar){background:#211b16;border-bottom:1px solid #89634266}
html body .shell main .table-wrap{scrollbar-color:#896342 #171310}
/* Readable data grid: columns grow to fit instead of splitting words and numbers. */
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table]{table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important;background:#1b1713!important;min-width:100%!important;width:100%!important;border:1px solid #58443166;border-radius:8px;color:#e3cba5!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table] :is(th,td){width:auto!important;max-width:none;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;padding:13px 18px!important;font:400 14px/1.5 Lato,Arial,sans-serif!important;border:0!important;border-bottom:1px solid #72533535!important;vertical-align:middle!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table] th{position:sticky;top:0;z-index:3;white-space:nowrap!important;min-width:100px;background:#282119!important;color:#e8d5b5!important;text-transform:none!important;letter-spacing:0!important;font-weight:700!important;border-bottom:1px solid #a17a4855!important;box-shadow:0 2px 5px #0002}
html body .shell main table[data-shared-table] tbody tr{background:#1b1713!important;transition:background .12s}
html body .shell main table[data-shared-table] tbody tr:nth-child(even){background:#211b16!important}
html body .shell main table[data-shared-table] tbody tr:hover{background:#30271c!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table] td[data-column-kind=content]{white-space:pre-line!important;min-width:300px!important;max-width:480px!important;width:420px!important;line-height:1.65!important;overflow-wrap:break-word!important;word-break:normal!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table] td[data-column-kind=person]{white-space:normal!important;min-width:145px!important;max-width:220px!important;word-break:normal!important;overflow-wrap:normal!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table] [data-column-kind=number]{text-align:right!important;min-width:110px!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table] [data-column-kind=date]{min-width:185px!important;white-space:nowrap!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table] [data-column-kind=status]{min-width:125px!important;white-space:nowrap!important}
html body .shell main table[data-shared-table] td:first-child{font-weight:700!important;color:#d9b580}
html body .shell main :is(.table-wrap,#ref-table-wrap,.radio-table-wrap,.scroll):has(table[data-shared-table]){overflow:auto!important;max-height:100dvh;overscroll-behavior:contain;border-radius:8px;scrollbar-color:#896342 #171310;scrollbar-width:thin}
html body .shell main :is(.filterbar,.reference-toolbar){display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 16px;background:#1b1713!important;border-bottom:1px solid #72533555!important}
html body .shell main .filterbar>input[type=search]{flex:1 1 240px;min-width:200px;max-width:440px;padding:10px 12px;background:#171310;border:1px solid #67513b;border-radius:6px;color:#e3cba5}
html body .shell main .filterbar :is(select,button){min-height:36px;padding:8px 12px;border:1px solid #67513b;border-radius:6px;background:#211b16;color:#e3cba5;font:inherit}
html body .shell main .filterbar .result-count{margin-left:auto;font-size:12px;color:#bca789}
html body .shell main table[data-shared-table] :is(input,select,textarea){padding:7px 9px!important;min-height:34px;font-size:13px!important}
@media(prefers-reduced-motion:reduce){html body .shell main table[data-shared-table] tbody tr{transition:none}}
/* Tables blend into their own surrounding page panel. */
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table]{background:transparent!important;border-color:#89634233!important;box-shadow:none!important}
html body .shell main table[data-shared-table] :is(thead,tbody,tfoot,tr),html body .shell main table[data-shared-table] tbody tr:nth-child(even),html body .shell main table[data-shared-table] tbody tr:hover{background:transparent!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table] th{background:var(--table-surface-paint,#252720)!important;box-shadow:none!important;border-bottom-color:#89634266!important}
html body .shell main table[data-shared-table] tbody tr:not(.lab-open-row):not(.radio-selected)>td:not([data-recruit-status]){background:transparent!important}
html body .shell main :is(.filterbar,.reference-toolbar){background:transparent!important}
html body .shell main table[data-shared-table].patch-matrix :is(th,td):first-child{background:var(--table-surface-paint,#252720)!important}
/* Treasury ledger is the common data-panel format on every module. */
html body .shell main [data-shared-data-panel]{background:#211c15!important;border:1px solid #a48242!important;border-radius:12px!important;box-shadow:none!important;overflow:hidden}
html body .shell main [data-shared-data-panel]>.card-head{background:transparent!important;border-bottom:1px solid #89634255!important;padding:16px 20px!important}
html body .shell main [data-shared-table-wrap]{border:0!important;border-radius:0!important;background:transparent!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table]{border:0!important;border-radius:0!important;background:#1b1713!important;color:#e3cba5!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table] th{background:#282218!important;border-bottom:1px solid #89634244!important;font-size:14px!important;padding:14px 20px!important}
html body .shell main :is(#orders-page,#reference-page,#accounts-page,#squad-page,#audit-page,#treasury-page,#permissions-page,section) table[data-shared-table] td{padding:14px 20px!important;border-bottom:1px solid #89634225!important;font-size:14px!important;color:#e3cba5}
html body .shell main table[data-shared-table] tbody tr{background:#1b1713!important}
html body .shell main table[data-shared-table] tbody tr:nth-child(even){background:#2a2418!important}
html body .shell main table[data-shared-table] tbody tr:hover{background:#393020!important}
html body .shell main [data-shared-data-panel] :is(.filterbar,.reference-toolbar){display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#272117!important;padding:14px 18px!important;border-bottom:1px solid #89634244!important}
html body .shell main [data-shared-data-panel] .searchbox{display:flex;flex:1 1 260px;min-width:220px;background:#151510!important;border:1px solid #89634244!important;border-radius:7px;padding:0 12px}
html body .shell main [data-shared-data-panel] .searchbox input{background:transparent!important;border:0!important;width:100%;min-height:36px;padding:8px 0;color:#e3cba5}
html body .shell main [data-shared-data-panel] :is(.filterbar,.reference-toolbar)>:is(input[type=search],input[type=text],input#ref-search,input#audit-search){flex:1 1 260px;max-width:none!important;width:auto!important;min-height:38px;background:#151510!important;border:1px solid #89634266!important;border-radius:7px!important;padding:9px 12px!important;color:#e3cba5!important}
html body .shell main [data-shared-data-panel] :is(.filterbar,.reference-toolbar) :is(button,select){background:#211b16!important;border:1px solid #89634266!important;border-radius:6px!important;color:#e3cba5!important;padding:9px 12px!important;min-height:36px;font:inherit}
html body .shell main [data-shared-data-panel] :is(.filterbar,.reference-toolbar) .result-count{color:#c4aa7a;margin-left:auto}

.ds-suite{padding:18px;min-width:0;color:#e3cba5;background:#171310}
.ds-workspaces{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.ds-workspaces button[aria-current=page]{border-color:#d6ad70;background:#3c2c1e;color:#ffdfaa}
.ds-suite-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px;border-bottom:1px solid #89634266;padding-bottom:16px}
.ds-suite-heading>div{flex:1}.ds-suite h2{margin:0 0 8px}.ds-suite h3{margin:26px 0 12px}
.ds-work-note{border-left:3px solid #896342;padding:10px 14px;background:#e3cba507;line-height:1.6;color:#cbb896}
.ds-data-panel{border:1px solid #896342;border-radius:12px;overflow:hidden;margin:16px 0}
.ds-suite .filterbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px;background:transparent}
.ds-suite .filterbar>.ds-field{flex:1;min-width:200px}.ds-suite .table-wrap{overflow:auto;max-height:720px}
.ds-field{display:grid;gap:7px;margin:0;font-size:13px;color:#d9c8aa}
.ds-field :is(input,select,textarea){box-sizing:border-box;width:100%;padding:9px 12px;border:1px solid #67513b;border-radius:6px;color:#e3cba5;background:#171815;font:inherit}
.ds-field textarea{min-height:100px;resize:vertical}.ds-field input:focus-visible{outline:2px solid #c5a66a}
.ds-suite .ds-long-cell{min-width:220px;max-width:420px;white-space:normal!important;overflow-wrap:anywhere!important}
.ds-record-dialog{width:min(850px,95vw)}.ds-record-dialog .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:22px}
.ds-record-dialog .lmc-save-result,.ds-record-dialog .ds-allocation-list,.ds-record-dialog h3{margin:16px 22px}
.ds-record-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:12px;padding:18px 22px}
.ds-allocation-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin:10px 0}
.ds-calc-controls{display:grid;grid-template-columns:1fr 120px 1fr 1fr;gap:16px;margin:20px 0}
.ds-fee-layout{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:22px 0}
.ds-fee-result{margin:20px 0}.ds-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:20px 0}
.ds-calendar-day{text-align:center;color:#d6ad70;padding:10px}.ds-calendar-cell{border:1px solid #89634277;background:#211b16;border-radius:6px;min-height:100px;padding:12px;display:flex;flex-direction:column;align-items:stretch;gap:7px}
.ds-calendar-cell button{font-size:12px;text-align:left;white-space:normal}.ds-calendar-cell strong{color:#e6bf7d}
.ds-handbook{max-width:1200px;margin:auto;line-height:1.8}.ds-handbook p{white-space:pre-line;margin:24px 0}.ds-handbook figure{margin:20px 0;padding:14px;border:1px solid #89634255}.ds-handbook img{display:block;max-width:100%;height:auto;margin:0 auto 12px}
@media(max-width:800px){.ds-calc-controls,.ds-fee-layout{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-record-dialog .form-grid{grid-template-columns:1fr}.ds-calendar{gap:3px}.ds-calendar-cell{min-height:80px;padding:5px}.ds-allocation-row{grid-template-columns:1fr}}

.ds-month-nav{display:flex;align-items:center;justify-content:center;gap:22px;margin:20px 0}
.ds-month-nav strong{font-size:20px;min-width:200px;text-align:center;color:#e3cba5}
.ds-month-nav button{min-width:44px;min-height:44px;font-size:28px;line-height:1;padding:4px 12px}

.ds-dashboard{padding:4px 0 16px}.ds-dashboard-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.ds-dashboard-intro h2{margin:5px 0 8px;font:700 28px Georgia,serif}.ds-kicker{font-size:10px;font-weight:700;letter-spacing:.22em;color:#d1a16a;margin:0}.ds-muted{color:#bca78c;font-size:12px;line-height:1.5}.ds-dashboard-intro p{margin:4px 0}.ds-quick{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:20px}
html body .ds-action{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;padding:20px;border:1px solid #896342;border-radius:9px;background:linear-gradient(135deg,#32271b,#191510);color:#e3cba5;box-shadow:0 4px 14px #0004;cursor:pointer}.ds-action strong{font-size:17px}.ds-action small{font-size:12px;color:#bca78c}html body .ds-action-primary{background:linear-gradient(110deg,#d1a16a,#a75e31);color:#171310;border-color:#d1a16a}.ds-action-primary small{color:#302014}.ds-action:hover{filter:brightness(1.12)}
.ds-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:22px}html body .ds-stat{display:flex;flex-direction:column;gap:10px;min-width:0;text-align:left;padding:18px 16px;background:#211b16;border:1px solid #89634277;border-radius:9px;color:#e3cba5}.ds-stat-label{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#d5ba8b}.ds-stat-value{font-size:36px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums}.ds-stat small{margin-top:auto;font-size:11px}button.ds-stat:hover{border-color:#d1a16a;background:#2a2119}
.ds-panels{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ds-panel{min-width:0;background:#1b1713;border:1px solid #89634288;border-radius:10px;padding:18px}.ds-panel h3{margin:0 0 6px;font-size:18px}.ds-panel>p{margin:0 0 16px}.ds-order{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:15px 0;border:0;border-bottom:1px solid #89634233;background:transparent;text-align:left;color:#e3cba5;font:inherit}.ds-order>span{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}.ds-order>strong{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:14px}.ds-order>span>strong{font-size:14px}button.ds-order:hover{background:#89634215}.ds-empty{padding:25px 0;color:#bca78c;font-size:13px}.ds-dashboard button:focus-visible{outline:2px solid #e3cba5;outline-offset:3px}
@media(max-width:1100px){.ds-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.ds-dashboard-intro{align-items:flex-start;flex-direction:column}.ds-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-panels{grid-template-columns:1fr}.ds-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-action{padding:14px!important}}

html body #rank-chart{padding:0;overflow:auto;background:#171310}
.lmc-rank-board{position:relative;isolation:isolate;min-width:760px;padding:32px clamp(24px,4vw,70px) 24px;color:#e3cba5;background:linear-gradient(#120e0aca,#120e0ae8),var(--rank-board-art,none) center/cover;border:1px solid #896342;border-radius:10px}
.rank-board-heading{text-align:center;margin:0 auto 28px}.rank-board-kicker{font-size:11px;font-weight:700;letter-spacing:.3em;color:#c99a61}.rank-board-title{font:700 clamp(28px,3vw,46px)/1.1 Georgia,serif!important;color:#f0ddbb!important;margin:12px 0}.rank-board-intro{color:#bda78b;font-size:13px}
.rank-leadership{width:31%;min-width:230px;margin:auto;display:grid;gap:24px;position:relative}.rank-leadership:before{content:'';position:absolute;top:0;bottom:-30px;width:2px;background:#b89a72;left:50%;z-index:-1}
.rank-command-row,.rank-lower-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:clamp(18px,3vw,50px);position:relative;align-items:start;margin-top:28px}
.rank-command-row:before,.rank-lower-row:before{content:'';position:absolute;top:-14px;left:16.66%;right:16.66%;height:16px;border:2px solid #b89a72;border-bottom:0;z-index:-1}
.rank-branch{display:grid;gap:18px;position:relative;min-width:0}.rank-branch:before{content:'';position:absolute;top:20px;bottom:32px;width:2px;background:#b89a72;left:50%;z-index:-1}
html body .lmc-rank-board .rank-section-heading{font:700 15px/1.3 Lato,Arial,sans-serif!important;letter-spacing:.1em;text-transform:uppercase;text-align:center;color:#edd8b7!important;margin:0;padding:12px;background:#171310;border:1px solid #896342;border-radius:4px}
html body .lmc-rank-board .rank-patch{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:68px;margin:0;padding:12px 14px;text-align:left;background:repeating-linear-gradient(120deg,#ffffff04 0 1px,transparent 1px 5px),linear-gradient(135deg,#27241f,#0f100e);border:2px solid #b49b77;border-radius:4px;color:#f3e7d3;box-shadow:inset 0 0 0 3px #080807,0 4px 12px #0008;cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}
html body .lmc-rank-board .rank-patch:hover{transform:translateY(-2px);border-color:#f0c98d;box-shadow:inset 0 0 0 3px #080807,0 0 18px #c48b3444}
html body .lmc-rank-board .rank-patch:focus-visible{outline:3px solid #e3cba5;outline-offset:4px}
.rank-patch-icon{font-size:25px;color:#d8bc8f;flex:0 0 28px;text-align:center}.rank-patch-copy{display:grid;gap:5px;min-width:0;flex:1}.rank-patch-copy strong{font:900 clamp(14px,1.5vw,21px)/1.2 'Arial Narrow',Lato,Arial,sans-serif;text-transform:uppercase;letter-spacing:.04em}.rank-patch-copy small{font-size:11px;color:#bda78b;overflow-wrap:anywhere}.rank-patch-open{font-size:16px;color:#bca17c}
.rank-command-badge{align-self:center;display:grid;gap:10px;text-align:center;padding:26px 12px;background:linear-gradient(130deg,#31281b,#10100d);border:3px double #b49b77;border-radius:50% / 22%;box-shadow:0 8px 24px #0008}.rank-command-badge>span{font-size:13px;letter-spacing:.16em}.rank-command-badge>strong{font:700 clamp(18px,2vw,28px) Georgia,serif}.rank-command-badge>small{font-size:8px;letter-spacing:.12em;color:#bca17c}
.rank-board-footer{text-align:center;font-size:10px;letter-spacing:.25em;color:#bca17c;margin-top:36px}.rank-extra{margin-top:24px}.rank-extra p{font-size:12px;color:#bda78b}
.rank-tier{position:relative;max-width:1000px;margin:26px auto 0;padding:18px;border:1px solid #89634266;background:#100d09a6;border-radius:8px}
.rank-tier+.rank-tier:before{content:'↓';position:absolute;left:50%;top:-27px;transform:translateX(-50%);color:#d8bc8f;font-size:24px;line-height:26px}
.rank-tier-list{display:grid;grid-template-columns:1fr;gap:15px;margin:18px auto 0;max-width:620px}
.rank-tier-list>.rank-patch+.rank-patch:before{border-style:dashed}
.rank-role-branch{font-size:10px!important;text-transform:uppercase;letter-spacing:.14em;color:#dbb578!important}
.rank-tier-list.rank-high-command{max-width:none}
.rank-high-command>.rank-patch{max-width:620px;justify-self:center}
.rank-side-branches{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:36px;margin-top:14px;padding-top:16px}
.rank-side-branches:before{content:'';position:absolute;top:0;left:25%;right:25%;height:16px;border:1px solid #b89a72;border-bottom:0}
.rank-side-branch{display:grid;gap:16px;min-width:0}
.rank-side-title{margin:0;text-align:center;color:#d8bc8f;font:700 12px Lato,Arial,sans-serif;letter-spacing:.15em;text-transform:uppercase}
@media(max-width:650px){.rank-side-branches{grid-template-columns:1fr;gap:24px}.rank-side-branches:before{display:none}}
@media(max-width:650px){.lmc-rank-board{min-width:0;padding:24px 16px}.rank-leadership{width:100%;min-width:0}.rank-command-row,.rank-lower-row{grid-template-columns:1fr;gap:24px}.rank-command-row:before,.rank-lower-row:before{display:none}.rank-command-badge{order:-1}.rank-patch-copy strong{font-size:18px}.rank-branch{gap:14px}}
@media(prefers-reduced-motion:reduce){html body .lmc-rank-board .rank-patch{transition:none;transform:none}}
/* Raised leather patches with brass edging and clear interaction feedback. */
html body #rank-chart .lmc-rank-board button.rank-patch{overflow:hidden;background:radial-gradient(ellipse at 12% 0,#c3995830,transparent 58%),repeating-linear-gradient(120deg,#ffffff05 0 1px,transparent 1px 4px),linear-gradient(165deg,#38332a,#151613 70%)!important;border:1px solid #a48a60!important;border-top-color:#e1c08a!important;border-bottom:3px solid #080907!important;box-shadow:inset 0 1px 0 #f4d8a055,inset 0 -3px 8px #000a,0 5px 0 #080807,0 10px 18px #0009!important;border-radius:7px!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,filter .18s ease!important}
html body #rank-chart .lmc-rank-board button.rank-patch:before{content:'';position:absolute;inset:5px;border:1px dashed #c0a16c55;border-radius:3px;pointer-events:none}
html body #rank-chart .lmc-rank-board button.rank-patch:after{content:'';position:absolute;inset:-70% auto -70% -60%;width:30%;background:linear-gradient(90deg,transparent,#f7d99c20,transparent);transform:skewX(-20deg);opacity:0;pointer-events:none}
html body #rank-chart .lmc-rank-board button.rank-patch .rank-patch-icon{display:grid;place-items:center;width:38px;height:38px;flex-basis:38px;font-size:23px;color:#f1d7a7;background:radial-gradient(circle at 35% 25%,#b18c4d,#584125 60%,#241c13);border:1px solid #c2a16b;border-radius:50%;box-shadow:inset 0 1px 2px #ffe8b866,0 2px 5px #0009;text-shadow:0 1px 2px #000}
html body #rank-chart .lmc-rank-board .rank-patch-copy strong{text-shadow:0 2px 2px #000;letter-spacing:.055em}
html body #rank-chart .lmc-rank-board .rank-patch-open{display:grid;place-items:center;width:24px;height:24px;flex:none;border:1px solid #9d7c4755;border-radius:50%;background:#08090755;color:#d4b57c;transition:transform .18s,color .18s}
html body #rank-chart .lmc-rank-board button.rank-patch:is(:hover,:focus-visible){transform:translateY(-3px);filter:brightness(1.12);border-color:#efca88!important;box-shadow:inset 0 1px 0 #ffe6b377,inset 0 -3px 8px #0008,0 7px 0 #080807,0 12px 24px #0009,0 0 20px #c48b3430!important}
html body #rank-chart .lmc-rank-board button.rank-patch:is(:hover,:focus-visible) .rank-patch-open{transform:rotate(90deg);color:#ffe0a6}
html body #rank-chart .lmc-rank-board button.rank-patch:hover:after{animation:rank-patch-sheen .65s ease-out}
html body #rank-chart .lmc-rank-board button.rank-patch:active{transform:translateY(3px);filter:brightness(1);box-shadow:inset 0 2px 10px #0009,0 1px 0 #080807,0 3px 8px #0008!important}
@keyframes rank-patch-sheen{0%{left:-60%;opacity:0}20%{opacity:1}100%{left:130%;opacity:0}}
@media(prefers-reduced-motion:reduce){html body #rank-chart .lmc-rank-board button.rank-patch,html body #rank-chart .lmc-rank-board .rank-patch-open{transition:none!important;transform:none!important}html body #rank-chart .lmc-rank-board button.rank-patch:after{animation:none!important}}

/* Section artwork meets the content edges; navigation uses Clubhouse-style image tiles. */
html body .shell main[data-room27]{padding:0 0 24px!important;min-width:0}
html body .shell main[data-room27]>.topline{margin:0!important;padding:6px 12px!important}
html body .shell main[data-room27]>section:not(#room27){margin-left:18px;margin-right:18px}
html body .shell main[data-room27] #room27{width:100%;margin:0 0 22px!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible;background:transparent}
html body .shell main[data-room27] #room27 .room27-scene{width:100%;border:0!important;border-radius:0!important;aspect-ratio:3/1;background-size:cover;background-position:center}
html body .shell main[data-room27] #room27 .room27-nav{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;padding:14px 18px 0!important;border:0!important;background:transparent!important}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile{position:relative;display:flex;align-items:flex-end;justify-content:flex-start;min-height:175px;padding:16px!important;overflow:hidden;border:2px solid #896342!important;border-radius:10px!important;background-image:linear-gradient(0deg,#120e0bf5 0%,#120e0b88 35%,#120e0b11 85%),var(--tile-art)!important;background-position:center!important;background-size:cover!important;background-color:#211b16!important;box-shadow:0 4px 12px #0007!important;text-align:left!important;transition:transform .18s,border-color .18s,filter .18s}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile:before,html body .shell main[data-room27] #room27 .room27-nav button.room27-tile:after{display:none!important}
.room27-tile-label{display:grid;gap:4px;min-width:0}
html body .shell main[data-room27] #room27 .room27-tile-label strong{font:700 18px/1.25 Lato,Arial,sans-serif;text-transform:uppercase;color:#fff0d6;text-shadow:0 2px 5px #000}
html body .shell main[data-room27] #room27 .room27-tile-label small{font:400 12px/1.4 Lato,Arial,sans-serif;color:#d6b58c;text-shadow:0 1px 3px #000}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile[aria-current=page]{border-color:#e3bc7b!important;box-shadow:inset 0 -4px #c69a5b,0 4px 12px #0007!important}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile:hover{transform:translateY(-2px);filter:brightness(1.12);border-color:#efbd80!important}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile:focus-visible{outline:3px solid #e3cba5;outline-offset:3px}
@media(max-width:650px){html body .shell main[data-room27] #room27 .room27-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px!important}html body .shell main[data-room27] #room27 .room27-nav button.room27-tile{min-height:135px}html body .shell main[data-room27] #room27 .room27-tile-label strong{font-size:14px}html body .shell main[data-room27]>section:not(#room27){margin-left:12px;margin-right:12px}}
@media(prefers-reduced-motion:reduce){html body .shell main[data-room27] #room27 .room27-nav button.room27-tile{transition:none;transform:none}}
/* Compact panoramic section headings, still flush with both content edges. */
html body .shell main[data-room27] #room27 .room27-scene{position:relative;isolation:isolate;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;width:100%;height:clamp(190px,17vw,290px)!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;padding:28px clamp(22px,3vw,52px)!important;background:#171310!important;overflow:hidden;border-bottom:1px solid #89634277!important}
html body .shell main[data-room27] #room27 .room27-scene:before{content:'';position:absolute;inset:-10px;background:var(--room-art) center 45%/cover no-repeat;filter:blur(3px) brightness(.52) saturate(.8);z-index:-2}
html body .shell main[data-room27] #room27 .room27-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#171310f5 0%,#171310bb 38%,#17131044 80%),linear-gradient(0deg,#171310aa,transparent 45%);z-index:-1}
html body .shell main[data-room27] #room27 .room27-scene>*{position:static!important;display:block!important;width:auto!important;height:auto!important;max-width:760px;clip-path:none!important;overflow:visible!important;white-space:normal!important;margin:0!important;padding:0!important;background:transparent!important;text-align:left!important}
html body .shell main[data-room27] #room27 .room27-scene .room27-kicker{font-size:11px!important;font-weight:700;letter-spacing:.2em;color:#d1a16a!important;text-transform:uppercase}
html body .shell main[data-room27] #room27 .room27-scene .room27-title{font-size:clamp(28px,3vw,46px)!important;font-weight:900!important;line-height:1.1!important;letter-spacing:.01em!important;text-transform:uppercase;color:#f0ddbb!important;text-shadow:0 2px 10px #000}
html body .shell main[data-room27] #room27 .room27-scene .room27-desc{font-size:14px!important;font-style:normal!important;line-height:1.5!important;color:#d0bda2!important}
@media(max-width:650px){html body .shell main[data-room27] #room27 .room27-scene{height:180px!important;padding:24px 18px!important;gap:8px}.room27-kicker{font-size:10px!important}}
/* Sharp panoramic artwork with titles baked into each image. Live heading remains accessible. */
html body .shell main[data-room27] #room27 .room27-scene{height:clamp(300px,25vw,440px)!important;padding:0!important;background:var(--room-art) center 52%/cover no-repeat!important}
html body .shell main[data-room27] #room27 .room27-scene:before,html body .shell main[data-room27] #room27 .room27-scene:after{display:none!important}
html body .shell main[data-room27] #room27 .room27-scene>*{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
@media(max-width:650px){html body .shell main[data-room27] #room27 .room27-scene{height:240px!important;background-position:center 52%!important}}

/* Clubhouse ledger plates: textured leather, stitched edging and brass fixings. */
html body #treasury-page .grid:has(.stat){gap:10px}
html body :is(#treasury-page .stat,.ds-dashboard .ds-stat){position:relative;isolation:isolate;min-width:0;overflow:hidden;padding:22px 24px!important;border:1px solid #5f4b32!important;border-top:3px solid #b08b55!important;border-bottom:4px solid #0b0a08!important;border-radius:3px!important;background:radial-gradient(ellipse at 0 0,#c6944c17,transparent 60%),repeating-linear-gradient(110deg,#ffffff04 0 1px,transparent 1px 4px),linear-gradient(160deg,#29241b,#151410 75%)!important;box-shadow:inset 0 1px #edcc8c33,inset 0 -6px 15px #0007,0 4px 0 #090806,0 9px 18px #0004!important;color:#e3cba5;text-align:left}
html body :is(#treasury-page .stat,.ds-dashboard .ds-stat):before{content:''!important;position:absolute!important;inset:9px!important;width:auto!important;height:auto!important;border:1px dashed #b3976755!important;border-radius:0!important;background:none!important;transform:none!important;pointer-events:none;z-index:-1}
html body :is(#treasury-page .stat,.ds-dashboard .ds-stat):after{content:''!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;border:0!important;border-radius:0!important;background:radial-gradient(circle at 8px 8px,#d2b57b 0 1px,#6d5130 2px,transparent 4px),radial-gradient(circle at calc(100% - 8px) 8px,#d2b57b 0 1px,#6d5130 2px,transparent 4px),radial-gradient(circle at 8px calc(100% - 8px),#8f7447 0 1px,#3f3020 2px,transparent 4px),radial-gradient(circle at calc(100% - 8px) calc(100% - 8px),#8f7447 0 1px,#3f3020 2px,transparent 4px)!important;opacity:1!important;transform:none!important;pointer-events:none;z-index:-1}
html body #treasury-page .stat-head,html body .ds-dashboard .ds-stat-label{display:block!important;width:fit-content;max-width:100%;margin:0 0 15px!important;padding:5px 8px!important;font:700 11px/1.35 Georgia,serif!important;letter-spacing:.1em!important;text-transform:uppercase;color:#d6bc8a!important;background:linear-gradient(#493b25,#302719)!important;border:1px solid #8d724544;box-shadow:inset 0 1px #dfbf7e22,0 1px 3px #0008;text-shadow:0 1px #000;overflow-wrap:normal}
html body #treasury-page .stat-head .icon{display:none!important}
html body #treasury-page .stat-value,html body .ds-dashboard .ds-stat-value{display:block;margin:0 0 12px!important;font:700 clamp(28px,2.5vw,42px)/1.1 Georgia,serif!important;letter-spacing:-.03em;color:#f0ddbb!important;font-variant-numeric:tabular-nums;text-shadow:0 2px 1px #000,0 0 12px #c6944c12}
html body #treasury-page .stat-note,html body .ds-dashboard .ds-stat>small{display:block!important;margin-top:auto;padding-top:10px;border-top:1px solid #9a7c4a33;font:400 12px/1.55 Lato,Arial,sans-serif!important;color:#bba68a!important}
html body #treasury-page .stat:has(#treasury-income){border-top-color:#81915a!important}
html body #treasury-page .stat:has(#treasury-expenses){border-top-color:#9d5940!important}
html body .ds-dashboard button.ds-stat{cursor:pointer;transition:transform .15s,filter .15s,box-shadow .15s}
html body .ds-dashboard button.ds-stat:hover{transform:translateY(-2px);filter:brightness(1.12);box-shadow:inset 0 1px #edcc8c44,0 6px 0 #090806,0 12px 22px #0006!important}
html body .ds-dashboard button.ds-stat:active{transform:translateY(2px);box-shadow:inset 0 2px 10px #0009,0 1px 0 #090806!important}
html body .ds-dashboard .ds-stat{gap:0}.ds-dashboard .ds-stat-grid{gap:10px}
@media(max-width:650px){html body :is(#treasury-page .stat,.ds-dashboard .ds-stat){padding:20px 18px!important}html body #treasury-page .stat-value,html body .ds-dashboard .ds-stat-value{font-size:28px!important}}
@media(prefers-reduced-motion:reduce){html body .ds-dashboard button.ds-stat{transition:none;transform:none!important}}

/* Important declarations in a named layer consistently override older module fonts. */
@layer lost-site-typography{
 html,body,body *{font-family:Lato,Arial,sans-serif!important}
}

.v26-home .v26-hero{background-image:url('assets/clubhouse-clean.png')}
.v26-home .v26-profile{display:none}
.v26-home .v26-welcome{box-sizing:border-box;left:20px;bottom:20px;width:fit-content;max-width:min(460px,calc(100% - 40px));min-height:0;padding:14px 22px;border:1px solid #89634288;border-radius:8px;background:#171310ed;color:#e3cba5;box-shadow:0 4px 16px #0005;gap:4px}
.v26-home .v26-welcome span{font:600 clamp(16px,1.3vw,21px) Georgia,serif}
.v26-home .v26-welcome strong{font:700 clamp(22px,2vw,32px) Georgia,serif;color:#e3cba5;line-height:1.15;overflow-wrap:anywhere}
.v26-home .v26-welcome small{font-size:12px;letter-spacing:.06em;color:#baa586}
@media(max-width:650px){.v26-home .v26-welcome{left:12px;bottom:12px;max-width:calc(100% - 24px);padding:10px 14px}}

.lmc-rank-board{--rank-board-art:url('assets/3559363d5fb336d4c8b0bff345c4d51bdfd51306d32bbb206d8ae63891238e2f.png')}

.route-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.route-order{display:flex;align-items:center;gap:12px;padding:10px;border-bottom:1px solid #89634255;font-size:14px}.route-order input{width:18px;height:18px}.route-drop{border:1px solid #89634288;border-radius:10px;padding:18px;margin:18px 0;background:#211b16}.route-drop h3{margin:0 0 8px}.route-fields{display:grid;grid-template-columns:130px 1fr 1fr 1fr;gap:14px;margin-top:18px}.route-fields input[type=checkbox]{width:22px;height:22px}.route-dialog{width:min(1200px,94vw);max-height:90vh;overflow:auto;border:1px solid #896342;border-radius:12px;background:#171310;color:#e3cba5;padding:24px}.route-dialog::backdrop{background:#000a}.route-dialog .table-wrap{overflow:auto}.route-errors{border-left:3px solid #b75c45;padding:12px 18px}.route-plan-row{margin-top:8px;display:block}@media(max-width:700px){.route-fields{grid-template-columns:1fr 1fr}.route-dialog{padding:14px}}

.product-category-bar{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:14px 18px;border-bottom:1px solid #89634255;background:#171310}
.product-category-bar[hidden]{display:none!important}
.product-category-bar button{flex:none;white-space:nowrap;border:1px solid #89634277;border-radius:7px;background:#211b16;color:#e3cba5;padding:9px 13px;font:inherit;font-size:14px;cursor:pointer}
.product-category-bar button[aria-pressed=true]{border-color:#c4a46e;background:#3c2c1e;color:#ffdfaa}
.product-category-bar button:focus-visible{outline:2px solid #e3cba5;outline-offset:2px}
.product-category-count{margin-left:auto;white-space:nowrap;font-size:14px;color:#baa586;padding-left:12px}

/* A single body-row surface across registers, including hover and filtered rows. */
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table :is(tbody,tfoot),
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table :is(tbody,tfoot) tr,
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table :is(tbody,tfoot) tr:nth-child(n),
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table :is(tbody,tfoot) tr:hover,
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table :is(tbody,tfoot) :is(td,th):not([data-recruit-status]),
html body dialog table :is(tbody,tfoot),
html body dialog table :is(tbody,tfoot) tr,
html body dialog table :is(tbody,tfoot) tr:nth-child(n),
html body dialog table :is(tbody,tfoot) tr:hover,
html body dialog table :is(tbody,tfoot) :is(td,th):not([data-recruit-status]){background:#1b1713!important;background-image:none!important;box-shadow:none!important}

html body .shell main[data-room27=garage] #room27 .room27-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
html body .shell main[data-room27=garage] #room27 .room27-nav button.room27-tile[data-drop-tile]{isolation:isolate;background-image:var(--tile-art)!important;background-size:200% 500%!important;background-position:var(--tile-position)!important;min-height:155px}
html body .shell main[data-room27=garage] #room27 .room27-nav button.room27-tile[data-drop-tile]::before{display:block!important;content:'';position:absolute;inset:0;background:linear-gradient(0deg,#120e0bf5 0%,#120e0b88 32%,transparent 75%);z-index:0;pointer-events:none}
html body .shell main[data-room27=garage] #room27 .room27-nav button.room27-tile[data-drop-tile] .room27-tile-label{position:relative;z-index:1}
html body .shell main[data-room27=garage] #room27 .room27-nav button.room27-tile[data-drop-tile='New Order']{border-color:#d2a468!important}
@media(max-width:1150px){html body .shell main[data-room27=garage] #room27 .room27-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:650px){html body .shell main[data-room27=garage] #room27 .room27-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Shared page surfaces: one panel palette across all workspaces and dialogs. */
html body{--lmc-page:#171310;--lmc-panel:#211c15;--lmc-header:#30261e;--lmc-text:#e3cba5;--lmc-border:#896342}
html body .shell main :is(.card,.panel,[data-shared-data-panel],.ds-data-panel,.ds-panel,.route-drop){background:var(--lmc-panel)!important;background-image:none!important;color:var(--lmc-text)}
html body .shell main :is(.ds-suite,.ds-dashboard,.ds-handbook,.ds-fee-result,.table-wrap,#ref-table-wrap,[data-shared-table-wrap]){background:transparent!important;background-image:none!important}
html body .shell main :is(.filterbar,.reference-toolbar,.product-category-bar,.card-head,.ds-work-note){background:var(--lmc-panel)!important;background-image:none!important}
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table,
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table :is(tbody,tfoot),
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table :is(tbody,tfoot) tr:nth-child(n),
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table :is(tbody,tfoot) tr:hover,
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table :is(tbody,tfoot) :is(td,th):not([data-recruit-status]),
html body dialog,
html body dialog :is(.lmc-popup-body,.dialog-head,.dialog-actions,.form-grid,.table-wrap),
html body dialog table,
html body dialog table :is(tbody,tfoot),
html body dialog table :is(tbody,tfoot) tr:nth-child(n),
html body dialog table :is(tbody,tfoot) tr:hover,
html body dialog table :is(tbody,tfoot) :is(td,th):not([data-recruit-status]){background:var(--lmc-panel)!important;background-image:none!important;color:var(--lmc-text);box-shadow:none!important}
html body .shell main :is(#reference-page,#orders-page,#squad-page,#accounts-page,#permissions-page,#audit-page,#treasury-page,section) table thead :is(th,td),
html body dialog table thead :is(th,td){background:var(--lmc-header)!important;background-image:none!important;color:var(--lmc-text)!important}
html body .shell main :is(.ds-calendar-cell,.ds-calendar-empty){background:var(--lmc-panel)!important}

/* Working pages favour the records; the clubhouse retains its separate hero. */
html body .shell .brand img.brand-logo{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html body .shell main[data-room27]{padding:0 28px 36px!important;background:#171310!important}
html body .shell main[data-room27]>.topline{padding:12px 0!important;margin:0!important;min-height:48px;border:0!important;background:transparent!important}
html body .shell main[data-room27]>.topline :is(.eyebrow,h1){display:none!important}
html body .shell main[data-room27] #room27{margin:0 0 24px!important}
html body .shell main[data-room27] #room27 .room27-scene{box-sizing:border-box;height:76px!important;min-height:0!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;padding:16px 20px!important;border:0!important;border-radius:8px!important;background:#211b16!important;isolation:isolate}
html body .shell main[data-room27] #room27 .room27-scene::before{display:block!important;content:'';position:absolute;inset:0 0 0 45%;background:linear-gradient(90deg,#211b16,transparent),var(--room-art) center 50%/cover no-repeat;opacity:.22;filter:blur(2px);z-index:-1;pointer-events:none}
html body .shell main[data-room27] #room27 .room27-scene .room27-title{position:static!important;width:auto!important;height:auto!important;max-width:none;overflow:visible!important;clip-path:none!important;white-space:normal!important;font:600 18px/1.35 Lato,Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#c6b18e!important;text-shadow:none!important;margin:0!important}
html body .shell main[data-room27] #room27 .room27-scene :is(.room27-kicker,.room27-desc){display:none!important}
html body .shell main[data-room27] #room27 .room27-nav{display:none!important}
html body .shell main[data-room27]>section:not(#room27){margin:0!important}
html body .shell main[data-room27] :is(.card,.panel,[data-shared-data-panel]){border:1px solid #89634230!important;border-radius:8px!important;box-shadow:none!important}
html body .shell main #squad-page>.panel{padding:0!important;background:transparent!important;border:0!important}
html body .shell main #squad-page:has(.ds-suite,.ds-dashboard) :is(#squad-heading,#squad-note){display:none!important}
html body .shell main #squad-heading{font-size:28px;margin:0 0 8px}
html body .shell main #squad-content{padding:0!important}
html body .shell main :is(.ds-suite-heading,.ds-dashboard-intro){margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid #89634230}
html body .shell main :is(.ds-suite-heading,.ds-dashboard-intro) h2{font-size:28px!important;line-height:1.25!important;margin:0 0 8px!important;letter-spacing:-.02em}
html body .shell main :is(.ds-muted,.ds-suite-heading p){font-size:14px!important;line-height:1.6;color:#bcae98}
html body .shell main .ds-dashboard-intro :is(.ds-kicker,.ds-dashboard-intro>div>p:last-child){display:none}
html body .shell main .ds-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
html body .shell main .ds-heading-actions .primary{padding:10px 18px;border:1px solid #ac8757;border-radius:6px;background:#a77c48;color:#171310;font-weight:700;font-size:14px}
html body .shell main .ds-dashboard-intro .secondary{border-color:#89634245;background:transparent;color:#c6b18e}
html body .shell main .ds-stat-grid{gap:14px;margin-bottom:24px}
html body .shell main :is(.ds-dashboard .ds-stat,#treasury-page .stat){padding:20px!important;gap:8px!important;background:#211c15!important;border:1px solid #89634230!important;border-radius:8px!important;box-shadow:none!important;transform:none!important;filter:none!important;overflow:visible}
html body .shell main :is(.ds-dashboard .ds-stat,#treasury-page .stat)::before,
html body .shell main :is(.ds-dashboard .ds-stat,#treasury-page .stat)::after{display:none!important}
html body .shell main :is(.ds-dashboard .ds-stat-label,#treasury-page .stat-head){padding:0!important;margin:0 0 6px!important;background:transparent!important;border:0!important;box-shadow:none!important;font:600 12px/1.4 Lato,Arial,sans-serif!important;color:#c0ac8c!important;letter-spacing:.04em!important;text-shadow:none!important}
html body .shell main :is(.ds-dashboard .ds-stat-value,#treasury-page .stat-value){font:700 30px/1.15 Lato,Arial,sans-serif!important;color:#e3cba5!important;margin:0 0 6px!important;letter-spacing:-.02em!important;text-shadow:none!important}
html body .shell main :is(.ds-dashboard .ds-stat>small,#treasury-page .stat-note){font-size:13px!important;line-height:1.5!important;border:0!important;padding:0!important}
html body .shell main :is(.ds-panel,.route-drop,.ds-data-panel){border-color:#89634230!important;border-radius:8px!important;box-shadow:none!important}
html body .shell main .ds-work-note{border:0!important;border-left:2px solid #89634266!important;background:transparent!important;padding:8px 14px!important;font-size:14px;line-height:1.6}
html body .shell main .ds-suite-heading>div>p{margin-bottom:0}
html body .shell main .ds-field{font-size:14px}
html body .shell main .card-head{padding:18px 20px!important;border-bottom-color:#89634230!important}
html body .shell main .card-head h3{font:600 24px/1.3 Lato,Arial,sans-serif!important;letter-spacing:-.01em!important}
html body .shell main :is(.filterbar,.reference-toolbar,.product-category-bar){border-bottom-color:#89634230!important}
html body .shell main .product-category-bar button{border-color:transparent;background:transparent;color:#bcae98}
html body .shell main .product-category-bar button[aria-pressed=true]{background:#30261e;color:#e3cba5;border-color:#89634255}
html body .shell main table[data-shared-table] th{font-size:13px!important;color:#c6b18e!important;font-weight:600!important}
html body .shell main table[data-shared-table] td{font-size:14px!important;border-bottom-color:#89634222!important}
html body .shell>aside{background:#1b1713!important;background-image:none!important;border-right:1px solid #89634233!important;box-shadow:none!important}
html body .shell>aside .nav :is(.v2-toggle,.v2-standalone){font-size:13px!important;letter-spacing:.01em!important}
html body .shell>aside .nav button[data-page]{border-radius:5px!important;box-shadow:none!important}
html body .shell>aside .nav button[data-page].active{background:#30261e!important;border-color:#89634255!important;color:#e3cba5!important;box-shadow:inset 3px 0 #ad8753!important}
@media(max-width:1000px){html body .shell main[data-room27]{padding:0 18px 28px!important}html body .shell main .ds-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){html body .shell main[data-room27]{padding:0 12px 24px!important}html body .shell main[data-room27] #room27 .room27-scene{height:60px!important;padding:12px 14px!important}html body .shell main[data-room27] #room27{margin-bottom:20px!important}html body .shell main .ds-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html body .shell main .ds-dashboard-intro{gap:12px}html body .shell main .ds-heading-actions{width:100%}html body .shell main :is(.ds-suite-heading,.ds-dashboard-intro) h2{font-size:24px!important}}

/* Preserve sharp artwork at a restrained size; no faded or blurred banner layer. */
html body .shell main .ds-heading-actions .primary{display:none!important}
html body .shell main[data-room27] #room27{margin-bottom:20px!important}
html body .shell main[data-room27] #room27 .room27-scene{height:116px!important;min-height:0!important;padding:16px 20px 16px 380px!important;background:#211c15!important;border-radius:7px!important;overflow:hidden;justify-content:center!important}
html body .shell main[data-room27] #room27 .room27-scene::before{display:block!important;inset:0 auto 0 0!important;width:348px!important;height:116px!important;background:var(--room-art) center/contain no-repeat!important;opacity:1!important;filter:none!important;z-index:0!important}
html body .shell main[data-room27] #room27 .room27-scene .room27-title{font-size:20px!important;position:relative!important;z-index:1!important;color:#e3cba5!important}
html body .shell main[data-room27] #room27 .room27-scene .room27-desc{display:block!important;position:relative!important;clip-path:none!important;width:auto!important;height:auto!important;white-space:normal!important;font:400 14px/1.5 Lato,Arial,sans-serif!important;color:#bcae98!important;margin:5px 0 0!important}
html body .shell main[data-room27] #room27 .room27-nav,
html body .shell main[data-room27=garage] #room27 .room27-nav{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;padding:12px 0 0!important;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#67513b transparent;background:transparent!important}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile,
html body .shell main[data-room27=garage] #room27 .room27-nav button.room27-tile[data-drop-tile]{flex:1 0 130px!important;min-width:130px!important;max-width:190px;min-height:82px!important;height:82px!important;padding:8px 10px!important;border:1px solid #89634255!important;border-radius:6px!important;box-shadow:none!important;transform:none!important}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile .room27-tile-label strong{font-size:12px!important;line-height:1.3!important;text-transform:none!important;font-weight:700!important}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile .room27-tile-label small{display:none!important}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile[aria-current=page]{border-color:#c4a46e!important;box-shadow:inset 0 -2px #c4a46e!important}
html body .shell main[data-room27] :is(.stat,.ds-stat){background:#211c15!important;background-image:none!important;border:1px solid #89634230!important;border-radius:7px!important;box-shadow:none!important;min-height:0!important;padding:16px 18px!important}
html body .shell main[data-room27] :is(.stat,.ds-stat)::before,
html body .shell main[data-room27] :is(.stat,.ds-stat)::after{display:none!important}
html body .shell main[data-room27] .stat-head{font-size:12px!important;letter-spacing:.04em!important;color:#bcae98!important}
html body .shell main[data-room27] .stat-head .icon{display:none!important}
html body .shell main[data-room27] .stat-value{font:700 28px/1.2 Lato,Arial,sans-serif!important;margin:8px 0 5px!important;color:#e3cba5!important}
html body .shell main[data-room27] .stat-note{font-size:12px!important;line-height:1.45!important}
html body .shell main[data-room27] .notice{border:0!important;border-left:2px solid #89634266!important;background:transparent!important;padding:7px 12px!important;margin-bottom:18px!important;color:#bcae98!important;font-size:13px!important;line-height:1.5}
html body .shell main[data-room27] .section-row{border:0!important;margin-top:22px!important;padding-bottom:0!important}
html body .shell main[data-room27] .filterbar :is(input,select),html body .shell main[data-room27] table :is(input,select){background:#211b16!important;border-color:#89634255!important;color:#e3cba5!important;min-height:36px!important}
@media(max-width:900px){html body .shell main[data-room27] #room27 .room27-scene{height:96px!important;padding-left:310px!important}html body .shell main[data-room27] #room27 .room27-scene::before{width:288px!important;height:96px!important}}
@media(max-width:650px){html body .shell main[data-room27] #room27 .room27-scene{height:90px!important;padding:0!important;background:transparent!important}html body .shell main[data-room27] #room27 .room27-scene::before{width:270px!important;height:90px!important}html body .shell main[data-room27] #room27 .room27-scene :is(.room27-title,.room27-desc){display:none!important}html body .shell main[data-room27] #room27 .room27-nav button.room27-tile{flex-basis:125px!important;min-width:125px!important;height:76px!important;min-height:76px!important}}
/* Medium artwork scale: readable images without the original oversized grid. */
html body .shell main[data-room27] #room27 .room27-scene{height:164px!important;padding-left:520px!important}
html body .shell main[data-room27] #room27 .room27-scene::before{width:492px!important;height:164px!important}
html body .shell main[data-room27] #room27 .room27-scene .room27-title{font-size:23px!important}
html body .shell main[data-room27] #room27 .room27-nav,
html body .shell main[data-room27=garage] #room27 .room27-nav{gap:10px!important;padding-top:14px!important}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile,
html body .shell main[data-room27=garage] #room27 .room27-nav button.room27-tile[data-drop-tile]{flex:1 0 190px!important;min-width:190px!important;max-width:240px;height:116px!important;min-height:116px!important;padding:12px!important}
html body .shell main[data-room27] #room27 .room27-nav button.room27-tile .room27-tile-label strong{font-size:14px!important}
@media(max-width:1000px){html body .shell main[data-room27] #room27 .room27-scene{height:136px!important;padding-left:430px!important}html body .shell main[data-room27] #room27 .room27-scene::before{width:408px!important;height:136px!important}}
@media(max-width:650px){html body .shell main[data-room27] #room27 .room27-scene{height:120px!important;padding:0!important}html body .shell main[data-room27] #room27 .room27-scene::before{width:360px!important;max-width:100%!important;height:120px!important}html body .shell main[data-room27] #room27 .room27-nav button.room27-tile,html body .shell main[data-room27=garage] #room27 .room27-nav button.room27-tile[data-drop-tile]{flex-basis:170px!important;min-width:170px!important;height:104px!important;min-height:104px!important}}

/* Full-width shallow artwork; restrained titles are baked into each banner. */
html body .shell main[data-room27] #room27{width:calc(100% + 56px)!important;margin-left:-28px!important;margin-right:-28px!important}
html body .shell main[data-room27] #room27 .room27-scene{height:clamp(240px,18vw,360px)!important;min-height:0!important;padding:0!important;border-radius:0!important;background-image:url('assets/slim-section-banners.png')!important;background-repeat:no-repeat!important;background-size:auto var(--banner-size)!important;background-position:50% var(--banner-position)!important}
html body .shell main[data-room27] #room27 .room27-scene::before,html body .shell main[data-room27] #room27 .room27-scene::after{display:none!important}
html body .shell main[data-room27] #room27 .room27-scene :is(.room27-title,.room27-desc,.room27-kicker){display:block!important;position:absolute!important;inset:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:0!important}
html body .shell main[data-room27] #room27 .room27-nav,html body .shell main[data-room27=garage] #room27 .room27-nav{display:none!important}
html body .shell main .ds-heading-actions .primary{display:inline-flex!important}
html body .shell main[data-room27=church] #room27 .room27-scene{--banner-size:838.02817%;--banner-position:0.19084%}
html body .shell main[data-room27=backroom] #room27 .room27-scene{--banner-size:952.00000%;--banner-position:13.89671%}
html body .shell main[data-room27=garage] #room27 .room27-scene{--banner-size:944.44444%;--banner-position:26.03383%}
html body .shell main[data-room27=treasury] #room27 .room27-scene{--banner-size:944.44444%;--banner-position:38.25188%}
html body .shell main[data-room27=brotherhood] #room27 .room27-scene{--banner-size:952.00000%;--banner-position:50.42254%}
html body .shell main[data-room27=command] #room27 .room27-scene{--banner-size:944.44444%;--banner-position:62.59398%}
html body .shell main[data-room27=bible] #room27 .room27-scene{--banner-size:991.66667%;--banner-position:74.39252%}
html body .shell main[data-room27=office] #room27 .room27-scene{--banner-size:901.51515%;--banner-position:86.95652%}
html body .shell main[data-room27=memory] #room27 .room27-scene{--banner-size:901.51515%;--banner-position:99.81096%}
@media(max-width:1000px){html body .shell main[data-room27] #room27{width:calc(100% + 36px)!important;margin-left:-18px!important;margin-right:-18px!important}html body .shell main[data-room27] #room27 .room27-nav,html body .shell main[data-room27=garage] #room27 .room27-nav{padding-left:18px!important;padding-right:18px!important}}
@media(max-width:650px){html body .shell main[data-room27] #room27{width:calc(100% + 24px)!important;margin-left:-12px!important;margin-right:-12px!important}html body .shell main[data-room27] #room27 .room27-scene{height:220px!important;background-size:auto var(--banner-size)!important}}


/* Each section uses its own full-resolution source; no enlarged atlas fragments. */
html body .shell main[data-room27] #room27 .room27-scene{background-image:var(--section-banner-hd)!important;background-size:cover!important;background-position:center!important;image-rendering:auto!important}
html body .shell main[data-room27=church]{--section-banner-hd:url('assets/banner-hd-church.png')}
html body .shell main[data-room27=backroom]{--section-banner-hd:url('assets/banner-hd-backroom.png')}
html body .shell main[data-room27=garage]{--section-banner-hd:url('assets/banner-hd-garage.png')}
html body .shell main[data-room27=treasury]{--section-banner-hd:url('assets/banner-hd-treasury.png')}
html body .shell main[data-room27=brotherhood]{--section-banner-hd:url('assets/banner-hd-brotherhood.png')}
html body .shell main[data-room27=command]{--section-banner-hd:url('assets/banner-hd-command.png')}
html body .shell main[data-room27=bible]{--section-banner-hd:url('assets/banner-hd-bible.png')}
html body .shell main[data-room27=office]{--section-banner-hd:url('assets/banner-hd-office.png')}
html body .shell main[data-room27=memory]{--section-banner-hd:url('assets/banner-hd-memory.png')}

html body .shell main #audit-page .audit-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0}
html body .shell main #audit-page #audit-search{flex:1;min-width:220px;min-height:40px;padding:10px 12px;background:#171310;border:1px solid #89634255;border-radius:6px;color:#e3cba5;font:14px Lato,Arial,sans-serif}
html body .shell main #audit-page #audit-rows td{white-space:normal!important;overflow-wrap:anywhere!important;min-width:100px!important;max-width:300px!important;vertical-align:top!important}
html body .shell main #audit-page #audit-rows td:nth-child(1){min-width:155px!important}
html body .shell main #audit-page #audit-rows td:nth-child(3){min-width:180px!important;max-width:240px!important}
html body .shell main #audit-page #audit-rows td:nth-child(n+6){min-width:200px!important;max-width:350px!important;white-space:pre-line!important}
html body .shell main #audit-page details summary{cursor:pointer;color:#cbb18b}
html body .shell main #audit-page details pre{max-width:650px;max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.audit-event-id{font-size:12px;color:#bcae98;margin-top:6px}
