/* Shared visual language. Business controls retain their existing behavior. */
.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media screen{
:root{--radius:12px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px}
body[data-theme="bruma"]{--bg:#100d0b;--panel:#1c1612;--raised:#2a211a;--border:#493929;--text:#f3e8d5;--muted:#bcae99;--ember:#ceb17a;--green:#9bb894}
body[data-theme="forge"]{--bg:#181612;--panel:#211e19;--raised:#2c2720;--border:#3c342b;--text:#f2e9d8;--muted:#b0a595;--ember:#df9b69}
body{background:radial-gradient(ellipse at 85% 0,color-mix(in srgb,var(--ember) 4%,transparent),transparent 45%),var(--bg);-webkit-font-smoothing:antialiased}
button,.button{min-height:38px;border-radius:7px;font-size:12px;font-weight:550;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
button:not(:disabled):hover,.button:hover{background:color-mix(in srgb,var(--raised) 85%,white);border-color:color-mix(in srgb,var(--ember) 45%,var(--border))}
button.primary,.button.primary{color:#201e13;background:var(--ember);border-color:var(--ember);box-shadow:0 2px 0 #0002}
button.primary:hover,.button.primary:hover{background:color-mix(in srgb,var(--ember) 85%,white);border-color:var(--ember)}
button:active:not(:disabled),.button:active{transform:translateY(1px)}.ghost{background:transparent}.small{min-height:32px}.danger{color:#f3a391}.primary:disabled{opacity:.55}
.app-shell{grid-template-columns:242px minmax(0,1fr)}.main{padding:0 40px 60px;max-width:1700px;margin:0 auto}
.sidebar{background:#15100d;border-right:1px solid #392c22;padding:28px 17px 20px;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.brand-row{display:flex;align-items:center;gap:10px}.brand{padding:0 4px 0;gap:13px;min-width:0;font-family:Georgia,'Times New Roman',serif;font-size:17px;font-weight:400;line-height:1.35}.brand-crest{flex-shrink:0;width:35px;height:44px}.brand small{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:8px;letter-spacing:1.5px;line-height:1.5;margin-top:7px;color:#b8a58b}
#menu-toggle{display:none}.navigation-caption{color:#ad9879;font-size:9px;letter-spacing:2px;margin:39px 14px 13px;font-weight:600}
.sidebar nav{gap:5px}.sidebar nav a{min-height:43px;font-size:12px;gap:12px;padding:10px 12px;border:1px solid transparent;border-radius:7px;color:#c4b39c;transition:background .18s,color .18s}
.sidebar nav a .icon{width:18px;height:18px;color:#b5a080}.sidebar nav a .nav-title{width:auto;text-align:left;color:inherit;flex:1}.sidebar nav a .nav-indicator{width:auto;color:var(--ember);opacity:0}
.sidebar nav a:hover{background:#ffffff05;color:#f3e8d5}.sidebar nav a.active{background:linear-gradient(90deg,#bda26219,#bda26208);border-color:#9f894233;color:#e5cd91}.sidebar nav a.active .icon{color:#d3b675}.sidebar nav a.active .nav-indicator{opacity:1}.sidebar nav .back-to-portal{border-bottom:1px solid var(--border);border-radius:0;margin-bottom:10px;font-size:11px}
.sidebar-seal{margin-top:auto;padding:45px 15px 25px;text-align:center;color:#a38a63;display:flex;flex-direction:column;gap:5px}.sidebar-seal>span{font-family:Georgia,serif;letter-spacing:6px;font-size:18px}.sidebar-seal>small{font-size:7px;letter-spacing:2px}
.sidebar-footer{margin-top:0;border-top:1px solid #392c22;padding:19px 4px 0;display:grid;grid-template-columns:34px 1fr;column-gap:10px;font-size:11px}.user-avatar{grid-row:1/3;width:33px;height:33px;display:grid;place-items:center;border:1px solid #676143;border-radius:50%;color:#dfc486;background:#aa914517;font-family:Georgia,serif;font-size:17px}.sidebar-footer strong{font-weight:550;overflow-wrap:anywhere}.sidebar-footer small{font-size:9px;line-height:1.4;margin:3px 0 0;color:#b5a48b}.sidebar-footer button{grid-column:1/-1;margin-top:10px}
.topbar{min-height:80px;padding:18px 0;margin-bottom:30px;border-color:var(--border)}.breadcrumbs{display:flex;align-items:center;gap:16px;font-size:10px;min-width:0}.breadcrumbs>span:first-child{color:var(--muted);font-size:9px;letter-spacing:1.8px}.breadcrumbs>span:nth-child(2){color:#987e5b}.breadcrumbs strong{font-weight:450;color:var(--text);overflow-wrap:anywhere}.topbar button{min-height:32px;padding:5px 9px}.topbar #service-indicator{font-size:11px;color:var(--muted)}
h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.5px}h1{font-size:35px;margin-bottom:12px}h2{font-size:23px}.page-head{margin-bottom:30px;align-items:center}.page-head p{line-height:1.7;max-width:650px;color:var(--muted)}
.overline{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:9px;font-weight:600;letter-spacing:2px;color:var(--ember);line-height:1.6;margin:0 0 12px}.eyebrow{font-size:9px;color:var(--ember)}
.card{background:linear-gradient(145deg,color-mix(in srgb,var(--panel) 96%,white),var(--panel));border-color:var(--border);padding:25px;box-shadow:0 5px 25px #0000000a}.card>h2{margin-bottom:20px}.card .split{flex-wrap:wrap}.stats{gap:16px;margin-bottom:30px}.stat{border-color:var(--border);background:linear-gradient(130deg,var(--panel),color-mix(in srgb,var(--panel) 95%,black));padding:21px 23px;border-radius:10px}.stat label{font-size:11px;margin-bottom:13px}.stat strong{font-family:Georgia,serif;font-weight:400;font-size:34px;font-variant-numeric:tabular-nums}.stat small{font-size:10px;line-height:1.5}
.welcome{position:relative;isolation:isolate;min-height:320px;border:1px solid #716b494d;border-radius:13px;background:#251b13;padding:42px 38px 39px;overflow:hidden;margin-bottom:24px}
.welcome::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(19,12,8,.98),rgba(24,15,9,.85) 30%,rgba(28,18,10,.35) 65%,rgba(19,12,8,.16)),linear-gradient(0deg,rgba(15,9,5,.7),transparent 50%);pointer-events:none}
.welcome-content{position:relative;z-index:1;max-width:68%}.welcome .overline{display:flex;align-items:center;gap:9px;margin-bottom:16px;font-size:8px}.welcome .overline>span{width:5px;height:5px;background:var(--ember);transform:rotate(45deg)}
.welcome h1{font-size:47px;line-height:1.13;letter-spacing:-1px;margin-bottom:15px}.welcome h1 span{color:#d4bf87}.welcome-copy{font-size:12px;line-height:1.85;color:#e0d1bb;margin-bottom:25px}.welcome-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 46%;z-index:-1;pointer-events:none}.welcome-foot{display:flex;flex-wrap:wrap;gap:12px;align-items:center;color:#d5c2a4;font-size:10px}.welcome-date{display:flex;align-items:center;gap:6px}.welcome-date .icon{width:13px;height:13px}.welcome-divider{height:10px;width:1px;background:#79623f}.welcome-credit{position:absolute;z-index:1;bottom:15px;right:18px;padding:7px 9px;border-radius:4px;background:#150e09c9;letter-spacing:1.5px;font-size:9px;color:#f3e8d5;text-decoration:none}.welcome-credit span{letter-spacing:.3px;color:#d7c7ae}.welcome-credit:hover{text-decoration:underline;background:#150e09ed}.welcome-credit:focus-visible{outline:2px solid var(--ember);outline-offset:3px}
.portal-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.portal-stats .stat{padding:17px 21px 19px;position:relative}.portal-stats .stat.accent{border-color:#aa925b55;background:linear-gradient(125deg,#513a2066,var(--panel))}.stat-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.stat-icon{display:grid;place-items:center;width:29px;height:29px;border:1px solid #9c905031;border-radius:7px;color:#c5b176;background:#ad944e0b}.stat-icon .icon{width:16px;height:16px}.stat-index{font-size:9px;color:#ae9474;letter-spacing:1px}.portal-stats .stat label{margin:0 0 8px;line-height:1.5;color:#d0bea2}.stat-value{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.stat-value>span{font-size:10px;color:#bcaa8d}.portal-stats .stat small{color:#b9a58b;margin-top:10px;font-size:9px}.portal-stats .stat strong{font-size:33px}
.portal-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:29px;align-items:start;margin-top:37px}.directory{min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:19px}.section-heading .overline{font-size:8px;margin-bottom:6px}.section-heading h2{font-size:25px;margin:0;display:flex;align-items:center;gap:10px}.section-heading button{font-size:10px;padding:8px 11px}.count-tag{font:10px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--muted);border:1px solid var(--border);border-radius:5px;padding:4px 7px}.section-heading .icon{width:14px;height:14px}
.shop-search{position:relative;max-width:none;margin-bottom:20px}.shop-search>.icon{position:absolute;left:15px;top:14px;width:16px;height:16px;color:#b8a285}.shop-search input{height:43px;padding-left:42px;background:#16110e;border-color:#4a3829;margin:0;font-size:11px;border-radius:8px}.shop-search input::placeholder{color:#b4a28a}
.shop-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,285px),1fr));gap:19px}.shop-card.card{display:block;padding:0;overflow:hidden;border-color:#57412e;border-radius:11px;box-shadow:0 9px 30px #0002;margin:0;transition:border-color .2s,box-shadow .2s}.shop-card:hover{border-color:#8f8054;box-shadow:0 10px 35px #0003}.shop-visual{height:149px;position:relative;display:grid;place-items:center;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 110%,#9c743322,transparent 65%),repeating-linear-gradient(90deg,transparent 0 51px,#c4a77807 52px 53px),#21170f;border-bottom:1px solid #a5915522}.shop-card[data-shop-theme="forge"] .shop-visual{background:radial-gradient(ellipse at 50% 115%,#dc7b413d,transparent 66%),repeating-linear-gradient(90deg,transparent 0 51px,#d4a57d08 52px 53px),#28231c}.shop-emblem .icon{width:61px;height:61px;stroke-width:.8;color:#b89b61;filter:drop-shadow(0 0 18px #b5903522)}.shop-card[data-shop-theme="forge"] .shop-emblem .icon{color:#cd9d6e}.shop-visual-ring{position:absolute;z-index:-1;left:50%;top:17px;transform:translateX(-50%);width:112px;height:112px;border:1px solid #a0915922;border-radius:50%}.shop-visual-ring::before{content:'';position:absolute;inset:9px;border:1px solid #a0915915;border-radius:50%}.shop-serial{position:absolute;left:17px;top:14px;font-size:7px;letter-spacing:2px;color:#c6ad89}.shop-visual-label{position:absolute;bottom:12px;left:0;right:0;text-align:center;letter-spacing:2px;font-size:6px;color:#c6ad89}.shop-card-content{padding:21px 22px 17px}.shop-category{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-bottom:13px}.shop-category .overline{font-size:8px;margin:0}.shop-status{font-size:8px;color:#b2c4a0;display:inline-flex;gap:5px;align-items:center}.shop-status i{width:4px;height:4px;background:#a5bc8e;border-radius:50%}.shop-status.is-archived{color:var(--muted)}.shop-status.is-archived i{background:var(--muted)}.shop-card h3{font-family:Georgia,serif;font-size:24px;font-weight:400;line-height:1.2;margin-bottom:10px}.shop-card-content>p{font-size:11px;color:var(--muted);line-height:1.7;min-height:38px;margin-bottom:16px}.shop-meta{display:flex;gap:7px;align-items:center;font-size:9px;color:#baa98f;padding-bottom:19px}.shop-meta .icon{width:13px;height:13px}.shop-card-bottom{border-top:1px solid var(--border);padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.shop-management{display:flex;gap:3px}.shop-management button{border:0;padding:6px 7px;color:var(--muted);font-size:9px}.shop-card-bottom>.primary{font-size:10px;padding:8px 13px;gap:15px}.shop-card-bottom>.primary .icon{width:14px;height:14px}
.county-aside{padding-top:0}.follow-card{padding:25px 24px;background:linear-gradient(135deg,#49321f77,#211710aa);border:1px solid #8c684544;border-radius:11px;margin-bottom:15px}.aside-heading{display:flex;align-items:center;gap:10px;margin-bottom:20px}.aside-heading .icon{width:17px;height:17px;color:#cbb170}.aside-heading .overline{margin:0;font-size:8px}.follow-card h2{font-size:23px;margin-bottom:12px}.follow-card p{color:#c4b197;font-size:11px;line-height:1.85;margin-bottom:21px}.text-link{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#d0bb84;text-decoration:none;gap:10px}.text-link .icon{width:15px;height:15px}.text-link:hover{color:#f6de9f}.county-shortcut{display:flex;align-items:center;gap:12px;padding:16px 13px;border:1px solid var(--border);border-radius:9px;text-decoration:none;margin-bottom:10px;transition:background .2s,border-color .2s}.county-shortcut:hover{background:var(--panel);border-color:#8f8054}.shortcut-icon{width:31px;height:34px;display:grid;place-items:center;background:#b39d5322;border-radius:6px;color:#c2ae75}.shortcut-icon .icon{width:16px;height:16px}.county-shortcut>span:nth-child(2){flex:1;min-width:0}.county-shortcut strong{display:block;font-size:10px;font-weight:500}.county-shortcut small{display:block;font-size:8px;color:var(--muted);margin-top:4px}.county-shortcut>.icon{width:13px;height:13px;color:var(--muted)}.county-signature{padding:28px 10px 10px;display:flex;align-items:center;justify-content:center;gap:12px;opacity:.7}.county-signature span{font-size:8px;letter-spacing:2px;color:#c5ad87}.county-signature small{display:block;letter-spacing:0;font-family:Georgia,serif;font-style:italic;margin-top:7px;font-size:10px;color:#b7a183}
.empty-panel{padding:30px;text-align:center;border:1px dashed var(--border);border-radius:10px;color:var(--muted)}.empty-panel>.icon{width:28px;height:28px;margin-bottom:12px}.empty-panel h3{font-family:Georgia,serif;font-weight:400;font-size:20px;margin-bottom:7px}.empty-panel p{font-size:12px;margin:0}
.filters{padding:16px;background:var(--panel);border:1px solid var(--border);border-radius:10px}.filters label{font-size:10px}.filters button{height:38px}input:not([type=checkbox]),select,textarea{background:color-mix(in srgb,var(--bg) 80%,var(--panel));border-radius:7px;border-color:var(--border);transition:border-color .2s,box-shadow .2s}input:focus,select:focus,textarea:focus{border-color:var(--ember);box-shadow:0 0 0 3px color-mix(in srgb,var(--ember) 10%,transparent);outline:0}label{font-size:11px}th{padding:15px 13px;font-size:9px;color:#cbb796;letter-spacing:1px;background:#ffffff02}td{padding:16px 13px;font-size:12px;border-color:color-mix(in srgb,var(--border) 75%,transparent)}tbody tr:hover{background:#ffffff04}.badge{font-size:10px;padding:4px 9px}.pagination{font-size:11px}.note{border-left-width:2px;border-radius:0 7px 7px 0;padding:15px 17px;line-height:1.8}
dialog{border-radius:13px;padding:28px;background:var(--panel);border-color:#ad895d88;box-shadow:0 30px 100px #000b}dialog::backdrop{background:#090604c9;backdrop-filter:blur(5px)}.dialog-heading{padding-bottom:17px;border-bottom:1px solid var(--border);margin-bottom:23px}.dialog-heading h2{font-size:27px}.dialog-heading button{width:31px;height:31px;min-height:31px}.form-footer{border-top:1px solid var(--border);padding-top:20px}#toast{border-radius:9px;font-size:12px;padding:16px 20px;line-height:1.7;box-shadow:0 12px 50px #0007}
.composition-cart{border-top:2px solid var(--ember)}.product-tile{background:var(--bg);border-radius:10px;transition:border-color .2s}.product-tile:hover{border-color:var(--ember)}.cart-line h3{font-family:Georgia,serif;font-size:19px;font-weight:400}.cart-total{font-family:Georgia,serif;font-size:22px}.composition-workspace .card h2{font-size:25px}.mobile-cart-jump{left:258px}
@media(min-width:1700px){.welcome{min-height:340px}.welcome h1{font-size:54px}}
@media(max-width:1250px){.main{padding:0 27px 45px}.app-shell{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.brand{font-size:15px;gap:10px}.brand small{font-size:7px}.portal-layout{grid-template-columns:minmax(0,1fr) 235px;gap:20px}.section-heading{flex-wrap:wrap}.welcome h1{font-size:41px}.welcome{padding:30px}.portal-stats .stat{padding:16px}.mobile-cart-jump{left:231px}}
@media(max-width:1000px){.portal-layout{grid-template-columns:1fr}.county-aside{display:grid;grid-template-columns:1fr 1fr;gap:12px}.follow-card{grid-row:span 2;margin:0}.county-shortcut{margin:0}.county-signature{grid-column:1/-1;padding:15px}.portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome-content{max-width:85%}.welcome-art{object-position:58% center}.shop-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}.section-heading{flex-wrap:nowrap}}
@media(max-width:720px){.app-shell{display:block}.sidebar{position:relative;height:auto;padding:15px 19px 11px;border-right:0;border-bottom:1px solid var(--border);overflow:visible}.brand-row{justify-content:space-between;gap:10px}.brand{padding:0;font-size:17px;max-width:75%}.brand-crest{width:28px;height:35px}.brand small{display:block;font-size:6px;margin-top:4px}.brand-row #menu-toggle{display:flex;min-height:35px;font-size:10px;padding:6px 9px;gap:7px}.navigation-caption,.sidebar-seal{display:none}.sidebar nav{display:none;flex-direction:column;overflow:visible;margin-top:18px;padding:0}.menu-open .sidebar nav{display:flex}.sidebar nav a{font-size:12px;white-space:normal;min-height:43px}.sidebar-footer{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-top:0;padding:12px 0 0;font-size:9px}.sidebar-footer .user-avatar{display:none}.sidebar-footer small{font-size:8px;margin:0 0 0 auto}.sidebar-footer #logout{margin:0;font-size:9px;min-height:24px;padding:3px 7px}.main{padding:0 19px 35px}.topbar{min-height:59px;padding:12px 0;margin-bottom:20px;gap:8px}.breadcrumbs{font-size:9px;gap:9px}.breadcrumbs>span:first-child{font-size:7px;letter-spacing:1px}.topbar #service-indicator{font-size:9px}.topbar .actions{gap:5px}.topbar button{min-height:29px;padding:4px 7px}h1{font-size:30px}.page-head{gap:15px;margin-bottom:22px}.page-head p{font-size:12px}.page-head .actions{width:100%}.page-head .actions button{flex:1}.card{padding:19px}.welcome{min-height:410px;padding:27px 24px 145px;margin-bottom:17px}.welcome-content{max-width:100%}.welcome .overline{font-size:7px;letter-spacing:1.6px;margin-bottom:17px}.welcome h1{font-size:40px;line-height:1.1;max-width:260px}.welcome h1 span{display:block}.welcome-copy{font-size:11px;line-height:1.8;max-width:240px;margin-bottom:22px}.welcome-art{object-position:60% center}.welcome::after{background:linear-gradient(180deg,rgba(18,24,20,.93),rgba(18,24,20,.77) 45%,rgba(18,24,20,.12) 77%,rgba(18,24,20,.25))}.welcome-credit{bottom:12px;right:12px;font-size:8px}.welcome-foot{font-size:8px;gap:8px}.welcome-date .icon{width:12px}.desktop-break{display:none}.stats{gap:11px}.portal-stats .stat{padding:15px 16px}.stat-top{margin-bottom:12px}.portal-stats .stat label{font-size:10px;min-height:30px}.portal-stats .stat strong{font-size:30px}.stat-value{gap:5px}.stat-value>span{font-size:8px}.portal-stats .stat small{font-size:8px}.stat-icon{width:26px;height:26px}.stat-index{font-size:8px}.portal-layout{margin-top:28px;gap:27px}.section-heading{align-items:flex-start;gap:8px;flex-wrap:wrap}.section-heading h2{font-size:24px}.section-heading button{font-size:9px;min-height:33px}.shop-search input{font-size:10px}.shop-grid{grid-template-columns:1fr;gap:17px}.shop-visual{height:143px}.shop-card-content{padding:21px}.shop-card h3{font-size:26px}.shop-card-content>p{font-size:12px;min-height:0}.shop-category .overline{font-size:9px}.shop-status{font-size:9px}.shop-meta{font-size:10px}.shop-management button{font-size:10px;min-height:38px}.shop-card-bottom>.primary{font-size:11px;min-height:38px}.county-aside{display:block}.follow-card{margin-bottom:13px}.county-shortcut{margin-bottom:10px}.county-shortcut strong{font-size:12px}.county-shortcut small{font-size:10px}.follow-card p{font-size:12px}.text-link{font-size:12px}.follow-card .overline{font-size:9px}.filters{padding:13px}.filters label{min-width:110px}th,td{padding:13px 10px}.stat{padding:18px}.stat strong{font-size:30px}.mobile-cart-jump{left:19px;right:19px}dialog{padding:21px}.dialog-heading h2{font-size:24px}.form-footer button{min-height:42px}.composition-cart{scroll-margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
}
@media print{.welcome-art,.welcome-credit,.welcome::after,.county-aside,.shop-visual,.sidebar-seal,.shop-management,#menu-toggle{display:none!important}.portal-layout,.shop-grid{display:block}.shop-card{break-inside:avoid}.shop-card-content{padding:15px}.welcome h1 span{color:inherit}.stat-top{display:none}.icon{display:none}.overline{font-size:10px}.portal-stats .stat{break-inside:avoid}}
@media screen{
/* A single establishment gets a featured layout instead of an empty card grid. */
@media(min-width:1100px){
.shop-grid:has(>.shop-card:only-child){grid-template-columns:minmax(0,1fr)}
.shop-grid>.shop-card:only-child{display:grid;grid-template-columns:minmax(175px,30%) minmax(0,1fr)}
.shop-grid>.shop-card:only-child .shop-visual{height:100%;min-height:267px;border-bottom:0;border-right:1px solid #a5915522}
.shop-grid>.shop-card:only-child .shop-visual-ring{top:50%;margin-top:-67px;width:134px;height:134px}
.shop-grid>.shop-card:only-child .shop-emblem .icon{width:74px;height:74px}
.shop-grid>.shop-card:only-child .shop-card-content{padding:28px 29px 23px;display:flex;flex-direction:column}
.shop-grid>.shop-card:only-child h3{font-size:30px}.shop-grid>.shop-card:only-child .shop-card-content>p{font-size:12px;min-height:0;margin-bottom:24px}
.shop-grid>.shop-card:only-child .shop-card-bottom{margin-top:auto}
}
.stat-index{color:#baa78e}.portal-stats .stat small{color:#bfa98b;font-size:10px}.welcome-foot{font-size:11px}.county-shortcut strong{font-size:12px}.county-shortcut small{font-size:10px}.follow-card p{font-size:12px}.text-link{font-size:12px}.shop-management button{font-size:11px}.shop-card-bottom>.primary{font-size:12px}.shop-meta{font-size:11px}.shop-status{font-size:10px}.shop-card-content>p{font-size:12px}.section-heading button{font-size:11px}
@media(max-width:720px){.welcome-foot{font-size:9px}.portal-stats .stat small{font-size:9px}.shop-meta{font-size:10px}.shop-management button{font-size:10px}}
}

/* Teams are grouped by establishment; county access has its own compact panel. */
.accounts-section{margin-top:36px}
.accounts-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.accounts-heading .overline{margin-bottom:6px;font-size:8px}.accounts-heading h2{margin:0;font-size:27px}.accounts-heading p:last-child{font-size:12px;color:var(--muted);margin:7px 0 0}.accounts-heading button{gap:8px}.accounts-heading button .icon{width:16px;height:16px}
.accounts-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}.shop-teams{display:grid;gap:16px;min-width:0}
.shop-team{border:1px solid var(--border);border-radius:11px;background:var(--panel);overflow:hidden}
.team-heading{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--border);background:#ffffff02}.team-heading>div{flex:1;min-width:0}.team-heading h3{font:20px Georgia,serif;margin:0;overflow-wrap:anywhere}.team-heading p{font-size:10px;color:var(--muted);margin:5px 0 0}.team-symbol{width:34px;height:38px;color:var(--ember);display:grid;place-items:center;border:1px solid #cfb36d26;border-radius:7px;background:#cfb36d09}.team-symbol .icon{width:21px;height:21px}.team-add{gap:5px;color:var(--muted)}.team-add .icon{width:14px;height:14px}
.team-members,.county-officers{list-style:none;padding:0;margin:0}.team-member{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:20px 22px;border-bottom:1px solid var(--border)}.team-member:last-child{border-bottom:0}.account-avatar{display:grid;place-items:center;width:36px;height:36px;border:1px solid #d4bd7f24;border-radius:50%;background:#d4bd7f0b;font:17px Georgia,serif;color:#cfbc88}.account-identity{min-width:0}.account-identity strong{display:block;font-size:12px;font-weight:550;overflow-wrap:anywhere}.account-identity small{display:block;margin-top:4px;font-size:10px;color:var(--muted);overflow-wrap:anywhere}.team-role{font-size:10px;color:var(--muted);padding:4px 9px;border:1px solid var(--border);border-radius:5px;white-space:nowrap}.team-role.is-manager{color:#d9c38a;border-color:#cfb36d30;background:#cfb36d0a}.team-member>button{font-size:11px;color:var(--muted);margin-left:7px}.unassigned-member{grid-template-columns:36px minmax(0,1fr) auto}.team-empty{font-size:12px;line-height:1.8;color:var(--muted);padding:23px}
.county-access{padding:22px;border:1px solid #cfb36d30;border-radius:11px;background:linear-gradient(140deg,#cfb36d0b,transparent)}.county-access-title{display:flex;align-items:center;gap:10px;color:var(--ember)}.county-access-title .icon{width:18px;height:18px}.county-access h3{font:20px Georgia,serif;color:var(--text);margin:0}.county-access>p{font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0 20px}.county-officers>li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:0 10px;padding:15px 0;border-top:1px solid var(--border)}.county-officers .account-avatar{width:32px;height:32px;grid-row:span 2;font-size:15px}.county-role{grid-column:2;font-size:10px;color:var(--ember);margin-top:6px}.county-officers .team-empty{display:block}.county-access-foot{display:flex;align-items:flex-start;gap:8px;padding-top:17px;margin-top:3px;border-top:1px solid var(--border);font-size:10px;line-height:1.8;color:var(--muted)}.county-access-foot .icon{width:14px;height:14px;margin-top:2px}.county-access>button{margin-top:18px;font-size:11px}
@media(max-width:1150px){.accounts-layout{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.team-member{gap:9px;padding:18px 16px}.team-heading{padding:18px 16px}.team-member>button{margin-left:0}}
@media(max-width:950px){.accounts-layout{grid-template-columns:1fr}.county-access{max-width:none}.county-access>p br{display:none}.county-officers{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 20px}.county-access>button{width:auto}}
@media(max-width:720px){.accounts-section{margin-top:30px}.accounts-heading{align-items:flex-start;flex-direction:column;gap:17px}.accounts-heading h2{font-size:26px}.accounts-heading>button{min-height:42px}.team-heading h3{font-size:19px}.team-heading{gap:10px}.team-member{grid-template-columns:34px minmax(0,1fr) auto;gap:10px;padding:18px 16px}.team-member>button{grid-column:2/-1;justify-self:start;padding:5px 0;border-color:transparent;min-height:34px;text-decoration:underline;text-underline-offset:4px}.team-member .account-avatar{width:34px;height:34px}.account-identity strong{font-size:12px}.team-role{font-size:9px;padding:3px 6px}.county-access{padding:21px}.county-access-foot{font-size:11px}.team-add{font-size:10px;padding:6px}.unassigned-member{grid-template-columns:34px minmax(0,1fr)}}
@media print{.accounts-heading button,.team-member button,.team-add,.county-access>button{display:none}.accounts-layout{display:block}.shop-team,.county-access{break-inside:avoid;margin-bottom:15px}}

/* Shop imagery follows the activity/forge identity, never the manufacturing switch. */
.shop-card[data-shop-visual="artisanat"] .shop-visual{background:radial-gradient(ellipse at 50% 110%,#b68b5230,transparent 70%),repeating-linear-gradient(0deg,transparent 0 25px,#d6b98008 26px 27px),repeating-linear-gradient(90deg,transparent 0 25px,#d6b98008 26px 27px),#2a1d12}
.shop-card[data-shop-visual="artisanat"] .shop-emblem .icon{color:#d9bf95;filter:drop-shadow(0 0 18px #bd965d22)}
.shop-card[data-shop-visual="artisanat"] .shop-visual-ring{border-radius:8px;transform:translateX(-50%) rotate(45deg)}
.shop-card[data-shop-visual="artisanat"] .shop-visual-ring::before{border-radius:4px}
.shop-card[data-shop-visual="terre"] .shop-visual{background:radial-gradient(ellipse at 50% 100%,#a77d4b35,transparent 70%),linear-gradient(155deg,#2d2218,#1d150e)}
.shop-card[data-shop-visual="terre"] .shop-emblem .icon{color:#cab38e}
.shop-card[data-shop-visual="recolte"] .shop-visual{background:radial-gradient(ellipse at 50% 110%,#c9a54935,transparent 70%),repeating-linear-gradient(115deg,transparent 0 33px,#e2c88808 34px 35px),#2e2416}
.shop-card[data-shop-visual="recolte"] .shop-emblem .icon{color:#d3ba79}
.shop-card[data-shop-visual="divertissement"] .shop-visual{background:radial-gradient(ellipse at 50% 100%,#a86b6133,transparent 70%),linear-gradient(140deg,#2b1c1c,#1c1114)}
.shop-card[data-shop-visual="divertissement"] .shop-emblem .icon{color:#d4b2a5}

/* Équipes compactes, ouverture native au clavier et à la souris. */
.shop-team>summary.team-heading{list-style:none;margin:0;color:var(--text);cursor:pointer;border-bottom:0}.shop-team>summary::-webkit-details-marker{display:none}.shop-team[open]>summary.team-heading{border-bottom:1px solid var(--border)}.shop-team>summary:hover{background:#ffffff05}.shop-team>summary:focus-visible{outline:2px solid var(--ember);outline-offset:-3px}.team-symbol{flex-shrink:0}.team-toggle{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);white-space:nowrap}.team-chevron{font-size:20px;color:var(--ember)}.team-collapse,.shop-team[open] .team-expand{display:none}.shop-team[open] .team-collapse{display:inline}.shop-team[open] .team-chevron{transform:rotate(180deg)}.team-tools{display:flex;justify-content:flex-end;padding:14px 22px 0}
@media(max-width:480px){.team-toggle{gap:6px;font-size:10px}.team-tools{padding:12px 16px 0}}

/* County time series: native, interactive SVG; exact data remains accessible. */
.statistics-filters { gap: 16px; align-items: end; }
.statistics-filters .actions { flex-wrap: wrap; gap: 8px; }
.statistics-help { margin: 18px 0 24px; }
.statistics-charts { display: grid; gap: 24px; }
.statistics-card { --curve: #d4af37; min-width: 0; margin: 0; }
.statistics-card.sage { --curve: #a7c7a0; }
.statistics-card.blue { --curve: #8cb8d0; }
.statistics-card header { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.statistics-card h2 { margin: 6px 0 12px; }
.statistics-card .eyebrow { color: var(--curve); font-size: 10px; letter-spacing: .18em; }
.statistics-number { text-align: right; max-width: 42%; }
.statistics-number strong { display: block; color: var(--curve); font-family: Georgia,serif; font-size: clamp(28px,3vw,40px); line-height: 1.2; }
.statistics-number small { display: block; color: var(--muted,#c6b398); margin-top: 6px; }
.curve-plot { position: relative; margin: 24px 0 12px; color: var(--curve); }
.curve-plot svg { display: block; width: 100%; height: 280px; overflow: visible; touch-action: pan-y; }
.curve-line { stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.curve-area { fill: currentColor; opacity: .07; }
.curve-grid { stroke: #c6b398; opacity: .16; stroke-dasharray: 3 5; }
.curve-axis { fill: #c6b398; font: 11px system-ui,sans-serif; }
.curve-guide { stroke: currentColor; opacity: .6; stroke-dasharray: 4 4; }
.curve-dot { fill: #251a12; stroke: currentColor; stroke-width: 2.5; }
.curve-tooltip { position: absolute; pointer-events: none; max-width: min(330px,95%); background: #110d0a; color: #f3e8d5; border: 1px solid var(--curve); border-radius: 8px; padding: 10px 13px; box-shadow: 0 8px 24px #0006; font-size: 12px; z-index: 2; }
.statistics-loading button { margin: 12px 12px 0 0; }
@media (max-width: 650px) {
 .statistics-card { padding: 18px; }
 .statistics-card header { flex-direction: column; gap: 8px; }
 .statistics-number { text-align: left; max-width: 100%; }
 .statistics-filters .actions { width: 100%; }
 .curve-axis { font-size: 10px; }
}
@media print { .statistics-filters,.statistics-help,.curve-tooltip { display:none; } .statistics-card { break-inside:avoid; } }

.curve-plot svg:focus-visible { outline: 2px solid var(--curve); outline-offset: 4px; border-radius: 4px; }

/* Compact, keyboard-accessible navigation groups, shared by portal and shops. */
.sidebar nav .nav-group { margin: 0; min-width: 0; }
.sidebar nav .nav-group > summary { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 12px; margin: 0; border: 1px solid transparent; border-radius: 7px; color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
.sidebar nav .nav-group > summary::-webkit-details-marker { display: none; }
.sidebar nav .nav-group > summary > .icon { width: 18px; height: 18px; flex-shrink: 0; color: #b5a080; }
.sidebar nav .nav-group > summary > span:first-of-type { flex: 1; min-width: 0; }
.sidebar nav .nav-group > summary:hover { background: #ffffff05; color: var(--text); }
.sidebar nav .nav-group.contains-active > summary { color: var(--ember); }
.sidebar nav .nav-chevron { font-size: 19px; line-height: 1; transition: transform .15s; }
.sidebar nav .nav-group[open] > summary .nav-chevron { transform: rotate(90deg); }
.sidebar nav .nav-submenu { display: flex; flex-direction: column; gap: 3px; margin: 3px 0 9px 21px; padding-left: 9px; border-left: 1px solid var(--border); }
.sidebar nav .nav-submenu a { min-height: 37px; padding: 8px 9px; gap: 8px; font-size: 11px; white-space: normal; }
.sidebar nav .nav-submenu a > .icon { width: 15px; height: 15px; flex-shrink: 0; }
@media(max-width:720px) {
 .sidebar nav .nav-group > summary { min-height: 44px; font-size: 13px; }
 .sidebar nav .nav-submenu a { min-height: 42px; font-size: 12px; }
}

.expense-toolbar { margin-bottom: 20px; gap: 10px; }
.equipment-line { min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin: 18px 0; }
.equipment-line legend { padding: 0 8px; color: var(--ember); }
.expense-period { margin: 20px 0; }
.expense-period .form-row { margin-top: 15px; }

.salary-rate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
@media(max-width:540px) { .salary-rate-row { grid-template-columns: 1fr; gap: 0; padding-bottom: 10px; } }

/* Current guard composition, alongside the historical county curves. */
.statistics-live { margin: 16px 0 28px; font-size: 12px; }
.guard-statistics { margin: 28px 0 36px; }
.guard-statistics .page-head { margin-bottom: 20px; }
.guard-distribution-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.guard-distribution-card { min-width: 0; margin: 0; padding: 22px; }
.guard-distribution-card h3 { margin: 0 0 20px; font-size: 20px; }
.guard-donut-plot { position: relative; max-width: 260px; margin: 0 auto 26px; }
.guard-donut-plot svg { width: 100%; display: block; overflow: visible; }
.guard-donut-plot svg [data-key] { cursor: pointer; transition: opacity .15s; stroke-linejoin: round; }
.guard-donut-plot svg path.is-highlighted { stroke: #f3e8d5; stroke-width: 2; }
.guard-donut-empty { fill: none; stroke: #b9b19a22; stroke-width: 30; }
.guard-donut-total { fill: #f3e8d5; font: 32px Georgia,serif; pointer-events: none; }
.guard-donut-caption { fill: #c6b398; font: 12px system-ui,sans-serif; pointer-events: none; }
.guard-donut-tip { position: absolute; bottom: 0; left: 0; right: 0; padding: 9px 12px; background: #110d0a; border: 1px solid #d4af37; border-radius: 8px; color: #f3e8d5; box-shadow: 0 6px 18px #0006; font-size: 12px; pointer-events: none; z-index: 1; }
.guard-donut-legend { list-style: none; padding: 2px 6px 2px 2px; margin: 0; display: grid; gap: 10px; max-height: 284px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #b9b19a55 transparent; }
.guard-donut-legend li { height: 48px; }
.guard-legend-panel { min-width: 0; }
.guard-legend-hint { margin: 12px 0 0; font-size: 11px; }
.guard-donut-legend button { display: grid; grid-template-columns: 10px minmax(0,1fr) auto 52px; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 8px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 6px; font-weight: normal; }
.guard-donut-legend button > span:not(.guard-donut-swatch) { overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 18px; }
.guard-donut-legend button small { text-align: right; color: #c6b398; }
.guard-donut-legend button.is-highlighted { background: #d4af3710; border-color: #d4af3744; }
.guard-donut-legend button:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; }
.guard-donut-swatch { width: 10px; height: 10px; border-radius: 3px; }
@media(max-width:1100px) { .guard-distribution-grid { grid-template-columns: 1fr; } .guard-distribution-card > div { display: grid; grid-template-columns: minmax(180px,260px) minmax(0,1fr); gap: 24px; align-items: center; } .guard-donut-plot { width: 100%; } }
@media(max-width:560px) { .guard-distribution-card > div { display: block; } .guard-distribution-card { padding: 18px; } }
@media print { .guard-distribution-card { break-inside: avoid; } .guard-donut-tip,.statistics-live { display: none; } }

.guard-member-list { list-style: none; padding: 0 10px 0 0; margin: 22px 0; max-height: 55vh; overflow-y: auto; overscroll-behavior: contain; }
.guard-member-list li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.guard-member-list li:first-child { padding-top: 0; }
.guard-member-list strong { display: block; font-size: 17px; margin-bottom: 12px; }
.guard-member-list dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 0; }
.guard-member-list dt { color: var(--muted,#c6b398); font-size: 11px; margin-bottom: 5px; }
.guard-member-list dd { margin: 0; overflow-wrap: anywhere; }
.guard-detail-status { margin-top: 20px; font-size: 12px; }
@media(max-width:560px) { .guard-member-list dl { grid-template-columns: 1fr; gap: 10px; } }
@media print { .guard-donut-legend { max-height: none; overflow: visible; } .guard-legend-hint { display: none; } }

.guard-statistics > p { margin: 22px 0; }

/* Revenue overview: three primary figures, supporting details on demand. */
.revenue-period { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.revenue-period label { flex: 0 1 230px; margin: 0; }
.revenue-period > p { margin: 0 0 10px auto; }
.stats.revenue-highlights { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 24px 0; }
.revenue-highlights .stat { min-width: 0; padding: 26px; }
.revenue-highlights .stat:last-child { border-top: 2px solid var(--ember); }
.revenue-shortcuts { margin: 28px 0; }
.revenue-shortcuts .actions { gap: 12px; flex-wrap: wrap; }
.revenue-shortcuts > p { display: grid; gap: 8px; margin: 18px 0 0; font-size: 12px; }
.revenue-details { display: grid; gap: 14px; margin-bottom: 26px; }
.revenue-details .card { margin: 0; padding: 20px 24px; }
.revenue-details summary { color: var(--text); font-size: 15px; padding: 4px 0; }
.revenue-details summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 6px; }
.revenue-details details[open] summary { margin-bottom: 24px; }
.revenue-breakdown { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; margin: 0 0 24px; }
.revenue-breakdown > div { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.revenue-breakdown dt { color: var(--muted); }
.revenue-breakdown dd { margin: 0; text-align: right; white-space: nowrap; }
.revenue-details h3 { margin-top: 28px; }
.revenue-export { gap: 12px; flex-wrap: wrap; }
@media(max-width:900px) { .revenue-breakdown { grid-template-columns: 1fr; } }
@media(max-width:650px) {
 .stats.revenue-highlights { grid-template-columns: 1fr; gap: 14px; }
 .revenue-highlights .stat { padding: 20px; }
 .revenue-period label { flex: 1 1 180px; }
 .revenue-period > p { width: 100%; margin: 0; }
 .revenue-details .card { padding: 18px; }
 .revenue-breakdown > div { flex-wrap: wrap; gap: 6px 16px; }
}

/* Bruma — ink, walnut and antique gold. Decorative layers never intercept controls. */
@media screen {
 :root { --radius:6px; }
 body[data-theme="bruma"] { --bg:#100d0b; --panel:#1c1612; --raised:#2a211a; --border:#493929; --text:#f3e8d5; --muted:#bcae99; --ember:#ceb17a; --green:#a9bd9b; --red:#eea295; }
 body { background:radial-gradient(ellipse at 90% 0,#75512a18,transparent 48%),var(--bg); }
 .sidebar { background:linear-gradient(180deg,#20160f,#130e0b 45%); border-right-color:#6a503544; }
 .brand { letter-spacing:.2px; }
 .brand-crest { filter:drop-shadow(0 2px 8px #0008); }
 .navigation-caption { padding-bottom:11px; border-bottom:1px solid #b58c4f33; letter-spacing:2.4px; }
 .sidebar nav a { border-radius:3px; }
 .sidebar nav a.active { background:linear-gradient(90deg,#b7894430,#b7894406); border-color:#c49b5b44; color:#ead2a5; box-shadow:inset 2px 0 #c8a266; }
 .sidebar nav a.active .icon { color:#dfbf86; }
 .sidebar-seal { padding-top:92px; background:url('/assets/bruma-astrolabe.svg') center 20px / 160px no-repeat; }
 .sidebar-seal>span,.sidebar-seal>small { background:#150f0be8; padding:3px; }
 .topbar { border-bottom:1px solid #98744733; }
 h1,h2 { letter-spacing:-.35px; color:var(--text); }
 .page-head { padding-bottom:23px; border-bottom:1px solid #b68a4938; position:relative; }
 .page-head::after { content:''; position:absolute; bottom:-3px; left:0; width:5px; height:5px; transform:rotate(45deg); background:var(--ember); }
 .overline { letter-spacing:2.6px; }
 button,.button { border-radius:4px; min-height:40px; }
 button.primary,.button.primary { background:linear-gradient(120deg,#ead1a1,#c5a067); border-color:#d4b47f; color:#24190e; box-shadow:inset 0 1px #fff5,0 3px 12px #0003; }
 button.primary:hover,.button.primary:hover { background:linear-gradient(120deg,#f2deb6,#d7b781); border-color:#ebd0a0; }
 .card,.stat,.filters,.follow-card,.shop-card.card,.county-shortcut,.court-position { border-radius:6px; }
 .card { background:linear-gradient(135deg,#ffffff03,transparent 45%),var(--panel); box-shadow:0 10px 30px #0002; }
 .stat { position:relative; background:linear-gradient(120deg,#2c2016,var(--panel) 65%); border-color:#79593666; }
 .stat::after { content:''; position:absolute; right:7px; top:7px; width:13px; height:13px; border-top:1px solid #bd925866; border-right:1px solid #bd925866; pointer-events:none; }
 .stat-icon { border-radius:50%; background:#b0884510; border-color:#b7955c44; }
 .portal-stats .stat.accent { background:linear-gradient(130deg,#52391f88,var(--panel)); border-color:#c29a5c88; }
 .stat strong { color:#ead4ae; }
 .welcome { border-radius:6px; border-color:#af885780; padding:46px 40px; background:#24180f; box-shadow:0 16px 50px #0004; }
 .welcome::before { content:''; position:absolute; inset:9px; z-index:1; border:1px solid #d8b37440; pointer-events:none; }
 .welcome-content { z-index:2; }
 .welcome h1 { font-size:clamp(36px,3.8vw,58px); max-width:560px; font-weight:400; }
 .welcome h1 span { display:block; color:#e0c18c; font-style:italic; }
 .welcome .overline { font-size:9px; letter-spacing:3px; }
 .welcome-art,.login-photo { filter:sepia(.38) saturate(.65) brightness(.8); }
 .welcome::after { background:url('/assets/bruma-astrolabe.svg') right -95px center / 420px no-repeat,linear-gradient(90deg,#170f09fa,#170f09dd 32%,#21140855 76%),linear-gradient(0deg,#160e09a6,transparent 65%); }
 .welcome-credit { z-index:2; bottom:20px; right:22px; }
 .welcome-copy { color:#e0d1bb; font-size:13px; }
 .welcome-divider { background:#a48150; }
 .section-heading { border-bottom:1px solid #b68a4933; padding-bottom:17px; }
 .shop-card.card { border-color:#89653f77; }
 .shop-visual { background:radial-gradient(ellipse at center,#94602c25,transparent 65%),#21170f; }
 .shop-visual::after { content:''; position:absolute; inset:8px; border:1px solid #c19a6038; pointer-events:none; }
 .shop-visual-ring { background:url('/assets/bruma-astrolabe.svg') center / contain no-repeat; width:128px; height:128px; top:10px; border:0; }
 .shop-visual-ring::before { display:none; }
 .shop-emblem .icon { color:#dbbd86; background:#21170fcc; border-radius:50%; padding:5px; }
 .shop-card-content { background:linear-gradient(130deg,#2b1e121f,transparent); }
 .follow-card { background:linear-gradient(130deg,#3b2a1b,#21170f); border-color:#a57d454d; }
 .county-shortcut { background:#1c140e; }
 .shortcut-icon { border-radius:50%; background:#b995571c; }
 .shop-search input { background:var(--bg); border-color:var(--border); }
 .filters { background:linear-gradient(120deg,#2a1e1455,transparent),var(--panel); padding:19px; gap:14px; }
 .filters label { font-size:11px; }
 input:not([type=checkbox]),select,textarea { border-radius:4px; background:#120e0b; border-color:#70583e; }
 input::placeholder,textarea::placeholder { color:#ad9c85; opacity:1; }
 select option { background:#1c1612; color:#f3e8d5; }
 th { color:#d6bf9b; background:#bd905110; border-bottom-color:#89663d; }
 td { border-color:#a4804c26; }
 tbody tr:hover { background:#d4ac6720; }
 .badge { border-color:#b496623d; }
 .note { background:#33251988; border-left-color:#b9945b; color:#d1bfa6; border-radius:0 4px 4px 0; }
 dialog { border-radius:7px; border-color:#af895c; background:linear-gradient(135deg,#33241866,transparent 45%),#1c1612; }
 dialog::backdrop { background:#080503cc; }
 .dialog-heading { border-color:#a57e4755; }
 fieldset { min-width:0; margin:22px 0 0; padding:20px; border:1px solid #86643e88; border-radius:4px; }
 legend { padding:0 9px; font-family:Georgia,serif; color:#e0c18c; font-size:16px; }
 fieldset>label:last-child { margin-bottom:0; }
 :focus-visible { outline:2px solid #ebca91; outline-offset:4px; }
 @media(max-width:720px) {
  .welcome { padding:29px 25px; }
  .welcome h1 { font-size:38px; }
  .welcome::after { background-size:280px,auto,auto; background-position:right -130px center,center,center; }
  .welcome .overline { font-size:8px; letter-spacing:2px; }
  .page-head { padding-bottom:20px; }
  .filters { padding:16px; }
  .filters label { min-width:0; flex:1 1 140px; }
  fieldset { padding:16px; }
 }
}

/* Keep property details readable in the door directory. */
.county-property-description { white-space: pre-line; line-height: 1.9; padding: 4px 0; overflow-wrap: anywhere; }

.oriental-contract .contract-description { white-space:pre-wrap; overflow-wrap:anywhere; }
.oriental-contract h2 { overflow-wrap:anywhere; }
.oriental-contract .page-head { margin-bottom:20px; }
.oriental-contract details>section { border-top:1px solid var(--border); padding-top:18px; }

.court-salary { border-top:1px solid var(--border); margin:20px 0; padding-top:18px; }
.court-salary p { line-height:1.8; }
.court-salary .county-row-actions { margin-top:14px; }

/* A person first, then a readable matrix of their effective county rights. */
[data-role-defaults] > .table-wrap { margin-top:20px; }
.person-picker{max-width:560px}.person-access-heading{margin:24px 0 18px}.person-access-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0}.person-access-toolbar p{flex-basis:100%;margin:0;min-height:1.5em}.personal-matrix{max-height:68vh;overflow:auto;border:1px solid var(--border);border-radius:8px}.personal-matrix table{margin:0;min-width:850px}.personal-matrix thead th{position:sticky;top:0;z-index:2;background:var(--panel,#241e17)}.personal-matrix tr>th:first-child{position:sticky;left:0;z-index:1;background:var(--panel,#241e17);width:230px}.personal-matrix thead th:first-child{z-index:3}.personal-matrix tbody tr:nth-child(even) td{background:#ffffff05}.personal-matrix td{padding:18px 12px}.personal-matrix input[type=checkbox]{accent-color:var(--gold,#d9b875);cursor:pointer}.mobile-table-hint{display:none}.person-access>p{line-height:1.7}@media(max-width:700px){.mobile-table-hint{display:block}.person-access{padding:16px}.person-access-toolbar button{flex:1 1 140px}.personal-matrix tr>th:first-child{min-width:160px;width:160px;max-width:160px}.personal-matrix{max-height:62vh}}

/* Discord permission management and accessible explanatory bubbles. */
.role-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px}.role-cards h2{margin-bottom:12px}.role-id{overflow-wrap:anywhere}.role-history{padding:14px 0;border-bottom:1px solid var(--border,#66523c)}.effective-permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;padding:20px}.roles-dialog{width:min(1150px,calc(100vw - 24px));max-width:1150px}.permission-matrix{margin:24px 0}.permission-matrix th{white-space:normal;min-width:125px}.permission-matrix th:first-child{min-width:205px}.permission-matrix td{text-align:center}.permission-matrix input[type=checkbox]{width:20px;height:20px}.info-tip-trigger{display:inline-flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:50%;width:23px;min-width:23px;height:23px;min-height:23px;padding:0;margin:4px;font:italic bold 15px Georgia,serif;vertical-align:middle;color:var(--gold,#d9b875);background:transparent}.info-tip-trigger:focus-visible{outline:2px solid #f0d6a2;outline-offset:3px}.info-tip{position:fixed;z-index:10000;width:max-content;max-width:min(390px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:16px 18px;background:#30261d;color:#f4ead8;border:1px solid #c9a96d;border-radius:8px;box-shadow:0 8px 28px #0009;font-size:14px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}input[readonly],textarea[readonly]{opacity:.75;cursor:default}

.sidebar-footer .discord-role-status,.sidebar-footer .discord-role-refresh{grid-column:1/-1;width:100%;margin-top:10px}.sidebar-footer .discord-role-refresh{font-size:11px;white-space:normal;text-align:center}

/* Listing Bruma: enabled for the selected forge only. */
body[data-forge-listing="1"]{--ember:#d4b461;--gold:#d4b461}
body[data-forge-listing="1"] .forge-workspace{grid-template-columns:minmax(0,1.2fr) minmax(360px,1fr);gap:24px}
.forge-workspace .composition-catalogue{padding:0;background:transparent;border:0}
.forge-workspace .composition-cart{border:1px solid #78633b;border-top:3px solid var(--ember);padding:24px;scrollbar-gutter:stable}
.forge-workspace .catalogue-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:12px}
.forge-filter-chips{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px;align-items:center}
.forge-filter-chips>span{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);flex-basis:100%}
.forge-filter-chips button{padding:7px 10px;font-size:12px;min-height:36px;background:var(--panel);white-space:normal;text-align:left}
.forge-filter-chips button[aria-pressed="true"]{background:var(--ember);border-color:var(--ember);color:#211a0f;font-weight:650}
.forge-catalogue-sort{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:20px 0 14px;border-top:1px solid var(--border);padding-top:14px}
.forge-catalogue-sort p{margin:0;max-width:55%}.forge-catalogue-sort label{margin:0;font-size:10px;max-width:45%}
.forge-workspace .product-tile{padding:16px;background:linear-gradient(145deg,#262018,#191611);display:flex;flex-direction:column}
.forge-product-heading{display:flex;gap:11px;align-items:start;margin-bottom:16px;min-height:65px}
.forge-product-heading>div{min-width:0}.forge-workspace .product-tile h3{margin:0 0 5px;font-family:inherit;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.forge-workspace .product-tile .eyebrow{font-size:10px;letter-spacing:0;line-height:1.4;margin:0;text-transform:none}
.forge-product-icon{width:39px;height:39px;border:1px solid #796439;background:#443823;color:#e1c781;border-radius:10px;display:grid;place-items:center;flex-shrink:0}
.forge-product-icon svg{width:24px;height:24px}.forge-workspace .product-tile>.badge{align-self:start;white-space:normal}
.forge-workspace .product-tile .fine{font-size:11px;margin:8px 0}.forge-workspace .product-tile [data-stock-theoretical]{color:var(--muted);margin-bottom:14px}
.forge-workspace .product-tile .forge-product-price{border-top:1px solid var(--border);padding-top:12px;margin-top:auto;margin-bottom:12px;text-align:right;color:var(--ember);font-size:23px;font-variant-numeric:tabular-nums}
.forge-product-price small{font-size:10px;font-weight:400;color:var(--muted)}.forge-workspace .product-controls{gap:10px}.forge-workspace [data-catalogue-action="add"]{flex:1;border-color:#796439;color:#e1c781;min-height:36px}
.forge-discounts{border:1px solid var(--border);border-radius:8px;padding:15px;margin:8px 0 24px}
.forge-discounts legend{padding:0 7px;font-size:12px;color:var(--text)}.forge-discounts label{display:flex;align-items:center;gap:10px;margin:0;padding:9px 0;cursor:pointer;color:var(--text)}
.forge-discounts input{width:18px;height:18px;flex-shrink:0}.forge-discounts .fine{line-height:1.6;margin:10px 0 0}
.forge-workspace .cart-line{padding:20px 0}.forge-workspace .sale-price-adjustment{margin-top:20px}.forge-workspace .client-picker{align-items:stretch;flex-direction:column}.forge-workspace .client-picker button{align-self:start}
@media(min-width:1550px){body[data-forge-listing="1"] .main{max-width:1850px}.forge-workspace .catalogue-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){body[data-forge-listing="1"] .forge-workspace{grid-template-columns:minmax(0,1fr) minmax(320px,1fr)}}
@media(max-width:900px){body[data-forge-listing="1"] .forge-workspace{grid-template-columns:minmax(0,1fr)}.forge-workspace .composition-cart{position:static;max-height:none}.forge-workspace .catalogue-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr))}}
@media(max-width:480px){.forge-workspace .composition-cart{padding:18px}.forge-catalogue-sort{align-items:start;flex-direction:column}.forge-catalogue-sort label,.forge-catalogue-sort p{max-width:100%}.forge-workspace .catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.forge-workspace .product-tile{padding:12px}.forge-product-heading{flex-direction:column;gap:8px;min-height:115px}.forge-workspace .product-controls{flex-direction:column}.forge-workspace .product-controls>button{width:100%}.forge-workspace .quantity-control{justify-content:space-between}.forge-workspace .quantity-control input{width:45px!important}.forge-workspace .product-tile .forge-product-price{font-size:20px}}

/* Shop-specific grades */
.shop-update-notice{position:fixed;right:24px;bottom:24px;z-index:20;display:flex;align-items:center;gap:16px;max-width:calc(100vw - 32px);padding:12px 16px;background:var(--panel,#211a13);color:var(--text,#f2e8d5);border:1px solid var(--border,#514333);border-radius:10px;box-shadow:0 5px 24px #0006}.shop-update-notice button{flex-shrink:0}@media(max-width:480px){.shop-update-notice{right:16px;bottom:16px;gap:10px;font-size:13px}}
.shop-grade-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px}.shop-grade-card{border:1px solid var(--border,#514333);border-radius:10px;padding:22px}.shop-grade-card ul{padding-left:18px;line-height:1.9}.shop-right-matrix{display:grid;gap:16px;margin-top:22px}.shop-right-matrix fieldset{border:1px solid var(--border,#514333);border-radius:8px;padding:16px}.shop-right-matrix legend{font-weight:bold;padding:0 8px}.shop-right-matrix .actions{margin:10px 0 0}.shop-right-matrix p{margin:0;font-size:13px}.shop-right-matrix input[type=checkbox]{width:auto}

/* Menus commerciaux : les stocks restent ceux des articles composant l’offre. */
.offer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:22px}
.offer-card h2{margin:20px 0 12px}.offer-card ul{padding-left:22px;line-height:1.9}
.offer-price{font-size:2rem;color:var(--gold,#c9ad72);margin:16px 0}.offer-price small{font-size:.9rem;color:var(--muted,#b8ad9b)}
.menu-picker{padding:0 0 24px;margin-bottom:24px;border-bottom:1px solid var(--border,#51422d)}
.menu-picker select{width:100%}.menu-picker button{margin-top:12px}.offer-cart-line{border-left:3px solid var(--gold,#c9ad72);padding-left:16px}
.offer-cart-line input{max-width:120px}.offer-summary{margin:20px 0}.offer-summary h3{margin-top:0}

/* Journal: bounded columns, compact rows and details spanning the table. */
.county-journal{width:100%;max-width:1180px;min-width:0;padding:16px}
.county-journal .journal-count{margin:0 0 12px;color:var(--muted);font-size:12px}
.county-journal .journal-scroll{max-height:60vh;overflow:auto;overscroll-behavior:contain}
.county-journal table{width:100%;min-width:0;table-layout:fixed;margin:0}
.county-journal th,.county-journal td{padding:9px 10px;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.county-journal th{position:sticky;top:0;background:var(--panel);z-index:1}
.county-journal th:nth-child(1){width:18%}.county-journal th:nth-child(2){width:25%}.county-journal th:nth-child(3){width:23%}.county-journal th:nth-child(4){width:22%}.county-journal th:nth-child(5){width:12%}
.shop-journal th:nth-child(1){width:22%}.shop-journal th:nth-child(2){width:32%}.shop-journal th:nth-child(3){width:30%}.shop-journal th:nth-child(4){width:16%}
.county-journal time{font-variant-numeric:tabular-nums}
.county-journal .journal-entry button{padding:3px 7px;min-height:28px;font-size:12px;max-width:100%}
.county-journal .journal-detail[hidden]{display:none}
.county-journal .journal-detail td{background:var(--bg)}
.county-journal .pre{margin:0;max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.county-journal .pagination{margin:14px 0 0;gap:12px;flex-wrap:wrap}
@media(max-width:900px){
 .county-journal{padding:12px}
 .county-journal thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .county-journal table,.county-journal tbody,.county-journal tr,.county-journal td{display:block;width:100%}
 .county-journal .journal-entry{padding:8px 0;border-bottom:1px solid var(--border)}
 .county-journal .journal-entry td{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;border:0;padding:3px 6px}
 .county-journal .journal-entry td::before{content:attr(data-label);color:var(--muted);font-size:11px}
 .county-journal .journal-entry button{justify-self:start;min-height:34px}
}
.journal-filters{display:block;max-width:1180px;margin-bottom:16px;min-width:0}
.journal-search{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.journal-search label{flex:1 1 240px;min-width:0}
.journal-filters p{font-size:11px;color:var(--muted);margin:8px 0 12px}
.journal-filters summary{cursor:pointer;font-size:12px}
.journal-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.journal-filter-grid label,.journal-filter-grid select,.journal-filter-grid input{min-width:0;width:100%}
@media(max-width:720px){.journal-filter-grid{grid-template-columns:1fr}.journal-filters label{min-width:0}.journal-search button{width:100%;justify-content:center}}

/* Owner-only site administration. */
.site-admin{max-width:1280px;min-width:0}.admin-private{font-size:11px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}.admin-toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:22px}.admin-toolbar label{min-width:180px}.admin-toolbar p{margin:0 0 8px;color:var(--muted);font-size:12px}.admin-health{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border:1px solid var(--border);border-left:3px solid var(--green);border-radius:6px;background:var(--panel);margin-bottom:20px}.admin-health strong{font-size:18px}.admin-health p{margin:4px 0 0;font-size:12px;color:var(--muted)}.admin-health>span{font-size:12px;color:var(--green)}.admin-health.has-issues{border-left-color:var(--ember)}.admin-health.has-issues>span{color:var(--ember)}.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.admin-stats .stat{min-width:0;padding:18px}.admin-stats .stat strong{font-size:29px;overflow-wrap:anywhere}.admin-stats .stat small{display:block;margin-top:8px}.admin-coverage{font-size:12px;color:var(--muted);margin:-10px 0 22px}.admin-charts,.admin-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:28px}.admin-chart,.admin-two-columns>.card{min-width:0;margin:0;padding:20px}.admin-chart h2,.admin-two-columns h2,.admin-issues h2{font-size:22px;margin:0 0 14px}.admin-chart-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.admin-chart-heading>span{font-size:11px;color:var(--muted)}.admin-chart svg{display:block;width:100%;height:auto;overflow:visible;touch-action:pan-y}.admin-chart svg:focus-visible{outline:2px solid var(--ember);outline-offset:4px}.admin-chart-grid{stroke:var(--border);stroke-width:1}.admin-chart-axis{fill:var(--muted);font-size:11px}.admin-chart-line{fill:none;stroke:#d9b875;stroke-width:2.5;stroke-linejoin:round}.admin-chart-point{fill:#d9b875}.admin-chart.sage .admin-chart-line{stroke:#a6bd82}.admin-chart.sage .admin-chart-point{fill:#a6bd82}.admin-chart.red .admin-chart-line{stroke:#ef9382}.admin-chart.red .admin-chart-point{fill:#ef9382}.admin-chart.blue .admin-chart-line{stroke:#8bb6d4}.admin-chart.blue .admin-chart-point{fill:#8bb6d4}.admin-chart-guide{stroke:var(--muted);stroke-dasharray:3 5;opacity:.5}.admin-chart .admin-chart-value{font-size:12px;min-height:20px;margin:8px 0}.admin-chart p,.admin-two-columns p{font-size:12px;line-height:1.6}.admin-chart summary{font-size:12px;cursor:pointer}.admin-chart details .table-wrap{max-height:240px;overflow:auto}.site-admin table{width:100%;min-width:0;table-layout:fixed}.site-admin th,.site-admin td{overflow-wrap:anywhere;white-space:normal;font-size:11px;padding:9px 8px}.site-admin .admin-two-columns th:first-child{width:40%}.admin-service-list,.admin-issues ul{list-style:none;padding:0;margin:0}.admin-service-list li{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--border);font-size:12px}.admin-ok{color:var(--green)}.admin-facts{margin:0}.admin-facts>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border);padding:10px 0;font-size:12px}.admin-facts dd{margin:0;font-variant-numeric:tabular-nums}.admin-issues{margin-bottom:20px}.admin-issues li{display:grid;gap:4px;margin-top:12px;font-size:12px}.admin-issues li span{color:var(--muted)}
@media(max-width:1100px){.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-charts,.admin-two-columns{grid-template-columns:1fr}}
@media(max-width:520px){.admin-stats{gap:10px}.admin-stats .stat{padding:13px}.admin-stats .stat strong{font-size:23px}.admin-health{align-items:start;flex-direction:column}.admin-toolbar{align-items:stretch}.admin-toolbar label{flex:1;min-width:0}.admin-chart,.admin-two-columns>.card{padding:14px}.admin-chart h2{font-size:21px}.admin-toolbar p{flex-basis:100%}.site-admin th,.site-admin td{padding:8px 5px;font-size:10px}}

/* Human-readable audit details, independent of the responsive table layout. */
.county-journal .journal-readable{max-height:340px;overflow:auto;padding:12px 4px;white-space:normal;line-height:1.6}
.county-journal .journal-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px 24px;margin:0}
.county-journal .journal-facts>div{min-width:0}
.county-journal .journal-facts dt{color:var(--muted);font-size:12px}
.county-journal .journal-facts dd{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.county-journal .journal-detail-group{margin-top:16px}
.county-journal .journal-detail-group h4{font:inherit;font-weight:600;margin:0 0 6px}
.county-journal .journal-detail-group ul{margin:0;padding-left:20px}

/* Purchase carts share the sales workspace without stock or selling-price restrictions. */
.purchase-workspace .form-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.purchase-workspace input,.purchase-workspace select{min-width:0}
.purchase-zero{display:flex;align-items:center;gap:.6rem;font-size:.9rem}
.purchase-zero[hidden]{display:none}
.purchase-zero input{width:auto}
.purchase-total{font-size:1.15rem;margin-block:1rem}
.purchase-history-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
.purchase-history-row>div{min-width:0}
.purchase-history-row h2{font-size:1.2rem}
.purchase-notes{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){.purchase-history-row{align-items:flex-start;flex-direction:column}.purchase-workspace .split{flex-wrap:wrap}.purchase-workspace .form-row{grid-template-columns:1fr}}

/* Optional article comments on purchase and sale cards. */
.product-tile .item-comment{margin:0 0 12px;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}
