/* Native-dialog child stays in the browser's top layer during both transitions. */
.mot-watch-dialog.mot-history-moving{overflow:hidden;background:transparent;border-color:transparent;box-shadow:none}
.mot-history-moving > :not(.mot-history-transition){visibility:hidden;pointer-events:none}
.mot-history-transition{position:fixed;inset:0;z-index:50;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#17426b,#0b2440 48%,#061326);color:#e9f6ff;pointer-events:auto}
.mht-stage{position:relative;display:flex;flex-direction:column;align-items:center;gap:20px;width:min(430px,94vw);text-align:center;isolation:isolate}
.mht-halo{position:absolute;z-index:-1;top:20px;width:300px;height:300px;border-radius:50%;background:#27b8ed1c;box-shadow:0 0 70px #36b7f52e;border:1px solid #5dd5ff25}
.mht-board{position:relative;width:240px;height:315px;padding:26px 17px 17px;box-sizing:border-box;border:2px solid #71bddf;border-radius:19px;background:linear-gradient(145deg,#3e9cdc,#17639f 60%,#10456d);box-shadow:inset 0 2px 0 #ffffff50,0 24px 40px #0006;perspective:700px}
.mht-paper{position:relative;box-sizing:border-box;width:100%;height:100%;overflow:hidden;background:linear-gradient(145deg,#fff,#eaf5fc);border:1px solid #cbdfed;border-radius:5px;padding:23px 17px;color:#285573;box-shadow:0 5px 13px #001c3340}
.mht-paper-heading{font:850 15px/1.4 system-ui;letter-spacing:.13em}.mht-car{height:76px;padding:8px 0 10px;display:grid;place-items:center}
.mht-car img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 4px 5px rgba(3,35,60,.13))}
.mht-row{display:flex;align-items:center;gap:12px;height:28px}.mht-row i{font:900 17px system-ui;font-style:normal;color:#177d8a}.mht-row span{height:5px;width:100%;background:#9dbbd0;border-radius:4px}.mht-row:nth-of-type(4) span{width:74%}
.mht-clip{position:absolute;z-index:2;top:-8px;left:50%;width:98px;height:35px;margin-left:-49px;background:linear-gradient(#dae7ef,#7eabc5 55%,#bdd9e9);border:2px solid #d5effb;border-radius:10px 10px 6px 6px;box-shadow:0 4px 7px #001a3e50;transform-origin:center top}.mht-clip::before{content:"";position:absolute;left:34px;top:-9px;width:24px;height:15px;border:3px solid #bad9e9;border-bottom:0;border-radius:10px 10px 0 0}
.mht-scan{position:absolute;left:8px;right:8px;top:42px;height:3px;opacity:0;background:#31c7e9;box-shadow:0 0 15px #00cfff}
.mht-stamp{position:absolute;bottom:17px;left:21px;right:21px;border:2px solid #3b829b;border-radius:4px;color:#296c84;font:800 10px/1.8 system-ui;letter-spacing:.08em;transform:rotate(-8deg);background:#f0faffb0}
.mht-stage .mht-caption{margin:0;color:#c9ebff;font:750 18px/1.4 system-ui;letter-spacing:.02em}.mht-stage small{color:#88b9d4;font:700 10px/1.4 system-ui;letter-spacing:.16em}
@media(max-width:420px){.mht-stage{gap:16px}.mht-board{width:220px;height:290px}.mht-halo{width:270px;height:270px}.mht-stage .mht-caption{font-size:17px}}
@media(max-height:510px){.mht-stage{transform:scale(.65);gap:12px}}
@media(prefers-reduced-motion:reduce){.mot-history-transition{display:none}}
#motWatchDialog .mht-stage > small{color:#9ecde5!important}
