/* 태블릿 가로/세로 양쪽. 다크 고정 — 그림 옆에서 눈이 덜 피로하다. */
:root {
  --bg: #141414;
  --panel: #1e1e1e;
  --line: #303030;
  --fg: #e8e8e8;
  --dim: #999;
  --accent: #4a9eff;
  --ok: #3ecf6a;
  --bad: #ff5b5b;
  --warn: #ffb648;
  --top: 48px;
  --bottom: 52px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--fg);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
}

button, select, input, textarea {
  font: inherit; color: var(--fg);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px;
}
button { cursor: pointer; }
button:active { background: #2a2a2a; }
button.on { border-color: var(--accent); color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: #06131f; font-weight: 600; }
button.danger { border-color: #6a2626; color: #ff9a9a; }
button.ico { padding: 6px 10px; }
textarea { width: 100%; resize: vertical; -webkit-user-select: text; user-select: text; }
.grow { flex: 1; }
.small { font-size: 12px; color: var(--dim); }

/* ── 상단바 ─────────────────────────────── */
#top {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px; background: var(--panel); border-bottom: 1px solid var(--line);
}
#top select { max-width: 34vw; }
#cutnav { display: flex; align-items: center; gap: 4px; }
#cutpos { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
.status { font-size: 12px; color: var(--dim); min-width: 74px; text-align: right; }
#autowrap { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--dim); }
#autowrap input { width: 18px; height: 18px; }

.badge { letter-spacing: 2px; padding: 6px 8px; }
.badge .s0 { color: var(--ok); }
.badge .s1 { color: var(--bad); }
.badge .s2 { color: var(--warn); }

#banner {
  position: fixed; top: var(--top); left: 0; right: 0; z-index: 19;
  background: #4a3a12; color: #ffdc9a; padding: 6px 12px; font-size: 13px;
}
#banner.bad { background: #4a1a1a; color: #ffc0c0; }

/* ── 뷰 ─────────────────────────────────── */
.view {
  position: fixed; inset: var(--top) 0 var(--bottom) 0;
  display: none; flex-direction: column; overflow: hidden;
}
.view.on { display: flex; }

.toolbar { display: flex; gap: 8px; padding: 10px; align-items: center; flex-wrap: wrap; }

/* 컷 리스트 */
.cutlist { flex: 1; overflow-y: auto; padding: 0 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.cutcard {
  display: flex; gap: 10px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px;
}
.cutcard.sel { border-color: var(--accent); }
.cutcard img, .cutcard .ph {
  width: 92px; height: 70px; object-fit: cover; border-radius: 6px;
  background: #262626; flex: none;
}
.cutcard .meta { flex: 1; min-width: 0; }
.cutcard .no { font-weight: 600; color: var(--accent); font-size: 13px; }
.cutcard .desc { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cutcard .mv { display: flex; flex-direction: column; gap: 4px; }

/* 컷 상세 */
#cutBody { flex: 1; display: flex; gap: 10px; overflow: hidden; padding: 10px; }
#cutImage {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center;
  background: #f7f7f7; border-radius: 10px; overflow: hidden;
}
#cutImage img { max-width: 100%; max-height: 100%; object-fit: contain; }
#cutImage .small { color: #888; }
#cutSide {
  width: min(400px, 46%); overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
#cutSide label { font-size: 12px; color: var(--dim); margin-top: 6px; }
.psdrow {
  background: #232323; border: 1px solid var(--line); border-radius: 8px; padding: 8px;
  word-break: break-all;
}
.psdrow a { color: var(--accent); margin-left: 6px; }

.hint { margin: 0 10px 8px; line-height: 1.5; }

/* 상태 태그 */
.tag { font-size: 11px; padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
.tag.ok { background: #16391f; color: #7fe39a; }
.tag.none { background: #3a3320; color: #e3c77f; }
.tag.wait { background: #24303f; color: #8fc0ff; }
.tag.run { background: #1d3550; color: #79b8ff; }
.tag.bad { background: #43201f; color: #ff9a9a; }

/* 최종검수 */
#reviewBody { flex: 1; display: flex; gap: 10px; overflow: hidden; padding: 0 10px 10px; }
#reviewCuts { width: 46%; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
#reviewPreview { flex: 1; overflow-y: auto; background: #fff; border-radius: 8px; }
#reviewPreview img { width: 100%; display: block; }
.revrow { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.revrow .no { font-size: 13px; color: var(--accent); margin-bottom: 6px; }
.revthumbs { display: flex; gap: 6px; overflow-x: auto; }
.revthumbs img {
  height: 76px; border-radius: 6px; border: 2px solid transparent; flex: none; background: #262626;
}
.revthumbs img.sel { border-color: var(--accent); }

/* 서랍 */
#side {
  position: fixed; top: var(--top); bottom: var(--bottom); right: 0; width: min(380px, 88vw); z-index: 25;
  background: var(--panel); border-left: 1px solid var(--line);
  padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
}
#side label { font-size: 12px; color: var(--dim); margin-top: 6px; }
.row { display: flex; gap: 8px; align-items: center; }

/* 모달 */
.modal {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal .sheet {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; width: min(680px, 100%); display: flex; flex-direction: column; gap: 8px;
}

/* 하단 탭바 */
#tabbar {
  position: fixed; inset: auto 0 0 0; height: var(--bottom); z-index: 20;
  display: flex; background: var(--panel); border-top: 1px solid var(--line);
}
#tabbar button { flex: 1; border: none; border-radius: 0; background: none; color: var(--dim); }
#tabbar button.on { color: var(--accent); box-shadow: inset 0 2px 0 var(--accent); }

[hidden] { display: none !important; }

#drawLink {
  color: var(--accent); text-decoration: none; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
}

/* 컷 목록 일괄 적용 줄 */
.toolbar.bulk { padding-top: 0; gap: 6px; }
.toolbar.bulk select { max-width: 34vw; }

/* ── 홈 메뉴 ─────────────────────────────────── */
.homemenu { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.homecard {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 16px; text-align: left; line-height: 1.5;
}
.homecard b { font-size: 16px; }

/* ── 정비 화면 (스타일 LoRA · 화풍) ──────────── */
/* 그리기 화면(draw.css)과 같은 모양 — 두 곳에서 같은 목록을 손보기 때문이다. */
.stylelist { display: flex; flex-direction: column; gap: 4px; margin: 0 10px 8px; }
.stylelist .row2 { display: flex; align-items: center; gap: 6px; }
.stylelist img { width: 30px; height: 40px; object-fit: cover; border-radius: 4px; background: #1a1a1a; flex: none; }
.stylelist input[type=text] { flex: 1; min-width: 0; padding: 4px 6px; }
.stylelist input[type=number] { width: 66px; padding: 4px 6px; }
.stylelist button { flex: none; width: auto; padding: 4px 10px; }

.picklist { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 0 10px 8px; }
.picklist .row2 { display: flex; align-items: center; gap: 6px; }
.picklist .row2 .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picklist .row2 button { flex: none; width: auto; padding: 4px 10px; }

#view-loras .row, #view-styles .row { padding: 0 10px 8px; gap: 6px; }
#view-loras b.small, #view-styles b.small { padding: 4px 10px 0; }

/* ── 최종검수 — 그리기에서 올린 회차를 추천으로 드러낸다 ── */
.revthumb { position: relative; display: inline-block; line-height: 0; }
/* '추천' 표는 고른 것에만 보인다 — 요소를 넣었다 뺐다 하면 줄이 흔들린다 */
.revthumb .pick { display: none; }
.revthumb.sel .pick { display: block; }
.revthumb.sel img { border-color: var(--accent); }
/* 살아 있는 스크롤 — 컷 사이를 벌려 어디서 끊기는지 보이게 */
#reviewPreview img { margin-bottom: 6px; }
.revthumb .pick {
  position: absolute; left: 4px; top: 4px;
  font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 4px;
  background: var(--accent); color: #0d1b2a; font-weight: 700;
}
.revthumb.sel img { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── 정비 화면 썸네일 그리드 ─────────────────── */
/* 이름만 늘어놓으면 뭐가 뭔지 모른다 — 그림으로 고른다. */
.thumbgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px; padding: 0 10px 10px;
}
.tcard {
  position: relative; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 8px; background: #1a1a1a;
  display: flex; flex-direction: column; text-align: left;
}
.tcard.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tcard img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #111; }
.tcard .noimg {
  aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 10px; text-align: center; padding: 4px;
}
.tcard .nm {
  font-size: 11px; line-height: 1.35; padding: 4px 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tcard .act {
  position: absolute; right: 3px; top: 3px; display: flex; gap: 3px;
}
.tcard .act button {
  width: auto; padding: 2px 5px; font-size: 11px; line-height: 1;
  background: rgba(0,0,0,.7); border-color: #444;
}
.tcard .str { padding: 0 5px 5px; }
.tcard .str input { width: 100%; }
.thumbgrid:empty::after { content: '없습니다.'; color: var(--dim); font-size: 12px; padding: 0 10px; }

/* 정비 화면은 칸이 여럿이라(고른 것 + 고를 것 + 검색결과) 화면째로 굴린다.
   .view 가 overflow:hidden 이라 이걸 안 열면 아래쪽 LoRA 를 볼 길이 없다. */
#view-loras, #view-styles { overflow-y: auto; }
#view-loras > *, #view-styles > * { flex: none; }
/* 굴러가는 화면 안에서 또 굴리면 손가락이 어디를 잡았는지 알 수 없다 */
#aPromptHits { max-height: none; overflow: visible; }

/* ── 작품 탭 ─────────────────────────────────── */
#view-works { overflow-y: auto; }
#view-works > * { flex: none; }
.workbox { margin: 0 10px 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.workbox.drop { border-color: var(--accent); background: #1d2836; }
.workhead { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.workhead .cnt { color: var(--dim); font-size: 11px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.pcard {
  position: relative; padding: 0; overflow: hidden; text-align: left;
  color: inherit; font: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #1a1a1a;
  display: flex; flex-direction: column; cursor: grab;
}
.pcard:active { cursor: grabbing; }
.pcard.dragging { opacity: .45; }
.pcard img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; background: #111; }
.pcard .noimg {
  aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 11px;
}
.pcard .nm { font-size: 12px; padding: 5px 6px; line-height: 1.35; word-break: break-all; }
.pgrid:empty::after { content: '비어 있습니다 — 프로젝트를 끌어다 놓으세요.'; color: var(--dim); font-size: 12px; }
#projectName { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pcard .dup { color: var(--warn, #ffb648); font-size: 10px; display: block; }

/* 작품은 하나만 펼친다. 나머지는 아래 가로줄에 작은 표지로 늘어놓고 좌우로 굴려 찾는다. */
.workhead .ico { padding: 2px 6px; font-size: 12px; line-height: 1; flex: none; width: auto; }
.workhead .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.workrail {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 10px 12px;
  scroll-snap-type: x proximity;
}
.wcard {
  flex: none; width: 88px; padding: 0; overflow: hidden; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 8px; background: #1a1a1a;
  display: flex; flex-direction: column; text-align: left;
}
.wcard.drop { border-color: var(--accent); background: #1d2836; }
.wcard img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; background: #111; }
.wcard .noimg { aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 10px; }
.wcard .nm { font-size: 11px; padding: 4px 5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcard .cnt { color: var(--dim); }
.workrail:empty::after { content: '다른 작품이 없습니다.'; color: var(--dim); font-size: 12px; }
.pcard .act { position: absolute; right: 3px; top: 3px; }
.pcard .act button {
  width: auto; padding: 2px 6px; font-size: 11px; line-height: 1;
  background: rgba(0,0,0,.72); border-color: #444;
}

/* 손가락으로 끄는 동안 브라우저가 스크롤·확대·이미지집기를 하지 않게 */
.pcard, .wcard { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pcard img, .wcard img { pointer-events: none; -webkit-user-drag: none; user-drag: none; }
/* 끌고 다니는 분신 */
.pcard.ghost {
  position: fixed; z-index: 999; pointer-events: none; opacity: .85;
  transform: rotate(-3deg); box-shadow: 0 10px 28px rgba(0,0,0,.55);
}

/* 지우기는 다른 조작과 떨어져 있어야 한다 — 붙어 있으면 손이 미끄러진다 */
.workfoot { display: flex; justify-content: flex-end; padding: 8px 2px 2px; border-top: 1px solid var(--line); margin-top: 8px; }
.workfoot button { width: auto; padding: 5px 12px; font-size: 12px; }

/* ── 액자 ────────────────────────────────────── */
/* 작품마다 다른 테두리를 둬서 목록에서 눈으로 갈리게 한다. 그림 자체는 안 건드린다. */
.fr-gold  { border: 3px solid #c9a227; box-shadow: inset 0 0 0 2px #6b520f, 0 0 0 1px #2a2109; }
.fr-neon  { border: 2px solid #5b8cff; box-shadow: 0 0 10px rgba(91,140,255,.55), inset 0 0 10px rgba(91,140,255,.25); }
.fr-film  { border: 2px solid #2a2a2a; background-image: repeating-linear-gradient(#3a3a3a 0 6px, transparent 6px 14px); background-size: 8px 100%; background-repeat: no-repeat; background-position: left, right; padding-left: 12px; padding-right: 12px; }
.fr-paper { border: 1px solid #d8cfbc; box-shadow: 0 2px 0 #b9ad93, 0 8px 18px rgba(0,0,0,.45); background: #171512; }
.fr-dash  { border: 2px dashed #8a8a8a; }
.fr-deco  { border: 2px solid #7a5cff; border-radius: 2px; box-shadow: inset 0 0 0 6px rgba(122,92,255,.14); }
/* 작은 표지에도 같은 액자를 입힌다 */
.wcard.fr-film { padding-left: 8px; padding-right: 8px; }

.framegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.frcard { padding: 0; background: #1a1a1a; display: flex; flex-direction: column; }
.frcard.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.frcard .box { height: 58px; background: #23262c; }
.frcard .nm { font-size: 11px; padding: 4px; }

/* 표지 크롭 */
#cropBox { display: flex; justify-content: center; margin: 6px 0; }
#cropCv { touch-action: none; background: #111; border-radius: 8px; cursor: grab; max-width: 100%; }
#cropCv:active { cursor: grabbing; }

/* 공정의 문지기 — 무엇을 고르는 중인지 알린다(작가 지시, 9-6). */
#worksNote.gate { color: #cfe0ff; background: #1a2740; border: 1px solid #3c7fd8;
  border-radius: 8px; padding: 7px 10px; }
#worksNote.gate b { color: #9cc6ff; }


/* ── 프로젝트 관리 = 윈도우 탐색기 꼴 (작가 지시, 9-10) ────────────────
   「윈도우의 기본 폴더 구조도 저것보다는 가독성이 좋은걸 아니?
     차라리 윈도우 폴더 구조처럼 보이고 편집할수 있게해줘」
   그래서 탐색기의 뼈대를 그대로 쓴다 — 주소 줄 · 왼쪽 나무 · 오른쪽 자세히. */
/* ⚠️ `#view-manage { display: flex }` 로 쓰면 안 된다 — id 가 `.view` 의
   `display:none` 을 이겨서 **판 두 개가 겹쳐 보인다**(실측 9-10, 화면에서 잡았다).
   켜졌을 때만 편다. */
#view-manage.on { display: flex; flex-direction: column; min-height: 0; }

/* 주소 줄 */
.exbar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; flex: none;
  background: #1c1c22; border-bottom: 1px solid #2a2a30; }
.exbar > button { background: #23232a; color: #d8dee9; border: 1px solid #33333c;
  border-radius: 6px; padding: 3px 9px; font-size: 13px; cursor: pointer; line-height: 1.5; }
.exbar > button:hover:not(:disabled) { background: #2c2c35; }
.exbar > button:disabled { opacity: .35; cursor: default; }
.crumb { flex: 1; display: flex; align-items: center; gap: 2px; min-width: 0;
  background: #101014; border: 1px solid #2a2a30; border-radius: 6px; padding: 3px 8px;
  overflow: hidden; }
.crumb button { background: none; border: none; color: #d8dee9; font: inherit; font-size: 12.5px;
  padding: 2px 6px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.crumb button:hover { background: #23232a; }
.crumb .sep { color: #6f7889; }
.exbar .find { width: 200px; background: #101014; border: 1px solid #2a2a30; border-radius: 6px;
  padding: 4px 9px; color: #d8dee9; font: inherit; font-size: 12.5px; outline: none; }
.exbar .find:focus { border-color: var(--accent); }

/* 두 칸 */
.explorer { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px 1px 1fr; }
@media (max-width: 720px) { .explorer { grid-template-columns: 1fr; }
  .extree, .exsplit { display: none; } }
.exsplit { background: #2a2a30; }

/* 왼쪽 나무 */
.extree { overflow: auto; padding: 6px 4px; user-select: none; }
.exnode, .exleaf { display: flex; align-items: center; gap: 5px; padding: 3px 6px;
  border-radius: 5px; cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.exnode:hover, .exleaf:hover { background: #23232a; }
.exnode.on, .exleaf.on { background: #1e3a5c; }
.exnode.drop { background: #16202c; box-shadow: inset 0 0 0 1px var(--accent); }
.exnode .tw, .exleaf .tw { width: 12px; color: #8a93a5; font-size: 10px; text-align: center; }
.exnode .tw:hover { color: #fff; }
.exnode .nm, .exleaf .nm { overflow: hidden; text-overflow: ellipsis; }
.exnode .cnt { margin-left: auto; color: #6f7889; font-size: 11px; }
.extree .exkids { padding-left: 13px; }
.extree .exkids .exkids { padding-left: 13px; }

/* 오른쪽 자세히 */
.expane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.exhead, .exrow { display: grid; grid-template-columns: minmax(0, 1fr) 118px 54px 132px;
  gap: 8px; align-items: center; padding: 0 10px; }
.exhead { flex: none; height: 27px; background: #1c1c22; border-bottom: 1px solid #2a2a30;
  font-size: 11.5px; color: #8a93a5; user-select: none; }
.exhead > span { cursor: pointer; padding: 0 2px; border-radius: 4px; }
.exhead > span:hover { background: #26262e; color: #d8dee9; }
.exhead > span.sorted { color: #d8dee9; }
.exhead > span::after { content: attr(data-arrow); font-size: 9px; margin-left: 4px; }
.exlist { flex: 1; overflow: auto; outline: none; }
.exrow { height: 30px; cursor: default; border-bottom: 1px solid #1b1b20; }
.exrow:hover { background: #1d1d24; }
.exrow.on { background: #1e3a5c; }
.exrow.dragging { opacity: .35; }
.exrow .c-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; }
.exrow .c-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exrow .ren { flex: 1; min-width: 0; background: #101014; border: 1px solid var(--accent);
  border-radius: 4px; color: #d8dee9; font: inherit; font-size: 12.5px; padding: 1px 5px;
  outline: none; }
.exrow .dup { color: #e0b050; }
.exrow .c-cuts, .exrow .c-date { color: #8a93a5; font-size: 11.5px;
  font-family: 'Consolas', monospace; font-variant-numeric: tabular-nums; }
.exrow .c-cuts { text-align: right; }
.exempty { padding: 24px 14px; color: #6f7889; font-size: 12.5px; }
.exstatus { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 10px;
  background: #1c1c22; border-top: 1px solid #2a2a30; font-size: 11.5px; color: #8a93a5; }
.exstatus .grow { flex: 1; }
#mgNote { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }

/* 공정 칸 — 미지정은 **눈에 띄어야 한다**(어느 공정에도 안 뜨는 상태다). */
.mgproc { width: 100%; background: #23232a; color: #d8dee9; border: 1px solid #33333c;
  border-radius: 5px; padding: 2px 4px; font-size: 11.5px; }
.mgproc.none { border-color: #6a5320; background: #2a2414; color: #e0b050; }

/* 오른쪽 단추 차림표 */
.exmenu { position: fixed; z-index: 90; min-width: 170px; padding: 4px;
  background: #1c1c22; border: 1px solid #3a3a44; border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0,0,0,.55); display: flex; flex-direction: column; }
.exmenu[hidden] { display: none; }
.exmenu button { background: none; border: none; color: #d8dee9; font: inherit; font-size: 12.5px;
  text-align: left; padding: 5px 10px; border-radius: 5px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; }
.exmenu button:hover:not(:disabled) { background: #2b5fa8; color: #fff; }
.exmenu button:disabled { opacity: .35; cursor: default; }
.exmenu button.danger:hover { background: #7a2c2c; }
.exmenu .k { margin-left: auto; color: #6f7889; font-size: 11px; }
.exmenu button:hover .k { color: #cfe0ff; }
.exmenu .sep { height: 1px; background: #2a2a30; margin: 4px 2px; }
.exmenu .lbl { color: #6f7889; font-size: 10.5px; padding: 4px 10px 2px; }

/* 폴더 줄 — 프로젝트와 눈으로 갈린다. */
.exrow.folder .c-name { font-weight: 600; }
.exrow.folder .c-proc, .exrow.folder .c-cuts { color: #4f5768; }
/* 굳은 공정 — 글자뿐이다. 바꾸는 손잡이가 없다는 것이 보여야 한다. */
.procfixed { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #cfe0ff; }
.exnode .ic.work, .exrow .ic.work { color: #e0b050; }
