.cards-demo { container-type:inline-size; overflow:hidden; color:#f4f2ec; background:#0c0e12; border:1px solid color-mix(in srgb,var(--gold-dark,#79602f) 72%,transparent); border-radius:16px; }
.app-row-visual.cards-demo:hover,.app-row-visual.cards-demo:focus-within { transform:none; border-color:var(--gold,#a88a45); box-shadow:none; }
.cards-demo::before { display:none; }
.cards-demo__stage { height:488px; position:relative; overflow:hidden; isolation:isolate; background:radial-gradient(ellipse at 50% 38%,#1b1e24 0%,#101216 58%,#0c0e12 100%); }
.cards-demo__automatic { position:absolute; inset:0; }
.cards-demo__scene { position:absolute; inset:0; padding:24px; opacity:0; visibility:hidden; }
.cards-demo__scene--source { display:grid; place-content:center; }
.cards-demo__scene--source.cards-demo__scene--fallback { opacity:1; visibility:visible; }
.cards-demo__paper { width:min(100%,590px); min-height:440px; margin:auto; padding:26px clamp(22px,4.7cqi,48px) 20px; border:1px solid #403c32; border-radius:10px; background:linear-gradient(155deg,#242522,#191a19 64%,#171819); box-shadow:0 24px 56px #0008; }
.cards-demo__paper-top { display:flex; justify-content:space-between; align-items:center; gap:10px; padding-bottom:11px; border-bottom:1px solid #ffffff17; color:var(--gold-light,#b79a56); font-size:11px; line-height:16px; letter-spacing:.06em; }
.cards-demo__paper-top span:last-child { color:#85847e; font-size:10px; }
.cards-demo__paper h3 { margin:15px 0 15px; color:#f4f1e8; font-size:23px; line-height:1.2; font-weight:600; letter-spacing:-.02em; }
.cards-demo__worksheet-section { margin:0 0 10px; }
.cards-demo__worksheet-section h4 { margin:0 0 4px; color:#dedbd2; font-size:13px; line-height:18px; font-weight:650; }
.cards-demo__worksheet-section p { margin:0; color:#cac9c2; font-size:13px; line-height:18px; }
.cards-demo__highlight { padding:0 .08em; color:inherit; background:linear-gradient(transparent 42%,color-mix(in srgb,var(--gold,#a88a45) 56%,transparent) 42%); -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.cards-demo__equation { display:flex; align-items:center; justify-content:center; gap:9px; flex-wrap:wrap; margin:12px 0 8px; padding:8px 10px; border-top:1px solid #ffffff13; border-bottom:1px solid #ffffff13; color:#e5e0d3; font-size:15px; line-height:22px; font-weight:570; font-variant-numeric:lining-nums; }
.cards-demo__equation i { color:var(--gold-light,#b79a56); font-size:19px; font-style:normal; }
.cards-demo__worksheet-note { margin:0; color:#aeb0ae; font-size:12px; line-height:17px; }
.cards-demo__paper-meta { display:flex; align-items:center; gap:8px; margin-top:11px; color:#858782; font-size:10px; line-height:15px; }
.cards-demo__paper-meta i { width:12px;height:15px;border:1px solid #8b8b82;border-radius:2px;display:inline-block;position:relative; }
.cards-demo__paper-meta i::after { content:""; position:absolute; left:3px;right:3px;top:5px;height:4px;border-top:1px solid #8b8b82;border-bottom:1px solid #8b8b82; }
.cards-demo__eyebrow { display:inline-flex; align-items:center; gap:8px; color:#b6b6b1; font-size:11px; line-height:16px; letter-spacing:.08em; }
.cards-demo__eyebrow i { width:6px;height:6px;border-radius:50%;background:var(--gold-light,#b79a56); box-shadow:0 0 8px color-mix(in srgb,var(--gold-light,#b79a56) 45%,transparent); }
.cards-demo__scene--processing { display:grid; place-items:center; }
.cards-demo__processing-card { width:min(100%,470px); padding:27px 30px 20px; border:1px solid #34363a; border-radius:12px; background:linear-gradient(155deg,#1c1e22,#121417); box-shadow:0 20px 48px #0007; }
.cards-demo__processing-card h3 { margin:12px 0 17px; color:#f2f0e9; font-size:22px; line-height:1.25; font-weight:580; }
.cards-demo__processing-list { display:grid; gap:9px; }
.cards-demo__processing-step { display:flex; align-items:center; gap:10px; min-height:31px; color:#b9bab8; font-size:14px; line-height:19px; opacity:.3; }
.cards-demo__process-icon { position:relative; display:grid; flex:none; place-items:center; width:20px;height:20px; border:1px solid #55585a; border-radius:50%; color:var(--gold-light,#b79a56); }
.cards-demo__process-icon i { width:8px;height:8px; border:1px solid #969590; border-top-color:var(--gold-light,#b79a56); border-radius:50%; }
.cards-demo__process-icon b { display:none; font-size:12px; line-height:1; }
.cards-demo__processing-step.is-done { color:#e7e5df; opacity:1; }
.cards-demo__processing-step.is-done .cards-demo__process-icon { border-color:var(--gold-dark,#79602f); background:color-mix(in srgb,var(--gold,#a88a45) 16%,transparent); }
.cards-demo__processing-step.is-done .cards-demo__process-icon i { display:none; }
.cards-demo__processing-step.is-done .cards-demo__process-icon b { display:block; }
.cards-demo__processing-step.is-active { color:#f0eee7; opacity:1; }
.cards-demo__processing-step.is-active .cards-demo__process-icon { border-color:var(--gold-light,#b79a56); }
.cards-demo__processing-step.is-active .cards-demo__process-icon i { border-color:var(--gold-light,#b79a56); border-top-color:transparent; }
.cards-demo__processing-foot { margin:17px 0 0; color:#a4a5a2; font-size:12px; line-height:17px; }
.cards-demo__scene--set { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.cards-demo__set-title h3 { margin:13px 0 4px; color:#f4f2ec; font-size:23px; line-height:29px; font-weight:570; }
.cards-demo__set-title p { margin:0; color:#a6a7a8; font-size:14px; line-height:20px; }
.cards-demo__set-stack { position:relative; width:210px;height:230px; margin:26px auto 9px; perspective:900px; }
.cards-demo__set-card { position:absolute; inset:0; border:1px solid color-mix(in srgb,var(--gold-dark,#79602f) 68%,#252525); border-radius:19px; background:linear-gradient(150deg,#191c22,#0d1016); box-shadow:0 16px 35px #0007; }
.cards-demo__set-card:nth-child(1) { transform:translate(-12px,9px) rotate(-8deg); opacity:.5; }
.cards-demo__set-card:nth-child(2) { transform:translate(8px,5px) rotate(5deg); opacity:.72; }
.cards-demo__set-card--front { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:16px; border-color:var(--gold-dark,#79602f); color:var(--gold-light,#b79a56); }
.cards-demo__set-card--front span { font-size:11px; text-transform:uppercase; letter-spacing:.17em; }
.cards-demo__set-card--front b { color:#f5f2ea; font-size:24px; font-weight:560; }
.cards-demo__scene--review { display:block; padding:0; }
.cards-demo__review-item { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:14px 24px; opacity:0; visibility:hidden; }
.cards-demo__review-head { display:flex; align-items:center; justify-content:space-between; width:min(100%,430px); margin:0 auto 17px; }
.cards-demo__counter { color:#c2c0b8; font-size:12px; line-height:18px; font-variant-numeric:tabular-nums; }
.cards-demo__card-scene { width:min(100%,360px); height:264px; perspective:1000px; }
.cards-demo__review-card { position:relative; width:100%;height:100%; transform-style:preserve-3d; }
.cards-demo__face { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:30px 24px; border-radius:21px; text-align:center; overflow:hidden; backface-visibility:hidden; -webkit-backface-visibility:hidden; }
.cards-demo__face--front { background:radial-gradient(130% 82% at 50% -14%,rgba(255,243,205,.09),transparent 50%),linear-gradient(157deg,#191d2a,#080a11); border:1px solid color-mix(in srgb,var(--gold,#a88a45) 53%,#252525); box-shadow:0 24px 48px #0009,inset 0 0 0 1px color-mix(in srgb,var(--gold,#a88a45) 13%,transparent); }
.cards-demo__face--back { transform:rotateY(180deg); background:radial-gradient(120% 78% at 50% -12%,rgba(96,156,246,.2),transparent 56%),linear-gradient(158deg,#0e2545 0%,#081830 42%,#040e1d 100%); border:1px solid #4488c15c; box-shadow:0 24px 48px #0009; }
.cards-demo__frame { position:absolute; inset:11px; border:1px solid color-mix(in srgb,var(--gold,#a88a45) 24%,transparent); border-radius:14px; pointer-events:none; }
.cards-demo__face--back .cards-demo__frame { border-color:#73a5d42e; }
.cards-demo__label { color:var(--gold-light,#b79a56); font-size:11px; line-height:16px; letter-spacing:.2em; text-transform:uppercase; }
.cards-demo__face--back .cards-demo__label { color:#9fc4e9; }
.cards-demo__label::after { content:""; display:block; width:26px; height:1px; margin:9px auto 0; background:currentColor; opacity:.8; }
.cards-demo__question { max-width:290px; margin:20px 0 0; color:#f3f2ee; font-size:23px; line-height:1.32; font-weight:560; }
.cards-demo__answer { max-width:290px; margin:20px 0 0; color:#eef4ff; font-size:31px; line-height:1.2; font-weight:650; }
.cards-demo__hint { position:absolute; bottom:17px; color:#a7a9ae; font-size:12px; line-height:17px; }
 .cards-demo__review-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px 10px; width:min(100%,360px); margin-top:12px; }
.cards-demo__button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:8px 10px; border-radius:14px; font-size:15px; line-height:20px; font-weight:800; white-space:nowrap; }
.cards-demo__button--again { color:#ffb1b1; border:1px solid #ef5c5c6b; background:linear-gradient(#78262e80,#4a141a9e); }
.cards-demo__button--known { color:#1c1404; background:linear-gradient(#fce49a,#f0c657 15%,#dca822 50%,#bc8910 82%,#9c7209); box-shadow:0 8px 20px #d6a82844,inset 0 1px 0 #ffffffa6,inset 0 -2px 7px #78500073; }
.cards-demo__button--easy { grid-column:1/-1; justify-self:center; width:calc(50% - 5px); color:#a7f3d0; border:1px solid #34d39980; background:linear-gradient(#10785080,#0850349e); box-shadow:0 6px 16px #108c5a38; }
.cards-demo__scene--summary { display:grid; place-items:center; }
.cards-demo__summary-card { display:flex; flex-direction:column; align-items:center; text-align:center; }
.cards-demo__finish-check { display:grid; place-items:center; width:42px;height:42px; margin-bottom:15px; border:1px solid color-mix(in srgb,var(--gold,#a88a45) 54%,transparent); border-radius:50%; color:var(--gold-light,#b79a56); background:color-mix(in srgb,var(--gold,#a88a45) 9%,transparent); font-size:23px; }
.cards-demo__summary-card h3 { margin:12px 0 3px; color:#f4f2ec; font-size:25px; line-height:31px; font-weight:580; }
.cards-demo__summary-sub { margin:0; color:#b4b4ae; font-size:14px; line-height:20px; }
.cards-demo__score { display:flex; align-items:center; gap:28px; margin:22px 0 10px; }
.cards-demo__score div { display:grid; gap:5px; min-width:76px; }
.cards-demo__score strong { color:#ede5cd; font-size:30px; line-height:34px; font-weight:590; font-variant-numeric:tabular-nums; }
.cards-demo__score div:first-child strong { color:var(--gold-light,#b79a56); }
.cards-demo__score span { color:#d0cfc8; font-size:13px; line-height:18px; }
.cards-demo__score i { width:1px;height:39px;background:#ffffff23; }
.cards-demo__scene--dashboard { display:grid; place-items:center; }
.cards-demo__dashboard { width:min(100%,470px); padding:25px; border:1px solid #34363a; border-radius:12px; background:linear-gradient(155deg,#191c22,#101216); box-shadow:0 20px 48px #0007; }
.cards-demo__dashboard-head { display:flex; align-items:center; gap:10px; color:#f1efe8; font-size:16px; line-height:22px; font-weight:600; }
.cards-demo__dashboard-head img { object-fit:contain; border-radius:8px; }
.cards-demo__dashboard-section { margin:22px 0 10px; color:#aba9a1; font-size:12px; line-height:17px; }
.cards-demo__module-card { padding:16px; border:1px solid color-mix(in srgb,var(--gold,#a88a45) 26%,#303136); border-radius:15px; background:linear-gradient(158deg,color-mix(in srgb,var(--gold,#a88a45) 18%,#111318),#101216 80%); }
.cards-demo__module-top { display:flex; align-items:center; justify-content:space-between; color:#e9e7e0; font-size:21px; }
.cards-demo__mastery { display:grid; place-items:center; width:38px;height:38px; border:2px solid color-mix(in srgb,var(--gold,#a88a45) 45%,#555); border-radius:50%; color:#dbd8cf; font-size:10px; font-variant-numeric:tabular-nums; }
.cards-demo__module-card h3 { margin:15px 0 3px; color:#f3f1ea; font-size:18px; line-height:24px; font-weight:600; }
.cards-demo__module-card p { margin:0; color:#b7b7b1; font-size:13px; line-height:18px; }
.cards-demo__module-link { display:flex; justify-content:space-between; align-items:center; margin-top:14px; color:var(--gold-light,#b79a56); font-size:13px; line-height:18px; }
.cards-demo__module-link i { font-size:16px; font-style:normal; }
.cards-demo__dashboard-note { margin:12px 0 0; color:#a5a6a3; font-size:11px; line-height:16px; }
.cards-demo__progress { position:absolute; left:0;right:0;bottom:0;height:2px;background:#ffffff12;transform-origin:left; }
.cards-demo__progress span { display:block;width:100%;height:100%;transform-origin:left;background:var(--gold-metal,linear-gradient(118deg,#8c6c32,#ae8c49 36%,#c1a160 48%,#9d7c3a 65%,#86662f)); }
.cards-demo__description { position:absolute; width:1px;height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@container (max-width:460px) {
  .cards-demo__stage { height:485px; }
  .cards-demo__scene { padding:18px 16px; }
  .cards-demo__paper { min-height:0; padding:20px 17px 16px; }
  .cards-demo__paper h3 { margin:12px 0; font-size:20px; }
  .cards-demo__worksheet-section { margin-bottom:9px; }
  .cards-demo__worksheet-section h4 { font-size:12px; line-height:16px; }
  .cards-demo__worksheet-section p { font-size:12px; line-height:17px; }
  .cards-demo__equation { gap:7px; margin:9px 0 7px; padding:6px; font-size:13px; }
  .cards-demo__worksheet-note { font-size:11px; line-height:15px; }
  .cards-demo__paper-meta { margin-top:9px; }
  .cards-demo__processing-card { padding:23px 20px 17px; }
  .cards-demo__processing-card h3 { font-size:19px; }
  .cards-demo__processing-step { font-size:13px; }
  .cards-demo__set-stack { width:190px;height:215px; margin:22px auto 8px; }
  .cards-demo__review-item { padding:18px 16px; }
  .cards-demo__card-scene { width:min(100%,340px); height:258px; }
  .cards-demo__question { font-size:20px; }
  .cards-demo__answer { font-size:27px; }
  .cards-demo__review-actions { margin-top:10px; gap:8px; }
  .cards-demo__button { min-height:45px; padding-inline:7px; font-size:14px; }
  .cards-demo__dashboard { padding:20px; }
}
@container (max-width:350px) {
  .cards-demo__stage { height:485px; }
  .cards-demo__paper { padding-inline:13px; }
  .cards-demo__paper-top { font-size:10px; }
  .cards-demo__paper h3 { font-size:19px; }
  .cards-demo__worksheet-section p { font-size:11px; line-height:16px; }
  .cards-demo__equation { font-size:12px; }
  .cards-demo__review-item { padding:16px 13px; }
  .cards-demo__card-scene { height:245px; }
  .cards-demo__question { font-size:18px; }
  .cards-demo__answer { max-width:250px; font-size:22px; overflow-wrap:anywhere; }
}
.cards-demo__grip { position:absolute; z-index:3; top:52%; left:56%; display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:#11151dd9; color:#fff1cf; border:1px solid #dec08b8c; box-shadow:0 5px 16px #0007; opacity:0; visibility:hidden; pointer-events:none; }
.cards-demo__grip svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.45; stroke-linecap:round; stroke-linejoin:round; }
.cards-demo__swipe-grade {
  position:absolute; z-index:4; top:27%; left:50%; translate:-50% 0;
  width:max-content; padding:7px 13px; border-radius:9px;
  background:#22372f; border:1px solid #83be9d; color:#d0f1dc;
  font-size:15px; font-weight:750; visibility:hidden; opacity:0;
}
[data-grade="again"] .cards-demo__swipe-grade { background:#48272c; border-color:#df959a; color:#ffd0d0; }
.cards-demo__scene--exam { display:grid; place-items:center; }
.cards-demo__exam-panel {
  width:min(100%,390px); padding:clamp(16px,5cqi,28px); border-radius:16px;
  border:1px solid #b9894366; background:#151922; box-shadow:0 10px 30px #0005;
}
.cards-demo__exam-panel h3 { font-size:clamp(20px,5.5cqi,28px); line-height:1.2; margin:0 0 9px; }
.cards-demo__exam-panel p { font-size:14px; line-height:1.5; color:#c9c4b9; }
.cards-demo__exam-module,.cards-demo__exam-times,.cards-demo__exam-top { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-block:14px; }
.cards-demo__exam-module,.cards-demo__exam-times span { padding:8px; border:1px solid #ffffff25; border-radius:7px; font-size:13px; }
.cards-demo__exam-times .is-selected { border-color:#c89d54; color:#f1d497; }
.cards-demo__exam-start { display:block; margin-top:15px; padding:8px; border-radius:7px; text-align:center; background:var(--gold-metal); color:#17110a; font-weight:700; }
.cards-demo__exam-top { margin-top:0; font-size:12px; color:#e0c996; }
.cards-demo__exam-answer { min-height:63px; margin-top:14px; padding:9px; border:1px solid #ffffff28; border-radius:8px; background:#10131a; }
.cards-demo__exam-answer span,.cards-demo__exam-answer b { display:block; }
.cards-demo__exam-answer span { font-size:11px; color:#aaa7a1; }
.cards-demo__exam-panel .cards-demo__exam-verdict { margin-top:10px; color:#acdfbf; }
