/* Source adaptations and full notices: /assets/licenses/ and docs/animated-ui.md.
   Preserve the restored developer-edition palette, typography and layout. */
html[data-dw-motion] .hero-copy { animation: none; }

/* Uiverse / arghyaBiswasDev / shaggy-ape-11. */
.dw-motion-switch { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-left: auto; margin-right: 20px; cursor: pointer; flex-shrink: 0; }
.dw-motion-label { color: var(--muted); font-size: 11px; }
.dw-switch-track { position: relative; display: inline-block; width: 36px; height: 44px; }
.dw-switch-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 1; cursor: pointer; }
.dw-slider { position: absolute; inset: 12px 0; border: 1px solid #ffffff50; border-radius: 30px; background: var(--panel); transition: background-color .22s, border-color .22s; pointer-events: none; }
.dw-slider::before { content: ''; position: absolute; width: 12px; height: 12px; left: 3px; top: 3px; border-radius: 50%; background: var(--muted); transition: transform .22s, background-color .22s; }
.dw-switch-track input:checked + .dw-slider { background: var(--green); border-color: var(--green); }
.dw-switch-track input:checked + .dw-slider::before { transform: translateX(16px); background: #151a14; }
.dw-switch-track input:focus-visible + .dw-slider { outline: 2px solid var(--green); outline-offset: 5px; }
.dw-switch-track input:disabled { cursor: default; }

/* Animate UI / parent-mode Highlight. The native buttons still own selection. */
.filters.dw-filter-ready { position: relative; isolation: isolate; }
.dw-filter-highlight { position: absolute; background: var(--green); border-radius: 1px; pointer-events: none; z-index: -1; }
.dw-filter-ready .filter[aria-pressed='true'] { background: transparent; }
.dw-filter-ready .filter { min-height: 36px; transition: color .18s, border-color .18s; }

/* React Bits / SpotlightCard. No glass panels, canvas or full-screen cursor. */
.dw-spotlight { position: relative; isolation: isolate; --mouse-x: 50%; --mouse-y: 50%; }
.dw-spotlight::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(350px circle at var(--mouse-x) var(--mouse-y), color-mix(in srgb, var(--green) 16%, transparent), transparent 80%); opacity: 0; transition: opacity .35s ease; }
.dw-spotlight:focus-within::before { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .dw-spotlight:hover::before { opacity: .6; } }

/* Animata / AnimatedTimeline. A reading/focus trail, not a progress claim. */
.dw-timeline { padding-left: 26px; }
.dw-timeline .experience-item { position: relative; }
.dw-timeline-rail { position: absolute; display: block; left: -23px; top: 36px; bottom: -36px; width: 1px; background: var(--line); pointer-events: none; }
.dw-timeline-fill { position: absolute; inset: 0; background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform .15s ease-in-out var(--dw-line-delay, 0s); }
.dw-timeline-dot { position: absolute; top: 0; left: -3px; width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; background: var(--bg); transition: background-color .12s ease var(--dw-dot-delay, 0s), border-color .12s ease var(--dw-dot-delay, 0s), transform .12s ease var(--dw-dot-delay, 0s); }
[data-dw-dot='true'] .dw-timeline-rail .dw-timeline-dot { background: var(--green); border-color: var(--green); transform: scale(1.2); }
[data-dw-line='true'] .dw-timeline-rail .dw-timeline-fill { transform: scaleY(1); }
.dw-timeline .experience-item:last-child .dw-timeline-rail { bottom: auto; height: 7px; background: transparent; }
.dw-timeline .experience-item:last-child .dw-timeline-fill { display: none; }

/* Uiverse / cssbuttons-io / slippery-jellyfish-67: confined circular hover fill. */
html[data-dw-motion] .btn.dark { position: relative; isolation: isolate; overflow: hidden; }
html[data-dw-motion] .btn.dark::before { content: ''; position: absolute; z-index: -1; width: 220px; height: 180px; border-radius: 50%; background: #ffffff1c; left: 50%; top: 50%; transform: translate(55%, 55%); transition: transform .45s ease; pointer-events: none; }
html[data-dw-motion] .btn.dark:is(:hover, :focus-visible)::before { transform: translate(-50%, -50%); }

/* No new effect is essential. Quiet mode also stops decorative vinyl motion,
   without changing audio play/pause or the player's separate motion setting. */
html[data-dw-quiet='true'] *, html[data-dw-quiet='true'] *::before, html[data-dw-quiet='true'] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html[data-dw-quiet='true'] .record { animation-play-state: paused !important; }
html[data-dw-quiet='true'] .dw-spotlight::before { opacity: 0; }
html[data-dw-quiet='true'] .project:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .dw-slider, .dw-slider::before, .dw-timeline-fill, .dw-timeline-dot, .dw-spotlight::before, .dw-filter-ready .filter { transition: none; }
  .dw-spotlight::before { display: none; }
}
@media (max-width: 600px) {
  .dw-motion-switch { gap: 6px; margin-right: 12px; margin-left: 10px; }
  .dw-motion-label { display: none; }
  html[data-dw-motion] .breadcrumb { flex: 1; }
  html[data-dw-motion] .topbar { gap: 0; }
  .dw-timeline { padding-left: 18px; }
  .dw-timeline-rail { left: -16px; }
}

/* Collection browser: shadcn/ui line-tab styling, InputGroup and NativeSelect
   adapted to native DOM. MIT notice: /assets/licenses/shadcn-ui.txt. */
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.collection-views.filters { flex-wrap: nowrap; flex-shrink: 0; align-self: stretch; gap: 24px; margin: 0; }
.collection-views .filter { display: inline-flex; align-items: center; gap: 8px; padding: 17px 0; min-height: 54px; border: 0; border-radius: 0; font-size: 13px; font-weight: 500; white-space: nowrap; }
.collection-views .filter span { color: var(--muted); font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; }
.collection-views .filter[aria-pressed='true'] { color: var(--text); background: transparent; box-shadow: inset 0 -2px var(--green); }
.collection-views.dw-filter-ready .filter[aria-pressed='true'] { box-shadow: none; }
.collection-views .filter:hover { color: var(--text); }
.collection-tools { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 0; }
.collection-search { display: flex; position: relative; align-items: center; gap: 9px; min-width: 0; width: 215px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.collection-search > .icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.collection-search input { min-width: 0; width: 100%; height: 40px; background: transparent; border: 0; color: var(--text); outline: none; font: inherit; font-size: 12px; }
.collection-search input::placeholder { color: var(--muted); }
.collection-search:focus-within { border-color: var(--green); outline: 2px solid color-mix(in srgb, var(--green) 20%, transparent); outline-offset: 1px; }
.collection-select { position: relative; min-width: 0; width: 144px; flex-shrink: 0; }
.collection-select select { width: 100%; min-height: 42px; appearance: none; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; text-overflow: ellipsis; color-scheme: dark; }
.collection-select > .icon { position: absolute; right: 10px; top: 14px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.collection-select option { background: Canvas; color: CanvasText; }
.collection-results-meta { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 16px; color: var(--muted); font-size: 11px; }
.collection-results-meta p { margin: 0; }
.collection-results-meta button { min-height: 40px; padding: 0; border: 0; background: none; color: var(--text); font-size: 11px; }
.collection-results-meta button span { margin-left: 6px; color: var(--muted); }
.collection-empty { padding: 54px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.collection-empty h3 { margin: 0 0 8px; font-size: 20px; }
.collection-empty p { color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) {
  .collection-toolbar { flex-wrap: wrap; gap: 0; }
  .collection-tools { margin-left: auto; }
}
@media (max-width: 600px) {
  .collection-toolbar { display: block; }
  .collection-views.filters { gap: 24px; }
  .collection-views .filter { min-height: 52px; }
  .collection-tools { display: grid; grid-template-columns: minmax(0, 1fr) 116px; padding: 14px 0; }
  .collection-search, .collection-select { width: 100%; }
  .collection-search input { height: 42px; font-size: 16px; }
  .collection-select select { min-height: 44px; font-size: 16px; padding-left: 10px; padding-right: 26px; }
}
