/* Muklib quiz scope builder + chapter cards — v5.0.7 */
.quiz-scope-page .quiz-detail-panel-scope{grid-template-columns:minmax(0,1fr) 430px;align-items:stretch}
.quiz-scope-page .quiz-start-card-pro{justify-content:flex-start;text-align:right;padding:18px;overflow:hidden;position:relative}
.quiz-scope-page .quiz-start-card-pro::before{content:"";position:absolute;inset:-130px auto auto -120px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(132,94,194,.18),transparent 68%);pointer-events:none}
.quiz-scope-page .quiz-start-card-pro>*{position:relative;z-index:1}
.quiz-scope-page .quiz-start-stats{margin-bottom:12px}
.quiz-scope-page .quiz-start-stats div{padding:10px 6px;border:1px solid color-mix(in srgb,var(--line) 75%,transparent);background:linear-gradient(145deg,var(--soft),var(--paper))}
.quiz-scope-page .quiz-start-stats strong{font-size:18px;line-height:1.2}
.quiz-scope-page .quiz-start-stats span{font-size:11px;margin-top:3px}
.quiz-scope-page .quiz-scope-promise{display:flex;align-items:center;gap:12px;margin-top:22px;padding:14px 15px;border:1px solid color-mix(in srgb,#7957b2 25%,var(--line));border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,#7957b2 8%,var(--paper)),color-mix(in srgb,#1aa7a1 7%,var(--paper)))}
.quiz-scope-page .quiz-scope-promise>span{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;background:linear-gradient(135deg,#7957b2,#4a7cc7);color:#fff;box-shadow:0 10px 24px rgba(87,74,176,.22)}
.quiz-scope-page .quiz-scope-promise svg{width:22px;height:22px}
.quiz-scope-page .quiz-scope-promise strong{display:block;font-size:14px}
.quiz-scope-page .quiz-scope-promise p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.75}
.quiz-scope-builder{display:grid;gap:11px}
.quiz-scope-builder-head{display:flex;align-items:end;justify-content:space-between;gap:10px}
.quiz-scope-builder-head>span{font-size:13px;font-weight:950;color:var(--ink)}
.quiz-scope-builder-head>small{font-size:10px!important;margin:0!important;color:var(--muted)}
.quiz-scope-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.quiz-scope-modes button{min-width:0;min-height:92px;padding:10px 7px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.quiz-scope-modes button::after{content:"";position:absolute;inset:auto -18px -25px auto;width:55px;height:55px;border-radius:50%;background:currentColor;opacity:.055;transition:transform .2s ease}
.quiz-scope-modes button:hover{transform:translateY(-2px);border-color:color-mix(in srgb,#7957b2 52%,var(--line))}
.quiz-scope-modes button.active{color:#5b3d96;border-color:#8161b9;background:linear-gradient(145deg,#f7f2ff,#eef7ff);box-shadow:0 9px 22px rgba(82,62,147,.13)}
.quiz-scope-modes button.active::before{content:"✓";position:absolute;top:7px;left:7px;width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:#6e4eaa;color:#fff;font-size:11px;font-weight:900}
.quiz-scope-modes button.active::after{transform:scale(1.45)}
.quiz-scope-modes i{width:29px;height:29px;display:grid;place-items:center;border-radius:10px;background:var(--soft);font-style:normal}
.quiz-scope-modes svg{width:17px;height:17px}
.quiz-scope-modes b{font-size:11px;white-space:nowrap}
.quiz-scope-modes small{font-size:9px!important;margin:0!important;line-height:1.4;color:var(--muted)}
.quiz-scope-config{display:grid;gap:8px;padding:11px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,var(--soft),color-mix(in srgb,var(--paper) 82%,#eff6ff))}
.quiz-scope-field{display:grid;gap:5px;text-align:right}
.quiz-scope-field>span{font-size:10px;font-weight:900;color:var(--muted)}
.quiz-scope-field select{width:100%;min-height:43px;border:1px solid color-mix(in srgb,#7957b2 22%,var(--line));border-radius:12px;background:var(--paper);color:var(--ink);padding:7px 11px;font:inherit;font-size:12px;outline:none}
.quiz-scope-field select:focus{border-color:#7957b2;box-shadow:0 0 0 3px rgba(121,87,178,.12)}
.quiz-scope-live{display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border-radius:17px;background:linear-gradient(135deg,#102f50,#176f91);color:#fff;box-shadow:0 13px 28px rgba(13,53,87,.19)}
.quiz-scope-live-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.17);font-size:15px;font-weight:950}
.quiz-scope-live div{min-width:0}
.quiz-scope-live small{display:block!important;margin:0!important;color:rgba(255,255,255,.68)!important;font-size:9px!important}
.quiz-scope-live strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;margin-top:1px}
.quiz-scope-live p{margin:2px 0 0;color:rgba(255,255,255,.74);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quiz-scope-live>b{min-width:37px;height:37px;padding:0 7px;display:grid;place-items:center;border-radius:12px;background:#fff;color:#103a5a;font-size:15px;box-shadow:0 5px 14px rgba(0,0,0,.12)}
.quiz-start-button-glow{min-height:48px;border-radius:15px;background:linear-gradient(135deg,#7957b2,#376fc1 52%,#128f91);box-shadow:0 12px 27px rgba(70,83,175,.25);display:flex;align-items:center;justify-content:center;gap:8px;transition:transform .18s ease,box-shadow .18s ease}
.quiz-start-button-glow:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(70,83,175,.31)}
.quiz-start-button-glow span{font-size:20px;line-height:1}
.quiz-active-attempt-card{display:grid;gap:5px;padding:14px;border:1px solid #ecdca8;border-radius:18px;background:linear-gradient(145deg,#fffaf0,#fff)}
.quiz-active-attempt-card>span{font-size:10px;color:#92631b;font-weight:900}
.quiz-active-attempt-card>strong{font-size:13px;margin-bottom:5px}
.quiz-chapter-launcher{padding:42px 0 34px;position:relative}
.quiz-chapter-launcher::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 88% 4%,rgba(53,117,222,.07),transparent 28%),radial-gradient(circle at 10% 82%,rgba(20,170,153,.06),transparent 30%)}
.quiz-chapter-launcher>.container{position:relative;z-index:1}
.quiz-chapter-section-head{display:flex;align-items:flex-start;gap:14px;margin:0 0 24px;padding-inline:6px}
.quiz-chapter-section-icon{width:54px;height:54px;display:grid;place-items:center;flex:0 0 auto;border:1px solid color-mix(in srgb,#347de0 22%,var(--line));border-radius:17px;background:linear-gradient(145deg,color-mix(in srgb,#357de0 13%,var(--paper)),color-mix(in srgb,#22aa9d 11%,var(--paper)));color:#2773c8;box-shadow:0 10px 28px rgba(38,96,164,.12)}
.quiz-chapter-section-icon svg{width:27px;height:27px}
.quiz-chapter-section-head>div{min-width:0}
.quiz-chapter-section-head>div>span{display:block;margin:0 0 2px;color:#298a82;font-size:12px;font-weight:900}
.quiz-chapter-section-head h2{margin:0;font-size:clamp(24px,2.25vw,34px);line-height:1.45;letter-spacing:-.03em}
.quiz-chapter-section-head p{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.9}
.quiz-syllabus-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.quiz-syllabus-card-grid>.quiz-chapter-launch-card:last-child:nth-child(odd){grid-column:1/-1;width:calc(50% - 10px);justify-self:center}
.quiz-syllabus-public-grid .quiz-chapter-launch-card{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;border:1px solid color-mix(in srgb,#8aa7b8 25%,var(--line));border-radius:28px;background:linear-gradient(160deg,color-mix(in srgb,var(--paper) 96%,#f5faff),var(--paper));box-shadow:0 16px 44px rgba(28,66,92,.075);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.quiz-syllabus-public-grid .quiz-chapter-launch-card:hover{transform:translateY(-4px);border-color:color-mix(in srgb,#3986dc 38%,var(--line));box-shadow:0 23px 54px rgba(28,76,110,.13)}
.quiz-chapter-card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 26px 0;background:none!important;border:0!important}
.quiz-chapter-badge,.quiz-question-count{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:45px;padding:9px 14px!important;border-radius:14px;background:color-mix(in srgb,#377fe0 6%,var(--paper))!important;border:1px solid color-mix(in srgb,#377fe0 18%,var(--line));color:#29425c!important;font-size:13px!important;font-weight:800!important;line-height:1!important;white-space:nowrap}
.quiz-chapter-badge svg,.quiz-question-count svg{width:19px;height:19px}
.quiz-chapter-badge svg{color:#3275d1}
.quiz-question-count{direction:rtl;background:color-mix(in srgb,#1cae9d 7%,var(--paper))!important;border-color:color-mix(in srgb,#1cae9d 18%,var(--line));color:#176e68!important}
.quiz-question-count b{font-size:18px;color:#135b57}
.quiz-question-count svg{color:#4fb7ac}
.quiz-chapter-card-body{display:flex;flex:1;flex-direction:column;padding:15px 26px 0;text-align:center}
.quiz-chapter-card-body h3{margin:0;color:var(--ink);font-size:clamp(22px,2vw,29px);font-weight:950;line-height:1.45;letter-spacing:-.025em;overflow-wrap:anywhere}
.quiz-chapter-card-body>p{min-height:31px;margin:7px 0 17px;color:var(--muted);font-size:13px;line-height:1.85}
.quiz-chapter-launch-actions{display:grid;gap:11px;margin-top:auto;padding:0}
.quiz-chapter-start{width:100%;min-height:56px;border:0;border-radius:16px;background:linear-gradient(105deg,#3675e7 0%,#2787cf 48%,#22ad9d 100%);color:#fff!important;text-decoration:none;font:inherit;font-size:15px;font-weight:950;display:flex;align-items:center;justify-content:center;gap:13px;padding:0 17px;cursor:pointer;box-shadow:0 13px 29px rgba(36,117,188,.24);position:relative;overflow:hidden;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.quiz-chapter-start::before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 15%,rgba(255,255,255,.22) 45%,transparent 72%);transform:translateX(115%);transition:transform .55s ease}
.quiz-chapter-start:hover{transform:translateY(-2px);filter:saturate(1.08);box-shadow:0 17px 34px rgba(36,117,188,.3)}
.quiz-chapter-start:hover::before{transform:translateX(-115%)}
.quiz-chapter-start>span,.quiz-chapter-start>b{position:relative;z-index:1}
.quiz-chapter-start b{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.13);font-size:20px;line-height:1}
.quiz-chapter-start.is-disabled{cursor:not-allowed;filter:grayscale(.3);opacity:.65;box-shadow:none}
.quiz-chapter-start.is-disabled:hover{transform:none}
.quiz-chapter-start:focus-visible,.quiz-chapter-topics summary:focus-visible,.quiz-topic-launch-list button:focus-visible,.quiz-chapter-card-footer a:focus-visible{outline:3px solid color-mix(in srgb,#2e82d2 55%,white);outline-offset:3px}
.quiz-chapter-topics{border:1px solid color-mix(in srgb,#3183d7 13%,var(--line));border-radius:15px;background:color-mix(in srgb,#337fd4 3%,var(--paper));overflow:hidden;text-align:right}
.quiz-chapter-topics summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:45px;padding:9px 13px;cursor:pointer;list-style:none;color:#486175;font-size:12px;font-weight:850}
.quiz-chapter-topics summary::-webkit-details-marker{display:none}
.quiz-chapter-topics summary>span{display:inline-flex;align-items:center;gap:7px}
.quiz-chapter-topics summary svg{width:17px;height:17px;color:#3684d4}
.quiz-chapter-topics summary>b{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:var(--paper);border:1px solid var(--line);transition:transform .18s ease}
.quiz-chapter-topics[open] summary{border-bottom:1px solid var(--line)}
.quiz-chapter-topics[open] summary>b{transform:rotate(180deg)}
.quiz-topic-launch-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px!important;margin:0!important}
.quiz-topic-launch-list button,.quiz-topic-preview{width:100%;min-width:0;min-height:42px;border:1px solid var(--line);border-radius:11px;background:var(--paper);color:var(--ink);font:inherit;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:7px 10px;cursor:pointer;text-align:right;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.quiz-topic-launch-list button:hover{border-color:#4388d6;background:color-mix(in srgb,#4388d6 5%,var(--paper));transform:translateY(-1px)}
.quiz-topic-launch-list button span,.quiz-topic-preview>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:780}
.quiz-topic-launch-list button b,.quiz-topic-preview>b{min-width:28px;height:25px;display:grid;place-items:center;border-radius:8px;background:var(--soft);font-size:10px}
.quiz-topic-preview{cursor:default;opacity:.72}
.quiz-chapter-card-footer{display:flex;align-items:center;justify-content:center;gap:22px;min-height:67px;margin:17px 26px 0;padding:0 4px;border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent)}
.quiz-chapter-card-footer>a,.quiz-chapter-card-footer>span{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 3px;background:none!important;color:#324a5f;font-size:12px;font-weight:850;text-decoration:none;transition:color .16s ease,transform .16s ease}
.quiz-chapter-card-footer>a:hover{color:#2479c4;transform:translateY(-1px)}
.quiz-chapter-card-footer svg{width:18px;height:18px;color:#708598}
.quiz-chapter-card-footer>a:hover svg{color:#2479c4}
.quiz-chapter-card-footer>i{width:1px;height:22px;background:var(--line)}
.quiz-chapter-card-footer .is-disabled{cursor:not-allowed;opacity:.48}
.quiz-history-scope{display:block;width:max-content;max-width:100%;padding:4px 7px;border-radius:999px;background:color-mix(in srgb,#7957b2 9%,var(--paper));color:#65459d;font-size:8px;font-style:normal;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quiz-result-scope-badge{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;margin:8px 0 0;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-size:10px;font-weight:900;color:inherit}
.quiz-result-scope-badge span{width:20px;height:20px;display:grid;place-items:center;border-radius:7px;background:rgba(255,255,255,.14)}
.quiz-result-scope-card{margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,#7957b2 7%,var(--paper)),color-mix(in srgb,#1aa7a1 6%,var(--paper)));display:flex;align-items:center;justify-content:space-between;gap:12px}
.quiz-result-scope-card div{min-width:0}
.quiz-result-scope-card small{display:block;color:var(--muted);font-size:9px}
.quiz-result-scope-card strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quiz-result-scope-card a{flex:0 0 auto;padding:8px 11px;border-radius:11px;background:#173e5f;color:#fff;font-size:9px;font-weight:900}
html.dark .quiz-scope-modes button.active,body.dark .quiz-scope-modes button.active{background:linear-gradient(145deg,rgba(121,87,178,.2),rgba(42,103,137,.18));color:#d8c6ff}
html.dark .quiz-topic-launch-list button:hover,body.dark .quiz-topic-launch-list button:hover{background:rgba(121,87,178,.12)}
html.dark .quiz-syllabus-public-grid .quiz-chapter-launch-card,body.dark .quiz-syllabus-public-grid .quiz-chapter-launch-card{background:linear-gradient(160deg,rgba(25,38,53,.98),rgba(19,30,43,.98));border-color:rgba(128,164,189,.2)}
html.dark .quiz-chapter-badge,body.dark .quiz-chapter-badge{color:#c9dcf0!important;background:rgba(59,125,211,.11)!important}
html.dark .quiz-question-count,body.dark .quiz-question-count{color:#8ce2d6!important;background:rgba(30,173,157,.1)!important}
html.dark .quiz-question-count b,body.dark .quiz-question-count b{color:#9ce9df}
html.dark .quiz-chapter-card-footer>a,html.dark .quiz-chapter-card-footer>span,body.dark .quiz-chapter-card-footer>a,body.dark .quiz-chapter-card-footer>span{color:#c4d1dd}
html.dark .quiz-history-scope,body.dark .quiz-history-scope{color:#d7c1ff}
@media(max-width:1050px){.quiz-scope-page .quiz-detail-panel-scope{grid-template-columns:minmax(0,1fr) 390px}}
@media(max-width:900px){
  .quiz-scope-page .quiz-detail-panel-scope{grid-template-columns:1fr}
  .quiz-scope-page .quiz-start-card-pro{max-width:none}
}
@media(max-width:700px){
  .quiz-scope-page .quiz-detail-hero{padding-top:15px}
  .quiz-scope-page .quiz-detail-main{padding:20px}
  .quiz-scope-page .quiz-start-card-pro{padding:14px;border-radius:22px}
  .quiz-scope-modes button{min-height:82px;padding:8px 4px}
  .quiz-scope-modes b{font-size:10px}
  .quiz-scope-builder-head{align-items:start;flex-direction:column;gap:2px}
  .quiz-scope-live{grid-template-columns:39px minmax(0,1fr) auto;padding:10px}
  .quiz-scope-live-icon{width:39px;height:39px}
  .quiz-chapter-launcher{padding:29px 0 24px}
  .quiz-chapter-section-head{margin-bottom:17px;padding-inline:2px;gap:10px}
  .quiz-chapter-section-icon{width:46px;height:46px;border-radius:14px}
  .quiz-chapter-section-icon svg{width:23px;height:23px}
  .quiz-chapter-section-head h2{font-size:23px}
  .quiz-chapter-section-head p{font-size:12px;line-height:1.7}
  .quiz-syllabus-card-grid{grid-template-columns:1fr;gap:14px}
  .quiz-syllabus-card-grid>.quiz-chapter-launch-card:last-child:nth-child(odd){grid-column:auto;width:100%}
  .quiz-syllabus-public-grid .quiz-chapter-launch-card{border-radius:22px}
  .quiz-chapter-card-meta{padding:17px 17px 0}
  .quiz-chapter-badge,.quiz-question-count{min-height:40px;padding:8px 11px!important;border-radius:12px;font-size:11px!important}
  .quiz-question-count b{font-size:16px}
  .quiz-chapter-card-body{padding:13px 17px 0}
  .quiz-chapter-card-body h3{font-size:22px}
  .quiz-chapter-card-body>p{margin:5px 0 13px;font-size:12px;min-height:0}
  .quiz-chapter-start{min-height:52px;border-radius:14px;font-size:14px}
  .quiz-topic-launch-list{grid-template-columns:1fr}
  .quiz-chapter-card-footer{min-height:59px;margin:14px 17px 0;gap:16px}
  .quiz-chapter-card-footer>a,.quiz-chapter-card-footer>span{font-size:11px}
  .quiz-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  .quiz-scope-modes{gap:5px}
  .quiz-scope-modes button{min-height:78px;border-radius:14px}
  .quiz-scope-modes i{width:26px;height:26px}
  .quiz-scope-modes small{font-size:8px!important}
  .quiz-scope-live p{display:none}
  .quiz-chapter-section-icon{display:none}
  .quiz-chapter-section-head h2{font-size:21px}
  .quiz-chapter-section-head p{font-size:11px}
  .quiz-chapter-card-meta{padding:14px 14px 0;gap:7px}
  .quiz-chapter-badge,.quiz-question-count{min-height:37px;padding:7px 9px!important;font-size:10px!important}
  .quiz-chapter-badge svg,.quiz-question-count svg{width:16px;height:16px}
  .quiz-chapter-card-body{padding:11px 14px 0}
  .quiz-chapter-card-body h3{font-size:20px}
  .quiz-chapter-card-footer{margin-inline:14px;gap:11px}
  .quiz-chapter-card-footer>a,.quiz-chapter-card-footer>span{gap:5px;font-size:10px}
  .quiz-chapter-card-footer svg{width:16px;height:16px}
  .quiz-history-grid{grid-template-columns:1fr}
}
