/* Xora redesign (t980): Nexus navy + electric blue, glass, crisp bold type. Transform/opacity motion only. No rainbow. */
html.rd{--rd-blue:#2F7BFF;--rd-blue-hi:#5AA8FF;--rd-ice:#DCEBFF;--rd-edge:rgba(130,185,255,.22);--rd-edge-hi:rgba(170,210,255,.5);--rd-glass:linear-gradient(180deg,rgba(24,40,80,.62),rgba(8,14,32,.82));--rd-ease:cubic-bezier(.2,.8,.2,1)}
html.rd body{font-feature-settings:"ss01","cv11";-webkit-font-smoothing:antialiased}
/* AstraRoad art as a subtle backdrop */
html.rd body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(2,5,15,.55),#02050F 70%);opacity:0;transition:opacity .8s ease;}
html.rd.rd-bg body::before{background:linear-gradient(180deg,rgba(2,5,15,.55),#02050F 70%),url(/assets/console/redesign/astraroad-bg.webp) center top/cover no-repeat;opacity:.55;filter:saturate(.55) hue-rotate(10deg) brightness(.7)}
/* Hide the old home blocks the hero replaces (hidden, not deleted) */
html.rd #screen-dashboard #ux-home,html.rd #screen-dashboard > .mb-8:has(h1,h2){display:none!important}
html.rd #screen-dashboard #rd-home{order:-3}
/* Hero */
#rd-home{display:flex;flex-direction:column;gap:16px;margin:2px 0 18px}
.rd-hero{position:relative;display:grid;grid-template-columns:1fr 42%;gap:14px;align-items:center;padding:20px 18px;border-radius:24px;overflow:hidden;background:radial-gradient(120% 90% at 100% 0,rgba(47,123,255,.32),transparent 60%),var(--rd-glass);border:1px solid var(--rd-edge);box-shadow:inset 0 1px 0 rgba(210,230,255,.12),0 20px 50px rgba(0,0,0,.5);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);animation:rdUp .5s var(--rd-ease) both}
.rd-eyebrow{margin:0 0 4px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#8FB4EA}
.rd-big{margin:0;font-size:clamp(28px,8.6vw,40px);line-height:1.02;font-weight:800;letter-spacing:-.03em;color:#fff;text-shadow:0 2px 24px rgba(59,140,255,.35)}
.rd-num{font-variant-numeric:tabular-nums}
.rd-sub{margin:8px 0 0;font-size:13px;line-height:1.45;color:#A9BEDF}
.rd-link{margin-top:12px;padding:0;min-height:36px;background:none;border:0;color:var(--rd-blue-hi);font-weight:700;font-size:14px}
.rd-best{display:flex;flex-direction:column;align-items:center;gap:8px;perspective:900px}
.rd-best-cap{margin:0;max-width:100%;font-size:12px;color:#C9D8F2;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Card + cool foil */
.rd-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;aspect-ratio:5/7;border-radius:14px;overflow:hidden;padding:0;border:1px solid var(--rd-edge-hi);background:linear-gradient(160deg,#16306A,#081430);color:#CFE0FF;box-shadow:0 18px 40px rgba(0,0,0,.55),0 0 0 1px rgba(0,0,0,.3),0 0 30px rgba(47,123,255,.25);transform:rotate(3deg);transition:transform .35s var(--rd-ease)}
.rd-card:active{transform:rotate(0) scale(.97)}
.rd-card img{width:100%;height:100%;object-fit:cover}
.rd-card b{padding:0 10px;font-size:13px;text-align:center}
.rd-card svg{width:30px;height:30px}
.rd-card-ghost{border-style:dashed;background:rgba(10,20,46,.5);color:#7E98C4;font-size:12px;box-shadow:none}
.rd-foil{position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 30%,rgba(210,232,255,.42) 46%,rgba(120,180,255,.18) 52%,transparent 66%);background-size:250% 100%;mix-blend-mode:screen;animation:rdFoil 4.5s ease-in-out infinite}
@keyframes rdFoil{0%,100%{background-position:110% 0}50%{background-position:-10% 0}}
/* Action row */
.rd-actions{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:10px;animation:rdUp .5s var(--rd-ease) .06s both}
.rd-act{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:76px;border-radius:18px;border:1px solid var(--rd-edge);background:var(--rd-glass);color:#EAF2FF;font-weight:700;font-size:14px;box-shadow:inset 0 1px 0 rgba(210,230,255,.1),0 10px 26px rgba(0,0,0,.35);transition:transform .14s var(--rd-ease),border-color .2s}
.rd-act svg{width:24px;height:24px;color:var(--rd-blue-hi)}
.rd-act-main{background:linear-gradient(180deg,#5AA8FF,#2F7BFF 52%,#1D5BE0);border-color:rgba(180,215,255,.6);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 12px 30px rgba(47,123,255,.45)}
.rd-act-main svg{color:#fff}
.rd-act:active{transform:scale(.95)}
/* Feed */
.rd-feed{padding:16px 16px 6px;border-radius:20px;background:var(--rd-glass);border:1px solid var(--rd-edge);animation:rdUp .5s var(--rd-ease) .12s both}
.rd-feed h3{margin:0 0 6px;font-size:17px;font-weight:800;letter-spacing:-.01em;color:#fff}
.rd-feed ul{list-style:none;margin:0;padding:0}
.rd-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid rgba(130,185,255,.1);font-size:14px;color:#DDE8FA}
.rd-row:first-child{border-top:0}
.rd-row-t{flex:1;min-width:0}
.rd-row-t small{display:block;margin-top:2px;font-size:12px;color:#93A9CF;line-height:1.4}
.rd-row time{font-size:12px;color:#7E98C4;font-variant-numeric:tabular-nums}
.rd-row svg{width:20px;height:20px;flex:none;color:var(--rd-blue-hi)}
.rd-dot{width:8px;height:8px;border-radius:50%;background:var(--rd-blue-hi);box-shadow:0 0 10px var(--rd-blue-hi);flex:none}
.rd-row-empty{color:#93A9CF;font-size:13px}
@keyframes rdUp{from{opacity:0;transform:translate3d(0,12px,0)}to{opacity:1;transform:none}}
/* Big cards in My cards: 2 per row, tall photo with foil, tap to zoom */
html.rd #collection-grid-y1z2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
@media (min-width:900px){html.rd #collection-grid-y1z2{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
html.rd #collection-grid-y1z2>article{position:relative;padding:10px!important;border-radius:18px!important}
html.rd #collection-grid-y1z2 .coll-thumb{display:block;width:100%!important;height:auto!important;aspect-ratio:5/7;object-fit:cover;border-radius:12px!important;margin-bottom:10px;box-shadow:0 12px 28px rgba(0,0,0,.5),0 0 0 1px rgba(170,210,255,.3);cursor:zoom-in;transition:transform .25s var(--rd-ease)}
html.rd #collection-grid-y1z2 .coll-thumb:active{transform:scale(.97)}
html.rd #collection-grid-y1z2 .coll-glyph{aspect-ratio:5/7;display:flex;align-items:center;justify-content:center;font-size:44px;border-radius:12px;margin-bottom:10px;background:linear-gradient(160deg,#16306A,#081430);border:1px solid var(--rd-edge)}
html.rd #collection-grid-y1z2>article h4{font-size:14px!important;font-weight:700!important}
html.rd #collection-grid-y1z2>article .gold-gradient-text{font-size:18px!important;font-weight:800!important;background:none!important;-webkit-text-fill-color:#fff!important;color:#fff!important}
/* Zoom */
#rd-zoom{position:fixed;inset:0;z-index:5000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:rgba(2,5,15,.86);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transition:opacity .25s ease;perspective:1000px;touch-action:none}
#rd-zoom.rd-in{opacity:1}
#rd-zoom .rd-z-card{position:relative;width:min(78vw,380px);aspect-ratio:5/7;border-radius:18px;overflow:hidden;transform:scale(.86);transition:transform .35s var(--rd-ease);box-shadow:0 40px 90px rgba(0,0,0,.7),0 0 0 1px rgba(170,210,255,.4),0 0 60px rgba(47,123,255,.3);will-change:transform}
#rd-zoom.rd-in .rd-z-card{transform:scale(1)}
#rd-zoom .rd-z-card img{width:100%;height:100%;object-fit:cover}
#rd-zoom .rd-foil{animation:none;background:radial-gradient(circle at var(--mx,50%) var(--my,30%),rgba(220,236,255,.45),transparent 45%),linear-gradient(115deg,transparent 35%,rgba(160,205,255,.18) 50%,transparent 65%)}
.rd-z-cap{margin:0;color:#EAF2FF;font-weight:700;font-size:16px}
.rd-z-x{min-height:46px;padding:0 26px;border-radius:999px;border:1px solid rgba(170,210,255,.45);background:rgba(16,30,64,.7);color:#fff;font-weight:700;font-size:15px}
body.rd-noscroll{overflow:hidden}
@media (prefers-reduced-motion:reduce){.rd-foil{animation:none}.rd-hero,.rd-actions,.rd-feed{animation:none}.rd-card{transform:none}}
.rd-best{min-width:0}.rd-best-cap{width:100%}
html.rd #coll-filters-c9d0,html.rd #coll-grade-filters,html.rd #coll-source-filters{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:8px;margin-right:-16px;padding-right:16px;-webkit-overflow-scrolling:touch}
html.rd #coll-filters-c9d0::-webkit-scrollbar,html.rd #coll-grade-filters::-webkit-scrollbar,html.rd #coll-source-filters::-webkit-scrollbar{display:none}
html.rd #coll-filters-c9d0>*,html.rd #coll-grade-filters>*,html.rd #coll-source-filters>*{flex:none;white-space:nowrap}
html.rd #collection-grid-y1z2>article>div:first-child:not(:has(img)){aspect-ratio:5/7;height:auto!important;width:100%!important}
/* t981: tab highlight only on tab screens */
html.rd[data-rd-notab] .mobile-bottom-bar > button:not(#k96f95aae){background:none!important;box-shadow:none!important;text-shadow:none!important}
html.rd[data-rd-notab] .mobile-bottom-bar > button::before,html.rd[data-rd-notab] .mobile-bottom-bar > button::after{opacity:0!important}
/* t981: Add-to-Home-Screen as a small dismissible bar */
#xora-a2hs.rd-a2hs{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:10px 44px 10px 14px!important;border-radius:16px!important;background:rgba(10,20,46,.92)!important;border:1px solid var(--rd-edge-hi)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);font-size:13px!important;animation:rdUp .35s var(--rd-ease) both}
#xora-a2hs.rd-a2hs #xora-a2hs-title{margin:0!important;flex:1 1 auto;font-size:14px;cursor:pointer}
#xora-a2hs.rd-a2hs > p:not(#xora-a2hs-title),#xora-a2hs.rd-a2hs > ol,#xora-a2hs.rd-a2hs [data-a2hs="never"]{display:none!important}
#xora-a2hs.rd-a2hs.rd-open > ol,#xora-a2hs.rd-a2hs.rd-open > p,#xora-a2hs.rd-a2hs.rd-open [data-a2hs="never"]{display:block!important;flex-basis:100%}
#xora-a2hs.rd-a2hs > div{margin-top:0!important}
#xora-a2hs.rd-a2hs [data-a2hs="later"]:not(.rd-a2hs-x){display:none!important}
#xora-a2hs.rd-a2hs.rd-open [data-a2hs="later"]:not(.rd-a2hs-x){display:inline-flex!important}
#xora-a2hs.rd-a2hs [data-a2hs="install"]{min-height:36px!important;padding:6px 14px!important}
.rd-a2hs-x{position:absolute;top:50%;right:6px;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;border:0;background:rgba(130,185,255,.12);color:#DCEBFF;font-size:20px;line-height:1}
#xora-a2hs.rd-a2hs.rd-open .rd-a2hs-x{top:8px;transform:none}
/* t981: full card-shaped placeholder for items with no photo */
html.rd #collection-grid-y1z2 .coll-glyph{position:relative;height:auto!important;aspect-ratio:5/7;width:100%;font-size:0!important;border-radius:12px!important;margin-bottom:10px;overflow:hidden;background:radial-gradient(90% 60% at 50% 35%,rgba(90,168,255,.22),transparent 70%),linear-gradient(160deg,#16306A,#081430)!important;border:1px solid var(--rd-edge-hi)!important;box-shadow:inset 0 0 0 6px rgba(8,16,40,.6),inset 0 0 0 7px rgba(170,210,255,.18),0 12px 28px rgba(0,0,0,.45)}
html.rd #collection-grid-y1z2 .coll-glyph::before{content:"";position:absolute;inset:0;margin:auto;width:42%;height:30%;background:url(/assets/brand/sr/sr-mark.svg?v=c1021) center/contain no-repeat;opacity:.55}
html.rd #collection-grid-y1z2 .coll-glyph::after{content:"Add a photo";position:absolute;left:0;right:0;bottom:12%;text-align:center;font-size:12px;font-weight:600;color:#8FB4EA;letter-spacing:.02em}
html.rd #collection-grid-y1z2 .coll-glyph > *{display:none!important}
/* t1059: phone fit (390px) — filter chips wrap instead of running off-screen; file pickers stay inside the card */
html.rd #coll-filters-c9d0,html.rd #coll-grade-filters,html.rd #coll-source-filters{flex-wrap:wrap!important;overflow-x:visible}
#xw7-img{max-width:100%;min-width:0}

/* t1059 a11y: Leaflet map attribution meets WCAG AA contrast */
.leaflet-container .leaflet-control-attribution{background:#fff!important;color:#222!important}
.leaflet-container .leaflet-control-attribution a{color:#0645ad!important}
