/* Background → optical glass → native DOM content. No text is captured or refracted. */
:root { --ws-accent: #dce8df; --ws-button-ink: #163d2e; --ws-glass-opacity: .3; }
html[data-ws-button-theme] button {
  color: #193e31 !important;
  background: linear-gradient(155deg,#ffffff55,#ffffff08 48%,#ffffff26),rgb(255 255 255 / var(--ws-glass-opacity)) !important;
  border-color: #ffffffde !important;
  box-shadow: inset 0 1px 1px #fff,inset 0 -1px 0 #4865532b,0 4px 12px #173d2a15 !important;
}
html[data-ws-button-theme] button.primary,
html[data-ws-button-theme] main[data-ws-view='home'] nav button:first-child {
  color: var(--ws-button-ink) !important;
  background: linear-gradient(150deg,#ffffff50,transparent 48%,#ffffff15),var(--ws-accent) !important;
  border-color: color-mix(in srgb,var(--ws-accent),white 60%) !important;
}
html[data-ws-button-theme='glass'] button.primary,
html[data-ws-button-theme='glass'] main[data-ws-view='home'] nav button:first-child {
  background: linear-gradient(150deg,#ffffff70,#ffffff08 48%,#ffffff28),rgb(255 255 255 / var(--ws-glass-opacity)) !important;
  border-color: #fffffff0 !important;
}
html[data-ws-button-theme] button:hover { box-shadow: inset 0 1px 1px #fff,inset 0 -1px 0 #48655340,0 7px 19px #173d2a26 !important; }
html[data-ws-button-theme] button:disabled { opacity: .4; }
html[data-ws-button-theme] button.ws-background-preset { background: none !important; border-color: transparent !important; box-shadow: none !important; }
html[data-ws-button-theme] button.ws-button-theme { background: #ffffff28 !important; box-shadow: inset 0 1px 0 #fff8 !important; }
html[data-ws-button-theme] button.ws-carousel-toggle { border: 1px solid #ffffffb0; color: #254b3a !important; }
html[data-ws-button-theme] button.ws-carousel-toggle::before { display: none; }
button.ws-carousel-toggle > svg { width: 14px; height: 14px; }
.ws-button-appearance { margin-top: 22px; padding-top: 19px; border-top: 1px solid #77917b2e; }
.ws-button-appearance h3 { font: 600 14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang TC','Microsoft JhengHei',sans-serif; margin: 0 0 12px; }
.ws-button-themes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
button.ws-button-theme { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 9px; font-size: 12px; border-radius: 13px; }
.ws-button-chip { display: block; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--chip); box-shadow: inset 0 1px 1px #ffffffa6,0 1px 3px #263e3421; }
[data-button-theme='glass'] .ws-button-chip { background: linear-gradient(135deg,#ffffffb8,#bfd4c344); border: 1px solid #fff; }
.ws-button-theme[aria-pressed='true'] { outline: 2px solid #617c6a; outline-offset: 1px; }
.ws-glass-transparency { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 19px; font-size: 14px; }
.ws-glass-transparency[hidden] { display: none !important; }
.ws-glass-transparency > span { display: flex; justify-content: space-between; align-items: center; }
.ws-glass-transparency output { font-variant-numeric: tabular-nums; font-size: 12px; color: #4b6655; }
.ws-glass-transparency small { color: #526c59; font-size: 11px; }
.ws-appearance-dialog .ws-glass-transparency input { width: 100%; }
.ws-appearance-dialog, .ws-appearance-dialog :is(button,label,input,select,small,p,span,output,h2,h3,strong) {
  font-family: -apple-system,BlinkMacSystemFont,'PingFang TC','Microsoft JhengHei','Noto Sans TC',sans-serif;
  font-stretch: normal;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: normal;
  word-spacing: normal;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.ws-appearance-field > span { line-height: 1.6; font-weight: 500; }
.ws-glass-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; z-index: 0; }
.ws-liquid-dialog { isolation: isolate; }
.ws-liquid-dialog > .ws-glass-canvas { z-index: -1; }
html[data-ws-liquid='webgl'] .ws-liquid-surface,
html[data-ws-liquid='webgl'] button.ws-liquid-surface,
html[data-ws-liquid='webgl'] button.primary.ws-liquid-surface,
html[data-ws-liquid='webgl'] main[data-ws-view='home'] nav button.ws-liquid-surface:first-child {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-ws-liquid='webgl'] .ws-liquid-surface::before,
html[data-ws-liquid='webgl'] .ws-liquid-surface::after { display: none !important; }
html[data-ws-liquid='webgl'] :is(header,.ws-glass-surface,.ws-reel,.ws-studio-badge,.ws-appearance-dialog,.ws-carousel-toggle::before) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-ws-liquid='webgl'] .ws-appearance-dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: #183b2929; }
html[data-ws-liquid='webgl'] .ws-liquid-surface > .ws-hover-lens { visibility: hidden; }
.art .ws-hand-note:has(.ws-ink-note) { width: 165px; height: 65px; line-height: 0; }
.ws-ink-note { display: block; width: 100%; height: 100%; overflow: visible; color: #08482d; }
.ws-ink-note path { stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@media (max-width: 760px) { .art .ws-hand-note:has(.ws-ink-note) { width: 136px; height: 55px; } }
@media (prefers-reduced-transparency: reduce) {
  html[data-ws-button-theme='glass'] button { background: #f4f7f2 !important; }
}
@media (forced-colors: active) { .ws-glass-canvas { display: none; } }
/* Glass stays in its own DOM box, so compositor scrolling cannot detach it. */
html[data-ws-liquid='anchored'] .ws-optical-host { isolation:isolate; background:transparent!important; -webkit-backdrop-filter:none; backdrop-filter:none; }
.ws-optical-static { position:relative; }
.ws-glass-canvas.ws-optical-canvas { position:absolute; inset:0; width:100%; height:100%; z-index:-1; border-radius:inherit; pointer-events:none; }
html[data-ws-button-theme] button { background:radial-gradient(ellipse at 22% 0%,#ffffffb8,transparent 60%),linear-gradient(155deg,#ffffff85,#f0f5ef54 48%,#e7f0e664),rgb(246 250 245 / max(.42,var(--ws-glass-opacity)))!important; border-color:#ffffffed!important; box-shadow:inset 0 1.5px 1px #fff,inset 0 -1px 1px #3d644329,0 4px 12px #173d2a1c!important; -webkit-backdrop-filter:blur(22px) saturate(1.4); backdrop-filter:blur(22px) saturate(1.4); }
html[data-ws-button-theme] button.primary { background:radial-gradient(ellipse at 20% 0%,#ffffffa0,transparent 65%),linear-gradient(150deg,#ffffff48,transparent 55%),var(--ws-accent)!important; }
html[data-ws-button-theme='glass'] button.primary { background:radial-gradient(ellipse at 20% 0%,#ffffffbb,transparent 65%),linear-gradient(155deg,#ffffff8c,#edf4e568),rgb(246 250 245 / max(.48,var(--ws-glass-opacity)))!important; }
html[data-ws-button-theme] button.ws-optical-host { background:transparent!important; }
html[data-ws-liquid='anchored'] .ws-optical-host>.ws-hover-lens { background:none; box-shadow:none; border:0; }
html[data-ws-liquid='anchored'] .ws-optical-host>.ws-hover-lens::before,html[data-ws-liquid='anchored'] .ws-optical-host>.ws-hover-lens::after { display:none; }
/* Every fallback keeps the lens bounds attached to the control. */
html:not([data-ws-liquid='webgl']) .ws-hover-host[data-ws-hover='pointer']>.ws-hover-lens { transform:none; }
html[data-ws-liquid='anchored'] .ws-optical-host[data-ws-hover]>.ws-hover-lens { opacity:0!important; }
/* Resting optical plates remain inside each control, including while scrolling. */
html[data-ws-liquid='anchored'] :is(button,.ws-glass-surface,.ws-direct-audio,.ws-part-scores).ws-optical-host { background:transparent!important; border-color:#ffffffb8!important; -webkit-backdrop-filter:none!important; backdrop-filter:none!important; box-shadow:inset 0 1px 1px #ffffffd9,inset 0 -1px 1px #335c4933,0 3px 12px #143d281a!important; }
html[data-ws-liquid='anchored'] .ws-optical-host::before,html[data-ws-liquid='anchored'] .ws-optical-host::after { display:none!important; }
html[data-ws-liquid='anchored'] .ws-optical-host>.ws-optical-canvas { display:block; position:absolute; inset:0; width:100%; height:100%; border-radius:inherit; z-index:-1; transform:none!important; }
/* Keep the native fallback clear and reflective without the opaque white wash. */
html[data-ws-button-theme] button:not(.ws-optical-host) { background:linear-gradient(150deg,#ffffff5c,#ffffff0c 48%,#dfe9df38),rgb(244 249 244 / var(--ws-glass-opacity))!important; }
html[data-ws-button-theme] button.primary:not(.ws-optical-host) { background:linear-gradient(150deg,#ffffff50,transparent 55%),var(--ws-accent)!important; }
html[data-ws-button-theme='glass'] button.primary:not(.ws-optical-host) { background:linear-gradient(150deg,#ffffff6b,#ffffff0c 48%,#dfe9df38),rgb(244 249 244 / var(--ws-glass-opacity))!important; }

@media (prefers-reduced-transparency:reduce) { html[data-ws-button-theme] button:not(.ws-optical-host) { background:#f4f7f2!important; -webkit-backdrop-filter:none!important; backdrop-filter:none!important; } }

/* Keep each existing optical plate visible until its replacement is ready. */
.ws-optical-refresh>.ws-optical-canvas { visibility:visible; }
