/* Station owns the left rail. The active app owns the main canvas, from its top edge. */
body:has(.station-sidebar){--station-rail:224px;--station-header:0px}
body:has(.station-sidebar) .station-sidebar{top:0;bottom:0;width:var(--station-rail);padding:0;gap:0;background:#22251f;color:#eef0e9;border-right:1px solid #394036;overflow:auto;display:flex;flex-direction:column;flex-wrap:nowrap}
.station-sidebar .station-brand{display:flex;flex-direction:column;justify-content:center;gap:4px;flex-shrink:0;height:var(--station-app-header-height);min-height:var(--station-app-header-height);box-sizing:border-box;padding:12px;margin:0;border-radius:0;border-bottom:1px solid transparent;background:#f0a522;color:#22251f}
.station-brand img{width:108px;height:auto}.station-sidebar .station-brand>span{width:auto;font-size:10px;letter-spacing:3px;font-weight:700}
.station-sidebar .station-brand:hover{background:#f0a522}
.station-sidebar-content{padding:20px 12px;flex:1}
body:has(.station-sidebar) .station-sidebar a:not(.station-brand){color:#e3e6dd;font-size:13px;line-height:1.5;padding:10px 12px;border-radius:6px}
body:has(.station-sidebar) .station-sidebar a:not(.station-brand):hover{background:#ffffff0d}
body:has(.station-sidebar) .station-sidebar a[aria-current=page]{background:#ffffff12;color:#fff;box-shadow:none}
.station-sidebar .all-features{margin:4px 0 16px}.station-sidebar .all-features>summary{color:#e3e6dd;border-color:#ffffff25;padding:10px 12px;font-size:13px}
.station-sidebar .all-features nav{display:flex;flex-direction:column;padding:8px 0}.station-sidebar .all-features:not([open]) nav{display:none}
.station-sidebar .layout-main-nav{display:flex!important;flex-direction:column;gap:4px}.station-sidebar .layout-widget{color:#282828}
.station-sidebar .station-sidebar-group-label{color:#b4baad!important;margin:24px 12px 6px}
body:has(.station-sidebar) .station-sidebar-bottom,body:has(.station-sidebar) .admin-nav-bottom{margin:0;margin-top:auto;padding:16px 12px;border-top:1px solid #ffffff20;display:block}
.station-sidebar .account-actions{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:6px 0 0}
.station-sidebar .account{margin:0;min-width:0}.station-sidebar .account>span:last-child{display:block;overflow-wrap:anywhere}.station-sidebar .avatar{flex:0 0 32px;color:#fff;border-color:#ffffff40}.station-sidebar .avatar img{width:32px;height:32px;object-fit:cover;border-radius:50%}
.station-sidebar .account-actions form{margin:0;padding:0}.station-sidebar .account-actions .text-button{background:transparent;border:0;color:#bdc4b4;min-height:40px;padding:10px 12px;margin:0;font:inherit;font-size:13px;text-align:left;width:100%;cursor:pointer}.station-sidebar .account-actions .text-button:hover{color:#fff;background:#ffffff0d}
.station-sidebar .station-office-link:not([hidden]){display:flex!important}.station-sidebar :focus-visible{outline:2px solid #f0a522;outline-offset:2px}
body.station-admin .station-sidebar .station-brand{background:#22251f;color:#fff;border-bottom:1px solid #ffffff20}body.station-admin .station-brand img{filter:invert(1)}
body.station-admin .admin-sidebar>.admin-return{margin:16px 12px}.admin-sidebar>.admin-nav-label{margin:12px 24px;color:#b4baad}.admin-sidebar>a:not(.station-brand){margin:2px 12px}.admin-sidebar .admin-nav-bottom{display:block}
body:has(.station-sidebar)>.connected-app{height:100dvh}body:has(.station-sidebar)>.connected-app~.footer{display:none}
body:has(.station-sidebar)>.main{min-height:calc(100dvh - 90px)}
body:has(.station-sidebar) .tool-frame{height:calc(100dvh - 64px);min-height:400px}
body:has(.station-sidebar)>.station-menu-toggle{display:none}
@media(max-width:580px){
 body:has(.station-sidebar){--station-rail:48px;padding-left:48px}
 body:has(.station-sidebar)::before{content:'';position:fixed;inset:0 auto 0 0;width:48px;background:#22251f;z-index:31}
 body:has(.station-sidebar)>.station-menu-toggle{display:block;position:fixed;left:4px;top:12px;width:40px;height:40px;padding:0;margin:0;background:#22251f;color:#fff!important;border:1px solid #ffffff35;border-radius:6px;z-index:51;font-size:20px;cursor:pointer}
 body:has(.station-sidebar) .station-sidebar{left:48px;width:min(280px,calc(100vw - 48px));z-index:50;transform:translateX(calc(-100% - 48px));visibility:hidden}
 body:has(.station-sidebar) .station-sidebar.is-open{transform:none;visibility:visible;box-shadow:16px 0 40px #0004}
 body:has(.station-sidebar)>.main,body:has(.station-sidebar)>.tool-main,body:has(.station-sidebar)>.preview-main,body:has(.station-sidebar)>.connected-app{margin-left:0;width:100%}
 body:has(.station-sidebar)>.footer,body:has(.station-sidebar)>.notice{margin-left:0}
 body.station-admin .station-sidebar .admin-nav-bottom{display:block}
}

.station-sidebar-bottom .station-app-options{padding-bottom:16px;margin-bottom:12px;border-bottom:1px solid #ffffff20}.station-sidebar-bottom .station-app-options .station-sidebar-group-label{margin-top:0}

/* Administration shares the frontend geometry, with its own color cues. */
body.station-admin{--station-app-header-bg:#22251f;--station-app-header-ink:#fff}
body.station-admin .station-page-chrome .station-app-nav{background:#353b32}
body.station-admin .station-page-chrome .station-app-nav a[aria-current]{background:#ffffff18;color:#fff}
body.station-admin:has(.station-sidebar)>.main{padding:38px 40px 60px;min-height:calc(100dvh - 230px)}
body.station-admin .admin-heading h2{font-size:26px;font-weight:600;letter-spacing:-.03em;margin:6px 0 12px}
body.station-admin .admin-sidebar>.admin-return{display:flex;margin:20px 12px}
@media(max-width:1100px){body.station-admin:has(.station-sidebar)>.main{padding:28px 24px}}
@media(max-width:700px){body.station-admin:has(.station-sidebar)>.main{padding:25px 18px}}
@media(max-width:580px){body.station-admin:has(.station-sidebar)>.main{padding:24px 16px}}
body.station-admin .station-sidebar .station-brand>span{width:auto;font-size:10px;line-height:normal;letter-spacing:3px;font-weight:700}

.station-admin-menu{margin:0 0 8px}.station-admin-menu>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;padding:10px 12px;border-radius:6px;font-size:13px;font-weight:600;color:#e3e6dd;cursor:pointer}.station-admin-menu>summary::-webkit-details-marker{display:none}.station-admin-menu>summary::after{content:'▾';color:#aeb5a6}.station-admin-menu[open]>summary::after{content:'▴'}.station-admin-menu>summary:hover{background:#ffffff0d}.station-admin-menu>nav{padding:4px 0 8px}.station-admin-menu:not([open])>nav{display:none}

/* Compact, shared account footer with room for real names. */
.station-sidebar .account-actions{margin-top:8px;gap:4px;border-top:1px solid #ffffff16;padding-top:10px}
.station-sidebar .sidebar-account-row{display:flex;align-items:center;gap:4px;min-width:0}
body:has(.station-sidebar) .station-sidebar .sidebar-account-row .account{flex:1;min-width:0;gap:10px;padding:6px 8px}
.station-sidebar .sidebar-account-row .account>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;line-height:1.5}
.station-sidebar .sidebar-account-row form{flex:0 0 36px}
.station-sidebar .account-actions .sidebar-signout{display:flex;align-items:center;justify-content:center;width:36px;height:40px;min-height:40px;padding:0;border-radius:6px}
.station-sidebar .sidebar-signout svg{flex-shrink:0}
.station-sidebar .station-admin-menu{margin-bottom:0}
/* Open management links above the anchored toggle, without moving the footer. */
.station-sidebar .station-admin-menu{position:relative}
.station-sidebar .station-admin-menu[open]>nav{position:absolute;bottom:calc(100% + 6px);left:0;right:0;z-index:60;max-height:calc(100dvh - 190px);overflow-y:auto;padding:8px;background:#292d25;border:1px solid #ffffff25;border-radius:8px;box-shadow:0 -8px 28px #0004}

body:has(.station-sidebar)>.station-page-chrome~.connected-app{height:calc(100dvh - var(--station-app-header-height) - var(--station-app-nav-height))}
