/* Smart card tokens extend, rather than replace, the existing Fluenta V4 theme. */
.smart-deck{min-inline-size:0;display:grid;gap:clamp(.65rem,1.8vw,1.1rem);isolation:isolate;}
.smart-deck > :is(.rc3-card,.rc3-verb-card),.rc3-lesson-flash{border-radius:1.45rem;border-block-start:3px solid var(--rc3-accent,#62cbbb);}
.smart-deck > [hidden]{display:none!important;}
.smart-track{min-inline-size:0;}
.smart-progress{block-size:.375rem;margin-block:.6rem .1rem;background:var(--rc3-edge,#52678250);border-radius:20px;overflow:hidden;}
.smart-progress i{display:block;inline-size:100%;block-size:100%;transform:scaleX(var(--smart-progress,0));transform-origin:left center;background:var(--rc3-accent,#238d7d);border-radius:inherit;}
.smart-progress:dir(rtl) i{transform-origin:right center;}
.smart-nav{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem .7rem;}
.smart-nav [data-primary]{margin-inline-start:auto;}
.smart-step{min-block-size:44px;text-align:start;}
.smart-caption{color:var(--rc3-muted);font-weight:700;font-size:.88rem;margin-block:0;}
.smart-flip-face{display:grid;gap:.5rem;place-items:center;min-block-size:9.25rem;padding:1rem;text-align:center;border-radius:1.05rem;border:1px solid var(--rc3-edge,#7389aa55);background:var(--rc3-faint,#85c8c415);overflow-wrap:anywhere;}
.smart-flip-face h3{margin:0;}
.smart-flip-face small{color:var(--rc3-muted,#a8bccb);}
.smart-flip-face[data-face=back]{background:var(--rc3-raised,#203c4a);}
.smart-flip-toggle,.smart-completion button{min-block-size:44px;}
.smart-completion{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;padding-block:.85rem;}
.smart-completion .btn{min-block-size:44px;}
.smart-feedback{color:inherit;}
.smart-directional:dir(rtl){transform:scaleX(-1);}
@keyframes smart-enter{from{opacity:.14;transform:translateY(8px);}to{opacity:1;transform:none;}}
@keyframes smart-leave{to{opacity:0;transform:translateY(-5px);}}
@keyframes smart-turn-away{to{opacity:.35;transform:perspective(900px) rotateY(85deg);}}
@keyframes smart-turn-in{from{opacity:.35;transform:perspective(900px) rotateY(-85deg);}to{opacity:1;transform:none;}}
@keyframes smart-progress{from{transform:scaleX(var(--smart-previous,0));}to{transform:scaleX(var(--smart-progress,0));}}
[data-smart-motion=enter]{animation:smart-enter 230ms ease-out both;}
[data-smart-motion=leave]{animation:smart-leave 125ms ease-in both;}
[data-smart-motion=turn-away]{animation:smart-turn-away 115ms ease-in both;}
[data-smart-motion=turn-in]{animation:smart-turn-in 175ms ease-out both;}
[data-smart-motion=reveal],[data-smart-motion=retry]{animation:smart-enter 185ms ease-out both;}
[data-smart-motion=progress]{animation:smart-progress 265ms ease-out both;}
html[data-motion="reduce"] [data-smart-motion]{animation:none!important;}
@media (prefers-reduced-motion: reduce){
html:not([data-motion]) [data-smart-motion]{animation:none!important;}
}
.rc3-verb [hidden]{display:none!important;}
.rc3-verb > .rc3-verb-tabs{margin-block:0;}
.rc3-lesson-rail .smart-progress i,.rc3-lesson-flash .smart-progress i{background:var(--ls-accent);}

/* Avoid re-sampling a full-screen live backdrop on every composited frame.
   The original scene stays visible through the Fluenta tinted scrim. */
html[data-rc="3.1"] :is(.rc3-dialog,.rc3-lesson-review)::backdrop{backdrop-filter:none;}
html[data-rc="3.1"] .rc3-dialog .rc3-bar{backdrop-filter:none;background:var(--rc3-panel);}
