/* gukbi.css — 10단계 국비 화면. 원본 globals.css의 국비 절(nb-·edu-·er-·gukbi-·today-)은 app.css에 그대로 있고,
   여기에는 원본에서 인라인 스타일이던 부분(대장·양식·디스코드)과 링크·폼으로 바뀐 자리만 둔다. */

/* ── 상단 탭 · 결과 알림 ─────────────────────────────────────────────── */
.gk-tabs { margin-bottom: 22px; }
.gk-tabs .tabs-item { gap: 7px; font-size: 14px; }
.gk-flash { transition: opacity .3s; }
.gk-flash.off { opacity: 0; pointer-events: none; }
.gk-empty-tab { padding: 80px 20px; text-align: center; color: var(--ink-4); }
.gk-empty-tab p { font-size: 14px; }
.gk-inline-form { display: inline-flex; margin: 0; }
.gk-muted { color: var(--ink-5); }
.gk-muted-sm { font-size: 11px; color: var(--ink-5); }

/* 원본은 버튼이던 칸이 여기서는 링크다 */
a.gukbi-stat, a.nb-reg-chip, a.nb-reg-toggle, a.er-sheet, a.gk-opts-btn { text-decoration: none; color: inherit; }
a.nb-reg-toggle { color: var(--ink-4); }
a.nb-reg-toggle.on { color: var(--accent); }
.nb-period-filter a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-4); background: var(--surface); font-size: 11.5px; text-decoration: none; }
.nb-period-filter a:hover { border-color: var(--line-strong); color: var(--ink-2); }
.nb-period-filter a.on { border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); color: var(--accent); background: var(--accent-soft); font-weight: 620; }
.er-filter a { padding: 4px 10px; border-radius: 6px; color: var(--ink-4); font-size: 11px; font-weight: 620; white-space: nowrap; text-decoration: none; }
.er-filter a.on { color: var(--accent); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.nb-reg-select { width: auto; min-width: 136px; }
.nb-reg-controls .nb-reg-search input { outline: none; }

/* 서버가 항상 그리는 접이식 본문 — 원본은 열렸을 때만 그렸다 */
.nb-round-section:not(.open) .nb-course-body { display: none; }
.edu-sec:not(.open) > .edu-sec-body { display: none; }
[data-gukbi-href] { cursor: pointer; }

/* ── 사용자 정의 대장 ───────────────────────────────────────────────── */
.gk-actions { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.gk-actions-end { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.gk-actions label.btn { cursor: pointer; }
.gk-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; max-width: 640px; }
.gk-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; flex: 1 1 130px; min-width: 120px; }
.gk-stat-n { font-size: 23px; font-weight: 700; }
.gk-stat-l { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.gk-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.gk-filter-select { width: auto; min-width: 130px; }
.gk-filter-q { flex: 1; min-width: 180px; width: auto; }
.gk-empty { padding: 72px 20px; text-align: center; color: var(--ink-4); }
.gk-empty p { font-size: 14px; }
.gk-entries { display: flex; flex-direction: column; gap: 8px; }
.gk-entry { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .2s; }
.gk-entry:hover { border-color: var(--line-strong); }
.gk-entry-seq { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--ink-3); display: grid; place-items: center; flex-shrink: 0; font-size: 12.5px; font-weight: 700; }
.gk-entry-main { flex: 1; min-width: 0; }
.gk-entry-title { font-size: 14px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.gk-entry-meta { font-size: 11.5px; color: var(--ink-4); margin-top: 4px; }
.gk-entry-date { font-size: 11.5px; color: var(--ink-4); flex-shrink: 0; }
.gk-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.gk-status.lg { gap: 6px; padding: 4px 12px; font-size: 12.5px; }
.gk-status.sm { padding: 2px 8px; font-size: 10.5px; }
.gk-status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.gk-status.lg .gk-status-dot { width: 6px; height: 6px; }

/* 등록·수정 창(원본 EntryForm modal) */
.gk-form-section { margin-bottom: 8px; }
.gk-form-section-title { font-size: 11.5px; font-weight: 700; color: var(--ink-3); border-left: 3px solid var(--accent); padding-left: 9px; margin: 18px 0 14px; }
.gk-form-section:first-child .gk-form-section-title { margin-top: 4px; }
.gk-form-fields { display: flex; flex-direction: column; gap: 18px; }
.gk-label { font-size: 10.5px; color: var(--ink-4); letter-spacing: .08em; font-weight: 600; text-transform: uppercase; margin-bottom: 7px; }
.gk-required { color: var(--danger); margin-left: 3px; }
.gk-auto { color: var(--ink-4); font-size: 12.5px; background: var(--surface-2); padding: 9px 12px; border-radius: 8px; border: 1px dashed var(--line-strong); }
.gk-radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gk-radio { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 450; cursor: pointer; }
.gk-radio input { position: absolute; opacity: 0; pointer-events: none; }
.gk-radio.on, .gk-radio:has(input:checked) { border-color: var(--ink); background: var(--surface-2); font-weight: 600; }
.gk-category { display: grid; gap: 10px; }

/* 기록 상세(원본 EntryDetail) */
.gk-detail-modal .modal-body { padding: 14px 26px 24px; }
.gk-detail-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.gk-detail-sec-head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 16px 18px; border: 0; background: var(--surface); cursor: pointer; font: inherit; text-align: left; transition: background .15s; }
.gk-detail-sec.open .gk-detail-sec-head { background: var(--surface-2); }
.gk-detail-sec-mark { width: 3px; height: 17px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.gk-detail-sec-name { font-size: 15.5px; font-weight: 650; color: var(--ink); }
.gk-detail-sec-chev { margin-left: auto; display: flex; color: var(--ink-4); transform: rotate(-90deg); transition: transform .2s; }
.gk-detail-sec.open .gk-detail-sec-chev { transform: none; }
.gk-detail-sec-body { border-top: 1px solid var(--line); padding: 20px 20px 22px; }
.gk-detail-sec:not(.open) .gk-detail-sec-body { display: none; }
.gk-detail-grid { display: grid; grid-template-columns: 128px 1fr; gap: 18px 20px; align-items: start; }
.gk-detail-label { font-size: 13px; color: var(--ink-4); font-weight: 550; padding-top: 2px; }
.gk-detail-value { min-width: 0; font-size: 14.5px; color: var(--ink-2); }
.gk-detail-pre { line-height: 1.65; white-space: pre-wrap; }
.gk-detail-foot-meta { margin-top: 8px; font-size: 12px; color: var(--ink-4); display: flex; gap: 14px; padding: 0 4px; }

/* 양식 수정(원본 FieldBuilder) */
.gk-hint { display: flex; gap: 9px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-bottom: 20px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.gk-hint > svg { color: var(--ink-4); flex-shrink: 0; margin-top: 2px; }
.gk-hint b { color: var(--ink-2); font-weight: 600; }
.gk-builder-section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.gk-builder-section h3 { font-size: 13.5px; font-weight: 650; margin: 0 0 4px; }
.gk-builder-section > p { font-size: 11.5px; color: var(--ink-4); margin: 0 0 14px; }
.gk-field { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.gk-field.dim { opacity: .55; }
.gk-field.saving { border-color: var(--accent); }
.gk-field-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.gk-field-move { display: inline-flex; flex-direction: column; gap: 1px; }
.gk-field-move .icon-btn { width: 20px; height: 16px; border-radius: 4px; }
.gk-field-name { flex: 1; min-width: 90px; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 0; background: transparent; outline: none; padding: 2px 0; font-family: inherit; }
.gk-field-type { width: auto; min-width: 148px; }
.gk-toggle-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.gk-toggle { position: relative; width: 40px; height: 23px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-3); flex-shrink: 0; cursor: pointer; padding: 0; transition: background .18s; }
.gk-toggle > span { position: absolute; top: 1px; left: 1px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: left .18s; }
.gk-toggle.on { border-color: var(--accent); background: var(--accent); }
.gk-toggle.on > span { left: 18px; }
.gk-opts-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 12.5px; font-weight: 500; padding: 7px 12px; border-radius: 8px; }
.gk-opts-btn b { color: var(--accent); }
.gk-rm { color: var(--ink-5); }
.gk-field-opts { padding: 8px 14px 14px 40px; background: var(--surface-2); border-top: 1px dashed var(--line); }
.gk-cap { font-size: 11px; font-weight: 600; color: var(--ink-4); margin: 8px 0; }
.gk-opt-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); margin-bottom: 6px; }
.gk-opt-row.sub { margin-left: 20px; background: var(--surface-2); border-style: dashed; }
.gk-opt-input { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); border: 0; background: transparent; outline: none; padding: 2px 0; font-family: inherit; }
.gk-opt-input.strong { font-weight: 650; }
.gk-swatch { width: 16px; height: 16px; border-radius: 5px; border: 1px solid; flex-shrink: 0; }
.gk-palette { display: flex; gap: 5px; }
.gk-pal { width: 20px; height: 20px; border-radius: 5px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.gk-pal.on { border-color: var(--ink); }
.gk-major { margin-bottom: 6px; }
.gk-major-head { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; }
.gk-add-line { display: flex; gap: 8px; margin-top: 8px; }
.gk-add-line.sub { margin-left: 20px; margin-top: 6px; }
.gk-add-line .input { padding: 6px 10px; font-size: 12px; }
.gk-field-add { display: flex; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); align-items: center; flex-wrap: wrap; }
.gk-field-add .input { flex: 1; min-width: 160px; padding: 8px 12px; }
.gk-field-add .select { width: auto; min-width: 150px; }

/* 엑셀 내보내기 창 */
.gk-export-desc { font-size: 13px; color: var(--ink-4); margin-bottom: 16px; line-height: 1.5; }
.gk-export-filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.gk-range { display: flex; align-items: center; gap: 8px; }
.gk-range > span { color: var(--ink-5); }
.gk-export-list-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.gk-export-list-head label { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gk-export-list-head input, .gk-export-row input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.gk-export-count { margin-left: auto; font-size: 12.5px; color: var(--ink-4); }
.gk-export-count b { color: var(--accent); }
.gk-export-list { border: 1px solid var(--line); border-radius: 10px; max-height: 260px; overflow-y: auto; background: var(--surface); }
.gk-export-empty { padding: 28px 12px; text-align: center; color: var(--ink-5); font-size: 13px; }
.gk-export-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.gk-export-row:first-child { border-top: 0; }
.gk-export-row.on { background: color-mix(in oklch, var(--accent) 5%, transparent); }
.gk-export-seq { font-size: 12px; color: var(--ink-4); flex-shrink: 0; min-width: 34px; }
.gk-export-title { flex: 1; font-size: 13px; color: var(--ink-2); }
.gk-export-modal .modal-body > form .modal-foot { background: transparent; border-top: 0; }

/* 교육 대장 · 회차 관리 — 링크·네이티브 입력으로 바뀐 칸 */
.edu-open { color: inherit; text-decoration: none; }
.edu-cell-btn.saving { opacity: .5; }
.edu-bulk[hidden] { display: none !important; }
.edu-bulk .input, .edu-bulk .select { width: auto; }
/* 자동 날짜 칸 — 원본처럼 날짜 글자만 보이고, 누르면 숨긴 네이티브 달력이 그 자리에서 열린다(gukbi.js showPicker). */
.er-date-wrap { position: relative; display: inline-flex; align-items: center; }
.er-date-native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.er-add-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.er-add-form .er-input:first-of-type { flex: 1; }
a.er-sheet { display: inline-flex; align-items: center; gap: 5px; }

/* 통합 새로고침 단계 창(gukbi.js) */
.gk-sync-bg { z-index: 180; }

/* 체크박스를 토글처럼 — 디스코드 설정 폼 */
.gk-check { appearance: none; position: relative; width: 34px; height: 20px; flex-shrink: 0; margin: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); cursor: pointer; transition: all 200ms; }
.gk-check::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left 200ms; }
.gk-check:checked { background: var(--accent); border-color: var(--accent); }
.gk-check:checked::after { left: 16px; }
.gk-check:disabled { opacity: .5; cursor: default; }

/* ── 디스코드(원본 DiscordPage 인라인 스타일) ─────────────────────────── */
.dc-center { display: grid; place-items: center; gap: 12px; padding: 48px; text-align: center; color: var(--ink-4); }
.dc-center-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dc-center-sub { font-size: 12.5px; color: var(--ink-4); line-height: 1.6; }
.dc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.dc-section-head h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.dc-section-head p { margin: 3px 0 0; font-size: 12px; color: var(--ink-4); }
.dc-actions { display: flex; gap: 8px; }
.dc-right { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.dc-stat-grid { gap: 12px; margin-bottom: 22px; }
.dc-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.dc-stat-kicker { font-size: 10.5px; font-weight: 600; color: var(--ink-4); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 9px; }
.dc-stat-sub { font-size: 11px; color: var(--ink-4); margin-top: 5px; }
.dc-stat-big { font-size: 20px; font-weight: 650; }
.dc-stat-big span { font-size: 12px; color: var(--ink-4); font-weight: 500; }
.dc-dim { color: var(--ink-4); font-size: 12px; }
.dc-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.dc-table-empty { padding: 36px 0; text-align: center; color: var(--ink-4); font-size: 12.5px; border-top: 1px solid var(--line); }
.card.dc-table-empty { border-top: 1px solid var(--line); }
.dc-recent-cols { grid-template-columns: 1.4fr 1.2fr 1.8fr 1fr; }
.dc-codes-cols { grid-template-columns: 1.6fr 1.9fr 0.9fr 1.1fr 0.8fr 100px; }
.dc-ch-cols { grid-template-columns: 1fr 200px 130px 124px; }
.dc-role-cols { grid-template-columns: 1.8fr 1.6fr 1fr 124px; }
.dc-ch-row { padding-left: 32px; }
.dc-ch-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; color: var(--ink-2); }
.dc-ch-name > svg { color: var(--ink-4); flex-shrink: 0; }
.dc-ch-name .pill { flex-shrink: 0; }
.dc-ch-opt { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-4); }
.dc-toggle-form .gk-toggle { width: 34px; height: 20px; }
.dc-toggle-form .gk-toggle > span { width: 14px; height: 14px; top: 2px; left: 2px; }
.dc-toggle-form .gk-toggle.on > span { left: 16px; }
.dc-row-actions { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.icon-btn.sm { width: 26px; height: 26px; }
.dc-reorder { gap: 0; }
.dc-reorder .icon-btn.sm { width: 20px; }
.dc-cat-head { display: flex; align-items: center; gap: 8px; padding: 13px 20px 9px; font-size: 10.5px; font-weight: 650; color: var(--ink-4); letter-spacing: .07em; text-transform: uppercase; background: var(--surface-2); border-top: 1px solid var(--line); }
.dc-cat-pill { text-transform: none; letter-spacing: 0; }
.dc-scope-select { width: 100%; }
.dc-chips { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.dc-chip { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 500; text-decoration: none; }
.dc-chip .num { opacity: .65; margin-left: 4px; }
.dc-chip.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.dc-code-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dc-code { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dc-role-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dc-role-name b { font-weight: 600; }
.dc-role-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dc-note { margin: 10px 4px 0; font-size: 11.5px; color: var(--ink-4); }
.dc-note-sm { margin: 6px 2px 0; font-size: 11px; color: var(--ink-4); }
.dc-split { gap: 16px; align-items: start; }
.dc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.dc-field { margin-bottom: 14px; }
.dc-inline { display: flex; gap: 8px; }
.dc-inline .select { width: auto; }
.dc-pv-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.dc-pv-tabs .pill { cursor: pointer; }
.dc-pv-tabs .pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dc-switch-row { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.dc-options .dc-switch-row, .modal .dc-switch-row { padding: 0; margin: 0; border: 0; }
.dc-switch-title { font-size: 13px; font-weight: 600; }
.dc-switch-sub { font-size: 11.5px; color: var(--ink-4); font-weight: 400; }
.dc-options { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.dc-options .dc-switch-title { font-weight: 450; font-size: 12.5px; }
.modal [data-dc-readonly] { margin-top: 14px; }
.dc-pill-box { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.dc-pill-check { cursor: pointer; }
.dc-pill-check input { display: none; }
.dc-pill-check:has(input:checked) { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.dc-pill-check:has(input:checked) span::before { content: '✓ '; }
.dc-colors { display: grid; grid-template-columns: repeat(10, 26px); gap: 8px; padding: 4px 0; }
.dc-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: all 150ms; }
.dc-color input { display: none; }
.dc-color:has(input:checked) { border-color: var(--ink); transform: scale(1.1); }
.dc-history { max-height: 320px; overflow-y: auto; }
.dc-history-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; }

/* 디스코드 다크 미리보기(원본 DcShell · DcMessage) — 디스코드 색 그대로 */
.dc-shell { background: #313338; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); letter-spacing: 0; }
.dc-shell[hidden] { display: none; }
.dc-shell-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #2B2D31; border-bottom: 1px solid #1F2124; color: #F2F3F5; font-size: 13px; font-weight: 600; }
.dc-hash { color: #80848E; font-size: 16px; font-weight: 500; }
.dc-shell-body { padding: 16px; }
.dc-msg { display: flex; gap: 12px; }
.dc-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.dc-msg-main { min-width: 0; flex: 1; }
.dc-msg-author { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.dc-msg-author b { color: #F2F3F5; font-size: 13.5px; font-weight: 600; }
.dc-app { background: #5865F2; color: #fff; font-size: 9.5px; font-weight: 600; padding: 1px 5px; border-radius: 4px; }
.dc-embed { background: #2B2D31; border-left: 4px solid var(--accent); border-radius: 5px; padding: 12px 14px; max-width: 430px; margin-top: 3px; }
.dc-embed.wide { max-width: 460px; }
.dc-embed.ok { border-left-color: #248046; }
.dc-embed-title { color: #F2F3F5; font-size: 13.5px; font-weight: 650; margin-bottom: 6px; }
.dc-embed-desc { color: #DBDEE1; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; }
.dc-embed-desc.dim { color: #B5BAC1; }
.dc-embed-field { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.dc-embed-field b { color: #F2F3F5; font-size: 12px; font-weight: 650; }
.dc-embed-field span { color: #DBDEE1; font-size: 12.5px; }
.dc-embed-foot { color: #80848E; font-size: 10.5px; margin-top: 10px; }
.dc-button { display: inline-flex; background: #5865F2; color: #fff; font-size: 12.5px; font-weight: 550; padding: 8px 16px; border-radius: 8px; margin-top: 10px; }
.dc-modal-wrap { display: grid; place-items: center; padding: 28px 16px; }
.dc-modal { background: #313338; border: 1px solid #26282C; border-radius: 8px; padding: 16px; max-width: 340px; width: 100%; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.dc-modal h5 { margin: 0 0 12px; color: #F2F3F5; font-size: 14px; font-weight: 650; }
.dc-modal-label { color: #B5BAC1; font-size: 10.5px; font-weight: 650; text-transform: uppercase; margin-bottom: 6px; }
.dc-modal-input { background: #1E1F22; border-radius: 4px; padding: 9px 10px; color: #DBDEE1; font-size: 13px; }
.dc-eph { display: flex; align-items: center; gap: 6px; color: #949CF7; font-size: 11px; margin-top: 12px; }
.dc-rank-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: #DBDEE1; font-size: 12.5px; }
.dc-rank-no { width: 20px; text-align: center; flex-shrink: 0; color: #B5BAC1; }
.dc-rank-name { font-weight: 550; color: #F2F3F5; }
.dc-rank-bar { flex: 1; height: 5px; border-radius: 99px; background: #3F4147; overflow: hidden; margin: 0 4px; }
.dc-rank-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.dc-rank-time { color: #B5BAC1; font-size: 11.5px; flex-shrink: 0; }

/* 좁은 화면: PageHead 오른쪽 칸은 줄지 않게(flex-shrink:0) 되어 있어 동기화 바의 줄바꿈이 먹지 않았다 — 국비 헤더만 줄어들게 한다. */
@media (max-width: 768px) {
  .page-head > div:last-child:has(> .gukbi-sync) { flex-shrink: 1; min-width: 0; max-width: 100%; }
  .gukbi-sync { max-width: 100%; }
}

@media (max-width: 900px) {
  .dc-codes-cols, .dc-ch-cols, .dc-role-cols, .dc-recent-cols { grid-template-columns: 1fr 1fr; }
  .dc-grid2 { grid-template-columns: 1fr; }
  .gk-detail-grid { grid-template-columns: 96px 1fr; }
  .gk-actions-end { margin-left: 0; }
}

/* ── LMS 콘텐츠(데스크톱 앱) — 스튜디오 자리 ─────────────────────────── */
/* 앱에서만 본문이 스크롤하지 않는 세로 칸이 되고, 자리(.gk-lms-slot)가 탭 아래 남은 높이와 본문 칸 전폭(좌우 여백까지)을 채운다.
   앱이 이 칸의 좌표에 스튜디오(소유 창)를 겹쳐 띄운다 — 스튜디오 루트가 원본 .page-body.scrolly와 같은 좌우 여백·위 여백을 스스로 둔다.
   자리의 글은 스튜디오가 뜨기 전이나 웹 오버레이(모달·서랍)에 가려 스튜디오가 숨었을 때만 보인다. */
html.desktop-app .page-body.gk-lms-page { overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; }
html.desktop-app .page-body.gk-lms-page > * { flex-shrink: 0; }
html.desktop-app .page-body.gk-lms-page > .gk-tabs { margin-bottom: 0; }
html.desktop-app .page-body.gk-lms-page > .gk-lms-slot { flex: 1 1 auto; }
.gk-lms-slot { min-height: 0; margin: 0 -36px; display: grid; place-items: center; background: var(--bg); color: var(--ink-4); font-size: 13px; }
.gk-lms-slot p { margin: 0; }
.gk-lms-slot p.err { color: var(--danger); }
