/* npc17d: Window Workshop UI 2027.
   One stylesheet for every button and control: frosted surfaces (solid fallback, and solid on phones to keep them cool),
   one periwinkle accent, 8/12/16 px radii, a system font stack, line icons (Lucide, ISC, see CREDITS-UI.md),
   modern sliders and toggles, hover / active / focus-visible / disabled states, reduced-motion aware.
   Loaded in <head>; other scripts append their own <style> later, so every rule here starts with "html body"
   to win on specificity instead of load order. No yellow. */
:root{
 --ww-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
 --ww-accent:#9AABFF;--ww-accent-2:#7b8cff;--ww-accent-3:#6d7ef0;
 --ww-accent-soft:rgba(154,171,255,.16);--ww-accent-line:rgba(154,171,255,.42);
 --ww-text:#f4f6fb;--ww-text-2:rgba(236,239,248,.72);--ww-text-3:rgba(236,239,248,.5);
 --ww-surface:rgba(19,21,29,.92);            /* solid fallback */
 --ww-glass:rgba(22,25,35,.58);              /* frosted, desktop only */
 --ww-surface-strong:rgba(17,19,27,.985);  /* phones: opaque, no blur (keeps the GPU cool) */
 --ww-glass-strong:rgba(18,20,29,.78);
 --ww-fill:rgba(255,255,255,.06);--ww-fill-2:rgba(255,255,255,.1);--ww-fill-3:rgba(255,255,255,.15);
 --ww-line:rgba(255,255,255,.1);--ww-line-2:rgba(255,255,255,.16);
 --ww-hi:inset 0 1px 0 rgba(255,255,255,.07);
 --ww-shadow:0 6px 20px rgba(0,0,0,.32),0 1px 2px rgba(0,0,0,.25);
 --ww-shadow-lg:0 18px 48px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.25);
 --ww-blur:blur(18px) saturate(1.5);
 --ww-r-sm:8px;--ww-r:12px;--ww-r-lg:16px;
 --ww-fs-xs:10.5px;--ww-fs-sm:12px;--ww-fs:13px;--ww-fs-md:14px;--ww-fs-lg:16px;
 --ww-ease:cubic-bezier(.2,.8,.2,1);--ww-t:.16s;
}
html body{font-family:var(--ww-font)}
html body button,html body input,html body select,html body textarea{font-family:var(--ww-font)}

/* ---------- surfaces ---------- */
/* chips: small floating controls */
html body .hbtn,html body .cbtn,html body .ww-chal,html body #pbBtn,html body #wwShare,html body #t2tab,html body #t2bar,html body #rcpill,html body #bpick,html body #tb,html body #bar{
 background:var(--ww-surface)!important;border:1px solid var(--ww-line)!important;box-shadow:var(--ww-shadow),var(--ww-hi)!important;color:var(--ww-text)!important;text-shadow:none!important}
/* panels: menus, sheets, popovers */
html body .menu,html body #setp.mt,html body #prP,html body #t2m,html body #info,html body #bpp,html body #savep,html body #chPanel,html body #t2{
 background:var(--ww-surface-strong)!important;border:1px solid var(--ww-line)!important;box-shadow:var(--ww-shadow-lg),var(--ww-hi)!important;color:var(--ww-text)!important}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
 html:not(.wwmob) body .hbtn,html:not(.wwmob) body .cbtn,html:not(.wwmob) body .ww-chal,html:not(.wwmob) body #pbBtn,html:not(.wwmob) body #wwShare,html:not(.wwmob) body #t2tab,html:not(.wwmob) body #t2bar,html:not(.wwmob) body #rcpill,html:not(.wwmob) body #bpick,html:not(.wwmob) body #tb,html:not(.wwmob) body #bar{
  background:var(--ww-glass)!important;-webkit-backdrop-filter:var(--ww-blur)!important;backdrop-filter:var(--ww-blur)!important}
 html:not(.wwmob) body .menu,html:not(.wwmob) body #setp.mt,html:not(.wwmob) body #prP,html:not(.wwmob) body #t2m,html:not(.wwmob) body #info,html:not(.wwmob) body #bpp,html:not(.wwmob) body #savep,html:not(.wwmob) body #chPanel,html:not(.wwmob) body #t2{
  background:var(--ww-glass-strong)!important;-webkit-backdrop-filter:var(--ww-blur)!important;backdrop-filter:var(--ww-blur)!important}
}
html body .menu,html body #prP,html body #t2m,html body #info,html body #bpp,html body #savep,html body #chPanel{border-radius:var(--ww-r-lg)!important}

/* ---------- icons ---------- */
html body .ww-emo{display:none!important}
html body .ww-ic{width:18px;height:18px;flex:none;display:inline-block;vertical-align:-4px;stroke:currentColor;pointer-events:none!important}
html body .ww-ic *{pointer-events:none!important}
html body #tb button,html body #info button{position:relative}
html body #info{z-index:40!important}
html body button.ww-ico:not(.hbtn):not(.b){display:inline-flex;align-items:center;gap:7px}
html body .menu button.ww-ico,html body #setp.mt button.ww-ico{justify-content:flex-start}
html body #setp.mt .mrow button.ww-ico{justify-content:center}

/* ---------- shared button behaviour ---------- */
html body :is(.hbtn,.cbtn,.ww-chal,#pbBtn,#wwShare,#t2tab,#t2bar,#bar .b,.b,#tb button,#rcpill button,#prP button,#t2m button,#info button,#bpp button,.menu button,#setp.mt button,.dsec button,.vsClose,#t2 .tab,#t2 .card,.wwWake,#pbExit){
 transition:background-color var(--ww-t) var(--ww-ease),border-color var(--ww-t) var(--ww-ease),color var(--ww-t) var(--ww-ease),box-shadow var(--ww-t) var(--ww-ease),transform .12s var(--ww-ease),opacity var(--ww-t) var(--ww-ease);-webkit-tap-highlight-color:transparent}
html body :is(.hbtn,.cbtn,.ww-chal,#pbBtn,#wwShare,#t2bar,#bar .b,.b,#tb button,#rcpill button,#prP button,#t2m button,#info button,#bpp button,.menu button,#setp.mt button,.dsec button,.vsClose,#t2 .tab,#pbExit):not(:disabled):active{transform:scale(.96)}
html body :is(button,select,input,summary,textarea,[role=button],[tabindex]):focus-visible{outline:2px solid var(--ww-accent)!important;outline-offset:2px!important}
html body :is(button,select,input,summary,[role=button]):focus:not(:focus-visible){outline:none}
html body button:disabled{cursor:default}

/* ---------- top bar: one centred frosted dock ---------- */
html body #bar{left:50%!important;right:auto!important;transform:translateX(-50%);top:calc(env(safe-area-inset-top) + 8px)!important;width:max-content;max-width:calc(100vw - 16px);box-sizing:border-box;justify-content:center;gap:2px;padding:4px!important;border-radius:var(--ww-r-lg)!important;overflow:hidden}
html body #bar .b{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;box-sizing:border-box;min-width:48px;min-height:46px!important;height:46px;padding:5px 7px 4px!important;border-radius:var(--ww-r)!important;background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;color:var(--ww-text-2)!important;font-size:0!important;line-height:1;cursor:pointer;text-shadow:none!important}
html body #bar .b .ww-ic{width:20px;height:20px;vertical-align:0}
html body #bar .b::after{position:static!important;transform:none!important;margin:0!important;font:500 var(--ww-fs-xs)/1 var(--ww-font)!important;letter-spacing:.01em!important;color:inherit!important;text-shadow:none!important}
@media (hover:hover){html body #bar .b:hover{background:var(--ww-fill-2)!important;color:var(--ww-text)!important}}
html body #bar .b.on{background:var(--ww-accent-soft)!important;color:var(--ww-accent)!important;text-shadow:none!important}
html body #bar .b.on .ww-ic{filter:drop-shadow(0 0 6px rgba(154,171,255,.55))}
html body #bar #lamp{min-width:52px;min-height:46px;font-size:0!important}
html body #bar #lvWrap,html body #bar #winSzWrap,html body #bar #wwVolWrap{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:46px;padding:0 8px;margin:0;border-radius:var(--ww-r)}
html body #bar #lvWrap::after,html body #bar #winSzWrap::after,html body #bar #wwVolWrap::after{position:static!important;transform:none!important;margin:0!important;font:500 var(--ww-fs-xs)/1 var(--ww-font)!important;color:var(--ww-text-2)!important;text-shadow:none!important}
html body #bar #lv,html body #bar #winSz,html body #bar #wwVol{width:76px;flex:none}
html body #bar>*+#lvWrap,html body #bar>#winSzWrap+*,html body #bar>#wwVolWrap+*{margin-left:2px}
/* keep clear of Undo/Redo/Save/Load on the left: centre the dock in the space right of them */
@media (max-width:1440px) and (min-width:701px){html body #bar{left:384px!important;right:8px!important;margin:0 auto;transform:none}}
@media (max-width:900px){html body #bar .b{min-width:40px;padding:5px 4px 4px!important}html body #bar #lv,html body #bar #winSz,html body #bar #wwVol{width:56px}}
@media (max-width:700px){html body #bar{left:50%!important;right:auto!important;transform:translateX(-50%)}html body #bar .b{min-width:36px;padding:4px 3px!important}html body #bar .b::after,html body #bar #lvWrap::after,html body #bar #winSzWrap::after,html body #bar #wwVolWrap::after{font-size:9px!important}html body #bar #lv,html body #bar #winSz,html body #bar #wwVol{width:44px}}

/* ---------- floating chips ---------- */
html body .hbtn{height:44px;min-width:44px;padding:0 13px 0 11px;gap:7px;border-radius:var(--ww-r)!important;font:600 var(--ww-fs)/1 var(--ww-font);letter-spacing:.01em}
html body .hbtn b{display:inline-flex;font-size:0;line-height:1}
html body .hbtn .ww-ic{width:18px;height:18px;vertical-align:0;color:var(--ww-accent)}
html.phone body .hbtn{padding:0 9px 0 8px;gap:5px;font-size:var(--ww-fs-sm)}html.phone body .hbtn .ww-ic{width:16px;height:16px}
html body .hbtn:disabled{opacity:.42}html body .hbtn:disabled .ww-ic{color:inherit}
@media (hover:hover){html body :is(.hbtn,.cbtn,.ww-chal,#pbBtn,#wwShare,#t2tab,#t2bar):not(:disabled):hover{background:rgba(40,44,60,.82)!important;border-color:var(--ww-accent-line)!important}}
html body .cbtn{border-radius:var(--ww-r)!important;font:600 var(--ww-fs)/1 var(--ww-font)}
html body .ww-chal{top:62px!important;left:12px!important;height:34px;padding:0 12px 0 10px!important;border-radius:999px!important;font:600 var(--ww-fs-sm)/1 var(--ww-font)!important;display:inline-flex;align-items:center;gap:7px;cursor:pointer}
html body .ww-chal .ww-ic{width:15px;height:15px;color:var(--ww-accent)}
html body #pbBtn{top:104px;left:12px;align-items:center;gap:8px;min-height:40px;padding:0 14px 0 12px!important;border-radius:var(--ww-r)!important;font:600 var(--ww-fs)/1 var(--ww-font)!important}
html body #pbBtn[style*="display: block"]{display:inline-flex!important}
html body #pbBtn::before{content:'';width:18px;height:18px;flex:none;background:var(--ww-accent);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 11h4'/%3E%3Cpath d='M8 9v4'/%3E%3Cpath d='M15 12h.01'/%3E%3Cpath d='M18 10h.01'/%3E%3Cpath d='M17.32 5H6.68a4 4 0 0 0-3.98 3.59C2.6 9.42 2 14.46 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.41-1.41A2 2 0 0 1 9.83 16h4.34a2 2 0 0 1 1.41.59L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.54-.6-6.58-.69-7.26A4 4 0 0 0 17.32 5z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 11h4'/%3E%3Cpath d='M8 9v4'/%3E%3Cpath d='M15 12h.01'/%3E%3Cpath d='M18 10h.01'/%3E%3Cpath d='M17.32 5H6.68a4 4 0 0 0-3.98 3.59C2.6 9.42 2 14.46 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.41-1.41A2 2 0 0 1 9.83 16h4.34a2 2 0 0 1 1.41.59L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.54-.6-6.58-.69-7.26A4 4 0 0 0 17.32 5z'/%3E%3C/svg%3E") center/contain no-repeat}
html body #pbBtn small{color:var(--ww-text-3);opacity:1;font-weight:500;font-size:var(--ww-fs-sm);margin-left:2px}
html body #wwShare{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 15px 0 13px!important;border-radius:999px!important;font:600 var(--ww-fs)/1 var(--ww-font)!important}
html body #wwShare .ww-ic{color:var(--ww-accent);width:16px;height:16px}
html body #wwShare .vsClose{display:none!important}
html body #t2tab{width:52px;margin-left:-26px;height:22px;border-bottom:0!important;border-radius:var(--ww-r) var(--ww-r) 0 0!important;color:var(--ww-accent)!important;display:none;align-items:center;justify-content:center;font-size:0;padding:0;box-shadow:none!important}
html body #t2tab[style*="display: block"]{display:inline-flex!important}
html body #t2tab .ww-ic{width:16px;height:16px}
html body #t2bar{height:34px;border-radius:var(--ww-r-lg)!important;font:600 var(--ww-fs)/34px var(--ww-font)!important;letter-spacing:.02em;filter:none!important}
html body #t2bar.ww-ico{display:none;justify-content:center}html body #t2bar.ww-ico[style*="display: block"]{display:inline-flex!important}
html body #rcpill{border-radius:999px!important;padding:4px 6px 4px 12px!important;gap:6px;font:500 var(--ww-fs-sm) var(--ww-font)!important}
html body #rcpill button{min-height:30px;border-radius:999px!important;border:1px solid var(--ww-line-2)!important;background:var(--ww-fill)!important;color:var(--ww-text)!important;padding:0 11px!important;font:600 var(--ww-fs-sm) var(--ww-font)!important}
html body #rcpill button.on{background:var(--ww-accent-3)!important;border-color:var(--ww-accent)!important}
html body #tb{gap:2px;padding:4px!important;border-radius:var(--ww-r)!important}
html body #tb button{width:34px;height:34px;border-radius:var(--ww-r-sm);background:transparent;color:var(--ww-text-2);display:inline-flex;align-items:center;justify-content:center}
@media (hover:hover){html body #tb button:hover{background:var(--ww-fill-2);color:var(--ww-text)}}

/* colour row */
html body #bpick{border-radius:999px!important;padding:6px 12px!important;gap:7px!important;font:600 var(--ww-fs-sm) var(--ww-font)!important;color:var(--ww-text-2)!important}
html body #bpick button{width:22px!important;height:22px!important;transition:transform .14s var(--ww-ease),box-shadow var(--ww-t)}
@media (hover:hover){html body #bpick button:hover{transform:scale(1.15)}}
html body #bpick button:active{transform:scale(.92)}

/* ---------- wake bubbles: small pill, 36px tap area (transparent border), 24px visible ---------- */
html body .wwWake{min-height:36px!important;min-width:0!important;padding:0 9px 0 8px!important;gap:5px;border:6px solid transparent!important;border-radius:999px!important;background:rgba(17,19,27,.88)!important;background-clip:padding-box!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)!important;filter:drop-shadow(0 2px 5px rgba(0,0,0,.35));color:var(--ww-text)!important;font:600 11px/1 var(--ww-font)!important;letter-spacing:.015em;transform:translateY(12px)}
html body .wwWake::before{content:'';width:6px;height:6px;border-radius:50%;flex:none;background:var(--bot,var(--ww-accent));box-shadow:0 0 6px var(--bot,var(--ww-accent))}
@media (hover:hover){html body .wwWake:hover{background:rgba(34,38,54,.94)!important;box-shadow:inset 0 0 0 1px var(--ww-accent-line)!important}}
html body .wwWake:active{transform:translateY(12px) scale(.95)}
html body .wwWake[disabled]{opacity:.72}

/* ---------- tray ---------- */
html body #t2{border-radius:20px!important}
html body #t2 .tabs{gap:2px;padding:3px 6px 6px}
html body #t2 .tab{opacity:1;color:var(--ww-text-3);font-weight:500;border-radius:var(--ww-r);background:transparent;box-shadow:none}
@media (hover:hover){html body #t2 .tab:hover{color:var(--ww-text);background:var(--ww-fill)}}
html body #t2 .tab.on{background:var(--ww-accent-soft);color:var(--ww-text);font-weight:600;box-shadow:inset 0 0 0 1px var(--ww-accent-line)}
html body #t2 .tab.on .i{color:var(--ww-accent)}
html body #t2 .card{background:var(--ww-fill);border:1px solid rgba(255,255,255,.07);border-radius:var(--ww-r)}
@media (hover:hover){html body #t2 .card:hover{background:rgba(154,171,255,.12);border-color:var(--ww-accent-line);transform:translateY(-2px)}}
html body #t2 .card span{font-weight:500;color:var(--ww-text-2);opacity:1;text-shadow:none}
html body #t2 .hdr{color:var(--ww-text-3);opacity:1;font-weight:600;border-left-color:var(--ww-line)}
html body #t2cat{color:var(--ww-text-3);opacity:1;font-weight:600;letter-spacing:.1em}
html body #t2m{border-radius:var(--ww-r-lg)!important;padding:6px}
html body #t2m button{border-radius:var(--ww-r-sm);color:var(--ww-text)}
@media (hover:hover){html body #t2m button:hover{background:var(--ww-fill-2)}}

/* ---------- menus and sheets ---------- */
html body #exm,html body #bpm{z-index:45}
html body .menu{padding:10px!important;gap:4px;font:var(--ww-fs-md) var(--ww-font)}
html body .menu>b{font:600 var(--ww-fs-md)/1.2 var(--ww-font);padding:4px 6px 6px;letter-spacing:.01em}
html body .menu button{background:transparent;color:var(--ww-text);border:0;border-radius:var(--ww-r-sm);padding:9px 12px;min-height:40px;font:500 var(--ww-fs-md) var(--ww-font);text-align:left}
@media (hover:hover){html body .menu button:hover{background:var(--ww-fill-2)}}
html body #exm button.ww-noemo::before,html body #bpm button.ww-noemo::before{content:'';width:6px;height:6px;border-radius:2px;margin-right:10px;display:inline-block;vertical-align:2px;background:var(--ww-accent);opacity:.75}
html body #setp.mt{border-radius:20px!important;border-color:var(--ww-line)!important}
html body #setp.mt .mtHead{background:rgba(17,19,27,.96);border-bottom:1px solid var(--ww-line)}
html body #setp.mt .mtHead b{font:600 var(--ww-fs-lg)/1.2 var(--ww-font)}
html body #setp.mt .mcat{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);border-radius:var(--ww-r-lg)}
html body #setp.mt .mcat h3{font:600 11px/1.2 var(--ww-font);letter-spacing:.14em;color:var(--ww-accent)}
html body #setp.mt .mcat h3::before{border:0;width:8px;height:8px;border-right:1.75px solid var(--ww-accent);border-bottom:1.75px solid var(--ww-accent);transform:rotate(45deg) translate(-2px,-2px);transition:transform .18s var(--ww-ease)}
html body #setp.mt .mcat.mcol h3::before{transform:rotate(-45deg)}
html body #setp.mt label{font:400 var(--ww-fs-md) var(--ww-font);color:var(--ww-text)}
html body #setp.mt small,html body #setp.mt .hint{color:var(--ww-text-3)}
html body #setp.mt summary,html body #setp.mt .mcat h4{color:var(--ww-text-2)}
html body :is(#setp.mt,.menu,#prP,#savep,#chPanel,#info,.dsec) button:not(.tab):not(.ww-chal){border-radius:var(--ww-r-sm)!important}
html body :is(#setp.mt,#prP,.dsec,#savep,#chPanel) button,html body #setp.mt #setpX,html body .vsClose{background:var(--ww-fill)!important;border:1px solid var(--ww-line-2)!important;color:var(--ww-text)!important;font:600 var(--ww-fs-md)/1.1 var(--ww-font)!important;box-shadow:none!important;text-shadow:none!important}
@media (hover:hover){html body :is(#setp.mt,#prP,.dsec,#savep,#chPanel) button:not(:disabled):hover,html body #setp.mt #setpX:hover,html body .vsClose:hover{background:var(--ww-fill-2)!important;border-color:var(--ww-accent-line)!important}}
html body #prP .go,html body #setp.mt button.on{background:var(--ww-accent-3)!important;border-color:var(--ww-accent)!important;color:#fff!important}
html body #prP button:disabled,html body #setp.mt button:disabled{opacity:.42}
html body .vsClose{padding:5px 11px!important;border-radius:var(--ww-r-sm)!important;font-size:var(--ww-fs-sm)!important}
html body #info button,html body #bpp .hd button{background:var(--ww-fill-2)!important;color:var(--ww-text);border:1px solid var(--ww-line)!important;border-radius:var(--ww-r-sm)}
html body #ix{background:var(--ww-fill-2)!important}
html body #guide{background:rgba(14,16,22,.97)}
html body #gh{border-bottom-color:var(--ww-line)}
html body #gx.b{background:var(--ww-fill)!important;border:1px solid var(--ww-line-2)!important;border-radius:var(--ww-r-sm)!important;color:var(--ww-text)!important;display:inline-flex;align-items:center;gap:6px}
html body .b{border-radius:var(--ww-r)}

/* form fields */
html body :is(#setp.mt,#prP,#savep,#info,#chPanel) :is(select,input[type=text],input[type=url],input[type=password],input[type=search],input:not([type])),html body #setp.mt select,html body #setp.mt input[type=url],html body #setp.mt input[type=text],html body #setp.mt input[type=password]{
 -webkit-appearance:none;appearance:none;min-height:38px;box-sizing:border-box;padding:7px 12px;border-radius:var(--ww-r-sm)!important;background-color:rgba(255,255,255,.05)!important;color:var(--ww-text)!important;border:1px solid var(--ww-line-2)!important;font:400 var(--ww-fs-md) var(--ww-font)!important;transition:border-color var(--ww-t),box-shadow var(--ww-t)}
html body :is(#setp.mt,#prP,#savep,#info,#chPanel) select,html body #setp.mt select{padding-right:30px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AABFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 9px center!important;background-size:14px!important;cursor:pointer}
html body select option{background:#171a23;color:#f4f6fb}
html body :is(#setp.mt,#prP,#savep,#info,#chPanel) :is(select,input[type=text],input[type=url],input[type=password]):focus{border-color:var(--ww-accent)!important;box-shadow:0 0 0 3px rgba(154,171,255,.22)}

/* sliders (fill comes from --p, set by ui2027.js) */
html body input[type=range],html body #setp.mt label input[type=range]{-webkit-appearance:none;appearance:none;height:22px;margin:0;padding:0;background:transparent;cursor:pointer;accent-color:var(--ww-accent);touch-action:none}
html body input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(90deg,var(--ww-accent) 0,var(--ww-accent) var(--p,50%),rgba(255,255,255,.18) var(--p,50%),rgba(255,255,255,.18) 100%)}
html body input[type=range]::-moz-range-track{height:4px;border-radius:999px;background:rgba(255,255,255,.18)}
html body input[type=range]::-moz-range-progress{height:4px;border-radius:999px;background:var(--ww-accent)}
html body input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border-radius:50%;background:#fff;border:0;box-shadow:0 0 0 3px rgba(154,171,255,.32),0 1px 4px rgba(0,0,0,.45);transition:transform .14s var(--ww-ease),box-shadow .14s}
html body input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:0;box-shadow:0 0 0 3px rgba(154,171,255,.32),0 1px 4px rgba(0,0,0,.45)}
@media (hover:hover){html body input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.12);box-shadow:0 0 0 5px rgba(154,171,255,.26),0 1px 4px rgba(0,0,0,.45)}}
html body input[type=range]:active::-webkit-slider-thumb{transform:scale(.94);box-shadow:0 0 0 6px rgba(154,171,255,.3),0 1px 4px rgba(0,0,0,.45)}
html body input[type=range]:focus-visible{outline-offset:4px!important;border-radius:6px}
html.wwmob body input[type=range]{height:32px}
html.wwmob body input[type=range]::-webkit-slider-thumb{width:22px;height:22px;margin-top:-9px}

/* toggles */
html body input[type=checkbox],html body #setp.mt input[type=checkbox]{-webkit-appearance:none;appearance:none;position:relative;flex:0 0 40px;width:40px!important;height:24px!important;margin:0;border-radius:999px;background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);cursor:pointer;transition:background-color .18s var(--ww-ease),box-shadow .18s;vertical-align:middle}
html body input[type=checkbox]::before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .2s var(--ww-ease)}
html body input[type=checkbox]:checked{background:var(--ww-accent-3);box-shadow:inset 0 0 0 1px var(--ww-accent),0 0 10px rgba(154,171,255,.35)}
html body input[type=checkbox]:checked::before{transform:translateX(16px)}
html body input[type=checkbox]:disabled{opacity:.4;cursor:default}
html body input[type=color]{border-radius:var(--ww-r-sm)!important;border:1px solid var(--ww-line-2)!important;background:rgba(255,255,255,.05)!important;cursor:pointer}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:reduce){
 html body :is(button,input,select,summary,.card,.tab,.wwWake,#bar,#t2)::before,
 html body :is(button,input,select,summary,.card,.tab,.wwWake,#bar,#t2){transition:none!important;animation:none!important}
 html body :is(button,.card):active,html body #t2 .card:hover{transform:none!important}
 html body .wwWake,html body .wwWake:active{transform:translateY(12px)!important}
}

/* phone: Share link becomes a round icon button under the top row so it no longer sits on the tray tabs */
html.phone body #wwShare{top:calc(max(10px,env(safe-area-inset-top)) + 100px)!important;bottom:auto!important;right:10px!important;width:44px;height:44px;min-height:44px;padding:0!important;justify-content:center;font-size:0!important;gap:0}
html.phone body #wwShare .ww-ic{width:18px;height:18px}
