/* Asset 칸(2026-11-07 시제품 → 2026-11-08 운영). 작업대 옆에 붙은 칸(접고 펴기) · 작은 썸네일 · 누르면 크게 보기 · 작업대 에셋 칸으로 끌어 놓기.
   셋째 판(디노 「보조책상이라는것을 이제는 이동하게만들지말고 그냥 옆에 달려있는 칸을 하나 더 만들어서 접엇다 폇다 … 이름을 Asset」) — 떠다니는 창은 거뒀다.
   넓은 화면의 자리 · 높이는 studio-layout.css(격자 둘째 칸 · 위에 붙음)가 정한다. 시네마 팔레트: 샴페인은 선과 작은 표시에만(면 금지). */
.dk { display: flex; flex-direction: column; min-width: 0; background: rgba(24, 24, 24, .96); color: #E8E3DA; border: 1px solid var(--edge, rgba(232, 227, 218, .28)); border-radius: 14px;   /* 작업대 카드와 같은 모서리(넷째 판) */
  font-family: Pretendard, "Malgun Gothic", sans-serif; overflow: hidden; outline: none; }
.dk[hidden], .dk-pill[hidden], .dk-pick[hidden] { display: none; }
.dk.dk-drop { border-color: #C4AD86; box-shadow: 0 0 0 2px rgba(196, 173, 134, .45); }
.dk svg { width: 15px; height: 15px; flex: none; }

.dk-head { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 5px 0 10px; border-bottom: 1px solid rgba(232, 227, 218, .09); flex: none; }
.dk-mark { color: #C4AD86; display: inline-flex; }
.dk-mark svg { width: 14px; height: 14px; }
.dk-title { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.dk-count { color: #C4AD86; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.dk-sp { flex: 1; }
.dk-btn { width: 26px; height: 26px; display: grid; place-items: center; border: 0; background: transparent; color: #A8A198; border-radius: 3px; cursor: pointer; padding: 0; }
.dk-btn:hover, .dk-btn.on { color: #E8E3DA; background: rgba(232, 227, 218, .08); }
.dk-btn:focus-visible, .dk-up:focus-visible, .dk-tabs button:focus-visible, .dk-pill:focus-visible, .dk-keep:focus-visible, .dk-key:focus-visible, .dk-v-name:focus-visible, .dk-strip:focus-visible { outline: 1px solid #C4AD86; outline-offset: 1px; }

/* 접힌 띠 — 세로 글자 「Asset」 · 개수, 누르면 편다 */
.dk-strip { display: none; flex: 1; width: 100%; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 12px 0; border: 0; background: transparent;
  color: #A8A198; cursor: pointer; font: 600 12px Pretendard, "Malgun Gothic", sans-serif; }
.dk-strip:hover { color: #E8E3DA; background: rgba(232, 227, 218, .04); }
.dk-strip-name { writing-mode: vertical-rl; letter-spacing: .14em; }
.dk-strip-count { color: #C4AD86; font-weight: 600; font-variant-numeric: tabular-nums; }
.dk.dk-collapsed .dk-strip { display: flex; }
.dk.dk-collapsed .dk-head, .dk.dk-collapsed .dk-tabs, .dk.dk-collapsed .dk-body, .dk.dk-collapsed .dk-foot { display: none; }

.dk-tabs { display: flex; gap: 1px; padding: 4px 7px 0; flex: none; overflow-x: auto; scrollbar-width: none; }
.dk-tabs button { border: 0; background: transparent; color: #A8A198; font: inherit; font-size: 11.5px; padding: 4px 6px 5px; border-bottom: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.dk-tabs button[aria-selected="true"] { color: #E8E3DA; border-bottom-color: #C4AD86; }
.dk-tabs small { color: #6E6860; margin-left: 2px; font-size: 10.5px; }

.dk-body { position: relative; flex: 1; min-height: 0; }
/* 작은 썸네일 칸 — 칸 수는 칸 폭 ÷ 썸네일 크기(desk.js가 --dk-cols로) */
.dk-grid { position: absolute; inset: 0; overflow: auto; padding: 8px 10px 10px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; scrollbar-width: thin; }
.dk-t { position: relative; flex: none; width: calc((100% - (var(--dk-cols, 3) - 1) * 6px) / var(--dk-cols, 3)); aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: #101010;
  border: 1px solid rgba(232, 227, 218, .12); cursor: zoom-in; outline: none; }
.dk-t img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }   /* 작은 칸도 파일 전체를 보인다(잘라 내지 않는다) */
.dk-t:hover { border-color: rgba(232, 227, 218, .38); }
.dk-t:active { cursor: grabbing; }
.dk-t:focus-visible { box-shadow: 0 0 0 1px #C4AD86; }
.dk-t.on { border-color: var(--c, #C4AD86); box-shadow: inset 0 0 0 1px var(--c, #C4AD86); }
.dk-t.gone { opacity: .42; }
.dk-t.dk-pulse { animation: dk-pulse .45s ease; }
@keyframes dk-pulse { 0% { transform: scale(.9); } 100% { transform: none; } }
/* 껍데기(2026-11-08, desk.js 「껍데기」) — 올리는 중인 칸은 먼저 보이고 흐리게 · 가운데 작은 고리, 끌리는 그림(56px 판)은 화면 밖에서 만든다 */
.dk-t.pending { cursor: progress; }
.dk-t.pending img, .dk-t.pending .dk-file { opacity: .45; }
.dk-t.pending::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -10px 0 0 -10px; border: 2px solid rgba(232, 227, 218, .25); border-top-color: #C4AD86; border-radius: 50%; animation: dk-spin .8s linear infinite; }
@keyframes dk-spin { to { transform: rotate(360deg); } }
.dk-ghost-host { position: fixed; left: -1000px; top: -1000px; width: 56px; height: 56px; pointer-events: none; }
.dk-badge { position: absolute; top: 2px; left: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; font-style: normal;
  font-size: 9.5px; font-weight: 800; color: #121212; background: var(--c, #C4AD86); }
.dk-kind { position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px; border-radius: 3px; display: grid; place-items: center; background: rgba(0, 0, 0, .66); color: #E8E3DA; }
.dk-kind svg { width: 11px; height: 11px; }
.dk-file { display: grid; place-items: center; height: 100%; color: #A8A198; }
.dk-empty { width: 100%; color: #A8A198; font-size: 12px; line-height: 1.6; margin: 4px 2px; }

.dk-foot { flex: none; padding: 6px 10px 8px; border-top: 1px solid rgba(232, 227, 218, .07); color: #6E6860; font-size: 10.5px; line-height: 1.45; min-height: 26px; }
.dk-foot.dk-msg { color: #C4AD86; }
.dk-foot:empty { padding: 0; min-height: 8px; border: 0; }

.dk-pick { position: absolute; inset: 0; background: #181818; overflow: auto; padding: 8px 10px 12px; z-index: 2; }
.dk-pick-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; color: #A8A198; }
.dk-pick-head b { color: #E8E3DA; font-weight: 600; }
.dk-pick-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-pick-grid button { flex: none; width: calc((100% - (var(--dk-cols, 3) - 1) * 6px) / var(--dk-cols, 3)); aspect-ratio: 1; border: 1px solid rgba(232, 227, 218, .12); border-radius: 3px;
  background: #101010; padding: 0; overflow: hidden; cursor: pointer; }
.dk-pick-grid button:hover { border-color: #C4AD86; }
.dk-pick-grid img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dk-up { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(232, 227, 218, .3); background: transparent; color: #E8E3DA; font: inherit; font-size: 11.5px; padding: 3px 8px; border-radius: 2px; cursor: pointer; }
.dk-up svg { width: 13px; height: 13px; }
.dk-up:hover { border-color: #E8E3DA; }

/* 좁은 화면 — 아래 서랍과 서랍을 여는 알약(작업대 카드 바로 위, desk.js가 top을 잡는다).
   층은 24 — 작업대(층 없음) 위, 메뉴 서랍(25 · 30) · 결과 크게 보기(.lb 60) · 고르기 창(.st-pop 70) 아래. 70이던 때 폰에서 알약이 참고 자료 고르기 창의 「완료」를 덮었다(2026-11-08 시험 ref_view) */
.dk.dk-sheet { position: fixed; z-index: 24; left: 0; right: 0; bottom: 0; width: 100%; height: 46vh; border-radius: 12px 12px 0 0; border-bottom: 0; box-shadow: 0 -18px 50px rgba(0, 0, 0, .55); }
.dk-pill { position: fixed; z-index: 24; right: 12px; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid rgba(196, 173, 134, .55);
  background: #181818; color: #E8E3DA; font: 600 12px Pretendard, "Malgun Gothic", sans-serif; box-shadow: 0 8px 26px rgba(0, 0, 0, .5); cursor: pointer; }
.dk-pill b { color: #C4AD86; font-weight: 600; font-variant-numeric: tabular-nums; }
.dk-pill svg { width: 15px; height: 15px; color: #C4AD86; }
.dk-pill:hover { border-color: #C4AD86; }

/* 크게 보기 — 겉은 만들기 화면의 재료 크게 보기(공용 .lb.st-viewer.st-rv)와 같다 */
.lb.dk-view { z-index: 80; }
.dk-v-cap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.dk-v-name { border: 0; background: transparent; color: #E8E3DA; font: 600 14px Pretendard, "Malgun Gothic", sans-serif; padding: 2px 0; cursor: text; border-bottom: 1px dashed rgba(232, 227, 218, .3); }
.dk-v-name:hover { border-bottom-color: #C4AD86; }
.dk-v-input { font: 600 14px Pretendard, "Malgun Gothic", sans-serif; color: #E8E3DA; background: #0E0E0E; border: 1px solid #C4AD86; border-radius: 2px; padding: 3px 6px; outline: none; width: 14em; }
.dk-key { border: 2px solid rgba(232, 227, 218, .7); background: transparent; color: #E8E3DA; font: 600 12.5px Pretendard, "Malgun Gothic", sans-serif; padding: 6px 12px; border-radius: 2px; cursor: pointer; }
.dk-key:hover { background: #E8E3DA; color: #121212; border-color: #E8E3DA; }
.dk-key.dk-key-main { border-color: #C4AD86; color: #C4AD86; }
.dk-key.dk-key-main:hover { background: #C4AD86; color: #121212; }
.dk-v-plain { max-width: 100%; max-height: calc(100vh - 140px); display: block; margin: 0 auto; }

/* 결과 카드의 「Asset에」 — 마우스를 올리면 보인다 */
.st-g-item { position: relative; }
.dk-keep { position: absolute; top: 6px; right: 6px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px;
  border: 1px solid rgba(196, 173, 134, .65); background: rgba(18, 18, 18, .8); color: #E8E3DA; font: 600 11px Pretendard, "Malgun Gothic", sans-serif; opacity: 0; transition: opacity .15s; cursor: pointer; }
.dk-keep svg { width: 13px; height: 13px; color: #C4AD86; }
.st-g-item:hover .dk-keep, .dk-keep:focus-visible, .dk-keep[disabled] { opacity: 1; }
.dk-keep[disabled] { color: #A8A198; cursor: progress; }
@media (hover: none) { .dk-keep { opacity: 1; } }

/* Asset 재료를 끌고 다니는 동안 — 작업대 카드가 받는 자리, 위에 올리면 빛난다 */
body.dk-carrying #st-form { outline: 1px dashed rgba(196, 173, 134, .55); outline-offset: 4px; }
body.dk-carrying #st-form.dk-target { outline: 2px solid #C4AD86; outline-offset: 4px; box-shadow: 0 0 0 6px rgba(196, 173, 134, .12); }
@media (prefers-reduced-motion: reduce) { .dk-t.dk-pulse { animation: none; } .dk-keep { transition: none; } .dk-t.pending::after { animation: none; } }
