/* Ashoka 360 tour — toolbar, scene browser and fuzzy search (DOM layer over krpano) */
.aui, .aui * { box-sizing: border-box; }
.aui {
  --aui-glass: rgba(14, 15, 20, 0.80);
  --aui-glass-strong: rgba(12, 13, 18, 0.90);
  --aui-line: rgba(255, 255, 255, 0.14);
  --aui-text: rgba(255, 255, 255, 0.94);
  --aui-dim: rgba(255, 255, 255, 0.62);
  --aui-hover: rgba(255, 255, 255, 0.12);
  --aui-accent: #c8102e;
  --aui-accent-soft: rgba(200, 16, 46, 0.22);
  --aui-radius: 18px;
  --aui-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 20;
  font-family: var(--aui-font); color: var(--aui-text);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  opacity: 0; transition: opacity .5s ease;
}
.aui.aui-ready { opacity: 1; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .aui { --aui-glass: rgba(14, 15, 20, 0.66); --aui-glass-strong: rgba(12, 13, 18, 0.84); }
}
.aui.aui-vr { display: none; }
.aui-glass {
  background: var(--aui-glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--aui-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- scene title ---------- */
.aui-title {
  position: absolute; left: 50%; bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 6px); max-width: min(78vw, 640px);
  padding: 5px 12px; border-radius: 999px; pointer-events: none;
  display: flex; align-items: center; white-space: nowrap;
  opacity: 0; transition: opacity .35s ease, transform .35s ease;
}
.aui-title.aui-show { opacity: 1; transform: translate(-50%, 0); }
.aui-title-dot { margin-right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--aui-accent); box-shadow: 0 0 0 4px var(--aui-accent-soft); flex: none; }
.aui-title-text { font-size: 12.5px; font-weight: 600; letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; }
.aui-title-count { margin-left: 8px; font-size: 11px; color: var(--aui-dim); font-variant-numeric: tabular-nums; flex: none; }

/* ---------- toolbar ---------- */
.aui-bar {
  position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; align-items: center; padding: 3px; border-radius: 14px;
  pointer-events: auto; max-width: calc(100vw - 24px);
}
.aui-bar > * { margin-right: 1px; }
.aui-bar > *:last-child { margin-right: 0; }
.aui-sep { width: 1px; height: 18px; background: var(--aui-line); margin: 0 3px; flex: none; }
.aui-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 34px; min-width: 34px; padding: 0 7px; border: 0; border-radius: 10px;
  background: transparent; color: var(--aui-text); cursor: pointer; flex: none;
  font: 500 13px/1 var(--aui-font); letter-spacing: .2px;
  transition: background .18s ease, transform .12s ease, color .18s ease;
}
.aui-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.aui-btn:hover { background: var(--aui-hover); }
.aui-btn:active { transform: scale(.94); }
.aui-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 1px; }
.aui-btn.aui-on { background: var(--aui-accent-soft); color: #fff; }
.aui-btn.aui-on::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--aui-accent); }
.aui-btn[hidden] { display: none; }
.aui-search-btn .aui-label { margin-left: 8px; }
.aui-search-btn { min-width: 34px; padding: 0 7px; color: var(--aui-text); }
.aui-search-btn .aui-label, .aui-search-btn .aui-kbd { display: none; }
.aui-search-btn:hover { color: var(--aui-text); }
.aui-kbd { margin-left: auto; font: 600 11px/1 var(--aui-font); color: var(--aui-dim); border: 1px solid var(--aui-line); border-radius: 6px; padding: 4px 6px; }
.aui-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px);
  background: var(--aui-glass-strong); border: 1px solid var(--aui-line); border-radius: 8px;
  padding: 6px 9px; font: 500 12px/1 var(--aui-font); white-space: nowrap; color: var(--aui-text);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
@media (hover: hover) { .aui-btn:hover .aui-tip { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Home / reset (top right) ---------- */
.aui-home {
  position: absolute; top: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px));
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px 0 10px; border-radius: 999px;
  color: var(--aui-text); font: 600 12.5px/1 var(--aui-font); letter-spacing: .3px; cursor: pointer; pointer-events: auto;
  transition: background .18s ease, transform .12s ease;
}
.aui-home svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aui-home-label { margin-left: 7px; }
.aui-home:hover { background: rgba(40, 42, 50, .85); }
.aui-home:active { transform: scale(.95); }
.aui-home:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
@media (max-width: 720px) { .aui-home { top: 8px; right: 8px; padding: 0 10px; } .aui-home-label { display: none; } }

/* ---------- search list (fixed pixel sizes; no aspect-ratio / gap / inset so older browsers lay it out too) ---------- */
.aui-search {
  position: absolute; left: 50%; bottom: 60px; bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  width: 440px; max-width: calc(100% - 24px); margin-left: -220px;
  border-radius: 18px; overflow: hidden; background: var(--aui-glass-strong);
  opacity: 0; visibility: hidden; pointer-events: none;
  -webkit-transform: translateY(12px); transform: translateY(12px);
  transition: opacity .22s ease, transform .25s ease, visibility 0s linear .25s;
}
.aui-searching .aui-search { opacity: 1; visibility: visible; pointer-events: auto; -webkit-transform: none; transform: none; transition: opacity .22s ease, transform .25s ease; }
.aui-search-head { padding: 12px 12px 6px 12px; }
.aui-field { display: flex; align-items: center; height: 46px; padding: 0 14px; border-radius: 13px; background: rgba(255, 255, 255, .09); border: 1px solid var(--aui-line); }
.aui-field:focus-within { border-color: rgba(255, 255, 255, .4); }
.aui-field svg { width: 19px; height: 19px; margin-right: 10px; stroke: var(--aui-dim); fill: none; stroke-width: 1.9; stroke-linecap: round; flex: none; }
.aui-input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; padding: 0; margin: 0; background: transparent; color: var(--aui-text); font: 400 16px/44px var(--aui-font); -webkit-appearance: none; appearance: none; }
.aui-input::placeholder { color: var(--aui-dim); }
.aui-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.aui-count { padding: 4px 18px 8px 18px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--aui-dim); }
.aui-list { max-height: 360px; max-height: min(52vh, 380px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 8px 8px 8px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.aui-list::-webkit-scrollbar { width: 8px; }
.aui-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 8px; }
.aui-row { position: relative; display: flex; align-items: center; height: 58px; padding: 0 10px 0 6px; margin: 0 0 2px 0; border-radius: 12px; cursor: pointer; transition: background .15s ease; }
.aui-row:hover, .aui-row.aui-sel { background: rgba(255, 255, 255, .10); }
.aui-row-img { display: block; width: 68px; height: 46px; min-width: 68px; margin-right: 12px; border-radius: 8px; object-fit: cover; background: #23252b; }
.aui-row-title { flex: 1; min-width: 0; font: 500 14px/18px var(--aui-font); color: var(--aui-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aui-row-title mark { background: none; color: #ff9fb1; font-weight: 700; }
.aui-row.aui-current .aui-row-title { color: #fff; font-weight: 600; }
.aui-row-now { margin-left: 10px; padding: 4px 8px; border-radius: 999px; background: var(--aui-accent); color: #fff; font: 700 10px/1 var(--aui-font); letter-spacing: .6px; text-transform: uppercase; }
.aui-empty { padding: 36px 12px; text-align: center; color: var(--aui-dim); font-size: 14px; }

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .aui-bar { padding: 3px; bottom: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .aui-bar > * { margin-right: 0; }
  .aui-btn { height: 36px; min-width: 34px; padding: 0 6px; }
  .aui-hide-sm { display: none; }
  .aui-sep { margin: 0 2px; height: 16px; }
  .aui-title { bottom: 52px; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); padding: 4px 11px; }
  .aui-title-text { font-size: 12px; }
  .aui-search { left: 8px; right: 8px; width: auto; max-width: none; margin-left: 0; bottom: 52px; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
  .aui-list { max-height: 50vh; }
}
@media (prefers-reduced-motion: reduce) { .aui *, .aui { transition: none !important; } }

/* ================= loading screen (v3: client intro style - emblem assembles from a grid) ================= */
@property --sp-iris { syntax: "<length-percentage>"; inherits: false; initial-value: 0%; }
#aui-splash {
  --sp-red: #c8102e; --sp-navy: #0b3a63; --sp-em: clamp(150px, 31vh, 250px);
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000; overflow: hidden;
  display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center;
  background: radial-gradient(120% 95% at 50% 42%, #ffffff 0%, #f3f4f5 45%, #e4e7ea 100%);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif; color: var(--sp-navy);
}
#aui-splash::before { /* faint architectural grid, like the paper texture in the intro */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(11, 58, 99, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 58, 99, .035) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center center;
}
#aui-splash.sp-out { opacity: 0; transition: opacity .9s ease; pointer-events: none; }
#aui-splash.sp-fx.sp-out {
  opacity: 1; transition: none;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--sp-iris), #000 calc(var(--sp-iris) + 1.5%));
          mask-image: radial-gradient(circle at 50% 50%, transparent var(--sp-iris), #000 calc(var(--sp-iris) + 1.5%));
  -webkit-animation: sp-iris 1.25s cubic-bezier(.7, 0, .2, 1) forwards; animation: sp-iris 1.25s cubic-bezier(.7, 0, .2, 1) forwards;
}
@keyframes sp-iris { 0% { --sp-iris: 0%; } 100% { --sp-iris: 150%; } }
.sp-stage { position: relative; z-index: 1; display: -webkit-box; display: flex; -webkit-box-orient: vertical; flex-direction: column;
  -webkit-box-align: center; align-items: center; text-align: center; padding: 24px;
  transition: transform 1.1s cubic-bezier(.7, 0, .2, 1), opacity .8s ease; }
#aui-splash.sp-out .sp-stage { -webkit-transform: scale(1.25); transform: scale(1.25); opacity: 0; }

/* emblem: 12 x 12 tiles fly in from the centre outward, white grid lines between them, then the grid closes */
.sp-tiles { position: relative; width: var(--sp-em); height: var(--sp-em);
  -webkit-animation: sp-settle 2.4s cubic-bezier(.2, .7, .2, 1) both; animation: sp-settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.sp-tiles i { position: absolute; display: block; width: 8.3334%; height: 8.3334%;
  background-image: url("logo_emblem.png"); background-repeat: no-repeat; background-size: 1200% 1200%;
  opacity: 0; -webkit-transform: scale(.25) translateY(10px); transform: scale(.25) translateY(10px);
  -webkit-animation: sp-tile-in .75s cubic-bezier(.2, 1.3, .35, 1) both, sp-tile-close .6s cubic-bezier(.5, 0, .2, 1) 1.85s forwards;
          animation: sp-tile-in .75s cubic-bezier(.2, 1.3, .35, 1) both, sp-tile-close .6s cubic-bezier(.5, 0, .2, 1) 1.85s forwards; }
@-webkit-keyframes sp-tile-in { to { opacity: 1; -webkit-transform: scale(.84); } }
@keyframes sp-tile-in { to { opacity: 1; transform: scale(.84); } }
@-webkit-keyframes sp-tile-close { to { opacity: 1; -webkit-transform: scale(1.02); } }
@keyframes sp-tile-close { to { opacity: 1; transform: scale(1.02); } }
@-webkit-keyframes sp-settle { 0% { -webkit-transform: rotate(-14deg) scale(.92); } 100% { -webkit-transform: none; } }
@keyframes sp-settle { 0% { transform: rotate(-14deg) scale(.92); } 100% { transform: none; } }
.sp-glow { position: absolute; left: 50%; top: 50%; width: 130%; height: 130%; margin: -65% 0 0 -65%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(200, 16, 46, .07), rgba(200, 16, 46, 0) 60%); opacity: 0;
  -webkit-animation: sp-fade 1s ease 2.2s forwards; animation: sp-fade 1s ease 2.2s forwards; }

/* wordmark: "ashoka" rises out of a mask, "UNIVERSITY" fades in and tightens */
.sp-word { position: relative; width: min(calc(var(--sp-em) * 1.95), 78vw); margin-top: calc(var(--sp-em) * .17); }
.sp-word::before { content: ""; display: block; padding-top: 29.72%; }       /* 720 x 214 image */
.sp-word img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.sp-word .sp-w1 { -webkit-clip-path: inset(0 0 37% 0); clip-path: inset(0 0 37% 0);
  opacity: 0; -webkit-transform: translateY(26px); transform: translateY(26px);
  -webkit-animation: sp-rise .9s cubic-bezier(.2, .9, .2, 1) 2.15s forwards; animation: sp-rise .9s cubic-bezier(.2, .9, .2, 1) 2.15s forwards; }
.sp-word .sp-w2 { -webkit-clip-path: inset(66% 0 0 0); clip-path: inset(66% 0 0 0);
  opacity: 0; -webkit-transform: scaleX(1.18); transform: scaleX(1.18); filter: blur(4px);
  -webkit-animation: sp-track 1s cubic-bezier(.2, .8, .2, 1) 2.55s forwards; animation: sp-track 1s cubic-bezier(.2, .8, .2, 1) 2.55s forwards; }
@-webkit-keyframes sp-rise { to { opacity: 1; -webkit-transform: none; } }
@keyframes sp-rise { to { opacity: 1; transform: none; } }
@-webkit-keyframes sp-track { to { opacity: 1; -webkit-transform: none; filter: blur(0); } }
@keyframes sp-track { to { opacity: 1; transform: none; filter: blur(0); } }

/* feature line + progress */
.sp-line { margin-top: 28px; display: -webkit-box; display: flex; -webkit-box-lines: multiple; flex-wrap: wrap; -webkit-box-pack: center; justify-content: center;
  -webkit-box-align: center; align-items: center; max-width: 760px; }
.sp-f { position: relative; margin: 3px 0; font-size: 11.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; white-space: nowrap;
  color: rgba(11, 58, 99, .78); opacity: 0; -webkit-transform: translateY(6px); transform: translateY(6px);
  -webkit-animation: sp-rise .7s cubic-bezier(.2, .8, .2, 1) forwards; animation: sp-rise .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.sp-f + .sp-f::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 16px 2px; border-radius: 50%; background: var(--sp-red); vertical-align: middle; }
.sp-f:nth-child(1) { -webkit-animation-delay: 3.05s; animation-delay: 3.05s; } .sp-f:nth-child(2) { -webkit-animation-delay: 3.2s; animation-delay: 3.2s; }
.sp-f:nth-child(3) { -webkit-animation-delay: 3.35s; animation-delay: 3.35s; } .sp-f:nth-child(4) { -webkit-animation-delay: 3.5s; animation-delay: 3.5s; }
.sp-f.sp-ai { color: var(--sp-red); }
.sp-bar { position: relative; width: 180px; height: 2px; margin-top: 24px; border-radius: 2px; background: rgba(11, 58, 99, .12); overflow: hidden;
  opacity: 0; -webkit-animation: sp-fade .6s ease .4s forwards; animation: sp-fade .6s ease .4s forwards; }
.sp-bar b { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 2px; background: var(--sp-red); transition: width .4s ease; }
.sp-pct { margin-top: 10px; font-size: 10.5px; letter-spacing: 3.5px; color: rgba(11, 58, 99, .5); font-variant-numeric: tabular-nums;
  opacity: 0; -webkit-animation: sp-fade .6s ease .4s forwards; animation: sp-fade .6s ease .4s forwards; }
.sp-ring, .sp-comet, canvas.sp-stars { display: none; }
@-webkit-keyframes sp-fade { to { opacity: 1; } }
@keyframes sp-fade { to { opacity: 1; } }

/* portrait phones: like the portrait intro - bigger emblem, stacked tagline */
@media (max-width: 560px) {
  #aui-splash { --sp-em: clamp(130px, 38vw, 170px); }
  .sp-word { margin-top: 24px; width: min(300px, 78vw); }
  .sp-line { -webkit-box-orient: vertical; flex-direction: column; margin-top: 22px; }
  .sp-f { font-size: 10.5px; letter-spacing: 2.6px; margin: 2px 0; }
  .sp-f + .sp-f::before { display: none; }
}
@media (max-height: 460px) { #aui-splash { --sp-em: 110px; } .sp-word { margin-top: 16px; width: 240px; } .sp-line { margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) {
  #aui-splash *, #aui-splash::before { -webkit-animation-duration: .01s !important; animation-duration: .01s !important;
    -webkit-animation-delay: 0s !important; animation-delay: 0s !important; }
}

/* ================= place annotations (animated) ================= */
.aui-notes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.aui-note {
  --pin: 14px; --stem: clamp(26px, 5.2vh, 48px); --red: #e0193f;
  position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
  -webkit-transform: translate3d(-999px, -999px, 0); transform: translate3d(-999px, -999px, 0); will-change: transform;
}
/* pin: core + two sonar rings */
.aui-note-pin { position: absolute; left: 0; top: 0; width: var(--pin); height: var(--pin); margin: calc(var(--pin) / -2) 0 0 calc(var(--pin) / -2);
  opacity: 0; -webkit-transform: scale(.2); transform: scale(.2); transition: opacity .3s ease, transform .5s cubic-bezier(.2, 1.6, .4, 1); }
.aui-note-pin b { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; background: var(--red);
  border: 2.5px solid #fff; box-sizing: border-box; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 14px 2px rgba(224, 25, 63, .75); }
.aui-note-pin i { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; margin: -50% 0 0 -50%; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85); box-sizing: border-box; opacity: 0; }
.aui-note-in .aui-note-pin i { -webkit-animation: aui-sonar 2.6s cubic-bezier(.2, .6, .3, 1) .5s infinite; animation: aui-sonar 2.6s cubic-bezier(.2, .6, .3, 1) .5s infinite; }
.aui-note-in .aui-note-pin i + i { -webkit-animation-delay: 1.8s; animation-delay: 1.8s; }
@-webkit-keyframes aui-sonar { 0% { opacity: .9; -webkit-transform: scale(1); } 100% { opacity: 0; -webkit-transform: scale(3.6); } }
@keyframes aui-sonar { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.6); } }
/* stem draws upward */
.aui-note-stem { position: absolute; left: -1px; bottom: calc(var(--pin) / 2 + 2px); width: 2px; height: var(--stem); border-radius: 2px;
  background: -webkit-linear-gradient(bottom, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35));
  background: linear-gradient(to top, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35));
  box-shadow: 0 0 6px rgba(0, 0, 0, .35);
  -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; -webkit-transform: scaleY(0); transform: scaleY(0);
  transition: transform .45s cubic-bezier(.3, .9, .3, 1) .15s; }
/* glass card rises in */
.aui-note-card {
  position: absolute; left: 0; bottom: calc(var(--pin) / 2 + 2px + var(--stem));
  display: -webkit-inline-box; display: inline-flex; -webkit-box-align: center; align-items: center; white-space: nowrap; overflow: hidden;
  padding: .55em 1.05em .55em .8em; border-radius: 999px; font: 600 clamp(12px, .55vw + 9px, 16px)/1.15 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: #fff; letter-spacing: .3px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: rgba(14, 16, 22, .78); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
  opacity: 0; -webkit-transform: translate(-50%, 10px) scale(.92); transform: translate(-50%, 10px) scale(.92);
  transition: opacity .4s ease .4s, transform .55s cubic-bezier(.2, 1.25, .35, 1) .4s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .aui-note-card { background: rgba(14, 16, 22, .55); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); }
}
.aui-note-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: -webkit-linear-gradient(left, transparent, rgba(255, 255, 255, .28), transparent);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); opacity: 0; }
.aui-note-in .aui-note-card::after { -webkit-animation: aui-sweep 5.5s ease-in-out 1.4s infinite; animation: aui-sweep 5.5s ease-in-out 1.4s infinite; }
@-webkit-keyframes aui-sweep { 0% { left: -60%; opacity: 1; } 22% { left: 120%; opacity: 1; } 23%, 100% { left: 120%; opacity: 0; } }
@keyframes aui-sweep { 0% { left: -60%; opacity: 1; } 22% { left: 120%; opacity: 1; } 23%, 100% { left: 120%; opacity: 0; } }
.aui-note-dot { width: .5em; height: .5em; margin-right: .6em; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 .22em rgba(224, 25, 63, .28); -webkit-flex: none; flex: none; }
.aui-note-text { display: block; }
.aui-note-title { display: block; }
.aui-note-sub { display: block; margin-top: .2em; font-size: .78em; font-weight: 500; opacity: .75; letter-spacing: .6px; text-transform: uppercase; }
/* shown */
.aui-note-in .aui-note-pin { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
.aui-note-in .aui-note-stem { -webkit-transform: scaleY(1); transform: scaleY(1); }
.aui-note-in .aui-note-card { opacity: 1; -webkit-transform: translate(-50%, 0) scale(1); transform: translate(-50%, 0) scale(1); }
/* leaving: quick, no stagger */
.aui-note:not(.aui-note-in) .aui-note-card, .aui-note:not(.aui-note-in) .aui-note-stem, .aui-note:not(.aui-note-in) .aui-note-pin { transition-delay: 0s; transition-duration: .2s; }
@media (max-width: 560px) { .aui-note { --pin: 12px; --stem: clamp(22px, 4.5vh, 36px); } .aui-note-card { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) {
  .aui-note-pin i, .aui-note-card::after { -webkit-animation: none !important; animation: none !important; }
  .aui-note-pin, .aui-note-stem, .aui-note-card { transition-duration: .01s !important; transition-delay: 0s !important; }
}
/* ================= Day / Night toggle ================= */
.aui-dn {
  --w: 84px; --h: 38px;
  position: absolute; left: 14px; bottom: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: calc(var(--w) * 2 + 10px); height: calc(var(--h) + 10px); padding: 4px; box-sizing: border-box;
  display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center;
  border-radius: 999px; pointer-events: auto;
  background: rgba(14, 15, 20, .80); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0; visibility: hidden; -webkit-transform: translateY(10px); transform: translateY(10px);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2, 1, .3, 1), visibility 0s linear .4s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .aui-dn { background: rgba(14, 15, 20, .58); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); }
}
.aui-dn.aui-dn-show { opacity: 1; visibility: visible; -webkit-transform: none; transform: none; transition: opacity .35s ease, transform .4s cubic-bezier(.2, 1, .3, 1); }
.aui-dn-thumb {
  position: absolute; top: 4px; left: 4px; width: var(--w); height: var(--h); border-radius: 999px; z-index: 0;
  background: -webkit-linear-gradient(315deg, #ffd36b, #ff9a3c); background: linear-gradient(135deg, #ffd36b, #ff9a3c);
  box-shadow: 0 4px 14px rgba(255, 154, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .5s cubic-bezier(.65, 0, .25, 1.15), background .5s ease, box-shadow .5s ease;
}
.aui-dn-is-night .aui-dn-thumb {
  -webkit-transform: translateX(var(--w)); transform: translateX(var(--w));
  background: -webkit-linear-gradient(315deg, #3d4b9a, #1a2150); background: linear-gradient(135deg, #3d4b9a, #1a2150);
  box-shadow: 0 4px 16px rgba(80, 100, 230, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.aui-dn-opt {
  position: relative; -webkit-box-flex: 0; flex: none; width: var(--w); height: var(--h); padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer;
  display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center;
  color: rgba(255, 255, 255, .62); font: 600 13px/1 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; letter-spacing: .3px;
  -webkit-tap-highlight-color: transparent; transition: color .4s ease; z-index: 1;
}
.aui-dn-opt:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 1px; border-radius: 999px; }
.aui-dn-opt svg { width: 19px; height: 19px; margin-right: 7px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aui-dn-day[aria-pressed="true"] { color: #3a1d00; }
.aui-dn-night[aria-pressed="true"] { color: #fff; }
/* sun: rays turn slowly while day is active, pop when it becomes active */
.aui-dn-rays { -webkit-transform-origin: 12px 12px; transform-origin: 12px 12px; }
.aui-dn-day[aria-pressed="true"] .aui-dn-sun circle { fill: currentColor; }
.aui-dn-day[aria-pressed="true"] .aui-dn-rays { -webkit-animation: aui-spin 14s linear infinite; animation: aui-spin 14s linear infinite; }
.aui-dn-day[aria-pressed="true"] .aui-dn-sun { -webkit-animation: aui-pop .6s cubic-bezier(.2, 1.6, .4, 1); animation: aui-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@-webkit-keyframes aui-spin { to { -webkit-transform: rotate(360deg); } }
@keyframes aui-spin { to { transform: rotate(360deg); } }
@-webkit-keyframes aui-pop { 0% { -webkit-transform: scale(.4) rotate(-90deg); } 100% { -webkit-transform: none; } }
@keyframes aui-pop { 0% { transform: scale(.4) rotate(-90deg); } 100% { transform: none; } }
/* moon: swings in, stars twinkle */
.aui-dn-star { fill: currentColor; stroke: none; opacity: .5; -webkit-transform-origin: center; transform-origin: center; transform-box: fill-box; }
.aui-dn-night[aria-pressed="true"] .aui-dn-moon path:first-child { fill: currentColor; }
.aui-dn-night[aria-pressed="true"] .aui-dn-moon { -webkit-animation: aui-swing .7s cubic-bezier(.2, 1.4, .4, 1); animation: aui-swing .7s cubic-bezier(.2, 1.4, .4, 1); }
.aui-dn-night[aria-pressed="true"] .aui-dn-star { -webkit-animation: aui-twinkle 2.2s ease-in-out infinite; animation: aui-twinkle 2.2s ease-in-out infinite; }
.aui-dn-night[aria-pressed="true"] .aui-dn-star.s2 { -webkit-animation-delay: 1.1s; animation-delay: 1.1s; }
@-webkit-keyframes aui-swing { 0% { -webkit-transform: rotate(-60deg) scale(.5); } 100% { -webkit-transform: none; } }
@keyframes aui-swing { 0% { transform: rotate(-60deg) scale(.5); } 100% { transform: none; } }
@-webkit-keyframes aui-twinkle { 0%, 100% { opacity: .25; -webkit-transform: scale(.6); } 50% { opacity: 1; -webkit-transform: scale(1.15); } }
@keyframes aui-twinkle { 0%, 100% { opacity: .25; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
@media (hover: hover) { .aui-dn-opt:not([aria-pressed="true"]):hover { color: #fff; } }
/* phones / narrow: icon-only, under the Home button so it never meets the toolbar */
@media (max-width: 720px) {
  .aui-dn { --w: 46px; --h: 34px; left: auto; right: 8px; bottom: auto; top: 52px; top: calc(52px + env(safe-area-inset-top, 0px)); }
  .aui-dn-label { display: none; }
  .aui-dn-opt svg { margin-right: 0; width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .aui-dn *, .aui-dn { -webkit-animation: none !important; animation: none !important; transition-duration: .01s !important; }
}