/* Shared Command / Foundry shell. Product-specific layouts stay in their own stylesheet. */
body.product-shell{--ink:#101616;--surface:#192121;--line:#35413d;--text:#eee9dc;--muted:#afbab4;--bronze:#d2af77;--frost:#bed6d2;background:var(--ink);color:var(--text);font:14px "Segoe UI",sans-serif}
.product-shell .product-sidebar{position:fixed;inset:0 auto 0 0;width:248px;margin:0;padding:32px 24px;background:#141c1a;border:0;border-right:1px solid var(--line);display:flex;flex-direction:column;overflow:hidden;align-self:stretch;z-index:20}
.product-sidebar .sidebar-content{flex:1;min-height:0;overflow-y:auto;margin-right:-12px;padding-right:12px}
.product-sidebar .brand{display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none;letter-spacing:3px;color:var(--text)}
.product-sidebar .brand-mark{display:block;width:40px;height:40px;flex:0 0 40px;object-fit:contain}
.product-sidebar .brand>span{font-size:17px;font-weight:600;line-height:1.2;letter-spacing:3px;white-space:nowrap}
.product-sidebar .brand small{display:block;font-size:9px;letter-spacing:4px;margin-top:7px;color:var(--bronze)}
.product-sidebar .tagline{font-size:11px;color:var(--muted);margin:18px 0 0;line-height:1.7}
.sidebar-workspace{margin:35px 0 24px;padding:17px 14px;border:1px solid var(--line);border-left:2px solid var(--bronze);background:#1b2420;font-size:13px;line-height:1.6}
.sidebar-workspace small{display:block;font-size:11px;color:var(--muted);margin-top:6px}
.product-sidebar .workspace-label{display:block;font-size:8px;letter-spacing:2px;color:var(--bronze);margin-bottom:10px}
.product-sidebar nav{display:grid;gap:7px;border:0;margin:0;overflow:visible}
.product-sidebar .nav-label{color:var(--muted);font-size:8px;letter-spacing:1.7px;padding:18px 12px 4px}
.product-sidebar nav button{display:block;width:100%;text-align:left;border:1px solid transparent;border-radius:3px;background:transparent;color:#bdc8c0;padding:12px;font:14px "Segoe UI",sans-serif;white-space:normal}
.product-sidebar nav button.active,.product-sidebar nav button[aria-current=page]{background:#30362a;border-color:#56523c;color:#ebd3a8}
.product-sidebar nav button:hover{background:#354039;border-color:var(--bronze)}
.sidebar-note{margin:36px 0 28px;font-size:11px;color:var(--muted);line-height:1.8}
.product-sidebar footer{flex-shrink:0;margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-size:11px;color:#bcc8c0}
.product-sidebar footer small{display:block;margin-top:9px;font-size:9px;color:var(--muted)}
.staff-indicator{font-size:10px;color:#9cbdab;margin-right:6px}
.product-sidebar #logout{position:static;width:100%;min-width:0;margin:14px 0 0;padding:12px;display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:3px;background:transparent;color:#bdc8c0;box-shadow:none;text-align:left}
.product-sidebar #logout:hover{background:#30362a;border-color:#56523c;color:#ebd3a8}
.product-shell:not(.signed-out) .product-main{margin:0 0 0 248px;padding:0 40px;max-width:1760px;min-width:0}
.product-shell .product-header{height:78px;padding:0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:9px;letter-spacing:1.8px;color:var(--muted)}
.product-shell .product-header .badge{font-size:9px;padding:8px 11px;border:1px solid #56523c;color:var(--bronze);white-space:nowrap}
.product-shell .product-footer{margin:30px 0 25px;display:flex;justify-content:space-between;gap:15px;font-size:8px;letter-spacing:1.5px;color:#a0aca3}
.product-shell.signed-out>.product-sidebar,.product-shell.signed-out .product-header,.product-shell.signed-out .product-footer{display:none!important}
.foundry-shell:not(.signed-out){padding-bottom:0}
.foundry-shell .page-heading{margin:32px 0 28px}
.foundry-shell #area-title{font:400 44px/1.12 Georgia,"Times New Roman",serif;letter-spacing:-1.2px;margin:12px 0 15px}
.foundry-shell h2{font-size:21px}.foundry-shell .eyebrow{font-size:9px;letter-spacing:2px;color:var(--bronze)}
.foundry-shell:not(.signed-out) section,.foundry-shell .client-directory,.foundry-shell .settings-grid article{background:var(--surface);border:1px solid var(--line);border-radius:3px;padding:23px}
.foundry-shell:not(.signed-out) section{margin:22px 0}.foundry-shell #dashboard{margin-top:0}
.foundry-shell button:not(.client-card):not(.metric):not(#logout){border-radius:3px}
.foundry-shell .client-directory{position:static;width:auto;inset:auto;margin:0;align-self:start;min-width:0}
.foundry-shell .workspace{grid-template-columns:270px minmax(0,1fr);gap:24px}
.foundry-shell .metric{background:var(--surface);border-color:var(--line);border-radius:3px;padding:23px}
.foundry-shell .metric strong{color:var(--text);font:400 40px Georgia,serif}
.foundry-shell .metric:hover{background:#253028;border-color:var(--bronze)}
.foundry-shell input:not([type=checkbox]),.foundry-shell select,.foundry-shell textarea{border-radius:2px;padding:12px;background:#121a17;color:var(--text);border-color:#586353}
.foundry-shell #tabs{border:0;gap:7px;flex-wrap:wrap}
.foundry-shell #tabs button{border:1px solid transparent;padding:12px;color:#bdc8c0;background:transparent}
.foundry-shell #tabs button[aria-current=page]{background:#30362a;border-color:#56523c;color:#ebd3a8}
.foundry-shell button.secondary,.foundry-shell .pager button,.foundry-shell #search button{background:#222c29;border:1px solid #586252;color:var(--text)}
.foundry-shell button.primary{background:var(--bronze);color:#201d16;border:1px solid #ddc191;font-weight:600}
.foundry-shell button.primary:hover{background:#e4c795;border-color:#f1dfbd}
.foundry-shell :focus-visible{outline:2px solid var(--frost);outline-offset:4px}
@media(max-width:1100px){.product-shell .product-sidebar{width:210px;padding:25px 18px}.product-shell:not(.signed-out) .product-main{margin-left:210px;padding:0 24px}.foundry-shell .workspace{grid-template-columns:1fr}.foundry-shell .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.foundry-shell #clients{max-height:300px;overflow:auto}}
@media(max-width:700px){.product-shell .product-sidebar{position:static;width:auto;padding:20px}.product-sidebar .sidebar-content{overflow:visible;margin:0;padding:0}.product-sidebar .brand-mark{width:36px;height:36px;flex-basis:36px}.product-sidebar .sidebar-workspace,.product-sidebar .sidebar-note{display:none}.product-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:20px;gap:4px}.product-sidebar .nav-label{grid-column:1/-1}.product-sidebar footer{display:block;margin-top:18px}.product-sidebar footer small{display:none}.product-shell:not(.signed-out) .product-main{margin:0;padding:0 16px}.product-shell .product-header{height:64px;font-size:8px;letter-spacing:1px}.product-shell .product-header .badge{font-size:7px;padding:7px;white-space:normal}.foundry-shell #area-title{font-size:36px}.foundry-shell:not(.signed-out) section,.foundry-shell .client-directory{padding:20px}.product-shell .product-footer{flex-wrap:wrap;line-height:1.8}}
@media(prefers-reduced-motion:reduce){.product-shell *{transition:none!important}}

body.foundry-shell.signed-out .sign-in-splash input{padding:14px}

.product-sidebar .brand-header{flex-shrink:0;min-width:0}
.product-shell .splash-mark{display:block;flex:0 0 64px;width:64px;height:64px;object-fit:contain}
.product-shell .splash-brand{gap:16px;align-items:center}
@media(max-width:1100px) and (min-width:701px){.product-sidebar .brand{gap:10px}.product-sidebar .brand>span{font-size:16px;letter-spacing:2px}.product-sidebar .brand small{letter-spacing:3px}}
@media(max-width:600px){.product-shell .splash-mark{flex-basis:52px;width:52px;height:52px}.product-shell .splash-brand{gap:14px;font-size:20px}}
