/* Spring Check motion adapted from React Bits, David Haz. License: assets/lanyard/LICENSE-react-bits.txt. */
@property --sde-spring { syntax:"<number>"; inherits:true; initial-value:0; }
.sde-card,.sde-dialog { box-sizing:border-box; color:var(--student-ink); background:var(--student-surface); border:1px solid var(--student-border); font-family:var(--sans,Arial,sans-serif); }
.sde-card *, .sde-dialog * { box-sizing:border-box; }
.sde-card { min-width:0; width:100%; padding:clamp(12px,1.2vw,18px); border-radius:20px; }
.sde-card[hidden] { display:none; }
.sde-card h2,.sde-dialog h2 { margin:0; color:var(--student-accent); font:600 clamp(18px,1.7vw,25px)/1.16 var(--serif,Georgia,serif); }
.sde-card .sde-check { display:flex; align-items:center; gap:10px; width:100%; padding:6px 0; margin:6px 0 0; min-height:44px; text-align:start; font:400 13px/1.4 var(--sans,Arial,sans-serif); cursor:pointer; color:var(--student-ink); border:0; border-radius:6px; background:transparent; }
.sde-check[aria-disabled=true] { cursor:default; }
.sde-box { position:relative; display:grid; place-items:center; flex:0 0 28px; height:28px; border:2px solid var(--student-accent); border-radius:9px; transform:scale(calc(1 + .35 * max(0,var(--sde-spring) - 1))); }
.sde-box i { position:absolute; inset:-1px; border-radius:7px; background:var(--student-accent); transform:scale(max(0,var(--sde-spring))); }
.sde-box svg { position:relative; width:23px; height:23px; fill:none; stroke:var(--student-surface); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.sde-box path { stroke-dasharray:1; stroke-dashoffset:calc(1 - clamp(0,var(--sde-spring),1)); }
.sde-title { min-width:0; overflow-wrap:anywhere; }
.sde-title > span { background:linear-gradient(currentColor,currentColor) left 55% / calc(100% * clamp(0,(var(--sde-spring) - .12) / .72,1)) 1.5px no-repeat; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.sde-check[aria-checked=true] { --sde-spring:1; color:var(--student-muted); }
.sde-level { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-top:10px; color:var(--student-muted); font:500 12px/1.4 var(--sans,Arial,sans-serif); }
.sde-level strong { color:var(--student-ink); font-weight:650; }
.sde-level span { white-space:nowrap; font-variant-numeric:tabular-nums; }
.sde-example-xp { display:block; margin-top:4px; color:var(--student-muted); font:400 11px/1.35 var(--sans,Arial,sans-serif); }
.sde-card academy-sample-level-meter { display:block; border-radius:20px; background:var(--student-tint); }
@media(prefers-reduced-motion:no-preference) {
  academy-sample-level-meter[data-reveal=waiting] progress { clip-path:inset(0 100% 0 0); }
  academy-sample-level-meter[data-reveal=playing] progress { animation:sde-sample-fill 950ms cubic-bezier(.22,.66,.26,1) both; }
  @keyframes sde-sample-fill { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0); } }
}
.sde-card progress { display:block; width:100%; height:6px; margin-top:6px; border:0; border-radius:20px; overflow:hidden; appearance:none; background:var(--student-tint); accent-color:var(--student-accent); }
.sde-card progress::-webkit-progress-bar { border-radius:inherit; background:var(--student-tint); }
.sde-card progress::-webkit-progress-value { border-radius:inherit; background:var(--student-accent); }
.sde-card progress::-moz-progress-bar { border-radius:inherit; background:var(--student-accent); }
.sde-dialog { width:min(420px,calc(100% - 24px)); max-height:calc(100dvh - 24px); margin:auto; padding:clamp(16px,3vw,24px); border-radius:18px; overflow:auto; box-shadow:0 18px 65px #30252133; }
.sde-dialog::backdrop { background:rgb(39 26 28 / .56); }
.sde-dialog form { display:grid; gap:8px; }
.sde-dialog header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sde-dialog .sde-close { display:grid; place-items:center; flex:0 0 44px; height:44px; padding:0; color:var(--student-accent); background:transparent; border:0; border-radius:50%; cursor:pointer; }
.sde-close svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
.sde-dialog p { margin:0; }
.sde-dialog .sde-prompt { margin:2px 0 6px; padding:8px 12px; border-inline-start:2px solid var(--student-border); color:var(--student-ink); font:550 15px/1.45 var(--sans,Arial,sans-serif); overflow-wrap:anywhere; }
.sde-dialog label { color:var(--student-ink); font:650 15px/1.4 var(--sans,Arial,sans-serif); }
.sde-dialog :is(#sde-hint,output) { color:var(--student-muted); font:500 13px/1.4 var(--sans,Arial,sans-serif); }
.sde-dialog textarea { width:100%; min-height:105px; resize:vertical; padding:9px 11px; border:1px solid var(--student-border); border-radius:8px; color:var(--student-ink); background:var(--student-surface); font:400 16px/1.45 var(--sans,Arial,sans-serif); }
.sde-dialog [role=alert] { color:var(--student-accent); font:600 13px/1.4 var(--sans,Arial,sans-serif); }
.sde-dialog [role=alert]:empty { display:none; }
.sde-dialog .sde-submit { min-height:44px; padding:9px 15px; border:1px solid var(--student-accent); border-radius:9px; color:var(--student-surface); background:var(--student-accent); font:600 14px/1.3 var(--sans,Arial,sans-serif); cursor:pointer; }
.sde-dialog .sde-submit:disabled { cursor:default; opacity:.68; }
.sde-card [data-daily-check]:focus-visible,.sde-dialog :is(button,textarea):focus-visible { outline:2px solid var(--student-accent); outline-offset:2px; }
@media(prefers-reduced-motion:no-preference) {
  .sde-check { transition:--sde-spring .48s linear(0,.25 10%,.74 22%,1 34%,1.14 46%,1.07 60%,.985 78%,1); }
}
@media(forced-colors:active) {
  .sde-check[aria-checked=true] .sde-title { text-decoration:line-through; }
  .sde-check[aria-checked=true] .sde-box { color:HighlightText; background:Highlight; }
  .sde-box svg { stroke:currentColor; }
}

