/* Reference-matched interface. Scoped to avoid changing saved data or legacy forms. */
body.ref-home{--bg:#f4f5f9;--card:#fff;--ink:#1b1f2a;--sub:#5b6475;--line:#dfe3ee;--accent:#3b3486}
@media (prefers-color-scheme:dark){body.ref-home{--bg:#151821;--card:#1f2330;--ink:#e8ebf3;--sub:#a3abbd;--line:#343a4c;--accent:#b9b4ff}
}
body.ref-home *{box-sizing:border-box}
body.ref-home{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-family:"Pretendard","Noto Sans KR","Malgun Gothic",sans-serif;line-height:1.6}
body.ref-home header{background:linear-gradient(100deg,#2c2670,#3b3486 45%,#0f6e66);color:#fff;padding:38px 16px;text-align:center}
body.ref-home header h1{margin:0;font-size:clamp(24px,4vw,32px)}
body.ref-home header p{margin:8px 0 0;opacity:.92;font-size:15px}
body.ref-home main{max-width:900px;margin:0 auto;padding:28px 16px 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
body.ref-home a.r-card{display:block;text-decoration:none;color:inherit;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:26px 24px;transition:transform .15s,box-shadow .15s,border-color .15s}
body.ref-home a.r-card:hover,body.ref-home a.r-card:focus-visible{transform:translateY(-3px);box-shadow:0 8px 24px rgba(40,40,90,.15);border-color:var(--accent);outline:none}
body.ref-home .r-ico{font-size:42px;line-height:1}
body.ref-home .r-card h2{margin:12px 0 6px;font-size:21px;color:var(--accent)}
body.ref-home .r-card p{margin:0 0 12px;color:var(--sub);font-size:14.5px}
body.ref-home .r-card ul{margin:0;padding-left:18px;font-size:13.5px;color:var(--sub)}
body.ref-home .r-go{display:inline-block;margin-top:14px;font-weight:700;font-size:14px;color:var(--accent)}
body.ref-home .r-tip{max-width:900px;margin:0 auto;padding:0 16px;color:var(--sub);font-size:13.5px}
body.ref-home .r-tip b{color:var(--ink)}
body.ref-home footer{max-width:900px;margin:0 auto;text-align:center;color:var(--sub);font-size:12.5px;padding:18px 16px 36px}
body.ref-home footer a{color:var(--accent);font-weight:700}
body.ref-overview{--bg:#f4f5fa;--panel:#fff;--ink:#1b1f2a;--muted:#5b6475;--faint:#8a93a6;--line:#e3e6ef;--accent:#3b3486;--chip:#eef0f7;
  --shadow:0 1px 2px rgba(20,24,40,.06),0 6px 18px rgba(20,24,40,.06);--shadow2:0 4px 10px rgba(20,24,40,.08),0 18px 40px rgba(20,24,40,.14)}
@media (prefers-color-scheme: dark){body.ref-overview:not([data-theme="light"]){--bg:#0f1220;--panel:#171b2c;--ink:#e8eaf3;--muted:#a7aec4;--faint:#7c849c;--line:#2a3048;--accent:#a99ff5;--chip:#242a42}
}
body.ref-overview[data-theme="dark"]{--bg:#0f1220;--panel:#171b2c;--ink:#e8eaf3;--muted:#a7aec4;--faint:#7c849c;--line:#2a3048;--accent:#a99ff5;--chip:#242a42}
body.ref-overview *{box-sizing:border-box}
body.ref-overview{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 "Pretendard","Noto Sans KR","Malgun Gothic",system-ui,sans-serif}
body.ref-overview a{color:inherit;text-decoration:none}
body.ref-overview .r-wrap{max-width:1280px;margin:0 auto;padding:0 20px}
body.ref-overview .r-hero{background:radial-gradient(1000px 380px at 10% -10%,rgba(15,110,102,.45),transparent 60%),linear-gradient(135deg,#1f1b4d,#2a2370 50%,#0b4a45);color:#fff;padding:32px 0 28px}
body.ref-overview .r-kicker{font-size:13px;letter-spacing:.14em;opacity:.75;font-weight:700}
body.ref-overview .r-hero h1{margin:6px 0 4px;font-size:clamp(26px,3.4vw,40px);font-weight:900}
body.ref-overview .r-hero p{margin:0;opacity:.85}
body.ref-overview .r-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-top:20px}
body.ref-overview .r-stat{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:12px 14px}
body.ref-overview .r-stat b{display:block;font-size:26px;font-weight:900;line-height:1.1}
body.ref-overview .r-stat span{font-size:12.5px;opacity:.8}
body.ref-overview .r-prog{height:10px;border-radius:99px;background:rgba(255,255,255,.14);overflow:hidden;margin-top:18px}
body.ref-overview .r-prog i{display:block;height:100%;background:linear-gradient(90deg,#7ee0a1,#3fbf7f)}
body.ref-overview .r-progl{font-size:13px;opacity:.85;margin-top:6px}
body.ref-overview h2{font-size:20px;font-weight:900;margin:30px 0 12px}
body.ref-overview .r-regions{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
body.ref-overview .r-rc{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}
body.ref-overview .r-rc:hover{transform:translateY(-4px);box-shadow:var(--shadow2)}
body.ref-overview .r-rc.r-off{opacity:.55}
body.ref-overview .r-rc.r-off:hover{transform:none;box-shadow:var(--shadow)}
body.ref-overview .r-rc .r-hd{padding:16px 18px;color:#fff;background:var(--c)}
body.ref-overview .r-rc .r-hd b{font-size:20px;font-weight:900;display:block}
body.ref-overview .r-rc .r-hd span{font-size:13px;opacity:.85}
body.ref-overview .r-rc .r-bd{padding:12px 18px 16px;display:flex;flex-direction:column;gap:10px;flex:1}
body.ref-overview .r-rc .r-num{display:flex;gap:14px;flex-wrap:wrap}
body.ref-overview .r-rc .r-num div{white-space:nowrap}
body.ref-overview .r-rc .r-num div b{font-size:20px;font-weight:900;display:block;line-height:1.15}
body.ref-overview .r-rc .r-num div span{font-size:12px;color:var(--faint)}
body.ref-overview .r-rc .r-bar{display:flex;height:8px;border-radius:99px;overflow:hidden;background:var(--chip)}
body.ref-overview .r-rc .r-bar i{height:100%}
body.ref-overview .r-rc .r-go{margin-top:auto;text-align:center;border:1px solid var(--line);border-radius:10px;padding:8px;font-weight:800}
body.ref-overview .r-rc:not(.r-off):hover .r-go{background:var(--c);border-color:var(--c);color:#fff}
body.ref-overview .r-tw{overflow-x:auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
body.ref-overview table{border-collapse:collapse;width:100%;min-width:600px}
body.ref-overview th,body.ref-overview td{padding:9px 12px;text-align:center;border-bottom:1px solid var(--line);font-size:14px}
body.ref-overview th{font-size:13px;color:var(--muted);font-weight:800}
body.ref-overview td:first-child,body.ref-overview th:first-child{text-align:left;font-weight:800;white-space:nowrap}
body.ref-overview td a{display:block;border-radius:8px;padding:4px 0;font-weight:800}
body.ref-overview td a:hover{outline:2px solid var(--accent)}
body.ref-overview td.r-z{color:var(--faint)}
body.ref-overview tr.r-tot td{font-weight:900;border-bottom:0}
body.ref-overview td .r-done{background:color-mix(in srgb,#2e9e5b 22%,transparent);color:inherit}
body.ref-overview td .r-todo{color:var(--faint);font-weight:600;font-size:12.5px}
body.ref-overview td .r-rd{display:block;font-size:11px;color:var(--faint);font-weight:600}
body.ref-overview td.r-era{font-size:12px;color:var(--muted);font-weight:600;text-align:left}
body.ref-overview .r-note{color:var(--faint);font-size:12.5px;margin:8px 2px}
body.ref-overview .r-foot{color:var(--faint);font-size:12.5px;padding:28px 0 40px;text-align:center}
body.ref-overview .r-foot a{color:var(--accent);font-weight:700}
body.ref-search{--bg:#f4f5fa;--panel:#fff;--panel2:#f8f9fc;--ink:#1b1f2a;--muted:#5b6475;--faint:#8a93a6;--line:#e3e6ef;--accent:#3b3486;
  --shadow:0 1px 2px rgba(20,24,40,.06),0 6px 18px rgba(20,24,40,.06);--shadow2:0 4px 10px rgba(20,24,40,.08),0 18px 40px rgba(20,24,40,.14);
  --thumb:#fff;--chip:#eef0f7;--radius:16px}
@media (prefers-color-scheme: dark){body.ref-search:not([data-theme="light"]){--bg:#0f1220;--panel:#171b2c;--panel2:#1d2236;--ink:#e8eaf3;--muted:#a7aec4;--faint:#7c849c;
  --line:#2a3048;--accent:#a99ff5;--shadow:0 1px 2px rgba(0,0,0,.4),0 6px 18px rgba(0,0,0,.35);--shadow2:0 6px 14px rgba(0,0,0,.45),0 22px 44px rgba(0,0,0,.5);--thumb:#f7f8fb;--chip:#242a42}
}
body.ref-search[data-theme="dark"]{--bg:#0f1220;--panel:#171b2c;--panel2:#1d2236;--ink:#e8eaf3;--muted:#a7aec4;--faint:#7c849c;
  --line:#2a3048;--accent:#a99ff5;--shadow:0 1px 2px rgba(0,0,0,.4),0 6px 18px rgba(0,0,0,.35);--shadow2:0 6px 14px rgba(0,0,0,.45),0 22px 44px rgba(0,0,0,.5);--thumb:#f7f8fb;--chip:#242a42}
body.ref-search *{box-sizing:border-box}
body.ref-search{margin:0;background:var(--bg);color:var(--ink);font-family:"Pretendard","Noto Sans KR","Malgun Gothic",system-ui,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
body.ref-search a{color:inherit;text-decoration:none}
body.ref-search button{font:inherit;color:inherit}
body.ref-search .r-wrap{max-width:1480px;margin:0 auto;padding:0 20px}
body.ref-search .r-hero{background:radial-gradient(1200px 400px at 10% -10%,rgba(255,255,255,.12),transparent 60%),linear-gradient(135deg,#1b1f2a,#2b2766 55%,#5b4fc4);color:#fff;padding:30px 0 24px;position:relative;overflow:hidden}
body.ref-search .r-hero::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px);background-size:22px 22px;pointer-events:none}
body.ref-search .r-hero .r-wrap{position:relative;z-index:1}
body.ref-search .r-kicker{font-size:13px;letter-spacing:.14em;text-transform:uppercase;opacity:.75;font-weight:700}
body.ref-search .r-hero h1{margin:6px 0 4px;font-size:clamp(24px,3.2vw,38px);font-weight:900;letter-spacing:-.02em}
body.ref-search .r-hero p{margin:0;opacity:.85}
body.ref-search .r-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-top:20px}
body.ref-search .r-stat{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:12px 14px}
body.ref-search .r-stat b{display:block;font-size:26px;font-weight:900;line-height:1.1}
body.ref-search .r-stat span{font-size:12.5px;opacity:.8}
body.ref-search .r-dist{display:flex;height:10px;border-radius:99px;overflow:hidden;margin-top:18px;background:rgba(255,255,255,.12)}
body.ref-search .r-dist i{display:block;height:100%}
body.ref-search .r-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:10px;font-size:13px}
body.ref-search .r-legend span{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
body.ref-search .r-legend span:hover{text-decoration:underline}
body.ref-search .r-legend em{width:10px;height:10px;border-radius:3px;display:inline-block}
body.ref-search .r-bar{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
body.ref-search .r-bar .r-wrap{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding-top:12px;padding-bottom:12px}
body.ref-search .r-search{flex:1 1 260px;position:relative}
body.ref-search .r-search input{width:100%;padding:11px 14px 11px 40px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:15px;outline:none}
body.ref-search .r-search input:focus{border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 18%,transparent)}
body.ref-search .r-search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);opacity:.5}
body.ref-search .r-search kbd{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--faint);border:1px solid var(--line);border-radius:6px;padding:1px 6px;background:var(--panel2)}
body.ref-search .r-tabs,body.ref-search .r-chips{display:flex;gap:6px;flex-wrap:wrap}
body.ref-search .r-tab,body.ref-search .r-chip{border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:7px 13px;cursor:pointer;font-weight:700;font-size:13.5px;display:inline-flex;align-items:center;gap:6px;transition:all .15s}
body.ref-search .r-chip{padding:5px 11px;font-size:12.5px}
body.ref-search .r-tab .r-n,body.ref-search .r-chip .r-n{font-size:11.5px;font-weight:800;background:var(--chip);border-radius:99px;padding:0 7px;color:var(--muted)}
body.ref-search .r-tab:hover,body.ref-search .r-chip:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
body.ref-search .r-tab.r-on,body.ref-search .r-chip.r-on{background:var(--c,var(--accent));border-color:var(--c,var(--accent));color:#fff}
body.ref-search .r-tab.r-on .r-n,body.ref-search .r-chip.r-on .r-n{background:rgba(255,255,255,.25);color:#fff}
body.ref-search .r-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
body.ref-search .r-sel,body.ref-search .r-tbtn{border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:8px 10px;font-size:13.5px;color:var(--ink);cursor:pointer}
body.ref-search .r-tbtn.r-on{background:var(--accent);border-color:var(--accent);color:#fff}
body.ref-search .r-row2{width:100%;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.ref-search .r-row2 .r-lab{font-size:12px;color:var(--faint);font-weight:800}
body.ref-search .r-main{display:grid;grid-template-columns:250px 1fr;gap:24px;padding-top:22px;padding-bottom:60px}
body.ref-search .r-side{position:sticky;top:130px;align-self:start;max-height:calc(100vh - 150px);overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:14px 12px;box-shadow:var(--shadow)}
body.ref-search .r-side h4{margin:4px 6px 10px;font-size:12px;letter-spacing:.1em;color:var(--faint)}
body.ref-search .r-tree .r-mj{display:flex;align-items:center;gap:8px;padding:8px;border-radius:10px;cursor:pointer;font-weight:800;font-size:14px}
body.ref-search .r-tree .r-mj:hover,body.ref-search .r-tree .r-mn:hover{background:var(--panel2)}
body.ref-search .r-tree .r-dot{width:10px;height:10px;border-radius:3px}
body.ref-search .r-tree .r-cnt{margin-left:auto;font-size:12px;color:var(--faint);font-weight:700}
body.ref-search .r-tree .r-mn{display:flex;gap:8px;padding:5px 8px 5px 26px;border-radius:8px;cursor:pointer;font-size:13.5px;color:var(--muted)}
body.ref-search .r-tree .r-mn.r-on{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--ink);font-weight:700}
body.ref-search .r-tree .r-mn.r-zero{opacity:.38}
body.ref-search .r-result-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;color:var(--muted);font-size:14px}
body.ref-search .r-result-line b{color:var(--ink)}
body.ref-search .r-pill{display:inline-flex;align-items:center;gap:6px;background:var(--chip);border-radius:99px;padding:3px 10px;font-size:12.5px;font-weight:700;color:var(--ink)}
body.ref-search .r-pill button{border:0;background:none;cursor:pointer;color:var(--faint);padding:0;font-size:14px}
body.ref-search .r-sec{margin:0 0 30px}
body.ref-search .r-sec-h{display:flex;align-items:baseline;gap:12px;margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid var(--line)}
body.ref-search .r-sec-h .r-ic{font-size:22px}
body.ref-search .r-sec-h h2{margin:0;font-size:22px;font-weight:900}
body.ref-search .r-sec-h .r-cnt{margin-left:auto;font-weight:800;color:var(--faint);font-size:13px}
body.ref-search .r-minor-h{display:flex;align-items:baseline;gap:10px;margin:18px 0 10px}
body.ref-search .r-minor-h h3{margin:0;font-size:16px;font-weight:800}
body.ref-search .r-minor-h .r-desc{color:var(--faint);font-size:12.5px}
body.ref-search .r-minor-h .r-code{font-size:12px;font-weight:800;color:#fff;background:var(--c);border-radius:6px;padding:1px 7px}
body.ref-search .r-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(228px,1fr));gap:16px}
body.ref-search .r-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s,border-color .18s;position:relative}
body.ref-search .r-card:hover{transform:translateY(-4px);box-shadow:var(--shadow2);border-color:color-mix(in srgb,var(--c) 45%,var(--line))}
body.ref-search .r-card::before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:var(--c);z-index:1}
body.ref-search .r-thumb{display:block;background:var(--thumb);aspect-ratio:16/11;position:relative;border-bottom:1px solid var(--line);overflow:hidden}
body.ref-search .r-thumb img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;transition:transform .25s}
body.ref-search .r-card:hover .r-thumb img{transform:scale(1.04)}
body.ref-search .r-thumb .r-noimg{display:flex;align-items:center;justify-content:center;height:100%;font-size:40px;opacity:.35}
body.ref-search .r-thumb .r-go{position:absolute;right:8px;bottom:8px;background:rgba(27,31,42,.82);color:#fff;font-size:11.5px;font-weight:700;border-radius:8px;padding:3px 8px;opacity:0;transition:opacity .18s}
body.ref-search .r-card:hover .r-thumb .r-go{opacity:1}
body.ref-search .r-badge{position:absolute;left:10px;top:12px;font-size:11.5px;font-weight:800;color:#fff;background:var(--c);border-radius:7px;padding:2px 7px;box-shadow:0 2px 6px rgba(0,0,0,.18);z-index:2;max-width:calc(100% - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ref-search .r-cb{padding:11px 13px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
body.ref-search .r-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--faint);font-weight:700;flex-wrap:wrap}
body.ref-search .r-meta .r-rc{font-size:10.5px;background:var(--chip);border-radius:6px;padding:0 6px}
body.ref-search .r-meta .r-rc.r-deep{background:#ffd84d;color:#3b2f00;font-weight:800}
body.ref-search .r-ko{font-weight:800;font-size:14.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
body.ref-search .r-en{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ref-search .r-tags{display:flex;flex-wrap:wrap;gap:4px}
body.ref-search .r-tags span{font-size:11.5px;background:var(--chip);color:var(--muted);border-radius:6px;padding:1px 7px;font-weight:600}
body.ref-search .r-tags span.r-tp{color:#fff;background:var(--tc)}
body.ref-search .r-ans{display:none;font-size:12.5px;background:color-mix(in srgb,#2e9e5b 14%,transparent);border-radius:8px;padding:5px 8px;font-weight:700}
body.ref-search.r-show-ans .r-ans{display:block}
body.ref-search .r-acts{display:flex;gap:6px;margin-top:auto;padding-top:4px}
body.ref-search .r-acts a,body.ref-search .r-acts button{flex:1;text-align:center;border:1px solid var(--line);background:var(--panel2);border-radius:9px;padding:6px 4px;font-size:12.5px;font-weight:800;cursor:pointer}
body.ref-search .r-acts a:hover,body.ref-search .r-acts button:hover{background:var(--c);border-color:var(--c);color:#fff}
body.ref-search .r-acts .r-pv{flex:0 0 38px}
body.ref-search.r-list .r-grid{grid-template-columns:1fr}
body.ref-search.r-list .r-card{flex-direction:row}
body.ref-search.r-list .r-card::before{width:4px;height:auto;bottom:0;right:auto}
body.ref-search.r-list .r-thumb{width:170px;flex:0 0 170px;aspect-ratio:auto;border-bottom:0;border-right:1px solid var(--line)}
body.ref-search.r-list .r-ko{-webkit-line-clamp:1;min-height:0}
body.ref-search.r-list .r-acts{max-width:330px}
body.ref-search .r-empty{padding:60px 20px;text-align:center;color:var(--muted)}
body.ref-search .r-empty b{display:block;font-size:40px;margin-bottom:8px}
body.ref-search .r-more{display:block;margin:18px auto 0;border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:10px 22px;font-weight:800;cursor:pointer}
body.ref-search .r-modal{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(10,12,24,.55);backdrop-filter:blur(4px)}
body.ref-search .r-modal.r-on{display:flex}
body.ref-search .r-mbox{background:var(--panel);border-radius:20px;max-width:1000px;width:100%;max-height:calc(100vh - 40px);overflow:auto;box-shadow:var(--shadow2);display:grid;grid-template-columns:1.1fr 1fr;position:relative}
body.ref-search .r-mfig{background:var(--thumb);padding:18px;display:flex;align-items:flex-start;justify-content:center;border-right:1px solid var(--line);position:relative}
body.ref-search .r-mfig img{width:100%;height:auto;max-height:76vh;object-fit:contain;box-shadow:0 2px 12px rgba(0,0,0,.15)}
body.ref-search .r-mfig::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--c)}
body.ref-search .r-mtxt{padding:24px 24px 20px;display:flex;flex-direction:column;gap:10px}
body.ref-search .r-mtxt .r-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.ref-search .r-mtxt h3{margin:2px 0 0;font-size:21px;font-weight:900;line-height:1.35}
body.ref-search .r-mtxt .r-en{white-space:normal;font-size:14px}
body.ref-search .r-mtxt .r-mans{display:none;background:color-mix(in srgb,#2e9e5b 14%,transparent);border-radius:12px;padding:10px 14px;font-weight:800}
body.ref-search .r-mtxt.r-reveal .r-mans{display:block}
body.ref-search .r-mtxt .r-note{font-size:12.5px;color:var(--faint)}
body.ref-search .r-mbtns{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
body.ref-search .r-mbtns a,body.ref-search .r-mbtns button{border:1px solid var(--line);background:var(--panel2);border-radius:11px;padding:9px 14px;font-weight:800;font-size:14px;cursor:pointer}
body.ref-search .r-mbtns .r-pri{background:var(--c);border-color:var(--c);color:#fff}
body.ref-search .r-mclose{position:absolute;right:12px;top:10px;border:0;background:var(--panel2);width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:18px;z-index:2}
body.ref-search .r-mnav{position:absolute;top:50%;transform:translateY(-50%);border:0;background:var(--panel);box-shadow:var(--shadow2);width:42px;height:42px;border-radius:50%;cursor:pointer;font-size:18px;z-index:51}
body.ref-search .r-mnav.r-prev{left:14px}
body.ref-search .r-mnav.r-next{right:14px}
body.ref-search .r-foot{color:var(--faint);font-size:12.5px;padding:24px 0 40px;text-align:center}
body.ref-search .r-foot a{color:var(--accent);font-weight:700}
body.ref-search .r-top-btn{position:fixed;right:18px;bottom:18px;width:44px;height:44px;border-radius:50%;border:0;background:var(--accent);color:#fff;box-shadow:var(--shadow2);cursor:pointer;font-size:18px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:30}
body.ref-search .r-top-btn.r-on{opacity:1;pointer-events:auto}
@media (max-width:980px){body.ref-search .r-bar{position:static}
body.ref-search .r-main{grid-template-columns:1fr}
body.ref-search .r-side{position:static;max-height:none}
body.ref-search .r-mbox{grid-template-columns:1fr}
body.ref-search .r-mfig{border-right:0;border-bottom:1px solid var(--line)}
body.ref-search .r-mnav{display:none}
}
@media (max-width:560px){body.ref-search .r-wrap{padding:0 14px}
body.ref-search .r-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.ref-search .r-ko{font-size:13px}
body.ref-search .r-tags,body.ref-search .r-en{display:none}
body.ref-search.r-list .r-thumb{width:100px;flex-basis:100px}
}
body.ref-search .r-card .r-ans{display:none!important}
body.ref-search #ansBtn{display:none!important}
body.ref-sheets{--bg:#f4f6fb;--card:#fff;--ink:#1b1f2a;--sub:#5b6475;--line:#dfe3ee}
@media (prefers-color-scheme:dark){body.ref-sheets:not([data-theme="light"]){--bg:#151821;--card:#1f2330;--ink:#e8ebf3;--sub:#a3abbd;--line:#343a4c}
}
body.ref-sheets[data-theme="dark"]{--bg:#151821;--card:#1f2330;--ink:#e8ebf3;--sub:#a3abbd;--line:#343a4c}
body.ref-sheets *{box-sizing:border-box}
body.ref-sheets{margin:0;background:var(--bg);color:var(--ink);font-family:"Pretendard","Noto Sans KR","Malgun Gothic",sans-serif;line-height:1.6}
body.ref-sheets header{background:linear-gradient(100deg,#2c2670,#3b3486 40%,#0f6e66 75%,#9a4d0b);color:#fff;padding:22px 16px}
body.ref-sheets header .r-in,body.ref-sheets main{max-width:1100px;margin:0 auto}
body.ref-sheets main{padding:16px 16px 60px}
body.ref-sheets h1{margin:0;font-size:26px}
body.ref-sheets header p{margin:6px 0 0;opacity:.92;font-size:14.5px}
body.ref-sheets .r-legend{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
body.ref-sheets .r-legend span{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:2px 11px;font-size:13px}
body.ref-sheets .r-bar{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
body.ref-sheets .r-bar input{flex:1;min-width:200px;font:inherit;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink)}
body.ref-sheets .r-grp{background:var(--card);border:1px solid var(--line);border-top:4px solid var(--acc);border-radius:14px;padding:14px 16px;margin-top:18px}
body.ref-sheets .r-grp h2{margin:0 0 10px;font-size:19px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.ref-sheets .r-grp h2 small{color:var(--sub);font-weight:500;font-size:13px}
body.ref-sheets .r-dot{width:11px;height:11px;border-radius:50%;background:var(--acc)}
body.ref-sheets .r-tw{overflow-x:auto}
body.ref-sheets table{border-collapse:collapse;width:100%;font-size:14.5px;min-width:660px}
body.ref-sheets th,body.ref-sheets td{border-bottom:1px solid var(--line);padding:8px;text-align:left;vertical-align:top}
body.ref-sheets th{color:var(--sub);font-size:13px}
body.ref-sheets .r-id{color:#fff;border-radius:999px;padding:1px 9px;font-size:12px;font-weight:700;white-space:nowrap}
body.ref-sheets .r-tg{color:var(--sub);font-size:12.5px}
body.ref-sheets .r-em{color:var(--sub);text-align:center}
body.ref-sheets .r-go{white-space:nowrap}
body.ref-sheets .r-go a{display:inline-block;margin:2px 4px 2px 0;padding:4px 10px;border-radius:8px;border:1px solid var(--acc);color:var(--acc);text-decoration:none;font-weight:600;font-size:13px}
body.ref-sheets .r-go a.r-t{color:#fff}
body.ref-sheets .r-note{color:var(--sub);font-size:13.5px;margin-top:18px}
body.ref-sheets code{background:rgba(127,127,127,.15);border-radius:4px;padding:0 4px}
body.ref-sheet{
    --fs:1; --fig:1;
    --ink:#1b1f2a; --muted:#5b6475; --line:#c9cfdb; --accent:#3b3486; --soft:#f4f2fb;
    --grid:#e6e9f0; --paper:#ffffff; --bg:#eef0f4;
  }
body.ref-sheet *{box-sizing:border-box}
body.ref-sheet,body.ref-sheet{margin:0}
body.ref-sheet{background:var(--bg);color:var(--ink);
    font-family:"Pretendard","Noto Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif;
    font-size:calc(10.5pt*var(--fs));line-height:1.55}
body.ref-sheet .r-page{width:210mm;min-height:297mm;margin:0 auto 24px;background:var(--paper);padding:12mm 14mm 11mm;
    box-shadow:0 2px 14px rgba(0,0,0,.12);}
body.ref-sheet header.r-top{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:2.5px solid var(--accent);padding-bottom:5px}
body.ref-sheet .r-kicker{font-size:calc(8.5pt*var(--fs));color:var(--muted);letter-spacing:.02em}
body.ref-sheet h1{margin:2px 0 0;font-size:calc(17pt*var(--fs));color:var(--accent);letter-spacing:-.01em}
body.ref-sheet h1 small{font-size:calc(10pt*var(--fs));color:var(--muted);font-weight:500;margin-left:6px}
body.ref-sheet .r-idbox{display:flex;gap:6px;flex:none;font-size:calc(9.5pt*var(--fs))}
body.ref-sheet .r-idbox span{border:1px solid var(--line);border-radius:4px;padding:3px 8px;min-width:18mm}
body.ref-sheet .r-idbox span.r-name{min-width:30mm}
body.ref-sheet .r-idbox span.r-pcode{border:0;background:var(--accent);color:#fff;font-weight:700;min-width:0;letter-spacing:.04em;white-space:nowrap}
body.ref-sheet .r-tags{margin:6px 0 0;display:flex;gap:6px;flex-wrap:wrap}
body.ref-sheet .r-tag{font-size:calc(8pt*var(--fs));background:var(--soft);color:var(--accent);border-radius:20px;padding:1px 9px}
body.ref-sheet .r-problem{display:grid;grid-template-columns:minmax(0,1fr) calc(70mm*var(--fig));gap:5mm;margin-top:5mm}
body.ref-sheet .r-problem .r-text p{margin:0 0 2.5mm}
body.ref-sheet .r-qnum{display:inline-block;background:var(--accent);color:#fff;border-radius:4px;padding:0 7px;margin-right:4px;font-weight:700}
body.ref-sheet .r-cond{font-size:calc(9.3pt*var(--fs));color:var(--muted)}
body.ref-sheet .r-orig{font-size:calc(8pt*var(--fs));color:var(--muted);border-left:2px solid var(--line);padding-left:6px;margin-top:2mm;line-height:1.4;font-style:italic}
body.ref-sheet figure{margin:0;border:1px solid var(--line);border-radius:6px;padding:2mm;align-self:start}
body.ref-sheet figure>svg{width:100%;height:auto;display:block}
body.ref-sheet figcaption{font-size:calc(8pt*var(--fs));color:var(--muted);text-align:center}
body.ref-sheet .r-hints{display:none;margin-top:3mm;border:1px dashed var(--accent);border-radius:6px;padding:2mm 4mm;font-size:calc(9.2pt*var(--fs));background:var(--soft)}
body.ref-sheet .r-hints.r-on{display:block}
body.ref-sheet .r-kicker.r-off,body.ref-sheet .r-orig.r-off{display:none}
body.ref-sheet .r-sw.r-org{--c:#c2417a}
body.ref-sheet .r-hints b{color:var(--accent)}
body.ref-sheet .r-hints ol{margin:1mm 0 0;padding-left:5mm}
body.ref-sheet .r-work{flex:1;margin-top:4mm;border:1.2px solid var(--ink);border-radius:6px;position:relative;
    background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
    background-size:5mm 5mm;background-position:-1px -1px}
body.ref-sheet .r-work .r-lbl{position:absolute;top:0;left:0;background:var(--ink);color:#fff;font-size:calc(9pt*var(--fs));padding:1px 9px;border-radius:5px 0 6px 0}
body.ref-sheet .r-answer{margin-top:3.5mm;display:flex;align-items:center;gap:4mm;border:1.6px solid var(--accent);border-radius:6px;padding:3mm 4mm}
body.ref-sheet .r-answer .r-k{font-weight:700;color:var(--accent);white-space:nowrap}
body.ref-sheet .r-answer .r-blank{flex:1;border-bottom:1px solid var(--ink);height:8mm}
body.ref-sheet .r-answer .r-small{font-size:calc(8.5pt*var(--fs));color:var(--muted);white-space:nowrap}
body.ref-sheet footer{margin-top:2.5mm;font-size:9pt;color:var(--muted);text-align:center}
@media screen and (max-width:820px){body.ref-sheet .r-page{width:100%;height:auto;min-height:0;padding:16px}
body.ref-sheet .r-problem{grid-template-columns:minmax(0,1fr)}
body.ref-sheet .r-work{min-height:120mm}
body.ref-sheet header.r-top{flex-direction:column;align-items:flex-start;gap:6px}
body.ref-sheet .r-answer{flex-wrap:wrap}
}
@media print{body.ref-sheet{background:#fff}
body.ref-sheet .r-topbar{display:none}
body.ref-sheet .r-page{margin:0;box-shadow:none;width:210mm;height:289mm;padding-bottom:4mm}
body.ref-sheet footer{display:none}
body.ref-sheet *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
body.ref-sheet .r-topbar{position:sticky;top:0;z-index:30;font-size:14px;margin-bottom:18px;box-shadow:0 2px 10px rgba(30,25,80,.12);
    font-family:"Pretendard","Noto Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif}
body.ref-sheet .r-tb1{background:linear-gradient(100deg,#2c2670 0%,#3b3486 45%,#6a5fd6 100%);color:#fff}
body.ref-sheet .r-tb1 .r-in,body.ref-sheet .r-tb2 .r-in{max-width:900px;margin:0 auto;padding:0 16px;display:flex;align-items:center;gap:10px}
body.ref-sheet .r-tb1 .r-in{height:54px}
body.ref-sheet .r-tb1 .r-code{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:2px 10px;font-size:12.5px;font-weight:700;white-space:nowrap}
body.ref-sheet .r-tb1 .r-ttl{font-weight:800;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
body.ref-sheet .r-tb1 .r-who{background:#ffd84d;color:#3b2f00;border-radius:6px;padding:1px 8px;font-size:12px;font-weight:800;white-space:nowrap}
body.ref-sheet .r-tb1 .r-acts{margin-left:auto;display:flex;gap:6px;flex:none}
body.ref-sheet .r-tbtn{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13.5px;font-weight:600;color:#fff;text-decoration:none;
    background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);border-radius:9px;padding:6px 12px;cursor:pointer;white-space:nowrap}
body.ref-sheet .r-tbtn:hover{background:rgba(255,255,255,.24)}
body.ref-sheet .r-tbtn.r-solid{background:#fff;color:#3b3486;border-color:#fff}
body.ref-sheet .r-tbtn.r-solid:hover{background:#efedff}
body.ref-sheet .r-tb2{background:#fff;border-bottom:1px solid var(--line)}
body.ref-sheet .r-tb2 .r-in{min-height:52px;flex-wrap:wrap;padding-top:6px;padding-bottom:6px;gap:8px 14px}
body.ref-sheet .r-grp{display:flex;align-items:center;gap:8px}
body.ref-sheet .r-grp .r-gl{font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.02em}
body.ref-sheet .r-sep{width:1px;height:26px;background:var(--line)}
body.ref-sheet .r-sw{--c:#3b3486;display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none;font-weight:600;color:#3a4152;
    padding:5px 12px 5px 6px;border-radius:999px;border:1px solid var(--line);background:#fafbfd}
body.ref-sheet .r-sw:hover{border-color:var(--c)}
body.ref-sheet .r-sw input{position:absolute;opacity:0;pointer-events:none}
body.ref-sheet .r-sw .r-trk{width:34px;height:20px;border-radius:999px;background:#cfd4de;position:relative;transition:background .15s;flex:none}
body.ref-sheet .r-sw .r-trk::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .15s}
body.ref-sheet .r-sw input:checked+.r-trk{background:var(--c)}
body.ref-sheet .r-sw input:checked+.r-trk::after{left:16px}
body.ref-sheet .r-sw input:focus-visible+.r-trk{outline:2px solid var(--c);outline-offset:2px}
body.ref-sheet .r-sw.r-src{--c:#2f6fd6}
body.ref-sheet .r-sw.r-hint{--c:#1e8f4e}
body.ref-sheet .r-stepper{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}
body.ref-sheet .r-stepper button{font:inherit;width:30px;height:30px;border:0;background:#f6f5ff;color:#3b3486;font-size:17px;font-weight:700;cursor:pointer}
body.ref-sheet .r-stepper button:hover{background:#e8e5ff}
body.ref-sheet .r-stepper output{min-width:50px;text-align:center;font-variant-numeric:tabular-nums;font-weight:700;color:#3b3486}
body.ref-sheet .r-rst{font:inherit;font-size:13px;font-weight:600;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:9px;padding:5px 10px;cursor:pointer}
body.ref-sheet .r-rst:hover{background:var(--soft);color:#3b3486}
@media (max-width:560px){body.ref-sheet .r-tb1 .r-acts{flex:0 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
body.ref-sheet .r-tb1 .r-acts::-webkit-scrollbar{display:none}
body.ref-sheet .r-tb1 .r-ttl{display:none}
}
@media (max-width:640px){body.ref-sheet .r-tbtn .r-tx{display:none}
body.ref-sheet .r-tb1 .r-who{display:none}
body.ref-sheet .r-sep{display:none}
}
body.ref-sheet .r-intro{margin-top:4mm}
body.ref-sheet .r-intro p{margin:0 0 2mm}
body.ref-sheet .r-sec{margin-top:6mm;clear:both}
body.ref-sheet .r-sec h2{font-size:calc(14pt*var(--fs));color:var(--accent);border-bottom:1.5px solid var(--line);padding-bottom:2px;margin:0 0 3mm}
body.ref-sheet .r-sec h2 small{color:var(--muted);font-weight:500;font-size:.75em}
body.ref-sheet .r-secintro{overflow:hidden}
body.ref-sheet .r-secintro p{margin:0 0 2mm}
body.ref-sheet .r-fig{margin:0 0 3mm;border:1px solid var(--line);border-radius:6px;padding:2mm;background:#fff}
body.ref-sheet .r-fig img{width:100%;height:auto;display:block}
body.ref-sheet .r-fig figcaption{font-size:calc(8pt*var(--fs));color:var(--muted);text-align:center}
body.ref-sheet .r-fig.r-right{float:right;width:calc(70mm*var(--fig));max-width:48%;margin:0 0 3mm 5mm}
body.ref-sheet .r-part{margin-top:4mm;clear:both;break-inside:avoid}
body.ref-sheet .r-part .r-q p{display:inline;margin:0}
body.ref-sheet .r-part .r-q p+p{display:block;margin-top:1.5mm}
body.ref-sheet .r-pts{color:var(--muted);font-size:calc(8.5pt*var(--fs));margin-right:4px}
body.ref-sheet .r-part .r-work{margin-top:2.5mm;flex:none}
body.ref-sheet .r-part .r-answer{margin-top:2mm}
body.ref-sheet .r-hints{margin-top:2mm}
body.ref-sheet mjx-container[display="true"]{overflow-x:auto;overflow-y:hidden}
@media print{body.ref-sheet .r-part{break-inside:avoid}
body.ref-sheet .r-sec h2{break-after:avoid}
}
body.ref-sheet .r-qnum.r-ext{background:#a87a00}
body.ref-sheet .r-extbox{border-top:2px dashed #e0c070;margin-top:7mm;padding-top:2mm}
body.ref-sheet .r-extbox>.r-extlab{display:inline-block;font-weight:800;color:#a87a00;font-size:.9em;letter-spacing:.03em}
body.ref-sheet .r-scan{display:inline-block;font-size:.85em;font-style:normal;color:#b5541c;border:1px solid #f0c9ad;border-radius:4px;padding:0 4px;margin-left:3px}
body.ref-sheet .r-jaryo{border:1.2px solid var(--ink);border-radius:4px;padding:3mm 4mm 2mm;margin:4mm 0 3mm;position:relative}
body.ref-sheet .r-jaryo>.r-jt{position:absolute;top:-2.6mm;left:50%;transform:translateX(-50%);background:var(--paper);padding:0 3mm;font-size:.92em;font-weight:600;white-space:nowrap}
body.ref-sheet .r-jaryo p{margin:0 0 1.6mm}
body.ref-sheet .r-jaryo table{border-collapse:collapse;width:100%;font-size:.93em}
body.ref-sheet .r-jaryo td,body.ref-sheet .r-jaryo th{border:1px solid var(--line);padding:1.2mm 2mm;vertical-align:top}
body.ref-sheet .r-dlg{display:grid;grid-template-columns:auto 1fr;gap:1mm 3mm}
body.ref-sheet .r-dlg b{white-space:nowrap}
body.ref-sheet .r-ul{text-decoration:underline;text-underline-offset:2px}
body.ref-sheet .r-method{border:1.2px solid var(--ink);border-radius:4px;padding:3mm 4mm 2mm;margin:4mm 0 3mm;position:relative;background:#fbfbfd}
body.ref-sheet .r-method>.r-jt{position:absolute;top:-2.6mm;left:50%;transform:translateX(-50%);background:#fbfbfd;padding:0 3mm;font-size:.92em;font-weight:600}
body.ref-sheet .r-method ul{margin:0;padding-left:4.5mm;list-style:"◦ "}
body.ref-sheet .r-bogi{border:1.2px solid var(--ink);border-radius:3px;padding:3mm 4mm 1.5mm;margin:3mm 0;position:relative}
body.ref-sheet .r-bogi>.r-jt{position:absolute;top:-2.6mm;left:50%;transform:translateX(-50%);background:var(--paper);padding:0 3mm;font-size:.92em}
body.ref-sheet .r-bogi ol{list-style:none;margin:0;padding:0}
body.ref-sheet .r-bogi li{padding-left:5mm;text-indent:-5mm;margin-bottom:1.2mm}
body.ref-sheet .r-choices{display:grid;grid-template-columns:repeat(var(--cols,5),minmax(0,1fr));gap:1.5mm 4mm;margin:3mm 0 2mm;padding-left:1mm}
body.ref-sheet .r-choices.r-tbl{grid-template-columns:auto repeat(var(--cols,2),minmax(0,1fr));gap:1mm 6mm}
body.ref-sheet .r-choices .r-h{font-weight:600;text-decoration:underline;text-underline-offset:2px;text-align:center}
body.ref-sheet .r-choices .r-c{text-align:center}
body.ref-sheet .r-omr{display:flex;align-items:center;gap:3mm;margin-top:2mm;font-size:.95em}
body.ref-sheet .r-omr span.r-b{display:inline-grid;place-items:center;width:7mm;height:7mm;border:1.3px solid var(--accent);border-radius:50%;color:var(--accent);font-weight:700;cursor:pointer;user-select:none}
body.ref-sheet .r-omr span.r-b.r-on{background:var(--accent);color:#fff}
body.ref-sheet .r-mcq{border-top:1.5px solid var(--line);padding-top:4mm;margin-top:6mm;break-inside:avoid}
body.ref-sheet .r-mcq:first-of-type{border-top:0;margin-top:3mm}
body.ref-sheet .r-mcq .r-qh{font-weight:700}
body.ref-sheet .r-bridge{display:none;margin-top:3mm;border:1px solid #e7b55a;border-left:4px solid #e0a020;border-radius:6px;padding:2mm 4mm;font-size:calc(9.2pt*var(--fs));background:#fff9ec}
body.ref-sheet .r-bridge.r-on{display:block}
body.ref-sheet .r-bridge b{color:#9a6400}
body.ref-sheet .r-bridge ul{margin:1mm 0 0;padding-left:5mm}
body.ref-sheet .r-sw.r-brg{--c:#d08a00}
body.ref-sheet .r-aud{font-size:calc(8pt*var(--fs));border:1px solid var(--accent);color:var(--accent);border-radius:20px;padding:1px 9px;font-weight:700}

