/* Shared density pass, informed by the supplied HUD and GUI references. */
:root{--control-radius:4px}
.dropdown{width:1100px;gap:10px}
.dropdown .panel{width:175px;min-width:175px;border-radius:10px}
.dropdown .panel-head{height:37px;padding:0 11px}
.dropdown .panel-head strong{font-size:13px;letter-spacing:-.15px}
.dropdown .panel-head>.glyph{width:13px;height:13px;color:var(--accent);opacity:.8}
.dropdown .panel-head:after{left:10px;right:10px;background:#ffffff09}
.dropdown .panel-strip{height:35px;border-radius:9px 9px 5px 5px}
.dropdown .panel-content{padding:6px 5px 8px}
.dropdown .panel.collapsed{height:37px}
.dropdown .native-scrollbar{top:43px;right:2px;bottom:7px;width:1px}
.dropdown .module{margin-bottom:3px}
.dropdown .module-head{height:29px;border-radius:5px;border-color:#ffffff08;background:#ffffff01}
.dropdown .module-head:hover{border-color:#ffffff22;transform:none}
.dropdown .module-toggle{font-size:11.5px;padding:0 8px;line-height:18px;letter-spacing:-.1px}
.module-name{font-weight:600}
.dropdown .expand{width:19px;height:25px;margin-right:3px}
.dropdown .chevron{width:4px;height:4px}
.dropdown .no-settings-space{width:19px}
.dropdown .bind-chip{font-size:7px;padding:1px 3px;border-radius:3px}
.dropdown .module.enabled>.module-head{background:linear-gradient(110deg,rgba(var(--accent-rgb),.075),rgba(var(--accent-rgb),.02));border-color:rgba(var(--accent-rgb),.15)}
.dropdown .module.enabled .module-name{color:rgb(var(--accent-ink))}
.dropdown .module-settings{padding:7px 2px 5px;margin:0 3px;background:none;border-bottom:1px solid #ffffff06}
.setting,.inspector-scroll .setting{font-size:10.5px;min-height:24px;margin-bottom:4px;color:#9ba4b1}
.setting-line,.inspector-scroll .setting-line{height:25px;min-height:25px;gap:5px;padding:0 4px}
.setting-name{line-height:1.35;letter-spacing:-.1px}
.setting output,.inspector-scroll .setting output{font-size:9px;color:rgb(var(--accent-ink))}
.setting[data-kind=number],.inspector-scroll .setting[data-kind=number]{height:34px;padding:0 4px}
.setting[data-kind=number]>.setting-line,.inspector-scroll .setting[data-kind=number]>.setting-line{height:18px;min-height:18px;padding:0}
input[type=range]{height:2.5px;margin-top:5px}
input[type=range]::-webkit-slider-thumb{width:6px;height:6px}
.switch,.inspector-scroll .switch{width:23px;height:13px;min-width:23px;border-radius:8px;--thumb-distance:10px}
.switch:after,.inspector-scroll .switch:after{width:7px;height:7px;top:2px;left:2px}
.switch[aria-checked=true]:after,.inspector-scroll .switch[aria-checked=true]:after{left:12px}
.switch[aria-checked=true]{background:rgba(var(--accent-rgb),.6);border-color:rgba(var(--accent-rgb),.24)}
.switch[aria-checked=true]:after{background:rgb(var(--accent-ink))}
.pills,.inspector-scroll .pills{gap:3px;padding:0 3px 3px}
.pill,.cs .pill,.inspector-scroll .pill{height:20px;font-size:9px;min-width:24px;padding:0 6px;border-radius:4px;border:1px solid #ffffff08;background:#ffffff03}
.pill.active,.cs .pill.active{background:rgba(var(--accent-rgb),.16);border-color:rgba(var(--accent-rgb),.23);color:rgb(var(--accent-ink))}
.dropdown .pill{padding:0 4px;font-size:8.5px}
.key-button,.cs .key-button{height:17px;font-size:8px;padding:0 5px;border:0;border-radius:4px;color:rgb(var(--accent-ink));background:rgba(var(--accent-rgb),.12)}
.text-input,.cs .text-input{height:24px;font-size:9px;border-radius:4px;background:#ffffff03;border-color:#ffffff0a;padding:0 7px}
.setting[data-kind=text]{height:49px}
.setting[data-kind=multiselect],.inspector-scroll .setting[data-kind=multiselect]{height:36px;min-height:36px}
.setting[data-kind=multiselect]>.setting-line{height:36px;min-height:36px;padding-top:3px}
.multi-caption{font-size:7px;margin-top:3px;color:#636f7e}
.multi-popup{width:194px;border-radius:7px;padding:4px}
.multi-popup button{min-height:26px;padding:5px 6px;font-size:10px;line-height:14px}
.dropdown .theme-button{height:25px;font-size:10px;padding-left:22px;border-radius:5px}
.dropdown .theme-dot{left:9px;width:6px;height:6px}
.dropdown .theme-label{font-size:10px}
.dropdown .theme-editor{margin-top:8px;padding:0 3px 4px}
.dropdown .theme-editor .eyebrow{font-size:7px;margin:9px 0 6px}
.dropdown .color-well{height:75px;border-radius:4px;margin-top:6px}
.dropdown .hue-bar{height:7px;margin-top:7px}
.dropdown .theme-color-row{height:26px;font-size:9px}
.dropdown .theme-swatch{height:14px;width:23px}
.dropdown .hex-label{font-size:9px}
.dropdown .theme-save{height:25px;font-size:9px;border-radius:5px}
.dropdown .theme-sliders{padding:5px 3px 0}
.dropdown .theme-sliders .setting{height:34px}
.dropdown-search,.dropdown-search .search{height:29px}
.search{border-radius:7px;border-color:#ffffff0c}
.search input{font-size:10px}.search>.glyph{width:11px;height:11px}
.cs-window{border-radius:13px;border:1px solid #ffffff0d}
.cs-topbar{height:54px;padding-left:18px;gap:9px;border-bottom:1px solid #ffffff08}
.cs-topbar-strip{height:51px;border-radius:12px 12px 0 0;background:none}
.logo-tile{width:25px;height:25px;border-radius:7px;background:#ffffff03;border:1px solid #ffffff16;box-shadow:none}
.logo-tile>.glyph{width:15px;height:15px;color:var(--accent)}
.cs-brand strong{font:600 13px LuxuryMenu;letter-spacing:-.2px}
.cs-topbar .search{right:48px;top:13px;height:28px;width:208px;border-radius:6px;padding:0 9px;gap:6px}
.cs-topbar .search:focus-within{width:208px}.cs-topbar .search input{font-size:10px}
.cs-topbar .search>.glyph{width:11px;height:11px}
.cs-close{right:15px;top:15px;width:23px;height:23px}
.cs-close>.glyph{width:12px;height:12px}
.cs-main{inset:68px 17px 17px;gap:16px}
.cs-sidebar{width:137px;padding:4px 0 0;border:0;border-radius:0;background:none;box-shadow:none}
.category-list{gap:6px}
.category-tab{width:137px;height:33px;min-height:33px;padding:0 10px;gap:9px;border-radius:7px;font-size:11px;color:#8c96a3;border:1px solid transparent;background:none}
.category-tab:hover{background:#ffffff04;border-color:#ffffff0b;box-shadow:none}
.category-tab .cat-icon{width:15px;height:15px;border:0;border-radius:0;background:none;box-shadow:none}
.category-tab .cat-icon>.glyph{width:13px;height:13px;color:inherit}
.category-tab.selected{background:linear-gradient(110deg,rgba(var(--accent-rgb),.11),rgba(var(--accent-rgb),.04));border-color:rgba(var(--accent-rgb),.18);box-shadow:none;color:rgb(var(--accent-ink));font-weight:600}
.category-tab.selected .cat-icon{background:none;box-shadow:none;border:0;color:var(--accent)}
.category-tab.selected:after{content:none}
.user-profile{padding:11px 6px 0;gap:8px;min-height:43px;border-color:#ffffff08}
.user-avatar{width:25px;height:25px;border-radius:7px;font-size:11px}
.user-profile strong{font-size:10px;color:#b7bfca}
.cs-list-toolbar{min-height:27px;margin-bottom:8px}
.cs-list-toolbar .filters{height:23px;padding:2px;border-radius:5px;gap:1px;border-color:#ffffff07;background:#ffffff01}
.cs-list-toolbar .filters button{height:17px;padding:0 9px;font-size:8px;border-radius:3px}
.cs-library>.native-scrollbar{top:35px;right:-3px;bottom:4px}
.cs-scroll{padding:0 2px 3px 0}
.cs-content.has-library.has-inspector{grid-template-columns:minmax(0,1fr) 236px;gap:12px}
.cs .card-grid{gap:7px;grid-template-columns:repeat(3,minmax(0,1fr))}
.cs .has-inspector .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.cs .module{margin:0;border-radius:7px;background:none;border:0;box-shadow:none}
.cs .module-head{height:43px;border-radius:7px;border:1px solid #ffffff09;background:#ffffff01;display:flex;align-items:center}
.cs .module-head:hover{background:#ffffff04;border-color:#ffffff20;transform:none}
.cs .module-toggle{position:static;inset:auto;height:100%;display:flex;flex-direction:row;align-items:center;padding:0 8px;font-size:11.5px;line-height:18px;white-space:nowrap}
.cs .module-name{line-height:18px;padding-right:0;max-width:none;letter-spacing:-.1px}
.cs .module-desc{display:none}
.cs .module-head>.expand{right:30px;top:11px;width:20px;height:20px;border:0;background:none;border-radius:4px;color:#637080}
.cs .module-head>.expand>.glyph{width:11px;height:11px}
.cs .module-head>.switch{right:8px;top:16px;width:19px;min-width:19px;height:10px;border:0;--thumb-distance:9px;background:#ffffff13}
.cs .module-head>.switch:after{width:6px;height:6px;top:2px;left:2px}
.cs .module-head>.switch[aria-checked=true]{background:rgba(var(--accent-rgb),.5)}
.cs .module-head>.switch[aria-checked=true]:after{left:11px}
.cs .module-head>.bind-chip{display:none}
.cs .module-toggle{padding-right:53px}
.cs .module.enabled>.module-head{background:linear-gradient(110deg,rgba(var(--accent-rgb),.055),#ffffff02);border-color:rgba(var(--accent-rgb),.14)}
.cs .module.expanded{background:none;box-shadow:none;border:0}
.cs .module.expanded>.module-head{border-color:rgba(var(--accent-rgb),.36);background:rgba(var(--accent-rgb),.075)}
.cs .module.expanded>.module-head>.expand{background:none;color:var(--accent)}
.module-inspector{margin-top:35px;border-radius:8px;border-color:#ffffff0c;background:linear-gradient(145deg,#ffffff03,transparent)}
.inspector-head{padding:11px 10px 10px;border-color:#ffffff08;background:none}
.inspector-head strong{font-size:12px;line-height:18px;padding-right:20px}
.inspector-head p{font-size:9px;line-height:14px;margin-top:4px;color:#778393}
.inspector-close{top:8px;right:7px;width:20px;height:20px;border:0;background:none}
.inspector-close>.glyph{width:11px;height:11px}
.inspector-scroll{padding:5px 6px 8px}
.inspector-binding{height:27px!important;padding-bottom:6px;margin:0 3px 5px;font-size:9px;border-color:#ffffff08}
.inspector-scroll .setting-name{line-height:14px}
.inspector-scroll .setting[data-kind=mode]>.setting-line{height:22px;min-height:22px}
.inspector-scroll .setting[data-kind=boolean]>.setting-line{min-height:27px;height:auto;padding-top:3px;padding-bottom:3px}
.cs .theme-grid{gap:7px;margin-bottom:12px}
.cs .theme-button{height:40px;border-radius:7px;padding:4px 8px 4px 30px;font-size:10px}
.cs .theme-dot,.cs .theme-button.active .theme-dot{width:8px;height:8px;left:11px;top:15px}
.theme-label small{font-size:7px;line-height:12px}
.cs-theme-boxes{gap:10px}.box-head{font-size:11px;height:30px;margin-bottom:6px}
.cs .color-well{height:70px}.cs .hue-bar{height:7px}.cs .theme-save{height:25px;font-size:9px}
.cs-themes-title{font-size:8px;height:20px}
.native-mode-switch{height:29px;border-radius:6px}.native-mode-switch button{height:27px;font-size:10px;padding:0 10px;gap:5px}.native-mode-switch .glyph{width:11px;height:11px}
#tooltip{font-size:10px;line-height:15px;max-width:235px;padding:8px 10px;border-radius:6px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Material selection belongs to the GUI itself; only CSGUI has a movable header. */
.dropdown-tools{position:absolute;display:flex;align-items:center;gap:8px;width:326px;height:29px;transform-origin:top left;pointer-events:auto}
.dropdown-tools .dropdown-search{position:static;inset:auto;width:210px;height:29px;transform:none;flex:0 0 210px}
.dropdown-tools .search{height:29px}
.gui-material{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:29px;width:108px;flex:0 0 108px;padding:0 7px;font:9px/1 LuxuryMenu;color:#858e9c;border:1px solid #ffffff12;border-radius:7px;background:linear-gradient(110deg,#ffffff03,#ffffff00);transition:background .24s,border-color .24s,color .24s,box-shadow .3s;overflow:hidden}
.gui-material>.glyph{width:11px;height:11px;color:inherit}
.gui-material>span{display:flex;align-items:center;height:17px;line-height:1}
.gui-material>i{width:4px;height:4px;border-radius:50%;background:#535b67;box-shadow:none;transition:background .25s,box-shadow .25s}
.gui-material[aria-pressed=true]{color:rgb(var(--accent-ink));border-color:rgba(var(--accent-rgb),.28);background:rgba(var(--accent-rgb),.065)}
.gui-material[aria-pressed=true]>i{background:var(--accent);box-shadow:0 0 7px rgba(var(--accent-rgb),.35)}
.gui-material:hover{border-color:rgba(var(--accent-rgb),.4);background:rgba(var(--accent-rgb),.1)}
.gui-material:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent,#ffffff0b,transparent);translate:-100% 0;transition:translate .6s cubic-bezier(.22,1,.36,1)}
.gui-material:hover:after{translate:100% 0}
.cs-topbar{padding:1px 14px 0;gap:9px;cursor:grab;touch-action:none;user-select:none}
.header-space{flex:1}
.cs-topbar .search,.cs-topbar .search:focus-within{position:static;inset:auto;width:196px;height:28px;flex:0 0 196px;cursor:text}
.cs-topbar .cs-close{position:static;inset:auto;display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;margin:0;padding:0;border:1px solid transparent;border-radius:6px;background:none}
.cs-topbar .cs-close>.glyph{width:12px;height:12px}
.cs-topbar .gui-material{height:28px;width:108px}
.cs-topbar .cs-brand{line-height:1}.cs-brand strong{display:flex;align-items:center;height:25px;line-height:1}
.logo-tile{width:25px;height:25px;flex:0 0 25px}
.logo-tile>.glyph{width:18px;height:18px}
.dragging-cs,.dragging-cs *{cursor:grabbing!important;user-select:none!important}
.category-tab,.module-toggle,.filters button,.pill,.key-button,.theme-button,.multi-popup button{line-height:1}
.module-name{display:flex;align-items:center;min-height:18px;line-height:1}
.setting-line .setting-name,.setting-line output{display:flex;align-items:center;min-height:14px;line-height:1.25}
.pills .pill,.filters button,.key-button{display:inline-flex;align-items:center;justify-content:center;line-height:1}
.theme-button .theme-label{display:flex;align-items:center;min-height:18px;line-height:1}
.cs .theme-button .theme-label{display:block;line-height:15px}
.category-tab>span:not(.cat-icon){display:flex;align-items:center;min-height:18px;line-height:1}
.cs-topbar .logo-tile{transition:border-color .3s,box-shadow .3s,background .3s}
.cs-topbar .logo-tile:hover{border-color:rgba(var(--accent-rgb),.3);background:rgba(var(--accent-rgb),.06);box-shadow:0 0 20px rgba(var(--accent-rgb),.045)}
.dropdown-tools{width:402px}
.gui-shadow-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:68px;height:29px;flex:0 0 68px;padding:0 6px;border:1px solid #ffffff12;border-radius:7px;background:#ffffff02;color:#858e9c;font:9px/1 LuxuryMenu;transition:background .2s,border-color .2s,color .2s}
.gui-shadow-toggle>.glyph{width:11px;height:11px}
.gui-shadow-toggle>span{display:flex;align-items:center;height:17px}
.gui-shadow-toggle[aria-pressed=true]{color:rgb(var(--accent-ink));border-color:rgba(var(--accent-rgb),.28);background:rgba(var(--accent-rgb),.065)}
.gui-shadow-toggle:hover{color:rgb(var(--accent-ink));background:rgba(var(--accent-rgb),.08)}
.cs-topbar .gui-shadow-toggle{height:28px}
body.gui-shadow :is(.panel,.cs-window){border-color:transparent;box-shadow:0 0 8px 2px #0009,0 2px 3px #0007}
body[data-material=glass] :is(.panel,.cs-window){border-color:transparent}
.cs .module-toggle{min-width:0;max-width:100%;overflow:hidden}
.module-name{min-width:0;max-width:100%;overflow:hidden}
.inspector-head strong{display:flex;align-items:center;height:18px;line-height:1}
.setting-line{align-items:center}
.setting-line output{justify-content:flex-end}
.cs-list-toolbar .filters{align-items:center}
.cs .card-grid{gap:7px}
.dropdown .module-settings{padding:6px 2px 4px}
.inspector-scroll .setting{margin-bottom:4px}
.panel-head strong,.theme-save{display:flex;align-items:center;line-height:1}
.theme-save{justify-content:center}

/* Full optical size for the transparent brand artwork. */
.logo-tile>.glyph{width:20px;height:20px}
