/* Manual navigation width and context visibility, retained across routes. */
.workspace-menu-toggle,.workspace-context-control{display:none}
@media(min-width:901px){
 .workspace-menu-toggle,.workspace-context-control{display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid #ffffff18;background:#ffffff06;color:#cbbbd2;border-radius:9px;cursor:pointer}
 .workspace-menu-toggle{width:40px;height:28px;min-height:28px;margin:0 auto 12px;padding:4px}
 .workspace-menu-toggle svg,.workspace-context-control svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
 .workspace-rail-shell:not(.is-menu-expanded) .workspace-menu-toggle svg{transform:rotate(180deg)}
 .workspace-menu-toggle:hover,.workspace-context-control:hover{background:#ffffff12;color:#fff}
 .workspace-menu-toggle:focus-visible,.workspace-context-control:focus-visible{outline:3px solid #d2a6e4;outline-offset:2px}
 .workspace-context-control{width:32px;min-height:22px;height:22px;padding:2px;margin:-1px auto 4px;border:0;background:none}
 .workspace-context-control>span{display:none}.workspace-context-control svg{width:13px;height:13px;transform:rotate(90deg)}
 .is-context-closed .workspace-context-control svg{transform:rotate(-90deg)}
 #app .shell.workspace-rail-shell.is-menu-expanded,#app:has(.quote-focus-panel) .shell.workspace-rail-shell.is-menu-expanded{grid-template-columns:248px minmax(0,1fr)}
 #app .workspace-rail-shell.is-menu-expanded>.sidebar,#app:has(.quote-focus-panel) .workspace-rail-shell.is-menu-expanded>.sidebar{width:248px;max-width:none;padding:20px 12px 10px;position:relative}
 .workspace-rail-shell.is-menu-expanded .sidebar .brand{width:auto;justify-content:flex-start;gap:9px;margin:0 38px 17px 8px;height:34px}
 .workspace-rail-shell.is-menu-expanded .sidebar .brand img{width:31px;height:31px;min-width:31px}
 .workspace-rail-shell.is-menu-expanded .sidebar .brand .wordmark{display:inline!important;font-size:25px}
 .workspace-rail-shell.is-menu-expanded .workspace-menu-toggle{position:absolute;right:12px;top:23px;width:28px;height:28px;margin:0}
 .workspace-rail-shell.is-menu-expanded .sidebar .branch-switch{width:100%;height:56px;justify-content:flex-start;gap:10px;padding:9px;margin:0 0 15px}
 .workspace-rail-shell.is-menu-expanded .branch-switch>span:not(.initial){display:block;min-width:0;text-align:left;flex:1;overflow:hidden}
 .workspace-rail-shell.is-menu-expanded .branch-switch>span>strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .workspace-rail-shell.is-menu-expanded .branch-switch>span>small{display:none}
 .workspace-rail-shell.is-menu-expanded .branch-switch>svg{display:block;width:14px;height:14px}
 .workspace-rail-shell.is-menu-expanded .sidebar .workspace-rail-label{display:block!important;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left}
 .workspace-rail-shell.is-menu-expanded .sidebar .section-label{display:block!important;font-size:10px;letter-spacing:.035em;color:#a99caf;padding:14px 12px 7px;margin:0}
 .workspace-rail-shell.is-menu-expanded .sidebar .nav{width:100%;justify-content:flex-start;gap:11px;font-size:12px;padding:8px 11px;height:39px;min-height:39px;margin:2px 0;border-radius:10px}
 .workspace-rail-shell.is-menu-expanded .sidebar .nav .count{display:block!important;margin-left:auto;font-size:10px;padding:2px 5px}
 .workspace-rail-shell.is-menu-expanded .sidebar .nav>svg,.workspace-rail-shell.is-menu-expanded .sidebar .nav .sidebar-clay-icon,.workspace-rail-shell.is-menu-expanded .sidebar .nav>img{width:25px;height:25px;min-width:25px}
 .workspace-rail-shell.is-menu-expanded .sidebar .profile{width:100%;justify-content:flex-start;gap:10px;padding:5px 8px;margin:4px 0 0}
 .workspace-rail-shell.is-menu-expanded .sidebar .profile>div{display:block;min-width:0;font-size:12px;text-align:left}
 .workspace-rail-shell.is-menu-expanded .sidebar .profile small{font-size:10px;line-height:1.5}
 .workspace-rail-shell.is-menu-expanded .workspace-context-control{width:calc(100% - 22px);margin:2px 11px 3px;padding:2px 7px;justify-content:space-between}
 .workspace-rail-shell.is-menu-expanded .workspace-context-control>span{display:block;font-size:10px;color:#a99caf}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav{width:auto;height:auto;max-height:none;padding:6px 0 5px 35px;margin:0 0 6px 12px;border:0;background:none;overflow:visible}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav>.rail-context-kicker,.workspace-rail-shell.is-menu-expanded .workspace-section-nav>h2,.workspace-rail-shell.is-menu-expanded .workspace-section-nav>.rail-context-note{display:none}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav nav{gap:3px}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav nav>button{padding:8px 10px;font-size:11px;min-height:33px;border-radius:8px}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav>.rail-back{font-size:10px;margin:0 0 9px;padding:5px 9px}
 .workspace-rail-shell.is-menu-expanded>.content{grid-column:2!important}
 #app .workspace-rail-shell.is-menu-expanded>.topbar{left:248px!important;width:calc(calc(100 * var(--mane-vw,1vw)) - 254px)!important}
 .workspace-rail-shell.is-context-closed .workspace-section-nav{display:none}
 .workspace-rail-shell.has-context-options main>.document-tabs,.workspace-rail-shell.has-context-options .settings-main-tabs,.workspace-rail-shell.has-context-options .rail-context-duplicates{display:none}
 .workspace-rail-shell.is-context-closed .quote-focus-panel .quote-studio-steps{display:flex}
}
@media(prefers-reduced-motion:no-preference){.workspace-menu-toggle,.workspace-context-control{transition:background .15s,color .15s}}
@media(min-width:901px){
 .workspace-rail-shell.has-section-nav>.sidebar .workspace-context-control{display:none}
 .workspace-section-nav>.workspace-context-close{width:28px;height:28px;margin:-12px -5px 8px auto;padding:5px;border:1px solid #ffffff18;background:#ffffff06}
 .workspace-section-nav>.workspace-context-close svg{transform:none;width:15px;height:15px}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav>.workspace-context-close{display:none}
 .workspace-rail-shell.is-menu-expanded .side-bottom{min-height:0;max-height:55%;overflow-y:auto;flex-shrink:1;scrollbar-width:thin;scrollbar-color:#64546c transparent}
}

/* A single module row with a disclosure; its destinations stay visually secondary. */
@media(min-width:901px){
 .workspace-rail-shell.is-menu-expanded .sidebar .nav.active{background:#ffffff0b;box-shadow:inset 0 0 0 1px #ffffff0d}
 .workspace-rail-shell.is-menu-expanded .sidebar .nav.has-context-toggle{padding-right:36px}
 .workspace-rail-shell.is-menu-expanded .sidebar>.workspace-context-control,
 .workspace-rail-shell.is-menu-expanded .sidebar-scroll>.workspace-context-control,
 .workspace-rail-shell.is-menu-expanded .side-bottom>.workspace-context-control{width:28px;height:31px;min-height:31px;margin:-37px 3px 6px auto;padding:6px;position:relative;z-index:1;border-radius:7px;color:#ad9eb7;background:none}
 .workspace-rail-shell.is-menu-expanded .workspace-context-control:hover{background:#ffffff0c;color:#fff}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav{margin:4px 0 10px 23px;padding:0 0 0 22px;border-left:1px solid #ffffff16}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav nav{gap:1px}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav nav>button{position:relative;min-height:32px;padding:6px 10px;color:#b5aabd;font-size:11px;line-height:1.5;border:0;border-radius:6px;background:none}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav nav>button:hover{background:#ffffff06;color:#f8f4fa}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav nav>button[aria-current=page],
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav nav>button[aria-current=step]{background:#ffffff08;color:#f8f4fa;font-weight:600}
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav nav>button[aria-current=page]::before,
 .workspace-rail-shell.is-menu-expanded .workspace-section-nav nav>button[aria-current=step]::before{content:"";position:absolute;left:-25px;top:50%;width:5px;height:5px;border-radius:50%;background:#dab5df;transform:translateY(-50%)}
 .workspace-rail-shell.is-menu-expanded .sidebar .has-context-toggle .sidebar-order-grip{display:none}
 .workspace-rail-shell.is-menu-expanded .sidebar .sidebar-order-grip{opacity:0}
 .workspace-rail-shell.is-menu-expanded .sidebar .nav:hover .sidebar-order-grip,
 .workspace-rail-shell.is-menu-expanded .sidebar .nav:focus-visible .sidebar-order-grip{opacity:.65}
}

@media(min-width:901px){
 .workspace-rail-shell.has-section-nav>.workspace-section-nav{background:#111014}
 .workspace-section-nav nav>button[aria-current=page],.workspace-section-nav nav>button[aria-current=step]{background:#ffffff0b;color:#f8f4fa;border-color:#ffffff08}
 .workspace-section-nav nav>button[aria-current=step]>span{color:#c6b7ce}
}

/* The connection badge is an overlay: never a second flex item beside the icon. */
.sidebar .nav[data-nav=inbox]{position:relative}
.sidebar .nav[data-nav=inbox]>.inbox-connection-cue{position:absolute;right:7px;top:9px;width:7px;height:7px;margin:0;pointer-events:none;box-shadow:0 0 0 2px #131214}
@media(min-width:901px){
 .workspace-rail-shell:not(.is-menu-expanded) .sidebar .nav[data-nav=inbox]>.inbox-connection-cue{right:5px;top:9px}
 .workspace-rail-shell.is-menu-expanded .sidebar .nav[data-nav=inbox]>.inbox-connection-cue{left:31px;right:auto;top:8px}
 .workspace-rail-shell .workspace-menu-toggle,.workspace-rail-shell .workspace-context-close{background:linear-gradient(145deg,#39313f,#211d26);box-shadow:inset 0 1px 0 #ffffff0d;border:1px solid #ffffff12}
 .workspace-rail-shell .workspace-menu-toggle .navigation-clay-chevron,.workspace-rail-shell .workspace-context-control .navigation-clay-chevron{width:24px;height:24px;fill:none;stroke:none;transform:none!important}
 .workspace-rail-shell .workspace-menu-toggle{height:30px;min-height:30px;padding:1px}
 .workspace-rail-shell.is-menu-expanded .workspace-menu-toggle{height:28px;min-height:28px}
 .workspace-rail-shell .workspace-context-control .navigation-clay-chevron{width:19px;height:19px}
 .workspace-rail-shell .sidebar .nav svg.sidebar-clay-icon{width:28px;height:28px;min-width:28px;opacity:.96;filter:brightness(1.08)}
 .workspace-rail-shell .sidebar .nav.active svg.sidebar-clay-icon,.workspace-rail-shell .sidebar .nav:hover svg.sidebar-clay-icon{opacity:1;filter:none}
 .workspace-rail-shell .sidebar .nav.active,.workspace-rail-shell .sidebar .nav:hover{--clay-high:#ffe6d3;--clay-mid:#d5a1b7;--clay-low:#94669d}
 .workspace-rail-shell .sidebar .sidebar-maine-icon{opacity:.95;filter:grayscale(.4) brightness(1)}
}


/* Layout controls are understated; clay artwork belongs to the modules. */
@media(min-width:901px){
 .workspace-rail-shell .workspace-menu-toggle,.workspace-rail-shell .workspace-context-close{background:none;box-shadow:none;border-color:transparent;color:#b7aabd;border-radius:7px}
 .workspace-rail-shell .workspace-menu-toggle{width:32px;height:28px;min-height:28px;padding:4px}
 .workspace-rail-shell .workspace-menu-toggle:hover,.workspace-rail-shell .workspace-context-close:hover{background:#ffffff09;border-color:#ffffff0c;color:#f4edf7}
 .workspace-rail-shell .workspace-menu-toggle .navigation-panel-icon,.workspace-rail-shell .workspace-context-control .navigation-panel-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.45;transform:none}
 .workspace-rail-shell .navigation-panel-icon .navigation-panel-fill{fill:currentColor;fill-opacity:.14;stroke:none}
 .workspace-rail-shell .workspace-context-control .navigation-disclosure-icon{width:15px;height:15px}
}

.workspace-rail-shell:not(.is-menu-expanded) .sidebar [data-sidebar-order-grip]{display:none!important}
