/* 수학 쌍둥이 문제 생성기 — 공통 디자인 (편집기 스타일은 editor.css) */
:root {
  --bg: #f4f5f8; --panel: #ffffff; --sunken: #f8f9fb; --line: #e4e7ec; --line-strong: #d0d5dd;
  --text: #15181e; --text-2: #3f4652; --muted: #6b7280;
  --primary: #3b5bfd; --primary-dark: #2a46d6; --primary-weak: #eef1ff;
  --ok: #12925a; --ok-weak: #e7f6ee; --bad: #d4343a; --bad-weak: #fdecec; --warn: #b26a00; --warn-weak: #fff5e5;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px -2px rgba(16, 24, 40, .06); --shadow-lg: 0 4px 10px -2px rgba(16, 24, 40, .06), 0 14px 30px -8px rgba(16, 24, 40, .12);
  --field: #ffffff; --paper: #ffffff; --chip: #eef0f4; --hover: #fafbff; --faint: #c3c8d4; --primary-line: #c7d2fe;
  --type-bg: #f1effd; --type-fg: #5b3fd1; --warn-line: #f6dfb5; --warn-fg: #6b4a10; --ok-line: #dcefe4; --bad-line: #f6d4d5;
  --glow-1: #e8ecff; --glow-2: #efe7ff; --styled-line: #f1c98a; --styled-glow: #fff4e3; --stripe-1: #fafbfc; --stripe-2: #f4f6f9;
  --veil: rgba(255,255,255,.88); --login-1: #dbe6ff; --login-2: #eadfff; --login-3: #d9f4ff; --code-bg: #0f172a;
  color-scheme: light;
  --side-w: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; font-weight: normal; }
.error { color: var(--bad); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 틀 --- */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; gap: 18px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #4f6cff, #7c4dff); display: grid; place-items: center; color: #fff; }
.brand b { display: block; font-size: 15px; line-height: 1.2; }
.brand small { color: var(--muted); font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; padding: 10px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 14px; }
.nav a:hover { background: var(--sunken); text-decoration: none; color: var(--text); }
.nav a.on { background: var(--primary-weak); color: var(--primary-dark); font-weight: 600; }
.nav a svg { flex: none; opacity: .85; }
.nav a .ext { margin-left: auto; opacity: .5; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.side-foot .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); }
.side-foot .row b { color: var(--text); font-weight: 600; }
.side-foot a { color: var(--muted); }
.model-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.model-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.model-chip.mock i { background: var(--warn); }

.main { min-width: 0; padding: 26px 32px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 22px; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: inline-flex; gap: 6px; align-items: center; }
.crumb a { color: var(--muted); }

.topbar-m { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .side { transform: none; }
  .topbar-m { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  .topbar-m button { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 6px 8px; display: grid; place-items: center; color: var(--text); }
  .main { padding: 18px 16px 50px; }
}

/* ------------------------------------------------------------ 부품 --- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 18px 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--sunken); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--sunken); }
.btn.danger { border-color: var(--bad-line); color: var(--bad); }
.btn.danger:hover:not(:disabled) { background: var(--bad-weak); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn.on { background: var(--primary-weak); border-color: var(--primary-line); color: var(--primary-dark); }
.link { border: 0; background: none; color: var(--primary); cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
.link:hover { text-decoration: underline; }

.input, .select, textarea.input { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 12px; font: inherit; font-size: 14px; background: var(--field); color: var(--text); }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 91, 253, .14); }
textarea.input { resize: vertical; line-height: 1.6; }
.select { width: auto; padding-right: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field > span small { font-weight: 400; color: var(--muted); margin-left: 4px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--sunken); color: var(--text-2); white-space: nowrap; }
.badge.ok, .vbadge.ok { background: var(--ok-weak); color: var(--ok); }
.badge.bad, .vbadge.bad { background: var(--bad-weak); color: var(--bad); }
.badge.warn, .vbadge.warn { background: var(--warn-weak); color: var(--warn); }
.badge.info, .badge.run, .vbadge.run { background: var(--primary-weak); color: var(--primary-dark); }
.badge.none, .vbadge.none { background: var(--chip); color: var(--muted); }
.vbadge { white-space: nowrap; display: inline-flex; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.type-badge { white-space: nowrap; display: inline-flex; font-size: 12px; font-weight: 550; background: var(--type-bg); color: var(--type-fg); padding: 2px 9px; border-radius: 999px; }
.edited-badge { display: inline-flex; font-size: 12px; background: var(--primary-weak); color: var(--primary-dark); border-radius: 999px; padding: 2px 9px; font-weight: 600; }

.seg { display: inline-flex; background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; font: inherit; font-size: 13px; border-radius: 7px; cursor: pointer; color: var(--text-2); }
.seg button.on { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 10px 12px; background: var(--sunken); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table.hover tbody tr { cursor: pointer; }
.table.hover tbody tr:hover td { background: var(--hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .from { color: var(--bad); text-decoration: line-through; }
.table .to { color: var(--ok); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.pager-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager { display: flex; gap: 4px; align-items: center; }
.pager button { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; color: var(--text-2); }
.pager button:hover:not(:disabled):not(.on) { border-color: var(--primary); color: var(--primary); }
.pager button.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; cursor: default; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .gap { color: var(--muted); padding: 0 2px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { color: var(--faint); margin-bottom: 10px; }
.empty b { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 4px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat b { display: block; font-size: 22px; font-weight: 700; margin-top: 2px; letter-spacing: -0.02em; }
.stat.ok b { color: var(--ok); } .stat.bad b { color: var(--bad); } .stat.info b { color: var(--primary-dark); }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 32px; width: 240px; }

/* ------------------------------------------------------ 새 문제 화면 --- */
.compose { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 20px; align-items: start; }
.compose .card.sticky { position: sticky; top: 20px; }
@media (max-width: 1100px) { .compose { grid-template-columns: 1fr; } .compose .card.sticky { position: static; } }
.drop { border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; background: var(--sunken); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-weak); }
.drop img { max-width: 100%; max-height: 260px; display: block; margin: 0 auto 8px; border-radius: 6px; }
.drop .hint { font-size: 13px; }
.form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.progress { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--primary-line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------- 결과 상세 --- */
.job-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.job-head h1 { font-size: 21px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.job-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.job-meta .dot { width: 3px; height: 3px; background: var(--faint); border-radius: 50%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.pair.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pair, .pair.three { grid-template-columns: 1fr; } }
.pair .tool-tag { font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); margin-left: 4px; }
.pair .card-head h2 .tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--sunken); color: var(--muted); }
.pair .twin .card-head h2 .tag { background: var(--primary-weak); color: var(--primary-dark); }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-size: .82em; line-height: 1.15; margin: 0 .12em; }
.frac > span { padding: 0 .18em; }
.frac > span:first-child { border-bottom: 1px solid currentColor; }
.ov { text-decoration: overline; }
.mark-arc, .mark-line { position: relative; display: inline-block; }
.mark-arc::before, .mark-line::before { position: absolute; left: 0; right: 0; top: -.62em; text-align: center; font-size: .8em; line-height: 1; }
.mark-arc::before { content: "⌒"; }
.mark-line::before { content: "↔"; }
.prob-text { white-space: pre-wrap; line-height: 1.75; font-size: 14.5px; }
.prob-imgs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.prob-imgs figure { margin: 0; position: relative; max-width: 100%; }
.prob-imgs img { display: block; max-width: 100%; height: 240px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 6px; }
.prob-imgs.many img { height: 150px; }
.prob-imgs figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
.prob-imgs .twin-fig img { border-color: var(--primary-line); }
.fig-edit.sm { top: 8px; right: 8px; padding: 4px 10px; font-size: 12px; opacity: 0; transition: opacity .15s; }
.prob-imgs figure:hover .fig-edit.sm, .fig-edit.sm:focus { opacity: 1; }
@media (hover: none) { .fig-edit.sm { opacity: 1; } }
.choices { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.answer-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 12px; background: var(--ok-weak); color: var(--ok); border-radius: 9px; font-weight: 650; }
.answer-chip small { color: var(--muted); font-weight: 500; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--muted); padding: 12px 12px 11px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tabs .count { font-size: 11px; background: var(--sunken); border-radius: 999px; padding: 0 7px; color: var(--muted); }
.tabs button.on .count { background: var(--primary-weak); color: var(--primary-dark); }
.tabs .count.bad { background: var(--bad-weak); color: var(--bad); }
.tab-panel { padding: 20px; }
.tab-panel h3 { font-size: 14px; margin: 18px 0 8px; color: var(--text-2); }
.tab-panel h3:first-child { margin-top: 0; }

.figgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.figcard { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.figcard .img { flex: 1; display: grid; place-items: center; padding: 10px; min-height: 200px; background: var(--paper); }
.figcard img { max-width: 100%; max-height: 300px; display: block; }
.figcard .cap { padding: 9px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); background: var(--sunken); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.figcard .cap .muted { font-size: 12px; }
.figcard.twin { border-color: var(--primary-line); box-shadow: 0 0 0 3px var(--primary-weak); }
.figcard .none { color: var(--muted); font-size: 12.5px; }
.fig-section { margin-bottom: 18px; }
.fig-section > .fig-title { font-size: 13px; font-weight: 650; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.fig-edit { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(59, 91, 253, .35); }
.fig-edit:hover { background: var(--primary-dark); }
.cap-more { width: 100%; }
.cap-more summary { cursor: pointer; color: var(--primary); }

.kv { display: grid; grid-template-columns: 120px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kv > div { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv .k { background: var(--sunken); color: var(--muted); font-weight: 600; font-size: 12.5px; }
.note-box { white-space: pre-wrap; background: var(--warn-weak); border: 1px solid var(--warn-line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--warn-fg); }
.sol-text { white-space: pre-wrap; line-height: 1.8; font-size: 14px; }
.sol-block { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sol-block h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
pre.code { background: var(--code-bg); color: #e2e8f0; border-radius: 10px; padding: 14px; font-size: 12px; max-height: 420px; overflow: auto; white-space: pre-wrap; }
details.code-details summary { cursor: pointer; color: var(--muted); font-size: 13px; margin: 14px 0 8px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; border: 1px solid transparent; }
.checks li > i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; font-style: normal; margin-top: 1px; }
.checks li.ok { background: var(--ok-weak); border-color: var(--ok-line); } .checks li.ok > i { background: var(--ok); }
.checks li.bad { background: var(--bad-weak); border-color: var(--bad-line); } .checks li.bad > i { background: var(--bad); }
.checks li small { display: block; color: var(--muted); font-size: 12.5px; word-break: break-all; }
.checks li.none { color: var(--muted); }
.verify-sum { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding: 14px 16px; border-radius: 10px; background: var(--sunken); }
.verify-sum b { font-size: 15px; }
.verify-sum p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.feedback { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feedback .input { flex: 1; min-width: 220px; }

/* --------------------------------------------------------- 문제집 --- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.bcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.bcard:hover { box-shadow: var(--shadow-lg); }
.bcard header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bcard header .vbadge { margin-left: auto; }
.bcard header b { font-size: 14px; }
.bfigs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; color: inherit; }
.bfigs:hover { text-decoration: none; }
.bfigs figure { margin: 0; position: relative; }
.bfigs img { width: 100%; height: 150px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; display: block; }
.bfigs figcaption { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 3px; }
.bfigs .noimg { height: 150px; display: grid; place-items: center; color: var(--muted); font-size: 12px; border: 1px dashed var(--line-strong); border-radius: 8px; }
.bfigs .more { position: absolute; right: 6px; top: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.btext { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btext .lbl { display: inline-block; font-size: 11px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.bcard footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------- 방법론 --- */
.prompt-block { margin-bottom: 18px; }
.prompt-block .card-head .btn { margin-left: auto; }
.prompt-block pre { margin: 0; border-radius: 0 0 var(--radius) var(--radius); max-height: 520px; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.flow .step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: relative; }
.flow .step b { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.flow .step b i { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-weak); color: var(--primary-dark); display: grid; place-items: center; font-size: 12px; font-style: normal; }
.flow .step p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------- 로그인 --- */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; overflow-x: hidden; position: relative;
  background: radial-gradient(900px 520px at 12% -8%, var(--login-1), transparent 70%), radial-gradient(800px 520px at 108% 108%, var(--login-2), transparent 70%),
              radial-gradient(500px 360px at 90% 0%, var(--login-3), transparent 70%), var(--bg); }
.login-deco { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.login-deco span { position: absolute; font-size: 44px; font-weight: 700; color: var(--primary); opacity: .07; animation: login-float 9s ease-in-out infinite; }
.login-deco span:nth-child(2n) { animation-delay: -3s; font-size: 34px; } .login-deco span:nth-child(3n) { animation-delay: -6s; font-size: 56px; }
@keyframes login-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(8deg); } }
.login-wrap { position: relative; width: min(400px, 100%); display: flex; flex-direction: column; align-items: center; }
.login-friends { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-bottom: -18px; position: relative; z-index: 2; }
.login-friends .friend { height: 96px; width: auto; filter: drop-shadow(0 6px 10px rgba(16, 24, 40, .14)); transform-origin: 50% 100%;
  animation: friend-in .6s cubic-bezier(.3, 1.5, .5, 1) both, friend-bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .12s), calc(.6s + var(--i) * .4s); }
.login-friends .friend.round { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid var(--panel); }
.login-friends .friend:hover { animation-play-state: paused; transform: translateY(-6px) rotate(-6deg); transition: transform .2s; }
@keyframes friend-in { from { opacity: 0; transform: translateY(24px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes friend-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.login-box { position: relative; z-index: 1; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 38px 30px 26px;
  box-shadow: 0 24px 60px -20px rgba(59, 91, 253, .28), 0 2px 6px rgba(16, 24, 40, .05); overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.login-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #6aa8ff, var(--primary), #9b7bff); }
.login-box .brand { padding: 0; justify-content: center; }
.login-hello { text-align: center; margin: 2px 0 4px; }
.login-hello h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.login-hello p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.login-err { margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--bad-weak); border: 1px solid var(--bad-line); color: var(--bad); font-size: 13px; }
.pw-mask { -webkit-text-security: disc; text-security: disc; font-family: text-security-disc, inherit; }
.login-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field-wrap { position: relative; display: block; }
.field-wrap > svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field-wrap .input { width: 100%; height: 46px; padding-left: 40px; border-radius: 12px; background: var(--sunken); font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
.field-wrap .input:focus { background: var(--field); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-weak); outline: none; }
.field-wrap:focus-within > svg { color: var(--primary); }
.field-wrap #login-pw { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye svg { width: 18px; height: 18px; } .pw-eye:hover { background: var(--chip); } .pw-eye.on { color: var(--primary); }
.login-go { margin-top: 6px; height: 48px; border-radius: 12px; font-size: 15.5px; background: linear-gradient(135deg, #5b7cff, var(--primary-dark)); border: 0; box-shadow: 0 8px 18px -8px rgba(59, 91, 253, .7); transition: transform .12s, box-shadow .12s; }
.login-go:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -8px rgba(59, 91, 253, .75); }
.login-go:disabled { opacity: .7; transform: none; }
.login-foot { margin: 2px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.login-box.shake { animation: login-shake .4s; }
@keyframes login-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@media (prefers-reduced-motion: reduce) { .login-deco span, .login-friends .friend, .login-box.shake { animation: none; } }
@media (max-width: 420px) { .login-friends .friend { height: 76px; } .login-friends .friend.round { width: 72px; height: 72px; } .login-box { padding: 32px 20px 22px; } }
.nav-scrim { display: none; }
@media (max-width: 900px) { body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(16,24,40,.35); z-index: 15; } }
.job-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.job-nav .crumb { margin: 0; }
.stepper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stepper .btn { gap: 8px; }
.stepper .btn .muted { font-weight: 500; }
.stepper .pos { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 70px; text-align: center; }
.figcard.styled { border-color: var(--styled-line); box-shadow: 0 0 0 3px var(--styled-glow); }
.figcard.styled-empty .img { background: repeating-linear-gradient(135deg, var(--stripe-1) 0 10px, var(--stripe-2) 10px 20px); }
.styled-cta { max-width: 240px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.styled-cta b { font-size: 14px; }
.styled-cta p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.stylize-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line-strong); background: var(--sunken); border-radius: 10px; font-size: 13px; }
.stylize-bar > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.stylize-bar span { color: var(--muted); font-size: 12.5px; }
.stylize-bar small { flex-basis: 100%; }
.busy-veil { position: absolute; inset: 0; z-index: 3; background: var(--veil); display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.busy-veil small { color: var(--muted); font-size: 12px; }
.diffs { margin: 6px 0 0; padding-left: 18px; color: var(--bad); }
.fig-toggle button { font-size: 12.5px; }
.style-notes { display: grid; grid-template-columns: 56px 1fr; gap: 4px 8px; margin: 6px 0 0; font-size: 12px; }
.style-notes dt { color: var(--muted); font-weight: 600; }
.style-notes dd { margin: 0; color: var(--text-2); }
.section-title { font-size: 16px; margin: 28px 0 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }

/* 계정 */
.side-foot .account { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -4px; border-radius: 10px; background: var(--sunken); }
.side-foot .avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-weak); color: var(--primary-dark); }
.side-foot .who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.side-foot .who b { color: var(--text); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who small { color: var(--muted); font-size: 11.5px; }
.side-foot .logout { font-size: 12px; white-space: nowrap; }
/* 즐겨찾기 */
.star-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--muted); border-radius: 6px; }
.star-btn svg { fill: none; }
.star-btn:hover { color: #e0a100; }
.star-btn.on { color: #e0a100; }
.star-btn.on svg { fill: currentColor; }
.star-btn.btn { padding: 6px 10px; border: 1px solid var(--line); background: var(--panel); }
.table .star-col { width: 36px; padding-right: 0; }
/* 정렬 */
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table th.sorted { color: var(--primary-dark); }
.table th.sortable::after { content: attr(data-arrow); margin-left: 4px; }
.side-foot .avatar { overflow: hidden; background: #6fd3ff; }
.side-foot .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 원본 그림체 그림 자세히 보기 */
.styled-more { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 13px; }
.styled-more > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--text); list-style: none; display: flex; gap: 6px; align-items: center; }
.styled-more > summary::-webkit-details-marker { display: none; }
.styled-more > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.styled-more[open] > summary::before { transform: rotate(90deg); }
.styled-more > summary .muted { font-weight: 400; font-size: 12px; }
.styled-more-body { padding: 4px 14px 14px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.styled-more-body section { padding-top: 10px; }
.styled-more-body h4 { margin: 0 0 6px; font-size: 13px; }
.styled-more-body p { margin: 0 0 4px; line-height: 1.55; }
.styled-more-body ul.plain { margin: 0 0 4px; padding-left: 18px; }
.styled-more-body details summary { cursor: pointer; color: var(--primary); }
.styled-more-body .style-notes { grid-template-columns: 72px 1fr; }

/* ---------------------------------------------------------------- 다크 모드 ---
   기본은 컴퓨터 설정을 따르고, 왼쪽 아래 버튼으로 고르면 html[data-theme] 로 고정. 그림(--paper)은 종이처럼 흰색 유지. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0f1218; --panel: #171b23; --sunken: #1d222c; --line: #2a303c; --line-strong: #3a4250;
  --text: #e8ebf1; --text-2: #c3c9d4; --muted: #8b93a3;
  --primary: #6f8bff; --primary-dark: #9db0ff; --primary-weak: #222b4a; --primary-line: #3a4a85;
  --ok: #3ccf8e; --ok-weak: #13281f; --ok-line: #1f4434; --bad: #ff6b70; --bad-weak: #2d1618; --bad-line: #4d2427;
  --warn: #f0a93a; --warn-weak: #2b2112; --warn-line: #4d3a1b; --warn-fg: #f2d29a;
  --field: #11151c; --chip: #262c37; --hover: #1c2230; --faint: #4a5262;
  --type-bg: #2a2348; --type-fg: #c4b5ff; --glow-1: #1a2140; --glow-2: #24183a;
  --styled-line: #8a6a33; --styled-glow: #2a2213; --stripe-1: #1a1f28; --stripe-2: #151a22;
  --veil: rgba(15,18,24,.88); --login-1: #1c2554; --login-2: #2a1d4d; --login-3: #12324a; --code-bg: #0a0d13;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 8px -2px rgba(0,0,0,.35); --shadow-lg: 0 4px 10px -2px rgba(0,0,0,.4), 0 14px 30px -8px rgba(0,0,0,.55);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --panel: #171b23; --sunken: #1d222c; --line: #2a303c; --line-strong: #3a4250;
  --text: #e8ebf1; --text-2: #c3c9d4; --muted: #8b93a3;
  --primary: #6f8bff; --primary-dark: #9db0ff; --primary-weak: #222b4a; --primary-line: #3a4a85;
  --ok: #3ccf8e; --ok-weak: #13281f; --ok-line: #1f4434; --bad: #ff6b70; --bad-weak: #2d1618; --bad-line: #4d2427;
  --warn: #f0a93a; --warn-weak: #2b2112; --warn-line: #4d3a1b; --warn-fg: #f2d29a;
  --field: #11151c; --chip: #262c37; --hover: #1c2230; --faint: #4a5262;
  --type-bg: #2a2348; --type-fg: #c4b5ff; --glow-1: #1a2140; --glow-2: #24183a;
  --styled-line: #8a6a33; --styled-glow: #2a2213; --stripe-1: #1a1f28; --stripe-2: #151a22;
  --veil: rgba(15,18,24,.88); --login-1: #1c2554; --login-2: #2a1d4d; --login-3: #12324a; --code-bg: #0a0d13;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 8px -2px rgba(0,0,0,.35); --shadow-lg: 0 4px 10px -2px rgba(0,0,0,.4), 0 14px 30px -8px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- 왼쪽 메뉴 접기 --- */
.side-toggle { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.side-toggle:hover { color: var(--text); background: var(--sunken); }
.brand-row { display: flex; align-items: center; gap: 6px; }
.theme-btn { border: 1px solid var(--line); background: var(--panel); color: var(--text-2); border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 12px;
  display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.theme-btn:hover { background: var(--sunken); color: var(--text); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; } :root[data-theme="dark"] .theme-btn .moon { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .theme-btn .sun { display: none; } :root:not([data-theme]) .theme-btn .moon { display: inline; } }
@media (min-width: 901px) {
  .app, .side { transition: grid-template-columns .18s, padding .18s; }
  html.side-collapsed { --side-w: 68px; }
  html.side-collapsed .side { padding: 18px 10px; }
  html.side-collapsed .brand-row { flex-direction: column; gap: 10px; }
  html.side-collapsed .side-toggle { margin: 0; }
  html.side-collapsed .side-toggle svg { transform: rotate(180deg); }
  html.side-collapsed .brand > span:last-child, html.side-collapsed .nav-label, html.side-collapsed .nav a .ext,
  html.side-collapsed .side-foot .row:not(.theme-row), html.side-collapsed .side-foot .who, html.side-collapsed .side-foot .logout,
  html.side-collapsed .theme-btn .label { display: none !important; }
  html.side-collapsed .brand { padding: 0; justify-content: center; }
  html.side-collapsed .nav a { font-size: 0; justify-content: center; padding: 10px 0; }
  html.side-collapsed .side-foot { padding: 12px 0 0; align-items: center; }
  html.side-collapsed .side-foot .account { margin: 0; padding: 4px; background: none; }
  html.side-collapsed .theme-row { justify-content: center; }
}

.settings-help { padding: 14px 18px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.settings-help h3 { font-size: 14px; margin: 0 0 8px; }
.settings-help ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.settings-help .table.compact { margin: 8px 0 4px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.settings-help .table.compact th, .settings-help .table.compact td { padding: 7px 10px; }

/* 풀이 탭 해설 그림 비교 */

/* 수정 요청 */
.revise-card { margin-bottom: 20px; }
.revise-input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px;
  line-height: 1.6; resize: vertical; background: var(--field); color: var(--text); }
.revise-input:focus { outline: 2px solid var(--primary-line); border-color: var(--primary); }
.revise-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.revise-hist { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.revise-hist li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.revise-hist .rh-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.revise-hist .rh-req { margin-top: 6px; }
.revise-hist .rh-note { margin-top: 4px; color: var(--muted); }

/* 새 루브릭 채점 글 (mdLite) */
.md-report { font-size: 13.5px; line-height: 1.65; }
.md-report .md-h { font-size: 14px; margin: 14px 0 6px; }
.md-report .md-p { margin: 4px 0; }
.md-report .md-list { margin: 4px 0; padding-left: 20px; }
.md-table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 13px; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; text-align: left; }
.md-table th { background: var(--sunken, var(--chip)); font-weight: 600; white-space: nowrap; }
.md-table td:nth-child(2) { white-space: nowrap; font-weight: 600; }
.prompt-view { white-space: pre-wrap; max-height: 460px; overflow: auto; }

/* 담당자 피드백 (결과 화면 카드 · 피드백 화면) */
.fb-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; margin-bottom: 12px; }
.fb-rate-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fb-rate-btns { display: flex; gap: 6px; }
.fb-hint { margin-left: 6px; font-size: 11.5px; color: var(--faint); }
.fb-rate-btns button.on[data-rate="good"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.fb-rate-btns button.on[data-rate="bad"] { background: var(--bad); border-color: var(--bad); color: #fff; }
@media (max-width: 760px) { .fb-form { grid-template-columns: 1fr; } }
.fb-form .revise-input { min-height: 0; }
.fb-list { display: grid; gap: 8px; }
.fb-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); margin-bottom: 8px; }
.fb-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.fb-body { margin-top: 6px; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.fb-rate { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--chip); }
.fb-rate.good { background: var(--ok-weak); color: var(--ok); }
.fb-rate.bad { background: var(--warn-weak); color: var(--warn); }

/* 쌍둥이 그림 비교 (Matplotlib / TikZ) */
.fig-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 -2px; }
.fig-pick-q { font-weight: 700; font-size: 14.5px; }
.fig-pick-btns button { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.fig-pick-btns kbd { font: 10.5px/1 ui-monospace, monospace; padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px; opacity: .6; }
.fig-pick-btns .n { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--sunken); font-size: 12px; color: var(--muted); }
.fig-pick-btns .n:empty { display: none; }
.fig-pick-btns button.on { background: var(--primary); color: #fff; }
.fig-pick-btns button.on kbd, .fig-pick-btns button.on .n { color: #fff; background: rgba(255,255,255,.2); border-color: transparent; }
.pick-here { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--panel); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.pick-here i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); box-sizing: border-box; }
.pick-here:hover { border-color: var(--col, var(--primary)); }
.pick-here.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.pick-here.on i { border: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2312b76a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
/* 상세 위 문항 번호판: 10개씩 묶고, 고른 것·안 고른 것·쌍둥이 없음을 한눈에 */
.num-bar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px 14px; margin: 0 0 16px; }
.nn-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; font-size: 13px; }
.nn-head > b { font-size: 14px; }
.nn-sub { color: var(--muted); }
.nn-prog { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.nn-prog b { color: var(--ok); }
.nn-prog .bar { width: 120px; height: 6px; border-radius: 99px; background: var(--sunken); border: 1px solid var(--line); overflow: hidden; }
.nn-prog .bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.nn-legend { margin-left: auto; display: inline-flex; gap: 12px; color: var(--muted); font-size: 12px; }
.nn-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nn-legend .lg { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--panel); }
.nn-legend .lg.picked { background: var(--ok); border-color: var(--ok); }
.nn-legend .lg.none { border-style: dashed; background: transparent; }
.nn-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nn-grp { display: grid; grid-template-columns: repeat(10, 28px); gap: 3px; }
.nn-grp a, .nn-grp button { height: 28px; display: grid; place-items: center; border-radius: 7px; font: inherit; font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; text-decoration: none; cursor: pointer; transition: transform .08s, background .12s, border-color .12s;
  border: 1px solid var(--line); background: var(--sunken); color: var(--text-2, var(--text)); }
.nn-grp a:hover { border-color: var(--primary); color: var(--primary); background: var(--panel); transform: translateY(-1px); }
.nn-grp a.picked { background: var(--ok); border-color: var(--ok); color: #fff; }   /* 평가 끝: 진한 초록 */
.nn-grp a.picked:hover { background: var(--ok); color: #fff; filter: brightness(1.08); }
.nn-grp a.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(59, 91, 253, .35); transform: none; }
.nn-grp a.on.picked { box-shadow: 0 0 0 2px var(--ok-weak), 0 0 0 3.5px var(--ok); }
.nn-grp a.notikz:not(.on):not(.picked) { background: var(--panel); color: var(--muted); font-weight: 500; }
.nn-legend .lg.notikz { background: var(--panel); border-color: var(--line); }
.nn-grp button.none { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 500; opacity: .75; }
.nn-grp button.none:hover { opacity: 1; border-color: var(--muted); }
@media (max-width: 700px) { .nn-grp { grid-template-columns: repeat(10, minmax(0, 1fr)); width: 100%; } .nn-legend { margin-left: 0; } }

/* 평가 화면: 미평가 숫자·진행 막대, 메뉴의 미평가 개수 */
.stat.warn b { color: var(--warn); }
a.stat { color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
a.stat:hover { border-color: var(--warn); box-shadow: var(--shadow-lg); }
.stat-bar { height: 5px; margin-top: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.stat-bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--warn-weak); color: var(--warn); font-size: 12px; font-weight: 700; text-align: center; }
.nav-count:empty { display: none; }
html.side-collapsed .nav-count { display: none; }

/* 문제 리스트: 문제마다 한 줄 카드 (번호 · 글 · 그림 미리보기 3개 · 내 평가) */
.pl-progress { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.pl-progress b { color: var(--ok); font-size: 16px; }
.pl-progress .bar { width: 160px; height: 7px; border-radius: 99px; background: var(--sunken); border: 1px solid var(--line); overflow: hidden; }
.pl-progress .bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.pl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pl-bar .select { max-width: 280px; }
.pl-tabs button span { margin-left: 3px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-tabs button.on span { color: var(--primary); font-weight: 700; }
.pl-list { display: flex; flex-direction: column; gap: 10px; }
.pl-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 104px; gap: 18px; align-items: center; padding: 14px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); text-decoration: none;
  transition: border-color .12s, box-shadow .12s, transform .12s; }
.pl-row:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.pl-no { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-weak); color: var(--primary-dark);
  font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-row.done .pl-no { background: var(--ok); color: #fff; }
.pl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.pl-note { font-size: 11.5px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 6px; padding: 1px 6px; }
.pl-text { font-size: 14px; line-height: 1.6; color: var(--text-2, var(--text)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-thumbs { display: flex; gap: 8px; }
.pl-th { margin: 0; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pl-th img, .pl-th span { width: 96px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; box-sizing: border-box; }
.pl-th span { display: grid; place-items: center; font-size: 11.5px; color: var(--muted); background: var(--sunken); border-style: dashed; }
.pl-th figcaption { font-size: 11px; color: var(--muted); }
.pl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pl-state { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--warn-weak); color: var(--warn); white-space: nowrap; }
.pl-row.done .pl-state { background: var(--ok-weak); color: var(--ok); }
@media (max-width: 1100px) { .pl-row { grid-template-columns: 48px minmax(0, 1fr) 90px; } .pl-thumbs { grid-column: 2 / -1; grid-row: 2; } }
@media (max-width: 700px) { .pl-th, .pl-th img, .pl-th span { width: 80px; } }

/* 비용: 기록이 없어 평균으로 추정한 값은 흐리게 */
.pl-cost { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-progress .pl-cost b { color: var(--text); font-size: 14px; }
.cost-est { color: var(--muted); font-style: italic; cursor: help; }


/* 원본 | Matplotlib | TikZ 세 칸: 칸마다 색 띠와 진한 테두리로 경계를 분명히 */
.pair .card.picked { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.pair.three { gap: 20px; }
.pair.three > .card { --col: #98a2b3; --col-bg: rgba(152, 162, 179, .12);
  border: 1.5px solid var(--line-strong); border-top: 5px solid var(--col); box-shadow: var(--shadow-lg); overflow: hidden; }
.pair.three > .col-mpl { --col: #3b5bfd; --col-bg: rgba(59, 91, 253, .08); }
.pair.three > .col-tikz { --col: #e07b00; --col-bg: rgba(224, 123, 0, .09); }
.pair.three > .card > .card-head { background: var(--col-bg); border-bottom: 1.5px solid var(--line-strong); }
.pair.three > .card .tool-tag { background: var(--col); border-color: var(--col); color: #fff; }
.pair.three > .col-tikz .card-head h2 .tag { background: rgba(224, 123, 0, .15); color: #b45f00; }
.pair.three > .card.picked { border-color: var(--ok); border-top-color: var(--ok); box-shadow: 0 0 0 2px var(--ok), var(--shadow-lg); }

/* ───────── 홈 ───────── */
.home-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; overflow: hidden;
  padding: 34px 40px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  background: radial-gradient(700px 360px at 0% 0%, var(--glow-1), transparent 70%), radial-gradient(600px 320px at 100% 100%, var(--glow-2), transparent 70%), var(--panel); }
.hh-hello { display: inline-block; font-size: 13px; font-weight: 650; color: var(--primary-dark); background: var(--primary-weak); padding: 4px 10px; border-radius: 99px; }
.home-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 8px; }
.home-hero p { margin: 0; color: var(--text-2, var(--muted)); font-size: 15px; line-height: 1.7; }
.hh-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hh-ring { position: relative; width: 168px; height: 168px; flex: none; }
.hh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hh-ring circle { fill: none; stroke-width: 11; }
.hh-ring .bg { stroke: var(--line); }
.hh-ring .fg { stroke: var(--ok); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.hh-ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hh-ring-in b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.hh-ring-in span { font-size: 12.5px; color: var(--muted); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-bottom: 22px; }
@media (max-width: 1000px) { .home-grid { grid-template-columns: 1fr; } }
.hn { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.hn-top { display: flex; align-items: center; gap: 10px; }
.hn .pl-no { width: 40px; height: 40px; font-size: 17px; }
.hn .pl-thumbs { flex-wrap: wrap; }
.hn .pl-th, .hn .pl-th img, .hn .pl-th span { width: 128px; }
.hn .pl-th img, .hn .pl-th span { height: 96px; }
.hn-go { justify-self: start; }
.hn:hover .hn-go { filter: brightness(1.08); }
.tm { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tm:last-child { border-bottom: 0; }
.tm-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.tm-row span { color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-row small { color: var(--primary); font-weight: 600; }
.tm-bar { height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.tm-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.tm.me .tm-bar i { background: var(--primary); }
/* 평가 현황 줄 = 버튼 (누르면 그 사람 평가 모아 보기) */
button.tm { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer; padding: 10px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 10px; transition: background .15s; }
button.tm:hover { background: var(--sunken); }
button.tm:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
button.tm b { text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.tm-vd { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tm-go { font-style: normal; font-size: 16px; color: var(--muted); transition: transform .15s; }
button.tm:hover .tm-go { transform: translateX(2px); color: var(--primary); }
.tm-tip { margin: 10px 0 0; }
.pe-dlg { width: 640px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pe-dlg::backdrop { background: rgba(10, 15, 30, .45); }
.pe-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px;
  background: var(--panel); border-bottom: 1px solid var(--line); }
.pe-head h2 { margin: 0; font-size: 17px; }
.pe-body { padding: 16px 18px 20px; }
.pe-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pe-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 12px; background: var(--sunken); }
.pe-stat b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pe-stat span { font-size: 12.5px; color: var(--muted); }
.pe-stat.yes { background: var(--ok-weak); } .pe-stat.yes b { color: var(--ok); }
.pe-stat.no { background: var(--bad-weak); } .pe-stat.no b { color: var(--bad); }
.pe-h { font-size: 14px; margin: 20px 0 8px; } .pe-h small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.pe-no { display: block; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 10px;
  color: inherit !important; text-decoration: none !important; transition: border-color .15s, background .15s; }
.pe-no:hover { background: var(--sunken); border-color: var(--bad); }
.pe-no-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pe-when { margin-left: auto; font-size: 12px; color: var(--muted); }
.pe-why { margin-top: 6px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.pe-why b { color: var(--bad); font-size: 12px; margin-right: 4px; }
.pe-q { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pe-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-chip { padding: 3px 10px; border-radius: 99px; background: var(--ok-weak); color: var(--ok) !important; font-weight: 700; font-size: 13px; text-decoration: none !important; }
.pe-chip:hover { filter: brightness(.95); outline: 1px solid var(--ok); }
.pe-empty { font-size: 13px; color: var(--muted); padding: 6px 2px; }
.pe-old { margin-top: 18px; font-size: 13px; } .pe-old summary { cursor: pointer; color: var(--muted); }
.pe-old-row { display: flex; align-items: baseline; gap: 6px; padding: 6px 2px; color: inherit !important; text-decoration: none !important; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .pe-stat b { font-size: 22px; } .tm-vd .vd-tag { font-size: 11px; } }
.home-steps h2 { font-size: 16px; margin: 0 2px 12px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; gap: 14px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.step .num { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; }
.step b { font-size: 14.5px; }
.step p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--text-2, var(--muted)); }
.step em { font-style: normal; font-weight: 650; color: var(--primary-dark); }
.chip { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 1px 7px; border-radius: 6px; color: #fff; }
.chip.g { background: #98a2b3; } .chip.b { background: #3b5bfd; } .chip.o { background: #e07b00; }
.steps-tip { margin: 12px 2px 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 700px) { .home-hero { padding: 24px 20px; } .home-hero h1 { font-size: 26px; } .hh-ring { width: 130px; height: 130px; } }
kbd { font: 11px/1 ui-monospace, monospace; padding: 2px 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--panel); color: var(--text); }

/* 쌍둥이 판정 (문제 화면 머리 칸 · 편집 화면 위) */
.vd-inline { flex: 1 1 360px; display: flex; justify-content: center; min-width: 0; }
.vd { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vd-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vd-q { font-size: 13px; font-weight: 700; color: var(--text-2, var(--muted)); }
.vd-btns { display: flex; gap: 6px; }
.vd-b { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--panel);
  color: var(--text); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.vd-b svg { opacity: .45; }
.vd-b.yes:hover { border-color: var(--ok); color: var(--ok); }
.vd-b.no:hover { border-color: var(--bad); color: var(--bad); }
.vd-b.yes.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.vd-b.no.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.vd-b.on svg { opacity: 1; }
.vd-msg { font-size: 12px; color: var(--muted); }
.vd-why-box { display: grid; gap: 6px; width: min(520px, 100%); }
.vd-reason { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 13.5px; line-height: 1.5; padding: 8px 11px; border: 1px solid var(--bad);
  border-radius: 10px; background: var(--field, var(--panel)); color: var(--text); outline: 0; }
.vd-reason:focus { box-shadow: 0 0 0 3px var(--bad-weak); }
.vd-why-foot { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.vd-err { margin-right: auto; font-size: 12px; color: var(--bad); font-weight: 600; }
.vd-mine { font-size: 12.5px; color: var(--text-2, var(--muted)); max-width: 520px; }
.vd-all { font-size: 12.5px; }
.vd-all summary { cursor: pointer; color: var(--primary); }
.vd-row { display: flex; gap: 8px; align-items: baseline; margin-top: 4px; }
.vd-why { color: var(--text-2, var(--muted)); }
.vd-tag { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.vd-tag.yes { background: var(--ok-weak); color: var(--ok); } .vd-tag.no { background: var(--bad-weak); color: var(--bad); }
.vd-tag.none { background: var(--sunken); color: var(--muted); }
.vd-when { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
/* 문제 리스트: 담당자별 판정 줄 (관리자만) */
.pl-vds { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.pl-vds-h { font-size: 11.5px; color: var(--muted); margin-right: 2px; }
.pl-vd { font-size: 11.5px; font-weight: 650; padding: 1px 7px; border-radius: 99px; border: 1px solid transparent; white-space: nowrap; }
.pl-vd i { font-style: normal; font-weight: 800; margin-left: 1px; }
.pl-vd.yes { background: var(--ok-weak); color: var(--ok); }
.pl-vd.no { background: var(--bad-weak); color: var(--bad); }
.pl-vd.none { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); }

/* ------------------------------------------------- 은은한 움직임·그림자 --- */
/* 화면에 들어올 때 본문 블록이 살짝 떠오름(끝나면 transform 이 남지 않게 backwards) */
@keyframes ui-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes ui-fade { from { opacity: 0; } }
.main > * { animation: ui-rise .38s cubic-bezier(.2, .7, .3, 1) backwards; }
.main > :nth-child(2) { animation-delay: .04s; } .main > :nth-child(3) { animation-delay: .08s; }
.main > :nth-child(4) { animation-delay: .12s; } .main > :nth-child(n+5) { animation-delay: .16s; }
/* 목록 줄·카드는 차례로 */
.pl-row, .bcard { animation: ui-rise .34s cubic-bezier(.2, .7, .3, 1) backwards; }
.pl-row:nth-child(2), .bcard:nth-child(2) { animation-delay: .03s; } .pl-row:nth-child(3), .bcard:nth-child(3) { animation-delay: .06s; }
.pl-row:nth-child(4), .bcard:nth-child(4) { animation-delay: .09s; } .pl-row:nth-child(5), .bcard:nth-child(5) { animation-delay: .12s; }
.pl-row:nth-child(6), .bcard:nth-child(6) { animation-delay: .15s; } .pl-row:nth-child(n+7), .bcard:nth-child(n+7) { animation-delay: .18s; }
.tab-panel { animation: ui-fade .25s ease-out backwards; }

/* 카드·버튼·입력칸: 부드러운 전환 */
.card, .num-bar, .figcard { transition: box-shadow .2s, border-color .2s; }
.card:hover, .num-bar:hover { box-shadow: var(--shadow-lg); }
.bcard:hover { transform: translateY(-2px); }
.pl-row { transition: border-color .15s, box-shadow .2s, transform .2s; }
.pl-row:hover { transform: translateY(-2px); text-decoration: none; }
.btn { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; }
.btn:hover:not(:disabled) { box-shadow: var(--shadow); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn.primary { box-shadow: 0 2px 6px -2px rgba(59, 91, 253, .45); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 6px 14px -6px rgba(59, 91, 253, .6); }
.btn.ghost:hover:not(:disabled) { box-shadow: none; }
.input, .select, textarea.input { transition: border-color .15s, box-shadow .15s, background-color .15s; }
.nav a { transition: background-color .15s, color .15s; }
.nav a svg { transition: transform .2s; } .nav a:hover svg { transform: translateX(1px) scale(1.06); }
.tabs button, .pager button, .chip, .link { transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
.prob-imgs img, .figcard img { transition: transform .25s, box-shadow .25s; }
.prob-imgs figure:hover img { box-shadow: var(--shadow-lg); }
.pl-progress .bar i { transition: width .6s cubic-bezier(.2, .7, .3, 1); }
.side { box-shadow: 1px 0 0 var(--line), 4px 0 18px -12px rgba(16, 24, 40, .18); }

@media (prefers-reduced-motion: reduce) {
  .main > *, .pl-row, .bcard, .tab-panel { animation: none; }
  .pl-row:hover, .bcard:hover, .btn:active:not(:disabled), .nav a:hover svg { transform: none; }
}

/* 원본과 달라진 글자 · 쌍둥이 근거 줄 */
.chg { color: #d4343a; font-weight: 650; }
.twin-why { margin: 14px 0 0; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 12px;
  display: grid; gap: 6px; font-size: 13.5px; box-shadow: var(--shadow); }
.tw-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.tw-k { font-weight: 700; color: var(--text-2, var(--muted)); font-size: 12.5px; }
.tw-v { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; line-height: 1.6; }
.tw-ch { white-space: nowrap; }
.tw-ch i { font-style: normal; color: var(--muted); margin: 0 2px; }
.tw-ch b { color: #d4343a; }
.tw-tag { font-size: 11.5px; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: var(--primary-weak); color: var(--primary-dark); }

/* 문제 리스트: 학교·학년·학기, 고르기·한글 내보내기 */
.pl-grade { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pl-selbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 8px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 13.5px; }
.pl-selbar .grow { flex: 1; }
.pl-all { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pl-selcount b { color: var(--primary); }
.pl-row { grid-template-columns: 26px 56px minmax(0, 1fr) auto 104px; }
.pl-chk { display: grid; place-items: center; align-self: stretch; cursor: pointer; margin: -14px 0 -14px -18px; padding-left: 18px; }
.pl-chk input, .pl-all input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.pl-row.sel { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-weak), var(--shadow); }
.pl-grade-tag { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 1100px) { .pl-row { grid-template-columns: 26px 48px minmax(0, 1fr) 90px; } .pl-thumbs { grid-column: 3 / -1; } }

/* 사람 검수 필요 (문제·그림에 숫자가 없는 쌍둥이) */
.rv-tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--bad-weak); color: var(--bad); border: 1px solid var(--bad); white-space: nowrap; }
.twin-why .tw-row.rv .tw-k { color: var(--bad); }
.twin-why .tw-row.rv .tw-v { color: var(--bad); font-weight: 600; }

/* 문제지 보관함 */
.ws-list { display: flex; flex-direction: column; gap: 10px; }
.ws-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.ws-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-weak); color: var(--primary-dark); }
.ws-main b { font-size: 15px; }
.ws-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ws-nos { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 7px; }
.ws-nos span { font-size: 11.5px; min-width: 22px; text-align: center; padding: 1px 5px; border-radius: 5px; background: var(--sunken); border: 1px solid var(--line); color: var(--text-2, var(--muted)); }
.ws-act { display: flex; gap: 6px; }
.pl-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: #15181e; color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13.5px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .2s; z-index: 50; }
.pl-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pl-toast a { color: #9db0ff; margin-left: 8px; font-weight: 650; }

/* ───────── 새 색 시안 (skin-calm): 차분한 남색 하나 + 의미 색(초록 맞음 · 빨강 아님/검수 · 주황 미평가)만. 라이트 모드 전용 ───────── */
html:not([data-theme="dark"]) body.skin-calm {
  --bg: #f6f7f9; --panel: #ffffff; --sunken: #f7f8fa; --line: #e8eaef; --line-strong: #d7dbe2;
  --text: #111827; --text-2: #374151; --muted: #6b7280; --faint: #c4c9d2;
  --primary: #3346b8; --primary-dark: #26358f; --primary-weak: #eef0fa; --primary-line: #cfd5f1;
  --ok: #157f4b; --ok-weak: #eaf5ef; --ok-line: #cfe6d9; --bad: #c03a3f; --bad-weak: #fbeeee; --bad-line: #f0d0d1;
  --warn: #b35f0d; --warn-weak: #fcf3e7;
  --type-bg: #f1f3f6; --type-fg: #4b5566; --chip: #f1f3f6;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04); --shadow-lg: 0 6px 20px -8px rgba(17, 24, 39, .14);
}
html:not([data-theme="dark"]) body.skin-calm .card { box-shadow: none; }
/* 세 칸: 띠 색은 유지하되 채도를 낮추고, 머리 배경은 아주 옅게 */
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card { --col: #aab1bd; --col-bg: #f8f9fb; border: 1px solid var(--line-strong); border-top: 4px solid var(--col); box-shadow: none; }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .col-mpl { --col: #5b6cc6; --col-bg: #f5f6fc; }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .col-tikz { --col: #cf8a3e; --col-bg: #fcf8f3; }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card > .card-head { border-bottom: 1px solid var(--line); }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card .tool-tag { background: transparent; color: var(--col); border: 1px solid var(--col); }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .col-tikz .card-head h2 .tag { background: #f6ede2; color: #9a5e1f; }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card.picked { border-color: var(--ok); border-top-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-weak); }
/* 칩: 회색 계열로 낮춤, 의미 있는 것만 색 */
html:not([data-theme="dark"]) body.skin-calm .tag { background: var(--chip); color: var(--muted); }
html:not([data-theme="dark"]) body.skin-calm .tw-tag { background: var(--chip); color: var(--text-2); }
html:not([data-theme="dark"]) body.skin-calm .twin-why { border-left-width: 3px; box-shadow: none; }
html:not([data-theme="dark"]) body.skin-calm .answer-chip { background: var(--ok-weak); color: var(--ok); }
html:not([data-theme="dark"]) body.skin-calm .chg, html:not([data-theme="dark"]) body.skin-calm .tw-ch b { color: var(--bad); }
html:not([data-theme="dark"]) body.skin-calm .fig-pick-btns button.on { background: var(--primary); }
html:not([data-theme="dark"]) body.skin-calm .nn-grp a.on { box-shadow: none; }
html:not([data-theme="dark"]) body.skin-calm .brand-mark { background: linear-gradient(135deg, #3346b8, #4d5fd0); }
/* 글자 위계 */
html:not([data-theme="dark"]) body.skin-calm .job-head h1 { font-weight: 800; letter-spacing: -0.02em; }
html:not([data-theme="dark"]) body.skin-calm .prob-text { color: var(--text); }
html:not([data-theme="dark"]) body.skin-calm .sol-block h3 { color: var(--muted); font-weight: 650; letter-spacing: .02em; }

/* ───────── skin-calm 2단계: 절도 있는 모양 + 짧은 움직임 (남색 톤 유지) ───────── */
body.skin-calm { --ease: cubic-bezier(.2, .7, .2, 1); --dur: .18s; }
html:not([data-theme="dark"]) body.skin-calm {
  --bg: #f4f5f8; --primary: #2c3b94; --primary-dark: #1f2b6f; --primary-weak: #edf0fa; --primary-line: #cbd2ef;
  --text: #0f172a; --text-2: #334155; --muted: #64748b; --line: #e5e8ee; --line-strong: #d3d8e0;
}
/* 등장: 위에서부터 차례로 짧게 떠오름 */
@keyframes sk-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sk-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sk-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
body.skin-calm .job-nav, body.skin-calm .num-bar, body.skin-calm #result > * { animation: sk-rise .42s var(--ease) both; }
body.skin-calm .num-bar { animation-delay: .04s; }
body.skin-calm #result > *:nth-child(1) { animation-delay: .08s; }
body.skin-calm #result > *:nth-child(2) { animation-delay: .12s; }
body.skin-calm #result > *:nth-child(3) { animation-delay: .16s; }
body.skin-calm #result > *:nth-child(n+4) { animation-delay: .2s; }
body.skin-calm .pair.three > .card { animation: sk-rise .45s var(--ease) both; }
body.skin-calm .pair.three > .card:nth-child(2) { animation-delay: .07s; }
body.skin-calm .pair.three > .card:nth-child(3) { animation-delay: .14s; }

/* 세 칸: 흰 머리 + 위쪽 색 선이 그어짐, 도구 이름은 색 점이 붙은 칩 */
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card { position: relative; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; border-radius: 14px 14px 0 0;
  background: var(--col); transform-origin: left; animation: sk-draw .6s .15s var(--ease) both; }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px -16px rgba(15, 23, 42, .25); }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card > .card-head { background: transparent; border-bottom: 1px solid var(--line); padding-top: 16px; }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card .card-head h2 { font-size: 14.5px; letter-spacing: -0.01em; }
html:not([data-theme="dark"]) body.skin-calm .pair .card-head h2 .tag { background: transparent !important; color: var(--muted) !important; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card .tool-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--sunken); color: var(--text-2); border: 1px solid var(--line); font-weight: 650; }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card .tool-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--col); }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card.picked { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-weak); }
html:not([data-theme="dark"]) body.skin-calm .pair.three > .card.picked::before { background: var(--ok); }

/* 선택 버튼: 체크가 톡 */
body.skin-calm .pick-here { transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform .1s; }
body.skin-calm .pick-here.on i { animation: sk-pop .32s var(--ease); }

/* 버튼·세그먼트: 누르면 살짝 눌림, 색 전환은 짧게 */
body.skin-calm .btn, body.skin-calm .seg button, body.skin-calm .vd-b, body.skin-calm .pick-here, body.skin-calm .nn-grp a {
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform .1s var(--ease); }
body.skin-calm .btn:active, body.skin-calm .seg button:active, body.skin-calm .vd-b:active, body.skin-calm .pick-here:active, body.skin-calm .nn-grp a:active { transform: scale(.97); }
html:not([data-theme="dark"]) body.skin-calm .btn { border-radius: 9px; }
html:not([data-theme="dark"]) body.skin-calm .btn.primary { background: var(--primary); border-color: var(--primary); }
html:not([data-theme="dark"]) body.skin-calm .btn.primary:hover { background: var(--primary-dark); }
html:not([data-theme="dark"]) body.skin-calm .seg { background: #eef0f4; border-color: transparent; }
html:not([data-theme="dark"]) body.skin-calm .fig-pick-btns button.on { background: var(--primary); color: #fff; box-shadow: 0 2px 6px -2px rgba(44, 59, 148, .5); }
html:not([data-theme="dark"]) body.skin-calm .vd-b.yes.on, html:not([data-theme="dark"]) body.skin-calm .vd-b.no.on { box-shadow: 0 3px 10px -4px currentColor; }
body.skin-calm .vd-b.on svg { animation: sk-pop .3s var(--ease); }

/* 번호판: 칩이 살짝 떠오름, 지금 번호는 남색 고리 */
html:not([data-theme="dark"]) body.skin-calm .nn-grp a { background: #fff; border-color: var(--line); border-radius: 8px; }
html:not([data-theme="dark"]) body.skin-calm .nn-grp a:hover { transform: translateY(-1px); border-color: var(--primary-line); color: var(--primary); background: #fff; }
html:not([data-theme="dark"]) body.skin-calm .nn-grp a.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 3px var(--primary-weak); }
html:not([data-theme="dark"]) body.skin-calm .nn-grp a.picked:not(.on) { background: #edf7f1; border-color: #bfe0cc; color: var(--ok); }
html:not([data-theme="dark"]) body.skin-calm .num-bar { border-radius: 14px; }

/* 쌍둥이 근거 줄: 남색 선 + 아주 옅은 바탕 */
html:not([data-theme="dark"]) body.skin-calm .twin-why { background: linear-gradient(90deg, #f6f7fd, #fff 40%); border-color: var(--line); border-left: 3px solid var(--primary); border-radius: 12px; }
html:not([data-theme="dark"]) body.skin-calm .tw-k { color: var(--primary); letter-spacing: .02em; }

/* 머리 칸: 큰 번호, 메타는 한 톤 */
html:not([data-theme="dark"]) body.skin-calm .job-head h1 { font-size: 24px; }
html:not([data-theme="dark"]) body.skin-calm .job-meta { color: var(--muted); }

/* 왼쪽 메뉴: 지금 메뉴에 남색 막대 */
html:not([data-theme="dark"]) body.skin-calm .nav a { position: relative; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
html:not([data-theme="dark"]) body.skin-calm .nav a.on { background: var(--primary-weak); color: var(--primary); }
html:not([data-theme="dark"]) body.skin-calm .nav a.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--primary); animation: sk-rise .3s var(--ease) both; }

/* 그림: 살짝 확대 반응 */
body.skin-calm .prob-imgs img { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
body.skin-calm .prob-imgs figure:hover img { transform: scale(1.015); box-shadow: 0 8px 22px -14px rgba(15, 23, 42, .35); }

@media (prefers-reduced-motion: reduce) {
  body.skin-calm *, body.skin-calm *::before { animation: none !important; transition: none !important; }
}

/* 카드 전체가 링크인 곳(홈 '다음 평가할 문제', 문제 리스트 줄, 문제지)에서 마우스를 올려도 밑줄이 생기지 않게 */
a.hn, a.hn:hover, a.hn *, a.pl-row, a.pl-row:hover, a.pl-row *, a.btn, a.btn:hover, a.stat, a.stat:hover { text-decoration: none !important; }

/* ───────── 문제 화면 평가 영역 (머리 카드 안: ① 쌍둥이 판정 ② 더 나은 그림 ③ 한마디 · 관리자는 오른쪽에 담당자별 평가) ───────── */
.ev { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 28px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.ev.admin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .ev.admin { grid-template-columns: minmax(0, 1fr); } }
.ev-h { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 750; color: var(--text-2, var(--muted)); margin-bottom: 6px; }
.ev-state { font-size: 12px; font-weight: 700; }
.ev-state .todo { color: var(--warn); } .ev-state .ok { color: var(--ok); }
.ev-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; }
.ev-row + .ev-row { border-top: 1px dashed var(--line); }
.ev-k { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 13.5px; font-weight: 700; }
.ev-k small { display: block; font-size: 11px; font-weight: 500; color: var(--faint, var(--muted)); }
.ev-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800;
  background: var(--sunken); color: var(--muted); border: 1px solid var(--line-strong); transition: background .15s, color .15s; }
.ev-row.done .ev-n { background: var(--ok); border-color: var(--ok); color: #fff; font-size: 0; }
.ev-row.done .ev-n::before { content: "✓"; font-size: 12px; }
.ev-v { min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; min-height: 34px; }
.ev-say { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; }
@media (max-width: 760px) { .ev-say { grid-template-columns: 1fr; } .ev-row { grid-template-columns: 1fr; gap: 4px; } }
.ev-input { width: 100%; box-sizing: border-box; resize: none; font: inherit; font-size: 13.5px; line-height: 1.45; padding: 6px 10px; min-height: 32px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--field, var(--panel)); color: var(--text); outline: 0; }
.ev-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.ev-msg { font-size: 12px; color: var(--ok); font-weight: 600; min-height: 0; }
.ev-msg:empty { display: none; }
.ev-notes { display: grid; gap: 4px; }
.ev-notes:empty { display: none; }
.ev-note { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 5px 10px; border-radius: 8px; background: var(--sunken); }
.ev-note .fb-body { margin: 0; flex: 1; font-size: 13px; }
.ev .vd-why-box { width: 100%; }
.ev .fig-pick-btns { align-self: flex-start; }
/* 관리자: 담당자별 평가 표 */
.ev-all { min-width: 0; }
.ev-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ev-tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 4px 8px; border-bottom: 1px solid var(--line); }
.ev-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ev-tbl tr.ev-sub td { padding-top: 0; }
.ev-tbl tr:has(+ tr.ev-sub) td { border-bottom: 0; }
.ev-tbl td.who { font-weight: 700; white-space: nowrap; }
.ev-tbl tr.idle td.who { color: var(--muted); font-weight: 500; }
.ev-none { color: var(--faint, var(--muted)); }
.ev-pick { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--chip); color: var(--text-2, var(--text)); white-space: nowrap; }
.ev-pick.mpl { background: #eef0fb; color: #4252a8; } .ev-pick.tikz { background: #f8efe4; color: #9a5e1f; } .ev-pick.bad { background: var(--bad-weak); color: var(--bad); }
html[data-theme="dark"] .ev-pick.mpl, html[data-theme="dark"] .ev-pick.tikz { background: var(--chip); color: var(--text); }
.ev-why { font-size: 12.5px; line-height: 1.5; color: var(--text-2, var(--text)); margin-bottom: 2px; }
.ev-why b { font-size: 11px; color: var(--muted); margin-right: 6px; }

/* ───────── 내 계정 창 (왼쪽 아래 프로필 사진을 누르면) ───────── */
.acct-btn { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.acct-btn .avatar { transition: transform .2s, box-shadow .2s; }
.acct-btn:hover .avatar, .acct-btn.on .avatar { transform: scale(1.08); box-shadow: 0 0 0 3px var(--primary-weak); }
.acct-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.side-foot .account:has(.acct-btn:hover) { background: var(--chip, var(--sunken)); }
.acct-pop { position: fixed; z-index: 200; width: 330px; max-width: calc(100vw - 16px); padding: 14px; border-radius: 14px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px; opacity: 0; transform: translateY(6px) scale(.98); transform-origin: left bottom;
  transition: opacity .16s, transform .16s; }
.acct-pop.show { opacity: 1; transform: none; }
.acct-top { display: flex; align-items: center; gap: 10px; }
.acct-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.acct-top b { font-size: 15px; } .acct-top small { color: var(--muted); font-size: 12px; }
.acct-admin { color: var(--primary); font-weight: 700; }
.acct-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #6fd3ff; flex: none; }
.acct-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; align-self: flex-start; }
.acct-x:hover { background: var(--sunken); color: var(--text); }
.acct-prog { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--sunken); }
.acct-prog svg { transform: rotate(-90deg); flex: none; }
.acct-prog .trk { fill: none; stroke: var(--line); stroke-width: 6; }
.acct-prog .val { fill: none; stroke: var(--ok); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .5s ease-out; }
.acct-pct { position: absolute; left: 12px; width: 56px; text-align: center; font-weight: 800; font-size: 13px; }
.acct-nums { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.acct-nums b { font-size: 16px; color: var(--ok); }
.acct-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.acct-c { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--panel); color: var(--text-2, var(--muted)); border: 1px solid var(--line); }
.acct-next { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--primary); color: #fff !important; font-weight: 600; text-decoration: none !important; }
.acct-next b { font-weight: 800; } .acct-next span { margin-left: auto; transition: transform .15s; }
.acct-next:hover span { transform: translateX(3px); }
.acct-next.done { background: var(--ok-weak); color: var(--ok) !important; justify-content: center; }
.acct-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.acct-links a, .acct-links button { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text) !important; font: inherit; font-size: 12.5px; text-decoration: none !important; cursor: pointer; text-align: left; }
.acct-links a:hover, .acct-links button:hover { border-color: var(--primary); }
.acct-links a span { font-size: 11.5px; font-weight: 700; color: var(--warn); }
.acct-out { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; color: var(--bad) !important; font-weight: 600; font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .acct-pop, .acct-prog .val, .acct-btn .avatar { transition: none; } }
.ev-reset { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.ev-reset:hover { color: var(--bad); }
.ev-hint { font-weight: 500; color: var(--muted); }
