/* Doki bar: the same top bar the course shows around every product (name, icons, tonic, instrument, appearance, language).
   Extracted from the course stylesheets so the standalone app looks exactly like it does inside the course. */
.shell-bar{height:40px;flex:none;display:flex;align-items:center;gap:18px;padding:0 18px;background:#120c33;color:#e9e4ff;font-size:12px}
.shell-bar nav{display:flex;gap:4px;flex:1;overflow-x:auto}
.shell-bar nav a{display:flex;align-items:baseline;gap:6px;padding:6px 12px;border-radius:999px;white-space:nowrap;opacity:.78}
.shell-bar nav a small{font-size:10px;opacity:.6}
.shell-bar nav a:hover{opacity:1;background:rgba(255,255,255,.08)}
.shell-bar nav a.active{opacity:1;background:rgba(255,255,255,.14)}
.shell-bar .ext{opacity:.7;white-space:nowrap}
@media(max-width:600px){.shell-bar{gap:10px;padding:0 10px}
.shell-bar .brand b{display:none}
.shell-bar nav a small{display:none}}
.shell-bar .product-menu{display:none;align-items:center;gap:7px;padding:6px 12px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.08);color:inherit;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.shell-bar .product-menu b{font-weight:600}
.shell-bar .product-menu i{font-style:normal;opacity:.7;transition:transform .15s}
@media(max-width:1750px){.shell-bar{position:relative;z-index:50}
.shell-bar .product-menu{display:inline-flex}
.shell-bar nav{display:none;position:absolute;top:calc(100% + 6px);left:10px;flex-direction:column;gap:2px;min-width:250px;max-width:calc(100vw - 20px);padding:8px;background:#1b1347;border:1px solid rgba(255,255,255,.14);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.45);overflow:visible}
.shell-bar.menu-open nav{display:flex}
.shell-bar.menu-open .product-menu i{transform:rotate(180deg)}
.shell-bar nav a{display:grid;grid-template-columns:22px 1fr;align-items:center;column-gap:8px;padding:10px 12px;border-radius:10px;font-size:15px;opacity:.9}
.shell-bar nav a small{display:block!important;grid-column:2;font-size:11px;opacity:.6}
.shell-bar nav a.active{background:rgba(255,255,255,.14)}}
.shell-bar .ab-langs{display:flex;gap:2px;padding:2px;border:1px solid rgba(255,255,255,.22);border-radius:999px;margin-left:auto;flex:none}
.shell-bar .ab-langs a{padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.6px;color:#e9e4ff;opacity:.75;text-decoration:none}
.shell-bar .ab-langs a:hover{opacity:1}
.shell-bar .ab-langs a.on{opacity:1;background:linear-gradient(150deg,#8b5cf6,#d946ef);color:#fff}
@media(max-width:600px){.shell-bar .ab-langs a{padding:4px 7px;font-size:10px}}
@media(max-width:600px){.shell-bar .ext{font-size:0}
.shell-bar .ext::after{content:"↗";font-size:14px}}
@media(min-width:760px) and (min-height:501px){.shell-bar{height:48px;gap:21.6px;padding-inline:21.6px;font-size:14.4px}
.shell-bar .brand{font-size:21.6px;font-weight:700;letter-spacing:.48px}
.shell-bar .brand b{font-weight:700}
.shell-bar nav a{gap:7.2px;padding:7.2px 14.4px}
.shell-bar nav a small{font-size:12px}
.shell-bar .ab-langs a{padding:4.8px 10.8px;font-size:13.2px}
.shell-bar .product-menu{font-size:15.6px}}
.shell-tools{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
.shell-tools button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:36px;height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:600 12px/1.2 system-ui;white-space:nowrap;cursor:pointer}
.shell-bar.has-tools .ab-langs,.shell-bar.has-tools>.language-trigger{margin-left:0}
.shell-bar .ext{font-size:0}
.shell-bar .ext::after{content:'↗';font-size:18px}
.shell-picker{position:fixed;inset:auto;margin:0;width:260px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 16px 45px #0003}
.shell-picker::backdrop{background:#0002}
.shell-picker strong{display:block;margin:4px 4px 10px}
.shell-picker button{display:block;width:100%;min-height:42px;margin-top:5px;padding:8px 12px;text-align:left;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer}
@media(min-width:1000px){.shell-bar.has-tools>nav{display:none}
.shell-bar.has-tools>.product-menu{display:inline-flex}
.shell-bar.has-tools{gap:12px}}
@media(max-width:999px){.shell-tools{display:none}}
@media(min-width:1000px){.shell-tools{gap:9.6px}
.shell-tools button{min-width:43.2px;height:43.2px;padding:7.2px 12px;font-size:14.4px}
.shell-tools button svg{width:21.6px;height:21.6px}
.shell-bar>.language-trigger{min-height:43.2px;font-size:14.4px;padding:8px 12px}
.shell-bar>.language-trigger svg{width:19.2px;height:19.2px}
.shell-bar .ext{min-width:36px;text-align:center}
.shell-bar .ext::after{font-size:21.6px}}
.shell-tools .shell-quick{width:44px;padding:5px}
.shell-tools .shell-quick svg{width:30px;height:30px}
@media(any-pointer:coarse){.shell-bar.has-tools>.language-trigger,.shell-bar.has-tools>.ab-langs{margin-left:auto}
.shell-bar>.ext{flex:none}}
.shell-picker.has-wheel{width:320px;padding:12px}
.shell-tonic-wheel{position:relative;width:280px;height:280px;margin:auto}
.shell-picker .shell-tonic-wheel .wheel-key{position:absolute;margin:0;display:flex;align-items:center;justify-content:center;width:35px;min-height:35px;height:35px;padding:0;transform:translate(-50%,-50%);border-radius:50%;font-size:12px;background:var(--surface);color:var(--ink)}
.shell-picker .wheel-key.minor{font-size:10px;background:var(--paper)}
.shell-picker .wheel-key.paired{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 30%,transparent)}
.shell-picker .wheel-key[aria-pressed=true]{background:var(--accent);color:var(--bg)}
.shell-tonic-wheel .wheel-center{position:absolute;inset:112px 92px;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:700;font-size:13px;color:var(--accent)}
.shell-picker.has-wheel{width:372px;border-radius:14.4px;padding:19.2px;box-shadow:0 18px 50px #1e0f5040}
.shell-picker.has-wheel::backdrop{background:transparent}
.shell-picker .shell-wheel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15.6px}
.shell-picker .shell-wheel-head strong{font:650 15.6px/1.4 system-ui;margin:0}
.shell-picker .shell-wheel-head button{width:28px;min-height:28px;margin:0;padding:0;border:0;background:transparent;text-align:center;font-size:24px;color:var(--muted)}
.shell-tonic-wheel{width:300px;height:300px;margin:12px auto 7px;border-radius:50%;background:radial-gradient(circle,var(--paper) 0 52%,transparent 52.5%),radial-gradient(circle,transparent 0 59%,var(--paper) 59.5% 100%)}
.shell-picker .shell-tonic-wheel .wheel-key{left:50%;top:50%;transform:translate(-50%,-50%) rotate(var(--a)) translateY(var(--r)) rotate(calc(-1 * var(--a)));font-weight:650}
.shell-picker .shell-tonic-wheel .wheel-key.major{--r:-124.8px;width:43.2px;height:43.2px;min-height:43.2px;font-size:14.4px}
.shell-picker .shell-tonic-wheel .wheel-key.minor{--r:-76.8px;width:38.4px;height:38.4px;min-height:38.4px;font-size:12px;background:var(--surface);color:var(--ink2)}
.shell-picker .shell-tonic-wheel .wheel-key.paired{background:linear-gradient(150deg,var(--accent),var(--hot));border-color:transparent;box-shadow:none;color:#fff}
.shell-tonic-wheel .wheel-center{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:69.6px;height:69.6px;border:1px dashed var(--line);border-radius:50%;font:400 31.2px/1 var(--serif,Georgia,serif);color:var(--accent)}
.shell-tonic-info{text-align:center;font-size:14.4px;color:var(--ink2);line-height:1.5}
.shell-tonic-info p{margin:8px 0}
.shell-picker.has-wheel>.fineprint{font-size:14.4px;line-height:1.5;color:var(--muted)}
@media(min-width:1000px){.shell-tools .shell-quick svg{width:21.6px;height:21.6px}
.shell-tools .shell-tonic{gap:7px;font-size:13px;font-weight:400}
.shell-tonic-value{font:400 21.6px/1 var(--serif,Georgia,serif);color:var(--accent)}
.shell-tools [data-look-open]{color:var(--accent)}}
.shell-picker .shell-wheel-reset{font-size:13.2px;text-align:center;min-height:40px;background:var(--surface)}
.shell-instrument .instrument-symbol{display:none}
@media(min-width:601px) and (max-width:1100px){.shell-bar.has-tools .brand b{display:none}
.shell-bar.has-tools .brand{flex:none}
.shell-bar.has-tools{gap:8px;padding-inline:12px}
.shell-bar.has-tools .shell-tools{display:flex;gap:6px;margin-left:auto}
.shell-bar.has-tools>.language-trigger{margin-left:0}
.shell-tools button{height:40px;min-width:40px;padding:6px 9px;font-size:12px}
.shell-tools .shell-instrument{width:40px;padding:0;border-radius:50%}
.shell-instrument .shell-instrument-label{display:none}
.shell-instrument .instrument-symbol{display:block;width:25px;height:25px}
.shell-tools .shell-tonic>span{display:none}
.shell-tools .shell-tonic{width:40px;padding:0;border-radius:50%}
.shell-tonic-value{font:600 16px/1 system-ui}
.shell-bar>.product-menu>span{display:flex;align-items:center}}
@media(max-width:600px){.shell-bar.has-tools{height:auto;min-height:48px;display:grid;grid-template-columns:22px minmax(0,1fr) auto 24px;gap:6px 8px;padding:6px 12px}
.shell-bar.has-tools>.brand{grid-column:1;grid-row:1;font-size:20px}
.shell-bar.has-tools>.brand b{display:none}
.shell-bar.has-tools>.product-menu{grid-column:2;grid-row:1;justify-self:start;min-width:0;max-width:100%;padding:6px 9px;font-size:12px}
.shell-bar>.product-menu>span{display:flex;align-items:center}
.shell-bar.has-tools>.product-menu b{overflow:hidden;text-overflow:ellipsis}
.shell-bar.has-tools>.language-trigger{grid-column:3;grid-row:1;margin-left:0!important;min-height:36px;padding:5px 8px;font-size:11px}
.shell-bar.has-tools>.ext{grid-column:4;grid-row:1;min-width:24px}
.shell-bar.has-tools>.shell-tools{display:flex;grid-column:1/-1;grid-row:2;justify-content:flex-end;gap:8px;margin:0;padding-top:2px}
.shell-tools button,.shell-tools .shell-quick{width:40px;height:40px;min-width:40px;padding:0;border-radius:50%;font-size:12px}
.shell-tools .shell-quick svg{width:21px;height:21px}
.shell-tools .shell-tonic>span,.shell-instrument .shell-instrument-label{display:none}
.shell-tonic-value{font:600 16px/1 system-ui}
.shell-instrument .instrument-symbol{display:block;width:25px;height:25px}
.shell-tools [data-look-open] svg{width:21px;height:21px}}
@media(max-width:420px){.shell-picker.has-wheel{padding:16px}
.shell-tonic-wheel{--wheel-size:calc(100vw - 64px);width:var(--wheel-size);height:var(--wheel-size)}
.shell-picker .shell-tonic-wheel .wheel-key.major{--r:calc(var(--wheel-size) * -0.416);width:36px;height:36px;min-height:36px;font-size:12px}
.shell-picker .shell-tonic-wheel .wheel-key.minor{--r:calc(var(--wheel-size) * -0.256);width:32px;height:32px;min-height:32px;font-size:10px}
.shell-tonic-wheel .wheel-center{width:58px;height:58px;font-size:26px}}
@media(any-pointer:coarse){.shell-tools .shell-instrument{width:40px;min-width:40px;padding:0}
.shell-instrument .shell-instrument-label{display:none}
.shell-instrument .instrument-symbol{display:block;width:25px;height:25px}}
.shell-bar.has-tools .shell-tools{justify-content:flex-end;gap:6px}
.shell-tools .shell-instrument{width:auto;min-width:82px;padding:0 10px;border-radius:999px;font-size:13px}
.shell-instrument .shell-instrument-label{display:inline!important}
.shell-instrument .instrument-symbol{display:none!important}
.shell-instrument-label{font:600 13px/1.2 system-ui,sans-serif}
.shell-bar.has-tools .shell-tools{flex:1;min-width:0;margin-left:0}
.shell-tools .shell-search{margin-right:auto}
.shell-bar.utility-shell>.brand{display:none}
@media(max-width:600px){.shell-bar.utility-shell.has-tools{grid-template-columns:minmax(0,1fr) 40px auto 24px;grid-template-rows:auto;align-items:center;gap:6px;padding:6px 12px;min-height:48px}
.shell-bar.utility-shell.has-tools>.product-menu{grid-column:1;grid-row:1;justify-self:start}
.shell-bar.utility-shell.has-tools>.shell-tools{grid-column:2;grid-row:1;display:flex;margin:0;padding:0;justify-content:center}
.shell-bar.utility-shell.has-tools>.language-trigger{grid-column:3;grid-row:1}
.shell-bar.utility-shell.has-tools>.ext{grid-column:4;grid-row:1}}
.shell-bar.has-tools>.brand{display:none}
@media(max-width:600px){.shell-bar.has-tools{grid-template-columns:minmax(0,1fr) auto 24px}
.shell-bar.has-tools>.product-menu{grid-column:1}
.shell-bar.has-tools>.language-trigger{grid-column:2}
.shell-bar.has-tools>.ext{grid-column:3}
.shell-bar.has-tools>.shell-tools{grid-column:1/-1}
.shell-bar.utility-shell.has-tools{grid-template-columns:minmax(0,1fr) 40px auto 24px}
.shell-bar.utility-shell.has-tools>.shell-tools{grid-column:2}
.shell-bar.utility-shell.has-tools>.language-trigger{grid-column:3}
.shell-bar.utility-shell.has-tools>.ext{grid-column:4}}
.shell-picker:not(.has-wheel) button[aria-pressed]{display:flex;align-items:center;justify-content:space-between;gap:12px}
.shell-picker:not(.has-wheel) button[aria-pressed=true]{border-color:var(--accent);background:var(--accent);color:var(--surface);font-weight:650}
.shell-picker:not(.has-wheel) button[aria-pressed=true] svg{flex:none}
.shell-bar .shell-tools .shell-search{margin-right:0}
.shell-bar .shell-tools .shell-instrument{margin-left:auto}
html .shell-bar>.language-trigger,html .shell-bar.has-tools>.language-trigger{font-size:15px;font-weight:700;letter-spacing:.2px}
html .shell-bar>.language-trigger svg{width:20px;height:20px}
@media(max-width:600px){html .shell-bar>.language-trigger,html .shell-bar.has-tools>.language-trigger{font-size:13px}}
.shell-tools .shell-metro svg{width:24px;height:24px}
/* look palettes */
html[data-look=mist] .academy-bar,html[data-look=graphite] .academy-bar,html[data-look=code] .academy-bar,html[data-look=clean] .academy-bar,html[data-look=forest] .academy-bar,html[data-look=ocean] .academy-bar,html[data-look=wine] .academy-bar,html[data-look=mist] .shell-bar,html[data-look=graphite] .shell-bar,html[data-look=code] .shell-bar,html[data-look=clean] .shell-bar,html[data-look=forest] .shell-bar,html[data-look=ocean] .shell-bar,html[data-look=wine] .shell-bar{background:var(--hero-b)}
html[data-look=mist] .product-menu,html[data-look=graphite] .product-menu,html[data-look=code] .product-menu,html[data-look=clean] .product-menu,html[data-look=forest] .product-menu,html[data-look=ocean] .product-menu,html[data-look=wine] .product-menu{border-color:color-mix(in srgb,var(--accent) 45%,transparent)}
html[data-theme] .academy-bar,html[data-theme] .shell-bar{background:var(--surface);color:var(--ink);border-bottom:1px solid var(--line)}
html[data-theme] .academy-bar nav,html[data-theme] .shell-bar nav{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] .academy-bar .product-menu,html[data-theme] .shell-bar .product-menu,html[data-theme] .academy-bar .ab-langs,html[data-theme] .shell-bar .ab-langs{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme] .academy-bar .ab-langs a,html[data-theme] .shell-bar .ab-langs a{color:var(--ink)}
html[data-theme] .academy-bar .ab-langs a.on,html[data-theme] .shell-bar .ab-langs a.on{background:var(--accent);color:var(--surface)}
html[data-theme] .academy-bar nav a.active,html[data-theme] .shell-bar nav a.active{background:var(--paper)}
/* standalone host */
.shell-bar.standalone{position:sticky;top:0;z-index:60;width:100%;box-sizing:border-box}.shell-bar.standalone .product-menu{cursor:default}.shell-bar.standalone.has-tools>.ab-langs{display:flex}

/* Home button: highlighted, using the look accent */
.shell-tools .shell-quick.shell-home{background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 55%,#d63fc0));border-color:transparent;color:#fff;box-shadow:0 4px 14px color-mix(in srgb,var(--accent) 40%,transparent),inset 0 1px 0 #ffffff40;transition:transform .15s,box-shadow .15s,filter .15s}
.shell-tools .shell-quick.shell-home:hover{filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 7px 20px color-mix(in srgb,var(--accent) 48%,transparent),inset 0 1px 0 #ffffff55}
.shell-tools .shell-quick.shell-home:active{transform:translateY(0) scale(.96)}
.shell-tools .shell-quick.shell-home svg{color:#fff}
