/* 은쌤은 이상해C — 공통 스타일 (Apple 다크 타일 디자인 언어) */
:root {
  color-scheme: dark;
  --bg: #000000;
  --tile: #1C1C1E;
  --tile-2: #2C2C2E;
  --card: rgba(28, 28, 30, .9);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .14);
  --fill: rgba(255, 255, 255, .06);
  --ink: #FFFFFF;
  --ink-2: #CCCCCC;
  --ink-3: #A1A1A6;
  --ink-4: #6E6E73;
  --blue: #2997FF;      /* 링크·강조 글자 */
  --blue-fill: #0071E3; /* 버튼 바탕 */
  --good: #30D158;
  --bad: #FF453A;
  --bad-2: #FF6961;
  --warn: #FF9F0A;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --gutter: max(20px, calc((100% - 760px) / 2));
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a, button { transition: transform .12s ease; }
a:active, button:active { transform: scale(.97); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--blue-fill); outline-offset: 2px; }
img { display: block; }

/* 별 배경 */
#sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 60% at 100% 0%, #0f3b44 0%, rgba(6,20,26,0) 62%), radial-gradient(90% 50% at 0% 60%, #0b2c33 0%, rgba(6,20,26,0) 70%), #06141A; }
#sky i { position: absolute; border-radius: 50%; }
#sky i.tw { animation: tw var(--d) ease-in-out var(--dl) infinite; }
#sky b { position: absolute; width: 130px; height: 1.6px; border-radius: 2px; transform-origin: left center;
  background: linear-gradient(90deg, rgba(255,250,235,1) 0%, rgba(255,240,200,.55) 30%, rgba(255,240,200,0) 100%);
  box-shadow: 0 0 6px rgba(255,245,220,.8); transform: rotate(-32deg);
  transition: transform 1.1s cubic-bezier(.3,.1,.7,1), opacity 1.1s ease-in; }
@keyframes tw { 0%, 100% { opacity: var(--o); } 50% { opacity: calc(var(--o) * .25); } }
@media (prefers-reduced-motion: reduce) { #sky i.tw { animation: none; } #sky b { display: none; } a:active, button:active { transform: none; } }

/* 화면 틀 */
#app { position: relative; z-index: 1; }
.page { padding: calc(env(safe-area-inset-top, 0px) + 48px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px); display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.h1 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.4px; }
.h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
.eyebrow { font-size: 13px; color: var(--ink-3); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pad-only { display: none !important; }
.phone-only { }
@media (min-width: 600px) {
  .pad-only { display: revert !important; }
  .phone-only { display: none !important; }
}

/* 머리줄 */
.back { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--fill); border: 1px solid rgba(255,255,255,.1); color: var(--ink); }
.head-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* 버튼·칩 */
.btn { height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--blue-fill); color: #fff; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.btn.ghost { background: transparent; border: 1px solid rgba(41,151,255,.6); color: var(--blue); }
.btn.quiet { background: var(--fill); border: 1px solid var(--line-2); color: var(--ink); }
.chip { height: 28px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.seg { padding: 4px; border-radius: var(--r-md); background: var(--fill); display: grid; gap: 4px; }
.seg button { height: 44px; border: 0; border-radius: 9px; background: transparent; color: #A9C0C3; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: #000; }

/* ── 첫 화면 ── */
.hello img { width: 46px; height: 46px; border-radius: var(--r-md); object-fit: cover; }
.week-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.week-head .big { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { color: var(--ink); border-radius: var(--r-lg); padding: 14px; display: flex; align-items: stretch; gap: 10px; }
.tile.done { background: rgba(48,209,88,.12); border: 1px solid rgba(48,209,88,.4); }
.tile.open { background: rgba(255,159,10,.10); border: 1px solid rgba(255,159,10,.4); }
.tile.miss { background: rgba(255,69,58,.10); border: 1px solid rgba(255,69,58,.4); }
.tile .tl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tile .name { font-size: 13.5px; font-weight: 600; }
.tile .state { height: 28px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.tile .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.tile.done .dot { background: var(--good); color: #000; }
.tile.done .state { color: var(--good); }
.tile.open .dot { border: 2px solid var(--warn); }
.tile.open .state { color: var(--warn); }
.tile.miss .dot { border: 2px solid var(--bad); }
.tile.miss .state { color: var(--bad); }
.tile .mid { height: 36px; display: flex; align-items: center; gap: 3px; white-space: nowrap; font-size: 13.5px; color: var(--ink-3); }
.tile .score { font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -1px; color: var(--ink); }
.tile .frac { margin-left: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.tile .go { margin-top: auto; font-size: 12.5px; font-weight: 600; }
.tile.done .go { color: var(--good); }
.tile.open .go { color: var(--warn); }
.tile.miss .go { color: var(--bad); }
.sign { position: relative; width: 124px; height: 124px; flex: none; align-self: center; }
.sign img { width: 100%; height: 100%; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.sign span { position: absolute; display: flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: -0.5px; color: #1F4A34; line-height: 1; font-size: 21px; }
.shock { width: 116px; height: 116px; flex: none; align-self: center; margin: -6px -4px -6px 0; }
.sumlink { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; color: var(--ink); }
.sumlink b { font-weight: 600; }
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; align-items: start; }
.late-box { border-radius: var(--r-lg); overflow: hidden; background: rgba(40,16,18,.55); border: 1px solid rgba(255,69,58,.25); }
.late-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; color: var(--ink); min-height: 48px; }
.late-row + .late-row { border-top: 1px solid rgba(255,69,58,.18); }
.late-row img { width: 66px; height: 66px; margin: -5px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.late-go { flex: none; display: flex; align-items: center; gap: 2px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bad); color: #fff; }
.empty-ok { padding: 16px; border-radius: var(--r-lg); background: rgba(48,209,88,.10); border: 1px solid rgba(48,209,88,.3); color: var(--good); font-size: 14px; font-weight: 600; }
.subj { position: relative; display: block; padding-top: 34px; color: var(--ink); }
.subj .box { position: relative; display: block; height: 160px; border-radius: var(--r-lg); overflow: hidden; background: var(--tile); border: 1px solid rgba(255,255,255,.12); }
.subj .glow { position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -60px; top: -40px; }
.subj .t { position: absolute; left: 22px; top: 20px; font-size: 22px; font-weight: 600; letter-spacing: -0.5px; }
.subj .chips { position: absolute; left: 22px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.subj > img { position: absolute; right: -8px; bottom: 4px; height: 186px; width: auto; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.subj.soon .box { opacity: .55; }
.subj .soon-tag { position: absolute; left: 22px; top: 54px; font-size: 12px; color: var(--ink-3); }

/* ── 심화영어 ── */
.search-bar { display: flex; align-items: center; gap: 10px; height: 56px; margin-top: 14px; border-radius: 999px; padding: 0 12px 0 20px; background: #fff; color: #5c7176; }
.search-bar .t1 { font-size: 15px; font-weight: 600; color: #1D1D1F; }
.search-bar .t2 { font-size: 12.5px; }
.search-bar img { width: 84px; height: 84px; flex: none; margin: -34px -2px 0 0; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.big-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.big-tile { position: relative; height: 212px; border-radius: var(--r-lg); overflow: hidden; color: var(--ink); background: var(--tile); border: 1px solid var(--line-2); display: flex; flex-direction: column; padding: 18px; }
.big-tile .n { font-size: 30px; font-weight: 600; line-height: 1; }
.big-tile .n small { color: var(--ink-4); font-size: 19px; }
.big-tile .t { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.3; }
.big-tile .s { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.big-tile .txt { position: relative; margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.big-tile .art { position: absolute; pointer-events: none; }
.big-tile .art.sim { right: -2px; top: 20px; width: 100px; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
.big-tile .art.mock { right: -6px; top: 2px; width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
@media (min-width: 600px) {
  .big-tile .txt { max-width: 52%; }
  .big-tile .art.sim { width: 160px; right: 6px; top: 42px; }
  .big-tile .art.mock { width: 172px; height: 172px; right: 4px; top: 20px; }
}
.list { border-radius: var(--r-lg); overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); }
.list-row + .list-row { border-top: 1px solid rgba(255,255,255,.06); }
.pchip { min-width: 58px; height: 30px; padding: 0 8px; flex: none; border-radius: 10px; background: rgba(41,151,255,.12); color: var(--blue); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.pchip.off { background: var(--fill); color: var(--ink-3); }

/* ── 지문 목록 ── */
.sheet { flex: 1; background: rgba(28,28,30,.82); border-radius: 18px 18px 0 0; border-top: 1px solid rgba(255,255,255,.08); margin: 0 calc(-1 * var(--gutter)); padding: 20px var(--gutter) 24px; display: flex; flex-direction: column; gap: 16px; }
.units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.unit { position: relative; min-height: 64px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.unit .u1 { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; }
.unit .u2 { font-size: 11.5px; font-weight: 600; opacity: .75; }
.unit.none { background: rgba(255,255,255,.02); color: var(--ink-4); }
.unit[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.unit .new { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.prow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; }
.prow + .prow { border-top: 1px solid rgba(255,255,255,.06); }
.prow.off { opacity: .45; }
.prow .info { flex: 1 1 250px; min-width: 0; display: flex; align-items: center; gap: 12px; }
.prow .topic { font-size: 14.5px; line-height: 1.35; }
.prow .btns { flex: 1 1 280px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.prow .btns a { height: 40px; border-radius: 999px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.prow .btns a.b1 { background: var(--blue-fill); color: #fff; }
.prow .btns a.b2, .prow .btns a.b3 { border: 1px solid rgba(41,151,255,.6); color: var(--blue); }

/* ── 검색 ── */
.sbox { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; border-radius: 999px; padding: 0 18px; background: #fff; }
.sbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: #1D1D1F; outline: none; }
.hit { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.hit mark { background: rgba(41,151,255,.24); color: #8EC5FF; border-radius: 4px; padding: 0 2px; font-weight: 600; }

/* ── 준비 중 ── */
.wip { padding: 28px 20px; border-radius: var(--r-lg); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wip img { width: 120px; height: 120px; object-fit: contain; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pchip.cum { background: rgba(48,209,88,.12); color: var(--good); }
.re-btn { align-self: flex-start; display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 12px; border-radius: 999px; background: #0071E3; color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.re-btn small { font-size: 11.5px; font-weight: 500; opacity: .85; }
.re-btn.sm { align-self: flex-end; padding: 4px 10px; font-size: 12.5px; }
.tile .re-btn { margin-top: auto; }
/* 단어 훈련 */
.train-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; color: var(--ink); }
.train-bar img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.wtools { display: flex; gap: 8px; flex-wrap: wrap; }
.wt { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--fill); color: var(--ink); font: 600 13.5px/1 inherit; font-family: inherit; cursor: pointer; }
.wt.on { background: #0071E3; border-color: #0071E3; color: #fff; }
.wt b { font-weight: 600; opacity: .8; margin-left: 2px; }
.wgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .wgrid { grid-template-columns: 1fr 1fr; } }
.wcard { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 86px; padding: 16px 44px 14px 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.wcard:active { transform: scale(.985); }
.wen { font-size: 20px; font-weight: 600; letter-spacing: -0.2px; color: var(--ink); }
.wkr { display: none; font-size: 15px; line-height: 1.55; color: var(--blue); }
.wkr .sep { color: var(--ink-4); }
.whint { font-size: 12.5px; color: var(--ink-4); }
.wcard.open .wkr { display: block; }
.wcard.open .whint { display: none; }
.wcard.open { border-color: rgba(41,151,255,.35); }
.wstar { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--ink-4); font-size: 19px; cursor: pointer; }
.wstar.on { color: var(--warn); }
/* 능률VOCA 두 칸: 휴대폰은 위아래, 패드는 나란히 */
@media (max-width: 599px) {
  .vhub { grid-template-columns: 1fr; }
  .vhub .big-tile { height: 150px; justify-content: center; }
  .vhub .big-tile .txt { margin-top: 0; max-width: 58%; gap: 6px; }
  .vhub .big-tile .t { font-size: 19px; }
  .vhub .big-tile .s { font-size: 13px; }
  .vhub .big-tile .art.mock { width: 138px; height: 138px; right: 8px; top: 6px; }
}
@media (min-width: 600px) {
  .vhub .big-tile .t { font-size: 22px; }
  .vhub .big-tile .s { font-size: 14px; }
}
.wseg { display: flex; padding: 3px; border-radius: 12px; background: var(--fill); border: 1px solid var(--line); }
.wseg button { flex: 1; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--ink-3); font: 600 13.5px/1 inherit; font-family: inherit; cursor: pointer; }
.wseg button.on { background: #2C2C2E; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.wseg b { color: var(--warn); font-weight: 600; margin-left: 3px; }
.wday { font-size: 11.5px; font-weight: 600; color: var(--ink-4); }
.big-tile .art.teach { right: -4px; top: 6px; width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
@media (min-width: 600px) { .big-tile .art.teach { width: 176px; height: 176px; right: 2px; top: 14px; } }
.big-tile .mstat { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.big-tile .mstat b { font-weight: 700; }
@media (max-width: 599px) { .big-tile .art.mock { width: 96px; height: 96px; right: -4px; top: 0; } .big-tile .art.teach { width: 104px; height: 104px; top: 2px; } }
/* 심화영어 두 칸: 최근 수업 지문 목록과 같은 반투명 배경·얇은 프레임, 그림은 같은 크기로 오른쪽 위 */
.stiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stile { display: flex; flex-direction: column; padding: 14px 16px 16px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); color: var(--ink); }
.stile:active { transform: scale(.985); }
.stile .sart { display: flex; align-self: flex-end; width: 118px; height: 118px; justify-content: flex-end; align-items: flex-start; margin: -2px -4px 8px 0; }
.stile .sart img { width: 100%; height: 100%; object-fit: contain; object-position: right top; filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
.stile .st { font-size: 17px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.25; white-space: nowrap; }
.stile .sinfo { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; min-height: 38px; font-size: 13px; font-weight: 500; color: var(--ink-3); line-height: 1.4; }
.stile .sinfo b { font-weight: 700; }
.stile .sinfo b.g { color: var(--good); }
.stile .sinfo b.r { color: var(--bad); }
@media (min-width: 600px) {
  .stile { padding: 18px 22px 20px; }
  .stile .sart { width: 170px; height: 170px; }
  .stile .st { font-size: 21px; }
  .stile .sinfo { font-size: 14.5px; min-height: 44px; }
}
.pchip.wide { min-width: 76px; }
/* 능률VOCA 두 칸도 목록과 같은 반투명 배경·얇은 프레임 */
.vhub .big-tile { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.vhub .big-tile .art.mock { filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
/* 동형 모의고사 한 시험 화면 */
.exam-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
.exam-card img { width: 84px; height: 84px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.ebtn { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--ink); }
.ebtn.pri { background: #0071E3; border-color: #0071E3; }
.ebtn .et { font-size: 17px; font-weight: 700; }
.ebtn .es { font-size: 13px; color: var(--ink-3); }
.ebtn.pri .es { color: rgba(255,255,255,.85); }
.ebtn:active { transform: scale(.985); }
@media (min-width: 600px) { .exam-acts { flex-direction: row; } }
/* 불러오는 중 표시 */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2.4px solid rgba(255,255,255,.25); border-top-color: var(--blue); animation: spin .8s linear infinite; }
#loading { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(28,28,30,.92); color: #F5F5F7; font-size: 13.5px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#loading[hidden] { display: none; }
.boot { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--ink-3); font-size: 14px; }
.boot img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.boot .spin { width: 22px; height: 22px; }
.loadcard { display: flex; align-items: center; gap: 12px; padding: 16px; font-size: 14.5px; color: var(--ink-2); }
/* 혼자 공부하기 칸 */
.study-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
.study-bar .sb-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(41,151,255,.15); display: flex; align-items: center; justify-content: center; font-size: 20px; }
/* 내 복습(개인시험) */
.pchip.star { background: rgba(255,159,10,.14); color: var(--warn); font-size: 15px; }
button.study-bar { width: 100%; font: inherit; color: var(--ink); cursor: pointer; text-align: left; border-style: solid; border-width: 1px; }
button.study-bar:disabled { opacity: .5; cursor: default; }
.mk-star .sb-ic { background: rgba(255,159,10,.16); color: var(--warn); }
.me-link .sb-ic { background: rgba(255,69,58,.14); }
/* 은쌤에게 묻기 */
.ask-bar { display: flex; gap: 10px; }
.ask-btn { flex: 1; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; color: var(--ink); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.ask-btn .ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; }
.ask-btn.ig .ic { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.ask-btn.kt .ic { background: #FEE500; }
.ask-btn b { font-size: 15px; font-weight: 700; }
.ask-btn small { font-size: 12px; color: var(--ink-3); }
/* 맛보기 */
.demo-ban { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); background: rgba(41,151,255,.1); border-color: rgba(41,151,255,.35); }
.demo-ban b { color: var(--blue); font-size: 14.5px; }
.lock { flex: none; font-size: 17px; opacity: .8; }
.list-row.locked { opacity: .5; }
.list-row.locked::after { content: '🔒'; flex: none; font-size: 16px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* 나만의 시험지(내 복습) */
.mx .units { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mx .unit { min-height: 56px; }
.mx .unit:disabled { cursor: default; }
.mx-row, .mx-picked { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-no { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--blue-fill); color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.mxc { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); font: 600 14px/1 inherit; font-family: inherit; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.mxc small { font-size: 12px; font-weight: 600; opacity: .7; }
.mxc.on { background: #fff; color: #000; border-color: #fff; }
.mxc .x { font-size: 15px; opacity: .55; }
.mxc:disabled { color: var(--ink-4); background: rgba(255,255,255,.02); cursor: default; }
.mx .btn:disabled { background: var(--fill); color: var(--ink-3); cursor: default; }
.mx .mx-units { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mx .mx-units .unit { min-height: 52px; padding: 8px 6px; align-items: center; text-align: center; border-radius: 14px; }
.mx .mx-units .u1 { font-size: 15px; }
.mx .mx-units .u2 { font-size: 10px; letter-spacing: -.4px; white-space: nowrap; max-width: 100%; overflow: hidden; }
@media (max-width: 370px) { .mx .mx-units .u2 { font-size: 9px; } }
a.study-bar { color: var(--ink); }
.mxc.mx-all { margin-left: auto; min-height: 30px; padding: 0 12px; font-size: 12.5px; }
