/* Permanent desktop workspace navigation. Mobile navigation stays unchanged. */
@media (min-width:980px) {
  :root { --desktop-workspace-sidebar-width:292px; --desktop-workspace-nav-width:var(--desktop-workspace-sidebar-width); }
  html.desktop-workspace-navigation-ready body {
    box-sizing:border-box;
    min-width:0;
    padding-left:var(--desktop-workspace-nav-width);
  }
  #desktop-workspace-navigation {
    position:fixed;
    inset:0 auto 0 0;
    z-index:2147481000;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    width:var(--desktop-workspace-sidebar-width);
    padding:24px 14px 17px;
    overflow-y:auto;
    scrollbar-width:none;
    background:linear-gradient(180deg,#0d0d1b 0%,#11111f 100%);
    border-right:1px solid rgba(196,164,119,.18);
    box-shadow:14px 0 45px rgba(0,0,0,.18);
    color:#f7f1e8;
    font-family:Inter,"Segoe UI",Arial,sans-serif;
  }
  #desktop-workspace-navigation::-webkit-scrollbar,.desktop-workspace-history-list::-webkit-scrollbar {display:none}
  .desktop-workspace-brand {
    display:flex;align-items:center;gap:12px;min-width:0;padding:0 9px 23px;border-bottom:1px solid rgba(196,164,119,.13);color:#f7f1e8;text-decoration:none;font-size:19px;font-weight:760;letter-spacing:-.6px;
  }
  .desktop-workspace-brand img {width:42px;height:42px;flex:0 0 42px;border-radius:13px;object-fit:cover;border:1px solid rgba(196,164,119,.26);box-shadow:0 8px 22px rgba(196,164,119,.12)}
  .desktop-workspace-brand small {display:block;margin-top:4px;color:#b8adbf;font-size:9px;font-weight:600;letter-spacing:1.5px}
  .desktop-workspace-login {display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;margin:20px 5px 16px;border:1px solid rgba(232,188,115,.42);border-radius:13px;background:#201d30;color:#f0cc8d!important;text-decoration:none;font-size:14px;font-weight:800;transition:background .18s ease,border-color .18s ease,transform .18s ease}
  .desktop-workspace-login svg {width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .desktop-workspace-login:hover {background:#2b253b;border-color:#e8bc73;transform:translateY(-1px)}
  .desktop-workspace-new-chat {display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;margin:20px 5px 16px;border:1px solid rgba(232,188,115,.45);border-radius:13px;background:linear-gradient(120deg,#f0cc8d,#d6a35e);color:#2b2030!important;text-decoration:none;font:800 14px Inter,"Segoe UI",Arial,sans-serif;box-shadow:0 8px 24px rgba(215,160,75,.16);cursor:pointer;transition:filter .18s ease,transform .18s ease}
  .desktop-workspace-new-chat span {font-size:23px;line-height:1;font-weight:400}
  .desktop-workspace-new-chat:hover {filter:brightness(1.07);transform:translateY(-1px)}
  .desktop-workspace-new-chat[aria-busy="true"] {cursor:wait;opacity:.78}
  .desktop-workspace-links {display:grid;gap:4px}
  .desktop-workspace-links p {margin:4px 10px 9px;color:#9e90a9;font-size:10px;font-weight:700;letter-spacing:1.45px}
  .desktop-workspace-links a {display:flex;align-items:center;gap:13px;min-height:45px;box-sizing:border-box;padding:0 12px;border:1px solid transparent;border-radius:11px;color:#e8e1ee!important;text-decoration:none;font-size:15px;font-weight:570;line-height:1.2;transition:background .16s ease,border-color .16s ease,color .16s ease}
  .desktop-workspace-links a:hover {background:#201d30;border-color:rgba(196,164,119,.25);color:#f7f1e8!important}
  .desktop-workspace-links a.active {background:rgba(232,188,115,.09);border-color:rgba(232,188,115,.4);color:#f0cc8d!important}
  .desktop-workspace-links svg,.desktop-workspace-history svg {width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:#e8bc73}
  .desktop-workspace-links a.active svg {color:#f0cc8d}
  .desktop-workspace-history {margin-top:auto;padding:17px 5px 0;border-top:1px solid rgba(196,164,119,.13)}
  .desktop-workspace-history>p {display:flex;align-items:center;gap:8px;margin:0 5px 8px;color:#b8adbf;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
  .desktop-workspace-history>p svg {width:16px;height:16px}
  .desktop-workspace-history-list {display:grid;gap:4px;max-height:222px;overflow-y:auto;scrollbar-width:none;padding-right:1px}
  .desktop-workspace-history-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-width:0;min-height:42px;border:1px solid transparent;border-radius:8px;transition:background .16s ease,border-color .16s ease}
  .desktop-workspace-history-row:hover,.desktop-workspace-history-row:focus-within {background:#201d30;border-color:rgba(196,164,119,.2)}
  .desktop-workspace-history-row.is-pinned {border-color:rgba(232,188,115,.22)}
  .desktop-workspace-history-chat {display:flex;align-items:center;gap:9px;min-width:0;min-height:40px;padding:0 8px;color:#d9d1df!important;text-decoration:none;font-size:13px;font-weight:650}
  .desktop-workspace-history-chat:hover {color:#f7f1e8!important}
  .desktop-workspace-history-chat svg {width:17px;height:17px;flex:0 0 17px;color:#c7a965}
  .desktop-workspace-history-chat span {display:block;min-width:0;overflow:hidden;white-space:nowrap}
  .desktop-workspace-history-actions {display:flex;align-items:center;gap:1px;padding-right:4px;opacity:0;visibility:hidden;transform:translateX(3px);transition:opacity .14s ease,visibility .14s ease,transform .14s ease}
  .desktop-workspace-history-row:hover .desktop-workspace-history-actions,.desktop-workspace-history-row:focus-within .desktop-workspace-history-actions {opacity:1;visibility:visible;transform:translateX(0)}
  .desktop-workspace-history-action {position:relative;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;color:#bdb2c4;cursor:pointer;transition:background .14s ease,color .14s ease}
  .desktop-workspace-history-action:hover,.desktop-workspace-history-action:focus-visible {background:rgba(255,255,255,.09);color:#f7f1e8;outline:none}
  .desktop-workspace-history-action.is-pin:hover,.desktop-workspace-history-row.is-pinned .desktop-workspace-history-action.is-pin {color:#f0cc8d}
  .desktop-workspace-history-action.is-delete:hover {color:#ffaaa9}
  .desktop-workspace-history-action svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .desktop-workspace-history-action::after {content:attr(aria-label);position:absolute;z-index:20;right:0;bottom:calc(100% + 7px);width:max-content;max-width:150px;padding:6px 8px;border:1px solid rgba(255,255,255,.13);border-radius:7px;background:#090914;color:#f7f1e8;box-shadow:0 8px 22px rgba(0,0,0,.3);font:650 11px/1.1 Inter,"Segoe UI",Arial,sans-serif;opacity:0;pointer-events:none;transform:translateY(2px);transition:opacity .12s ease,transform .12s ease}
  .desktop-workspace-history-action:hover::after,.desktop-workspace-history-action:focus-visible::after {opacity:1;transform:translateY(0)}
  .desktop-workspace-history-empty,.desktop-workspace-history.is-guest>span {display:block;padding:6px;color:#9e90a9;font-size:12px;line-height:1.45}
  .desktop-workspace-history.is-guest {margin-top:auto}
  .desktop-workspace-footer {display:flex;gap:7px;margin-top:16px;padding:15px 5px 0;border-top:1px solid rgba(196,164,119,.13)}
  .desktop-workspace-footer span {display:block;padding:3px 5px;color:#9e90a9;font-size:11px;line-height:1.55}
  .desktop-workspace-footer a {flex:1;min-height:37px;display:grid;place-items:center;border:1px solid rgba(196,164,119,.18);border-radius:10px;background:#171728;color:#b8adbf!important;text-decoration:none;font-size:12px;font-weight:650}
  .desktop-workspace-footer a:hover {border-color:rgba(232,188,115,.44);color:#f7f1e8!important}
  html.desktop-workspace-navigation-ready .desktop-workspace-legacy-hidden,html.desktop-workspace-navigation-ready #chatgpt-sidebar-layer {display:none!important}
  html.desktop-workspace-navigation-ready .sidebar-menu-row {display:none!important}
  .welcome-extension-below-hero {margin:0 auto 92px!important;background:radial-gradient(circle at 9% 0,rgba(232,188,115,.23),transparent 30%),linear-gradient(115deg,rgba(196,164,119,.15),rgba(34,31,48,.78)),#171728!important}
  .welcome-extension-below-hero .welcome-extension-icon {padding:6px;background:linear-gradient(145deg,rgba(232,188,115,.16),rgba(34,31,48,.66));box-shadow:0 12px 30px rgba(0,0,0,.22)}
  .welcome-extension-below-hero .welcome-extension-icon img {display:block;width:48px;height:48px;border-radius:14px;object-fit:cover;filter:drop-shadow(0 6px 11px rgba(232,188,115,.25))}
}
@media (min-width:980px) and (max-height:730px) {
  #desktop-workspace-navigation {padding-top:16px}
  .desktop-workspace-brand {padding-bottom:16px}
  .desktop-workspace-new-chat,.desktop-workspace-login {margin:14px 5px 10px;min-height:42px}
  .desktop-workspace-links {gap:1px}
  .desktop-workspace-links a {min-height:38px;font-size:14px}
  .desktop-workspace-links p {margin:2px 10px 5px}
  .desktop-workspace-history {display:none}
}
@media (min-width:980px) {
  .desktop-workspace-promo {
    display:flex;align-items:center;gap:10px;min-height:53px;margin:12px 5px 0;padding:0 11px;
    border:1px solid rgba(232,188,115,.42);border-radius:13px;
    background:linear-gradient(125deg,rgba(232,188,115,.16),rgba(177,154,215,.12));
    color:#f7f1e8!important;text-decoration:none;box-shadow:0 10px 27px rgba(0,0,0,.17);
    transition:transform .18s ease,border-color .18s ease,background .18s ease;
  }
  .desktop-workspace-promo:hover {transform:translateY(-1px);border-color:#e8bc73;background:linear-gradient(125deg,rgba(232,188,115,.23),rgba(177,154,215,.18))}
  .desktop-workspace-promo svg {width:23px;height:23px;flex:0 0 23px;fill:none;stroke:#f0cc8d;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .desktop-workspace-promo span {display:grid;gap:2px;min-width:0}
  .desktop-workspace-promo small {color:#d8bf8a;font-size:8px;font-weight:800;letter-spacing:.12em}
  .desktop-workspace-promo b {font-size:13px;line-height:1.15}
  .desktop-workspace-promo i {margin-left:auto;color:#f0cc8d;font-size:17px;font-style:normal}
}

@media (min-width:980px) {
  .desktop-workspace-learning {display:grid;gap:3px}
  .desktop-workspace-learning-toggle {
    display:flex;align-items:center;gap:13px;width:100%;min-height:45px;box-sizing:border-box;padding:0 12px;
    border:1px solid transparent;border-radius:11px;background:transparent;color:#e8e1ee;
    font:570 15px/1.2 Inter,"Segoe UI",Arial,sans-serif;text-align:left;cursor:pointer;
    transition:background .16s ease,border-color .16s ease,color .16s ease;
  }
  .desktop-workspace-learning-toggle:hover {background:#201d30;border-color:rgba(196,164,119,.25);color:#f7f1e8}
  .desktop-workspace-learning-toggle:focus-visible {outline:2px solid #e8bc73;outline-offset:2px}
  .desktop-workspace-learning-toggle svg,.desktop-workspace-learning-menu svg {width:21px;height:21px;flex:0 0 21px;fill:none;stroke:#e8bc73;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .desktop-workspace-learning-toggle b {margin-left:auto;font-size:18px;font-weight:400;line-height:1;transition:transform .18s ease}
  .desktop-workspace-learning.is-open .desktop-workspace-learning-toggle b {transform:rotate(180deg)}
  .desktop-workspace-learning-menu {display:grid;align-content:start;gap:2px;max-height:0;min-height:0;overflow:hidden;opacity:0;visibility:hidden;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-y:contain;transition:max-height .22s ease,opacity .17s ease,visibility .17s ease}
  .desktop-workspace-learning.is-open .desktop-workspace-learning-menu {max-height:min(260px,36dvh);overflow-y:auto;overflow-x:hidden;opacity:1;visibility:visible}
  .desktop-workspace-learning-menu a {display:flex;align-items:center;gap:10px;min-height:35px!important;margin-left:13px;padding:0 9px!important;border-radius:9px!important;font-size:12.5px!important}
  .desktop-workspace-learning-menu a svg {width:17px;height:17px;flex-basis:17px}
  .desktop-workspace-learning-menu a.active {background:rgba(232,188,115,.1)!important;border-color:rgba(232,188,115,.32)!important;color:#f0cc8d!important}
}

@media(min-width:980px){
.desktop-workspace-learning-toggle .learning-chevron{display:grid;place-items:center;width:28px;height:28px;border:1px solid rgba(232,188,115,.22);border-radius:9px;background:rgba(232,188,115,.07)}
.desktop-workspace-learning-toggle .learning-chevron svg{width:18px;height:18px}
.desktop-workspace-learning,.desktop-workspace-learning.is-open{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.desktop-workspace-learning-menu{margin:0 8px;border-left:1px solid rgba(232,188,115,.22)}
.desktop-workspace-learning-menu::-webkit-scrollbar{display:none;width:0;height:0}
.desktop-workspace-learning-menu a{margin-left:7px;font-size:13px!important;min-height:39px!important}
}
@media(min-width:980px){
#desktop-workspace-navigation>a.desktop-workspace-promo[href="/help"]{margin-top:auto;flex-shrink:0}
#desktop-workspace-navigation>a.desktop-workspace-promo[href="/help"] + .desktop-workspace-history{margin-top:14px}
}

.chat-background-uploads{display:flex;flex-wrap:wrap;gap:8px;padding:6px 0}.chat-background-upload{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);gap:3px 9px;align-items:center;max-width:260px;min-width:160px;padding:10px 14px;border:1px solid #e8bc7347;border-radius:13px;background:#1b1829;color:#f7f1e8}.chat-background-upload strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.chat-background-upload small{grid-column:2;font-size:11px;color:#b8adbf}.chat-upload-ring{--upload-progress:0%;grid-row:1/3;width:28px;height:28px;border-radius:50%;background:conic-gradient(#e8bc73 var(--upload-progress),#39303f 0);position:relative}.chat-upload-ring:after{content:"";position:absolute;inset:4px;border-radius:50%;background:#1b1829}.chat-background-upload.failed{border-color:#c67f84}.chat-background-upload.failed small{color:#f0a8ad}.chat-background-upload button{position:absolute;right:2px;top:0;background:transparent;border:0;color:#f0a8ad;cursor:pointer}

@media(min-width:980px){
  /* Keep accreditation assistance in the regular navigation flow. */
  .desktop-workspace-links a[href="/extension/promocodes"]{margin-top:12px}
  #desktop-workspace-navigation .desktop-workspace-footer .desktop-workspace-balance{
    flex:1.65;min-width:0;padding:9px 8px;font-size:12px;
    line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap;
    color:#f1cf96!important;
  }
}

/* Keep the clinical case and its results focused until returning to the case list. */
body.trainer-navigation-hidden #desktop-workspace-navigation,
body.trainer-navigation-hidden #chatgpt-sidebar-layer,
body.trainer-navigation-hidden .sidebar-menu-row{display:none!important}
html.desktop-workspace-navigation-ready body.trainer-navigation-hidden{padding-left:0!important;--desktop-workspace-nav-width:0px}


@media(prefers-reduced-motion:reduce){.desktop-workspace-learning-menu,.desktop-workspace-learning-toggle .learning-chevron{transition:none}}

/* Plain disclosure controls: the global button theme must not add a tile. */
@media(min-width:980px){
html[data-site-palette="sol"] #desktop-workspace-navigation .desktop-workspace-learning-toggle,
html[data-site-palette="sol"] #desktop-workspace-navigation .desktop-workspace-learning-toggle:hover,
html[data-site-palette="sol"] #desktop-workspace-navigation .desktop-workspace-learning-toggle:active,
html[data-site-palette="sol"] #desktop-workspace-navigation .desktop-workspace-learning-toggle[aria-expanded="true"],
#desktop-workspace-navigation .desktop-workspace-learning-toggle{
 background:transparent!important;border-color:transparent!important;box-shadow:none!important;
}
html[data-site-palette="sol"] #desktop-workspace-navigation .desktop-workspace-learning-toggle .learning-chevron,
#desktop-workspace-navigation .desktop-workspace-learning-toggle .learning-chevron{
 background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;
}
#desktop-workspace-navigation .desktop-workspace-learning,
#desktop-workspace-navigation .desktop-workspace-learning.is-open{
 background:transparent!important;border:0!important;box-shadow:none!important;
}
}

/* A moving gold edge leaves the button's existing background intact. */
@property --accred-edge-angle{syntax:"<angle>";initial-value:0deg;inherits:false}
@keyframes accred-edge-orbit{to{--accred-edge-angle:360deg}}
#desktop-workspace-navigation .desktop-workspace-links > a[href="/extension/promocodes"]{position:relative;isolation:isolate}
#desktop-workspace-navigation .desktop-workspace-links > a[href="/extension/promocodes"]::after{
 content:"";position:absolute;inset:0;border-radius:inherit;padding:1.5px;pointer-events:none;
 background:conic-gradient(from var(--accred-edge-angle),transparent 0deg,transparent 235deg,#b8894244 275deg,#e8bc73 320deg,#ffe5ad 340deg,transparent 360deg);
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
 animation:accred-edge-orbit 3s linear infinite;
}
@media(prefers-reduced-motion:reduce){#desktop-workspace-navigation .desktop-workspace-links > a[href="/extension/promocodes"]::after{animation:none}}

#desktop-workspace-rail{display:none}
@media(min-width:980px){
  html.desktop-workspace-navigation-collapsed{--desktop-workspace-nav-width:56px}
  #desktop-workspace-navigation{transition:transform .2s ease,visibility .2s ease}
  html.desktop-workspace-navigation-collapsed #desktop-workspace-navigation{transform:translateX(-100%);visibility:hidden;pointer-events:none}
  #desktop-workspace-navigation .desktop-workspace-topbar{display:flex;align-items:flex-start;gap:6px;border-bottom:1px solid rgba(196,164,119,.13);padding-bottom:16px;margin-bottom:4px;flex-shrink:0}
  #desktop-workspace-navigation .desktop-workspace-brand{flex:1;min-width:0;padding:0 0 0 5px;border-bottom:0;font-size:16px;gap:9px;letter-spacing:-.3px}
  #desktop-workspace-navigation .desktop-workspace-brand small{font-size:8px;letter-spacing:.8px}
  .desktop-workspace-sidebar-toggle{display:grid;place-items:center;width:36px;height:36px;min-width:36px;flex-shrink:0;padding:0;border:1px solid transparent;border-radius:10px;background:transparent;color:#d8c8e0;cursor:pointer}
  .desktop-workspace-sidebar-toggle:hover{background:#292234;border-color:#c4a47744;color:#f0cc8d}
  .desktop-workspace-sidebar-toggle:focus-visible{outline:2px solid #e8bc73;outline-offset:2px}
  .desktop-workspace-sidebar-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  html.desktop-workspace-navigation-ready.desktop-workspace-navigation-collapsed #desktop-workspace-rail:not([hidden]){position:fixed;inset:0 auto 0 0;z-index:2147481000;display:flex;justify-content:center;align-items:flex-start;width:56px;padding:14px 0;box-sizing:border-box;background:#10101e;border-right:1px solid rgba(196,164,119,.18)}
}
body.trainer-navigation-hidden #desktop-workspace-rail{display:none!important}
@media(prefers-reduced-motion:reduce){#desktop-workspace-navigation{transition:none}}

