.da-panel {
  background: linear-gradient(132deg,#302031,#211925 52%);
  border-color: #52394e;
}

.da-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 12px;
}

.da-heading h2 { margin: 0; }
.da-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid #645064;
  border-radius: 999px;
  background: #362b39;
  color: #e4ccdf;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.da-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.da-state[data-state='idle'] { color: #b6ead3; background: #324b40; border-color: #537966; }
.da-state:is([data-state='error'],[data-state='limited'],[data-state='reauthorize']) { color: #ffd1b2; background: #533a35; border-color: #8f5d52; }
.da-state:is([data-state='pending'],[data-state='syncing']) { color: #e7caff; background: #4a3657; border-color: #865b9d; }
.da-panel .da-account { margin: 4px 0 10px; overflow-wrap: anywhere; }
.da-account span { color: #deafd0; margin-left: 6px; }
.da-panel .da-feedback { margin: 14px 0 0; padding: 9px 11px; border-left: 2px solid #ffa598; color: #ffe0dc; background: #3a2838; font-size: 14px; }
.studio-stack:has(.da-panel) { align-content: start; }
#incoming-donations:empty { display: none; }

.widget-library {
  background: radial-gradient(ellipse at 85% 0%,#3c254278,transparent 56%), #1b1521;
  border-color: #4f384f;
}

.widget-library .section-heading { margin-bottom: 18px; }
.widget-library .section-heading h2 { margin-bottom: 7px; }
.widget-library .section-heading .help { margin: 0; }
.widget-workbench { display: grid; grid-template-columns: minmax(235px,.75fr) minmax(0,1.6fr); gap: clamp(14px,3vw,34px); }
.widget-picker { min-width: 0; padding: 0; border: 0; margin: 0; }
.widget-picker legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 750; }
.widget-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.widget-choices .widget-choice {
  position: relative;
  gap: 5px;
  padding: 8px 6px;
  background: #271e2d;
  border: 1px solid #533c56;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.widget-choice:has(input:checked) { background: #503040; border-color: #ff967e; color: #ffd6ca; }
.widget-choice:hover { transform: translateY(-2px); border-color: #ffb0aa; }
.widget-choice:focus-within { outline: 2px solid #ffc4ae; outline-offset: 2px; }
.widget-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.widget-choice b { font-size: 12px; line-height: 1.12; }
.widget-swatch { height: 30px; display: block; border-radius: 5px; background: #100c14; border: 1px solid #67445d; position: relative; overflow: hidden; }
.widget-swatch::before,.widget-swatch::after { content: ''; position: absolute; }
.widget-swatch::before { top: 9px; left: 13%; width: 44%; height: 3px; border-radius: 3px; background: #fff0ed; box-shadow: 0 7px 0 -1px #bb919f; }
.widget-swatch::after { bottom: 4px; left: 13%; width: 70%; height: 2px; border-radius: 3px; background: #ff987a; box-shadow: 0 0 8px #fd6c81; }
.widget-swatch[data-swatch='poster'] { background: linear-gradient(115deg,#1b1321 44%,#953f60 70%,#eb886d); }
.widget-swatch[data-swatch='orbit'] { background: radial-gradient(circle at 28% 50%,#221622 0 12%,#f977ac 13% 19%,transparent 20%), #201626; }
.widget-swatch[data-swatch='orbit']::before { left: 54%; width: 31%; }
.widget-swatch[data-swatch='orbit']::after { display: none; }
.widget-swatch[data-swatch='ticker'] { background: linear-gradient(0deg,#eb6e87 0 3%,#1c1220 4% 74%,#302135 75%); }
.widget-swatch[data-swatch='ticker']::before { top: 12px; left: 8%; width: 72%; height: 2px; box-shadow: none; }
.widget-swatch[data-swatch='split'] { background: linear-gradient(90deg,#241627 66%,#e8819b 67%); }
.widget-swatch[data-swatch='split']::after { width: 45%; }
.widget-swatch[data-swatch='carousel'] { background: repeating-linear-gradient(112deg,#361c35 0 27%,#8d405b 27% 55%,#e18b76 55% 82%); }
.widget-swatch[data-swatch='carousel']::before { left: 10%; width: 35%; }
.widget-swatch[data-swatch='carousel']::after { width: 26%; }

.widget-preview-pane { min-width: 0; }
.widget-preview { container-type: inline-size; display: grid; align-items: center; padding: 12px; min-height: 238px; overflow: hidden; border-radius: 12px; background: #00ff00; }
.widget-preview[data-background='clear'] {
  background: conic-gradient(#22202b 25%,#34303e 0 50%,#22202b 0 75%,#34303e 0) 0 0 / 24px 24px;
}

.widget-preview:focus-within { outline: 2px solid #ffb2a8; outline-offset: 3px; }
.widget-instructions { margin: 11px 0 0; color: #ead6e3; font-size: 14px; }
.widget-preview-pane .links { margin-top: 10px; }
.widget-preview-pane .links label > div,.widget-preview-pane .links input { min-width: 0; }

.overlay-page #app { container-type: inline-size; }
.overlay-page .stream-widget { margin-block: 8px; }

.stream-widget {
  --widget-highlight: #ff9e83;
  --widget-subtle: #e1bad3;
  --meter-fill: #fa648e;
  width: min(100% - 16px,var(--widget-max));
  height: var(--widget-height);
  margin: 0 auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #a25d7b;
  border-radius: 14px;
  background: radial-gradient(ellipse at 88% -15%,#663550a0,transparent 66%), linear-gradient(115deg,#2f202f,#1d1523 68%);
  color: #fff7f5;
  box-shadow: 0 5px 15px #160c1ad4;
}

.stream-widget::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(107deg,transparent 25%,#ffa38b19 46%,#e3b0ff22 49%,transparent 65%);
  transform: translateX(-86%);
  animation: widget-sweep 5.4s 400ms linear infinite;
}

.widget-boost { animation: widget-boost .75s ease-out both; }
.widget-stage { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 15px; min-width: 0; height: 100%; align-items: center; padding: 10px 18px; }
.widget-content { min-width: 0; animation: widget-slide .46s cubic-bezier(.22,.8,.27,1) both; }
.widget-header { display: flex; min-width: 0; align-items: center; gap: 9px; }
.widget-header .brand { font-size: 13px; font-weight: 730; gap: 5px; white-space: nowrap; }
.widget-header .brand-mark { width: 13px; height: 13px; }
.widget-header .brand-mark::after { inset: 4px; }
.widget-demo,.widget-count { color: #ebc1ce; font-size: 12px; line-height: 1.1; font-weight: 740; white-space: nowrap; }
.widget-count { color: #ffc4ae; border-left: 1px solid #88546e; padding-left: 8px; }
.widget-content h1,.widget-content h3 {
  margin: 6px 0 4px;
  color: #fff8f4;
  font-size: 24px;
  font-size: clamp(20px,4.4cqw,33px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.06;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-figures { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 7px; min-width: 0; line-height: 1.12; font-variant-numeric: tabular-nums; }
.widget-figures strong { font-size: clamp(17px,3.5cqw,24px); font-weight: 800; white-space: nowrap; letter-spacing: -.035em; }
.widget-figures span { color: var(--widget-subtle); font-size: 13px; white-space: nowrap; }
.widget-address { display: block; width: fit-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #f8c5db; font-weight: 650; }
.widget-percentage {
  font: 770 clamp(25px,6cqw,50px)/1.03 var(--numeric);
  letter-spacing: -.075em;
  color: var(--widget-highlight);
  padding-right: 3px;
  text-shadow: 0 0 20px #ff827c61;
  font-variant-numeric: tabular-nums;
}

.stream-widget .progress-track { height: 8px; margin: 7px 0 5px; }
.stream-widget .progress-fill { background: linear-gradient(90deg,var(--meter-fill),var(--widget-highlight)); box-shadow: 0 0 13px #fb648f75; }
.stream-widget .progress-fill::after { height: 12px; top: -2px; }
.stream-widget .progress-track::before { background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 30 - 1px), #251828 calc(100% / 30 - 1px) calc(100% / 30)); }

.widget-pulse { border-top: 2px solid #ff8c80; }
.widget-pulse .widget-percentage { animation: widget-breathe 3.6s ease-in-out infinite; }
.widget-poster,.widget-carousel { --widget-subtle: #efd4da; background: linear-gradient(100deg,#201419 0%,#201720 58%,#3e2333); }
.widget-poster .widget-stage,.widget-carousel .widget-stage { grid-template-columns: minmax(0,1fr) auto; padding-inline: 20px; }
.widget-poster .widget-content,.widget-carousel .widget-content { width: min(100%,90%); }
.widget-poster .widget-content :is(h1,h3),.widget-carousel .widget-content :is(h1,h3) { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.widget-art { position: absolute; inset: 0 0 0 39%; z-index: -2; overflow: hidden; }
.widget-art img { height: 100%; width: 100%; object-fit: cover; object-position: 50% 55%; animation: widget-art-drift 13s ease-in-out infinite alternate; }
.widget-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#20161e,transparent 70%), linear-gradient(0deg,#20141eee,transparent 86%); }
.widget-poster .widget-percentage,.widget-carousel .widget-percentage { align-self: end; margin-bottom: 7px; padding: 5px 7px 6px; border-radius: 8px; background: #291825ba; border: 1px solid #a9687fa3; }
.widget-carousel { border-color: #d48e9b; --widget-highlight: #ffd7a2; --meter-fill: #fc6996; }
.widget-carousel .widget-art { inset-inline-start: 33%; }
.widget-carousel[data-rotation='true'] .widget-art img { animation: widget-carousel-art var(--slide-duration) ease-out var(--slide-offset) both; }
.widget-countdown { height: 3px; position: absolute; bottom: 0; left: 0; width: 100%; transform-origin: left; background: linear-gradient(90deg,#fb6296,#ffd6a7); animation: widget-timer var(--slide-duration) linear var(--slide-offset) both; }

.widget-orbit { --widget-highlight: #e5bcff; --meter-fill: #c482fc; border-color: #9875c8; background: radial-gradient(circle at 18% 50%,#57367499 0,transparent 65%),#21172c; }
.widget-orbit .widget-stage { grid-template-columns: auto minmax(0,1fr); }
.widget-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 94px;
  width: clamp(61px,21cqw,112px);
  aspect-ratio: 1;
  border-radius: 100%;
  border: 1px solid #c999f7;
  background: conic-gradient(#eda8f3 calc(var(--orb-fill,var(--meter-value)) * 1%),#4d365e 0);
  box-shadow: 0 0 22px #ce86fa77;
  animation: widget-orb-in 1.05s ease-out both;
}
.widget-ring > div { position: absolute; inset: 7px; display: grid; place-items: center; background: #281630; border-radius: 50%; }
.widget-ring strong { font-size: 25px; font-size: clamp(19px,5.4cqw,35px); font-weight: 800; letter-spacing: -.06em; color: #f1c7ff; }
.stream-widget.widget-orbit .progress-track { height: 4px; }

.widget-ticker { color: #fdf2ed; border-radius: 8px; border-top: 2px solid #d96493; background: linear-gradient(101deg,#25182a 41%,#442740); }
.widget-ticker .widget-stage { padding: 5px 11px; gap: 9px; }
.widget-ticker .widget-content { display: grid; grid-template-columns: minmax(0,auto) minmax(0,1fr); grid-template-areas: 'header address' 'title amount' 'meter meter'; align-items: center; gap: 4px 10px; }
.widget-ticker .widget-header { grid-area: header; }
.widget-ticker .widget-address { grid-area: address; justify-self: end; }
.widget-ticker :is(h1,h3) { grid-area: title; font-size: clamp(16px,3.2cqw,26px); margin: 0; }
.widget-ticker .widget-figures { grid-area: amount; justify-content: end; }
.widget-ticker .widget-figures strong { font-size: clamp(14px,2.6cqw,21px); }
.widget-ticker .progress-track { grid-area: meter; height: 5px; margin: 0; }
.widget-ticker .widget-percentage { font-size: clamp(23px,4.9cqw,42px); }

.widget-split { border-radius: 11px; --widget-highlight: #ffacbe; background: linear-gradient(110deg,#352037,#221629 73%); }
.widget-split .widget-stage { padding-right: 0; }
.widget-split .widget-percentage {
  align-self: stretch;
  display: grid;
  place-content: center;
  min-width: clamp(59px,20cqw,146px);
  padding-inline: 8px;
  margin-block: -10px;
  color: #311722;
  background: linear-gradient(135deg,#ffbb93,#f36d9d 69%,#f1a3bf);
  text-shadow: 0 1px 0 #ffe0d68c;
  animation: widget-split-glow 4s ease-in-out infinite alternate;
}

@property --orb-fill { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes widget-sweep { from { transform: translateX(-86%); } to { transform: translateX(95%); } }
@keyframes widget-slide { from { transform: translateX(8px); opacity: .18; } to { transform: none; opacity: 1; } }
@keyframes widget-breathe { 50% { text-shadow: 0 0 29px #ffa781b0; } }
@keyframes widget-art-drift { to { transform: scale(1.09) translateX(-2%); } }
@keyframes widget-carousel-art { from { transform: scale(1.125) translateX(2%); opacity: .24; } 12% { opacity: 1; } to { transform: scale(1.015); opacity: 1; } }
@keyframes widget-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes widget-orb-in { from { --orb-fill: 0; } to { --orb-fill: var(--meter-value); } }
@keyframes widget-split-glow { to { filter: saturate(1.19) brightness(1.16); } }
@keyframes widget-boost { 40% { border-color: #ffe9ba; box-shadow: inset 0 0 35px #ffa44656,0 0 18px #ffa880bb; } }

@container (max-width: 490px) {
  .widget-stage { padding-inline: 10px; gap: 8px; }
  .widget-poster .widget-stage,.widget-carousel .widget-stage { padding-inline: 10px; }
  .widget-header { gap: 5px; }
  .widget-header .brand { font-size: 10px; }
  .widget-demo,.widget-count { font-size: 11px; }
  .widget-ticker .widget-content { grid-template-columns: minmax(0,1fr); grid-template-areas: 'header' 'title' 'amount' 'meter'; gap: 3px; }
  .widget-ticker .widget-address { display: none; }
  .widget-ticker .widget-figures { justify-content: start; }
}

@media (max-width: 820px) {
  .widget-workbench { grid-template-columns: minmax(0,1fr); }
  .widget-choices { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .widget-preview { padding-inline: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .widget-ring { --orb-fill: var(--meter-value); }
}
