@charset "utf-8";
/* =========================================================
 * 게임 사전 (/dict/) — dictionary 세션
 * 레퍼런스 공식 사전 배치 : 서브 비주얼 → 분류 탭 → 검색 → [조건 검색 275 | 표 목록] → 상세 모달(472)
 * 비주얼·탭은 board_lc.css(.lc-visual / .lc-tabs) 공용, 색은 .lc-board 변수(tokens.css 기반)만 사용
 * ========================================================= */

.sd-page .sd-ico { width: 16px; height: 16px; }
.sd-page small { font-size: .8em; color: var(--lc-t3); }
.sd-m-only { display: none; }
html.sd-lock, html.sd-lock body { overflow: hidden; }

/* ---------- 검색 ---------- */
.sd-searchwrap { display: flex; justify-content: center; gap: 8px; margin: 0 0 30px; padding: 28px 0; background: var(--lc-box); }
.sd-search { position: relative; display: flex; width: 600px; max-width: 100%; height: 40px; }
.sd-search input { flex: 1; min-width: 0; height: 40px; padding: 6px 66px 6px 10px; border: 1px solid var(--lc-line2); border-radius: 0; background: var(--lc-bg);
    font-size: 15px; color: var(--lc-t1); outline: 0; -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.sd-search input:focus { border-color: var(--c-gold); }
.sd-search input::placeholder { color: var(--lc-t3); }
.sd-search input::-webkit-search-cancel-button { display: none; }
.sd-search-btn { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; color: var(--lc-t2) !important; }
.sd-search-btn .sd-ico { width: 20px; height: 20px; }
.sd-filter-open { display: none; }

/* ---------- 본문 2단 ---------- */
.sd-body { display: grid; grid-template-columns: 275px minmax(0, 1fr); column-gap: 34px; align-items: start; }
.sd-body.is-nofilter { grid-template-columns: minmax(0, 1fr); }

/* 조건 검색 (왼쪽) */
.sd-filter-title { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; }
.sd-filter-title h2 { margin: 0; font-size: 14px; font-weight: 400; line-height: 21px; color: var(--lc-t2); }
.sd-filter-reset { display: inline-flex; color: var(--lc-t3) !important; transition: color .2s; }
.sd-filter-reset:hover { color: var(--lc-t1) !important; }
.sd-filter-reset .sd-ico { width: 14px; height: 14px; }
.sd-filter-close, .sd-filter-apply { display: none; }
.sd-fgroup { margin: 0 0 10px; border: 1px solid var(--lc-line); }
.sd-fgroup > header { padding: 10px 16px 13px; background: var(--lc-box); font-size: 14px; line-height: 21px; color: var(--lc-t2); }
.sd-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; padding: 20px 16px 5px; }
.sd-check { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 0 15px; font-size: 14px; line-height: 21px; color: var(--lc-t1); cursor: pointer; }
.sd-check span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-check input, .sd-cate input { position: relative; flex: none; width: 16px; height: 16px; margin: 0; border: 1px solid color-mix(in srgb, #fff 30%, transparent); border-radius: 2px;
    background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; transition: background-color .15s, border-color .15s; }
.sd-check input:checked { border-color: var(--lc-point-bg); background: var(--lc-point-bg); }
.sd-check input:checked::after { content: ""; position: absolute; top: 1px; left: 4.5px; width: 4px; height: 8px; border: solid var(--lc-on-point); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sd-check input:focus-visible, .sd-cate input:focus-visible { outline: 2px solid var(--lc-point); outline-offset: 2px; }
.sd-check:hover span { color: var(--lc-strong); }
.sd-cates { padding: 14px 16px 10px; }
.sd-cates ul { margin: 2px 0 0; }
.sd-cate { display: block; cursor: pointer; }
.sd-cate input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sd-cate span { display: flex; align-items: center; gap: 4px; padding: 6px 0; font-size: 14px; line-height: 21px; color: var(--lc-t1); transition: color .2s; }
.sd-cates > .sd-cate span { padding-bottom: 10px; border-bottom: 1px solid var(--lc-line); }
.sd-cates li .sd-cate span { padding-left: 2px; }
.sd-cate .sd-ico { width: 12px; height: 12px; color: var(--lc-t3); }
.sd-cate:hover span { color: var(--lc-strong); }
.sd-cate.is-on span { color: var(--lc-point); }
.sd-cate.is-on .sd-ico { color: var(--lc-point); }

/* 목록 (오른쪽) */
.sd-list { min-width: 0; }
.sd-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; padding: 0 0 10px; }
.sd-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--lc-t2); }
.sd-count b { font-weight: 400; color: var(--lc-t1); }
.sd-tagchip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--lc-gold) 40%, transparent); border-radius: 13px; font-size: 13px; color: var(--lc-gold) !important; }
.sd-tagchip .sd-ico { width: 12px; height: 12px; }
.sd-list-tools { display: flex; align-items: center; gap: 14px; }
.sd-favview, .sd-admin-add { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--lc-t2) !important; transition: color .2s; }
.sd-favview:hover, .sd-admin-add:hover { color: var(--lc-strong) !important; }
.sd-favview.is-on { color: var(--lc-gold) !important; }
.sd-favview.is-on .sd-ico { fill: currentColor; }
.sd-favview .sd-ico, .sd-admin-add .sd-ico { width: 16px; height: 16px; }

.sd-table { border-top: 1px solid var(--lc-line2); }
.sd-tr { display: flex; align-items: center; min-height: 55px; padding: 4px 0; border-bottom: 1px solid var(--lc-line); font-size: 15px; line-height: 1.5; color: var(--lc-t1); }
.sd-thead { min-height: 48px; padding: 0; font-size: 14px; color: var(--lc-t2); }
.sd-thead .sd-td { line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-tr:not(.sd-thead):hover { background: color-mix(in srgb, #fff 2.5%, transparent); }
.sd-tr.is-hidden { opacity: .55; }
.sd-td { flex: 1 1 0; min-width: 0; padding: 0 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--lc-t1); overflow-wrap: anywhere; }
.sd-c-fav { flex: none; width: 50px; padding-left: 16px; }
.sd-c-name { flex: none; width: 280px; font-size: 15px; }
.sd-c-cate { flex: none; width: 120px; color: var(--lc-t3); }
.sd-thead .sd-c-cate, .sd-thead .sd-c-val { color: var(--lc-t2); font-size: 14px; }
.sd-c-wide { flex: 2 1 0; }
.sd-sort { display: inline; color: inherit !important; }
.sd-sort i { margin-left: 3px; }
.sd-sort:hover, .sd-sort.is-on { color: var(--lc-t1) !important; }
.sd-sort i { font-style: normal; font-size: 9px; color: var(--lc-point); }
.sd-fav { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--lc-t3) !important; transition: color .2s; }
.sd-fav .sd-ico { width: 17px; height: 17px; }
.sd-fav:hover { color: var(--lc-t1) !important; }
.sd-fav.is-on { color: var(--lc-gold) !important; }
.sd-fav.is-on .sd-ico { fill: currentColor; }
.sd-item { display: flex; align-items: center; gap: 0; min-width: 0; color: var(--lc-t1); }
.sd-item:hover .sd-name { color: var(--lc-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, #fff 30%, transparent); }
.sd-thumb { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; margin-right: 8px; overflow: hidden; }
.sd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sd-thumb.is-empty span, .sd-d-thumb.is-empty span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--lc-line2); border-radius: 50%;
    background: var(--lc-raise); font-size: 14px; color: var(--lc-t3); }
.sd-item-txt { display: flex; flex-direction: column; min-width: 0; }
.sd-name { font-weight: 400; font-size: 15px; line-height: 22.5px; color: var(--lc-t1); transition: color .2s; }
.sd-empty-row, .sd-empty { padding: 90px 16px; font-size: 15px; color: var(--lc-t3); text-align: center; }
.sd-empty { border-top: 1px solid var(--lc-line2); border-bottom: 1px solid var(--lc-line); }
.sd-empty-btn { display: inline-flex; margin-top: 18px; padding: 8px 16px; border: 1px solid var(--lc-line2); font-size: 14px; color: var(--lc-t2) !important; }

/* PC(1024~) : 표를 한 그리드로 — 열 폭이 모든 행에서 같고, 머리글은 한 줄(최소 폭 = 머리글 폭) */
.sd-table { --sd-w-name: 280px; --sd-w-cate: 120px; }
@media (min-width: 1024px) {
    .sd-table { display: grid; grid-template-columns: var(--sd-grid, 50px var(--sd-w-name) minmax(0, 1fr)); overflow-x: auto; }
    .sd-tr { display: contents; }
    .sd-tr > .sd-td { display: flex; align-items: center; width: auto; min-height: 55px; padding: 4px 12px 4px 0; border-bottom: 1px solid var(--lc-line); }
    .sd-thead > .sd-td { min-height: 48px; padding-top: 0; padding-bottom: 0; }
    .sd-tr > .sd-c-fav { padding-left: 16px; }
    .sd-tr:not(.sd-thead):hover > .sd-td { background: color-mix(in srgb, #fff 2.5%, transparent); }
    .sd-tr.is-hidden > .sd-td { opacity: .55; }
    .sd-table > .sd-empty-row { grid-column: 1 / -1; }
}

/* [ui-fixed] 결과 0건/1건이어도 틀 고정 — UI_일관성_규칙.md : 표 = 머리글 + 행 5개 높이, 빈 상태 행이 그 높이를 채움, 페이징 줄 항상 */
.sd-table { --sd-row-h: 55px; --sd-head-h: 48px; min-height: calc(var(--sd-head-h) + var(--sd-row-h) * 5 + 1px); /* +1px = 표 위 테두리 */ align-content: start; }
.sd-table > .sd-empty-row.lc-empty { min-height: calc(var(--sd-row-h) * 5); padding: 0 16px; border-bottom: 1px solid var(--lc-line); font-size: 15px; color: var(--lc-t3); }
.sd-pager { min-height: 28px; }

/* 페이지 번호 */
.sd-pager { margin-top: 40px; }
.sd-pager-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.sd-pager a, .sd-pager span, .sd-pager strong { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 4px; font-size: 15px; font-weight: 400; color: var(--lc-t3); }
.sd-pager a:hover { color: var(--lc-t1); }
.sd-pager .is-current { color: var(--lc-t1); }
.sd-pg-prev, .sd-pg-next { border: 1px solid color-mix(in srgb, #fff 10%, transparent); }
.sd-pager .sd-pg-prev { margin-right: 6px; }
.sd-pager .sd-pg-next { margin-left: 6px; }
.sd-pager .is-disabled { opacity: .4; }
.sd-pager .sd-ico { width: 14px; height: 14px; }

/* ---------- 상세 모달 ---------- */
.sd-modal { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: flex-start; padding: 125px 16px 40px; background: rgba(0, 0, 0, .8); overflow-y: auto; }
.sd-modal[hidden] { display: none; }
.sd-modal-box { width: 472px; max-width: 100%; }
.sd-detail { border-radius: 5px; background: var(--lc-layer); color: var(--lc-strong); font-size: 14px; line-height: 21px; }
.sd-detail-title { display: flex; align-items: center; gap: 6px; margin: 0 20px; padding: 21px 0 16px; border-bottom: 1px solid var(--lc-line2); }
.sd-detail-title h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 400; line-height: 27px; color: var(--lc-t1); }
.sd-detail-title button, .sd-detail-title a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--lc-t2) !important; transition: color .2s; }
.sd-detail-title button:hover, .sd-detail-title a:hover { color: var(--lc-strong) !important; }
.sd-detail-title .sd-ico { width: 18px; height: 18px; }
.sd-detail-title .sd-d-close .sd-ico { width: 22px; height: 22px; }
.sd-detail-title .sd-d-prev { margin-left: -6px; }
.sd-detail-title .sd-d-prev[hidden] { display: none; }
.sd-d-share.is-done { color: var(--lc-gold) !important; }
.sd-detail-body { padding: 20px 20px 24px; }
.sd-d-summary { position: relative; display: flex; align-items: center; gap: 14px; padding: 0 30px 18px 0; }
.sd-d-thumb { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; border: 1px solid var(--lc-line2); background: var(--lc-bg); overflow: hidden; }
.sd-d-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sd-d-head { min-width: 0; }
.sd-d-name { margin: 0; font-size: 18px; line-height: 27px; }
.sd-d-name strong { font-weight: 500; color: var(--c-text-title, #fff1c9); overflow-wrap: anywhere; }
.sd-d-spec { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; font-size: 13px; color: var(--lc-t2); }
.sd-d-spec .is-hidden { color: var(--lc-point); }
.sd-d-summary .sd-fav { position: absolute; top: 4px; right: 0; }
.sd-d-desc { margin: 0 0 16px; font-size: 14px; line-height: 22px; color: var(--lc-t1); }
.sd-d-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px !important; }
.sd-d-tags a { font-size: 13px; color: var(--lc-gold) !important; }
.sd-fold { margin-top: 10px; }
.sd-fold > header { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 4px 0 16px; background: var(--lc-box); }
.sd-fold > header h3 { margin: 0; font-size: 14px; font-weight: 400; color: var(--lc-t2); }
.sd-fold-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--lc-t3) !important; }
.sd-fold-btn .sd-ico { transition: transform .2s; transform: rotate(180deg); }
.sd-fold:not(.is-open) .sd-fold-btn .sd-ico { transform: none; }
.sd-fold:not(.is-open) .sd-fold-body { display: none; }
/* 라벨 칸 = 그 묶음에서 가장 긴 라벨 폭(최대 45%), 라벨은 한 줄(넘치면 말줄임 + title) */
.sd-kv { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); column-gap: 16px; margin: 0; padding: 16px 16px 3px; }
.sd-kv li { display: contents; }
.sd-key { min-width: 0; padding: 0 0 13px; color: var(--lc-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-val { min-width: 0; padding: 0 0 13px; color: var(--lc-t1); overflow-wrap: anywhere; }
.sd-val p { margin: 0 0 4px; }
.sd-val a { color: var(--lc-point); }
.sd-val a:hover { text-decoration: underline; }
.sd-val em { font-style: normal; font-size: 13px; color: var(--lc-gold); }
.sd-d-none { padding: 30px 0; color: var(--lc-t3); text-align: center; }
.sd-d-update { margin: 16px 0 0; font-size: 12px; color: var(--lc-t3); text-align: right; }

/* ---------- 모달 빠른 수정 (사전 관리 권한자에게만 연필 표시) ---------- */
.sd-ed { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; margin-left: 4px; vertical-align: middle;
    border-radius: 3px; color: var(--lc-t3) !important; opacity: .55; transition: opacity .15s, color .15s, background-color .15s; }
.sd-ed .sd-ico { width: 14px; height: 14px; }
.sd-detail [data-ek]:hover > .sd-ed, .sd-detail [data-ek]:hover .sd-ed, .sd-ed:focus-visible { opacity: 1; color: var(--lc-gold) !important; }
.sd-ed:hover { background: color-mix(in srgb, #fff 8%, transparent); }
.sd-kv li[data-ek] .sd-val { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0 2px; }
.sd-kv li[data-ek] .sd-ev { flex: 1 1 auto; min-width: 0; }
.sd-d-name { display: flex; align-items: center; gap: 2px; }
.sd-d-thumbwrap { position: relative; flex: none; }
.sd-d-thumbwrap .sd-ed { position: absolute; right: -6px; bottom: -6px; margin: 0; background: var(--lc-layer); border: 1px solid var(--lc-line2); opacity: .9; }
.sd-d-use { display: inline-flex; align-items: center; }
.sd-d-use .is-on { color: var(--c-success, #7fae6a); }
.sd-d-sumline, .sd-d-tags { display: flex; align-items: flex-start; gap: 2px; }
.sd-d-sumline .sd-ev, .sd-d-tags .sd-ev { flex: 1 1 auto; min-width: 0; }
.sd-d-tags .sd-ev a { margin-right: 8px; }
.sd-d-blank { color: var(--lc-t3); }
.sd-d-backnote { display: block; margin-top: 2px; font-size: 12px; }
.sd-kv li > .sd-editor { grid-column: 1 / -1; margin: -4px 0 14px; }
.sd-kv li.is-editing .sd-val { color: var(--lc-t3); }
.is-editing .sd-ed { display: none !important; }
.is-saved { animation: sd-saved 1.6s ease-out; }
@keyframes sd-saved { 0%, 30% { background: color-mix(in srgb, var(--c-gold, #c9a24f) 18%, transparent); } 100% { background: transparent; } }

.sd-editor { flex: 1 1 100%; width: 100%; margin: 6px 0 12px; padding: 12px; border: 1px solid color-mix(in srgb, var(--c-gold, #c9a24f) 45%, transparent); border-radius: 4px; background: var(--lc-bg); }
.sd-ed-row { display: flex; align-items: center; gap: 8px; }
.sd-editor input[type=text], .sd-editor select, .sd-editor textarea { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--lc-line2); border-radius: 0;
    background: var(--lc-layer); font: inherit; font-size: 14px; color: var(--lc-t1); outline: 0; }
.sd-editor select { color-scheme: dark; }
.sd-editor textarea { height: auto; min-height: 90px; padding: 8px 10px; line-height: 1.6; resize: vertical; font-family: var(--font-mono, monospace); font-size: 13px; }
.sd-editor input:focus, .sd-editor select:focus, .sd-editor textarea:focus { border-color: color-mix(in srgb, var(--c-gold, #c9a24f) 60%, transparent); }
.sd-ed-unit { flex: none; color: var(--lc-t2); }
.sd-ed-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sd-ed-checks label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--lc-t1); cursor: pointer; }
.sd-ed-checks input { accent-color: var(--lc-point-bg); width: 16px; height: 16px; }
.sd-ed-img { display: flex; align-items: center; gap: 12px; }
.sd-ed-prev { display: flex; align-items: center; justify-content: center; flex: none; width: 72px; height: 72px; border: 1px dashed var(--lc-line2); font-size: 11px; color: var(--lc-t3); overflow: hidden; }
.sd-ed-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sd-ed-img input[type=file] { min-width: 0; font-size: 13px; color: var(--lc-t2); }
.sd-ed-img input[type=file]::file-selector-button { height: 30px; margin-right: 8px; padding: 0 12px; border: 1px solid var(--lc-line2); background: var(--lc-layer); font: inherit; color: var(--lc-t1); cursor: pointer; }
.sd-ed-chips { margin: 0 0 8px; padding: 0; list-style: none; }
.sd-ed-chip { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--lc-line); }
.sd-ed-chip-name { flex: 1 1 40%; min-width: 0; font-size: 14px; color: var(--lc-t1); }
.sd-ed-chip-name em { display: block; font-style: normal; font-size: 11px; color: var(--lc-t3); }
.sd-ed-chip input { flex: 1 1 40%; height: 30px !important; font-size: 13px !important; }
.sd-ed-chip button { flex: none; width: 26px; height: 26px; font-size: 11px; color: var(--lc-t2); }
.sd-ed-chip button:hover { color: var(--lc-strong); }
.sd-ed-search { position: relative; }
.sd-ed-res { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; max-height: 220px; overflow-y: auto; border: 1px solid var(--lc-line2); background: var(--lc-layer); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.sd-ed-res button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; text-align: left; font-size: 14px; color: var(--lc-t1); border-bottom: 1px solid var(--lc-line); }
.sd-ed-res button:hover { background: color-mix(in srgb, #fff 6%, transparent); }
.sd-ed-res em { font-style: normal; font-size: 12px; color: var(--lc-t3); }
.sd-ed-res .none { margin: 0; padding: 10px; font-size: 13px; color: var(--lc-t3); }
.sd-ed-help { margin: 8px 0 0; font-size: 12px; line-height: 18px; color: var(--lc-t3); }
.sd-ed-msg { margin: 8px 0 0; font-size: 13px; color: var(--c-danger, #d0674a); }
.sd-ed-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.sd-ed-btns button { height: 32px; padding: 0 14px; border: 1px solid var(--lc-line2); font-size: 13px; color: var(--lc-t1); }
.sd-ed-btns .sd-ed-save { border-color: var(--lc-point-bg); background: var(--lc-point-bg); color: var(--lc-on-point); }
.sd-ed-btns .sd-ed-save:hover { background: var(--lc-point-hover); }
.sd-ed-btns .sd-ed-del { margin-right: auto; color: var(--c-danger, #d0674a); }
.sd-ed-btns button[disabled] { opacity: .5; }
.sd-ed-keys { margin: 6px 0 0; font-size: 11px; color: var(--lc-t3); text-align: right; }
@media (max-width: 1023px) {
    .sd-ed { opacity: .8; width: 30px; height: 30px; }
    .sd-ed-chip { flex-wrap: wrap; }
    .sd-ed-chip-name { flex-basis: 100%; }
}

/* ---------- 통합검색 안 사전 결과 ---------- */
.sd-search-block .cs-search-group-head small { margin-left: 4px; font-size: 13px; font-weight: 400; opacity: .7; }
.sd-search-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.sd-search-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--c-line-ref, rgba(255,255,255,.08)); background: color-mix(in srgb, #fff 3%, transparent); text-decoration: none; }
.sd-search-list a:hover { border-color: color-mix(in srgb, var(--c-gold) 45%, transparent); }
.sd-search-list .sd-mini-thumb { display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; background: color-mix(in srgb, #fff 6%, transparent); overflow: hidden; }
.sd-search-list .sd-mini-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sd-search-list .sd-mini-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-search-list .sd-mini-txt strong { font-weight: 400; color: var(--c-text-ref, rgba(255,255,255,.83)); }
.sd-search-list .sd-mini-txt em { font-style: normal; font-size: 12px; color: var(--c-gold-text); }
.sd-search-list .sd-mini-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; font-size: 12px; color: var(--c-text-ref-faint, rgba(255,255,255,.38)); }
.sd-search-list .sd-noimg { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-line-ref, rgba(255,255,255,.08)); color: var(--c-text-ref-faint, rgba(255,255,255,.38)); }

/* =========================================================
 * 1200px 이하 : 열 폭 줄임
 * ========================================================= */
@media (max-width: 1200px) {
    .sd-body { grid-template-columns: 240px minmax(0, 1fr); column-gap: 24px; }
    .sd-c-name { width: 230px; }
    .sd-c-cate { width: 96px; }
    .sd-table { --sd-w-name: 230px; --sd-w-cate: 96px; }
}

/* =========================================================
 * 1023px 이하 (모바일) : 필터 버튼 + 전체 화면 조건 검색, 목록은 1열
 * ========================================================= */
@media (max-width: 1023px) {
    .sd-m-only { display: block; }
    .sd-searchwrap { margin: 0; padding: 16px; justify-content: stretch; }
    .sd-search { flex: 1; width: auto; height: 44px; }
    .sd-search input { height: 44px; padding-right: 48px; font-size: 15px; }
    .sd-search-btn { height: 44px; }
    .sd-filter-open { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--lc-line2); color: var(--lc-t1) !important; }
    .sd-filter-open .sd-ico { width: 22px; height: 22px; }
    .sd-body, .sd-body.is-nofilter { display: block; }

    .sd-filter { display: none; }
    .sd-filter.is-open { position: fixed; inset: 0; z-index: 1000; display: block; padding: 40px 16px 0; background: rgba(0, 0, 0, .8); }
    .sd-filter form { display: flex; flex-direction: column; height: 100%; border-radius: 5px 5px 0 0; background: var(--lc-layer); overflow: hidden; }
    .sd-filter-title { flex: none; margin: 0; padding: 20px 16px 14px; }
    .sd-filter-title h2 { font-size: 18px; color: var(--lc-t1); }
    .sd-filter-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: auto; color: var(--lc-t2) !important; }
    .sd-filter-close .sd-ico { width: 22px; height: 22px; }
    .sd-filter-list { flex: 1; min-height: 0; padding: 0 16px 16px; overflow-y: auto; }
    .sd-filter-apply { display: block; flex: none; width: 100%; height: 56px; background: var(--lc-point-bg); font-size: 16px; color: var(--lc-on-point) !important; }
    .sd-filter-apply:active { background: var(--lc-point-hover); }

    .sd-list-head { min-height: 52px; padding: 8px 16px; }
    .sd-favview { font-size: 14px; }
    .sd-table { border-top-color: var(--lc-line2); }
    .sd-thead { justify-content: center; }
    .sd-thead .sd-td { display: none; }
    .sd-thead .sd-c-name { display: block; width: auto; flex: none; text-align: center; padding: 0; }
    .sd-thead .sd-c-name .sd-sort { display: none; }
    .sd-tr:not(.sd-thead) .sd-c-cate, .sd-tr:not(.sd-thead) .sd-c-val { display: none; }
    .sd-tr { min-height: 68px; padding: 6px 0; }
    .sd-table { --sd-row-h: 68px; --sd-head-h: 68px; }
    .sd-c-fav { width: 48px; padding-left: 14px; }
    .sd-c-name { flex: 1 1 auto; width: auto; padding-right: 16px; }
    .sd-thumb { width: 52px; height: 52px; margin-right: 12px; }
    .sd-name { font-size: 16px; }
    .sd-mline { display: block; margin-top: 2px; font-size: 13px; line-height: 19px; color: var(--lc-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sd-mline span + span::before { content: "·"; margin: 0 6px; color: var(--lc-t3); }
    .sd-mline em { font-style: normal; color: var(--lc-t3); }
    .sd-empty-row, .sd-empty { padding: 70px 16px; }
    .sd-pager { margin: 28px 0 0; padding: 0 16px; }

    .sd-modal { padding: 0; align-items: stretch; }
    .sd-modal-box { width: 100%; min-height: 100%; }
    .sd-detail { min-height: 100%; border-radius: 0; }
    .sd-detail-title { position: sticky; top: 0; z-index: 2; margin: 0; padding: 14px 16px 12px; background: var(--lc-layer); }
    .sd-detail-body { padding: 18px 16px 40px; }
    .sd-kv { grid-template-columns: fit-content(50%) minmax(0, 1fr); column-gap: 12px; padding: 14px 12px 3px; }
    .sd-search-list { grid-template-columns: minmax(0, 1fr); }
}

/* 2026-11-08 사전 목록 이미지 44×44 */
/* 대상 : 사전 목록 표(.sd-thumb, 분류·전체검색·즐겨찾기 공용) + 통합검색 안 사전 결과(.sd-mini-thumb). PC·모바일 모두 44×44 */
/* 상세 모달 대표 이미지(.sd-d-thumb 64×64)·편집 미리보기(.sd-ed-prev)는 그대로 */
.sd-item .sd-thumb,
.sd-search-list .sd-mini-thumb { box-sizing: border-box; flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; max-width: 44px; max-height: 44px; overflow: hidden; }
.sd-item .sd-thumb img,
.sd-search-list .sd-mini-thumb img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; image-rendering: pixelated; }
@media (max-width: 1200px) {
    .sd-item .sd-thumb { width: 44px; height: 44px; }
}

/* 2026-11-08 사전 상세 강화 셀렉트 */
/* 상세 모달 이름 앞 강화 단계(+0~최대) 선택 — 표시 전용. 최대값 : 항목 '최대 강화' 속성 → 없으면 무기 10 · 방어구 9 · 장신구 8 (dict.front.php sd_enchant_max) */
.sd-d-name .sd-d-ench { box-sizing: border-box; flex: none; align-self: center; width: auto; min-width: 0; height: 28px; margin: 0 6px 0 0; padding: 0 22px 0 8px;
    border: 1px solid rgba(201, 162, 79, .5); border-radius: 2px; outline: 0; box-shadow: none;
    background: #15110d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23E2C47C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 7px center / 10px 6px;
    color: #E2C47C; font-family: inherit; font-size: 14px; font-weight: 400; line-height: 26px; text-align: left; vertical-align: middle; cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.sd-d-name .sd-d-ench:hover { border-color: rgba(201, 162, 79, .8); }
.sd-d-name .sd-d-ench:focus-visible { border-color: #E2C47C; }
.sd-d-name .sd-d-ench option { background: #15110d; color: #E2C47C; }
.sd-d-name .sd-d-ench + strong { min-width: 0; }

/* 사전 조건 검색 : 던전 탭의 '던전' 묶음은 펼친 상태(▾)로 표시, '전체' 선택 중이면 함께 강조(= 전체 체크) */
.sd-cates li.is-open > .sd-cate .sd-ico { color: var(--lc-point); }
.sd-cates:has(> .sd-cate.is-on) li.is-open > .sd-cate span { color: var(--lc-point); }

/* 2026-11-08 던전 탭 : 하위 분류를 ▼던전 아래로 */
/* ▼던전(.sd-cate-head) = 하위 분류 'dungeon' 자리, 항상 펼침 · 누르면 전체(#sd_sub_all). 관리자가 던전 아래에 추가한 하위 분류는 .sd-cate-sub 로 들여 씀 (글자 시작이 '던전' 글자보다 안쪽) */
.sd-cates .sd-cate-sub { margin: 0; padding: 0 0 0 24px; list-style: none; }
.sd-cates .sd-cate-sub .sd-cate span { padding-left: 2px; }

/* 2026-11-08 사전 상세 : 강화 단계별 수치 · 머리 플래그 */
/* 이름 아래 플래그 줄(창고O | 사망 시 드롭O | 교환O) = .sd-d-spec 과 같은 작은 회색 글, 구분선 '|' */
.sd-d-flags { display: flex; flex-wrap: wrap; align-items: center; margin: 2px 0 0; font-size: 13px; line-height: 20px; color: var(--lc-t2); }
.sd-d-flags span { white-space: nowrap; }
.sd-d-flags span + span::before { content: "|"; margin: 0 8px; color: var(--lc-t3); }
/* 강화 단계 차이 (+N) : 공식 사전처럼 빨강 (이 표시에만 사용) */
.sd-ench-d { margin-left: 1px; color: #E06A4A; }
/* 상세 줄 숨김(li[hidden]) — 2026-11-18 '인챈트 옵션' 줄(.sd-eo-*) 삭제 */
.sd-kv li[hidden] { display: none; }

/* 2026-11-08 사전 목록 정리 : 정렬 없음 · 글자색 통일 · 무기 칸 */
/* 목록 행의 모든 칸 글자(카테고리·값·모바일 요약 줄 라벨·구분점)는 아이템명(.sd-name)과 같은 색. 즐겨찾기 별(아이콘)·머리글은 그대로, 이름 마우스오버 강조도 그대로 */
.sd-tr:not(.sd-thead) > .sd-td:not(.sd-c-fav),
.sd-tr:not(.sd-thead) > .sd-td:not(.sd-c-fav) :not(.sd-name),
.sd-tr:not(.sd-thead) .sd-mline span + span::before { color: var(--lc-t1); }
/* 머리글 : 정렬 링크 대신 글자만 (모바일은 '…명 / 정보' 만 보임) */
@media (max-width: 1023px) {
    .sd-thead .sd-c-name .sd-th-txt { display: none; }
}
/* 무기 공격력 '작은 / 큰' 한 칸 : 줄바꿈 없이 */
.sd-tr > .sd-c-pair { white-space: nowrap; }

/* 2026-11-08 아이템 탭 : 카테고리 아래 종류 목록 */
/* 무기·방어구·장신구·기타 아래에 '종류' 값을 던전 탭 .sd-cate-sub 처럼 들여 씀. 고른 카테고리만 펼침(▼ = ▸ 아이콘 90° 회전) · 나머지는 접힘(▸), 고른 종류는 강조(.is-on) */
.sd-cates .sd-kind-group > .sd-cate .sd-ico { transition: transform .2s, color .2s; }
.sd-cates .sd-kind-group.is-open > .sd-cate .sd-ico { transform: rotate(90deg); }
.sd-cates .sd-kind-group:not(.is-open) > .sd-kinds { display: none; }
.sd-cates .sd-kinds { padding-bottom: 4px; }
.sd-cates .sd-kinds .sd-cate span { padding-top: 4px; padding-bottom: 4px; }

/* 2026-11-08 사전 분류 바꿀 때 깜빡임 보정 */
/* 스크롤바 자리를 항상 비워 둠 : 새 페이지 첫 화면·상세 팝업(sd-lock) 때 스크롤바가 사라졌다 생기며 화면 전체가 좌우로 튀던 것 방지 (사전 목록 페이지만) */
html:has(#sd_list_end) { scrollbar-gutter: stable; }

/* 2026-11-08 사전 목록 : 값 글자 크기 = 아이템명 */
/* 목록 행의 값 칸(카테고리·공격력·클래스·무게·부위·AC·인챈트 안전 등) = 아이템명(.sd-name)과 같은 크기·줄 높이·굵기(400). PC 15px/22.5px, 모바일 요약 줄(.sd-mline) 16px/22.5px. 머리글은 그대로 */
.sd-tr:not(.sd-thead) > .sd-td:not(.sd-c-fav):not(.sd-c-name) { font-size: 15px; line-height: 22.5px; font-weight: 400; }
.sd-tr:not(.sd-thead) > .sd-td:not(.sd-c-fav):not(.sd-c-name) * { font-size: inherit; line-height: inherit; font-weight: inherit; }
@media (max-width: 1023px) {
    .sd-tr:not(.sd-thead) .sd-mline,
    .sd-tr:not(.sd-thead) .sd-mline * { font-size: 16px; line-height: 22.5px; font-weight: 400; }
}

/* 2026-11-08 목록 제목 줄 색 통일 · 아이템명 금색 되돌림 */
/* 머리글(즐겨찾기·아이템명·아이템명 / 정보·카테고리·값 칸) 글자 = 모두 --lc-t2 (공격력·클래스·무게와 같은 색). 크기는 그대로. 행의 아이템명은 금색 지정 삭제 → 기존 --lc-t1 · 기존 마우스오버(흰색+밑줄) */
.sd-thead > .sd-td,
.sd-thead > .sd-td * { color: var(--lc-t2); }

/* 2026-11-08 사전 상세 : 긴 연결 목록은 칸 안에서 스크롤 (약 10줄) */
/* 한 줄 = 21px(줄높이) + 4px(아래 여백) = 25px (1440·390 동일). 10.5줄 높이로 잘라 아래에 더 있음을 보여 줌.
   항목 11개 이상인 목록만 적용 → 10개 이하 목록은 지금과 완전히 같음. */
.sd-kv li[data-ek^="l:"] .sd-ev:has(> p:nth-of-type(11)),
.sd-kv li:not([data-ek]) > .sd-val:has(> p:nth-of-type(11)) {
    overflow: hidden auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--lc-point-line) transparent;
}
.sd-kv li[data-ek^="l:"] .sd-ev:has(> p:nth-of-type(11)) { max-height: 263px; }
.sd-kv li:not([data-ek]) > .sd-val:has(> p:nth-of-type(11)) { max-height: 276px; } /* 263px + 아래 패딩 13px */
.sd-kv li[data-ek^="l:"] .sd-ev:has(> p:nth-of-type(11))::-webkit-scrollbar,
.sd-kv li:not([data-ek]) > .sd-val:has(> p:nth-of-type(11))::-webkit-scrollbar { width: 6px; }
.sd-kv li[data-ek^="l:"] .sd-ev:has(> p:nth-of-type(11))::-webkit-scrollbar-track,
.sd-kv li:not([data-ek]) > .sd-val:has(> p:nth-of-type(11))::-webkit-scrollbar-track { background: transparent; }
.sd-kv li[data-ek^="l:"] .sd-ev:has(> p:nth-of-type(11))::-webkit-scrollbar-thumb,
.sd-kv li:not([data-ek]) > .sd-val:has(> p:nth-of-type(11))::-webkit-scrollbar-thumb { background: var(--lc-point-line); border-radius: 3px; }

/* 2026-11-08 드랍 목록 : 이름 기본색 · 축복 노랑 · 저주 빨강 */
/* 상세 창 연결 목록의 항목 이름 = 금색 → 목록 기본 글자색(--lc-t1), 마우스오버는 목록 행 이름과 같게(흰색 + 밑줄).
   드랍 목록(드랍 아이템 / 드랍 몬스터 / 드랍 보스)의 수량 글 = 기본색. 축복 = 노랑(--c-gold-text), 저주 = 빨강(#E06A4A, 강화 (+N) 과 같은 빨강). 축복·저주 이름은 마우스오버에도 그 색 유지 */
.sd-val a.sd-d-link { color: var(--lc-t1); }
.sd-val a.sd-d-link:hover { color: var(--lc-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, #fff 30%, transparent); }
.sd-val em.sd-dq { color: var(--lc-t1); }
.sd-val .sd-dv-b,
.sd-val a.sd-d-link.sd-dv-b,
.sd-val a.sd-d-link.sd-dv-b:hover { color: var(--c-gold-text, #E2C47C); }
.sd-val .sd-dv-c,
.sd-val a.sd-d-link.sd-dv-c,
.sd-val a.sd-d-link.sd-dv-c:hover { color: #E06A4A; }

/* 2026-11-08 아이템 리스트 클래스 칸 중앙 정렬 */
/* 아이템 탭 목록(무기·방어구·장신구·기타·전체·종류별)의 '클래스' / '착용 클래스' 열만 : 머리글 + 모든 값 칸 가로 가운데 (여러 줄로 감긴 값도 줄마다 가운데).
   칸에 열 구분 클래스가 없어 머리글 title 로 열 위치(N번째)를 찾아 같은 N번째 칸을 고름. 글자 가로 정렬만 바꿈 (PC 칸 = flex → justify-content 도 함께) */
.sd-table[aria-label="아이템 목록"]:has(> .sd-thead > .sd-c-val:nth-child(3):is([title="클래스"], [title="착용 클래스"])) > .sd-tr > .sd-td:nth-child(3),
.sd-table[aria-label="아이템 목록"]:has(> .sd-thead > .sd-c-val:nth-child(4):is([title="클래스"], [title="착용 클래스"])) > .sd-tr > .sd-td:nth-child(4),
.sd-table[aria-label="아이템 목록"]:has(> .sd-thead > .sd-c-val:nth-child(5):is([title="클래스"], [title="착용 클래스"])) > .sd-tr > .sd-td:nth-child(5),
.sd-table[aria-label="아이템 목록"]:has(> .sd-thead > .sd-c-val:nth-child(6):is([title="클래스"], [title="착용 클래스"])) > .sd-tr > .sd-td:nth-child(6),
.sd-table[aria-label="아이템 목록"]:has(> .sd-thead > .sd-c-val:nth-child(7):is([title="클래스"], [title="착용 클래스"])) > .sd-tr > .sd-td:nth-child(7),
.sd-table[aria-label="아이템 목록"]:has(> .sd-thead > .sd-c-val:nth-child(8):is([title="클래스"], [title="착용 클래스"])) > .sd-tr > .sd-td:nth-child(8),
.sd-table[aria-label="아이템 목록"]:has(> .sd-thead > .sd-c-val:nth-child(9):is([title="클래스"], [title="착용 클래스"])) > .sd-tr > .sd-td:nth-child(9) {
    text-align: center; justify-content: center; justify-content: safe center;
}

/* 2026-11-08 상세 창 : 아이템 이름 기본색 · 인챈트 주황 → 골드 */
/* 상세 창 이름(.sd-d-name strong) = 금빛 크림(--c-text-title) → 상세 값 글자(.sd-val)와 같은 기본색 --lc-t1. 크기·굵기는 그대로.
   강화 단계 차이 (+N) (무기 타격치 35(+N)/46(+N) · 방어구 AC) = 빨강 #E06A4A → 금색 --c-gold-text (축복 드랍 이름과 같은 색).
   드랍 목록 저주 빨강(.sd-dv-c #E06A4A)은 그대로 */
.sd-d-name strong { color: var(--lc-t1); }
.sd-ench-d { color: var(--c-gold-text); }

/* 2026-11-08 몬스터 상세 : 몬스터 정보 두 열 */
/* 몬스터(ca 3) 상세의 '몬스터 정보'만 (dict.front.php 가 .sd-kv-mon 으로 감쌈) : 출현 지역 앞 칸들 = 왼쪽(앞 절반) | 오른쪽(나머지) 두 열.
   각 열 = 기존 .sd-kv 그대로(라벨 | 값 | 연필 줄, 글자·색 같음), 폭만 좁음. 출현 지역 = 아래 전체 폭 한 줄 (위 여백을 붙여 기존 줄 간격 13px 유지).
   상세 창 폭 360px 미만(1023px 이하에서는 창 = 화면 폭)이면 한 열로 */
.sd-kv-mon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sd-kv-mon + .sd-kv { margin-top: -3px; padding-top: 0; }
@media (max-width: 359px) {
    .sd-kv-mon { display: block; }
    .sd-kv-mon > .sd-kv + .sd-kv { margin-top: -3px; padding-top: 0; }
}
