body[data-appearance=artist-gray]{--artist-header:#bcbcbc;--artist-paper:#e6e6e6;--artist-ink:#303030;--artist-muted:#626262;--artist-window-art:url("artist-themes/gray-window.svg");--artist-footer-art:url("artist-themes/gray-footer.svg");--artist-menu-art:url("artist-themes/gray-menu.svg");--glass-surface:#e6e6e6;--glass-soft:#bcbcbc;--glass-field:#f1f1f1;--glass-line:#89898966;--glass-inner:#ffffff55;--glass-shadow:none;--theme-ink:#303030;--theme-muted:#626262;--theme-accent:#65543a;--theme-shade:transparent}
body[data-mode][data-appearance] .appearance-choice button[data-appearance=artist-gray]{background:radial-gradient(circle at 30% 22%,#fff 0,#e6e6e6 25%,#bcbcbc 75%);border-color:#898989}
body[data-appearance=artist-black]{--artist-header:#000000;--artist-paper:#191919;--artist-ink:#f5f5f5;--artist-muted:#b9b9b9;--artist-window-art:url("artist-themes/black-window.svg");--artist-footer-art:url("artist-themes/black-footer.svg");--artist-menu-art:url("artist-themes/black-menu.svg");--glass-surface:#191919;--glass-soft:#00000033;--glass-field:#191919;--glass-line:#f5f5f544;--glass-inner:#ffffff55;--glass-shadow:none;--theme-ink:#f5f5f5;--theme-muted:#b9b9b9;--theme-accent:#f5f5f5;--theme-shade:transparent}
body[data-mode][data-appearance] .appearance-choice button[data-appearance=artist-black]{background:radial-gradient(circle at 30% 22%,#fff 0,#191919 20%,#000000 70%);border-color:#000000}
body[data-appearance=artist-coral]{--artist-header:#ff7272;--artist-paper:#ff9696;--artist-ink:#302124;--artist-muted:#6c3b42;--artist-window-art:url("artist-themes/coral-window.svg");--artist-footer-art:url("artist-themes/coral-footer.svg");--artist-menu-art:url("artist-themes/coral-menu.svg");--glass-surface:#ff9696;--glass-soft:#ff727233;--glass-field:#ff9696;--glass-line:#30212444;--glass-inner:#ffffff55;--glass-shadow:none;--theme-ink:#302124;--theme-muted:#6c3b42;--theme-accent:#302124;--theme-shade:transparent}
body[data-mode][data-appearance] .appearance-choice button[data-appearance=artist-coral]{background:radial-gradient(circle at 30% 22%,#fff 0,#ff9696 20%,#ff7272 70%);border-color:#ff7272}
body[data-appearance=artist-yellow]{--artist-header:#feb424;--artist-paper:#ffce6e;--artist-ink:#312513;--artist-muted:#6f501d;--artist-window-art:url("artist-themes/yellow-window.svg");--artist-footer-art:url("artist-themes/yellow-footer.svg");--artist-menu-art:url("artist-themes/yellow-menu.svg");--glass-surface:#ffce6e;--glass-soft:#feb42433;--glass-field:#ffce6e;--glass-line:#31251344;--glass-inner:#ffffff55;--glass-shadow:none;--theme-ink:#312513;--theme-muted:#6f501d;--theme-accent:#312513;--theme-shade:transparent}
body[data-mode][data-appearance] .appearance-choice button[data-appearance=artist-yellow]{background:radial-gradient(circle at 30% 22%,#fff 0,#ffce6e 20%,#feb424 70%);border-color:#feb424}
body[data-appearance=artist-blue]{--artist-header:#0099ff;--artist-paper:#82cdff;--artist-ink:#153248;--artist-muted:#315d78;--artist-window-art:url("artist-themes/blue-window.svg");--artist-footer-art:url("artist-themes/blue-footer.svg");--artist-menu-art:url("artist-themes/blue-menu.svg");--glass-surface:#82cdff;--glass-soft:#0099ff33;--glass-field:#82cdff;--glass-line:#15324844;--glass-inner:#ffffff55;--glass-shadow:none;--theme-ink:#153248;--theme-muted:#315d78;--theme-accent:#153248;--theme-shade:transparent}
body[data-mode][data-appearance] .appearance-choice button[data-appearance=artist-blue]{background:radial-gradient(circle at 30% 22%,#fff 0,#82cdff 20%,#0099ff 70%);border-color:#0099ff}

/* Original artist drawings, stretched through nine-slice framing to preserve their controls. */
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window]){--theme-ink:var(--artist-ink);--theme-muted:var(--artist-muted);--theme-accent:var(--artist-ink);--glass-soft:var(--artist-header);--glass-inner:#ffffff55;background:var(--artist-paper);color:var(--artist-ink);border:1px solid transparent;border-image-source:var(--artist-window-art);border-image-slice:52 124 5 5 fill;border-image-width:46px 124px 5px 5px;border-image-repeat:stretch;border-radius:3px;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window]) .titlebar{height:46px;background:transparent;border:0;padding:0 12px 0 16px}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window]) .title-label{color:#fff;font-size:12px}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window]) .window-controls{gap:5px;height:44px;align-items:center}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window]) .window-controls button{width:28px;height:36px;padding:0;font-size:0;background:none!important;color:transparent;border:0}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window]) .window-controls button:last-child{width:44px;background:none!important;font-size:0}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window]) :is(.content,.explorer-bar){background:transparent;color:var(--artist-ink)}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window])[data-artist-window] :is(h2,h3,strong,.catalog-back){color:var(--artist-ink)}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window])[data-artist-window] :is(.eyebrow,.footline,.gallery-hint,small){color:var(--artist-muted)}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window])[data-artist-window] :is(.collection-card,.artwork-tile,.artwork-purchase){background:var(--artist-paper);color:var(--artist-ink);border-color:var(--glass-line)}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window])[data-artist-window] .action{background:var(--artist-header);color:var(--artist-ink)}
body[data-mode][data-appearance^="artist-"] :is(.window,.window[data-artist-window])[data-artist-window] .action.secondary{background:var(--artist-paper);color:var(--artist-ink);border-color:var(--glass-line)}
body[data-mode=desktop][data-appearance^="artist-"] .dock-wrap{background:var(--artist-header) var(--artist-footer-art) center/100% 100% no-repeat;border:0;box-shadow:none;backdrop-filter:none}
body[data-mode=desktop][data-appearance^="artist-"] .dock{background:transparent;border-color:#ffffff66;box-shadow:none;backdrop-filter:none}
body[data-mode=desktop][data-appearance^="artist-"] .start-menu:not([hidden]){background:var(--artist-paper);border:1px solid transparent;border-image-source:var(--artist-menu-art);border-image-slice:66 5 5 5 fill;border-image-width:54px 5px 5px 5px;color:var(--artist-ink);box-shadow:none;backdrop-filter:none}
body[data-mode][data-appearance^="artist-"] .start-menu :is(button,input,.start-name){color:var(--artist-ink)}
body[data-mode][data-appearance^="artist-"] :is(.window[data-app=notes],.notes-app){--note-paper:var(--artist-paper);--note-panel:var(--artist-paper);--note-side:var(--artist-header);--note-ink:var(--artist-ink);--note-muted:var(--artist-muted);--note-line:var(--glass-line);--note-selected:#ffffff40}

/* The desktop taskbar is the supplied 66px drawing; its buttons are transparent hit areas. */
body[data-mode=desktop][data-appearance^="artist-"] .dock-wrap{height:66px;gap:0;background:var(--artist-header);border:1px solid transparent;border-image-source:var(--artist-footer-art);border-image-slice:0 176 0 292 fill;border-image-width:0 176px 0 292px;border-image-repeat:stretch;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
body[data-mode=desktop][data-appearance^="artist-"] .desktop{height:calc(100% - 66px)}
body[data-mode=desktop][data-appearance^="artist-"] .win-start{width:64px;height:64px;flex:0 0 64px;background:transparent;border:0;box-shadow:none}
body[data-mode=desktop][data-appearance^="artist-"] .win-search{display:block;flex:0 0 220px;width:220px;height:64px;background:transparent;border:0;border-radius:0;box-shadow:none;font-size:0;color:transparent;margin:0;padding:0}
body[data-mode=desktop][data-appearance^="artist-"] .win-search span{visibility:hidden}
body[data-mode=desktop][data-appearance^="artist-"] .dock{height:64px;min-width:0;flex:1;align-items:center;padding:0 10px;gap:4px;border:0;background:transparent;box-shadow:none;backdrop-filter:none;overflow-x:auto;scrollbar-width:none}
body[data-mode=desktop][data-appearance^="artist-"] .dock button{flex:0 0 40px}
body[data-mode=desktop][data-appearance^="artist-"] .win-tray{width:174px;flex:0 0 174px;justify-content:flex-end;color:#fff;background:transparent;border:0;box-shadow:none;padding-right:12px}
body[data-mode=desktop][data-appearance^="artist-"] .start-menu:not([hidden]){bottom:66px}

/* Keep the illustrated left and right dividers entirely clear. */
body[data-mode=desktop][data-appearance^="artist-"] .win-start{position:relative;flex:0 0 64px;width:64px;min-width:64px;max-width:64px;padding:10px 12px;overflow:hidden;display:grid;place-items:center}
body[data-mode=desktop][data-appearance^="artist-"] .win-start .papi-start-logo{position:static;display:block;width:38px;height:42px;max-width:100%;max-height:100%;margin:0;transform:none}
body[data-mode=desktop][data-appearance^="artist-"] .win-search{min-width:220px;max-width:220px;overflow:hidden;font-size:0!important;color:transparent!important;background:none!important;border:0!important;box-shadow:none!important}
body[data-mode=desktop][data-appearance^="artist-"] .dock{margin-left:16px;margin-right:18px;padding:0 4px;max-width:none;min-width:0;overflow-x:auto;overflow-y:hidden;flex-basis:0;isolation:isolate}
body[data-mode=desktop][data-appearance^="artist-"] .win-tray{box-sizing:border-box;min-width:174px;max-width:174px;width:174px;padding:0 14px 0 25px;overflow:hidden;gap:0;border:0!important}
body[data-mode=desktop][data-appearance^="artist-"] .win-tray>span{display:none}
body[data-mode=desktop][data-appearance^="artist-"] .win-time{display:block;text-align:right;width:100%;font-size:11px;color:var(--artist-ink);white-space:nowrap;line-height:1.6}
body[data-mode][data-appearance=artist-gray] :is(.window,.window[data-artist-window]) .title-label{color:#414141}
body[data-mode][data-appearance=artist-gray] :is(.window,.window[data-artist-window]) .window-controls button:not(:last-child){font-size:19px;color:#757575}
/* Recolor every application's inner surfaces, including form fields and Notes. */
body[data-mode][data-appearance^="artist-"] .window :is(.card,.row,.field,.postal-address,.message,.catalog-empty){color:var(--artist-ink);border-color:var(--glass-line)}
body[data-mode][data-appearance^="artist-"] .window :is(input,textarea,select){color:var(--artist-ink);background:var(--glass-field);border-color:var(--glass-line)}
body[data-mode][data-appearance^="artist-"] .window :is(.lead,.row small,.field label,.footline){color:var(--artist-muted)}
body[data-mode][data-appearance^="artist-"] :is(.window[data-app=notes],.notes-app){--note-paper:var(--artist-paper);--note-panel:var(--artist-paper);--note-side:var(--artist-header);--note-ink:var(--artist-ink);--note-muted:var(--artist-muted);--note-line:var(--glass-line);--note-selected:#ffffff40}

body[data-appearance=artist-black]{--artist-footer-left:url("artist-themes/black-footer-left.svg");--artist-footer-right:url("artist-themes/black-footer-right.svg")}

body[data-appearance=artist-coral]{--artist-footer-left:url("artist-themes/coral-footer-left.svg");--artist-footer-right:url("artist-themes/coral-footer-right.svg")}

body[data-appearance=artist-yellow]{--artist-footer-left:url("artist-themes/yellow-footer-left.svg");--artist-footer-right:url("artist-themes/yellow-footer-right.svg")}

body[data-appearance=artist-blue]{--artist-footer-left:url("artist-themes/blue-footer-left.svg");--artist-footer-right:url("artist-themes/blue-footer-right.svg")}

body[data-appearance=artist-gray]{--artist-footer-left:url("artist-themes/gray-footer-left.svg");--artist-footer-right:url("artist-themes/gray-footer-right.svg")}

/* Fixed-size end pieces preserve the hand-drawn magnifier and dividers pixel for pixel. */
body[data-mode=desktop][data-appearance^="artist-"] .dock-wrap{border:0;border-image:none;background-color:var(--artist-header);background-image:var(--artist-footer-left),var(--artist-footer-right);background-position:left center,right center;background-size:292px 66px,176px 66px;background-repeat:no-repeat}

body[data-appearance=artist-black]{--artist-search-art:url("artist-themes/black-search.svg")}

body[data-appearance=artist-coral]{--artist-search-art:url("artist-themes/coral-search.svg")}

body[data-appearance=artist-yellow]{--artist-search-art:url("artist-themes/yellow-search.svg")}

body[data-appearance=artist-blue]{--artist-search-art:url("artist-themes/blue-search.svg")}

body[data-appearance=artist-gray]{--artist-search-art:url("artist-themes/gray-search.svg")}

/* The original search panel is a separate, unscaled artwork next to the menu logo. */
body[data-mode=desktop][data-appearance^="artist-"] .dock-wrap{background-image:var(--artist-footer-right);background-position:right center;background-size:176px 66px}
body[data-mode=desktop][data-appearance^="artist-"] .win-start{flex:0 0 80px;width:80px;min-width:80px;max-width:80px}
body[data-mode=desktop][data-appearance^="artist-"] .win-search{flex:0 0 217px;width:217px;min-width:217px;max-width:217px;height:66px;margin-left:16px;background:transparent var(--artist-search-art) center/217px 66px no-repeat!important;cursor:pointer}

body[data-appearance=artist-black]{--artist-footer-divider:url("artist-themes/black-divider.svg")}

body[data-appearance=artist-coral]{--artist-footer-divider:url("artist-themes/coral-divider.svg")}

body[data-appearance=artist-yellow]{--artist-footer-divider:url("artist-themes/yellow-divider.svg")}

body[data-appearance=artist-blue]{--artist-footer-divider:url("artist-themes/blue-divider.svg")}

body[data-appearance=artist-gray]{--artist-footer-divider:url("artist-themes/gray-divider.svg")}

/* Scale the search drawing uniformly, and anchor the divider to the date area. */
body[data-mode=desktop][data-appearance^="artist-"] .win-start{flex:0 0 64px;width:64px;min-width:64px;max-width:64px}
body[data-mode=desktop][data-appearance^="artist-"] .win-start .papi-start-logo{width:32px;height:36px}
body[data-mode=desktop][data-appearance^="artist-"] .win-search{flex:0 0 144px;width:144px;min-width:144px;max-width:144px;height:44px;margin-left:10px;background-size:144px auto!important}
body[data-mode=desktop][data-appearance^="artist-"] .dock-wrap{background-image:var(--artist-footer-divider);background-size:auto 44px;background-position:right 126px center;background-repeat:no-repeat}
body[data-mode=desktop][data-appearance^="artist-"] .win-tray{flex:0 0 120px;width:120px;min-width:120px;max-width:120px;padding:0 12px 0 8px}
body[data-mode=desktop][data-appearance^="artist-"] .dock{margin-right:18px}

/* All three gray controls now use the same drawn artwork as the other palettes. */
body[data-mode][data-appearance=artist-gray] :is(.window,.window[data-artist-window]) .window-controls button:not(:last-child){font-size:0;color:transparent}

/* Touch devices keep their original floating glass dock, without the desktop artwork. */
body:is([data-mode=phone],[data-mode=tablet])[data-appearance^="artist-"] .dock-wrap{background:transparent;border:0;border-image:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
body:is([data-mode=phone],[data-mode=tablet])[data-appearance^="artist-"] .dock{background:color-mix(in srgb,var(--artist-paper) 72%,transparent);border:1px solid var(--glass-line);border-radius:21px;box-shadow:0 8px 30px #0003,inset 0 1px 0 #ffffff33;backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%)}

/* Keep the character and moon in view in the narrower device crops. */
body[data-device=desktop][data-appearance=artist-black] .wallpaper{background-position:center 30%}
body[data-device=tablet][data-appearance=artist-black] .wallpaper{background-position:78% center}
body[data-mode=phone][data-device=phone]:is([data-appearance=artist-black],[data-appearance=artist-coral]) .wallpaper{background-position:center}

body[data-theme-cursor=gray-arrow]{--theme-cursor:url("artist-cursors/gray-arrow.png") 2 2}
body[data-theme-cursor=pink-arrow]{--theme-cursor:url("artist-cursors/pink-arrow.png") 2 2}
body[data-theme-cursor=orange-star]{--theme-cursor:url("artist-cursors/orange-star.png") 2 2}
body[data-theme-cursor=blue-star]{--theme-cursor:url("artist-cursors/blue-star.png") 2 2}
body[data-theme-cursor=green-star]{--theme-cursor:url("artist-cursors/green-star.png") 2 2}
body[data-theme-cursor=green-reticle]{--theme-cursor:url("artist-cursors/green-reticle.png") 16 16}

@media (any-hover:hover) and (any-pointer:fine){
  body[data-theme-cursor]{cursor:var(--theme-cursor),auto}
  body[data-mode][data-appearance][data-theme-cursor] :is(button,a[href],summary,[role=button],label[for]):not(:disabled,[aria-disabled=true]){
    cursor:var(--theme-cursor),pointer;
  }
  body[data-theme-cursor] :is(input:not([type]),input[type=text],input[type=search],input[type=email],input[type=password],input[type=tel],textarea,[contenteditable=true]){cursor:text}
}

body[data-mode][data-appearance] .window[data-app=theme-customization] .explorer-bar{display:none!important}
body[data-mode][data-appearance] .window[data-app=theme-customization] .content{padding:14px 18px;min-height:0;overflow:auto}
body[data-mode][data-appearance] .window[data-app=theme-customization] .content :is(h2,h3){font-size:13px;line-height:1.3;margin:0 0 7px;font-weight:650}
body[data-mode][data-appearance] .window .theme-settings [data-theme-preview-anchor]{justify-content:center;padding:4px;margin:0}
.window[data-app=theme-customization] .wallpaper-settings{margin:10px 0}
.theme-settings .wallpaper-picker .wallpaper-grid{grid-template-columns:repeat(5,minmax(84px,1fr));grid-auto-flow:column;overflow-x:auto;scrollbar-width:thin;padding:2px}
.theme-settings .wallpaper-picker .wallpaper-choice{height:100%;display:flex;flex-direction:column;align-items:stretch}
body[data-mode][data-appearance] .theme-settings .wallpaper-choice .wallpaper-thumb{height:54px;flex:none}
.theme-wallpaper-import{margin-top:8px;color:var(--theme-ink);font-size:11px}
.theme-wallpaper-import summary{width:fit-content}
.theme-cursor-choices{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,36px);gap:5px}
.theme-cursor-choices button{position:relative;display:grid;place-items:center;min-width:0;height:36px;padding:3px;border-radius:8px;border:1px solid var(--glass-line);background:var(--glass-soft);color:var(--theme-ink)}
.theme-cursor-choices img{display:block;max-width:100%;height:auto}
.theme-cursor-choices [data-cursor-choice=auto]::after{content:"↺" / "";position:absolute;top:1px;right:3px;font-size:10px;line-height:1}
.theme-cursor-choices button[aria-pressed=true]{outline:2px solid var(--theme-ink);outline-offset:-2px}

