:root{
    --ink:#0c1a2e; --ink-2:#33465f; --muted:#68788f; --faint:#93a2b8;
    --line:#e5eaf2; --soft:#f4f7fc; --soft-2:#eef3fb;
    --blue:#0f3576; --blue-2:#1b53c8; --blue-soft:#eaf0fc;
    --amber:#8a4c00; --amber-bg:#fff5e0; --amber-line:#f2d396;
    --green:#0d7a4a; --green-bg:#e8f7ef;
    --red:#c22f43; --red-bg:#fdecef;
    --radius:18px;
    --shadow:0 1px 2px rgba(12,26,46,.05), 0 14px 34px -22px rgba(12,26,46,.38);
  }
  *,*::before,*::after{box-sizing:border-box}
  html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
  body{
    margin:0;background:#fff;color:var(--ink);line-height:1.62;letter-spacing:-.01em;
    font-family:"Pretendard Variable",Pretendard,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR","Noto Sans CJK KR","Helvetica Neue",Arial,"Liberation Sans","Segoe UI",sans-serif;
    word-break:keep-all;overflow-wrap:anywhere;
    -webkit-font-smoothing:antialiased;
  }
  body::before{
    content:"";position:fixed;inset:0 0 auto 0;height:420px;pointer-events:none;z-index:-1;
    background:
      radial-gradient(680px 320px at 78% -8%, rgba(27,83,200,.10), transparent 70%),
      radial-gradient(520px 280px at 8% -4%, rgba(27,83,200,.07), transparent 72%);
  }
  button{font:inherit;color:inherit}
  h1,h2,h3,h4,p,ul{margin:0}
  ul{padding:0}
  a{color:var(--blue-2)}
  :focus-visible{outline:2px solid var(--blue-2);outline-offset:2px;border-radius:8px}

  /* ---------- top bar ---------- */
  .topbar{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid var(--line)}
  .topbar-inner{max-width:1120px;margin:0 auto;padding:9px 20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
  .brand{display:flex;align-items:center;gap:9px;background:none;border:0;padding:0;cursor:pointer;text-align:left}
  .brand-mark{width:32px;height:32px;border-radius:10px;background:linear-gradient(150deg,#245fdb,#0f3576);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:800;box-shadow:0 6px 14px -8px rgba(15,53,118,.9)}
  .brand-txt{font-weight:800;font-size:15px;letter-spacing:-.03em;line-height:1.15}
  .brand-txt small{display:block;font-size:10.5px;font-weight:600;color:var(--muted);letter-spacing:0}
  .stats{margin-left:auto;display:flex;align-items:center;gap:6px}
  .stat{display:flex;align-items:baseline;gap:5px;padding:5px 10px;border-radius:10px;background:var(--soft);border:1px solid var(--line)}
  .stat b{font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
  .stat span{font-size:10.5px;color:var(--muted);font-weight:600}
  .stat.is-note b{color:var(--red)}
  .icon-btn{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer;color:#556a88;font-size:14px}
  .icon-btn:hover{background:var(--soft);color:var(--blue)}
  .topbar-progress{height:2px;background:#eef3fa;overflow:hidden}
  .topbar-progress i{display:block;height:100%;width:0%;background:linear-gradient(90deg,#245fdb,#5b8bf0);transition:width .35s ease}

  /* ---------- hero ---------- */
  .hero{max-width:1120px;margin:0 auto;padding:46px 20px 10px;display:grid;grid-template-columns:1.3fr .9fr;gap:34px;align-items:center}
  @media (max-width:900px){.hero{grid-template-columns:1fr;gap:22px;padding-top:30px}}
  .eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:var(--blue-2);background:var(--blue-soft);border:1px solid #d8e4fb;padding:5px 11px;border-radius:999px}
  .hero h1{margin:14px 0 12px;font-size:clamp(26px,4.7vw,42px);line-height:1.24;font-weight:800;letter-spacing:-.04em}
  .hero h1 em{font-style:normal;color:var(--blue-2)}
  .lead{margin:0;color:var(--ink-2);font-size:15px;max-width:560px}
  .hero-actions{display:flex;gap:9px;margin-top:20px;flex-wrap:wrap}
  .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:11px;padding:11px 18px;font-size:14px;font-weight:700;cursor:pointer;border:1px solid transparent;transition:.15s;letter-spacing:-.02em}
  .btn-primary{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 12px 26px -16px rgba(15,53,118,.95)}
  .btn-primary:hover{background:#123f8c}
  .btn-ghost{background:#fff;border-color:#cfdaeb;color:var(--ink)}
  .btn-ghost:hover{border-color:#a9bfe0;background:#fafcff}
  .btn-sm{padding:8px 13px;font-size:12.5px;border-radius:9px}
  .hero-meta{display:flex;gap:14px;flex-wrap:wrap;margin-top:16px;font-size:12px;color:var(--muted)}
  .hero-meta span{display:inline-flex;align-items:center;gap:6px}
  .hero-meta i{width:4px;height:4px;border-radius:50%;background:#9bb2d4}

  .panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px 18px;box-shadow:var(--shadow)}
  .panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:4px}
  .panel-head h3{font-size:13px;font-weight:800}
  .panel-head span{font-size:11px;color:var(--faint)}
  .panel-sub{font-size:11.5px;color:var(--faint);margin-bottom:6px}
  .hrow{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px dashed #e8eef7;cursor:pointer;background:none;border-left:0;border-right:0;border-bottom:0;width:100%;text-align:left}
  .hrow:first-of-type{border-top:0}
  .hrow:hover .nm{color:var(--blue-2)}
  .hrow .ico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--soft);font-size:14px;flex:0 0 auto}
  .hrow .nm{flex:1;min-width:0;font-size:12.8px;font-weight:700;line-height:1.35}
  .hrow .nm small{display:block;font-weight:500;color:var(--muted);font-size:10.5px}
  .hrow .bar{width:56px;height:6px;border-radius:999px;background:#eaf0f8;overflow:hidden;flex:0 0 auto}
  .hrow .bar i{display:block;height:100%;background:var(--blue-2);border-radius:999px}
  .hrow .cnt{font-size:10.5px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:32px;text-align:right}

  /* ---------- subjects ---------- */
  .subjects{max-width:1120px;margin:0 auto;padding:16px 20px 0}
  .subject-scroll{display:flex;gap:9px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}
  .subject-scroll::-webkit-scrollbar{display:none}
  .subj{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:9px 13px;border-radius:14px;border:1px solid var(--line);background:#fff;cursor:pointer;text-align:left;transition:.15s;min-width:0}
  .subj:hover{border-color:#c5d5ee}
  .subj[aria-pressed="true"]{border-color:#b9cdf3;background:linear-gradient(180deg,#f8fbff,#eef4ff);box-shadow:0 0 0 3px rgba(33,89,214,.08)}
  .s-ico{width:33px;height:33px;border-radius:10px;display:grid;place-items:center;background:var(--soft);font-size:15px;flex:0 0 auto}
  .subj-txt b{display:block;font-size:13px;letter-spacing:-.02em;line-height:1.3}
  .subj-txt small{display:block;font-size:10.5px;color:var(--muted);line-height:1.4;white-space:nowrap}
  .s-meta{display:inline}
  @media (max-width:640px){.s-meta{display:none}}
  .s-prog{font-size:10.5px;color:var(--blue-2);font-weight:800;margin-left:2px;font-variant-numeric:tabular-nums}

  /* ---------- mode bar ---------- */
  .modebar-wrap{max-width:1120px;margin:0 auto;padding:16px 20px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
  .seg{display:inline-flex;background:#eef2f9;border:1px solid #e2e9f4;padding:4px;border-radius:12px;gap:2px;max-width:100%}
  .seg button{border:0;background:transparent;padding:8px 13px;border-radius:9px;font-size:12.8px;font-weight:700;color:#5a6c86;cursor:pointer;white-space:nowrap;transition:.12s}
  .seg button[aria-selected="true"]{background:#fff;color:var(--blue);box-shadow:0 1px 3px rgba(12,26,46,.13)}
  .seg .cnt{font-size:10px;font-weight:800;margin-left:3px;opacity:.6;font-variant-numeric:tabular-nums}
  .seg-note{font-size:11.5px;color:var(--faint)}
  @media (max-width:560px){
    .hero-actions .btn{flex:1 1 auto;justify-content:center}
    .modebar-wrap{padding-top:14px}
    .seg{width:100%}
    .seg button{flex:1;padding:9px 4px;font-size:12.3px}
    .seg-note{display:none}
  }
  @media (max-width:640px){
    .topbar-inner{padding:8px 14px;gap:8px}
    .brand-txt{font-size:14.5px}
    .brand-txt small{display:none}
    .stats{margin-left:auto;gap:4px}
    .stat{padding:4px 7px;gap:3px;border-radius:8px}
    .stat b{font-size:13px}
    .stat span{font-size:9.5px;white-space:nowrap}
    .icon-btn{width:32px;height:32px;flex:0 0 auto;font-size:13px}
    #view-book,#view-quiz,#view-note{scroll-margin-top:60px}
    .unit{scroll-margin-top:57px}
  }
  #view-book,#view-quiz,#view-note{scroll-margin-top:76px}

  /* ---------- layout ---------- */
  .wrap{max-width:1120px;margin:0 auto;padding:20px 20px 64px}
  .view-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:2px 0 14px;flex-wrap:wrap}
  .view-head h2{font-size:19px;letter-spacing:-.03em;font-weight:800;line-height:1.3}
  .view-head p{font-size:12px;color:var(--muted);margin-top:2px}

  .chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}
  .chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;font-size:12.3px;font-weight:700;color:#4d5f78;cursor:pointer;display:inline-flex;gap:6px;align-items:center;transition:.12s}
  .chip:hover{border-color:#c5d5ee}
  .chip[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:#fff}
  .chip .n{font-size:10.5px;opacity:.65;font-variant-numeric:tabular-nums}

  /* ---------- units ---------- */
  .unit{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow);overflow:hidden;margin-bottom:13px;scroll-margin-top:64px}
  .unit-head{display:flex;gap:11px;align-items:center;padding:14px 17px;border-bottom:1px solid #eef3fa;background:linear-gradient(180deg,#fbfdff,#fff)}
  .unit-no{width:33px;height:33px;border-radius:11px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-weight:800;font-size:12.5px;flex:0 0 auto;font-variant-numeric:tabular-nums}
  .unit-head h3{font-size:16px;letter-spacing:-.03em;font-weight:800;line-height:1.35}
  .unit-head .tags{display:flex;gap:4px;margin-top:4px;flex-wrap:wrap}
  .tag{font-size:10px;font-weight:800;padding:1px 6px;border-radius:5px;border:1px solid transparent;letter-spacing:-.01em}
  .tag.basic{background:#eef4ff;color:#28509b;border-color:#dbe6fb}
  .tag.freq{background:var(--amber-bg);color:var(--amber);border-color:var(--amber-line)}
  .tag.trap{background:#f5eefe;color:#6b3fa0;border-color:#e8dbfb}
  .unit-body{padding:2px 17px 15px}
  .block{padding:13px 0;border-top:1px dashed #eaf0f8}
  .block:first-child{border-top:0}
  .block-head{display:flex;align-items:center;gap:8px;margin-bottom:7px;font-size:12.3px;font-weight:800;letter-spacing:-.02em}
  .block-head .dot{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;font-size:11.5px;flex:0 0 auto}
  .b-basic .dot{background:#eaf0fc}
  .b-freq .dot{background:var(--amber-bg)}
  .b-trap .dot{background:#f3ecfe}
  .block-head .sub{font-weight:600;color:var(--faint);font-size:10.5px;margin-left:2px}
  .block ul{list-style:none;margin:0;display:grid;gap:5px}
  .b-basic li,.b-trap li{position:relative;padding-left:14px;font-size:14.1px;color:var(--ink-2)}
  .b-basic li::before{content:"";position:absolute;left:2px;top:.62em;width:4px;height:4px;border-radius:50%;background:#a8bcd9}
  .b-trap li{color:#4b3a5f}
  .b-trap li::before{content:"!";position:absolute;left:0;top:.05em;width:13px;height:13px;border-radius:50%;background:#efe2fd;color:#7645b3;font-size:9px;font-weight:800;display:grid;place-items:center;line-height:1}
  code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:#edf3fd;border:1px solid #d5e3f8;border-radius:5px;padding:1px 5px;color:#163d7a;font-weight:600;white-space:nowrap}
  .rate-row{display:flex;gap:9px;align-items:flex-start;padding:9px 11px;border:1px solid #f4e3bf;background:#fffdf7;border-radius:10px;margin:0 0 6px}
  .rate-row:last-child{margin-bottom:0}
  .rate{flex:0 0 auto;display:inline-flex;align-items:center;gap:3px;font-size:10.5px;font-weight:800;color:#8a4c00;background:#ffe9bd;border-radius:6px;padding:2px 6px;font-variant-numeric:tabular-nums;margin-top:1px}
  .rate-row p{font-size:13.7px;color:#4a3a20;line-height:1.55}
  .stars{font-style:normal;letter-spacing:-.5px;font-size:9.5px;opacity:.9;margin-left:1px}

  /* ---------- affiliate ---------- */
  .aff{border:1px solid #dbe5f5;border-radius:var(--radius);padding:16px 17px;background:linear-gradient(135deg,#f5f9ff,#fff 58%);display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-top:20px;box-shadow:var(--shadow)}
  .aff-cover{width:58px;height:78px;border-radius:7px;background:linear-gradient(155deg,#1b53c8,#0f3576);color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:7px;font-size:7.6px;font-weight:800;line-height:1.35;flex:0 0 auto;box-shadow:0 8px 16px -10px rgba(15,53,118,.9);letter-spacing:-.01em}
  .aff-cover b{font-size:9.5px;display:block}
  .aff-info{flex:1;min-width:190px}
  .aff-kicker{font-size:10.5px;font-weight:800;color:#7a6a45;background:#fff6e2;border:1px solid #efdcb4;border-radius:999px;padding:2px 8px;display:inline-block;margin-bottom:6px}
  .aff-info h3{font-size:14.5px;letter-spacing:-.03em;line-height:1.4;margin-bottom:3px}
  .aff-info p{font-size:11.5px;color:var(--muted)}
  .aff-stores{display:flex;gap:6px;margin-top:9px;flex-wrap:wrap;align-items:center}
  @media (max-width:480px){
    .aff{gap:12px;padding:14px;align-items:flex-start}
    .aff-cover{width:44px;height:60px;padding:6px;font-size:6.4px}
    .aff-cover b{font-size:8px}
    .aff-info{min-width:0}
    .aff-info h3{font-size:13.5px;line-height:1.45}
    .aff-info p{font-size:11px}
    .aff-stores .aff-kicker{display:none}
  }
  .store{border:1px solid #cfdcef;background:#fff;border-radius:8px;padding:5px 9px;font-size:11px;font-weight:700;color:#28509b;cursor:pointer}
  .store:hover{background:#f2f7ff}

  /* ---------- quiz ---------- */
  .quiz-card{border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow);padding:18px 17px}
  @media (min-width:720px){.quiz-card{padding:24px 26px}}
  .q-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:12px}
  .q-num{font-size:11.5px;font-weight:800;color:var(--blue);background:var(--blue-soft);border:1px solid #dbe6fb;padding:2px 8px;border-radius:7px;font-variant-numeric:tabular-nums}
  .q-stem{font-size:16.5px;font-weight:800;line-height:1.55;letter-spacing:-.02em;margin:0 0 15px}
  @media (min-width:720px){.q-stem{font-size:18px}}
  .opts{display:grid;gap:7px}
  .opt{display:flex;gap:10px;align-items:flex-start;text-align:left;padding:12px 13px;border:1px solid #dfe7f3;background:#fff;border-radius:11px;font-size:14px;color:var(--ink);cursor:pointer;transition:.13s;line-height:1.5;width:100%}
  .opt:hover:not(:disabled){border-color:#b7cbf0;background:#f9fbff}
  .opt .k{flex:0 0 auto;width:21px;height:21px;border-radius:6px;background:#eef3fb;color:#5a7295;display:grid;place-items:center;font-size:11.5px;font-weight:800;margin-top:1px}
  .opt.correct{border-color:#9ad9b9;background:var(--green-bg)}
  .opt.correct .k{background:var(--green);color:#fff}
  .opt.wrong{border-color:#f0b1bb;background:var(--red-bg)}
  .opt.wrong .k{background:var(--red);color:#fff}
  .opt:disabled{cursor:default}
  .opt.dim{opacity:.52}
  .feedback{margin-top:14px;border-radius:13px;padding:13px 14px;border:1px solid}
  .feedback.ok{background:#f2fbf6;border-color:#c6ead8}
  .feedback.no{background:#fdf4f5;border-color:#f3ccd3}
  .feedback h4{font-size:13.5px;margin-bottom:5px;display:flex;align-items:center;gap:6px}
  .feedback.ok h4{color:#0a6b41}
  .feedback.no h4{color:#a8263a}
  .feedback p{font-size:13.2px;color:#3c4c62}
  .point-box{margin-top:10px;background:#fff;border:1px dashed #cdd9ea;border-radius:9px;padding:9px 11px}
  .point-box b{display:block;font-size:10.5px;color:var(--blue-2);margin-bottom:2px}
  .point-box span{font-size:12.5px;color:#3c4c62}
  .q-nav{display:flex;gap:7px;justify-content:space-between;margin-top:16px;flex-wrap:wrap}
  .q-nav .left,.q-nav .right{display:flex;gap:7px;flex-wrap:wrap}
  .dots{display:flex;gap:5px;flex-wrap:wrap;margin-top:14px;padding-top:13px;border-top:1px dashed #eaf0f8}
  .dot-btn{width:27px;height:27px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:11px;font-weight:700;color:#5a6c86;cursor:pointer;font-variant-numeric:tabular-nums}
  .dot-btn.ok{background:var(--green-bg);border-color:#bfe6d3;color:var(--green)}
  .dot-btn.no{background:var(--red-bg);border-color:#f3c9d0;color:var(--red)}
  .dot-btn.now{outline:2px solid var(--blue-2);outline-offset:1px}

  /* ---------- result ---------- */
  .result-card{border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow);padding:20px 18px}
  .result-top{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
  .score-ring{width:118px;height:118px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:conic-gradient(var(--blue-2) calc(var(--p,0) * 1%), #e9eff8 0)}
  .score-ring>div{width:94px;height:94px;border-radius:50%;background:#fff;display:grid;place-items:center;text-align:center;line-height:1.15}
  .score-ring b{font-size:27px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
  .score-ring small{font-size:10px;color:var(--muted);font-weight:700}
  .result-copy{flex:1;min-width:180px}
  .result-copy h3{font-size:19px;letter-spacing:-.03em;margin-bottom:4px}
  .result-copy p{font-size:13px;color:var(--muted)}
  .mini{display:flex;gap:14px;margin-top:11px;flex-wrap:wrap}
  .mini div{font-size:11px;color:var(--muted)}
  .mini b{display:block;font-size:16px;color:var(--ink);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
  .wrong-list{margin-top:18px;border-top:1px dashed #eaf0f8;padding-top:14px}
  .wrong-list h4{font-size:12.5px;color:var(--muted);margin-bottom:8px}
  .wrong-item{display:flex;gap:9px;align-items:flex-start;padding:8px 0;border-bottom:1px dashed #eef3fa;font-size:12.8px;color:var(--ink-2)}
  .wrong-item:last-child{border-bottom:0}
  .wrong-item .n{flex:0 0 auto;width:20px;height:20px;border-radius:6px;background:var(--red-bg);color:var(--red);font-size:10.5px;font-weight:800;display:grid;place-items:center;margin-top:1px}

  /* ---------- notebook ---------- */
  .note-card{border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow);padding:15px 16px;margin-bottom:10px}
  .note-top{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
  .note-q{font-size:14px;font-weight:700;line-height:1.5;margin-bottom:9px}
  .note-ans{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin-bottom:8px}
  .note-ans .mine{color:var(--red);font-weight:700}
  .note-ans .right{color:var(--green);font-weight:700}
  .note-body{background:var(--soft);border-radius:9px;padding:9px 11px;font-size:12.5px;color:#3c4c62}
  .note-actions{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}
  .empty{text-align:center;padding:42px 20px;border:1px dashed #d8e2f0;border-radius:18px;background:#fbfdff}
  .empty .ic{font-size:30px;margin-bottom:8px}
  .empty h3{font-size:15px;margin-bottom:4px}
  .empty p{font-size:12.5px;color:var(--muted);margin-bottom:14px}

  /* ---------- modal / toast ---------- */
  .modal-back{position:fixed;inset:0;background:rgba(9,20,38,.45);display:grid;place-items:center;z-index:80;padding:20px}
  .modal-back[hidden]{display:none}
  .modal{background:#fff;border-radius:16px;padding:20px;max-width:380px;width:100%;box-shadow:0 24px 60px rgba(9,20,38,.32)}
  .modal h3{font-size:16px;margin-bottom:6px;letter-spacing:-.02em}
  .modal p{font-size:13px;color:var(--muted);margin-bottom:16px}
  .modal-actions{display:flex;gap:7px;justify-content:flex-end}
  .toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%) translateY(8px);background:#0c1a2e;color:#fff;padding:10px 16px;border-radius:10px;font-size:12.5px;opacity:0;pointer-events:none;transition:.2s;z-index:90;max-width:calc(100vw - 40px);text-align:center;box-shadow:0 12px 30px rgba(9,20,38,.3)}
  .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

  footer{border-top:1px solid var(--line);background:#fbfcfe}
  .foot{max-width:1120px;margin:0 auto;padding:20px;font-size:11px;color:var(--faint);line-height:1.7}
  .foot b{color:var(--muted)}
  .sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  @media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

  /* ============================================================
     멀티 페이지 확장 (2026-11-30)
     ============================================================ */
  .site-head{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
  .head-inner{max-width:1120px;margin:0 auto;padding:8px 20px;display:flex;align-items:center;gap:10px}
  .brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:inherit;flex:0 0 auto}
  .brand-mark{width:32px;height:32px;border-radius:10px;background:linear-gradient(150deg,#245fdb,#0f3576);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:800;box-shadow:0 6px 14px -8px rgba(15,53,118,.9)}
  .brand-txt{font-weight:800;font-size:15px;letter-spacing:-.03em;line-height:1.15}
  .brand-txt small{display:block;font-size:10.5px;font-weight:600;color:var(--muted);letter-spacing:0}
  .site-nav{display:flex;gap:2px;margin-left:4px;overflow-x:auto;scrollbar-width:none}
  .site-nav::-webkit-scrollbar{display:none}
  .site-nav a{padding:7px 10px;border-radius:9px;font-size:12.5px;font-weight:700;color:#54678a;text-decoration:none;white-space:nowrap}
  .site-nav a:hover{background:var(--soft);color:var(--ink)}
  .site-nav a.on{background:var(--soft-2);color:var(--blue)}
  .head-stats{margin-left:auto;display:flex;gap:6px;flex:0 0 auto}
  .head-stat{display:flex;align-items:baseline;gap:4px;padding:5px 9px;border-radius:9px;background:var(--soft);border:1px solid var(--line);text-decoration:none;color:inherit}
  .head-stat b{font-size:13px;font-variant-numeric:tabular-nums}
  .head-stat span{font-size:10px;color:var(--muted);font-weight:700}
  .head-stat.note b{color:var(--red)}
  @media (max-width:620px){
    .head-inner{padding:7px 12px;gap:6px}
    .brand-txt{font-size:14px}
    .brand-txt small{display:none}
    .site-nav{display:none}
    .head-stat span{display:none}
    .head-stat{padding:6px 9px}
    .head-stat b{font-size:12.5px}
  }

  .wrap{max-width:1120px;margin:0 auto;padding:0 20px}
  @media (max-width:620px){.wrap{padding:0 14px}}
  .crumbs{font-size:11.5px;color:var(--faint);padding:14px 0 0;display:flex;gap:5px;flex-wrap:wrap}
  .crumbs a{color:var(--muted);text-decoration:none;font-weight:600}
  .crumbs a:hover{color:var(--blue-2)}
  .page-head{padding:14px 0 4px}
  .page-head h1{font-size:clamp(22px,3.6vw,32px);font-weight:800;letter-spacing:-.035em;margin:8px 0 8px;line-height:1.3}
  .page-head p{font-size:13.6px;color:var(--ink-2);max-width:660px}

  .meta-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
  .meta-chip{font-size:11.5px;font-weight:700;color:#48607f;background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:5px 11px}
  .meta-chip b{color:var(--ink);font-weight:800}

  /* ---------- 홈 시험 카드 ---------- */
  .subj-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
  @media (max-width:860px){.subj-grid{grid-template-columns:1fr}}
  .subj-card{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:15px 16px;box-shadow:var(--shadow);text-decoration:none;color:inherit;transition:.15s;position:relative;overflow:hidden}
  .subj-card::after{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:var(--sc,#1b53c8);opacity:.85}
  .subj-card:hover{border-color:#c9d8ee;transform:translateY(-2px)}
  .sc-top{display:flex;align-items:center;gap:9px}
  .sc-name{display:block;flex:1;min-width:0}
  .sc-ico{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-size:18px;background:var(--soft);flex:0 0 auto}
  .sc-name{font-size:14.5px;font-weight:800;letter-spacing:-.02em;line-height:1.3}
  .sc-name small{display:block;font-size:11px;font-weight:600;color:var(--muted)}
  .sc-line{font-size:12px;color:var(--ink-2);line-height:1.55;min-height:34px}
  .sc-foot{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);margin-top:auto;padding-top:8px;border-top:1px dashed #eaf0f8}
  .sc-foot .bar{flex:1;height:5px;border-radius:999px;background:#eaf0f8;overflow:hidden}
  .sc-foot .bar i{display:block;height:100%;background:var(--sc,#1b53c8);border-radius:999px}
  .sc-foot b{font-variant-numeric:tabular-nums;color:var(--ink-2)}

  .dday-row{display:flex;align-items:center;gap:8px;padding:9px 0;border-top:1px dashed #e8eef7}
  .dday-row:first-of-type{border-top:0}
  .dday-row .nm{flex:1;min-width:0;font-size:12.3px;font-weight:700}
  .dday-row .nm small{display:block;font-size:10px;color:var(--muted);font-weight:500}
  .dday-row input[type=date]{font:inherit;font-size:11.5px;font-weight:700;color:#36506f;border:1px solid var(--line);background:#fff;border-radius:8px;padding:5px 7px;max-width:132px}
  .dday-badge{font-size:11.5px;font-weight:800;color:var(--blue);background:var(--blue-soft);border:1px solid #d8e4fb;border-radius:8px;padding:4px 8px;min-width:52px;text-align:center;font-variant-numeric:tabular-nums}
  .dday-badge.hot{color:var(--red);background:var(--red-bg);border-color:#f3ccd3}
  .dday-badge.done{color:var(--muted);background:var(--soft);border-color:var(--line)}

  /* ---------- 3단계 ---------- */
  .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:12px}
  @media (max-width:820px){.steps{grid-template-columns:1fr}}
  .step{border:1px solid var(--line);border-radius:15px;background:#fff;padding:14px 15px;box-shadow:var(--shadow);text-decoration:none;color:inherit;display:block;transition:.15s}
  .step:hover{border-color:#c9d8ee}
  .step-no{font-size:10.5px;font-weight:800;color:var(--acc,#1b53c8);letter-spacing:.04em}
  .step h3{font-size:14px;font-weight:800;margin:5px 0 4px;letter-spacing:-.02em}
  .step p{font-size:12.2px;color:var(--muted);line-height:1.6}
  .step .go{display:inline-block;margin-top:9px;font-size:11.5px;font-weight:800;color:var(--acc,#1b53c8)}

  /* ---------- 단원 목록 ---------- */
  .unit-list{display:flex;flex-direction:column;gap:9px;margin-top:10px}
  .unit-card{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:14px;background:#fff;padding:13px 15px;text-decoration:none;color:inherit;box-shadow:var(--shadow);transition:.15s}
  .unit-card:hover{border-color:#c9d8ee;transform:translateX(2px)}
  .unit-card .no{flex:0 0 auto;width:36px;height:36px;border-radius:10px;background:var(--soft);display:grid;place-items:center;font-size:11px;font-weight:800;color:var(--acc,#1b53c8)}
  .unit-card .uc-body{flex:1;min-width:0}
  .unit-card h3{font-size:14px;font-weight:800;letter-spacing:-.02em;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
  .unit-card h3 .sec{font-size:10px;font-weight:700;color:var(--muted);background:var(--soft);border-radius:6px;padding:2px 6px}
  .unit-card p{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .unit-card .uc-meta{flex:0 0 auto;text-align:right;font-size:10.5px;color:var(--faint);line-height:1.7}
  .unit-card .uc-meta .seen{color:var(--green);font-weight:800}
  @media (max-width:560px){.unit-card .uc-meta{display:none}}

  /* ---------- 교재 본문 ---------- */
  .guide-layout{display:grid;grid-template-columns:minmax(0,1fr) 274px;gap:26px;align-items:start;padding-bottom:40px}
  @media (max-width:940px){.guide-layout{grid-template-columns:1fr}}
  .guide-main{min-width:0}
  .guide-aside{position:sticky;top:64px;display:flex;flex-direction:column;gap:10px}
  @media (max-width:940px){.guide-aside{position:static;order:2}}
  .aside-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:13px 14px;box-shadow:var(--shadow)}
  .aside-card h4{font-size:11.5px;font-weight:800;color:var(--muted);margin-bottom:8px;letter-spacing:.02em}
  .aside-link{display:flex;align-items:center;gap:7px;padding:7px 0;border-top:1px dashed #eef3fa;font-size:12.2px;color:var(--ink-2);text-decoration:none;line-height:1.45}
  .aside-link:first-of-type{border-top:0}
  .aside-link:hover{color:var(--blue-2)}
  .aside-link .n{width:19px;height:19px;border-radius:6px;background:var(--soft);display:grid;place-items:center;font-size:10px;font-weight:800;color:var(--muted);flex:0 0 auto}
  .aside-link.on{color:var(--acc,#1b53c8);font-weight:800}
  .aside-link.on .n{background:var(--acc,#1b53c8);color:#fff}

  .article{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow);padding:22px 24px;margin-top:12px}
  @media (max-width:620px){.article{padding:17px 15px;border-radius:15px}}
  .article-h{display:flex;align-items:flex-start;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:16px}
  .article-h .badge{flex:0 0 auto;font-size:11px;font-weight:800;color:#fff;background:var(--acc,#1b53c8);border-radius:9px;padding:6px 10px;letter-spacing:-.01em}
  .article-h h1{font-size:clamp(19px,2.6vw,25px);font-weight:800;letter-spacing:-.035em;line-height:1.35;margin-bottom:4px}
  .article-h .sub{font-size:11.5px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}
  .block{margin-top:18px}
  .block:first-of-type{margin-top:0}
  .block-head{display:flex;align-items:center;gap:7px;margin-bottom:9px}
  .block-head h2{font-size:14px;font-weight:800;letter-spacing:-.02em}
  .block-head .dot{width:7px;height:7px;border-radius:50%;background:var(--acc,#1b53c8)}
  .block-head .sub{font-size:10.5px;color:var(--faint);margin-left:auto;font-weight:600}
  .block ul{display:flex;flex-direction:column;gap:8px}
  .block li{position:relative;padding-left:13px;font-size:14.1px;line-height:1.78;color:#2b3b52}
  .block li::before{content:"";position:absolute;left:0;top:.72em;width:5px;height:5px;border-radius:50%;background:#b9caea}
  .block code{background:#f1f5fb;border:1px solid #e2eaf6;border-radius:5px;padding:1px 5px;font-size:12.2px;color:#1d4ea8;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;word-break:break-all}
  .rate-row{display:flex;gap:11px;align-items:flex-start;padding:9px 0;border-top:1px dashed #eaf0f8}
  .rate-row:first-of-type{border-top:0;padding-top:0}
  .rate{flex:0 0 auto;width:70px}
  .rate .pct{font-size:12px;font-weight:800;color:var(--acc,#1b53c8);font-variant-numeric:tabular-nums}
  .rate .bar{height:5px;border-radius:999px;background:#eaf0f8;overflow:hidden;margin-top:3px}
  .rate .bar i{display:block;height:100%;background:var(--acc,#1b53c8);border-radius:999px}
  .rate-row p{font-size:13.5px;line-height:1.7;color:#2b3b52}
  .b-trap li{background:var(--amber-bg);border:1px solid #f6e3c0;border-radius:9px;padding:8px 10px 8px 22px}
  .b-trap li::before{background:#d9a53d;left:9px}
  .cta-card{margin-top:20px;border:1px solid #d6e3fa;background:linear-gradient(180deg,#f7faff,#eef4ff);border-radius:15px;padding:16px 17px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
  .cta-card .txt{flex:1;min-width:200px}
  .cta-card b{display:block;font-size:13.5px;letter-spacing:-.02em}
  .cta-card span{font-size:12px;color:var(--muted)}
  .unit-nav{display:flex;gap:8px;justify-content:space-between;margin-top:14px;flex-wrap:wrap}

  /* ---------- 연습문제 ---------- */
  .pr-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0 4px}
  .chips{display:flex;gap:6px;flex-wrap:wrap}
  .chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700;color:#54678a;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
  .chip:hover{border-color:#c2d3ea;color:var(--ink)}
  .chip[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}
  .chip[aria-pressed=true] .n{color:#dce8ff}
  .chip .n{font-size:10.5px;font-weight:800;opacity:.75;font-variant-numeric:tabular-nums}
  .pr-sum{display:flex;gap:8px;align-items:center;margin-left:auto;font-size:12px;color:var(--muted);flex-wrap:wrap}
  .pr-sum b{color:var(--ink);font-variant-numeric:tabular-nums}
  .pr-list{display:flex;flex-direction:column;gap:12px;margin-top:10px;padding-bottom:30px}
  .qcard{border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow);padding:16px 17px;scroll-margin-top:76px}
  @media (max-width:620px){.qcard{padding:14px 13px;border-radius:14px}}
  .q-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:8px}
  .q-num{font-size:11px;font-weight:800;color:#fff;background:var(--acc,#1b53c8);border-radius:7px;padding:3px 7px;font-variant-numeric:tabular-nums}
  .q-stem{font-size:14.4px;font-weight:700;line-height:1.6;margin-bottom:11px;letter-spacing:-.015em}
  .q-stem code{background:#f1f5fb;border:1px solid #e2eaf6;border-radius:5px;padding:1px 5px;font-size:12.8px;color:#1d4ea8;font-family:ui-monospace,Menlo,Consolas,monospace;word-break:break-all}
  .opts{display:flex;flex-direction:column;gap:7px}
  .opt{display:flex;align-items:flex-start;gap:9px;text-align:left;width:100%;background:#fff;border:1px solid #e3eaf5;border-radius:10px;padding:9px 12px;font-size:13.2px;line-height:1.55;color:#2b3b52;cursor:pointer;word-break:keep-all}
  .opt:hover:not(:disabled){border-color:#b9cdf3;background:#fafdff}
  .opt .k{flex:0 0 auto;width:20px;height:20px;border-radius:6px;background:#eef3fb;color:#5a6c86;font-size:10.5px;font-weight:800;display:grid;place-items:center;margin-top:1px}
  .opt.correct{border-color:#9fd8ba;background:#f2fbf6}
  .opt.correct .k{background:var(--green);color:#fff}
  .opt.wrong{border-color:#f0bcc5;background:#fdf4f5}
  .opt.sel{border-color:#9db9ea;background:#eef4ff;box-shadow:0 0 0 2px rgba(27,83,200,.08)}
  .opt.sel .k{background:var(--blue);color:#fff}
  .opt.wrong .k{background:var(--red);color:#fff}
  .opt:disabled{cursor:default}
  .opt.dim{opacity:.5}
  .feedback{margin-top:12px;border-radius:12px;padding:12px 13px;border:1px solid}
  .feedback h4{font-size:13px;margin-bottom:5px;display:flex;align-items:center;gap:6px}
  .feedback p{font-size:12.8px;color:#3c4c62;line-height:1.7}
  .feedback .f-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
  .point-box{margin-top:9px;background:#fff;border:1px dashed #cdd9ea;border-radius:9px;padding:8px 10px}
  .point-box b{display:block;font-size:10px;color:var(--blue-2);margin-bottom:2px}
  .point-box span{font-size:12px;color:#3c4c62}
  .link-btn{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:800;text-decoration:none;border:1px solid #d3e0f2;border-radius:8px;padding:6px 9px;color:var(--blue);background:#fff}
  .link-btn:hover{background:var(--soft)}
  .empty{text-align:center;padding:42px 20px;border:1px dashed #d8e2f0;border-radius:18px;background:#fbfdff}
  .empty .ic{font-size:30px;margin-bottom:8px}
  .empty h3{font-size:15px;margin-bottom:4px}
  .empty p{font-size:12.5px;color:var(--muted);margin-bottom:14px}

  /* ---------- 실전 모의고사 ---------- */
  .mock-start{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow);padding:24px;max-width:760px;margin:14px auto 40px}
  .mock-start h2{font-size:18px;letter-spacing:-.03em;margin-bottom:6px}
  .mock-start .lead{font-size:13px;color:var(--muted);margin-bottom:16px}
  .rule-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:16px}
  @media (max-width:560px){.rule-list{grid-template-columns:1fr}}
  .rule-item{background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:12.2px;color:#3c4c62;line-height:1.6}
  .rule-item b{display:block;font-size:10.5px;color:var(--muted);margin-bottom:2px}
  .lic-pick{display:flex;gap:6px;margin:4px 0 16px}
  .lic-pick button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 14px;font-size:12.5px;font-weight:700;color:#54678a;cursor:pointer}
  .lic-pick button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}

  .mock-bar{position:sticky;top:52px;z-index:40;background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:12px;padding:8px 12px;display:flex;align-items:center;gap:10px;margin:12px 0;box-shadow:0 6px 18px -14px rgba(12,26,46,.5)}
  .mock-bar .pb{flex:1;height:6px;border-radius:999px;background:#eaf0f8;overflow:hidden}
  .mock-bar .pb i{display:block;height:100%;background:linear-gradient(90deg,#245fdb,#5b8bf0);border-radius:999px;transition:width .25s}
  .mock-bar .tm{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.02em;padding:2px 9px;border-radius:8px;background:var(--soft);border:1px solid var(--line)}
  .mock-bar .tm.warn{color:var(--red);background:var(--red-bg);border-color:#f3ccd3}
  .mock-bar .cnt2{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
  .mock-layout{display:grid;grid-template-columns:minmax(0,1fr) 232px;gap:20px;align-items:start}
  @media (max-width:920px){.mock-layout{grid-template-columns:1fr}}
  .omr{position:sticky;top:110px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:13px;box-shadow:var(--shadow)}
  @media (max-width:920px){.omr{position:static;order:-1}}
  .omr h4{font-size:11.5px;font-weight:800;color:var(--muted);margin-bottom:9px}
  .omr-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
  .omr-btn{min-width:0;width:100%;aspect-ratio:1;border:1px solid var(--line);background:#fff;border-radius:7px;font-size:11px;font-weight:800;color:#5a6c86;cursor:pointer;font-variant-numeric:tabular-nums;padding:0}
  .omr-btn.done{background:var(--blue-soft);border-color:#b9cdf3;color:var(--blue)}
  .omr-btn:hover{border-color:#b9cdf3}
  .omr-foot{margin-top:10px;padding-top:9px;border-top:1px dashed #eef3fa;font-size:11px;color:var(--muted)}
  .omr-foot b{color:var(--ink);font-variant-numeric:tabular-nums}
  .omr .btn{width:100%;margin-top:9px}

  @media (max-width:920px){
    .omr-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
    .omr{padding:10px 11px}
    .omr h4{margin-bottom:6px}
    .omr-btn{aspect-ratio:auto;height:29px;font-size:10.5px;border-radius:6px}
    .omr-foot{margin-top:7px;padding-top:7px}
    .omr .btn{padding:9px 12px;font-size:12.5px}
  }

  /* ---------- 결과 ---------- */
  .verdict{font-size:12px;font-weight:800;padding:4px 9px;border-radius:8px;display:inline-block}
  .verdict.pass{background:var(--green-bg);color:var(--green);border:1px solid #bfe6d3}
  .verdict.fail{background:var(--red-bg);color:var(--red);border:1px solid #f3ccd3}
  .sec-scores{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
  .sec-score{border:1px solid var(--line);border-radius:10px;padding:8px 11px;font-size:11.5px;color:var(--muted);background:#fff;min-width:104px}
  .sec-score b{display:block;font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}
  .sec-score.low b{color:var(--red)}
  .wrong-item{display:flex;gap:9px;align-items:flex-start;padding:10px 0;border-bottom:1px dashed #eef3fa;font-size:12.8px;color:var(--ink-2)}
  .wrong-item:last-child{border-bottom:0}
  .wrong-item .n{flex:0 0 auto;width:20px;height:20px;border-radius:6px;background:var(--red-bg);color:var(--red);font-size:10.5px;font-weight:800;display:grid;place-items:center;margin-top:1px}
  .wrong-item .wt{flex:1;min-width:0}
  .wrong-item .wt p{font-size:12.4px;line-height:1.65;color:#3c4c62;margin-top:2px}
  .wrong-item .wt .pt{display:block;margin-top:4px;font-size:11.5px;color:var(--blue-2)}

  /* ---------- 오답노트 ---------- */
  .note-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
  .note-card{border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow);padding:15px 16px;margin-bottom:10px}
  .note-top{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
  .note-q{font-size:13.8px;font-weight:700;line-height:1.55;margin-bottom:8px}
  .note-ans{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin-bottom:8px}
  .note-ans .mine{color:var(--red);font-weight:700}
  .note-ans .right{color:var(--green);font-weight:700}
  .note-body{background:var(--soft);border-radius:9px;padding:9px 11px;font-size:12.4px;color:#3c4c62;line-height:1.7}
  .note-actions{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}

  .toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%) translateY(8px);background:#0c1a2e;color:#fff;padding:10px 16px;border-radius:10px;font-size:12.5px;opacity:0;pointer-events:none;transition:.2s;z-index:90;max-width:calc(100vw - 40px);text-align:center;box-shadow:0 12px 30px rgba(9,20,38,.3)}
  .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
  .modal-back{position:fixed;inset:0;background:rgba(9,20,38,.45);display:grid;place-items:center;z-index:80;padding:20px}
  .modal-back[hidden]{display:none}
  .modal{background:#fff;border-radius:16px;padding:20px;max-width:400px;width:100%;box-shadow:0 24px 60px rgba(9,20,38,.32)}
  .modal h3{font-size:16px;margin-bottom:6px;letter-spacing:-.02em}
  .modal p{font-size:13px;color:var(--muted);margin-bottom:16px;line-height:1.65}
  .modal-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}
  .sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  footer{border-top:1px solid var(--line);background:#fbfcfe;margin-top:30px}
  .foot{max-width:1120px;margin:0 auto;padding:20px;font-size:11px;color:var(--faint);line-height:1.8}
  .foot b{color:var(--muted)}
  .foot a{color:var(--muted);text-decoration:none}
  .foot .foot-nav{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:8px}

  /* ---------- 빠른 시작 (과목 × 단계) ---------- */
  .sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 10px;flex-wrap:wrap}
  .sec-head h2{font-size:18px;letter-spacing:-.03em}
  .sec-head p{font-size:12.3px;color:var(--muted);margin-top:3px}
  .qs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  @media (max-width:900px){.qs-grid{grid-template-columns:1fr}}
  .qs-card{position:relative;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
  .qs-card::before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:var(--sc,#1b53c8);opacity:.5}
  .qs-head{display:flex;align-items:center;gap:10px;padding:14px 15px 12px;text-decoration:none;color:inherit;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fafcff)}
  .qs-head:hover .qs-title b{color:var(--sc,#1b53c8)}
  .qs-ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:19px;flex:0 0 auto;background:var(--sc-soft,#eef3fb)}
  .qs-title{flex:1;min-width:0}
  .qs-title b{display:block;font-size:14.5px;font-weight:800;letter-spacing:-.025em;line-height:1.3}
  .qs-title small{display:block;font-size:10.8px;color:var(--muted);margin-top:2px}
  .qs-go{color:#b7c6dc;font-size:14px;font-weight:800}
  .qs-stages{display:flex;flex-direction:column}
  .qs-stage{display:flex;align-items:center;gap:10px;padding:11px 14px;border-top:1px solid #eff3fa;text-decoration:none;color:inherit;transition:background .12s}
  .qs-stage:first-of-type{border-top:0}
  .qs-stage:hover{background:#f8fbff}
  .qs-stage:hover .st-go{color:var(--sc,#1b53c8);transform:translateX(2px)}
  .st-no{flex:0 0 auto;width:22px;height:22px;border-radius:7px;display:grid;place-items:center;font-size:10.5px;font-weight:800;background:var(--sc-soft,#eef3fb);color:var(--sc,#1b53c8)}
  .st-tx{flex:1;min-width:0}
  .st-tx b{display:block;font-size:12.9px;font-weight:800;letter-spacing:-.02em}
  .st-tx small{display:block;font-size:10.6px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .st-go{color:#c3d0e2;font-weight:800;font-size:12.5px;transition:.15s}
  .qs-foot{display:flex;align-items:center;gap:8px;padding:10px 14px 12px;border-top:1px dashed #eaf0f8;font-size:10.5px;color:var(--muted);margin-top:auto}
  .qs-foot .bar{flex:1;height:5px;border-radius:999px;background:#eaf0f8;overflow:hidden}
  .qs-foot .bar i{display:block;height:100%;border-radius:999px;background:var(--sc,#1b53c8);transition:width .3s}

  /* ---------- 과목 허브: 단계 선택 + 이어서 ---------- */
  .continue-bar{display:flex;align-items:center;gap:11px;border:1px solid #d7e3f7;background:linear-gradient(180deg,#f8fbff,#eef4ff);border-radius:14px;padding:12px 14px;margin-top:16px;text-decoration:none;color:inherit;transition:.15s}
  .continue-bar:hover{border-color:#b9cdf3;box-shadow:0 8px 20px -18px rgba(15,53,118,.8)}
  .continue-bar .cb-ico{width:30px;height:30px;border-radius:9px;background:#fff;border:1px solid #d7e3f7;display:grid;place-items:center;font-size:12px;color:var(--acc,#1b53c8);flex:0 0 auto}
  .continue-bar .cb-tx{flex:1;min-width:0}
  .continue-bar .cb-tx b{display:block;font-size:12.8px;font-weight:800;letter-spacing:-.02em}
  .continue-bar .cb-tx small{display:block;font-size:11.3px;color:var(--muted);margin-top:1px}
  .continue-bar .cb-go{font-size:11.5px;font-weight:800;color:var(--acc,#1b53c8);white-space:nowrap}

  .stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
  @media (max-width:820px){.stage-grid{grid-template-columns:1fr}}
  .stage-card{position:relative;display:block;border:1px solid var(--line);border-radius:15px;background:#fff;padding:16px 15px 14px;text-decoration:none;color:inherit;box-shadow:var(--shadow);transition:.15s;overflow:hidden}
  .stage-card::before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:var(--acc,#1b53c8);opacity:.28;transition:opacity .15s}
  .stage-card:hover::before{opacity:.7}
  .stage-card:hover{border-color:#c6d7ef;transform:translateY(-2px)}
  .stage-card .st-tag{font-size:10px;font-weight:800;letter-spacing:.05em;color:var(--acc,#1b53c8)}
  .stage-card h3{font-size:15px;font-weight:800;letter-spacing:-.025em;margin:5px 0 3px}
  .stage-card p{font-size:11.8px;color:var(--muted);line-height:1.55}
  .stage-card .st-state{display:inline-block;margin-top:10px;font-size:10.8px;font-weight:700;color:#42597a;background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:3px 9px}
  .stage-card .st-state.done{background:var(--green-bg);border-color:#bfe6d3;color:var(--green)}
  .stage-card .st-arrow{position:absolute;top:13px;right:14px;font-size:13px;font-weight:800;color:#c3d0e2}
  .stage-card:hover .st-arrow{color:var(--acc,#1b53c8)}
  .home-split{display:grid;grid-template-columns:1.3fr .7fr;gap:14px;align-items:start}
  @media (max-width:900px){.home-split{grid-template-columns:1fr}}
  @media (max-width:620px){
    .hero{padding-top:24px;gap:18px}
    .hero .panel .panel-sub{display:none}
    .hero .panel{padding:13px 14px}
    .dday-row{padding:6px 0;gap:6px}
    .dday-row .nm{font-size:12px;display:flex;align-items:center;gap:5px}
    .dday-row .nm small{display:none}
    .dday-row input[type="date"]{font-size:11px;padding:2px 4px;max-width:112px;height:30px}
    .dday-badge{line-height:1.2}
    .dday-badge{min-width:46px;font-size:11px;padding:3px 6px}
    .sec-head .link-btn{display:none}
    .hero-meta span:nth-child(4){display:none}
    .stage-card{padding:12px 13px}
    .stage-card h3{font-size:14.2px;margin:4px 0 2px}
    .stage-card p{font-size:11.4px;line-height:1.5}
    .stage-card .st-state{margin-top:7px;font-size:10.4px;padding:2px 8px}
    .meta-chip:nth-child(3){display:none}
    .continue-bar{padding:10px 12px;margin-top:12px}
  }
