/* Hub palettes are shared by the viewport scene and its still preview tiles. */
:root,
[data-theme="graphite"] {
  --wall-dark: #0C1119; --wall-light: #F1F4F7;
  --surface-dark: #202731; --surface-light: #E8EDF2;
  --theme-accent-dark: #AAC7E6; --theme-accent-light: #345774; --theme-glow: #B9D8F8;
  --wp-1: #283244; --wp-2: #46536A; --wp-3: #8491A0; --wp-4: #53677B;
  --tone-source-0: #97B8DC; --tone-source-1: #AEA5CE; --tone-source-2: #78ACAE;
  --tone-source-3: #D0A680; --tone-source-4: #8DA2BE; --tone-source-5: #B3BC9A;
  --wallpaper:
    radial-gradient(ellipse at 72% 18%, var(--scene-shine) 0%, transparent 39%),
    linear-gradient(138deg, transparent 14%, var(--scene-4) 32%, var(--scene-2) 41%, var(--scene-3) 45%, var(--scene-1) 49%, transparent 72%),
    linear-gradient(155deg, var(--wall) 12%, var(--scene-1) 55%, var(--wall) 91%);
  --drift-x: 10px; --drift-y: -8px; --drift-span: 38s;
}
[data-theme="aurora"] {
  --wall-dark: #071B21; --wall-light: #EFF8F5;
  --surface-dark: #182C32; --surface-light: #E4F0EC;
  --theme-accent-dark: #8BE3D0; --theme-accent-light: #17594E; --theme-glow: #6FF5CD;
  --wp-1: #146A70; --wp-2: #2E9282; --wp-3: #7461A3; --wp-4: #76A985;
  --tone-source-0: #66CFB5; --tone-source-1: #AC93D8; --tone-source-2: #84B781;
  --tone-source-3: #80A7D1; --tone-source-4: #D3AB9B; --tone-source-5: #88B7BD;
  --wallpaper:
    radial-gradient(108% 101% at -11% 148%, transparent 68%, var(--scene-1) 77%, var(--scene-2) 80%, transparent 85%),
    radial-gradient(103% 115% at 20% 157%, transparent 67%, var(--scene-4) 78%, var(--scene-3) 82%, transparent 87%),
    radial-gradient(90% 126% at 100% 148%, transparent 60%, var(--scene-1) 73%, var(--scene-2) 76%, transparent 84%),
    radial-gradient(ellipse at 62% 91%, var(--scene-shine), transparent 68%);
  --drift-x: 8px; --drift-y: -19px; --drift-span: 44s;
}
[data-theme="sunset"] {
  --wall-dark: #24101C; --wall-light: #FFF5EB;
  --surface-dark: #38242C; --surface-light: #F8E9E5;
  --theme-accent-dark: #FFBC98; --theme-accent-light: #843B21; --theme-glow: #FF955F;
  --wp-1: #A24B63; --wp-2: #D07748; --wp-3: #8D416D; --wp-4: #D69C47;
  --tone-source-0: #F7A277; --tone-source-1: #CD7C9B; --tone-source-2: #D9BB6D;
  --tone-source-3: #A888BA; --tone-source-4: #EA8B69; --tone-source-5: #AEA1C6;
  --wallpaper:
    linear-gradient(177deg, transparent 56%, var(--scene-3) 61%, transparent 66%, var(--scene-1) 76%, transparent 85%),
    radial-gradient(circle at 88% 68%, var(--scene-4) 0 9vmin, transparent 9.4vmin),
    radial-gradient(ellipse at 88% 69%, var(--scene-2), transparent 55%),
    linear-gradient(174deg, transparent 24%, var(--scene-3) 45%, transparent 55%, var(--scene-1) 70%, var(--wall) 100%);
  --drift-x: -15px; --drift-y: 3px; --drift-span: 53s;
}
[data-theme="ocean"] {
  --wall-dark: #05152D; --wall-light: #EEF7FC;
  --surface-dark: #152B40; --surface-light: #DEEDF6;
  --theme-accent-dark: #8AD7FA; --theme-accent-light: #215973; --theme-glow: #68D7FF;
  --wp-1: #113E75; --wp-2: #166783; --wp-3: #2A94A3; --wp-4: #82ABB1;
  --tone-source-0: #80B6E9; --tone-source-1: #63CBC6; --tone-source-2: #A1B6D4;
  --tone-source-3: #7193CD; --tone-source-4: #8BBCA3; --tone-source-5: #C2ADA0;
  --wallpaper:
    radial-gradient(119% 98% at -26% -41%, transparent 54%, var(--scene-3) 60%, transparent 64%, var(--scene-4) 68%, transparent 71%),
    radial-gradient(132% 145% at -30% -55%, transparent 62%, var(--scene-2) 67%, var(--scene-3) 68%, transparent 73%),
    radial-gradient(ellipse at 8% 17%, var(--scene-shine), transparent 53%),
    linear-gradient(145deg, var(--scene-2), var(--scene-1) 47%, var(--wall) 85%);
  --drift-x: 14px; --drift-y: 9px; --drift-span: 35s;
}
[data-theme="nebula"] {
  --wall-dark: #130E28; --wall-light: #F7F1FA;
  --surface-dark: #2B223C; --surface-light: #EEE6F5;
  --theme-accent-dark: #D8BBFA; --theme-accent-light: #613F79; --theme-glow: #E7A3E6;
  --wp-1: #3B316C; --wp-2: #604587; --wp-3: #8E5D91; --wp-4: #B57D9E;
  --tone-source-0: #B596E5; --tone-source-1: #D594BD; --tone-source-2: #8E9FDE;
  --tone-source-3: #97B8C7; --tone-source-4: #CAAEB5; --tone-source-5: #B09AD0;
  --wallpaper:
    radial-gradient(ellipse at 53% 48%, var(--wall) 1%, transparent 28%),
    radial-gradient(ellipse at 70% 42%, var(--scene-4) 4%, var(--scene-3) 26%, transparent 57%),
    radial-gradient(66% 64% at 56% 75%, var(--scene-2), transparent 82%),
    radial-gradient(ellipse at 32% 17%, var(--scene-1), transparent 61%),
    radial-gradient(ellipse at 76% 61%, var(--scene-shine), transparent 60%);
  --drift-x: -9px; --drift-y: 8px; --drift-span: 58s;
}
[data-theme="sequoia"] {
  --wall-dark: #0D1B16; --wall-light: #F5F6E9;
  --surface-dark: #243328; --surface-light: #EAF0E3;
  --theme-accent-dark: #BBD59C; --theme-accent-light: #435E2D; --theme-glow: #D6B36E;
  --wp-1: #234C39; --wp-2: #456B47; --wp-3: #7D824D; --wp-4: #AD8349;
  --tone-source-0: #94BD87; --tone-source-1: #C3A46B; --tone-source-2: #79AAA0;
  --tone-source-3: #A7AD75; --tone-source-4: #B88F76; --tone-source-5: #91A5AF;
  --wallpaper:
    linear-gradient(134deg, transparent 23%, var(--scene-4) 43%, var(--scene-shine) 50%, transparent 65%),
    radial-gradient(115% 63% at 7% 110%, var(--wall) 53%, var(--scene-1) 65%, transparent 69%),
    radial-gradient(121% 94% at 100% 117%, var(--scene-1) 57%, var(--scene-2) 64%, transparent 68%),
    radial-gradient(95% 92% at 20% 105%, var(--scene-2) 64%, var(--scene-3) 72%, transparent 76%);
  --drift-x: -7px; --drift-y: 12px; --drift-span: 49s;
}
[data-theme="mono-light"] {
  --wall-dark: #262B33; --wall-light: #FAFBFC;
  --surface-dark: #293039; --surface-light: #F0F2F4;
  --theme-accent-dark: #DFE6ED; --theme-accent-light: #43505F; --theme-glow: #E9F1FA;
  --wp-1: #414954; --wp-2: #626C78; --wp-3: #858F9B; --wp-4: #A8B1B8;
  --tone-source-0: #AAB4C0; --tone-source-1: #8A9AAA; --tone-source-2: #C6CFD6;
  --tone-source-3: #84909D; --tone-source-4: #B6B6BD; --tone-source-5: #A8A39E;
  --wallpaper:
    linear-gradient(115deg, transparent 17%, var(--scene-shine) 31%, transparent 41%, var(--scene-shine) 55%, transparent 66%),
    linear-gradient(24deg, var(--scene-1) 16%, var(--scene-3) 37%, transparent 37.4%),
    linear-gradient(149deg, var(--scene-4) 11%, var(--scene-2) 48%, var(--scene-1) 48.3%, var(--wall) 92%);
  --drift-x: 12px; --drift-y: 4px; --drift-span: 61s;
}
[data-theme="midnight-oled"] {
  --wall-dark: #000000; --wall-light: #EFF2F7;
  --surface-dark: #0D1219; --surface-light: #E6EBF1;
  --theme-accent-dark: #99C8FF; --theme-accent-light: #2C527B; --theme-glow: #5D96D5;
  --wp-1: #070A0F; --wp-2: #101622; --wp-3: #152235; --wp-4: #243546;
  --tone-source-0: #81B3E8; --tone-source-1: #737FAD; --tone-source-2: #71A79C;
  --tone-source-3: #A98DB3; --tone-source-4: #B19E7A; --tone-source-5: #8599AE;
  --wallpaper:
    radial-gradient(102% 114% at 21% 17%, var(--wall) 62%, transparent 78%),
    radial-gradient(102% 127% at 26% 11%, transparent 71%, var(--scene-2) 78%, var(--scene-shine) 80%, var(--scene-4) 82%, var(--scene-1) 86%, var(--wall) 90%);
  --drift-x: 5px; --drift-y: -6px; --drift-span: 65s;
}

:root,
[data-theme] {
  --wall: var(--wall-dark);
  --surface: var(--surface-dark);
  --theme-accent: var(--theme-accent-dark);
  --pigment-depth: 68%;
  --glow-depth: 38%;
  --tone-depth: 0%;
  --scene-1: color-mix(in srgb, var(--wp-1) var(--pigment-depth), var(--wall));
  --scene-2: color-mix(in srgb, var(--wp-2) var(--pigment-depth), var(--wall));
  --scene-3: color-mix(in srgb, var(--wp-3) var(--pigment-depth), var(--wall));
  --scene-4: color-mix(in srgb, var(--wp-4) var(--pigment-depth), var(--wall));
  --scene-shine: color-mix(in srgb, var(--theme-glow) var(--glow-depth), var(--wall));
  --tone-0: color-mix(in srgb, var(--tone-source-0), #15212C var(--tone-depth));
  --tone-1: color-mix(in srgb, var(--tone-source-1), #15212C var(--tone-depth));
  --tone-2: color-mix(in srgb, var(--tone-source-2), #15212C var(--tone-depth));
  --tone-3: color-mix(in srgb, var(--tone-source-3), #15212C var(--tone-depth));
  --tone-4: color-mix(in srgb, var(--tone-source-4), #15212C var(--tone-depth));
  --tone-5: color-mix(in srgb, var(--tone-source-5), #15212C var(--tone-depth));
}
:root[data-scheme="light"],
:where(:root[data-scheme="light"]) [data-theme]:not([data-scheme]),
[data-theme][data-scheme="light"] {
  --wall: var(--wall-light);
  --surface: var(--surface-light);
  --theme-accent: var(--theme-accent-light);
  --pigment-depth: 24%;
  --glow-depth: 18%;
  --tone-depth: 20%;
}

.hub-wallpaper {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: var(--wall);
}
.hub-wallpaper > *,
.hub-wallpaper-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-wallpaper [hidden] { display: none; }
.hub-wallpaper-scene,
.hub-theme-art { background-color: var(--wall); }
.hub-wallpaper-scene { overflow: hidden; }
.hub-wallpaper-scene::before {
  content: "";
  position: absolute;
  inset: -2%;
  background-image: var(--wallpaper);
  translate: var(--optics-x, 0px) var(--optics-y, 0px);
}
.hub-theme-art {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  background-image: var(--wallpaper);
}
/* Use miniature-relative lighting in the Sunset tile. */
.hub-theme-art[data-theme="sunset"] {
  background-image:
    linear-gradient(177deg, transparent 56%, var(--scene-3) 61%, transparent 66%, var(--scene-1) 76%, transparent 85%),
    radial-gradient(circle at 88% 68%, var(--scene-4) 0 8%, transparent 8.8%),
    radial-gradient(ellipse at 88% 69%, var(--scene-2), transparent 55%),
    linear-gradient(174deg, transparent 24%, var(--scene-3) 45%, transparent 55%, var(--scene-1) 70%, var(--wall) 100%);
}
.hub-wallpaper-scene[data-theme="nebula"]::after,
:root[data-theme="nebula"] .hub-wallpaper-scene:not([data-theme])::after,
.hub-theme-art[data-theme="nebula"]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 31%, var(--scene-4) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 26% 17%, var(--scene-3) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 39% 70%, var(--scene-4) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 63% 76%, var(--scene-4) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 80% 15%, var(--scene-4) 0 .9px, transparent 1.5px),
    radial-gradient(circle at 89% 56%, var(--scene-3) 0 .7px, transparent 1.5px),
    radial-gradient(circle at 94% 42%, var(--scene-3) 0 .7px, transparent 1.5px);
}
.hub-wallpaper-scene[data-theme="nebula"]::after,
:root[data-theme="nebula"] .hub-wallpaper-scene:not([data-theme])::after { z-index: 0; }
.hub-wallpaper-spotlight {
  inset: 0 auto auto 0;
  width: min(54vw, 600px);
  height: min(45vh, 390px);
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--theme-glow) 7%, transparent), transparent 69%);
  transform: translate3d(var(--spot-x, -100vw), var(--spot-y, -100vh), 0) translate(-50%, -50%);
}
:root[data-motion="full"] .hub-wallpaper[data-renderer="css"] .hub-wallpaper-scene::before {
  animation: wallpaper-drift var(--drift-span) ease-in-out infinite alternate;
}
:root[data-motion="subtle"] .hub-wallpaper[data-renderer="css"] .hub-wallpaper-scene::before {
  --drift-factor: .25;
  animation: wallpaper-drift calc(var(--drift-span) * 1.5) ease-in-out infinite alternate;
}
@keyframes wallpaper-drift {
  to { transform: translate(calc(var(--drift-x) * var(--drift-factor, 1)), calc(var(--drift-y) * var(--drift-factor, 1))) scale(1.015); }
}

/* Accent choices only change interaction color. Categorical and status colors stay semantic. */
:root {
  --chosen-accent-dark: var(--theme-accent-dark);
  --chosen-accent-light: var(--theme-accent-light);
  --chosen-accent: var(--chosen-accent-dark);
}
:root[data-accent="blue"], [data-accent-swatch="blue"], .hub-accent-swatch[data-color="blue"] {
  --chosen-accent-dark: #A9CDFF; --chosen-accent-light: #245588;
}
:root[data-accent="purple"], [data-accent-swatch="purple"], .hub-accent-swatch[data-color="purple"] {
  --chosen-accent-dark: #D2B7FF; --chosen-accent-light: #664098;
}
:root[data-accent="pink"], [data-accent-swatch="pink"], .hub-accent-swatch[data-color="pink"] {
  --chosen-accent-dark: #FFACD6; --chosen-accent-light: #8C376C;
}
:root[data-accent="red"], [data-accent-swatch="red"], .hub-accent-swatch[data-color="red"] {
  --chosen-accent-dark: #FFAAA4; --chosen-accent-light: #8F3A39;
}
:root[data-accent="orange"], [data-accent-swatch="orange"], .hub-accent-swatch[data-color="orange"] {
  --chosen-accent-dark: #FFC399; --chosen-accent-light: #84451F;
}
:root[data-accent="yellow"], [data-accent-swatch="yellow"], .hub-accent-swatch[data-color="yellow"] {
  --chosen-accent-dark: #F5DC86; --chosen-accent-light: #725600;
}
:root[data-accent="green"], [data-accent-swatch="green"], .hub-accent-swatch[data-color="green"] {
  --chosen-accent-dark: #A9DFB6; --chosen-accent-light: #2E633C;
}
:root[data-accent="graphite"], [data-accent-swatch="graphite"], .hub-accent-swatch[data-color="graphite"] {
  --chosen-accent-dark: #CFD5DF; --chosen-accent-light: #49525F;
}
[data-accent-swatch], .hub-accent-swatch[data-color] {
  --swatch-color: var(--chosen-accent-dark);
}
.hub-accent-swatch:is([data-color="multicolor"], [data-color="stone"]),
[data-accent-swatch="multicolor"] {
  --swatch-color: conic-gradient(#A9CDFF, #D2B7FF, #FFACD6, #FFC399, #F5DC86, #A9DFB6, #A9CDFF);
}
.studio .hub-accent-swatch[data-color] { background: var(--swatch-color); }

/* Semantic materials and layout constants. Dark/light accent pairs use the
   higher-contrast ink for their respective solid button fills. */
:root {
  color-scheme: dark;
  --label: #F5F7FA;
  --label-2: #D7DCE4;
  --label-3: #C2C8D2;
  --green-ink: #A4E4B1;
  --orange-ink: #FAD69C;
  --red-ink: #FFACA7;
  --blue-ink: #B7D6FF;
  --green: var(--green-ink);
  --orange: var(--orange-ink);
  --red: var(--red-ink);
  --blue: var(--blue-ink);
  --green-wash: color-mix(in srgb, var(--green) var(--status-wash), transparent);
  --orange-wash: color-mix(in srgb, var(--orange) var(--status-wash), transparent);
  --red-wash: color-mix(in srgb, var(--red) var(--status-wash), transparent);
  --blue-wash: color-mix(in srgb, var(--blue) var(--status-wash), transparent);
  --status-wash: 11%;

  --accent: var(--chosen-accent);
  --accent-2: var(--chosen-accent);
  --accent-text: var(--chosen-accent);
  --accent-ink: #05080C;
  --focus: var(--accent-text);
  --accent-wash: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-selection: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --primary-hover: color-mix(in srgb, var(--accent), #fff 14%);
  --primary-active: color-mix(in srgb, var(--accent), #05080C 10%);
  --stone: var(--accent-2);
  --stone-bright: var(--accent);
  --stone-dim: var(--accent-text);

  --glass-sidebar: color-mix(in srgb, var(--surface) var(--sidebar-coverage), transparent);
  --toolbar-bg: color-mix(in srgb, var(--surface) var(--toolbar-coverage), transparent);
  --toolbar-deep: color-mix(in srgb, var(--surface) var(--toolbar-deep-coverage), transparent);
  --glass: color-mix(in srgb, var(--surface) var(--panel-coverage), transparent);
  --glass-strong: color-mix(in srgb, var(--surface) var(--sheet-coverage), transparent);
  --glass-menu: color-mix(in srgb, var(--surface) var(--menu-coverage), transparent);
  --tabbar-bg: var(--glass-sidebar);
  --menu-bg: var(--surface);
  --glass-hover: var(--fill-hover);
  --glass-press: var(--fill-active);
  --well: var(--well-bg);
  --sidebar-coverage: 62%;
  --toolbar-coverage: 66%;
  --toolbar-deep-coverage: 88%;
  --panel-coverage: 78%;
  --sheet-coverage: 91%;
  --menu-coverage: 97%;

  --blur: saturate(180%) blur(var(--radius-blur-sidebar));
  --blur-toolbar: saturate(155%) blur(var(--radius-blur-toolbar));
  --blur-panel: saturate(145%) blur(var(--radius-blur-panel));
  --blur-sheet: saturate(165%) blur(var(--radius-blur-sheet));
  --blur-menu: saturate(180%) blur(var(--radius-blur-menu));
  --radius-blur-sidebar: 30px;
  --radius-blur-toolbar: 16px;
  --radius-blur-panel: 18px;
  --radius-blur-sheet: 32px;
  --radius-blur-menu: 40px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888' filter='url(%23grain)' d='M0 0h96v96H0z'/%3E%3C/svg%3E");
  --grain-opacity: .025;
  --glint-color: rgb(255 255 255 / .09);

  --hair: rgb(230 242 255 / .1);
  --hair-strong: rgb(230 242 255 / .17);
  --rim: inset 0 1px 0 rgb(244 249 255 / .09), inset 0 0 0 1px var(--hair);
  --rim-window: inset 0 1px 0 rgb(244 249 255 / .19), inset 0 0 0 1px var(--hair-strong);
  --rim-sidebar: inset 1px 1px 0 rgb(244 249 255 / .08);
  --lift: 0 1px 2px rgb(0 0 0 / .22), 0 4px 10px rgb(0 0 0 / .17);
  --lift-toolbar: 0 2px 4px -2px rgb(0 0 0 / .45);
  --lift-menu: 0 1px 3px rgb(0 0 0 / .44), 0 9px 24px rgb(0 0 0 / .26);
  --lift-tabbar: 0 2px 4px rgb(0 0 0 / .30), 0 12px 28px rgb(0 0 0 / .25);
  --shadow-sheet: 0 2px 6px rgb(0 0 0 / .40), 0 14px 32px rgb(0 0 0 / .44);
  --fill: rgb(241 247 255 / .07);
  --fill-hover: rgb(241 247 255 / .10);
  --fill-active: rgb(241 247 255 / .14);
  --input-bg: rgb(0 0 0 / .24);
  --well-bg: rgb(0 0 0 / .20);
  --well-solid-ink: #0C1119;
  --seg-bg: rgb(0 0 0 / .27);
  --row-hover: rgb(241 247 255 / .032);
  --scrim: rgb(7 12 20 / .50);
  --lock-veil: radial-gradient(ellipse at 50% 43%, rgb(5 9 16 / .74), rgb(5 9 16 / .32) 79%, rgb(5 9 16 / .42));

  --r-win: 24px;
  --r-card: 16px;
  --r-group: 10px;
  --r-ctl: 8px;
  --r-pill: 999px;
  --side-w: 236px;
  --bar-h: 52px;
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 20px;
  --gap-6: 24px;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, sans-serif;
  --sans: var(--font-text);
  --type-caption: 11px;
  --type-meta: 12px;
  --type-body: 13px;
  --type-control: 15px;
  --type-lead: 17px;
  --type-title: 22px;
  --type-display: 28px;
  --type-hero: 34px;
  --fs: var(--type-body);
  --ease: cubic-bezier(.32,.72,0,1);
  --motion-press: 120ms;
  --motion-state: 220ms;
  --motion-sheet: 360ms;
  --motion-wallpaper: 600ms;
}

:root[data-scheme="light"] {
  color-scheme: light;
  --label: #14202A;
  --label-2: #293747;
  --label-3: #3C4958;
  --green-ink: #245734;
  --orange-ink: #714A17;
  --red-ink: #913934;
  --blue-ink: #245685;
  --status-wash: 8%;
  --chosen-accent: var(--chosen-accent-light);
  --accent-ink: #fff;
  --accent-wash: color-mix(in srgb, var(--accent) 8%, transparent);
  --accent-selection: color-mix(in srgb, var(--accent) 8%, var(--surface));
  --primary-hover: color-mix(in srgb, var(--accent), #15212C 12%);
  --primary-active: color-mix(in srgb, var(--accent), #15212C 24%);
  --grain-opacity: .02;
  --glint-color: rgb(255 255 255 / .18);
  --hair: rgb(20 32 42 / .12);
  --hair-strong: rgb(20 32 42 / .19);
  --rim: inset 0 1px 0 rgb(255 255 255 / .70), inset 0 0 0 1px var(--hair);
  --rim-window: inset 0 1px 0 rgb(255 255 255 / .84), inset 0 0 0 1px var(--hair-strong);
  --rim-sidebar: inset 1px 1px 0 rgb(255 255 255 / .68);
  --lift: 0 1px 2px rgb(20 32 42 / .12), 0 4px 10px rgb(20 32 42 / .09);
  --lift-toolbar: 0 2px 4px -2px rgb(20 32 42 / .21);
  --lift-menu: 0 1px 3px rgb(20 32 42 / .20), 0 9px 24px rgb(20 32 42 / .14);
  --lift-tabbar: 0 2px 5px rgb(20 32 42 / .15), 0 12px 28px rgb(20 32 42 / .14);
  --shadow-sheet: 0 2px 6px rgb(20 32 42 / .24), 0 14px 32px rgb(20 32 42 / .22);
  --fill: rgb(20 32 42 / .055);
  --fill-hover: rgb(20 32 42 / .085);
  --fill-active: #fff;
  --input-bg: rgb(255 255 255 / .72);
  --well-bg: rgb(255 255 255 / .44);
  --well-solid-ink: #fff;
  --seg-bg: rgb(20 32 42 / .06);
  --row-hover: rgb(20 32 42 / .026);
  --scrim: rgb(17 26 40 / .30);
  --lock-veil: radial-gradient(ellipse at 50% 43%, rgb(5 9 16 / .90), rgb(5 9 16 / .69) 82%, rgb(5 9 16 / .74));
}
:root[data-scheme="light"] :is(.sidebar-brand .logo, .toolbar-logo) { filter: invert(1); }
:root[data-scheme="light"] :is(.input, .select, .textarea) { box-shadow: inset 0 1px 1px rgb(0 0 0 / .04); }
:root[data-scheme="light"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' fill='none' stroke='%233C4958' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5l3-3 3 3M2 9l3 3 3-3'/%3E%3C/svg%3E"); }
:root[data-scheme="light"] .btn-primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 1px 2px rgb(20 32 42 / .18); }
:root[data-scheme="light"] .row-input::-webkit-calendar-picker-indicator { filter: none; }
:root[data-scheme="light"] .dot.live { box-shadow: 0 0 0 3px var(--green-wash); }
:root[data-scheme="light"] pre.code { color: var(--label-2); }
:root[data-scheme="light"] #audit-result svg { box-shadow: 0 0 0 .5px var(--hair-strong); }

.studio .toolbar:not(.is-scrolled) { box-shadow: var(--rim-sidebar); }
.studio .toolbar.is-scrolled { box-shadow: var(--rim-sidebar), var(--lift-toolbar); }
.studio .dot.live { box-shadow: 0 0 0 3px var(--green-wash); }
.studio .lock {
  --label: #F5F7FA;
  --label-2: #D7DCE4;
  --label-3: #C2C8D2;
  --focus: #AAC7E6;
  --red: #FFACA7;
  --rim: inset 0 1px 0 rgb(255 255 255 / .13);
  color: var(--label);
  color-scheme: dark;
}
.studio .lock-error { color: var(--red); }
.studio:has(.lock:not(.hidden, .is-unlocking)) > .app { visibility: hidden; }

@media (max-width: 860px) {
  :root {
    --fs: var(--type-control);
    --radius-blur-sidebar: 15px;
    --radius-blur-toolbar: 8px;
    --radius-blur-panel: 9px;
    --radius-blur-sheet: 16px;
    --radius-blur-menu: 20px;
  }
  .studio :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    font-size: max(var(--type-lead), 1em);
  }
}

:root[data-solid="true"] {
  --blur: none; --blur-toolbar: none; --blur-panel: none; --blur-sheet: none; --blur-menu: none;
  --sidebar-coverage: 100%; --toolbar-coverage: 100%; --toolbar-deep-coverage: 100%;
  --panel-coverage: 100%; --sheet-coverage: 100%; --menu-coverage: 100%;
  --grain-opacity: 0;
  --well-bg: color-mix(in srgb, var(--surface) 82%, var(--well-solid-ink));
  --input-bg: color-mix(in srgb, var(--surface) 72%, var(--well-solid-ink));
  --seg-bg: color-mix(in srgb, var(--surface) 92%, var(--label));
}
:root[data-solid="true"] .hub-glint,
:root[data-solid="true"] .hub-wallpaper-spotlight { display: none; }
:root[data-solid="true"] .lock-mark,
:root[data-solid="true"] .lock-input { background: #242D39 !important; }
:root[data-solid="true"] .lock-go { background: #415168; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --sidebar-coverage: 100%; --toolbar-coverage: 100%; --toolbar-deep-coverage: 100%;
    --panel-coverage: 100%; --sheet-coverage: 100%; --menu-coverage: 100%;
    --grain-opacity: 0;
  }
}
@supports not (color: color-mix(in srgb, white, black)) {
  :root {
    --glass: var(--surface); --glass-strong: var(--surface); --glass-sidebar: var(--surface);
    --glass-menu: var(--surface); --toolbar-bg: var(--surface); --toolbar-deep: var(--surface);
  }
}
:root[data-motion="off"] .studio *,
:root[data-motion="off"] .studio *::before,
:root[data-motion="off"] .studio *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
:root[data-motion="off"] .spin { border-right-color: currentColor; }
:root[data-motion="off"] :is(.hub-glint, .hub-wallpaper-spotlight) { display: none; }
:root[data-page-hidden] *,
:root[data-page-hidden] *::before,
:root[data-page-hidden] *::after { animation-play-state: paused !important; }
