:root{--bg:#08090c;--panel:#111319;--line:#242831;--gold:#d4af37;--gold2:#f2d36f;--text:#f6f7fa;--muted:#969ca7;--red:#ff9aa7;--green:#9be6b0}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 80% -10%,#211b0e 0,#0b0c10 25%,#08090c 55%);color:var(--text);font-family:Tahoma,Arial,sans-serif}.fc-shell{max-width:1280px;margin:auto;padding:20px}.fc-topbar{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:14px 16px;border:1px solid #20242c;border-radius:20px;background:rgba(13,15,20,.9);backdrop-filter:blur(15px);position:sticky;top:8px;z-index:20}.fc-topbar>div{text-align:center}.fc-topbar span,.fc-kicker{font-size:10px;color:var(--gold);letter-spacing:1.4px}.fc-topbar h1{font-size:18px;margin:4px 0}.fc-back-home,.fc-light-btn,.fc-today-btn{border:1px solid #2c3038;border-radius:12px;padding:10px 13px;background:#11141a;color:#e7e9ee;text-decoration:none;cursor:pointer}.fc-today-btn{background:linear-gradient(135deg,#d4af37,#f1d474);color:#0c0d10;border:0;font-weight:900}.fc-hero{margin:22px 0 14px;padding:24px;border:1px solid rgba(212,175,55,.22);border-radius:26px;background:linear-gradient(145deg,#161511,#0f1117);display:flex;justify-content:space-between;gap:20px;align-items:center}.fc-hero h2{font-size:30px;margin:6px 0 8px;color:#fff}.fc-hero p{margin:0;color:var(--muted);line-height:1.9}.fc-summary{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.fc-summary span{padding:8px 11px;border-radius:999px;background:#0c0e12;border:1px solid #292d35;color:#d9dde4;font-size:11px}.fc-breadcrumb{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 20px}.fc-breadcrumb button{border:0;background:#13161b;color:#d0d4dc;border-radius:999px;padding:8px 11px;cursor:pointer}.fc-breadcrumb button:last-child{color:#f1d26b}.fc-section-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-end;margin:15px 0}.fc-section-head small{color:var(--gold)}.fc-section-head h3{font-size:24px;margin:4px 0}.fc-section-head p{color:var(--muted);margin:0;line-height:1.8}.fc-grade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.fc-grade-card{position:relative;text-align:right;padding:20px;border:1px solid #262a32;border-radius:22px;background:linear-gradient(145deg,#14171d,#0e1014);color:#fff;cursor:pointer;min-height:170px;overflow:hidden}.fc-grade-card:before{content:"";position:absolute;width:180px;height:180px;border-radius:50%;left:-70px;top:-70px;background:radial-gradient(circle,rgba(212,175,55,.14),transparent 68%)}.fc-grade-card b{display:block;font-size:24px;margin-bottom:10px}.fc-grade-card span{display:block;color:#a4aab4;line-height:1.8}.fc-grade-stats{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.fc-grade-stats i{font-style:normal;padding:6px 8px;border-radius:999px;background:#0b0d11;border:1px solid #292d35;color:#d7b94f;font-size:10px}.fc-subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.fc-subject-card{position:relative;border:1px solid #252932;background:linear-gradient(150deg,#15171d,#0e1014);border-radius:22px;padding:16px;color:#fff;text-align:right;overflow:hidden;cursor:pointer}.fc-subject-card.locked{border-color:#4d2931;background:linear-gradient(150deg,#171217,#100e12)}.fc-subject-cover{height:130px;border-radius:15px;overflow:hidden;background:#0b0d11;margin-bottom:12px;border:1px solid #232730;display:grid;place-items:center}.fc-subject-cover img{width:100%;height:100%;object-fit:contain;object-position:center;max-width:100%;max-height:100%}.fc-subject-cover .placeholder{font-size:36px;opacity:.7}.fc-subject-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.fc-subject-title h4{font-size:18px;margin:0}.fc-badge{padding:6px 8px;border-radius:999px;font-size:9px;background:#171a20;border:1px solid #2b2f37;color:#d6b84f}.fc-badge.lock{background:#251217;border-color:#572b35;color:#ffabb6}.fc-subject-card p{color:#8f96a1;font-size:11px;line-height:1.8;margin:8px 0}.fc-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:11px}.fc-metrics span{padding:8px;border-radius:10px;background:#0c0f13;border:1px solid #22262e}.fc-metrics small{display:block;color:#7f8691;font-size:9px}.fc-metrics b{font-size:13px}.fc-chapter-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.fc-chapter-card{border:1px solid #262a32;border-radius:18px;background:#111419;padding:16px}.fc-chapter-top{display:flex;justify-content:space-between;gap:10px}.fc-chapter-card h4{margin:0;font-size:16px;line-height:1.8}.fc-chapter-card .count{white-space:nowrap;color:#d9bd56;font-size:10px}.fc-chapter-meta{display:flex;gap:12px;color:#8f96a0;font-size:10px;margin:10px 0}.fc-chapter-actions{display:flex;gap:8px}.fc-chapter-actions button{flex:1;border-radius:11px;padding:10px;cursor:pointer;font-weight:800}.fc-start{border:0;background:#d4af37;color:#111}.fc-due{border:1px solid #4a3c17;background:#18150c;color:#ebca61}.fc-locked-panel{text-align:center;padding:48px 20px;border:1px solid #4d2831;border-radius:24px;background:linear-gradient(145deg,#211217,#100e12)}.fc-locked-panel>span{font-size:48px}.fc-locked-panel h3{font-size:24px}.fc-locked-panel p{max-width:700px;margin:10px auto 22px;color:#d7b4ba;line-height:2}.fc-review-view{max-width:900px;margin:auto}.fc-review-head{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin-bottom:14px}.fc-review-head h3{margin:0}.fc-review-head p{color:#8f96a0;margin:5px 0}.fc-progress{height:5px;border-radius:99px;background:#24272d;overflow:hidden}.fc-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#d4af37,#f1d474);transition:.25s}.fc-card{min-height:390px;border-radius:28px;border:1px solid rgba(212,175,55,.42);background:radial-gradient(circle at top,#2a230d,#101114 58%);display:flex;align-items:center;justify-content:center;text-align:center;padding:34px;cursor:pointer;box-shadow:0 24px 70px rgba(0,0,0,.35)}.fc-card .side{color:#d4af37;font-size:11px;font-weight:900}.fc-card strong{display:block;font-size:25px;line-height:2;margin:16px auto;max-width:720px}.fc-card small{color:#9298a3}.fc-card.revealed{border-color:#3a9867;background:radial-gradient(circle at top,#0e2c1d,#101214 60%)}.fc-ratings{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.fc-ratings button{border:0;border-radius:13px;padding:14px;font-weight:900;cursor:pointer}.fc-ratings .missed{background:#3b1717;color:#ffabab}.fc-ratings .hard{background:#3a3013;color:#ffe28a}.fc-ratings .known{background:#123522;color:#9af0ba}.fc-done{text-align:center}.fc-done b{display:block;font-size:24px;color:#f0d16a}.fc-done span{display:block;color:#9ea4ae;margin-top:10px}.fc-empty{padding:28px;border:1px dashed #2c3038;border-radius:17px;text-align:center;color:#969ca7}@media(max-width:950px){.fc-grade-grid,.fc-subject-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.fc-shell{padding:10px}.fc-topbar{grid-template-columns:auto 1fr}.fc-topbar>div{text-align:right}.fc-today-btn{grid-column:1/-1}.fc-hero{display:block;padding:18px}.fc-hero h2{font-size:25px}.fc-summary{justify-content:flex-start;margin-top:15px}.fc-grade-grid,.fc-subject-grid,.fc-chapter-grid{grid-template-columns:1fr}.fc-section-head{align-items:flex-start;flex-direction:column}.fc-subject-cover{height:150px}.fc-review-head{grid-template-columns:1fr auto}.fc-review-head>button{grid-column:1/-1;width:max-content}.fc-card{min-height:55vh;padding:20px}.fc-card strong{font-size:20px}.fc-ratings{position:sticky;bottom:10px}}

.fc-leitner-panel{margin:14px 0 22px;padding:18px;border:1px solid #272b34;border-radius:24px;background:linear-gradient(145deg,#11141a,#0c0e12)}.fc-cycle-chip{padding:8px 11px;border-radius:999px;background:#201b0c;border:1px solid #4a3d16;color:#edcd65;font-size:11px}.fc-leitner-board{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.fc-leitner-box,.fc-leitner-meta{display:flex;gap:10px;align-items:center;padding:13px;border-radius:16px;background:#0c0f13;border:1px solid #242932}.fc-leitner-box>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#d4af37,#f3d876);color:#111;font-weight:900}.fc-leitner-box small,.fc-leitner-box em{display:block;font-style:normal;color:#818894;font-size:9px}.fc-leitner-box b{display:block;margin:3px 0;color:#fff}.fc-leitner-meta{display:block}.fc-leitner-meta strong{display:block;color:#f1d16c}.fc-leitner-meta small{color:#9097a2}.fc-smart-section{margin-bottom:28px}.fc-smart-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.fc-smart-card{padding:16px;text-align:right;border-radius:18px;border:1px solid #282c35;background:radial-gradient(circle at top left,rgba(212,175,55,.10),transparent 45%),linear-gradient(145deg,#14171d,#0e1014);color:#fff;cursor:pointer}.fc-smart-card>span{display:inline-block;color:#d5b84f;font-size:10px;margin-bottom:7px}.fc-smart-card strong{display:block;font-size:16px;line-height:1.6}.fc-smart-card p{min-height:44px;color:#8f96a1;font-size:10px;line-height:1.8}.fc-smart-card b{color:#f1d16a;font-size:11px}.fc-review-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}.fc-review-tools>span:first-child{padding:7px 10px;border-radius:999px;background:#201b0c;border:1px solid #493c16;color:#f0cf66;font-size:10px;font-weight:900}.fc-review-tools #fcRetryHint{color:#ffcf7d;font-size:10px}.fc-done small{display:block;color:#858c97;margin-top:8px;line-height:1.8}@media(max-width:950px){.fc-leitner-board{grid-template-columns:repeat(3,1fr)}.fc-smart-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.fc-leitner-board{grid-template-columns:repeat(2,1fr)}.fc-smart-grid{grid-template-columns:1fr}.fc-leitner-panel{padding:13px}.fc-leitner-box,.fc-leitner-meta{min-height:74px}}

/* V18.20.3 — approved subject-specific review-card identities */
.fc-card{position:relative;overflow:hidden;isolation:isolate;transition:border-color .2s,box-shadow .2s,transform .2s}.fc-card:before,.fc-card:after{content:"";position:absolute;pointer-events:none;z-index:0}.fc-card-inner{position:relative;z-index:2;width:min(100%,760px)}.fc-theme-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 auto 20px;max-width:680px}.fc-theme-subject,.fc-theme-design{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:900}.fc-theme-subject i{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;font-style:normal}.fc-card-context{display:block;margin:-8px auto 10px;color:inherit!important;opacity:.62}.fc-card-hint{display:block;margin-top:14px}.fc-card .side{display:inline-flex;padding:7px 13px;border-radius:999px}.fc-card strong{position:relative;z-index:2}

/* علوم تجربی — طرح 1: dark minimal scientific */
.fc-theme-science-1{border-color:#485260;background:radial-gradient(circle at 82% 18%,rgba(94,76,255,.28),transparent 23%),radial-gradient(circle at 14% 82%,rgba(36,190,255,.14),transparent 26%),linear-gradient(155deg,#151a24 0%,#0a0d12 58%,#07090c 100%);box-shadow:0 26px 80px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.05)}.fc-theme-science-1:before{width:260px;height:260px;left:-75px;bottom:-95px;border-radius:52% 48% 58% 42%;border:1px solid rgba(119,143,255,.18);box-shadow:0 0 0 24px rgba(83,112,255,.025),0 0 0 48px rgba(83,112,255,.018)}.fc-theme-science-1:after{content:"⚗";right:30px;bottom:16px;font-size:118px;opacity:.045;filter:grayscale(1)}.fc-theme-science-1 .fc-theme-subject,.fc-theme-science-1 .fc-theme-design{background:rgba(15,18,25,.72);border:1px solid #39404c;color:#e8edf5}.fc-theme-science-1 .fc-theme-subject i{background:#2c243e;color:#c5b6ff}.fc-theme-science-1 .side{background:#e2bc61;color:#15130d}.fc-theme-science-1.revealed{border-color:#54735f;background:radial-gradient(circle at 82% 18%,rgba(82,177,125,.19),transparent 23%),radial-gradient(circle at 14% 82%,rgba(36,190,255,.10),transparent 26%),linear-gradient(155deg,#121b19,#090d0d 62%,#07090c)}

/* فارسی — طرح 1: classic literary black & gold */
.fc-theme-persian-1{border:2px solid #b58c42;background:radial-gradient(circle at 50% -12%,rgba(196,147,59,.18),transparent 34%),linear-gradient(145deg,#17120d,#080706 68%);box-shadow:0 25px 75px rgba(0,0,0,.52),inset 0 0 0 5px rgba(181,140,66,.08),inset 0 0 0 7px rgba(181,140,66,.03)}.fc-theme-persian-1:before{inset:13px;border:1px solid rgba(209,164,80,.32);border-radius:20px;background:linear-gradient(135deg,rgba(209,164,80,.08),transparent 13%,transparent 87%,rgba(209,164,80,.08))}.fc-theme-persian-1:after{content:"❧";left:28px;bottom:10px;font-size:116px;color:#c69b4b;opacity:.08}.fc-theme-persian-1 .fc-theme-subject,.fc-theme-persian-1 .fc-theme-design{background:#17110a;border:1px solid #8e6c35;color:#e6c27c}.fc-theme-persian-1 .fc-theme-subject i{background:#2a1d0d;color:#e6c27c}.fc-theme-persian-1 .side{background:linear-gradient(135deg,#b78936,#e6c676);color:#181006}.fc-theme-persian-1 strong{font-family:Tahoma,"Times New Roman",serif}.fc-theme-persian-1.revealed{border-color:#c8a356;background:radial-gradient(circle at 50% -12%,rgba(110,150,86,.13),transparent 34%),linear-gradient(145deg,#17150d,#080806 68%)}

/* عربی — طرح 3: modern neon */
.fc-theme-arabic-3{border:1px solid #8f4cff;background:radial-gradient(circle at 78% 14%,rgba(81,49,255,.38),transparent 28%),radial-gradient(circle at 12% 82%,rgba(0,216,255,.20),transparent 31%),linear-gradient(145deg,#0c1028,#080918 62%,#070710);box-shadow:0 0 0 1px rgba(0,214,255,.18),0 0 38px rgba(112,49,255,.27),0 26px 80px rgba(0,0,0,.5)}.fc-theme-arabic-3:before{width:300px;height:300px;right:-125px;top:-135px;border-radius:50%;border:1px solid rgba(105,88,255,.3);box-shadow:0 0 0 34px rgba(81,59,255,.035),0 0 0 70px rgba(0,210,255,.018)}.fc-theme-arabic-3:after{content:"ع";left:26px;bottom:0;font-size:150px;color:#a95dff;opacity:.06}.fc-theme-arabic-3 .fc-theme-subject,.fc-theme-arabic-3 .fc-theme-design{background:rgba(14,14,40,.75);border:1px solid rgba(128,88,255,.7);color:#ded8ff;box-shadow:0 0 14px rgba(88,71,255,.16)}.fc-theme-arabic-3 .fc-theme-subject i{background:linear-gradient(135deg,#5c28e8,#008ee6);color:#fff}.fc-theme-arabic-3 .side{background:linear-gradient(135deg,#6f34ff,#00aee8);color:#fff;box-shadow:0 0 20px rgba(89,77,255,.35)}.fc-theme-arabic-3.revealed{border-color:#22d8c7;background:radial-gradient(circle at 78% 14%,rgba(70,38,229,.28),transparent 28%),radial-gradient(circle at 12% 82%,rgba(20,221,164,.25),transparent 31%),linear-gradient(145deg,#0b1424,#071412 65%,#070710)}

/* زبان انگلیسی — طرح 1: bold black/yellow energy */
.fc-theme-english-1{border:1px solid #e8b91e;background:linear-gradient(156deg,transparent 0 64%,rgba(255,198,0,.14) 64% 67%,transparent 67%),linear-gradient(23deg,transparent 0 15%,rgba(255,196,0,.08) 15% 18%,transparent 18%),linear-gradient(145deg,#111214,#060708 72%);box-shadow:0 28px 82px rgba(0,0,0,.54),inset 0 1px 0 rgba(255,255,255,.05)}.fc-theme-english-1:before{width:330px;height:95px;right:-60px;top:58px;background:repeating-linear-gradient(-12deg,rgba(255,196,0,.9) 0 8px,transparent 8px 19px);opacity:.09;transform:rotate(-8deg)}.fc-theme-english-1:after{content:"ABC";left:25px;bottom:20px;font:bold 96px/1 Arial,sans-serif;color:#f2c026;opacity:.045;transform:rotate(-8deg)}.fc-theme-english-1 .fc-theme-subject,.fc-theme-english-1 .fc-theme-design{background:#151515;border:1px solid #695714;color:#f7cf42}.fc-theme-english-1 .fc-theme-subject i{background:#f2c329;color:#111;font-family:Arial,sans-serif}.fc-theme-english-1 .side{background:#f2c329;color:#111}.fc-theme-english-1 strong{font-family:Tahoma,Arial,sans-serif}.fc-theme-english-1.revealed{border-color:#e6bf38;background:linear-gradient(156deg,transparent 0 64%,rgba(255,198,0,.10) 64% 67%,transparent 67%),radial-gradient(circle at 78% 20%,rgba(63,155,101,.12),transparent 25%),linear-gradient(145deg,#111512,#060807 72%)}

/* ریاضی — طرح 4: notebook / school paper */
.fc-theme-math-4{color:#17202b;border:1px solid #b4a17d;background-color:#f8f1df;background-image:linear-gradient(90deg,transparent 0 11%,rgba(220,94,94,.24) 11% 11.35%,transparent 11.35%),repeating-linear-gradient(0deg,rgba(83,144,194,.15) 0 1px,transparent 1px 31px),linear-gradient(145deg,#fffaf0,#efe3c8);box-shadow:0 24px 68px rgba(0,0,0,.42),inset 0 0 28px rgba(105,83,47,.08)}.fc-theme-math-4:before{width:34px;top:0;bottom:0;right:18px;background:radial-gradient(circle,#6d6250 0 3px,transparent 4px) center 20px/20px 42px repeat-y;opacity:.75}.fc-theme-math-4:after{content:"∑  π  x²";left:28px;bottom:20px;font:700 58px/1 Georgia,serif;color:#315c85;opacity:.065;transform:rotate(-5deg)}.fc-theme-math-4 .fc-theme-subject,.fc-theme-math-4 .fc-theme-design{background:rgba(255,250,240,.84);border:1px solid #bba679;color:#313846}.fc-theme-math-4 .fc-theme-subject i{background:#dceaf6;color:#244b70}.fc-theme-math-4 .side{background:#f1c44e;color:#2a2417;box-shadow:0 3px 0 rgba(136,94,18,.12)}.fc-theme-math-4 strong{color:#17202b}.fc-theme-math-4 small{color:#62665f}.fc-theme-math-4.revealed{border-color:#8ca88d;background-color:#f4f0df;background-image:linear-gradient(90deg,transparent 0 11%,rgba(220,94,94,.20) 11% 11.35%,transparent 11.35%),repeating-linear-gradient(0deg,rgba(83,144,194,.14) 0 1px,transparent 1px 31px),linear-gradient(145deg,#f6fbef,#ece4c8)}

/* آمار و احتمال — طرح 3: glass neon blue/purple */
.fc-theme-stats-3{border:1px solid rgba(91,196,255,.85);background:radial-gradient(circle at 20% 18%,rgba(0,198,255,.24),transparent 24%),radial-gradient(circle at 83% 76%,rgba(151,58,255,.30),transparent 29%),linear-gradient(145deg,#0a1730,#0b0d25 58%,#120b29);box-shadow:0 0 0 1px rgba(154,71,255,.24),0 0 44px rgba(61,130,255,.24),0 28px 86px rgba(0,0,0,.5)}.fc-theme-stats-3:before{inset:18px;border-radius:22px;border:1px solid rgba(255,255,255,.13);background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.01));backdrop-filter:blur(8px)}.fc-theme-stats-3:after{content:"▥";right:28px;bottom:8px;font-size:140px;color:#6fe2ff;opacity:.045}.fc-theme-stats-3 .fc-theme-subject,.fc-theme-stats-3 .fc-theme-design{background:rgba(18,31,69,.62);border:1px solid rgba(102,174,255,.55);color:#d9efff;backdrop-filter:blur(10px)}.fc-theme-stats-3 .fc-theme-subject i{background:linear-gradient(135deg,#00c8f0,#8654ff);color:#fff}.fc-theme-stats-3 .side{background:linear-gradient(135deg,#00bce8,#8054ff);color:#fff;box-shadow:0 0 20px rgba(56,153,255,.32)}.fc-theme-stats-3.revealed{border-color:#55e0cf;background:radial-gradient(circle at 20% 18%,rgba(0,210,180,.21),transparent 24%),radial-gradient(circle at 83% 76%,rgba(119,58,255,.26),transparent 29%),linear-gradient(145deg,#0a1930,#091521 58%,#100b26)}

@media(max-width:620px){.fc-theme-meta{margin-bottom:15px;align-items:center}.fc-theme-subject,.fc-theme-design{font-size:9px;padding:6px 8px}.fc-theme-subject i{width:19px;height:19px}.fc-theme-persian-1:before,.fc-theme-stats-3:before{inset:9px}.fc-theme-math-4:before{right:8px;opacity:.45}.fc-card.fc-theme-math-4{padding-left:24px;padding-right:30px}}

/* V18.20.4 — mobile viewport safety for approved flashcard designs */
html,body{max-width:100%;overflow-x:visible}.fc-review-view,.fc-card,.fc-card-inner{min-width:0;max-width:100%}.fc-card-inner{width:100%}.fc-card strong,.fc-card small,.fc-theme-subject,.fc-theme-design{overflow-wrap:anywhere;word-break:normal}
@media(max-width:620px){
  .fc-shell{width:100%;max-width:100%;padding-left:10px;padding-right:10px;overflow-x:clip}
  .fc-review-view{width:100%;max-width:100%;margin:0;overflow:visible}
  .fc-review-head,.fc-review-tools{max-width:100%;min-width:0}
  .fc-card{width:100%;max-width:100%;min-width:0;min-height:clamp(300px,50svh,420px);padding:clamp(15px,4.2vw,22px);border-radius:22px;transform:none!important}
  .fc-card-inner{width:100%;max-width:100%;min-width:0;margin:0 auto}
  .fc-theme-meta{width:100%;max-width:100%;min-width:0;margin:0 auto 14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px}
  .fc-theme-subject,.fc-theme-design{max-width:100%;min-width:0;white-space:normal;text-align:center;line-height:1.45}
  .fc-card .side{max-width:100%;white-space:normal;text-align:center}
  .fc-card strong{width:100%;max-width:100%;margin:14px auto;font-size:clamp(17px,5.15vw,20px);line-height:1.85;padding-inline:2px}
  .fc-card small{display:block;width:100%;max-width:100%;line-height:1.75}
  .fc-ratings{position:static;bottom:auto;width:100%;max-width:100%;grid-template-columns:1fr;gap:7px;margin-top:10px}
  .fc-ratings button{width:100%;min-width:0;padding:12px 10px}
  .fc-theme-science-1:after{right:12px;font-size:90px}
  .fc-theme-persian-1:after{left:10px;font-size:88px}
  .fc-theme-arabic-3:after{left:10px;font-size:108px}
  .fc-theme-english-1:after{left:10px;font-size:70px}
  .fc-theme-math-4:after{left:12px;font-size:40px}
  .fc-theme-stats-3:after{right:10px;font-size:96px}
  .fc-card.fc-theme-math-4{padding-left:20px;padding-right:27px}
}
@media(max-width:360px){
  .fc-shell{padding-left:7px;padding-right:7px}
  .fc-card{padding:14px 13px;border-radius:19px;min-height:clamp(285px,48svh,380px)}
  .fc-theme-meta{margin-bottom:12px;gap:5px}
  .fc-theme-subject,.fc-theme-design{font-size:8.5px;padding:5px 7px}
  .fc-card strong{font-size:clamp(16px,5vw,18px);line-height:1.8;margin:12px auto}
  .fc-card.fc-theme-math-4{padding-left:16px;padding-right:24px}
}

/* V18.20.4 — never crop the approved wide design previews */
.fc-subject-cover.full-design{height:auto!important;aspect-ratio:auto!important;background:#090b10;display:block;overflow:hidden}.fc-subject-cover.full-design img{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important;display:block!important}
@media(max-width:620px){.fc-subject-cover.full-design{height:auto!important;aspect-ratio:auto!important}.fc-subject-cover.full-design img{width:100%!important;height:auto!important;object-fit:contain!important}}

/* V18.20.5 — all legacy + new flashcard designs preserve full artwork on mobile */

/* V18.26 formula hub + universal no-crop flashcard artwork */
.fc-formula-section{margin:8px 0 24px;padding:16px;border:1px solid rgba(212,175,55,.2);border-radius:22px;background:linear-gradient(145deg,rgba(212,175,55,.055),rgba(255,255,255,.015))}.fc-formula-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fc-formula-hub{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:13px;align-items:center;text-align:right;padding:18px;border:1px solid #2b3039;border-radius:19px;background:#10141a;color:#fff;cursor:pointer}.fc-formula-hub>span{font-size:31px}.fc-formula-hub small{display:block;color:#d8bb58}.fc-formula-hub strong{display:block;font-size:18px;margin:3px 0}.fc-formula-hub p{margin:0;color:#8f97a4}.fc-formula-hub>b{color:#e5c75f;white-space:nowrap}.fc-formula-hub.physics{border-color:rgba(78,153,255,.28)}.fc-formula-hub.math{border-color:rgba(160,115,255,.25)}.fc-formula-track-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.fc-formula-track{min-width:0;text-align:right;border:1px solid #292e37;border-radius:18px;padding:16px;background:linear-gradient(145deg,#13171e,#0d1015);color:#fff;cursor:pointer}.fc-formula-track>span{display:inline-flex;padding:5px 9px;border-radius:999px;background:#1d1a0f;color:#f0cf68;font-size:10px}.fc-formula-track strong{display:block;font-size:16px;margin:10px 0 5px;line-height:1.7}.fc-formula-track p{margin:0;color:#9299a5;font-size:11px}.fc-formula-track>div{display:flex;gap:6px;margin-top:10px}.fc-formula-track em{font-style:normal;padding:5px 7px;border:1px solid #282d35;border-radius:9px;color:#a9b0ba;font-size:9px}.fc-subject-cover,.fc-subject-cover.full-design{display:grid!important;place-items:center!important;overflow:hidden!important}.fc-subject-cover img,.fc-subject-cover.full-design img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;display:block!important}@media(max-width:900px){.fc-formula-track-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.fc-formula-hub-grid,.fc-formula-track-grid{grid-template-columns:1fr}.fc-formula-hub{grid-template-columns:auto minmax(0,1fr)}.fc-formula-hub>b{grid-column:1/-1}.fc-formula-section{padding:12px}.fc-subject-cover{height:150px!important}}


/* V18.28.5 — fixed study batches, maximum 20 cards per session */
.fc-batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.fc-batch-item{min-width:0;border:1px solid #292e37;border-radius:13px;background:#0c0f13;padding:10px;display:flex;justify-content:space-between;align-items:center;gap:9px}.fc-batch-item>div:first-child{min-width:0}.fc-batch-item b{display:block;color:#f0d06a;font-size:12px}.fc-batch-item small{display:block;color:#858d99;font-size:9px;margin-top:3px}.fc-batch-item>div:last-child{display:flex;gap:5px;flex-shrink:0}.fc-batch-item button{border-radius:9px;padding:7px 9px;font-size:9px;font-weight:800;cursor:pointer}.fc-formula-track{cursor:default}.fc-formula-track>div.fc-formula-batches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:12px}.fc-formula-batches button{min-width:0;border:1px solid #343944;border-radius:10px;padding:8px;background:#0b0e13;color:#f2d36f;cursor:pointer;font-weight:800}.fc-formula-batches button small{display:block;color:#9299a5;font-weight:400;margin-top:2px}.fc-locked-panel{min-height:48vh;display:flex;flex-direction:column;justify-content:center;align-items:center}
@media(max-width:620px){.fc-batch-grid,.fc-formula-track>div.fc-formula-batches{grid-template-columns:1fr}.fc-batch-item{align-items:flex-start;flex-direction:column}.fc-batch-item>div:last-child{width:100%}.fc-batch-item button{flex:1}}

/* V18.28.6 — admin-only student flashcard preview */
.fc-admin-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0 18px;padding:14px 16px;border:1px solid rgba(212,175,55,.42);border-radius:16px;background:linear-gradient(135deg,rgba(212,175,55,.12),rgba(255,255,255,.025));box-shadow:0 12px 34px rgba(0,0,0,.18)}.fc-admin-preview-banner[hidden]{display:none!important}.fc-admin-preview-banner>div{min-width:0}.fc-admin-preview-banner b{display:block;color:#f2d16b;margin-bottom:4px}.fc-admin-preview-banner span{display:block;color:#aeb5bf;font-size:11px;line-height:1.8}.fc-admin-preview-banner label{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#d5d9df;font-size:11px}.fc-admin-preview-banner select{min-width:110px;border:1px solid #343a45;border-radius:10px;background:#0c0f14;color:#fff;padding:8px 10px}.fc-admin-preview-mode .fc-topbar{outline:1px solid rgba(212,175,55,.14)}
@media(max-width:620px){.fc-admin-preview-banner{align-items:stretch;flex-direction:column}.fc-admin-preview-banner label{justify-content:space-between}.fc-admin-preview-banner select{flex:1;max-width:180px}}
