/* AnimDeck custom colors, smoothly animated and keyboard accessible. */
.ad-theme-host{position:relative;display:inline-flex;align-items:center;flex-shrink:0;z-index:101;font-family:Inter,'Segoe UI',sans-serif}
.ad-theme-host button{cursor:pointer;font-family:inherit}
.ad-theme-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#e4e8fa;background:#242946;border:1px solid #515779;border-radius:9px;padding:10px 13px;min-height:36px;font-weight:700;font-size:12px;white-space:nowrap;line-height:1.3;box-shadow:none}
.ad-theme-trigger:hover,.ad-theme-trigger:focus-visible{border-color:var(--ad-accent,#8498ff);outline-offset:2px}
.ad-theme-panel{position:absolute;z-index:300;right:0;top:calc(100% + 10px);width:min(335px,calc(100vw - 28px));max-height:min(80vh,620px);overflow-y:auto;border:1px solid #4d587a;border-radius:16px;background:#171d33;color:#edf0ff;padding:18px;box-shadow:0 16px 50px #0008;text-align:left}
.ad-theme-panel[hidden]{display:none!important}
.ad-theme-head{display:grid;gap:5px;margin-bottom:16px}.ad-theme-head strong{font-size:16px}.ad-theme-head span{font-size:11px;color:#aeb9d4;line-height:1.6}
.ad-theme-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:15px}.ad-preset{background:#222b42;border:1px solid #44516c;border-radius:9px;color:#e3e9ff;font-size:11px;padding:9px 6px;display:flex;gap:7px;align-items:center;text-align:left;min-height:39px;white-space:normal}.ad-preset:before{content:'';width:15px;height:15px;flex:0 0 15px;border-radius:50%;background:var(--swatch,#8498ff);border:1px solid #ffffff66}.ad-preset[aria-pressed=true]{border-color:var(--ad-accent,#8498ff);background:#30355d}
.ad-theme-fields{display:grid;gap:7px}.ad-theme-field{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#202840;border:1px solid #3b4864;padding:7px 11px;border-radius:8px;font-size:11px;color:#d5def6}.ad-theme-field input[type=color]{width:45px;height:28px;background:transparent;border:0;padding:0;cursor:pointer;min-width:40px}
.ad-theme-actions{margin-top:15px;display:flex;justify-content:space-between;gap:8px}.ad-theme-actions button{border:1px solid #485474;border-radius:8px;padding:9px 10px;background:#29314f;color:#e8ecfd;font-size:10px;font-weight:700}.ad-theme-actions .ad-theme-close{background:var(--ad-accent,#8498ff);color:#0d1425;border-color:transparent}
@media(max-width:850px){.motion-nav .ad-theme-host{position:absolute;right:13px;bottom:-51px;z-index:400}.ad-theme-trigger{font-size:11px;padding:8px 10px}.top-actions .ad-theme-trigger{font-size:10px;padding:7px}}
