/* v55.10 CBT - JH 자격증 중심 카드형 시험 시스템 */
#cbt { min-width: 0; }
#cbt .cbt-topbar { align-items: flex-start; gap: 16px; }
#cbt .cbt-top-sub { margin-top: 5px; }
#cbt .cbt-account-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
#cbt .cbt-identity-badge { display:inline-flex; align-items:center; min-height:34px; padding:0 12px; border:1px solid #d9dee7; border-radius:999px; background:#fff; color:#374151; font-size:12px; font-weight:800; }
#cbt .cbt-internal-nav { display:flex; gap:7px; overflow-x:auto; padding:2px 1px 10px; margin-bottom:12px; scrollbar-width:thin; }
#cbt .cbt-internal-nav button { flex:0 0 auto; border:1px solid #d9dee7; border-radius:10px; background:#fff; min-height:38px; padding:0 14px; font-weight:800; color:#4b5563; cursor:pointer; transition:.18s ease; }
#cbt .cbt-internal-nav button:hover { transform:translateY(-1px); border-color:#aeb7c4; }
#cbt .cbt-internal-nav button.active { color:#991b1b; border-color:rgba(220,38,38,.42); box-shadow:0 8px 20px rgba(127,29,29,.09); }
/* v56.03.25: 제목과 화면 전환을 한 덩어리로 배치해 상단 여백을 줄입니다. */
#cbt .cbt-heading-block { flex:1 1 auto; min-width:0; }
#cbt .cbt-title-nav-row { display:flex; align-items:center; gap:12px; min-width:0; flex-wrap:wrap; }
#cbt .cbt-title-nav-row > h1 { flex:0 0 auto; margin:0; }
#cbt .cbt-title-nav-row > .cbt-internal-nav {
  flex:1 1 auto;
  margin:0;
  padding:0;
  overflow:visible;
  flex-wrap:wrap;
}
#cbt .cbt-title-nav-row > .cbt-internal-nav button {
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
}
#cbt .cbt-view { display:none; min-width:0; }
#cbt .cbt-view.active { display:block; }
#cbt .cbt-breadcrumb { display:flex; align-items:center; gap:7px; min-height:32px; margin-bottom:8px; overflow-x:auto; }
#cbt .cbt-breadcrumb button { border:0; background:transparent; padding:3px 2px; color:#6b7280; font-weight:800; cursor:pointer; white-space:nowrap; }
#cbt .cbt-breadcrumb button.active { color:#b91c1c; }
#cbt .cbt-breadcrumb span { display:inline-flex; align-items:center; gap:7px; }
#cbt .cbt-browse-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:10px; padding:15px 17px; }
#cbt .cbt-browse-toolbar > div:first-child { display:flex; flex-direction:column; gap:4px; }
#cbt .cbt-search-box { width:min(360px,100%); }
#cbt .cbt-public-notice { margin:0 0 13px; }
#cbt .cbt-public-notice.error { border-color:#fecaca; background:#fff7f7; color:#991b1b; }
#cbt .cbt-card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(235px,1fr)); gap:13px; align-items:stretch; }
/* v55.20: author CSS의 display:grid가 HTML hidden 속성을 덮어써 상위 카드가 중복 노출되는 현상 방지 */
#cbt .cbt-card-grid[hidden] { display:none !important; }
#cbt .cbt-catalog-card { position:relative; display:grid; grid-template-columns:52px 1fr; grid-template-rows:1fr auto; gap:10px 12px; min-height:154px; padding:17px; text-align:left; border:1px solid #e0e5ec; background:#fff; overflow:hidden; cursor:pointer; animation:cbtCardIn .25s ease both; animation-delay:calc(var(--cbt-index,0) * 25ms); }
#cbt .cbt-catalog-card::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:#dc2626; transform:scaleX(0); transform-origin:left; transition:transform .2s ease; }
#cbt .cbt-catalog-card:hover { transform:translateY(-2px); border-color:#c9d0da; box-shadow:0 12px 26px rgba(15,23,42,.085); }
#cbt .cbt-catalog-card:hover::after { transform:scaleX(1); }
#cbt .cbt-catalog-card.is-closed { filter:saturate(.35); background:#f7f7f8; color:#6b7280; }
#cbt .cbt-card-icon { display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:14px; background:#111827; color:#fff; font-size:11px; font-weight:900; letter-spacing:.03em; }
#cbt .cbt-card-main { min-width:0; }
#cbt .cbt-card-main strong { display:block; color:#111827; font-size:16px; line-height:1.35; margin-bottom:6px; }
#cbt .cbt-card-main p { margin:0; color:#6b7280; font-size:12px; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
#cbt .cbt-card-meta { grid-column:1 / -1; display:flex; gap:6px; flex-wrap:wrap; align-self:end; }
#cbt .cbt-card-meta span { border:1px solid #e5e7eb; border-radius:999px; background:#f9fafb; color:#4b5563; padding:4px 8px; font-size:11px; font-weight:800; }
#cbt .cbt-empty-card { grid-column:1/-1; padding:34px; text-align:center; color:#6b7280; }
#cbt .cbt-admin-column-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
#cbt .cbt-admin-exam-list-card { grid-column:1/-1; }
#cbt .cbt-admin-list-card { min-width:0; }
#cbt .cbt-admin-card-list { display:grid; gap:8px; }
#cbt .cbt-admin-item { display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid #e5e7eb; border-radius:12px; background:#fff; padding:11px 12px; }
#cbt .cbt-admin-item-main { min-width:0; }
#cbt .cbt-admin-item-main strong { display:block; color:#111827; }
#cbt .cbt-admin-item-main span { display:block; color:#6b7280; font-size:11px; margin-top:3px; }
#cbt .cbt-admin-item-actions { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
#cbt .cbt-settings-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:12px; }
#cbt .cbt-permission-list { display:grid; gap:8px; }
#cbt .cbt-permission-row { display:grid; grid-template-columns:minmax(120px,1fr) repeat(4,auto) auto; align-items:center; gap:8px; border:1px solid #e5e7eb; border-radius:11px; padding:10px; }
#cbt .cbt-permission-row label { display:flex; align-items:center; gap:5px; font-size:11px; white-space:nowrap; }
#cbt .cbt-question-toolbar { align-items:center; }
#cbt .cbt-question-toolbar select { min-width:180px; }
#cbt table td, #cbt table th { vertical-align:middle; }
#cbt .cbt-question-actions, #cbt .cbt-result-actions { display:flex; gap:5px; flex-wrap:wrap; }
#cbt .cbt-modal-backdrop { z-index:2400; }
#cbt .cbt-auth-modal { width:min(690px,calc(100vw - 28px)); }
#cbt .cbt-auth-tabs { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin:4px 0 14px; }
#cbt .cbt-auth-tabs button { border:1px solid #d9dee7; border-radius:10px; background:#fff; min-height:40px; font-weight:800; cursor:pointer; }
#cbt .cbt-auth-tabs button.active { color:#991b1b; border-color:rgba(220,38,38,.42); background:#fffafa; }
#cbt .cbt-auth-panel { display:none; }
#cbt .cbt-auth-panel.active { display:block; }
#cbt .cbt-intro-body { display:grid; gap:10px; }
#cbt .cbt-intro-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
#cbt .cbt-intro-stat { border:1px solid #e5e7eb; border-radius:11px; background:#fafafa; padding:11px; }
#cbt .cbt-intro-stat span { display:block; color:#6b7280; font-size:11px; }
#cbt .cbt-intro-stat strong { display:block; margin-top:4px; }
#cbt .cbt-runner-backdrop { z-index:2600; align-items:stretch; padding:12px; }
#cbt .cbt-runner-modal { width:min(1180px,100%); height:calc(100vh - 24px); max-height:none; margin:auto; display:flex; flex-direction:column; overflow:hidden; }
#cbt .cbt-runner-header { flex:0 0 auto; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:15px 18px; border-bottom:1px solid #e5e7eb; }
#cbt .cbt-runner-status { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
#cbt .cbt-runner-status span { border:1px solid #e5e7eb; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:800; }
#cbt .cbt-runner-layout { min-height:0; flex:1 1 auto; display:grid; grid-template-columns:210px minmax(0,1fr); }
#cbt .cbt-question-navigator { overflow:auto; border-right:1px solid #e5e7eb; background:#f8fafc; padding:12px; }
#cbt .cbt-nav-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; }
#cbt .cbt-nav-button { aspect-ratio:1; border:1px solid #d7dde6; border-radius:8px; background:#fff; font-weight:800; cursor:pointer; }
#cbt .cbt-nav-button.active { border-color:#dc2626; color:#b91c1c; box-shadow:0 0 0 2px rgba(220,38,38,.1); }
#cbt .cbt-nav-button.answered { background:#111827; color:#fff; border-color:#111827; }
#cbt .cbt-question-stage { min-width:0; overflow:auto; padding:22px; }
#cbt .cbt-question-body { max-width:840px; margin:0 auto; }
#cbt .cbt-question-title { display:flex; gap:10px; align-items:flex-start; margin-bottom:17px; }
#cbt .cbt-question-number { flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:10px; background:#111827; color:#fff; font-weight:900; }
#cbt .cbt-question-text { font-size:17px; line-height:1.65; white-space:pre-wrap; }
#cbt .cbt-question-image { display:block; max-width:100%; max-height:420px; object-fit:contain; border:1px solid #e5e7eb; border-radius:10px; margin:12px 0; }
#cbt .cbt-choice-list { display:grid; gap:9px; }
#cbt .cbt-choice-item { display:flex; gap:10px; align-items:flex-start; border:1px solid #e2e6ec; border-radius:12px; padding:12px 13px; background:#fff; cursor:pointer; transition:.15s ease; }
#cbt .cbt-choice-item:hover { border-color:#aeb7c4; }
#cbt .cbt-choice-item.selected { border-color:#dc2626; background:#fffafa; box-shadow:0 0 0 2px rgba(220,38,38,.08); }
#cbt .cbt-choice-no { flex:0 0 28px; height:28px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#eef1f5; font-weight:900; }
#cbt .cbt-choice-item.selected .cbt-choice-no { background:#dc2626; color:#fff; }
#cbt .cbt-question-footer { max-width:840px; margin:18px auto 0; display:flex; align-items:center; justify-content:space-between; gap:8px; }
#cbt .cbt-result-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
#cbt .cbt-result-stat { border:1px solid #e5e7eb; border-radius:12px; background:#fafafa; padding:12px; text-align:center; }
#cbt .cbt-result-stat span { display:block; color:#6b7280; font-size:11px; }
#cbt .cbt-result-stat strong { display:block; font-size:19px; margin-top:4px; }
#cbt .cbt-result-details { display:grid; gap:9px; max-height:55vh; overflow:auto; }
#cbt .cbt-result-question { border:1px solid #e5e7eb; border-radius:12px; padding:13px; }
#cbt .cbt-result-question.correct { border-left:4px solid #16a34a; }
#cbt .cbt-result-question.wrong { border-left:4px solid #dc2626; }
#cbt .cbt-choice-editor { display:grid; gap:7px; }
#cbt .cbt-choice-edit-row { display:grid; grid-template-columns:32px minmax(0,1fr) auto auto; gap:7px; align-items:center; }
#cbt .cbt-check-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:7px; max-height:330px; overflow:auto; padding:2px; }
#cbt .cbt-question-picker { border:1px solid #e5e7eb; border-radius:10px; padding:9px; }
#cbt .cbt-question-exam-assign { margin-top:10px; }
#cbt .cbt-record-table .status, #cbt .cbt-attempt-table .status { white-space:nowrap; }
@keyframes cbtCardIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }

@media (max-width:980px) {
  #cbt .cbt-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #cbt .cbt-settings-grid, #cbt .cbt-admin-column-grid { grid-template-columns:1fr; }
  #cbt .cbt-admin-exam-list-card { grid-column:auto; }
  #cbt .cbt-runner-layout { grid-template-columns:1fr; }
  #cbt .cbt-question-navigator { border-right:0; border-bottom:1px solid #e5e7eb; padding:8px; overflow-x:auto; }
  #cbt .cbt-nav-grid { display:flex; min-width:max-content; }
  #cbt .cbt-nav-button { width:38px; height:38px; aspect-ratio:auto; }
  #cbt .cbt-result-summary { grid-template-columns:repeat(2,1fr); }
  #cbt .cbt-permission-row { grid-template-columns:1fr 1fr; }
}
@media (max-width:680px) {
  #cbt .cbt-topbar, #cbt .cbt-browse-toolbar { align-items:stretch; flex-direction:column; }
  #cbt .cbt-account-actions { justify-content:flex-start; }
  #cbt .cbt-search-box { width:100%; }
  #cbt .cbt-card-grid { grid-template-columns:1fr; }
  #cbt .cbt-catalog-card { min-height:140px; }
  #cbt .cbt-auth-tabs { grid-template-columns:1fr; }
  #cbt .cbt-intro-grid { grid-template-columns:1fr; }
  #cbt .cbt-runner-backdrop { padding:0; }
  #cbt .cbt-runner-modal { height:100dvh; width:100%; border-radius:0; }
  #cbt .cbt-runner-header { align-items:flex-start; flex-direction:column; padding:11px 13px; }
  #cbt .cbt-question-stage { padding:16px 12px; }
  #cbt .cbt-question-text { font-size:15px; }
  #cbt .cbt-question-footer { position:sticky; bottom:0; background:#fff; padding:9px 0; }
  #cbt .cbt-result-summary { grid-template-columns:1fr 1fr; }
  #cbt .cbt-choice-edit-row { grid-template-columns:30px minmax(0,1fr); }
  #cbt .cbt-choice-edit-row > button, #cbt .cbt-choice-edit-row > label { grid-column:auto; }
}
@media (prefers-reduced-motion:reduce) { #cbt * { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
.cbt-table-actions { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.cbt-member-toolbar { align-items:center; }
.sidebar-cbt-logout { padding:0 10px 10px; }
.sidebar-cbt-logout button { width:100%; min-height:34px; border:1px solid rgba(255,255,255,.16); border-radius:9px; background:transparent; color:inherit; cursor:pointer; font-size:12px; }
.sidebar-cbt-logout button:hover { background:rgba(255,255,255,.08); }
.library-detail-modal .btn.disabled { opacity:.58; cursor:pointer; }
#cbt .cbt-intro-grid > div { border:1px solid #e5e7eb; border-radius:11px; background:#fafafa; padding:11px; }
#cbt .cbt-intro-grid > div span { display:block; color:#6b7280; font-size:11px; }
#cbt .cbt-intro-grid > div strong { display:block; margin-top:4px; }
#cbt .cbt-nav-grid > button { width:100%; aspect-ratio:1; border:1px solid #d7dde6; border-radius:8px; background:#fff; font-weight:800; cursor:pointer; }
#cbt .cbt-nav-grid > button.active { border-color:#dc2626; color:#b91c1c; box-shadow:0 0 0 2px rgba(220,38,38,.1); }
#cbt .cbt-nav-grid > button.answered { background:#111827; color:#fff; border-color:#111827; }
@media (max-width:980px) { #cbt .cbt-nav-grid > button { width:38px; height:38px; aspect-ratio:auto; flex:0 0 38px; } }

/* v55.00 runtime/result/admin class alignment */
#cbt .cbt-nav-title { margin-bottom:9px; color:#4b5563; font-size:11px; font-weight:900; letter-spacing:.02em; }
#cbt .cbt-question-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
#cbt .cbt-question-head span { color:#111827; font-size:14px; font-weight:900; }
#cbt .cbt-question-head em { flex:0 0 auto; border:1px solid #e5e7eb; border-radius:999px; background:#f9fafb; padding:5px 9px; color:#6b7280; font-size:11px; font-style:normal; font-weight:900; }
#cbt .cbt-question-image { display:flex; align-items:center; justify-content:center; max-width:100%; margin:14px 0; border:1px solid #e5e7eb; border-radius:12px; background:#f8fafc; overflow:hidden; }
#cbt .cbt-question-image img { display:block; max-width:100%; max-height:420px; object-fit:contain; }
#cbt .cbt-choice { position:relative; display:flex; gap:10px; align-items:flex-start; border:1px solid #e2e6ec; border-radius:12px; padding:12px 13px; background:#fff; cursor:pointer; transition:.15s ease; }
#cbt .cbt-choice:hover { border-color:#aeb7c4; transform:translateY(-1px); }
#cbt .cbt-choice.selected { border-color:#dc2626; background:#fffafa; box-shadow:0 0 0 2px rgba(220,38,38,.08); }
#cbt .cbt-choice input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
#cbt .cbt-choice.selected .cbt-choice-no { background:#dc2626; color:#fff; }
#cbt .cbt-choice-text { min-width:0; padding-top:3px; color:#1f2937; line-height:1.55; white-space:pre-wrap; }
#cbt .cbt-short-answer { display:grid; gap:7px; }
#cbt .cbt-short-answer label { color:#374151; font-size:12px; font-weight:900; }
#cbt .cbt-short-answer input { width:100%; min-height:46px; border:1px solid #d9dee7; border-radius:11px; padding:0 13px; font-size:14px; }
#cbt .cbt-score-card { grid-column:span 1; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto; align-items:center; gap:4px 10px; min-height:92px; border:1px solid #e5e7eb; border-radius:13px; background:#fff; padding:13px 15px; }
#cbt .cbt-score-card span { color:#6b7280; font-size:11px; font-weight:800; }
#cbt .cbt-score-card strong { grid-row:1 / 3; grid-column:2; font-size:29px; line-height:1; }
#cbt .cbt-score-card em { color:#6b7280; font-size:12px; font-style:normal; font-weight:900; }
#cbt .cbt-score-card.passed { border-color:rgba(22,163,74,.3); background:#f7fff9; }
#cbt .cbt-score-card.passed em { color:#15803d; }
#cbt .cbt-score-card.failed { border-color:rgba(220,38,38,.28); background:#fff8f8; }
#cbt .cbt-score-card.failed em { color:#b91c1c; }
#cbt .cbt-result-question.is-correct { border-left:4px solid #16a34a; }
#cbt .cbt-result-question.is-wrong { border-left:4px solid #dc2626; }
#cbt .cbt-result-question-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
#cbt .cbt-result-question-head strong { color:#111827; }
#cbt .cbt-result-question-head span { border:1px solid #e5e7eb; border-radius:999px; padding:4px 8px; color:#6b7280; font-size:11px; font-weight:900; }
#cbt .is-correct .cbt-result-question-head span { color:#15803d; border-color:#bbf7d0; background:#f0fdf4; }
#cbt .is-wrong .cbt-result-question-head span { color:#b91c1c; border-color:#fecaca; background:#fff7f7; }
#cbt .cbt-result-question-text { margin-bottom:10px; color:#1f2937; line-height:1.65; }
#cbt .cbt-result-question > img { display:block; max-width:100%; max-height:330px; object-fit:contain; margin:10px auto; border:1px solid #e5e7eb; border-radius:10px; }
#cbt .cbt-detail-choices { display:grid; gap:6px; margin:10px 0; }
#cbt .cbt-detail-choices > div { display:flex; align-items:flex-start; gap:8px; border:1px solid #e5e7eb; border-radius:9px; padding:8px 10px; color:#4b5563; }
#cbt .cbt-detail-choices > div > span { flex:0 0 23px; width:23px; height:23px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#eef1f5; font-size:11px; font-weight:900; }
#cbt .cbt-detail-choices > div.correct { border-color:#bbf7d0; background:#f0fdf4; color:#166534; }
#cbt .cbt-detail-choices > div.selected:not(.correct) { border-color:#fecaca; background:#fff7f7; color:#991b1b; }
#cbt .cbt-detail-choices em, #cbt .cbt-detail-choices b { margin-left:auto; font-size:10px; font-style:normal; }
#cbt .cbt-detail-short { display:grid; grid-template-columns:auto minmax(0,1fr); gap:5px 10px; margin:10px 0; border:1px solid #e5e7eb; border-radius:10px; padding:10px; }
#cbt .cbt-detail-short span { color:#6b7280; font-size:11px; font-weight:800; }
#cbt .cbt-detail-short strong { min-width:0; overflow-wrap:anywhere; }
#cbt .cbt-admin-row-card { width:100%; display:grid; grid-template-columns:46px minmax(0,1fr) auto; align-items:center; gap:11px; border:1px solid #e5e7eb; border-radius:12px; background:#fff; padding:11px 12px; text-align:left; cursor:pointer; transition:.15s ease; }
#cbt .cbt-admin-row-card:hover { transform:translateY(-1px); border-color:#c9d0da; box-shadow:0 8px 18px rgba(15,23,42,.06); }
#cbt .cbt-admin-row-card > span { display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:11px; background:#111827; color:#fff; font-size:10px; font-weight:900; }
#cbt .cbt-admin-row-card > div { min-width:0; }
#cbt .cbt-admin-row-card strong, #cbt .cbt-admin-row-card small { display:block; }
#cbt .cbt-admin-row-card small { margin-top:3px; color:#6b7280; line-height:1.4; }
#cbt .cbt-admin-row-card > em { font-style:normal; white-space:nowrap; }
#cbt .cbt-admin-row-card.is-disabled { filter:saturate(.25); background:#f7f7f8; }
#cbt .cbt-empty-mini { padding:18px 12px; border:1px dashed #d9dee7; border-radius:11px; color:#6b7280; text-align:center; font-size:12px; }
#cbt .cbt-disabled-row { color:#6b7280; background:#f8f8f9; }
#cbt .cbt-question-preview-cell { min-width:250px; max-width:430px; }
#cbt .cbt-question-preview-cell strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; white-space:normal; line-height:1.45; }
#cbt .cbt-table-actions { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
#cbt .cbt-question-pick { display:grid; grid-template-columns:auto minmax(0,1fr) 90px; align-items:start; gap:8px; border:1px solid #e5e7eb; border-radius:10px; padding:9px 10px; }
#cbt .cbt-question-pick > span { min-width:0; line-height:1.45; }
#cbt .cbt-question-point-input { width:100%; min-height:34px; }
#cbt .cbt-in-progress-row { background:#fffbeb; }
#cbt .cbt-exam-running { color:#b45309; font-weight:900; }

@media (max-width:680px) {
  #cbt .cbt-question-head { align-items:flex-start; }
  #cbt .cbt-score-card { grid-column:1 / -1; }
  #cbt .cbt-question-pick { grid-template-columns:auto minmax(0,1fr); }
  #cbt .cbt-question-point-input { grid-column:2; }
  #cbt .cbt-detail-short { grid-template-columns:1fr; }
  #cbt .cbt-admin-row-card { grid-template-columns:40px minmax(0,1fr); }
  #cbt .cbt-admin-row-card > em { grid-column:2; justify-self:start; }
}

/* 초기 CBT 관리 기능은 PC 전용 */
@media (max-width:680px) {
  #cbtInternalNav [data-cbt-view="catalog"],
  #cbtInternalNav [data-cbt-view="questions"],
  #cbtInternalNav [data-cbt-view="attempts"],
  #setting .settings-nav[data-setting-tab="cbt-users"] { display:none !important; }
  #setting-cbt-users { display:none !important; }
}

/* v55.10 자격증 중심 UI */
#cbt .cbt-subject-card.is-qualification .cbt-card-icon { background:#7f1d1d; }
#cbt .cbt-qualification-modal { width:min(900px,calc(100vw - 28px)); }
#cbt .cbt-qualification-tabs { display:flex; gap:7px; margin-bottom:13px; }
#cbt .cbt-qualification-tabs button { flex:1; min-height:42px; border:1px solid #d9dee7; border-radius:10px; background:#fff; color:#4b5563; font-weight:900; cursor:pointer; }
#cbt .cbt-qualification-tabs button.active { color:#991b1b; border-color:rgba(220,38,38,.42); background:#fffafa; }
#cbt .cbt-qualification-panel { display:none; }
#cbt .cbt-qualification-panel.active { display:block; }
#cbt .cbt-round-card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:9px; max-height:46vh; overflow:auto; padding:2px; }
#cbt .cbt-round-card { display:grid; gap:5px; min-height:110px; border:1px solid #e0e5ec; border-radius:12px; background:#fff; padding:13px; text-align:left; cursor:pointer; }
#cbt .cbt-round-card span { color:#6b7280; font-size:11px; font-weight:800; }
#cbt .cbt-round-card strong { color:#111827; font-size:16px; }
#cbt .cbt-round-card small { color:#6b7280; }
#cbt .cbt-round-card.selected { border-color:#dc2626; box-shadow:0 0 0 2px rgba(220,38,38,.1); background:#fffafa; }
#cbt .cbt-random-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:10px; }
#cbt .cbt-random-summary > div { border:1px solid #e5e7eb; border-radius:11px; background:#fafafa; padding:11px; }
#cbt .cbt-random-summary span,#cbt .cbt-random-summary strong { display:block; }
#cbt .cbt-random-summary span { color:#6b7280; font-size:11px; }
#cbt .cbt-random-summary strong { margin-top:4px; }
#cbt .cbt-section-plan { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:7px; }
#cbt .cbt-section-plan > div { display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid #e5e7eb; border-radius:10px; padding:9px 11px; }
#cbt .cbt-section-plan span { color:#374151; font-weight:800; }
#cbt .cbt-section-plan strong { color:#991b1b; }
#cbt .cbt-intro-sections { display:flex; gap:6px; flex-wrap:wrap; }
#cbt .cbt-intro-sections span { border:1px solid #e5e7eb; border-radius:999px; background:#f9fafb; padding:5px 9px; color:#4b5563; font-size:11px; font-weight:800; }
#cbt .cbt-result-reason { grid-column:1/-1; border-radius:10px; padding:9px 12px; font-weight:900; }
#cbt .cbt-result-reason.passed { background:#f0fdf4; color:#166534; }
#cbt .cbt-result-reason.failed { background:#fff7f7; color:#991b1b; }
#cbt .cbt-result-section-scores { grid-column:1/-1; display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:7px; }
#cbt .cbt-result-section-scores > div { border:1px solid #e5e7eb; border-radius:10px; background:#fafafa; padding:10px; }
#cbt .cbt-result-section-scores span,#cbt .cbt-result-section-scores strong,#cbt .cbt-result-section-scores small { display:block; }
#cbt .cbt-result-section-scores span { color:#4b5563; font-size:11px; font-weight:800; }
#cbt .cbt-result-section-scores strong { margin-top:4px; font-size:18px; }
#cbt .cbt-result-section-scores small { margin-top:3px; color:#6b7280; }
#cbt .cbt-result-section-scores > div.is-cutoff { border-color:#fecaca; background:#fff7f7; }
#cbt .cbt-admin-subject-row { cursor:default; }
#cbt .cbt-admin-subject-row:hover { transform:none; box-shadow:none; }
#cbt .cbt-row-actions { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
#cbt .cbt-qualification-admin-fields,#cbt .cbt-question-qualification-fields { border:1px solid #e5e7eb; border-radius:12px; background:#fafafa; padding:11px; }
#cbt .cbt-section-editor { display:grid; gap:8px; margin:12px 0; }
#cbt .cbt-section-edit-row { display:grid; grid-template-columns:32px minmax(0,1fr) 140px auto auto; align-items:center; gap:8px; border:1px solid #e5e7eb; border-radius:10px; padding:9px; }
#cbt .cbt-section-edit-row > span { width:28px; height:28px; display:flex; align-items:center; justify-content:center; border-radius:8px; background:#111827; color:#fff; font-weight:900; }
#cbt .cbt-section-edit-row label { display:flex; align-items:center; gap:6px; white-space:nowrap; }
#cbt .cbt-section-edit-row input[type="number"] { width:72px; }
#cbt .cbt-question-pick > span b { display:block; margin-bottom:3px; color:#991b1b; font-size:11px; }
#cbt .cbt-member-access-checks { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:8px; max-height:55vh; overflow:auto; }
#cbt .cbt-member-access-item { display:flex; align-items:flex-start; gap:9px; border:1px solid #e5e7eb; border-radius:11px; padding:11px; cursor:pointer; }
#cbt .cbt-member-access-item span,#cbt .cbt-member-access-item strong,#cbt .cbt-member-access-item small { display:block; }
#cbt .cbt-member-access-item small { margin-top:3px; color:#6b7280; line-height:1.45; }

/* 관리자설정 안으로 이동한 CBT 설정 카드 */
#setting-cbt-users .cbt-settings-admin-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:12px; margin-top:12px; }
#setting-cbt-users .cbt-admin-card-list,#setting-cbt-users .cbt-permission-list { display:grid; gap:8px; }
#setting-cbt-users .cbt-admin-row-card { width:100%; display:grid; grid-template-columns:46px minmax(0,1fr) auto; align-items:center; gap:11px; border:1px solid #e5e7eb; border-radius:12px; background:#fff; padding:11px 12px; text-align:left; cursor:pointer; }
#setting-cbt-users .cbt-admin-row-card > span { display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:11px; background:#111827; color:#fff; font-size:10px; font-weight:900; }
#setting-cbt-users .cbt-admin-row-card strong,#setting-cbt-users .cbt-admin-row-card small { display:block; }
#setting-cbt-users .cbt-admin-row-card small { margin-top:3px; color:#6b7280; }
#setting-cbt-users .cbt-permission-row { display:grid; grid-template-columns:minmax(120px,1fr) repeat(4,auto) auto; align-items:center; gap:8px; border:1px solid #e5e7eb; border-radius:11px; padding:10px; }
#setting-cbt-users .cbt-permission-row label { display:flex; align-items:center; gap:5px; font-size:11px; white-space:nowrap; }

@media (max-width:900px) {
  #cbt .cbt-random-summary { grid-template-columns:repeat(2,1fr); }
  #cbt .cbt-section-edit-row { grid-template-columns:30px minmax(0,1fr); }
  #cbt .cbt-section-edit-row > label,#cbt .cbt-section-edit-row > button { grid-column:2; }
  #setting-cbt-users .cbt-settings-admin-grid { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  #cbt .cbt-round-card-grid,#cbt .cbt-section-plan,#cbt .cbt-member-access-checks { grid-template-columns:1fr; }
  #cbt .cbt-random-summary { grid-template-columns:1fr 1fr; }
}
#cbt .cbt-question-bulk-modal { width:min(1080px,calc(100vw - 28px)); }
#cbt .cbt-bulk-template-action { justify-content:flex-end; }
#cbt .cbt-bulk-preview-wrap { max-height:48vh; overflow:auto; margin-top:10px; }
#cbt .cbt-bulk-preview-wrap table { min-width:850px; }
#cbt .cbt-bulk-error-row { background:#fff7f7; }
#cbt .cbt-bulk-status.error,#cbtBulkStatus.error { border-color:#fecaca; background:#fff7f7; color:#991b1b; }
#cbt .cbt-bulk-summary { margin-top:10px; }

/* v55.14 기능사·기능장 혼합 랜덤 시험과목 관리 */
#cbt .cbt-section-edit-row { grid-template-columns:32px minmax(0,1fr) 150px 88px auto auto; }
#cbt .cbt-section-edit-row.is-mixed-random { grid-template-columns:32px minmax(0,1fr) 110px auto auto; }
#cbt .cbt-section-bank-count { min-width:78px; text-align:center; border:1px solid #e5e7eb; border-radius:9px; background:#fafafa; padding:6px 8px; }
#cbt .cbt-section-bank-count small,#cbt .cbt-section-bank-count strong { display:block; }
#cbt .cbt-section-bank-count small { color:#6b7280; font-size:10px; }
#cbt .cbt-section-bank-count strong { margin-top:2px; color:#991b1b; }
#cbt #cbtEntityDistributionMode[readonly] { background:#f3f4f6; color:#374151; font-weight:800; }

@media (max-width:900px) {
  #cbt .cbt-section-edit-row,
  #cbt .cbt-section-edit-row.is-mixed-random { grid-template-columns:30px minmax(0,1fr); }
  #cbt .cbt-section-edit-row > .cbt-section-bank-count,
  #cbt .cbt-section-edit-row > label,
  #cbt .cbt-section-edit-row > button { grid-column:2; justify-self:start; }
}

/* v55.17 문제은행·출제분류·테두리형 문제 */
#cbt .cbt-question-text.is-boxed,
#cbt .cbt-result-question-text.is-boxed {
  border:1px solid #111827;
  border-radius:9px;
  background:#fff;
  padding:14px 16px;
}
#cbt .cbt-section-edit-row.is-mixed-random {
  grid-template-columns:32px minmax(0,1fr) 128px 110px auto auto;
}
#cbt .cbt-section-minimum { display:flex; align-items:center; justify-content:center; gap:5px; }
#cbt .cbt-section-minimum input[type="number"] { width:58px; }
@media (max-width:900px) {
  #cbt .cbt-section-edit-row.is-mixed-random { grid-template-columns:30px minmax(0,1fr); }
  #cbt .cbt-section-edit-row > .cbt-section-minimum { grid-column:2; }
}


/* v55.19 모바일 CBT 상위 카드 접기/펼치기 및 하위 카드 간격 */
#cbt .cbt-mobile-selected-type { display:none; }
#cbt .cbt-mobile-selected-type[hidden] { display:none !important; }
#cbt .cbt-card-toggle-hint {
  position:absolute;
  top:13px;
  right:13px;
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 9px;
  border:1px solid rgba(220,38,38,.24);
  border-radius:999px;
  background:#fff7f7;
  color:#991b1b;
  font-size:10px;
  font-weight:900;
}
#cbt .cbt-catalog-card.is-expanded {
  border-color:rgba(220,38,38,.38);
  box-shadow:0 8px 20px rgba(127,29,29,.08);
}
#cbt .cbt-catalog-card.is-expanded::after { transform:scaleX(1); }

@media (max-width:680px) {
  #cbt .cbt-mobile-selected-type {
    display:block;
    margin:0 0 18px;
  }
  #cbt .cbt-mobile-selected-type .cbt-catalog-card {
    width:100%;
    min-height:140px;
    padding-right:72px;
  }
  #cbt .cbt-subject-grid:not([hidden]) {
    margin-top:2px;
    padding-top:2px;
  }
}

/* v55.22 문제 신규작성 직관형 편집기 */
#cbt .cbt-question-editor-modal {
  width:min(1260px,calc(100vw - 28px));
  max-height:calc(100dvh - 28px);
  overflow:auto;
  padding:0;
}
#cbt .cbt-question-editor-header {
  position:sticky;
  top:0;
  z-index:8;
  margin:0;
  padding:18px 20px;
  border-bottom:1px solid #e5e7eb;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(8px);
}
#cbt .cbt-question-editor-header h2 { margin:0 0 4px; }
#cbt .cbt-question-editor-layout {
  display:grid;
  grid-template-columns:330px minmax(0,1fr);
  gap:14px;
  padding:0 18px 18px;
  align-items:start;
}
#cbt .cbt-question-editor-sidebar,
#cbt .cbt-question-editor-main { display:grid; gap:12px; min-width:0; }
#cbt .cbt-question-editor-sidebar { position:sticky; top:92px; }
#cbt .cbt-editor-card {
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  padding:14px;
  box-shadow:0 4px 14px rgba(15,23,42,.035);
}
#cbt .cbt-editor-card[hidden] { display:none !important; }
#cbt .cbt-editor-card-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
#cbt .cbt-editor-card-head.compact { align-items:center; margin-bottom:10px; }
#cbt .cbt-editor-card-head > div { min-width:0; }
#cbt .cbt-editor-card-head h3 { margin:2px 0 0; color:#111827; font-size:16px; }
#cbt .cbt-editor-card-head p { margin:5px 0 0; color:#6b7280; font-size:11px; line-height:1.55; }
#cbt .cbt-editor-step {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  min-height:22px;
  padding:0 8px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.02em;
}
#cbt .cbt-editor-card .form-field { margin-top:9px; }
#cbt .cbt-editor-card .form-field:first-of-type { margin-top:0; }
#cbt .cbt-editor-card .form-field label { margin-bottom:5px; color:#374151; font-size:11px; font-weight:900; }
#cbt .cbt-editor-card input,
#cbt .cbt-editor-card select,
#cbt .cbt-editor-card textarea { width:100%; }
#cbt .cbt-editor-card textarea { line-height:1.62; resize:vertical; }
#cbt .cbt-general-question-fields { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
#cbt .cbt-general-question-fields[hidden] { display:none !important; }
#cbt .cbt-source-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:7px; }
#cbt .cbt-bank-check { margin-top:11px; padding:9px 10px; border:1px solid #e5e7eb; border-radius:10px; background:#fafafa; }
#cbt .cbt-field-guide {
  margin:10px 0 0;
  border:1px solid #dbeafe;
  border-radius:10px;
  background:#eff6ff;
  padding:9px 10px;
  color:#1e40af;
  font-size:11px;
  line-height:1.5;
}
#cbt .cbt-field-guide[hidden] { display:none !important; }
#cbt .cbt-display-style-picker { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
#cbt .cbt-display-style-picker button {
  min-height:72px;
  border:1px solid #e5e7eb;
  border-radius:11px;
  background:#fff;
  padding:10px;
  text-align:left;
  cursor:pointer;
}
#cbt .cbt-display-style-picker button:hover { border-color:#9ca3af; }
#cbt .cbt-display-style-picker button.selected { border-color:#111827; box-shadow:inset 0 0 0 1px #111827; background:#f9fafb; }
#cbt .cbt-display-style-picker strong,
#cbt .cbt-display-style-picker span { display:block; }
#cbt .cbt-display-style-picker strong { color:#111827; font-size:12px; }
#cbt .cbt-display-style-picker span { margin-top:4px; color:#6b7280; font-size:10px; line-height:1.4; }
#cbt .cbt-question-exam-assign { margin:0; }
#cbt .cbt-question-exam-assign .cbt-check-grid { max-height:180px; overflow:auto; }
#cbt .cbt-question-exam-assign .cbt-check-grid label { align-items:flex-start; line-height:1.4; }

#cbt .cbt-question-editor-actions {
  position:sticky;
  bottom:0;
  z-index:8;
  margin:0;
  border-top:1px solid #e5e7eb;
  background:rgba(255,255,255,.97);
  padding:13px 20px;
  backdrop-filter:blur(8px);
}

#cbt .cbt-crop-backdrop { z-index:2600; }
#cbt .cbt-question-crop-modal { width:min(1160px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; }
#cbt .cbt-crop-canvas-wrap { display:flex; align-items:center; justify-content:center; min-height:300px; max-height:68dvh; overflow:auto; margin-top:10px; border:1px solid #d1d5db; border-radius:12px; background:#111827; padding:10px; }
#cbt #cbtQuestionCropCanvas { display:block; max-width:100%; height:auto; cursor:crosshair; touch-action:none; background:#fff; }
#cbt .cbt-crop-guide { margin-top:9px; border:1px solid #e5e7eb; border-radius:10px; background:#fafafa; padding:9px 11px; color:#4b5563; font-size:11px; }

@media (max-width:980px) {
  #cbt .cbt-question-editor-layout { grid-template-columns:1fr; }
  #cbt .cbt-question-editor-sidebar { position:static; grid-template-columns:1fr 1fr; }
  #cbt .cbt-question-editor-sidebar > .cbt-editor-card:last-child { grid-column:1/-1; }
}
@media (max-width:680px) {
  #cbt .cbt-question-editor-modal { width:100%; max-height:100dvh; border-radius:0; }
  #cbt .cbt-question-editor-header { padding:14px 13px; }
  #cbt .cbt-question-editor-layout { padding:0 10px 12px; }
  #cbt .cbt-question-editor-sidebar { grid-template-columns:1fr; }
  #cbt .cbt-question-editor-sidebar > .cbt-editor-card:last-child { grid-column:auto; }
  #cbt .cbt-source-grid { grid-template-columns:1fr 1fr; }
  #cbt .cbt-source-grid .form-field:last-child { grid-column:1/-1; }
  #cbt .cbt-display-style-picker { grid-template-columns:1fr; }
  #cbt .cbt-question-editor-actions { padding:10px 13px; }
}

/* v55.23 CBT 수기 문제은행 · 회차 연속입력 · 텍스트/이미지 블록 편집기 */
.cbt-question-editor-modal-v5523{width:min(1440px,96vw);max-height:94vh;overflow:auto}
.cbt-entry-mode-card{margin:0 0 16px;padding:14px;border:1px solid var(--line,#dfe3e8);border-radius:14px;background:#fff}
.cbt-entry-mode-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cbt-entry-mode-picker button{display:flex;flex-direction:column;gap:5px;align-items:flex-start;padding:14px 16px;border:1px solid #d7dce2;border-radius:12px;background:#f8fafc;color:#1f2937;text-align:left;cursor:pointer}
.cbt-entry-mode-picker button strong{font-size:15px}
.cbt-entry-mode-picker button span{font-size:12px;color:#64748b;line-height:1.45}
.cbt-entry-mode-picker button.selected{border-color:#111827;background:#111827;color:#fff;box-shadow:0 8px 20px rgba(17,24,39,.12)}
.cbt-entry-mode-picker button.selected span{color:#dbe4ef}
.cbt-round-entry-status{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:13px}
.cbt-round-entry-status.ready{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.cbt-source-grid label em{display:inline-flex;margin-left:5px;padding:1px 5px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-style:normal;font-size:10px}
.cbt-block-add-actions{display:flex;gap:6px;flex-wrap:wrap}
.cbt-content-block-list{display:flex;flex-direction:column;gap:10px}
.cbt-content-block{border:1px solid #dbe1e8;border-radius:12px;background:#fbfcfd;overflow:hidden}
.cbt-content-block-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-bottom:1px solid #e8ecf0;background:#f4f6f8}
.cbt-content-block-head strong{font-size:12px;color:#475569}
.cbt-content-block-actions{display:flex;gap:4px;align-items:center}
.cbt-content-block-actions button{min-width:28px;height:27px;padding:0 7px;border:1px solid #d5dbe2;border-radius:7px;background:#fff;color:#374151;cursor:pointer;font-size:12px}
.cbt-content-block-body{padding:10px}
.cbt-content-block textarea{width:100%;min-height:92px;resize:vertical}
.cbt-block-image-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cbt-block-image-tools input[type=file]{max-width:320px}
.cbt-block-image-preview{margin-top:8px;min-height:56px;border:1px dashed #cbd5e1;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;padding:8px}
.cbt-block-image-preview img{max-width:100%;max-height:280px;object-fit:contain;border-radius:6px}
.cbt-content-block[data-cbt-image-paste="1"]{outline:none;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}
.cbt-content-block[data-cbt-image-paste="1"]:focus{border-color:rgba(185,28,28,.42);box-shadow:0 0 0 3px rgba(185,28,28,.08);background:#fff}
.cbt-block-paste-hint{margin-left:auto;color:#7c3aed;font-size:11px;font-weight:800;white-space:nowrap}
.cbt-block-empty{padding:18px;border:1px dashed #cbd5e1;border-radius:11px;color:#64748b;text-align:center;background:#f8fafc}
.cbt-choice-editor-v5523{display:flex;flex-direction:column;gap:12px}
.cbt-choice-card-v5523{border:1px solid #dbe1e8;border-radius:13px;background:#fff;overflow:hidden}
.cbt-choice-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;background:#f7f9fb;border-bottom:1px solid #e6ebf0}
.cbt-choice-card-title{display:flex;align-items:center;gap:9px}
.cbt-choice-card-title>span{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;background:#111827;color:#fff;font-weight:700;font-size:13px}
.cbt-choice-correct{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:600}
.cbt-choice-card-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cbt-choice-card-body{padding:10px}
.cbt-choice-card-body .cbt-content-block textarea{min-height:64px}
.cbt-advanced-question-settings{padding:0!important;overflow:hidden}
.cbt-advanced-question-settings>summary{cursor:pointer;padding:13px 14px;font-weight:700;list-style:none}
.cbt-advanced-question-settings>summary::-webkit-details-marker{display:none}
.cbt-advanced-question-settings>summary:after{content:'열기';float:right;font-size:11px;color:#64748b;font-weight:500}
.cbt-advanced-question-settings[open]>summary:after{content:'닫기'}
.cbt-advanced-question-body{padding:0 14px 14px;border-top:1px solid #e5e7eb}
.cbt-render-blocks{display:flex;flex-direction:column;gap:10px}
.cbt-render-block-text{white-space:normal;line-height:1.7}
.cbt-render-block-image{display:flex;justify-content:center}
.cbt-render-block-image img{max-width:100%;max-height:560px;object-fit:contain;border-radius:8px}
.cbt-choice-content .cbt-render-block-image{justify-content:flex-start}
.cbt-choice-content .cbt-render-block-image img{max-height:260px}
.cbt-result-explanation-blocks{margin-top:12px;padding:12px;border:1px solid #dbe1e8;border-radius:10px;background:#f8fafc}
.cbt-result-explanation-blocks>strong{display:block;margin-bottom:8px}
.cbt-question-editor-actions{position:sticky;bottom:-1px;background:#fff;border-top:1px solid #e5e7eb;z-index:5;padding-top:12px}
@media (max-width:900px){
  .cbt-entry-mode-picker{grid-template-columns:1fr}
  .cbt-question-editor-modal-v5523{width:100vw;max-height:100vh;border-radius:0}
  .cbt-choice-card-head{align-items:flex-start;flex-direction:column}
  .cbt-choice-card-actions{width:100%}
}

.cbt-choice-section-title{display:flex;align-items:flex-start;gap:10px}.cbt-choice-section-title>div{display:grid;gap:3px}.cbt-choice-section-title h3{margin:0}

/* v55.24 CBT 문제 입력 UI · 기출 배지 · 탐색 복귀 보완 */
#cbt .cbt-browse-heading{display:flex;align-items:center;gap:12px;min-width:0}
#cbt .cbt-browse-heading>div{display:grid;gap:3px;min-width:0}
#cbt .cbt-browse-back{flex:0 0 auto;min-height:38px;border-radius:10px}
#cbt .cbt-general-question-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
#cbt .cbt-general-question-fields .form-field{margin:0}
#cbt .cbt-general-question-fields input,
#cbt .cbt-general-question-fields select{height:42px;min-height:42px;padding:9px 10px;border-radius:10px}
#cbt .cbt-content-block textarea{border:1px solid #d1d5db;border-radius:10px;padding:10px 12px;background:#fff;line-height:1.6;outline:none;box-sizing:border-box}
#cbt .cbt-content-block textarea:focus{border-color:#64748b;box-shadow:0 0 0 3px rgba(100,116,139,.12)}
#cbt .cbt-choice-editor-v5523{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
#cbt .cbt-choice-card-v5523{min-width:0}
#cbt .cbt-question-toolbar select,
#cbt #cbtQuestionSubjectFilter{height:42px;border:1px solid #d1d5db;border-radius:10px;padding:0 12px;background:#fff}
#cbt .cbt-question-source-badges{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 7px}
#cbt .cbt-question-source-badges span{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:999px;background:#eef2f7;border:1px solid #d6dde6;color:#334155;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap}
#cbt #cbtQuestionSourceFields[hidden]{display:none!important}
@media (max-width:900px){
  #cbt .cbt-choice-editor-v5523{grid-template-columns:1fr}
  #cbt .cbt-general-question-fields{grid-template-columns:1fr}
}
@media (max-width:680px){
  #cbt .cbt-browse-heading{align-items:flex-start;flex-direction:column;gap:8px}
}

/* v55.25 CBT 회차 자동 문제은행 연결 · 시험종류 복귀 위치 정리 */
#cbt .cbt-browse-location-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px;min-width:0}
#cbt .cbt-browse-location-row .cbt-breadcrumb{flex:1 1 auto;min-width:0;margin:0}
#cbt .cbt-browse-location-row .cbt-browse-back{flex:0 0 auto;min-height:34px;padding:0 11px;border-radius:10px;white-space:nowrap}
#cbt .cbt-browse-toolbar .cbt-browse-heading{display:block}
@media (max-width:680px){
  #cbt .cbt-browse-location-row{align-items:flex-start;flex-direction:column;gap:6px}
  #cbt .cbt-browse-location-row .cbt-browse-back{align-self:flex-start}
  #cbt .cbt-browse-heading{display:block}
}

/* v55.26 CBT 문제은행 중복차단 · 카드형 문제목록 · 정답률 */
#cbt .cbt-question-list-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 10px;padding:0 2px;color:#475569;font-size:13px}
#cbt .cbt-question-list-summary>span:first-child{font-weight:700;color:#1f2937}
#cbt .cbt-question-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}
#cbt .cbt-question-card-empty{grid-column:1/-1;padding:34px 16px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;text-align:center}
#cbt .cbt-question-list-card{display:flex;flex-direction:column;min-width:0;padding:12px;border:1px solid #dfe4ea;border-radius:13px;background:#fff;box-shadow:0 2px 7px rgba(15,23,42,.035)}
#cbt .cbt-question-list-card.is-disabled{opacity:.68;background:#f8fafc}
#cbt .cbt-question-list-head{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:9px;align-items:start;min-width:0}
#cbt .cbt-question-list-number{display:flex;width:30px;height:30px;align-items:center;justify-content:center;border-radius:9px;background:#111827;color:#fff;font-size:12px;font-weight:800;line-height:1}
#cbt .cbt-question-list-title{display:grid;gap:2px;min-width:0}
#cbt .cbt-question-list-title strong{overflow:hidden;color:#1f2937;font-size:13px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
#cbt .cbt-question-list-title span{overflow:hidden;color:#64748b;font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
#cbt .cbt-question-list-card .status{align-self:start;white-space:nowrap}
#cbt .cbt-question-list-card .cbt-question-source-badges{margin:9px 0 0}
#cbt .cbt-question-list-card .cbt-question-source-badges span{min-height:20px;padding:1px 6px;font-size:10px}
#cbt .cbt-question-list-preview{display:-webkit-box;min-height:43px;margin:10px 0 9px;overflow:hidden;color:#111827;font-size:13px;font-weight:650;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:keep-all;overflow-wrap:anywhere}
#cbt .cbt-question-list-meta{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:auto}
#cbt .cbt-question-list-meta span{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:700;white-space:nowrap}
#cbt .cbt-question-list-meta span.is-rate{background:#ecfdf5;color:#047857}
#cbt .cbt-question-list-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;margin-top:10px;padding-top:9px;border-top:1px solid #edf0f3}
#cbt .cbt-question-list-actions .btn{min-height:29px;padding:4px 9px}
@media (max-width:1180px){
  #cbt .cbt-question-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  #cbt .cbt-question-card-grid{grid-template-columns:1fr}
  #cbt .cbt-question-list-summary{align-items:flex-start;flex-direction:column;gap:2px}
}


/* v55.27 CBT 문제카드 밀도 · 카드 클릭수정 · 문제입력 정렬 보완 */
#cbt .cbt-question-card-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
#cbt .cbt-question-list-card{
  min-height:0;
  box-shadow:none;
  cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
#cbt .cbt-question-list-card:hover,
#cbt .cbt-question-list-card:focus-visible{
  border-color:#94a3b8;
  box-shadow:0 4px 12px rgba(15,23,42,.08);
  transform:translateY(-1px);
  outline:none;
}
#cbt .cbt-question-list-head{
  grid-template-columns:25px minmax(0,1fr) auto;
  align-items:center;
}
#cbt .cbt-question-list-title{gap:1px}
#cbt .cbt-question-list-title strong{font-size:12px;line-height:1.3}
#cbt .cbt-question-list-title span{font-size:10px;line-height:1.3}
#cbt .cbt-question-list-state{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-weight:800;
  white-space:nowrap;
}
#cbt .cbt-question-list-state.is-active{background:#ecfdf5;color:#047857}
#cbt .cbt-question-list-state.is-hidden{background:#fff7ed;color:#c2410c}
#cbt .cbt-question-list-card .cbt-question-source-badges{
  flex-wrap:nowrap;
  overflow:hidden;
  margin:6px 0 0;
}
#cbt .cbt-question-list-card .cbt-question-source-badges span{
  flex:0 0 auto;
}
#cbt .cbt-question-list-preview{
  min-height:34px;
  margin:7px 0 7px;
  font-size:11px;
  font-weight:650;
  line-height:1.45;
  -webkit-line-clamp:2;
}
#cbt .cbt-question-list-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
#cbt .cbt-question-list-stats>span{
  display:grid;
  background:#f1f5f9;
  text-align:center;
}
#cbt .cbt-question-list-stats small{color:#64748b;font-size:8px;font-weight:700;line-height:1.15}
#cbt .cbt-question-list-stats strong{overflow:hidden;color:#334155;font-size:10px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
#cbt .cbt-question-list-stats>span.is-rate{background:#ecfdf5}
#cbt .cbt-question-list-actions,
#cbt .cbt-question-list-meta{display:none!important}

/* 정답 라디오/체크와 문구를 반드시 한 줄로 유지 */
#cbt .cbt-choice-card-title{
  display:flex;
  flex-direction:row;
  align-items:center;
  flex-wrap:nowrap;
  gap:8px;
  min-width:0;
}
#cbt .cbt-choice-correct{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:5px;
  width:auto!important;
  min-width:max-content;
  white-space:nowrap;
  line-height:1.2;
}
#cbt .cbt-choice-correct input{
  flex:0 0 auto;
  width:15px!important;
  height:15px!important;
  min-width:15px;
  margin:0;
}

/* 랜덤 문제은행 체크와 회차 입력 3개 필드 정렬 */
#cbt .cbt-bank-check{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:7px;
  min-height:38px;
  white-space:nowrap;
}
#cbt .cbt-bank-check input{
  flex:0 0 auto;
  width:15px!important;
  height:15px!important;
  margin:0;
}
#cbt .cbt-source-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:7px;
}
#cbt .cbt-source-grid .form-field{
  display:grid;
  grid-template-rows:24px 42px;
  gap:4px;
  min-width:0;
  margin:0!important;
}
#cbt .cbt-source-grid .form-field label{
  display:flex;
  align-items:center;
  min-height:24px;
  margin:0;
  white-space:nowrap;
}
#cbt .cbt-source-grid .form-field input{
  height:42px;
  min-height:42px;
  box-sizing:border-box;
}

@media (max-width:1380px){
  #cbt .cbt-question-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:920px){
  #cbt .cbt-question-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:680px){
    #cbt .cbt-source-grid{grid-template-columns:1fr}
  #cbt .cbt-source-grid .form-field:last-child{grid-column:auto}
  #cbt .cbt-choice-card-head{align-items:stretch}
  #cbt .cbt-choice-card-title{width:100%}
}

/* v55.28 CBT 초밀도 문제카드 · 편집단계 제목정렬 · 모바일 응시전용 메뉴 */
#cbt .cbt-question-card-grid{
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:7px;
}
#cbt .cbt-question-list-card{
  padding:7px 8px 8px;
  border-radius:10px;
}
#cbt .cbt-question-list-head{
  grid-template-columns:23px minmax(0,1fr) auto;
  gap:6px;
  align-items:center;
}
#cbt .cbt-question-list-number{
  width:23px;
  height:23px;
  border-radius:6px;
  font-size:9px;
}
#cbt .cbt-question-list-name{
  min-width:0;
  overflow:hidden;
  color:#111827;
  font-size:11px;
  font-weight:800;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#cbt .cbt-question-list-state{
  min-height:17px;
  padding:1px 5px;
  font-size:8px;
}
#cbt .cbt-question-list-context{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) auto;
  gap:5px;
  align-items:center;
  margin-top:5px;
  color:#64748b;
  font-size:9px;
  line-height:1.25;
}
#cbt .cbt-question-list-context span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#cbt .cbt-question-list-context span+span{
  padding-left:5px;
  border-left:1px solid #e2e8f0;
}
#cbt .cbt-question-list-card .cbt-question-source-badges{
  margin-top:4px;
}
#cbt .cbt-question-list-card .cbt-question-source-badges span{
  min-height:16px;
  padding:0 5px;
  font-size:8px;
}
#cbt .cbt-question-list-stats>span{
  display:flex;
  align-items:baseline;
  justify-content:center;
}

#cbt .cbt-editor-title-line{
  display:flex;
  align-items:flex-start;
  gap:9px;
  min-width:0;
}
#cbt .cbt-editor-title-line>div{
  min-width:0;
}
#cbt .cbt-editor-title-line h3{
  margin:1px 0 0;
}
#cbt .cbt-editor-title-line h3 small{
  margin-left:5px;
  color:#94a3b8;
  font-size:10px;
  font-weight:700;
}
#cbt .cbt-editor-title-line p{
  margin-top:4px;
}
#cbt .cbt-editor-step-label{
  min-width:34px;
  background:#475569;
}
#cbt .cbt-choice-editor-heading{
  margin-bottom:12px;
}

@media (max-width:680px){
  #cbt .cbt-question-card-grid{grid-template-columns:1fr}
  #cbtInternalNav [data-cbt-view="catalog"],
  #cbtInternalNav [data-cbt-view="questions"],
  #cbtInternalNav [data-cbt-view="attempts"]{display:none!important}
}


/* v55.29 CBT 문제카드 정보 간소화 · 통계 시인성 강화 */
#cbt .cbt-question-list-stats>span{
  border:1px solid #d8e0e9;
  background:#f8fafc;
}
#cbt .cbt-question-list-stats>span.is-rate{
  border-color:#a7e8cd;
  background:#ecfdf5;
}

/* v55.30 CBT 문제카드 통계 글자 중심 시인성 보완 */
#cbt .cbt-question-list-stats{
  margin-top:6px;
  gap:0;
  border-top:1px solid #d8dee7;
  padding-top:5px;
}
#cbt .cbt-question-list-stats>span{
  border:0;
  border-radius:0;
  background:transparent;
}
#cbt .cbt-question-list-stats>span+span{
  border-left:1px solid #d8dee7;
}
#cbt .cbt-question-list-stats small{
  color:#111827;
  font-size:10px;
  font-weight:700;
  letter-spacing:0;
  line-height:1.15;
}
#cbt .cbt-question-list-stats strong{
  color:#111827;
  font-weight:700;
  line-height:1.15;
}
#cbt .cbt-question-list-stats>span.is-rate{
  border-color:#d8dee7;
  background:transparent;
}
#cbt .cbt-question-list-stats>span.is-rate small,
#cbt .cbt-question-list-stats>span.is-rate strong{
  color:#111827;
}

/* v55.31 CBT 문제카드 응시횟수 제거 · 출제/정답률 2분할 */
#cbt .cbt-question-list-stats{
  grid-template-columns:minmax(0,.82fr) minmax(0,1.38fr);
}
#cbt .cbt-question-list-stats>span{
  min-width:0;
  padding-left:6px;
  padding-right:6px;
}
#cbt .cbt-question-list-stats>span.is-rate{
  padding-left:9px;
  padding-right:9px;
}
#cbt .cbt-question-list-stats strong{
  font-size:14px;
}
#cbt .cbt-question-list-stats>span.is-rate strong{
  font-size:14px;
}

/* v55.32 CBT 문제카드 출제/정답률 제목 동일 타이포그래피 */
#cbt .cbt-question-list-stats{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.35fr);
}
#cbt .cbt-question-list-stats>span{
  gap:4px;
  min-height:24px;
  padding:3px 6px;
  align-items:center;
}
#cbt .cbt-question-list-stats small,
#cbt .cbt-question-list-stats strong,
#cbt .cbt-question-list-stats>span.is-rate small,
#cbt .cbt-question-list-stats>span.is-rate strong{
  color:#111827;
  font-family:inherit;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:0;
}
#cbt .cbt-question-list-stats small{
  flex:0 0 auto;
}
#cbt .cbt-question-list-stats strong{
  min-width:0;
  overflow:visible;
  text-overflow:clip;
  white-space:nowrap;
}

/* v55.33 CBT 회차 이어쓰기 · 문제 출처표시 · 실제 출제통계 */
#cbt .cbt-question-head-main{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex-wrap:wrap;
}
#cbt .cbt-question-origin-list{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  flex-wrap:wrap;
}
#cbt .cbt-question-head .cbt-question-origin-list span{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  border:1px solid #d9dee7;
  border-radius:999px;
  background:#fff;
  padding:2px 7px;
  color:#374151;
  font-size:10px;
  font-weight:700;
  line-height:1.15;
  white-space:nowrap;
}
@media (max-width:700px){
  #cbt .cbt-question-head-main{align-items:flex-start;gap:6px}
  #cbt .cbt-question-origin-list{width:100%}
}
#cbt .cbt-crop-source-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
@media (max-width:560px){#cbt .cbt-crop-source-row{grid-template-columns:1fr}}

/* v55.35 기출 회차 압축 카드 · 랜덤/과목별 선택 카드 */
#cbt .cbt-round-card-grid {
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
}
#cbt .cbt-round-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
}
#cbt .cbt-round-card-title {
  min-width:0;
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
#cbt .cbt-round-card-title strong {
  display:block;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#111827;
}
#cbt .cbt-round-card small {
  flex:0 0 auto;
  color:#6b7280;
  font-size:10px;
  white-space:nowrap;
}
#cbt .cbt-random-choice-groups { display:grid; gap:13px; }
#cbt .cbt-random-choice-group { display:grid; gap:7px; }
#cbt .cbt-random-choice-label {
  color:#374151;
  font-size:11px;
  font-weight:900;
}
#cbt .cbt-random-choice-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:7px;
}
#cbt .cbt-random-choice-card {
  width:100%;
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid #e0e5ec;
  border-radius:10px;
  background:#fff;
  padding:10px 12px;
  color:#111827;
  text-align:left;
  cursor:pointer;
  transition:.15s ease;
}
#cbt .cbt-random-choice-card:hover {
  border-color:#c9d0da;
  box-shadow:0 5px 13px rgba(15,23,42,.06);
}
#cbt .cbt-random-choice-card.selected {
  border-color:#dc2626;
  background:#fffafa;
  box-shadow:0 0 0 2px rgba(220,38,38,.09);
}
#cbt .cbt-random-choice-card:disabled {
  cursor:not-allowed;
  opacity:.5;
  box-shadow:none;
}
#cbt .cbt-random-choice-card > span { min-width:0; }
#cbt .cbt-random-choice-card strong,
#cbt .cbt-random-choice-card small { display:block; }
#cbt .cbt-random-choice-card strong {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:13px;
}
#cbt .cbt-random-choice-card small {
  margin-top:3px;
  color:#6b7280;
  font-size:10px;
  line-height:1.3;
}
#cbt .cbt-random-choice-card em {
  flex:0 0 auto;
  font-style:normal;
  color:#991b1b;
  font-size:10px;
  font-weight:900;
}

@media (max-width:680px) {
  #cbt .cbt-round-card-grid,
  #cbt .cbt-random-choice-grid { grid-template-columns:1fr 1fr; }
  #cbt .cbt-round-card,
  #cbt .cbt-random-choice-card { min-width:0; }
}
@media (max-width:430px) {
  #cbt .cbt-round-card-grid,
  #cbt .cbt-random-choice-grid { grid-template-columns:1fr; }
}


/* v55.36 기출 회차 초압축 */
#cbt .cbt-round-card-grid {
  grid-template-columns:repeat(auto-fill,minmax(128px,1fr));
}
#cbt .cbt-round-card {
  justify-content:flex-start;
}


/* v55.37 로그인·CBT 선택/응시 UI 정리 */
#cbt .cbt-round-card-grid{
  grid-template-columns:repeat(auto-fill,minmax(108px,132px));
  justify-content:start;
}
#cbt .cbt-round-card{
  border-radius:9px;
}
#cbt .cbt-round-card-title strong{
  line-height:1.15;
}
#cbt .cbt-question-navigator{
  display:flex;
  flex-direction:column;
  min-height:0;
}
#cbt .cbt-nav-title{
  flex:0 0 auto;
  margin-bottom:9px;
  color:#374151;
  font-size:12px;
  font-weight:900;
}
#cbt .cbt-nav-grid{
  flex:1 1 auto;
  align-content:start;
  overflow:auto;
  min-height:0;
}
#cbt .cbt-nav-actions{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid #dfe4eb;
}
#cbt .cbt-nav-actions .btn{
  min-height:34px;
  padding:6px 8px;
}
#cbt .cbt-attempt-toolbar{
  display:flex;
  align-items:center;
  gap:8px;
}
#cbt .cbt-attempt-toolbar>.jh-select,
#cbt .cbt-attempt-toolbar>select{
  flex:0 0 150px;
  min-width:150px;
}
#cbt .cbt-attempt-toolbar .search-box{
  flex:1 1 auto;
  min-width:220px;
}
#cbt .cbt-attempt-table th,
#cbt .cbt-attempt-table td{
  padding:6px 8px;
  line-height:1.2;
  white-space:nowrap;
}
#cbt .cbt-attempt-table td{
  font-size:11px;
}
#cbt .cbt-attempt-exam-cell{
  max-width:280px;
  overflow:hidden;
  text-overflow:ellipsis;
}
#cbt .cbt-attempt-exam-cell strong,
#cbt .cbt-attempt-exam-cell span{
  display:inline;
  font-size:11px;
}
#cbt .cbt-attempt-exam-cell span{color:#6b7280;font-weight:600}
#cbt .cbt-attempt-table .status{
  min-height:22px;
  padding:3px 7px;
  font-size:10px;
}
#cbt .cbt-attempt-table .btn.tiny{
  min-height:27px;
  padding:4px 7px;
  font-size:10px;
}

@media (max-width:980px){
  #cbt .cbt-question-navigator{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    overflow:visible;
  }
  #cbt .cbt-nav-title{margin:0;white-space:nowrap}
  #cbt .cbt-nav-grid{display:flex;overflow-x:auto;min-width:0;padding-bottom:2px}
  #cbt .cbt-nav-actions{
    grid-template-columns:auto auto;
    margin:0;
    padding:0 0 0 8px;
    border-top:0;
    border-left:1px solid #dfe4eb;
  }
  #cbt .cbt-nav-actions .btn{min-width:58px}
}
@media (max-width:680px){
  #cbt .cbt-round-card-grid{grid-template-columns:repeat(2,minmax(0,128px))}
  #cbt .cbt-question-navigator{grid-template-columns:1fr;gap:7px}
  #cbt .cbt-nav-title{display:none}
  #cbt .cbt-nav-actions{
    width:100%;
    grid-template-columns:1fr 1fr;
    padding:7px 0 0;
    border-left:0;
    border-top:1px solid #dfe4eb;
  }
  #cbt .cbt-attempt-toolbar{align-items:stretch;flex-direction:column}
  #cbt .cbt-attempt-toolbar>.jh-select,
  #cbt .cbt-attempt-toolbar>select,
  #cbt .cbt-attempt-toolbar .search-box{width:100%;min-width:0;flex:auto}
}

/* v55.38 응시기록 선택목록 · 기출/랜덤 선택 · 문제등록 단계 라벨 */
#cbt #cbtViewAttempts > .card{
  overflow:visible;
}
#cbt .cbt-attempt-toolbar{
  position:relative;
  z-index:20;
}
#cbt .cbt-attempt-toolbar + .table-wrap{
  position:relative;
  z-index:1;
}
#cbt #cbtBrowseHelp[hidden]{
  display:none!important;
}
#cbt .cbt-round-card-grid{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-start;
  gap:5px;
  max-height:42vh;
  overflow:auto;
}
#cbt .cbt-round-card{
  flex:0 0 auto;
  width:auto;
  min-width:0;
  min-height:34px;
  padding:5px 9px;
}
#cbt .cbt-round-card-title,
#cbt .cbt-round-card-title strong{
  width:auto;
  min-width:0;
}
#cbt .cbt-round-card-title strong{
  font-size:12px;
  text-align:left;
}
#cbt .cbt-random-mode-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(230px,1fr));
  gap:8px;
}
#cbt .cbt-random-mode-card{
  min-height:62px;
  padding:10px 13px;
}
#cbt .cbt-random-mode-card>span{
  min-width:0;
  flex:1 1 auto;
}
#cbt .cbt-random-mode-card small{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  line-height:1.2;
}
#cbt .cbt-random-choice-label small{
  margin-left:5px;
  color:#94a3b8;
  font-size:10px;
  font-weight:700;
}
#cbt .cbt-random-section-picker{
  padding-top:2px;
}
#cbt .cbt-random-section-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:7px;
}
#cbt .cbt-random-section-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  min-width:0;
  min-height:42px;
  border:1px solid #e0e5ec;
  border-radius:10px;
  background:#fff;
  padding:7px 10px;
  color:#1f2937;
  text-align:left;
  cursor:pointer;
  transition:.15s ease;
}
#cbt .cbt-random-section-card:hover{
  border-color:#c9d0da;
  box-shadow:0 4px 11px rgba(15,23,42,.05);
}
#cbt .cbt-random-section-card.selected{
  border-color:#dc2626;
  background:#fffafa;
  box-shadow:0 0 0 2px rgba(220,38,38,.08);
}
#cbt .cbt-random-section-card:disabled{
  cursor:not-allowed;
  opacity:.5;
  box-shadow:none;
}
#cbt .cbt-random-section-card strong{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:12px;
}
#cbt .cbt-random-section-card span{
  flex:0 0 auto;
  color:#991b1b;
  font-size:10px;
  font-weight:900;
}
#cbt .cbt-editor-step.cbt-editor-step-label{
  min-width:38px;
  min-height:23px;
  padding:0 9px;
  font-size:10px;
  letter-spacing:0;
}
@media (max-width:680px){
  #cbt .cbt-random-mode-grid{
    grid-template-columns:1fr;
  }
  #cbt .cbt-random-section-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:430px){
  #cbt .cbt-random-section-grid{
    grid-template-columns:1fr;
  }
}

/* v56.03.10: 첫 진입 시험종류 카드는 순차 지연 없이 한 번에 표시 */
#cbt .cbt-type-card { animation-delay: 0s !important; }

/* v56.04.18 CBT 문제관리: 과목 → 회차 → 문제 탐색 */
#cbt .cbt-question-manager-card{overflow:visible}
#cbt .cbt-question-manager-header h2{max-width:min(760px,62vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cbt .cbt-question-manager-header .device-actions{flex:0 0 auto}
#cbt .cbt-question-browser-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px;align-items:stretch}
#cbt .cbt-question-browser-grid[hidden],#cbt #cbtQuestionListPanel[hidden]{display:none!important}
#cbt .cbt-question-browser-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;min-width:0;min-height:66px;border:1px solid #dfe4ea;border-radius:12px;background:#fff;padding:9px 10px;color:#111827;text-align:left;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
#cbt .cbt-question-browser-card:hover,#cbt .cbt-question-browser-card:focus-visible{border-color:#94a3b8;box-shadow:0 5px 14px rgba(15,23,42,.08);transform:translateY(-1px);outline:none}
#cbt .cbt-question-browser-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;background:#111827;color:#fff;font-size:10px;font-weight:900;letter-spacing:.02em}
#cbt .cbt-question-browser-copy{display:grid;gap:3px;min-width:0}
#cbt .cbt-question-browser-copy strong{overflow:hidden;font-size:12px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
#cbt .cbt-question-browser-copy small{overflow:hidden;color:#64748b;font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
#cbt .cbt-question-browser-card>em{color:#991b1b;font-size:10px;font-style:normal;font-weight:900;white-space:nowrap}
#cbt .cbt-question-round-card .cbt-question-browser-icon{background:#334155}
#cbt #cbtQuestionListPanel .cbt-question-toolbar{justify-content:flex-end;margin-top:0}
#cbt #cbtQuestionListPanel .cbt-question-toolbar .search-box{width:min(420px,100%);min-width:240px;margin-left:auto}
#cbt #cbtQuestionListPanel .cbt-question-list-summary{margin-top:9px}
/* CBT 문제등록 선택목록은 전 사이트 공통 .jh-select를 사용 */
#cbt .cbt-question-editor-sidebar .jh-select-trigger{font-size:12px;font-weight:700}
@media (max-width:900px){
  #cbt .cbt-question-browser-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:680px){
  #cbt .cbt-question-manager-header{align-items:flex-start}
  #cbt .cbt-question-manager-header h2{max-width:100%;white-space:normal}
  #cbt .cbt-question-browser-grid{grid-template-columns:1fr}
  #cbt #cbtQuestionListPanel .cbt-question-toolbar .search-box{width:100%;min-width:0}
}

/* v57.00.80 관리자설정 CBT 공용 모달 */
body > .cbt-modal-backdrop { z-index:2400; }
body > .cbt-modal-backdrop .cbt-member-access-checks { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:8px; max-height:55vh; overflow:auto; }
body > .cbt-modal-backdrop .cbt-member-access-item { display:flex; align-items:flex-start; gap:9px; border:1px solid #e5e7eb; border-radius:11px; padding:11px; cursor:pointer; }
body > .cbt-modal-backdrop .cbt-member-access-item span,body > .cbt-modal-backdrop .cbt-member-access-item strong,body > .cbt-modal-backdrop .cbt-member-access-item small { display:block; }
body > .cbt-modal-backdrop .cbt-member-access-item small { margin-top:3px; color:#6b7280; line-height:1.45; }
#setting-cbt-users .cbt-member-note-cell { max-width:260px; white-space:normal; overflow-wrap:anywhere; }

/* v57.00.93 CBT 회원별 정답 기억 */
#cbt .cbt-memory-options {
  display:grid;
  gap:10px;
  border:1px solid #d8dee8;
  border-radius:12px;
  background:#f8fafc;
  padding:13px 14px;
}
#cbt .cbt-memory-options.is-disabled .cbt-memory-select,
#cbt .cbt-memory-options.is-disabled .cbt-memory-fixed-note { opacity:.5; }
#cbt .cbt-memory-options-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
#cbt .cbt-memory-options-head > div { min-width:0; }
#cbt .cbt-memory-options-head strong { display:block; color:#111827; font-size:13px; }
#cbt .cbt-memory-options-head span { display:block; margin-top:3px; color:#6b7280; font-size:11px; line-height:1.45; }
#cbt .cbt-memory-options-head em { flex:0 0 auto; border:1px solid #d8dee8; border-radius:999px; background:#fff; padding:5px 9px; color:#4b5563; font-size:11px; font-style:normal; font-weight:900; }
#cbt .cbt-memory-check { display:flex; align-items:center; gap:8px; color:#374151; font-size:12px; font-weight:800; cursor:pointer; }
#cbt .cbt-memory-check input { width:16px; height:16px; accent-color:#111827; }
#cbt .cbt-memory-select { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#374151; font-size:12px; font-weight:800; }
#cbt .cbt-memory-select select { min-width:180px; min-height:36px; border:1px solid #d9dee7; border-radius:9px; background:#fff; padding:0 9px; color:#111827; }
#cbt .cbt-memory-fixed-note { border-left:3px solid #9ca3af; padding:6px 9px; color:#6b7280; font-size:11px; line-height:1.5; }
#cbt .cbt-runner-remember { display:inline-flex; align-items:center; gap:5px; min-height:32px; border:1px solid #d9dee7; border-radius:999px; background:#fff; padding:0 10px; color:#374151; font-size:11px; font-weight:900; cursor:pointer; }
#cbt .cbt-runner-remember[hidden] { display:none !important; }
#cbt .cbt-runner-remember input { width:14px; height:14px; accent-color:#111827; }
#cbt .cbt-question-body.is-memory-auto { color:#6b7280; }
#cbt .cbt-question-body.is-memory-auto .cbt-question-text { color:#6b7280; }
#cbt .cbt-question-body.is-memory-auto .cbt-render-block-image img,
#cbt .cbt-question-body.is-memory-auto .cbt-question-image img { filter:grayscale(1); opacity:.72; }
#cbt .cbt-memory-badge { display:inline-flex; align-items:center; min-height:24px; border:1px solid #d1d5db; border-radius:999px; background:#f3f4f6; padding:0 8px; color:#4b5563 !important; font-size:10px !important; font-weight:900; }
#cbt .cbt-memory-auto-card { display:grid; gap:3px; margin-top:14px; border:1px dashed #c7cdd6; border-radius:11px; background:#f3f4f6; padding:12px 13px; }
#cbt .cbt-memory-auto-card strong { color:#374151; font-size:12px; }
#cbt .cbt-memory-auto-card span { color:#6b7280; font-size:11px; line-height:1.5; }
#cbt .cbt-result-stat small { display:block; margin-top:3px; color:#6b7280; font-size:10px; font-weight:800; }
#cbt .cbt-memory-result-note { margin:10px 0; border:1px dashed #c7cdd6; border-radius:9px; background:#f3f4f6; padding:9px 10px; color:#6b7280; font-size:11px; font-weight:800; }
#cbt .cbt-result-question.is-memory-auto { filter:saturate(.25); background:#fafafa; }

@media (max-width:680px) {
  #cbt .cbt-memory-options-head, #cbt .cbt-memory-select { align-items:stretch; flex-direction:column; }
  #cbt .cbt-memory-select select { width:100%; min-width:0; }
  #cbt .cbt-runner-remember { min-height:30px; }
}

/* v57.00.94 CBT 정답 기억/오답 재풀이 공통 완료상태 */
#cbt .cbt-nav-button.auto-complete { position:relative; background:#eef2f7; color:#475569; border-color:#aab4c2; }
#cbt .cbt-nav-button.auto-complete .cbt-nav-no { display:block; line-height:1; }
#cbt .cbt-nav-button.auto-complete .cbt-nav-check { position:absolute; top:2px; right:3px; display:flex; align-items:center; justify-content:center; min-width:13px; height:13px; border-radius:999px; background:#166534; color:#fff; font-size:9px; font-weight:900; line-height:1; }
#cbt .cbt-nav-button.auto-complete.active { border-color:#dc2626; color:#475569; box-shadow:0 0 0 2px rgba(220,38,38,.1); }
#cbt .cbt-nav-button.retry-complete .cbt-nav-check { background:#475569; }
#cbt .cbt-question-body.is-auto-complete { color:#6b7280; }
#cbt .cbt-question-body.is-auto-complete .cbt-question-text { color:#6b7280; }
#cbt .cbt-question-body.is-auto-complete .cbt-render-block-image img,
#cbt .cbt-question-body.is-auto-complete .cbt-question-image img { filter:grayscale(1); opacity:.72; }
#cbt .cbt-question-body.is-auto-complete .cbt-choice.is-locked { cursor:default; border-color:#d7dce3; background:#f4f5f7; color:#6b7280; box-shadow:none; }
#cbt .cbt-question-body.is-auto-complete .cbt-choice.is-locked:hover { border-color:#d7dce3; }
#cbt .cbt-question-body.is-auto-complete .cbt-choice.is-locked .cbt-choice-no { background:#e3e6ea; color:#667085; }
#cbt .cbt-question-body.is-auto-complete .cbt-short-answer input:disabled { background:#f4f5f7; color:#6b7280; cursor:not-allowed; }
#cbt .cbt-memory-badge.is-retry { border-color:#cbd5e1; background:#eef2f7; color:#475569 !important; }
#cbt .cbt-memory-check small { margin-left:4px; color:#6b7280; font-size:10px; font-weight:700; }


/* v57.00.95: CBT 로그인 회원의 정답기억 적용은 자동백업과 같은 JH 토글 스위치 형태로 상단에 고정 */
#cbt .cbt-memory-quick-control {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:0 2px;
}
#cbt .cbt-memory-quick-control[hidden] { display:none !important; }
#cbt .cbt-memory-quick-title {
  color:#374151;
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
#cbt .cbt-memory-apply-switch { flex:0 0 auto; }
#cbt .cbt-memory-intro-status {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  border:1px solid rgba(5,150,105,.22);
  border-radius:11px;
  background:rgba(236,253,245,.72);
  padding:10px 12px;
}
#cbt .cbt-memory-intro-status strong {
  flex:0 0 auto;
  color:#047857;
  font-size:12px;
  font-weight:900;
}
#cbt .cbt-memory-intro-status span {
  color:#4b5563;
  font-size:11px;
  line-height:1.45;
}
#cbt .cbt-memory-intro-status.is-off {
  border-color:#e2e8f0;
  background:#f8fafc;
}
#cbt .cbt-memory-intro-status.is-off strong { color:#64748b; }
@media (max-width:680px) {
  #cbt .cbt-memory-quick-control { gap:5px; }
  #cbt .cbt-memory-quick-title { display:none; }
  #cbt .cbt-memory-intro-status { flex-direction:column; gap:4px; }
}

/* v57.00.97 CBT 문제 필기: 시험 상단 공용 툴바 + 펜/형광펜 색상 */
#cbt .cbt-runner-heading { flex:0 1 280px; min-width:170px; }
#cbt .cbt-runner-annotation-toolbar {
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:4px 7px;
  border:1px solid #e2e8f0;
  border-radius:10px;
  background:#f8fafc;
}
#cbt .cbt-runner-annotation-toolbar[hidden] { display:none !important; }
#cbt .cbt-runner-annotation-toolbar.is-readonly { border-style:dashed; background:#f3f4f6; }
#cbt .cbt-annotation-tool-group { display:flex; align-items:center; gap:3px; }
#cbt .cbt-annotation-tool-button {
  min-height:28px;
  border:1px solid #d7dde6;
  border-radius:7px;
  background:#fff;
  padding:3px 7px;
  color:#374151;
  font-size:10px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
}
#cbt .cbt-annotation-tool-button:hover:not(:disabled) { border-color:#9ca3af; }
#cbt .cbt-annotation-tool-button.is-active { border-color:#111827; background:#111827; color:#fff; }
#cbt .cbt-annotation-tool-button:disabled { opacity:.44; cursor:default; }
#cbt .cbt-annotation-color-palette { display:flex; align-items:center; gap:2px; }
#cbt .cbt-annotation-color {
  width:18px;
  height:18px;
  padding:0;
  border:2px solid #fff;
  border-radius:50%;
  box-shadow:0 0 0 1px #cbd5e1;
  cursor:pointer;
}
#cbt .cbt-annotation-color.is-selected { box-shadow:0 0 0 2px #111827; transform:scale(1.06); }
#cbt .cbt-annotation-color:disabled { opacity:.38; cursor:default; }
#cbt .cbt-annotation-color.is-black { background:#111827; }
#cbt .cbt-annotation-color.is-red { background:#dc2626; }
#cbt .cbt-annotation-color.is-blue { background:#2563eb; }
#cbt .cbt-annotation-color.is-yellow { background:#fde047; }
#cbt .cbt-annotation-color.is-green { background:#86efac; }
#cbt .cbt-annotation-color.is-sky { background:#7dd3fc; }
#cbt .cbt-annotation-status {
  flex:0 0 auto;
  min-width:48px;
  margin-left:2px;
  color:#64748b;
  font-size:9px;
  font-weight:800;
  text-align:right;
  white-space:nowrap;
}
#cbt .cbt-annotation-status.is-saved { color:#047857; }
#cbt .cbt-annotation-status.is-error { color:#b91c1c; }
#cbt .cbt-annotation-surface { position:relative; isolation:isolate; min-width:0; }
#cbt .cbt-annotation-content { position:relative; z-index:1; }
#cbt .cbt-annotation-canvas {
  position:absolute;
  inset:0;
  z-index:3;
  width:100%;
  height:100%;
  pointer-events:none;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}
#cbt .cbt-annotation-canvas.is-drawing { pointer-events:auto; }
#cbt .cbt-question-body.is-auto-complete .cbt-annotation-canvas { opacity:.86; }
#cbt .cbt-memory-intro-status { justify-content:flex-start; }
@media (max-width:980px) {
  #cbt .cbt-runner-header { flex-wrap:wrap; }
  #cbt .cbt-runner-heading { flex:1 1 240px; }
  #cbt .cbt-runner-annotation-toolbar { order:3; flex:1 1 100%; justify-content:flex-start; overflow-x:auto; scrollbar-width:thin; }
}
@media (max-width:680px) {
  #cbt .cbt-runner-heading { min-width:0; width:100%; }
  #cbt .cbt-runner-annotation-toolbar { width:100%; padding:5px 6px; }
  #cbt .cbt-annotation-tool-button { min-height:30px; }
  #cbt .cbt-annotation-color { width:20px; height:20px; }
  #cbt .cbt-annotation-status { margin-left:auto; }
}

/* v57.00.98 CBT 문제 필기 UI: 색상 드롭다운 + 화면 가용높이 캔버스 */
#cbt .cbt-annotation-color-menu {
  position:relative;
  flex:0 0 auto;
}
#cbt .cbt-annotation-color-menu > summary {
  list-style:none;
}
#cbt .cbt-annotation-color-menu > summary::-webkit-details-marker { display:none; }
#cbt .cbt-annotation-color-trigger {
  min-width:34px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  padding:3px 5px;
  border:1px solid #d7dde6;
  border-radius:7px;
  background:#fff;
  cursor:pointer;
  box-sizing:border-box;
}
#cbt .cbt-annotation-color-trigger:hover { border-color:#9ca3af; }
#cbt .cbt-annotation-color-menu[open] .cbt-annotation-color-trigger {
  border-color:#111827;
  box-shadow:0 0 0 2px rgba(17,24,39,.07);
}
#cbt .cbt-annotation-current-color {
  width:14px;
  height:14px;
  flex:0 0 14px;
  border:2px solid #fff;
  border-radius:50%;
  box-shadow:0 0 0 1px #cbd5e1;
  background:#111827;
}
#cbt .cbt-annotation-color-caret {
  color:#64748b;
  font-size:8px;
  line-height:1;
}
#cbt .cbt-annotation-color-dropdown {
  position:absolute;
  z-index:40;
  top:calc(100% + 6px);
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:6px;
  padding:7px 8px;
  border:1px solid #dbe2ea;
  border-radius:9px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.14);
  white-space:nowrap;
}
#cbt .cbt-annotation-color-menu:not([open]) .cbt-annotation-color-dropdown { display:none; }
#cbt .cbt-annotation-color-dropdown .cbt-annotation-color { width:20px; height:20px; }
#cbt .cbt-annotation-color-menu.is-disabled { opacity:.44; pointer-events:none; }
#cbt .cbt-annotation-color-palette { display:none; }
#cbt .cbt-annotation-surface {
  box-sizing:border-box;
  width:100%;
}
#cbt .cbt-annotation-content { min-height:0; }
@media (max-width:980px) {
  #cbt .cbt-runner-annotation-toolbar { overflow:visible; flex-wrap:wrap; }
}
@media (max-width:680px) {
  #cbt .cbt-annotation-color-trigger { height:30px; }
}

/* v57.01.01 CBT 답안 재선택 해제 · 체크문제 다시보기 */
#cbt .cbt-review-mark-button{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border:1px solid #d9dee7;
  border-radius:999px;
  background:#fff;
  color:#9ca3af;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease;
}
#cbt .cbt-review-mark-button:hover{border-color:#f59e0b;color:#d97706;background:#fffbeb}
#cbt .cbt-review-mark-button.is-marked{border-color:#f59e0b;background:#fffbeb;color:#d97706}
#cbt .cbt-review-mark-button:active{transform:scale(.94)}
#cbt .cbt-nav-button.has-review-mark{position:relative}
#cbt .cbt-nav-button .cbt-nav-review-mark{
  position:absolute;
  top:2px;
  left:3px;
  color:#f59e0b;
  font-size:10px;
  font-weight:900;
  line-height:1;
  text-shadow:0 1px 0 rgba(255,255,255,.85);
}
#cbt .cbt-nav-button.answered .cbt-nav-review-mark{color:#fbbf24;text-shadow:none}


/* v57.01.02 CBT 채점 후 체크문제 다시보기 */
#cbt .cbt-marked-result-button{border-color:#f59e0b;color:#b45309;background:#fffbeb}
#cbt .cbt-result-review-star{display:inline-block;margin-left:5px;color:#d97706;font-size:14px;vertical-align:1px}
#cbt .cbt-result-question.is-unanswered{border-left:4px solid #64748b;background:#fafafa}
#cbt .cbt-result-question.is-unanswered .cbt-result-question-head>span{color:#475569;border-color:#cbd5e1;background:#f8fafc}
#cbt .cbt-result-question.is-marked-review{padding:14px}
#cbt .cbt-marked-result-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 7px;color:#64748b;font-size:11px}
#cbt .cbt-marked-result-label strong{color:#334155;font-size:12px}
#cbt .cbt-marked-result-label.is-answer{margin-top:13px;padding-top:10px;border-top:1px dashed #e2e8f0}
#cbt .cbt-result-annotation-surface{position:relative;isolation:isolate;min-width:0;width:100%;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden}
#cbt .cbt-result-annotation-content{position:relative;z-index:1;padding:12px;min-height:120px}
#cbt .cbt-result-annotation-content .cbt-question-text{margin-bottom:10px}
#cbt .cbt-result-annotation-canvas{position:absolute;inset:0;z-index:3;width:100%;height:100%;pointer-events:none;touch-action:none;user-select:none;-webkit-user-select:none}
#cbt .cbt-result-question.is-marked-review .cbt-memory-result-note{margin-top:8px}
@media (max-width:680px){#cbt .cbt-marked-result-label{align-items:flex-start;flex-direction:column;gap:2px}}

/* v57.01.24: 시험관리 - 패널 보조문구 정리, 퀵액션 확대, 작업오버레이 외부클릭 닫기 */
#cbt .cbt-exam-admin-console {
  position:relative;
  display:grid;
  grid-template-columns:minmax(320px,29%) minmax(0,1fr);
  gap:10px;
  box-sizing:border-box;
  width:100%;
  height:clamp(620px,calc(100dvh - 150px),820px);
  min-width:0;
  min-height:620px;
  margin-top:10px;
  padding:11px 12px;
  overflow:hidden;
}
#cbt .cbt-exam-admin-left {
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:minmax(235px,.9fr) minmax(0,1.1fr);
  gap:9px;
}
#cbt .cbt-exam-admin-panel,
#cbt .cbt-exam-admin-work {
  box-sizing:border-box;
  min-width:0;
  min-height:0;
  border:1px solid #e8edf3;
  border-radius:14px;
  background:rgba(251,252,254,.92);
}
#cbt .cbt-exam-admin-panel {
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#cbt .cbt-exam-admin-panel-heading,
#cbt .cbt-exam-admin-work-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
#cbt .cbt-exam-admin-panel-heading {
  flex:0 0 auto;
  padding:10px 10px 8px;
  border-bottom:0;
  background:transparent;
}
#cbt .cbt-exam-admin-panel-heading > div:first-child { min-width:0; }
#cbt .cbt-exam-admin-panel-heading h3,
#cbt .cbt-exam-admin-work-title h2,
#cbt .cbt-exam-admin-work-title p { margin:0; }
#cbt .cbt-exam-admin-panel-heading h3 { color:#111827; font-size:14px; font-weight:900; }
#cbt .cbt-exam-admin-subject-heading-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 auto;
  gap:5px;
  min-width:0;
}
#cbt .cbt-exam-admin-nav-list {
  --jh-management-columns:2;
  --jh-management-gap:7px;
  min-height:0;
  align-content:start;
  padding:8px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
#cbt .cbt-exam-admin-nav-card {
  --jh-management-card-min-height:58px;
  --jh-management-card-padding:9px 25px 8px 13px;
  --jh-management-card-title-size:11px;
  --jh-management-card-desc-size:8px;
  width:100%;
}
#cbt .cbt-exam-admin-nav-card.is-disabled:not(.active) { filter:saturate(.25); opacity:.72; }
#cbt .cbt-exam-admin-nav-meta {
  flex:0 0 auto;
  color:#cbd5e1;
  font-size:9px;
  font-weight:850;
  white-space:nowrap;
}
#cbt .cbt-exam-admin-work {
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
}
#cbt .cbt-exam-admin-work-head {
  flex:0 0 auto;
  align-items:center;
  padding:11px 12px 9px;
  border-bottom:0;
  background:transparent;
}
#cbt .cbt-exam-admin-work-title { min-width:0; }
#cbt .cbt-exam-admin-work-title h2 { color:#111827; font-size:17px; font-weight:900; }
#cbt .cbt-exam-admin-work-title p { margin-top:4px; color:#64748b; font-size:9px; font-weight:700; line-height:1.4; }
#cbt .cbt-exam-admin-quick-actions {
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
}
#cbt .cbt-exam-admin-quick-actions[hidden] { display:none !important; }
#cbt .cbt-exam-admin-panel-heading .btn.tiny,
#cbt .cbt-exam-admin-quick-actions .jh-menu-pill { min-height:30px; padding:0 11px; font-size:10px; }
#cbt .cbt-exam-admin-work-actions { justify-content:flex-end; }
#cbt .cbt-exam-admin-empty,
#cbt .cbt-exam-admin-inline-empty {
  border:1px dashed #d7dde6;
  border-radius:12px;
  background:#fafbfc;
  color:#6b7280;
  text-align:center;
  font-size:11px;
  line-height:1.55;
}
#cbt .cbt-exam-admin-empty[hidden] { display:none !important; }
#cbt .cbt-exam-admin-empty {
  display:flex;
  flex:1 1 auto;
  align-items:center;
  justify-content:center;
  min-height:260px;
  margin:10px;
  padding:24px;
}
#cbt .cbt-exam-admin-inline-empty { grid-column:1/-1; margin:0; padding:24px 14px; }
#cbt .cbt-exam-admin-work-content {
  position:relative;
  display:flex;
  flex:1 1 auto;
  min-height:0;
  padding:0 10px 10px;
  overflow:hidden;
}
#cbt .cbt-exam-admin-work-content[hidden] { display:none !important; }
#cbt .cbt-exam-admin-exam-work,
#cbt .cbt-exam-admin-detail-panel {
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  min-height:0;
}
#cbt .cbt-exam-admin-exam-work {
  flex:1 1 auto;
  height:100%;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:transparent;
}
#cbt .cbt-exam-admin-detail-panel[hidden] { display:none !important; }
#cbt .cbt-exam-admin-basic-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;
  gap:7px;
  min-height:0;
  padding:0;
}
#cbt .cbt-exam-admin-basic-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  min-height:44px;
  padding:8px 10px;
  border:1px solid #e5e7eb;
  border-left:3px solid rgba(220,38,38,.28);
  border-radius:10px;
  background:#fff;
}
#cbt .cbt-exam-admin-basic-item span,
#cbt .cbt-exam-admin-basic-item strong { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#cbt .cbt-exam-admin-basic-item span { color:#64748b; font-size:9px; font-weight:750; }
#cbt .cbt-exam-admin-basic-item strong { color:#111827; font-size:11px; font-weight:900; text-align:right; }
#cbt .cbt-exam-admin-section-list {
  min-height:0;
  margin:0;
  overflow:visible;
}
#cbt .cbt-exam-admin-section-info-item.is-disabled { filter:saturate(.35); background:#f8fafc; }
#cbt .cbt-exam-admin-exam-list {
  --jh-compact-min-width:220px;
  --jh-compact-gap:7px;
  --jh-compact-row-height:68px;
  flex:1 1 auto;
  min-height:0;
  margin:0;
  overflow:auto;
  scrollbar-gutter:stable;
}
#cbt .cbt-exam-admin-exam-card {
  --jh-compact-card-height:68px;
  --jh-compact-card-rows:18px 18px 15px;
}
#cbt .cbt-exam-admin-exam-card.is-disabled { filter:saturate(.35); background:#f8fafc; }
#cbt button.cbt-exam-admin-exam-card {
  appearance:none;
  width:auto;
  color:inherit;
  font:inherit;
  text-align:left;
}
#cbt .cbt-exam-admin-detail-overlay {
  --jh-work-overlay-accent:#dc2626;
  position:absolute;
  z-index:64;
  top:auto;
  right:auto;
  bottom:10px;
  left:10px;
  width:min(590px,calc(100% - 20px));
  max-height:calc(100% - 20px);
  transform-origin:left bottom;
}
#cbt .cbt-exam-admin-detail-overlay .jh-work-overlay-head {
  align-items:center;
  border-bottom:0;
  background:transparent;
}
#cbt .cbt-exam-admin-detail-head-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex:0 0 auto;
}
#cbt .cbt-exam-admin-detail-overlay.is-open { animation:cbt-exam-admin-detail-enter .16s ease-out both; }
@keyframes cbt-exam-admin-detail-enter {
  from { opacity:0; transform:translateX(-8px); }
  to { opacity:1; transform:translateX(0); }
}
#cbt .cbt-exam-admin-detail-kicker {
  display:block;
  margin-bottom:1px;
  color:#b91c1c;
  font-size:8px;
  font-weight:850;
  letter-spacing:.04em;
}
#cbt .cbt-exam-admin-detail-body {
  display:block;
  max-height:calc(clamp(620px,calc(100dvh - 150px),820px) - 165px);
  overflow:auto;
  scrollbar-gutter:stable;
}
#cbt .cbt-exam-admin-detail-panel { gap:9px; background:#fff; }

@media (max-width:1180px) {
  #cbt .cbt-exam-admin-console { grid-template-columns:290px minmax(0,1fr); }
  #cbt .cbt-exam-admin-nav-list { --jh-management-columns:1; }
  #cbt .cbt-exam-admin-subject-heading-actions { align-items:flex-end; flex-direction:column; }
}
@media (max-width:860px) {
  #cbt .cbt-exam-admin-console { grid-template-columns:1fr; height:auto; min-height:0; overflow:visible; }
  #cbt .cbt-exam-admin-left { grid-template-columns:1fr 1fr; grid-template-rows:none; }
  #cbt .cbt-exam-admin-panel { min-height:260px; }
  #cbt .cbt-exam-admin-work { min-height:620px; }
  #cbt .cbt-exam-admin-nav-list { max-height:310px; }
  #cbt .cbt-exam-admin-detail-body { max-height:520px; }
}
@media (max-width:680px) {
  #cbt .cbt-exam-admin-console { padding:8px; }
  #cbt .cbt-exam-admin-left { grid-template-columns:1fr; }
  #cbt .cbt-exam-admin-basic-grid { grid-template-columns:1fr; }
  #cbt .cbt-exam-admin-panel-heading { align-items:stretch; }
  #cbt .cbt-exam-admin-subject-heading-actions { align-items:flex-end; }
  #cbt .cbt-exam-admin-work-head { align-items:stretch; flex-direction:column; }
  #cbt .cbt-exam-admin-work-actions { justify-content:flex-start; }
  #cbt .cbt-exam-admin-detail-overlay { top:8px; right:auto; bottom:auto; left:8px; width:calc(100% - 16px); transform-origin:left top; }
  #cbt .cbt-exam-admin-detail-body { max-height:500px; }
}
@media (prefers-reduced-motion:reduce) {
  #cbt .cbt-exam-admin-detail-overlay.is-open { animation:none; }
}

/* v57.01.25 시험관리 미완료 마감 + 모바일 필기 토글 기반 */
#cbt .cbt-exam-admin-panel-heading .btn.tiny {
  font-family:inherit;
  font-weight:800;
  line-height:1;
}
#cbt .cbt-exam-admin-detail-overlay .jh-work-overlay-heading > strong {
  font-size:15px;
  line-height:1.3;
}
#cbt .cbt-annotation-mobile-toggle {
  display:none;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border:1px solid #d7dde6;
  border-radius:999px;
  background:#fff;
  color:#374151;
  font:inherit;
  font-size:10px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
}
#cbt .cbt-annotation-mobile-toggle[aria-expanded="true"] {
  border-color:#111827;
  background:#111827;
  color:#fff;
}
/* v56.03.23 · 작품 소개, 이어읽기, 모바일 독서 도구와 주·보조 언어 화면 */
#cbt .cbt-learning-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  min-height: 260px;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  color: #f7f3e8;
  background: linear-gradient(135deg, #1e2024 0%, #282b31 68%, #343840 100%);
  border: 0;
}
.cbt-learning-eyebrow { color: #ff5a43; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.cbt-learning-hero h2 { margin: 10px 0 12px; color: inherit; font-size: clamp(25px, 3vw, 38px); line-height: 1.22; }
.cbt-learning-hero p { max-width: 720px; margin: 0 0 24px; color: #cfd2d8; font-size: 15px; line-height: 1.8; }
.cbt-learning-hero-mark { display: grid; place-items: center; align-content: center; min-height: 180px; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; background: rgba(255,255,255,.04); }
.cbt-learning-hero-mark span { color: #ff5a43; font-family: Georgia, serif; font-size: 78px; line-height: 1; }
.cbt-learning-hero-mark small { margin-top: 14px; color: #f1eadc; letter-spacing: .14em; }
.cbt-learning-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.cbt-learning-route-card { min-height: 190px; padding: 24px; text-align: left; cursor: pointer; border: 1px solid #e7e8eb; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.cbt-learning-route-card:hover { transform: translateY(-2px); border-color: #ff8674; box-shadow: 0 14px 30px rgba(25,28,33,.08); }
.cbt-learning-route-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; color: #f04d39; font-weight: 900; border-radius: 14px; background: #fff0ed; }
.cbt-learning-route-card strong { display: block; color: #22252a; font-size: 19px; }
.cbt-learning-route-card p { min-height: 48px; margin: 9px 0 16px; color: #656b75; line-height: 1.6; }
.cbt-learning-route-meta { color: #a13a2d; font-size: 12px; font-weight: 700; }

.cbt-learning-section-head { display: flex; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.cbt-learning-section-head h2 { margin: 0 0 5px; }
.cbt-learning-section-head p { margin: 0; color: #737985; }
.cbt-learning-content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cbt-learning-book { position: relative; min-width: 0; padding: 0; overflow: hidden; text-align: left; cursor: pointer; border: 1px solid #e5e6e9; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.cbt-learning-book:hover { transform: translateY(-2px); border-color: #ff816f; box-shadow: 0 12px 26px rgba(25,28,33,.08); }
.cbt-learning-cover { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; color: #fff8ef; font-family: Georgia, "Noto Serif KR", serif; font-size: 44px; font-weight: 800; background: linear-gradient(145deg, #272a30, #3d424b); }
.cbt-learning-cover img { width: 100%; height: 100%; object-fit: cover; }
.cbt-learning-cover-fallback::after { content: "READ · LEARN"; position: absolute; right: 12px; bottom: 12px; color: #ff6b56; font-family: ui-sans-serif, sans-serif; font-size: 9px; letter-spacing: .12em; }
.cbt-learning-cover.compact { width: 58px; aspect-ratio: 3 / 4; flex: 0 0 58px; border-radius: 8px; font-size: 23px; }
.cbt-learning-cover.compact::after { display: none; }
.cbt-learning-book-copy { display: grid; gap: 5px; min-width: 0; padding: 12px 13px 14px; }
.cbt-learning-book-copy strong { overflow: hidden; color: #202328; font-size: 15px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.cbt-learning-book-copy small { color: #777d86; font-size: 11px; }
.cbt-learning-empty { grid-column: 1 / -1; padding: 42px; color: #747a84; text-align: center; }

.cbt-reader-header { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto minmax(0,1fr) minmax(150px,220px); gap: 16px; align-items: center; padding: 14px 0; background: var(--reader-bg, #f7f7f8); }
.cbt-reader-heading { min-width: 0; }
.cbt-reader-heading span, .cbt-reader-heading h2 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbt-reader-heading h2 { margin: 3px 0 0; font-size: 20px; }
.cbt-reader-unit-select {
  min-height: 42px;
  padding: 0 38px 0 15px;
  color: #30343a;
  font-weight: 750;
  cursor: pointer;
  border: 1px solid #dfe2e7;
  border-radius: 999px;
  background-color: #fff;
  box-shadow: 0 4px 14px rgba(20,23,28,.05);
}
.cbt-reader-unit-select:focus { border-color: #ff715d; box-shadow: 0 0 0 3px rgba(255,90,67,.14); outline: 0; }
.cbt-reader-tools { position: sticky; top: 74px; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 12px 16px; }
.cbt-reader-tools label { display: inline-flex; gap: 6px; align-items: center; color: #4f5661; font-size: 13px; }
.cbt-reader-font-control { margin-left: auto; }
.cbt-reader-font-control input { width: 92px; }
.cbt-learning-reader { --reader-bg: #f7f7f8; --reader-paper: #fff; --reader-text: #24262a; --reader-muted: #777d86; margin: -4px auto 0; padding: 0 clamp(0px, 2vw, 24px) 48px; background: var(--reader-bg); }
.cbt-learning-reader.is-dark { --reader-bg: #1e2024; --reader-paper: #25282d; --reader-text: #ece9df; --reader-muted: #aeb3bc; color: var(--reader-text); }
.cbt-learning-reader.is-dark .cbt-reader-header { background: var(--reader-bg); }
.cbt-learning-reader.is-dark .cbt-reader-heading h2 { color: var(--reader-text); }
.cbt-learning-reader.is-dark .cbt-reader-tools { border-color: #34383f; background: #25282d; }
.cbt-learning-reader.is-dark .cbt-reader-tools label { color: #c9cdd3; }
.cbt-learning-reader.is-dark .cbt-reader-unit-select { color: #ece9df; border-color: #3c4149; background-color: #292c31; }
.cbt-reader-segments { max-width: 820px; margin: 28px auto; }
.cbt-reader-segment { margin-bottom: 22px; padding: clamp(22px, 4vw, 38px); border: 1px solid rgba(120,125,135,.16); border-radius: 18px; background: var(--reader-paper); box-shadow: 0 8px 24px rgba(20,23,28,.04); }
.cbt-reader-column { white-space: pre-wrap; transition: color .18s ease, background-color .18s ease, font-size .18s ease; }
.cbt-reader-column.is-primary {
  margin: 0;
  padding: 0;
  color: var(--reader-text);
  font-family: "Noto Serif KR", "Nanum Myeongjo", serif;
  font-size: var(--reader-size, 19px);
  line-height: 2;
  border: 0;
  background: transparent;
}
.cbt-reader-column.is-secondary {
  margin-top: 15px;
  padding: 13px 15px;
  color: #5d6570;
  font-size: calc(var(--reader-size, 19px) - 3px);
  line-height: 1.78;
  border: 0;
  border-radius: 13px;
  background: #f4f6f8;
}
.cbt-reader-translation.is-secondary { color: #49667d; background: #f0f6fa; }
.cbt-reader-pronunciation.is-secondary { color: #a84839; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff2ef; }
.cbt-reader-note.is-secondary { color: #526b58; background: #f1f7f2; }
.cbt-learning-reader.is-dark .cbt-reader-column.is-secondary { color: #c2c8d0; background: #30343a; }
.cbt-learning-reader.is-dark .cbt-reader-translation.is-secondary { color: #b7d4e8; background: #29343d; }
.cbt-learning-reader.is-dark .cbt-reader-pronunciation.is-secondary { color: #ffad9f; background: #3a2e2d; }
.cbt-learning-reader.is-dark .cbt-reader-note.is-secondary { color: #bad3bf; background: #2c3830; }
.cbt-learning-reader:not(.show-source) .cbt-reader-source,
.cbt-learning-reader:not(.show-translation) .cbt-reader-translation,
.cbt-learning-reader:not(.show-pronunciation) .cbt-reader-pronunciation,
.cbt-learning-reader:not(.show-note) .cbt-reader-note { display: none; }
.cbt-reader-footer { display: flex; align-items: center; justify-content: space-between; max-width: 820px; margin: 0 auto; }

.cbt-learning-admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 12px; margin-top: 18px; }
.cbt-learning-admin-item { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 12px; cursor: pointer; border: 1px solid #e5e6e9; border-radius: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.cbt-learning-admin-item:hover, .cbt-learning-admin-item:focus-visible { border-color: #ff816f; box-shadow: 0 8px 20px rgba(25,28,33,.07); outline: 0; }
.cbt-learning-admin-copy { display: grid; gap: 5px; min-width: 0; }
.cbt-learning-admin-copy strong { overflow: hidden; color: #22252a; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.cbt-learning-admin-copy small { color: #777d86; font-size: 11px; }
.cbt-learning-admin-item > .btn { flex: 0 0 auto; margin-left: auto; }
.cbt-learning-list-modal { width: min(560px, calc(100vw - 28px)); }
.cbt-learning-content-description { margin: 0 0 12px; padding: 13px 15px; color: #5d626c; font-size: 13px; line-height: 1.7; white-space: pre-wrap; border: 1px solid #ece4df; border-radius: 13px; background: #fff8f5; }
.cbt-learning-unit-popup-list { display: grid; gap: 8px; max-height: min(62vh, 560px); overflow: auto; }
.cbt-learning-unit-popup-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 12px; color: #292d33; text-align: left; cursor: pointer; border: 1px solid #e8e9ec; border-radius: 11px; background: #fafafa; }
.cbt-learning-unit-popup-item:hover { border-color: #ff8b79; background: #fff6f4; }
.cbt-learning-unit-popup-item small { color: #777d86; }
.cbt-learning-unit-order { display: grid; place-items: center; width: 30px; height: 30px; color: #a94334; font-size: 12px; font-weight: 800; border-radius: 50%; background: #ffece8; }
.cbt-learning-cover-preview { display: grid; place-items: center; min-height: 160px; padding: 10px; border: 1px dashed #d9dce1; border-radius: 12px; background: #f7f8f9; }
.cbt-learning-cover-preview img { display: block; width: 112px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 22px rgba(20,23,28,.12); }
.cbt-learning-aligned-editor { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.cbt-learning-aligned-editor textarea { min-height: 260px; resize: vertical; line-height: 1.65; }
.cbt-learning-align-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 11px 13px; border-radius: 10px; background: #f4f5f7; }
.cbt-learning-align-status { color: #626873; font-size: 12px; line-height: 1.5; }
.cbt-learning-align-status.is-ready { color: #267247; }
.cbt-learning-align-status.is-warning { color: #a43c2e; }

@media (max-width: 920px) {
  #cbt .cbt-learning-hero { grid-template-columns: 1fr; }
  .cbt-learning-hero-mark { display: none; }
  .cbt-learning-home-grid { grid-template-columns: 1fr; }
  .cbt-learning-route-card { min-height: auto; }
}
@media (max-width: 680px) {
  #cbt .cbt-learning-hero { min-height: 0; padding: 24px 20px; border-radius: 18px; }
  .cbt-learning-hero h2 { font-size: 25px; }
  .cbt-learning-section-head { display: grid; align-items: stretch; }
  .cbt-learning-section-head .search-box { width: 100%; }
  .cbt-learning-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cbt-learning-book-copy { padding: 10px 10px 12px; }
  .cbt-learning-book-copy strong { font-size: 14px; }
  .cbt-learning-admin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cbt-learning-admin-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; padding: 9px; }
  .cbt-learning-admin-item .cbt-learning-cover.compact { width: 42px; flex-basis: 42px; }
  .cbt-learning-admin-item > .btn { grid-column: 1 / -1; width: 100%; margin-left: 0; }
  .cbt-learning-reader { padding-bottom: calc(154px + env(safe-area-inset-bottom, 0px)); }
  .cbt-reader-header { grid-template-columns: auto minmax(0,1fr); top: 0; padding: 10px 0; }
  .cbt-reader-header select { grid-column: 1 / -1; width: 100%; }
  .cbt-reader-unit-select { min-height: 40px; border-radius: 999px; }
  .cbt-reader-tools {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 8px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 6px;
    padding: 8px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 30px rgba(20,23,28,.2);
    backdrop-filter: blur(12px);
  }
  .cbt-reader-tools label { justify-content: center; min-width: 0; padding: 5px 2px; font-size: 10px; white-space: nowrap; }
  .cbt-reader-font-control { display: inline-flex !important; grid-column: span 2; margin-left: 0; }
  .cbt-reader-font-control input { min-width: 52px; width: 74px; }
  .cbt-reader-tools .btn { grid-column: span 2; min-width: 0; min-height: 32px; padding: 5px 7px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; border-radius: 999px; }
  .cbt-learning-reader.is-dark .cbt-reader-tools { background: rgba(37,40,45,.96); }
  .cbt-reader-segments { margin-top: 14px; }
  .cbt-reader-segment { margin-bottom: 12px; padding: 20px 18px; border-radius: 14px; }
  .cbt-reader-column.is-primary { line-height: 1.9; }
  .cbt-reader-column.is-secondary { margin-top: 12px; padding: 11px 12px; border-radius: 11px; }
  .cbt-learning-aligned-editor { grid-template-columns: 1fr; }
  .cbt-learning-align-row { align-items: stretch; flex-direction: column; }
}

/* v56.03.24 · JH 학습 리더 장 선택과 이전·다음 이동 UI */
#cbt .cbt-reader-header > .jh-select {
  width: 100%;
  min-width: 150px;
}
#cbt .cbt-reader-header .jh-select-trigger.cbt-reader-unit-select {
  min-height: 42px;
  height: 42px;
  padding: 0 46px 0 16px;
  color: #30343a;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid #dfe2e7;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20,23,28,.07);
}
#cbt .cbt-reader-header .jh-select-trigger.cbt-reader-unit-select::after {
  right: 15px;
  width: 8px;
  height: 8px;
  border-right-color: #f04d39;
  border-bottom-color: #f04d39;
}
#cbt .cbt-reader-header .jh-select.is-open .jh-select-trigger.cbt-reader-unit-select,
#cbt .cbt-reader-header .jh-select-trigger.cbt-reader-unit-select:focus-visible {
  border-color: #ff715d;
  box-shadow: 0 0 0 3px rgba(255,90,67,.14), 0 7px 18px rgba(20,23,28,.08);
}
/* 장/화 선택 팝업의 시각 언어는 공통 jh-select.css가 담당합니다. */
#cbt .cbt-learning-reader.is-dark .cbt-reader-header .jh-select-trigger.cbt-reader-unit-select {
  color: #ece9df;
  border-color: #41464f;
  background: #292c31;
  box-shadow: 0 5px 16px rgba(0,0,0,.22);
}
#cbt .cbt-reader-footer {
  gap: 12px;
  padding-top: 8px;
}
#cbt .cbt-reader-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 122px;
  min-height: 42px;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(23,27,33,.08);
}
#cbt .cbt-reader-nav-arrow {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  transform: translateY(-1px);
  background: rgba(255,255,255,.2);
}
#cbt .cbt-reader-nav-button.light .cbt-reader-nav-arrow {
  color: #b64031;
  background: #ffe9e4;
}
#cbt .cbt-reader-footer > .small {
  min-width: 78px;
  padding: 7px 10px;
  color: #6a707a;
  font-weight: 800;
  text-align: center;
  border: 1px solid rgba(120,125,135,.15);
  border-radius: 999px;
  background: var(--reader-paper);
}

@media (max-width: 680px) {
  #cbt .cbt-reader-header > .jh-select {
    grid-column: 1 / -1;
    min-width: 0;
  }
  #cbt .cbt-reader-header .jh-select-trigger.cbt-reader-unit-select {
    min-height: 40px;
    height: 40px;
  }
  #cbt .cbt-reader-footer { gap: 7px; }
  #cbt .cbt-reader-nav-button {
    min-width: 0;
    min-height: 40px;
    padding: 6px 10px;
    gap: 5px;
    font-size: 11px;
  }
  #cbt .cbt-reader-nav-arrow {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    font-size: 15px;
  }
  #cbt .cbt-reader-footer > .small {
    min-width: 58px;
    padding: 6px 7px;
    font-size: 9px;
  }
}
/* v56.03.03 CCTV 저장용량 시뮬레이터 - PC 전용/기본 스타일
   모든 선택자는 #cctv-simulator 아래로 한정하여 기존 업무화면에 영향을 주지 않는다. */
#cctv-simulator {
  --sim-ink: #111827;
  --sim-navy: #172033;
  --sim-navy-2: #24324a;
  --sim-red: #dc2626;
  --sim-red-soft: #fee2e2;
  --sim-line: #e5e7eb;
  --sim-muted: #64748b;
  --sim-panel: #ffffff;
  --sim-bg: #f4f6f9;
  --sim-green: #0f766e;
  --sim-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  color: var(--sim-ink);
}

#cctv-simulator.page.active {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 48px);
  min-height: 0;
  overflow: hidden;
}

#cctv-simulator * { box-sizing: border-box; }
#cctv-simulator button,
#cctv-simulator input { font: inherit; }

#cctv-simulator .cctv-sim-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-bottom: 12px;
}

#cctv-simulator .cctv-sim-heading { min-width: 0; }
#cctv-simulator .cctv-sim-heading h1 {
  margin: 1px 0 0;
  font-size: clamp(22px, 1.65vw, 29px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 850;
  color: var(--sim-ink);
}
#cctv-simulator .cctv-sim-heading p {
  margin: 5px 0 0;
  color: var(--sim-muted);
  font-size: 12px;
  font-weight: 650;
}
#cctv-simulator .cctv-sim-kicker {
  display: block;
  color: var(--sim-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

#cctv-simulator .cctv-sim-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}
#cctv-simulator .cctv-sim-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d7dce4;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
#cctv-simulator .cctv-sim-action:hover {
  transform: translateY(-1px);
  border-color: #aeb7c5;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
}
#cctv-simulator .cctv-sim-action-primary {
  border-color: var(--sim-navy);
  background: var(--sim-navy);
  color: #fff;
}
#cctv-simulator .cctv-sim-mobile-action { display: none; }

#cctv-simulator .cctv-sim-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(245px, 278px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 132px;
  grid-template-areas:
    "settings workspace"
    "history history";
  gap: 12px;
  overflow: hidden;
}

#cctv-simulator .cctv-sim-panel,
#cctv-simulator .cctv-sim-workspace {
  border: 1px solid var(--sim-line);
  border-radius: 18px;
  background: var(--sim-panel);
  box-shadow: var(--sim-shadow);
}

#cctv-simulator .cctv-sim-settings {
  grid-area: settings;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(220, 38, 38, .055), transparent 34%),
    #fff;
}
#cctv-simulator .cctv-sim-workspace {
  grid-area: workspace;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, .96), rgba(255, 255, 255, .98)),
    #fff;
}
#cctv-simulator .cctv-sim-history {
  grid-area: history;
  min-width: 0;
  min-height: 0;
  padding: 10px 12px;
  overflow: hidden;
}

#cctv-simulator .cctv-sim-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#cctv-simulator .cctv-sim-sheet-head > div:first-child { min-width: 0; }
#cctv-simulator .cctv-sim-sheet-head strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.025em;
}
#cctv-simulator .cctv-sim-sheet-head span {
  display: block;
  margin-top: 2px;
  color: var(--sim-muted);
  font-size: 10px;
  font-weight: 650;
}
#cctv-simulator .cctv-sim-sheet-close { display: none; }

#cctv-simulator .cctv-sim-field {
  padding: 11px 0;
  border-top: 1px solid #eef1f5;
}
#cctv-simulator .cctv-sim-field:first-of-type { border-top: 0; padding-top: 2px; }
#cctv-simulator .cctv-sim-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 750;
  color: #475569;
}
#cctv-simulator .cctv-sim-label strong {
  color: var(--sim-ink);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#cctv-simulator .cctv-sim-number-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
}
#cctv-simulator .cctv-sim-number-row button,
#cctv-simulator .cctv-sim-number-row input {
  height: 34px;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #fff;
}
#cctv-simulator .cctv-sim-number-row button {
  color: #475569;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
#cctv-simulator .cctv-sim-number-row input {
  min-width: 0;
  padding: 0 8px;
  text-align: center;
  color: var(--sim-ink);
  font-weight: 900;
  outline: 0;
  appearance: textfield;
}
#cctv-simulator .cctv-sim-number-row input::-webkit-inner-spin-button,
#cctv-simulator .cctv-sim-number-row input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

#cctv-simulator .cctv-sim-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
#cctv-simulator .cctv-sim-segment-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#cctv-simulator .cctv-sim-segment-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#cctv-simulator .cctv-sim-segment button {
  min-width: 0;
  height: 32px;
  padding: 0 4px;
  border: 1px solid #dce1e9;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
#cctv-simulator .cctv-sim-segment button:hover { transform: translateY(-1px); }
#cctv-simulator .cctv-sim-segment button.active {
  border-color: var(--sim-navy);
  background: var(--sim-navy);
  color: #fff;
  box-shadow: 0 5px 12px rgba(17, 24, 39, .16);
}

#cctv-simulator .cctv-sim-range {
  accent-color: var(--sim-red);
}
#cctv-simulator .cctv-sim-range-scale {
  display: flex;
  justify-content: space-between;
}
#cctv-simulator .cctv-sim-help {
  margin: 7px 0 0;
  color: #94a3b8;
  font-size: 9.5px;
  line-height: 1.35;
}
#cctv-simulator .cctv-sim-input-summary {
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  background: #f8fafc;
}
#cctv-simulator .cctv-sim-input-summary span {
  display: block;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
}
#cctv-simulator .cctv-sim-input-summary strong {
  display: block;
  margin-top: 3px;
  font-weight: 900;
}

#cctv-simulator .cctv-sim-profile-row {
  flex: 0 0 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
#cctv-simulator .cctv-sim-profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 1px 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e1e5eb;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
#cctv-simulator .cctv-sim-profile-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--sim-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
#cctv-simulator .cctv-sim-profile-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,.08); }
#cctv-simulator .cctv-sim-profile-card.active {
  border-color: rgba(220,38,38,.35);
  background: linear-gradient(135deg, #fff, #fff7f7);
  box-shadow: 0 8px 18px rgba(127,29,29,.08);
}
#cctv-simulator .cctv-sim-profile-card.active::after { transform: scaleX(1); }
#cctv-simulator .cctv-sim-profile-card > span {
  grid-column: 1;
  color: #94a3b8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
}
#cctv-simulator .cctv-sim-profile-card > strong {
  grid-column: 1;
  font-weight: 900;
  letter-spacing: -.02em;
}
#cctv-simulator .cctv-sim-profile-card > em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--sim-ink);
  font-size: clamp(17px, 1.5vw, 23px);
  font-style: normal;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
#cctv-simulator .cctv-sim-profile-card > small {
  position: absolute;
  right: 12px;
  bottom: 6px;
}

#cctv-simulator .cctv-sim-result-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(230px, .78fr);
  grid-template-rows: minmax(128px, 1.12fr) minmax(105px, .94fr) minmax(104px, .92fr);
  gap: 8px;
  overflow: hidden;
}
#cctv-simulator .cctv-sim-result-grid > section {
  min-width: 0;
  min-height: 0;
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

#cctv-simulator .cctv-sim-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  grid-template-rows: 1fr auto;
  gap: 4px 8px;
  padding: 14px 15px 10px;
  background:
    radial-gradient(circle at 78% 20%, rgba(220,38,38,.15), transparent 24%),
    linear-gradient(135deg, #111827 0%, #1b263b 70%, #25334a 100%) !important;
  color: #fff;
}
#cctv-simulator .cctv-sim-hero-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
#cctv-simulator .cctv-sim-hero-copy { align-self: center; min-width: 0; }
#cctv-simulator .cctv-sim-hero-copy > span {
  display: block;
  color: #cbd5e1;
  font-weight: 850;
}
#cctv-simulator .cctv-sim-hero-copy > strong {
  display: block;
  margin-top: 3px;
  line-height: .95;
  letter-spacing: -.055em;
  white-space: nowrap;
}
#cctv-simulator .cctv-sim-hero-copy > strong b {
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
#cctv-simulator .cctv-sim-hero-copy > strong small { font-size: 16px; font-weight: 850; color: #cbd5e1; }
#cctv-simulator .cctv-sim-hero-copy p {
  margin: 6px 0 0;
  color: #e2e8f0;
  font-weight: 700;
}
#cctv-simulator .cctv-sim-drive-visual {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 88px;
  height: 88px;
}
/* v56.03.11: HDD 권장구성 대비 실제 사용률을 도넛 각도로 표시 */
#cctv-simulator .cctv-sim-drive-ring {
  --sim-drive-percent: 0%;
  --sim-drive-ring-width: 6px;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  animation: cctvSimRingFloat 3.2s ease-in-out infinite;
}
#cctv-simulator .cctv-sim-drive-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--sim-red) 0 var(--sim-drive-percent),
    rgba(255,255,255,.12) var(--sim-drive-percent) 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--sim-drive-ring-width)), #000 calc(100% - var(--sim-drive-ring-width) + 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--sim-drive-ring-width)), #000 calc(100% - var(--sim-drive-ring-width) + 1px));
}
#cctv-simulator .cctv-sim-drive-ring::after {
  content: "HDD";
  position: absolute;
  bottom: 19px;
  color: #94a3b8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}
#cctv-simulator .cctv-sim-drive-ring span {
  margin-top: -10px;
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
#cctv-simulator .cctv-sim-drive-led {
  position: absolute;
  right: 2px;
  bottom: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,.12), 0 0 15px rgba(239,68,68,.8);
  animation: cctvSimLed 1.8s ease-in-out infinite;
}
#cctv-simulator .cctv-sim-hero-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  position: relative;
  z-index: 1;
}
#cctv-simulator .cctv-sim-hero-meta > span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 9px;
  background: rgba(255,255,255,.055);
}
#cctv-simulator .cctv-sim-hero-meta small {
  display: block;
  color: #94a3b8;
  font-weight: 700;
}
#cctv-simulator .cctv-sim-hero-meta strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #fff;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#cctv-simulator .cctv-sim-gauge-card,
#cctv-simulator .cctv-sim-codec-card,
#cctv-simulator .cctv-sim-tech-card,
#cctv-simulator .cctv-sim-retention-card,
#cctv-simulator .cctv-sim-compare-card { padding: 11px 12px; }
#cctv-simulator .cctv-sim-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
#cctv-simulator .cctv-sim-card-head strong { display: block; font-size: 11px; font-weight: 900; }
#cctv-simulator .cctv-sim-card-head span { display: block; margin-top: 1px; color: #94a3b8; font-size: 8px; font-weight: 650; }
#cctv-simulator .cctv-sim-card-head em {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-style: normal;
  font-weight: 900;
}

#cctv-simulator .cctv-sim-gauge-list { display: grid; gap: 8px; }
#cctv-simulator .cctv-sim-gauge > div { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
#cctv-simulator .cctv-sim-gauge span { color: #64748b; font-size: 9px; font-weight: 750; }
#cctv-simulator .cctv-sim-gauge strong { color: #334155; font-size: 9px; font-weight: 900; font-variant-numeric: tabular-nums; }
#cctv-simulator .cctv-sim-gauge > i {
  display: block;
  border-radius: 99px;
  background: #eef2f7;
  overflow: hidden;
}
#cctv-simulator .cctv-sim-gauge > i > b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #334155, #dc2626);
  transition: width .55s cubic-bezier(.2,.75,.25,1);
}

#cctv-simulator .cctv-sim-codec-bars { display: grid; gap: 8px; }
#cctv-simulator .cctv-sim-codec-bars > div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 6px;
}
#cctv-simulator .cctv-sim-codec-bars span { color: #64748b; font-size: 9px; font-weight: 800; }
#cctv-simulator .cctv-sim-codec-bars strong { text-align: right; font-size: 9px; font-weight: 900; font-variant-numeric: tabular-nums; }
#cctv-simulator .cctv-sim-codec-bars i { height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
#cctv-simulator .cctv-sim-codec-bars b { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .55s cubic-bezier(.2,.75,.25,1); }
#cctv-simulator #cctvSimH264Bar { background: #64748b; }
#cctv-simulator #cctvSimH265Bar { background: var(--sim-red); }
#cctv-simulator .cctv-sim-codec-card p { margin: 7px 0 0; color: #64748b; font-size: 8.5px; line-height: 1.3; }

#cctv-simulator .cctv-sim-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#cctv-simulator .cctv-sim-tech-grid > span {
  min-width: 0;
  padding: 6px 7px;
  border-radius: 9px;
  background: #f8fafc;
}
#cctv-simulator .cctv-sim-tech-grid small { display: block; color: #94a3b8; font-size: 7.5px; font-weight: 700; }
#cctv-simulator .cctv-sim-tech-grid strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#cctv-simulator .cctv-sim-retention-bars { display: grid; gap: 5px; }
#cctv-simulator .cctv-sim-retention-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 58px;
  gap: 6px;
  align-items: center;
}
#cctv-simulator .cctv-sim-retention-row span,
#cctv-simulator .cctv-sim-retention-row strong { font-size: 8.5px; font-weight: 850; }
#cctv-simulator .cctv-sim-retention-row span { color: #64748b; }
#cctv-simulator .cctv-sim-retention-row strong { text-align: right; font-variant-numeric: tabular-nums; }
#cctv-simulator .cctv-sim-retention-row i { height: 7px; overflow: hidden; border-radius: 99px; background: #eef2f7; }
#cctv-simulator .cctv-sim-retention-row b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #cbd5e1, #334155); transition: width .5s ease; }
#cctv-simulator .cctv-sim-retention-row.current b { background: linear-gradient(90deg, #fca5a5, #dc2626); }

#cctv-simulator .cctv-sim-compare-content { display: grid; gap: 5px; min-height: 56px; }
#cctv-simulator .cctv-sim-empty-mini {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 8px;
  border: 1px dashed #d7dce4;
  border-radius: 10px;
  color: #94a3b8;
  line-height: 1.35;
  text-align: center;
}
#cctv-simulator .cctv-sim-compare-row {
  display: grid;
  grid-template-columns: minmax(82px, .8fr) minmax(0, 1fr) 54px;
  align-items: center;
  gap: 6px;
}
#cctv-simulator .cctv-sim-compare-row > span {
  overflow: hidden;
  color: #475569;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#cctv-simulator .cctv-sim-compare-row > i { height: 7px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
#cctv-simulator .cctv-sim-compare-row > i > b { display: block; height: 100%; border-radius: inherit; background: #334155; transition: width .45s ease; }
#cctv-simulator .cctv-sim-compare-row > strong { text-align: right; font-size: 8.5px; font-weight: 900; font-variant-numeric: tabular-nums; }

#cctv-simulator .cctv-sim-footnote {
  flex: 0 0 auto;
  color: #94a3b8;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

#cctv-simulator .cctv-sim-history-head { margin-bottom: 7px; }
#cctv-simulator .cctv-sim-history-actions { display: flex; align-items: center; gap: 5px; }
#cctv-simulator .cctv-sim-history-actions > button:not(.cctv-sim-sheet-close) {
  height: 26px;
  padding: 0 8px;
  border: 1px solid #dce1e8;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
#cctv-simulator .cctv-sim-history-list {
  display: flex;
  align-items: stretch;
  gap: 7px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 4px;
  scrollbar-width: thin;
}
#cctv-simulator .cctv-sim-history-card {
  position: relative;
  flex: 0 0 185px;
  min-width: 0;
  border: 1px solid #e0e5eb;
  border-radius: 11px;
  background: #f8fafc;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
#cctv-simulator .cctv-sim-history-card:hover { transform: translateY(-1px); border-color: #bac3cf; }
#cctv-simulator .cctv-sim-history-card.selected { border-color: rgba(220,38,38,.42); background: #fff7f7; }
#cctv-simulator .cctv-sim-history-card.selected::after {
  content: "COMPARE";
  position: absolute;
  color: var(--sim-red);
  font-weight: 950;
  letter-spacing: .06em;
}
#cctv-simulator .cctv-sim-history-card > span { display: block; color: #94a3b8; font-size: 7px; font-weight: 800; }
#cctv-simulator .cctv-sim-history-card > strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
}
#cctv-simulator .cctv-sim-history-card > em {
  display: block;
  margin-top: 4px;
  color: var(--sim-red);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
#cctv-simulator .cctv-sim-history-card > small { display: block; margin-top: 1px; color: #64748b; font-size: 7px; font-weight: 750; }
#cctv-simulator .cctv-sim-history-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
#cctv-simulator .cctv-sim-history-empty {
  display: grid;
  place-items: center;
  flex: 1 0 100%;
  border: 1px dashed #d8dde5;
  border-radius: 11px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
}

#cctv-simulator .cctv-sim-sheet-backdrop { display: none; }
#cctv-simulator .cctv-sim-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 13000;
  max-width: min(430px, calc(100vw - 32px));
  padding: 9px 14px;
  border-radius: 11px;
  background: rgba(17,24,39,.94);
  color: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.24);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .2s ease;
}
#cctv-simulator .cctv-sim-toast.show { opacity: 1; transform: translate(-50%, 0); }

#cctv-simulator.cctv-sim-refreshing .cctv-sim-result-grid > section { animation: cctvSimPanelPulse .28s ease; }

@keyframes cctvSimRingFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}
@keyframes cctvSimLed {
  0%, 100% { opacity: .42; }
  50% { opacity: 1; }
}
@keyframes cctvSimPanelPulse {
  from { transform: translateY(3px); opacity: .82; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1180px) and (min-width: 761px) {
  #cctv-simulator .cctv-sim-shell { grid-template-columns: 230px minmax(0, 1fr); }
  #cctv-simulator .cctv-sim-settings { padding: 11px; }
  #cctv-simulator .cctv-sim-field { padding: 8px 0; }
  #cctv-simulator .cctv-sim-result-grid { grid-template-columns: minmax(0, 1.1fr) minmax(210px, .9fr); }
  #cctv-simulator .cctv-sim-tech-grid { gap: 4px; }
}

@media (max-height: 760px) and (min-width: 761px) {
  #cctv-simulator .cctv-sim-topbar { min-height: 48px; margin-bottom: 8px; }
  #cctv-simulator .cctv-sim-heading p { display: none; }
  #cctv-simulator .cctv-sim-shell { grid-template-rows: minmax(0, 1fr) 116px; gap: 8px; }
  #cctv-simulator .cctv-sim-settings { padding: 10px 12px; }
  #cctv-simulator .cctv-sim-sheet-head { margin-bottom: 7px; }
  #cctv-simulator .cctv-sim-field { padding: 7px 0; }
  #cctv-simulator .cctv-sim-label { margin-bottom: 5px; }
  #cctv-simulator .cctv-sim-help { display: none; }
  #cctv-simulator .cctv-sim-input-summary { margin-top: 4px; padding: 7px 9px; }
  #cctv-simulator .cctv-sim-workspace { gap: 7px; padding: 9px; }
  #cctv-simulator .cctv-sim-profile-row { flex-basis: 61px; gap: 6px; }
  #cctv-simulator .cctv-sim-profile-card { padding: 7px 10px; }
  #cctv-simulator .cctv-sim-result-grid { grid-template-rows: minmax(110px, 1.08fr) minmax(92px, .96fr) minmax(88px, .9fr); gap: 6px; }
  #cctv-simulator .cctv-sim-gauge-card,
  #cctv-simulator .cctv-sim-codec-card,
  #cctv-simulator .cctv-sim-tech-card,
  #cctv-simulator .cctv-sim-retention-card,
  #cctv-simulator .cctv-sim-compare-card { padding: 8px 10px; }
  #cctv-simulator .cctv-sim-card-head { margin-bottom: 5px; }
  #cctv-simulator .cctv-sim-gauge-list,
  #cctv-simulator .cctv-sim-codec-bars { gap: 5px; }
  #cctv-simulator .cctv-sim-footnote { display: none; }
  #cctv-simulator .cctv-sim-history-list { height: 60px; }
  #cctv-simulator .cctv-sim-history-card { flex-basis: 172px; padding-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  #cctv-simulator *,
  #cctv-simulator *::before,
  #cctv-simulator *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* v56.03.04 - 실제 설정값/FPS/GOP/Bitrate 및 견적안전 기준 보정 */
#cctv-simulator .cctv-sim-settings {
  padding: 11px 13px;
}
#cctv-simulator .cctv-sim-sheet-head { margin-bottom: 7px; }
#cctv-simulator .cctv-sim-field-compact {
  padding: 7px 0;
}
#cctv-simulator .cctv-sim-field-compact .cctv-sim-label,
#cctv-simulator .cctv-sim-mini-field .cctv-sim-label {
  margin-bottom: 5px;
}
#cctv-simulator .cctv-sim-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #eef1f5;
}
#cctv-simulator .cctv-sim-pair-help {
  grid-column: 1 / -1;
  margin: -1px 0 0;
}
#cctv-simulator .cctv-sim-mini-field { min-width: 0; }
#cctv-simulator .cctv-sim-mini-field .cctv-sim-segment button {
  height: 28px;
  font-size: 9px;
}
#cctv-simulator .cctv-sim-fps-segment button {
  padding: 0 2px;
  font-size: 8.5px;
}

#cctv-simulator .cctv-sim-range-scale {
  position: relative;
  display: block;
}
#cctv-simulator .cctv-sim-range-scale span {
  position: absolute;
  left: var(--pos);
  top: 0;
  white-space: nowrap;
}
#cctv-simulator .cctv-sim-range-scale span:first-child { transform: none; }
#cctv-simulator .cctv-sim-range-scale span:last-child { transform: translateX(-100%); }

#cctv-simulator .cctv-sim-encoding-box {
  margin-top: 7px;
  padding: 8px 9px;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #fff);
}
#cctv-simulator .cctv-sim-encoding-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
#cctv-simulator .cctv-sim-encoding-title strong {
  font-size: 10.5px;
  font-weight: 900;
}
#cctv-simulator .cctv-sim-encoding-title span {
  overflow: hidden;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#cctv-simulator .cctv-sim-encoding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
}
#cctv-simulator .cctv-sim-bitrate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 42px;
  align-items: center;
}
#cctv-simulator .cctv-sim-bitrate-row label {
  min-width: 0;
  color: #475569;
  font-weight: 850;
}
#cctv-simulator .cctv-sim-bitrate-row label span,
#cctv-simulator .cctv-sim-bitrate-row label small { display: block; }
#cctv-simulator .cctv-sim-bitrate-row label small {
  margin-top: 1px;
  color: #94a3b8;
}
#cctv-simulator .cctv-sim-bitrate-row input,
#cctv-simulator .cctv-sim-bitrate-row button {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
}
#cctv-simulator .cctv-sim-bitrate-row input {
  width: 100%;
  min-width: 0;
  padding: 0 6px;
  text-align: right;
  color: #111827;
  font-weight: 900;
}
#cctv-simulator .cctv-sim-bitrate-row button {
  padding: 0;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 900;
  cursor: pointer;
}
#cctv-simulator .cctv-sim-bitrate-row button.active {
  border-color: var(--sim-navy);
  background: var(--sim-navy);
  color: #fff;
}
#cctv-simulator .cctv-sim-input-summary {
  margin-top: 7px;
}
#cctv-simulator .cctv-sim-input-summary strong { font-size: 10px; }

#cctv-simulator .cctv-sim-profile-card > em {
  letter-spacing: -.025em;
}
#cctv-simulator .cctv-sim-profile-card > small {
  color: #64748b;
  font-weight: 800;
}
#cctv-simulator .cctv-sim-profile-card.active > small { color: rgba(255,255,255,.72); }

@media (min-width: 761px) {
  #cctv-simulator .cctv-sim-shell {
    grid-template-rows: minmax(0, 1fr) 122px;
  }
  #cctv-simulator .cctv-sim-history { padding-top: 8px; padding-bottom: 8px; }
  #cctv-simulator .cctv-sim-history .cctv-sim-sheet-head { margin-bottom: 6px; }
}

@media (min-width: 761px) {
  #cctv-simulator .cctv-sim-topbar { min-height: 50px; margin-bottom: 8px; }
  #cctv-simulator .cctv-sim-shell { grid-template-rows: minmax(0, 1fr) 110px; gap: 10px; }
  #cctv-simulator .cctv-sim-settings { padding: 9px 12px; }
  #cctv-simulator .cctv-sim-settings .cctv-sim-sheet-head { margin-bottom: 4px; }
  #cctv-simulator .cctv-sim-field-compact { padding: 5px 0; }
  #cctv-simulator .cctv-sim-field-pair { padding: 5px 0; gap: 6px; }
  #cctv-simulator .cctv-sim-number-row button,
  #cctv-simulator .cctv-sim-number-row input { height: 30px; }
  #cctv-simulator .cctv-sim-segment button { height: 28px; }
  #cctv-simulator .cctv-sim-mini-field .cctv-sim-segment button { height: 25px; }
  #cctv-simulator .cctv-sim-encoding-box { margin-top: 5px; padding: 6px 8px; }
  #cctv-simulator .cctv-sim-encoding-title { margin-bottom: 4px; }
  #cctv-simulator .cctv-sim-encoding-grid { gap: 4px 7px; }
  #cctv-simulator .cctv-sim-bitrate-row { margin-top: 5px; }
  #cctv-simulator .cctv-sim-bitrate-row input,
  #cctv-simulator .cctv-sim-bitrate-row button { height: 26px; }
  #cctv-simulator .cctv-sim-input-summary { margin-top: 5px; padding: 5px 8px; }
}

/* v56.03.05 - 입력 단위/가독성/무스크롤 보정 */
#cctv-simulator { box-sizing: border-box; }
#cctv-simulator.page.active {
  max-height: calc(100dvh - 48px);
}

@media (min-width: 761px) {
  #cctv-simulator .cctv-sim-shell {
    grid-template-columns: minmax(285px, 304px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 100px;
    gap: 8px;
  }
  #cctv-simulator .cctv-sim-settings { padding: 13px 15px; }
  #cctv-simulator .cctv-sim-settings .cctv-sim-sheet-head { margin-bottom: 8px; }
  #cctv-simulator .cctv-sim-field-compact { padding: 8px 0; }
  #cctv-simulator .cctv-sim-field-pair { padding: 8px 0; gap: 8px; }
  #cctv-simulator .cctv-sim-number-row button,
  #cctv-simulator .cctv-sim-number-row input { height: 34px; }
  #cctv-simulator .cctv-sim-mini-field .cctv-sim-segment button { height: 30px; }
  #cctv-simulator .cctv-sim-encoding-box { margin-top: 8px; padding: 9px 10px; }
  #cctv-simulator .cctv-sim-encoding-title { margin-bottom: 7px; }
  #cctv-simulator .cctv-sim-encoding-grid { gap: 7px 9px; }
  #cctv-simulator .cctv-sim-input-summary { margin-top: 9px; padding: 9px 10px; }
  #cctv-simulator .cctv-sim-workspace { gap: 8px; padding: 10px; }
  #cctv-simulator .cctv-sim-profile-row { flex-basis: 68px; gap: 7px; }
  #cctv-simulator .cctv-sim-result-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(250px, .78fr);
    grid-template-rows: minmax(0, 1.12fr) minmax(0, .94fr) minmax(0, .90fr);
    gap: 7px;
  }
  #cctv-simulator .cctv-sim-history { padding: 7px 10px; }
    #cctv-simulator .cctv-sim-history-list { height: 48px; }
  #cctv-simulator .cctv-sim-history-card { flex-basis: 194px; padding: 5px 28px 5px 9px; }
  #cctv-simulator .cctv-sim-history-card > em { margin-top: 2px; font-size: 12px; }
}

#cctv-simulator .cctv-sim-resolution-row { display: grid; gap: 6px; }
#cctv-simulator .cctv-sim-resolution-row select {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-weight: 850;
  outline: 0;
}
#cctv-simulator .cctv-sim-range-wrap {
  position: relative;
  padding-top: 20px;
}
#cctv-simulator .cctv-sim-range {
  display: block;
  width: 100%;
  height: 16px;
  margin: 0;
  accent-color: var(--sim-red);
}
#cctv-simulator .cctv-sim-range-bubble {
  position: absolute;
  top: 0;
  min-width: 34px;
  padding: 2px 5px;
  border-radius: 7px;
  background: var(--sim-navy);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}
#cctv-simulator .cctv-sim-range-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 6px;
  height: 6px;
  background: var(--sim-navy);
  transform: translateX(-50%) rotate(45deg);
}
#cctv-simulator .cctv-sim-range-scale {
  display: flex;
  justify-content: space-between;
  height: auto;
  margin-top: 0;
  color: #94a3b8;
  font-size: 8.5px;
  font-weight: 750;
}
#cctv-simulator .cctv-sim-range-scale span {
  position: static;
  transform: none !important;
}

#cctv-simulator .cctv-sim-number-row-small {
  grid-template-columns: 32px minmax(0, 1fr) 32px;
}
#cctv-simulator .cctv-sim-number-row-small input { font-size: 11px; }

#cctv-simulator .cctv-sim-bitrate-row {
  grid-template-columns: minmax(0, 1fr) 92px 46px;
  gap: 7px;
  margin-top: 9px;
}
#cctv-simulator .cctv-sim-bitrate-row label { font-size: 9.5px; }
#cctv-simulator .cctv-sim-bitrate-row label small { font-size: 8px; }
#cctv-simulator .cctv-sim-bitrate-row input,
#cctv-simulator .cctv-sim-bitrate-row button { height: 32px; }
#cctv-simulator .cctv-sim-bitrate-row input { font-size: 11px; }

#cctv-simulator .cctv-sim-profile-card > strong { font-size: 14px; }
#cctv-simulator .cctv-sim-profile-card > em { font-size: 18px; }
#cctv-simulator .cctv-sim-profile-card > small { font-size: 9px; }

#cctv-simulator .cctv-sim-hero-copy > span { font-size: 11px; }
#cctv-simulator .cctv-sim-hero-copy p { font-size: 11px; }
#cctv-simulator .cctv-sim-hero-meta small { font-size: 8.8px; }
#cctv-simulator .cctv-sim-hero-meta strong { font-size: 11.2px; }
#cctv-simulator .cctv-sim-card-head strong { font-size: 12.5px; }
#cctv-simulator .cctv-sim-card-head span { font-size: 9px; line-height: 1.25; }
#cctv-simulator .cctv-sim-card-head em { font-size: 8.8px; }
#cctv-simulator .cctv-sim-gauge-list { gap: 9px; }
#cctv-simulator .cctv-sim-gauge span { font-size: 10.2px; }
#cctv-simulator .cctv-sim-gauge strong { font-size: 10.5px; }
#cctv-simulator .cctv-sim-gauge > i { height: 8px; }
#cctv-simulator .cctv-sim-codec-bars > div { grid-template-columns: 58px minmax(0, 1fr) 84px; }
#cctv-simulator .cctv-sim-codec-bars span,
#cctv-simulator .cctv-sim-codec-bars strong { font-size: 10px; }
#cctv-simulator .cctv-sim-codec-card p { font-size: 9.3px; }
#cctv-simulator .cctv-sim-tech-grid small { font-size: 8.3px; }
#cctv-simulator .cctv-sim-tech-grid strong { font-size: 10.7px; }
#cctv-simulator .cctv-sim-retention-row { grid-template-columns: 34px minmax(0, 1fr) 65px; }
#cctv-simulator .cctv-sim-retention-row span,
#cctv-simulator .cctv-sim-retention-row strong { font-size: 9.5px; }
#cctv-simulator .cctv-sim-compare-row > span { font-size: 9px; }
#cctv-simulator .cctv-sim-compare-row > strong { font-size: 9.5px; }
#cctv-simulator .cctv-sim-empty-mini { font-size: 9px; }
#cctv-simulator .cctv-sim-footnote { font-size: 8.7px; }

@media (max-height: 760px) and (min-width: 761px) {
  #cctv-simulator .cctv-sim-shell { grid-template-rows: minmax(0, 1fr) 86px; }
  #cctv-simulator .cctv-sim-history-list { height: 43px; }
  #cctv-simulator .cctv-sim-settings { padding-top: 9px; padding-bottom: 9px; }
  #cctv-simulator .cctv-sim-field-compact,
  #cctv-simulator .cctv-sim-field-pair { padding-top: 6px; padding-bottom: 6px; }
  #cctv-simulator .cctv-sim-encoding-box { margin-top: 5px; padding-top: 7px; padding-bottom: 7px; }
  #cctv-simulator .cctv-sim-range-wrap { padding-top: 18px; }
  #cctv-simulator .cctv-sim-input-summary { margin-top: 5px; padding-top: 7px; padding-bottom: 7px; }
  #cctv-simulator .cctv-sim-profile-row { flex-basis: 60px; }
  #cctv-simulator .cctv-sim-profile-card { padding-top: 6px; padding-bottom: 6px; }
}


/* v56.03.06 - 최근비교/결과 의미 보정 */
#cctv-simulator .cctv-sim-input-summary strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.35;
  word-break: keep-all;
}
#cctv-simulator .cctv-sim-profile-card > em {
  color: var(--sim-red);
}
#cctv-simulator .cctv-sim-profile-card.active > em { color: #fff; }
#cctv-simulator .cctv-sim-profile-card > small {
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#cctv-simulator .cctv-sim-codec-bars > div {
  grid-template-columns: 52px minmax(0, 1fr) 112px;
}
#cctv-simulator .cctv-sim-codec-bars strong { white-space: nowrap; }
#cctv-simulator .cctv-sim-retention-row {
  grid-template-columns: 44px minmax(0, 1fr) 58px;
}
#cctv-simulator .cctv-sim-history-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
#cctv-simulator .cctv-sim-history-title strong,
#cctv-simulator .cctv-sim-history-title span {
  display: inline;
  margin: 0;
}
#cctv-simulator .cctv-sim-history-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#cctv-simulator .cctv-sim-history-list {
  height: 48px;
}
#cctv-simulator .cctv-sim-history-card {
  flex: 0 0 310px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 22px;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 5px 5px 5px 9px;
}
#cctv-simulator .cctv-sim-history-card > .cctv-sim-history-time {
  display: block;
  margin: 0;
  color: #64748b;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#cctv-simulator .cctv-sim-history-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
#cctv-simulator .cctv-sim-history-copy strong,
#cctv-simulator .cctv-sim-history-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#cctv-simulator .cctv-sim-history-copy strong {
  color: var(--sim-ink);
  font-size: 9.5px;
  font-weight: 900;
}
#cctv-simulator .cctv-sim-history-copy em {
  color: var(--sim-red);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
#cctv-simulator .cctv-sim-history-card > strong,
#cctv-simulator .cctv-sim-history-card > em,
#cctv-simulator .cctv-sim-history-card > small { display: none; }
#cctv-simulator .cctv-sim-history-delete {
  position: static;
  align-self: center;
  justify-self: center;
}
#cctv-simulator .cctv-sim-history-card.selected::after {
  right: 30px;
  bottom: 3px;
  font-size: 5.8px;
}

@media (min-width: 761px) {
  #cctv-simulator .cctv-sim-shell { grid-template-rows: minmax(0, 1fr) 92px; }
  #cctv-simulator .cctv-sim-history { padding-top: 6px; padding-bottom: 6px; }
  #cctv-simulator .cctv-sim-history .cctv-sim-sheet-head { margin-bottom: 4px; }
  #cctv-simulator .cctv-sim-settings { padding-bottom: 12px; }
  #cctv-simulator .cctv-sim-input-summary { margin-top: 7px; padding: 8px 10px; }
}

@media (max-height: 760px) and (min-width: 761px) {
  #cctv-simulator .cctv-sim-shell { grid-template-rows: minmax(0, 1fr) 82px; }
  #cctv-simulator .cctv-sim-history-list { height: 42px; }
  #cctv-simulator .cctv-sim-history-card { height: 39px; }
  #cctv-simulator .cctv-sim-input-summary { min-height: 42px; }
}
#cctv-simulator .cctv-sim-profile-card.active > em { color: var(--sim-red); }
#cctv-simulator .cctv-sim-profile-card.active > small { color: #64748b; }


/* v56.03.07 - 고정 해상도 프리셋 / 현재입력 2단 요약 */
#cctv-simulator .cctv-sim-resolution-row select {
  height: 38px;
  font-size: 11px;
}
#cctv-simulator .cctv-sim-input-summary {
  min-height: 70px;
  padding: 8px 10px;
}
#cctv-simulator .cctv-sim-input-summary-title {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .02em;
}
#cctv-simulator .cctv-sim-input-summary-lines {
  display: grid;
  gap: 4px;
}
#cctv-simulator .cctv-sim-input-summary-lines > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}
#cctv-simulator .cctv-sim-input-summary-lines small {
  color: #94a3b8;
  font-size: 8px;
  font-weight: 800;
}
#cctv-simulator .cctv-sim-input-summary-lines strong {
  min-width: 0;
  margin: 0;
  overflow: visible;
  color: #111827;
  font-size: 9.6px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-height: 760px) and (min-width: 761px) {
  #cctv-simulator .cctv-sim-input-summary { min-height: 62px; padding-top: 6px; padding-bottom: 6px; }
  #cctv-simulator .cctv-sim-input-summary-title { margin-bottom: 3px; }
  #cctv-simulator .cctv-sim-input-summary-lines { gap: 2px; }
  #cctv-simulator .cctv-sim-input-summary-lines strong { font-size: 9px; }
}

/* v56.03.16 - 관리자용 현장 실측 비교: 기존 결과 카드 안에 한 줄만 추가해 UI 높이를 늘리지 않는다. */
#cctv-simulator .cctv-sim-field-compare {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #edf1f5;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
#cctv-simulator .cctv-sim-field-compare strong {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 7.8px;
  font-weight: 900;
}
#cctv-simulator .cctv-sim-field-compare span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #475569;
  font-size: 8.2px;
  font-weight: 750;
}
@media (max-height:760px) and (min-width:761px) {
  #cctv-simulator .cctv-sim-field-compare { margin-top: 3px; padding-top: 3px; }
  #cctv-simulator .cctv-sim-field-compare span { font-size: 7.6px; }
}
