/* Preview-only reference dashboard cards, independent of existing navigation. */
#df-reference-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 26px;align-items:stretch}
#df-reference-panels .df-ref-card{min-width:0;padding:18px 15px;border:1px solid #dbe5f2;border-radius:21px;background:linear-gradient(140deg,#fff,#f2f7fe);box-shadow:0 10px 26px rgba(47,76,118,.10)}
#df-reference-panels .df-ref-title{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:800;color:#14254b;margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid #dce5f0}
#df-reference-panels .df-ref-icon{font-size:24px;line-height:1;min-width:28px;text-align:center}
#df-reference-panels .df-ref-row{width:100%;display:flex;align-items:center;gap:8px;min-height:48px;padding:7px 2px;border:0;border-bottom:1px solid #e1e8f2;background:transparent;color:#1b3155;font:inherit;text-align:left;cursor:pointer}
#df-reference-panels .df-ref-row:last-child{border-bottom:0}
#df-reference-panels .df-ref-row .df-ref-icon{font-size:20px;min-width:27px}
#df-reference-panels .df-ref-name{font-size:13px;flex:1;min-width:0}
#df-reference-panels .df-ref-status{font-size:10px;color:#75839b;white-space:nowrap}
#df-reference-panels .df-ref-switch{flex:0 0 35px;width:35px;height:21px;border-radius:99px;background:#d0d9e5;position:relative;box-shadow:inset 0 1px 3px #a7b6c7}
#df-reference-panels .df-ref-switch:after{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;border-radius:50%;background:white;box-shadow:0 1px 3px #9aabc1}
#df-reference-panels .df-ref-row[aria-current="true"] .df-ref-switch{background:linear-gradient(90deg,#02b8c2,#22d6dc)}
#df-reference-panels .df-ref-row[aria-current="true"] .df-ref-switch:after{left:17px}
#df-reference-panels .df-ref-row:disabled{opacity:.57;cursor:not-allowed}
#df-reference-panels .df-ref-row:not(:disabled):hover{background:#e7f5fd;border-radius:9px}
#df-reference-panels .df-ref-row:focus-visible{outline:2px solid #158ce0;outline-offset:2px}
@media(max-width:1220px){#df-reference-panels{grid-template-columns:repeat(2,minmax(0,1fr))}#df-reference-panels .df-ref-card:last-child{grid-column:1/-1}}
@media(max-width:760px){#df-reference-panels{grid-template-columns:1fr;gap:12px}#df-reference-panels .df-ref-card:last-child{grid-column:auto}}
/* Keep grouped navigation available across Studio pages. */

/* Clean menu rows: no individual pill outlines; switch hue matches icon. */
#df-reference-panels .df-ref-row{border:0!important;border-bottom:1px solid #e1e8f2!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:10px 4px!important;min-height:52px}
#df-reference-panels .df-ref-row:last-child{border-bottom:0!important}
#df-reference-panels .df-ref-row:not(:disabled):hover{background:rgba(225,235,250,.40)!important;border-radius:0!important}
#df-reference-panels .df-ref-switch{background:var(--df-switch-soft,#d0d9e5)!important;box-shadow:inset 0 0 0 1px var(--df-switch-color,#a7b6c7)!important}
#df-reference-panels .df-ref-row[aria-current="true"] .df-ref-switch{background:var(--df-switch-color,#02b8c2)!important}
#df-reference-panels .df-ref-row:disabled .df-ref-switch{opacity:.55}

/* Reference-inspired iconography and color-matched switches. */
#df-reference-panels .df-ref-row .df-ref-icon{display:inline-flex;align-items:center;justify-content:center}
#df-reference-panels .df-ref-row .df-ref-icon svg{display:block;width:23px;height:23px}
#df-reference-panels .df-ref-switch{background:#cbd4e0!important;box-shadow:inset 0 1px 3px #a8b5c5!important;transition:background .18s}
#df-reference-panels .df-ref-row[aria-current="true"] .df-ref-switch{background:var(--df-switch-color)!important;box-shadow:0 2px 8px color-mix(in srgb,var(--df-switch-color),transparent 62%)!important}
#df-reference-panels .df-ref-row[aria-current="true"] .df-ref-switch:after{left:17px}

/* Unified readable dashboard panels — isolated preview. */
#df-reference-panels{width:100%;box-sizing:border-box;max-width:100%;margin-block:26px 38px;gap:16px;align-items:start}
#df-reference-panels .df-ref-card{box-sizing:border-box;padding:20px 18px;border-radius:22px;overflow:hidden}
#df-reference-panels .df-ref-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:18px;line-height:1.35;letter-spacing:-.02em}
#df-reference-panels .df-ref-row{gap:12px!important;min-height:58px!important;padding:12px 5px!important}
#df-reference-panels .df-ref-name{font-size:15px!important;line-height:1.4!important;font-weight:550}
#df-reference-panels .df-ref-row .df-ref-icon svg{width:26px!important;height:26px!important}
#df-reference-panels .df-ref-switch{flex-shrink:0}
@media(min-width:1221px){#df-reference-panels{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#df-reference-panels .df-ref-card{padding:16px 14px}#df-reference-panels .df-ref-name{font-size:15px!important}}

/* Three dashboard columns share the height of the longest column. */
@media(min-width:1221px){
 #df-reference-panels{align-items:stretch!important}
 #df-reference-panels .df-ref-card{height:100%!important;min-height:100%!important}
}
@media(min-width:761px) and (max-width:1220px){
 #df-reference-panels{align-items:stretch!important}
 #df-reference-panels .df-ref-card{height:100%!important}
}

/* Reference-image switches for actual three-column dashboard. */
#df-reference-panels .df-ref-row .df-ref-switch{
 box-sizing:border-box!important;position:relative!important;display:block!important;
 flex:0 0 48px!important;width:48px!important;min-width:48px!important;max-width:48px!important;
 height:29px!important;min-height:29px!important;max-height:29px!important;
 border:0!important;border-radius:999px!important;overflow:visible!important;
 background:var(--df-switch-color,#168fff)!important;
 background-image:linear-gradient(125deg,rgba(255,255,255,.25),rgba(255,255,255,0) 65%)!important;
 box-shadow:inset 0 1px 2px rgba(255,255,255,.3),0 3px 9px color-mix(in srgb,var(--df-switch-color,#168fff) 30%,transparent)!important;
 opacity:1!important;transition:background .2s ease,box-shadow .2s ease!important;
}
#df-reference-panels .df-ref-row .df-ref-switch::after{
 content:""!important;position:absolute!important;display:block!important;
 left:23px!important;top:3px!important;width:23px!important;height:23px!important;
 box-sizing:border-box!important;border-radius:50%!important;
 border:1px solid rgba(255,255,255,.96)!important;
 background:linear-gradient(150deg,#fff,#f6f9ff)!important;
 box-shadow:0 2px 5px rgba(31,47,73,.25),inset 0 1px 1px #fff!important;
 transform:none!important;transition:transform .2s ease!important;
}
#df-reference-panels .df-ref-row:disabled .df-ref-switch{
 background:#cbd4e0!important;background-image:linear-gradient(130deg,#e2e7ef,#bcc7d5)!important;
 box-shadow:inset 0 1px 2px rgba(47,65,92,.15),0 2px 5px rgba(47,65,92,.1)!important;
 opacity:.8!important;
}
#df-reference-panels .df-ref-row:disabled .df-ref-switch::after{left:3px!important}
#df-reference-panels .df-ref-row[aria-current="true"]:not(:disabled) .df-ref-switch::after{left:23px!important}
@media(prefers-reduced-motion:reduce){#df-reference-panels .df-ref-row .df-ref-switch::after{transition:none!important}}

/* 2026-10-18: dark theme contrast for reference panels and sidebar flyouts. */
html[data-theme="dark"] #df-reference-panels .df-ref-card{background:linear-gradient(145deg,#24334a,#19263a)!important;border-color:#40516b!important;color:#e7effb!important}
html[data-theme="dark"] #df-reference-panels .df-ref-title{color:#f3f7ff!important;border-bottom-color:#40516b!important}
html[data-theme="dark"] #df-reference-panels .df-ref-row{color:#e7effb!important;border-bottom-color:#394a63!important}
html[data-theme="dark"] #df-reference-panels .df-ref-name{color:#e7effb!important}
html[data-theme="dark"] #df-reference-panels .df-ref-status{color:#b6c5d9!important}
html[data-theme="dark"] #df-reference-panels .df-ref-row:not(:disabled):hover{background:rgba(125,167,218,.15)!important}
html[data-theme="dark"] body #studio-navigation .studio-submenu:not([hidden]),
html[data-theme="dark"] body #studio-navigation #studio-submenu-analyze:not([hidden]),
html[data-theme="dark"] body #studio-navigation #studio-submenu-mix:not([hidden]),
html[data-theme="dark"] body #studio-navigation #studio-submenu-sound:not([hidden]),
html[data-theme="dark"] body #studio-navigation #studio-submenu-advanced:not([hidden]){
 background:linear-gradient(145deg,#26364d,#1b293e)!important;border-color:#40516a!important;color:#e7effc!important}
html[data-theme="dark"] body #studio-navigation .studio-submenu a[data-studio-subnav],
html[data-theme="dark"] body #studio-navigation .studio-subnav-label{color:#e7effc!important}
html[data-theme="dark"] body #studio-navigation .studio-submenu button.studio-submenu-back{color:#c4dbfa!important;background:#30435c!important}
