/* Loading screens share one centered brand block, in the initial cover and reveal. */
.loading17-block {
  display:flex; flex:none; flex-direction:column; align-items:center;
  max-width:95vw; text-align:center;
}
:is(.loading-screen,.loading17-mini) .loading-brand.brand16 {max-width:none!important; zoom:var(--a17-fit,1)}
.loading17-block>.loading15-config {display:block; flex:none}
:is(.loading-screen,.loading17-mini)[data-preparing=true] :is(.loading17-block,.loading-brand,.loading15-config) {visibility:hidden}
.loading-screen[data-scene=template] {
  background:transparent!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
}
.loading-screen[data-scene=pending],.loading-screen[data-scene=template]:not([data-frame=true]) {
  background:var(--a17-cover,var(--canvas))!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
}
.animation17-host {position:absolute; inset:0; overflow:hidden; z-index:1}
.animation17-frame,.animation17-brand-layer {position:absolute; inset:0; width:100%; height:100%; border:0; background:transparent}
.animation17-frame {visibility:hidden; pointer-events:none}
.animation17-brand-layer {z-index:2; pointer-events:none}
.loading17-block .loading15-text {
  font-family:var(--a17-text-font,inherit); font-weight:var(--a17-text-weight,400);
  font-size:var(--loading-size,16px); line-height:1.45;
  color:var(--a17-text-color,var(--muted)); margin-top:var(--loading-gap,18px); overflow-wrap:anywhere;
}
.loading17-block[data-fade=true] .loading15-text {animation:animation17-copy-in .3s ease-out both}
@keyframes animation17-copy-in {from {opacity:0; transform:translateY(3px)} to {opacity:1; transform:translateY(0)}}

/* The image and outlined text use alpha masks. Native glyphs use text clipping. */
:is(.loading-screen,.loading17-mini) .loading15-mask::after {
  inset:0 auto 0 0; width:var(--a17-span,100%); background:var(--a17-shine)!important;
  animation:var(--a17-animation) var(--loading-period,1.6s) var(--a17-easing,ease-in-out) infinite!important;
}
.loading15-mask {isolation:isolate}
:is(.loading-screen,.loading17-mini):not([data-effect=shine]) .loading15-mask {display:none}
:is(.loading-screen,.loading17-mini)[data-effect=shine] .brand16 :is(.b16-name,.b16-service,.b16-tagline):not(:has(.b16-vector-wrap)) {
  background-image:var(--a17-shine),linear-gradient(var(--a17-base,var(--text)),var(--a17-base,var(--text)))!important;
  background-size:var(--a17-span,280px) 100%,100% 100%; background-repeat:no-repeat;
  background-clip:text; -webkit-background-clip:text; color:transparent; -webkit-text-fill-color:transparent;
  animation:var(--a17-text-animation) var(--loading-period,1.6s) var(--a17-easing,ease-in-out) infinite!important;
}
:is(.loading-screen,.loading17-mini)[data-effect=shine] .brand16 :is(.b16-name,.b16-service,.b16-tagline):has(.b16-vector-wrap),
.loading-screen[data-phase=transition] .brand16 :is(.b16-name,.b16-service,.b16-tagline) {
  animation:none!important; background:none!important; color:var(--a17-base,var(--text)); -webkit-text-fill-color:currentColor;
}
.loading-screen[data-phase=transition] :is(.loading15-mask,.b16-vector-shine) {display:none!important}

/* The ring belongs to the same block. No second spinner or separate splash. */
.loading-screen[data-effect=spinner]::after {display:none!important}
:is(.loading-screen,.loading17-mini)[data-effect=spinner]:not([data-phase=transition]) .loading17-block::after {
  content:''; width:20px; height:20px; margin-top:14px; border:2px solid color-mix(in srgb,currentColor 18%,transparent);
  border-top-color:currentColor; border-radius:50%; color:var(--accent);
  animation:loading15-spin var(--loading-period,1.6s) linear infinite;
}
.loading17-retry {position:absolute; z-index:5; bottom:20px}
@media(prefers-reduced-motion:reduce) {
  :is(.loading-screen,.loading17-mini) :is(.loading15-mask,.b16-vector-shine),
  :is(.loading-screen,.loading17-mini)[data-effect=spinner] .loading17-block::after {display:none!important}
  :is(.loading-screen,.loading17-mini) .loading15-mask::after {animation:none!important}
  :is(.loading-screen,.loading17-mini)[data-effect=shine] .brand16 :is(.b16-name,.b16-service,.b16-tagline) {
    animation:none!important; background:none!important; color:var(--a17-base,var(--text)); -webkit-text-fill-color:currentColor;
  }
  .loading17-block[data-fade=true] .loading15-text {animation:none}
}

/* Full preview of the selected wait/entry combination. */
.animation17-preview {z-index:3200!important; min-height:0; display:flex; align-items:center; justify-content:center}
.animation17-preview-viewport {position:relative; width:100%; height:100%; overflow:hidden}
.animation17-preview-viewport[data-device=phone] {width:min(390px,100vw); height:min(844px,100dvh)}
.animation17-preview-viewport>.loading17-block {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); max-width:calc(100% - 24px);
}
.animation17-preview .loading16-custom,.loading17-mini .loading16-custom {max-width:100%!important}
.animation17-preview-tools {
  position:absolute; z-index:5; bottom:max(16px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%);
  width:max-content; max-width:calc(100vw - 24px); display:flex; align-items:center; justify-content:flex-end;
  gap:8px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface);
  box-shadow:0 4px 24px #0002; flex-wrap:wrap;
}
.animation17-preview-tools span {font-size:12px; color:var(--muted); margin-inline-end:auto}
.animation17-preview-tools input {min-width:0; width:clamp(75px,22vw,140px)}

/* Settings: two decisions and a live preview, with specialist tuning below. */
.animation17-settings {container-type:inline-size}
.animation17-config-layout {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:16px}
.animation17-mode-column,.animation17-preview-column {min-width:0}
.animation17-mode-column {display:grid; gap:12px}
.animation17-mode-column>.form-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr)); gap:8px}
.animation17-modes {min-width:0; margin:0; border:0; padding:0}
.animation17-modes legend {padding:0; margin-block-end:5px; color:var(--text); font-size:13px; font-weight:650}
.animation17-track {display:flex; gap:3px; padding:3px; border:1px solid var(--line); border-radius:12px; background:var(--canvas)}
.animation17-mode {position:relative; min-width:0; flex:1; cursor:pointer}
.animation17-mode input {position:absolute; opacity:0; width:1px; height:1px; margin:0}
.animation17-mode>span {
  min-height:42px; display:flex; align-items:center; justify-content:center; gap:6px; padding:5px;
  text-align:center; color:var(--muted); font-size:13px; overflow-wrap:anywhere; border:1px solid transparent; border-radius:8px;
}
.animation17-mode svg {width:16px; height:16px; flex:none}
.animation17-mode:hover>span {color:var(--text)}
.animation17-mode input:checked+span {color:var(--text); background:var(--surface); border-color:var(--line); box-shadow:0 1px 3px #0001; font-weight:650}
.animation17-mode input:focus-visible+span {outline:2px solid var(--accent); outline-offset:1px}
.animation17-toolbar {display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:12px 0}
.animation17-toolbar select {min-height:36px; max-width:100%; min-width:0; border:1px solid var(--line); background:var(--input); color:var(--text); border-radius:8px; padding:6px 8px}
.animation17-preview-bar {justify-content:flex-end; margin:0 0 8px}
.loading17-mini {
  position:relative; overflow:hidden; min-height:184px; display:flex; align-items:center; justify-content:center;
  padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--canvas);
}
.loading17-mini>.loading17-block {max-width:100%}
.loading17-mini[data-preview-theme=dark] {--canvas:#1e1720; --text:#f2eaf0; --muted:#c6afc2; background:#1e1720}
.loading17-mini[data-preview-theme=light] {--canvas:#faf7fb; --text:#302637; --muted:#74677b; background:#faf7fb}
.loading17-mini[data-device=phone] {width:min(100%,290px); min-height:225px; margin-inline:auto}
.loading17-mini[data-preview-theme=light] .brand-themed-pair>.brand-theme-light,
.loading17-mini[data-preview-theme=dark] .brand-themed-pair>.brand-theme-dark {display:block!important}
.loading17-mini[data-preview-theme=light] .brand-themed-pair>.brand-theme-dark,
.loading17-mini[data-preview-theme=dark] .brand-themed-pair>.brand-theme-light {display:none!important}
.animation17-details {margin:12px 0; border:1px solid var(--line); border-radius:10px; padding:0 12px}
.animation17-details summary {cursor:pointer; padding:10px 0; min-height:42px; color:var(--text); font-size:13px; font-weight:650}
.animation17-details[open] {padding-block-end:12px}
.animation17-details .form-grid+.form-grid {margin-top:12px}
.animation17-json {
  width:100%; min-height:160px; font:12px/1.7 ui-monospace,monospace; background:var(--canvas);
  color:var(--text); border:1px solid var(--line); border-radius:8px; padding:12px; resize:vertical;
}
.animation17-save {display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-block-start:12px}
.animation17-status {margin:0; overflow-wrap:anywhere}
.animation17-status:empty {display:none}
@container(max-width:42rem) {.animation17-config-layout {grid-template-columns:1fr} .animation17-preview-bar {justify-content:flex-start}}
@container(max-width:19rem) {.animation17-mode>span {flex-wrap:wrap} .animation17-toolbar {gap:6px}}
