/* prompt.css — memditor.com/prompt 프롬프트 생성기. 사이트는 밝은 화면이라 편집기 상자만 어둡게(효과음 만들기와 같은 방식).
   모양 기준 = 프리미어 작업 화면: 어두운 패널 사이 좁은 틈, 패널 이름 줄, 파란 선택, 라벨 색 클립, 렌더 막대(빨강→초록)
   11/28 사용자 "난잡해서 눈이 어지러워, 그리드별로 구분선 명확하게": 고르는 칸마다 따로 패널 + 칸 사이 1px 선 격자(밀착 인화지처럼)
   같은 날 "패널마다 구분이 안 또렷해" → 흰 바탕에 띄웠더니 "따로 노는 것 같아 한 프로그램으로 안 보여" →
   한 상자로 되돌리고 패널 사이 틈(--dw)을 눈에 띄는 밝은 선 색(--dc)으로. 틈 = 상자 바탕이 비쳐 보이는 것 */
.pe {
  --dw: 3px;             /* 패널 사이 선 굵기 — 11/28 시안 C 확정 */
  --dc: #8b919d;         /* 패널 사이 선 색 (밝게) */
  --pe-panel: #18191d;
  --pe-head: #26282e;    /* 패널 이름 줄 — 본문보다 확실히 밝게 */
  --pe-rule: #2e3139;    /* 격자·머리줄 구분선 — 눈에 보이게 */
  --pe-line: rgba(255, 255, 255, 0.08);
  --pe-line2: rgba(255, 255, 255, 0.16);
  --pe-ink: #d6d9df;
  --pe-dim: #959ba6;     /* 패널 위 6.0:1 */
  --pe-strong: #f4f5f7;
  --pe-sel: #4f8dff;
  --th: 66px;            /* 타임라인 트랙 이름 칸 */
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--dw);
  padding: var(--dw); border-radius: 12px; overflow: clip; background: var(--dc);   /* hidden이면 따라 내려오는 모니터의 기준이 이 상자가 됨 */
  color: var(--pe-ink); font-size: 14px; line-height: 1.5; word-break: keep-all;
}
.pe button, .pe input { font: inherit; color: inherit; }
/* 트랙 라벨 색 (프리미어 라벨 색을 어둡게 맞춤) */
.pe .t-v1 { --lab: #7b97ea; } .pe .t-v2 { --lab: #c886b6; } .pe .t-v3 { --lab: #d8a94e; }
.pe .t-a1 { --lab: #d77a6f; } .pe .t-a2 { --lab: #9a8fe6; } .pe .t-a3 { --lab: #58b39a; }

/* 왼쪽은 마지막 패널이 아래까지 늘어나 빈 바탕이 안 보이게, 오른쪽은 기둥(어두운 색) 안에서 모니터·타임라인이 따라 내려옴 */
.pe-left { display: flex; flex-direction: column; gap: var(--dw); }
.pe-left > .pe-panel:last-child { flex: 1; }
.pe-panel { background: var(--pe-panel); overflow: hidden; }
.pe-tab {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px;
  background: var(--pe-head); border-bottom: 1px solid #3a3d45; font-size: 12.5px; color: var(--pe-dim);
}
.pe-tab h2 { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--pe-strong); }
.pe-tab h2 i { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 4px; background: #3d4049; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--pe-strong); font-variant-numeric: tabular-nums; }
.pe-tab > :last-child:not(:first-child) { margin-left: auto; }
.pe-tab small { font-size: 12px; }
.pe-count, .pe-rstate { font-variant-numeric: tabular-nums; }
.pe-mini { padding: 3px 9px; border-radius: 5px; border: 1px solid var(--pe-line2); color: var(--pe-dim); font-size: 12px; }
.pe-mini:hover { color: var(--pe-strong); border-color: var(--pe-dim); }

/* ── 고르는 칸: 1px 선 격자. 바탕색이 칸 사이로 비쳐 선이 된다 (칸 수가 줄 수에 딱 맞아 빈칸 없음) ── */
.pe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--pe-rule); }
.pe-item {
  display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 10px; text-align: left; background: var(--pe-panel);
  transition: background 0.12s;
}
.pe-item:hover { background: #1f2126; }
.pe-item[aria-pressed='true'] { background: #1c2333; box-shadow: inset 0 0 0 2px var(--pe-sel); }
.pe-item > b { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--pe-strong); }
.pe-item > small { margin-top: -4px; font-size: 11px; line-height: 1.3; color: var(--pe-dim); }
/* 만들 것 썸네일 = 실제 화면 비율 상자 */
.pe-thumb { display: grid; place-items: center; height: 56px; border-radius: 3px; background: #0f1013; }
.pe-frame { position: relative; display: block; border: 1.5px solid #6d737d; border-radius: 2px; }
.pe-item[aria-pressed='true'] .pe-frame { border-color: var(--pe-sel); }
.pe-frame.bar::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 14%; height: 3px; border-radius: 1px; background: #8e949e; }
.pe-frame.motion::after { content: ''; position: absolute; left: 30%; right: 30%; top: 50%; height: 3px; margin-top: -1.5px; background: #8e949e; }

/* ── 디자인 양식 미리보기: 그 양식을 CSS로 직접 그린 작은 화면 ── */
.pe-pv { position: relative; display: block; height: 62px; border-radius: 3px; overflow: hidden; }
.pe-pv i, .pe-pv b, .pe-pv u { position: absolute; display: block; text-decoration: none; }
/* 글래스모피즘 */
.pv-glass { background: #1c1f3d; }
.pv-glass .a { left: 8%; top: 4px; width: 40px; height: 40px; border-radius: 50%; background: #ff5fa2; }
.pv-glass .b { right: 6%; bottom: -12px; width: 48px; height: 48px; border-radius: 50%; background: #3fb6ff; }
.pv-glass .card { left: 20%; right: 20%; top: 13px; bottom: 13px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.pv-glass .card u { position: static; height: 3px; width: 55%; margin: 9px 0 0 8px; border-radius: 2px; background: #fff; }
.pv-glass .card u + u { width: 35%; margin-top: 5px; opacity: 0.6; }
/* 리퀴드 글래스 */
.pv-liquid { background: repeating-linear-gradient(100deg, #ff9a3c 0 9px, #ff5f6d 9px 18px, #6a5cff 18px 27px, #22c3b4 27px 36px); }
.pv-liquid .lens { left: 16%; right: 16%; top: 18px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.6); backdrop-filter: blur(2.5px) saturate(1.7); -webkit-backdrop-filter: blur(2.5px) saturate(1.7); box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 3px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.3); }
.pv-liquid .lens u { left: 14px; right: 40%; top: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.95); }
/* 뉴모피즘 */
.pv-neu { background: #e3e7ed; }
.pv-neu .a { left: 12%; top: 16px; width: 42%; height: 30px; border-radius: 10px; background: #e3e7ed; box-shadow: 4px 4px 8px #bcc3cd, -4px -4px 8px #fff; }
.pv-neu .b { right: 12%; top: 17px; width: 28px; height: 28px; border-radius: 50%; background: #e3e7ed; box-shadow: inset 3px 3px 6px #bcc3cd, inset -3px -3px 6px #fff; }
/* 클레이모피즘 */
.pv-clay { background: #f1e6ff; }
.pv-clay .a, .pv-clay .b { box-shadow: inset -4px -5px 8px rgba(0, 0, 0, 0.14), inset 4px 4px 8px rgba(255, 255, 255, 0.7), 5px 7px 12px rgba(120, 60, 160, 0.28); }
.pv-clay .a { left: 14%; top: 11px; width: 44px; height: 38px; border-radius: 16px; background: #ff9ec7; }
.pv-clay .b { right: 14%; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: #8fd3ff; }
/* 브루탈리즘 (날것) */
.pv-brutal { background: #fff; color: #000; font-family: 'Times New Roman', Times, serif; }
.pv-brutal b { left: 7px; top: 5px; font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: -0.5px; }
.pv-brutal u { left: 7px; top: 27px; font-size: 11px; color: #0000ee; text-decoration: underline; }
.pv-brutal .box { right: 7px; bottom: 7px; width: 34px; height: 20px; border: 3px solid #000; }
/* 네오 브루탈리즘 */
.pv-neob { background: #fff3cf; }
.pv-neob .a { left: 12%; top: 11px; width: 48%; height: 28px; border-radius: 5px; background: #ffd23f; border: 2px solid #000; box-shadow: 4px 4px 0 #000; }
.pv-neob .b { right: 11%; top: 27px; width: 26px; height: 20px; border-radius: 4px; background: #ff6b9a; border: 2px solid #000; box-shadow: 3px 3px 0 #000; transform: rotate(-7deg); }
/* 벤토 그리드 */
.pv-bento { display: grid !important; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; padding: 5px; background: #0f1115; }
.pv-bento i { position: static; border-radius: 5px; background: #242a36; }
.pv-bento .big { grid-row: span 2; background: #e9ecf2; }
.pv-bento .hl { grid-column: span 2; background: #4f8dff; }
/* 스위스 미니멀 */
.pv-swiss { background: #fff; }
.pv-swiss .a { left: 0; top: 0; bottom: 0; width: 34%; background: #e3262f; }
.pv-swiss b { left: 40%; top: 4px; font: 800 30px/1 Helvetica, Arial, sans-serif; color: #111; letter-spacing: -1px; }
.pv-swiss u { left: 40%; right: 10px; bottom: 9px; height: 2px; background: #111; box-shadow: 0 -5px 0 #111; }
/* 에디토리얼 매거진 */
.pv-editorial { background: #f4efe6; color: #1b1b1b; }
.pv-editorial b { left: 8px; top: 4px; font: 400 25px/1 Georgia, 'Times New Roman', serif; font-style: italic; }
.pv-editorial .rule { left: 8px; right: 8px; top: 34px; height: 1px; background: #1b1b1b; }
.pv-editorial .col { left: 8px; width: 40%; top: 40px; bottom: 6px; background: repeating-linear-gradient(#8a857c 0 2px, transparent 2px 5px); }
.pv-editorial .col.r { left: auto; right: 8px; }
/* 오로라 그라디언트 */
.pv-aurora { background: #0b0d1f; }
.pv-aurora .mesh { inset: -30%; background: radial-gradient(38% 46% at 32% 42%, #7b5cff, transparent 70%), radial-gradient(38% 46% at 68% 58%, #20d6c7, transparent 70%), radial-gradient(32% 40% at 60% 24%, #ff5fb0, transparent 70%); filter: blur(5px); }
.pv-aurora u { left: 12px; top: 26px; width: 44%; height: 4px; border-radius: 2px; background: #fff; }
/* Y2K 크롬 */
.pv-y2k { background: #ffd1ec; }
.pv-y2k b { left: 0; right: 0; top: 13px; text-align: center; font: 900 26px/1 'Arial Black', Arial, sans-serif; color: transparent; background: linear-gradient(180deg, #fff 0%, #a3abbb 42%, #fefefe 50%, #5d6577 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0.6px #4a5060; }
.pv-y2k .star { right: 10px; top: 6px; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
/* 사이버펑크 HUD */
.pv-cyber { background: #05070a; }
.pv-cyber .frame { left: 10px; right: 10px; top: 8px; bottom: 8px; border: 1px solid #19f0ff; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); background: repeating-linear-gradient(0deg, rgba(25, 240, 255, 0.12) 0 1px, transparent 1px 7px); box-shadow: inset 0 0 8px rgba(25, 240, 255, 0.35); }
.pv-cyber .frame b { left: 9px; top: 5px; font: 600 9px/1 ui-monospace, Consolas, monospace; color: #19f0ff; letter-spacing: 0.08em; }
.pv-cyber u { left: 20px; bottom: 16px; width: 32%; height: 3px; background: #ff2bd6; }
/* 바우하우스 */
.pv-bauhaus { background: #f2ead8; }
.pv-bauhaus .c { left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: #e1392b; }
.pv-bauhaus .s { left: 42%; top: 14px; width: 26px; height: 26px; background: #2350a8; }
.pv-bauhaus .t { right: 8px; top: 8px; width: 30px; height: 28px; background: #f2c230; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pv-bauhaus .bar { left: 8px; right: 8px; bottom: 8px; height: 6px; background: #111; }
/* 픽셀 아트 */
.pv-pixel { background: #5c94fc; }
.pv-pixel .ground { left: 0; right: 0; bottom: 0; height: 12px; background: #c84c0c; box-shadow: inset 0 3px 0 #f8b878; }
.pv-pixel .px { left: calc(50% - 14px); top: 12px; width: 4px; height: 4px; }
/* 예능 자막 */
.pv-variety { background: #7d8f9e; }
.pv-variety b { left: 0; right: 0; bottom: 8px; text-align: center; font: 900 22px/1 'Pretendard Variable', Pretendard, sans-serif; color: #fff; letter-spacing: -0.04em; text-shadow: 2px 0 #111, -2px 0 #111, 0 2px #111, 0 -2px #111, 2px 2px #111, -2px -2px #111, 2px -2px #111, -2px 2px #111, 0 4px 0 #111; }
.pv-variety b em { font-style: normal; color: #ffe14d; }
/* 다크 시네마틱 */
.pv-cinema { background: radial-gradient(45% 75% at 64% 30%, rgba(232, 228, 218, 0.32), transparent 70%), #08090b; }
.pv-cinema .obj { left: calc(64% - 11px); top: 16px; width: 22px; height: 22px; border-radius: 50%; background: #141518; box-shadow: inset 3px -2px 0 rgba(200, 161, 90, 0.85); }
.pv-cinema b { left: 9px; bottom: 7px; font: 400 9px/1 Georgia, serif; letter-spacing: 0.32em; color: #e8e4da; }

/* ── 주제·글자, 참고, 내보낼 곳 ── */
.pe-body { padding: 12px; }
.pe-lab { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--pe-strong); }
.pe-lab small { font-size: 11.5px; font-weight: 400; color: var(--pe-dim); }
.pe-field + .pe-lab { margin-top: 12px; }
.pe-field {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 6px;
  background: #0f1013; border: 1px solid var(--pe-rule); color: var(--pe-strong); outline: none;
}
.pe-field:focus { border-color: var(--pe-sel); }
.pe-field::placeholder { color: #7b818b; }
.pe-seg { display: flex; gap: 1px; margin-top: 12px; border: 1px solid var(--pe-rule); border-radius: 6px; overflow: hidden; background: var(--pe-rule); }
.pe-body > .pe-seg:first-child { margin-top: 0; }
.pe-seg button { flex: 1; min-height: 34px; padding: 4px 6px; background: #0f1013; color: var(--pe-dim); font-size: 13px; }
.pe-seg button:hover { color: var(--pe-strong); }
.pe-seg button[aria-pressed='true'] { background: #1c2333; color: var(--pe-strong); box-shadow: inset 0 -2px var(--pe-sel); }
.pe-seg.tall button { display: flex; flex-direction: column; align-items: center; line-height: 1.3; padding: 8px 6px; }
.pe-seg.tall small { font-size: 11.5px; color: var(--pe-dim); }
.pe-note { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--pe-dim); }

/* 뺄 것: 3칸 격자. 켜면 = 잘라 낸 것(취소선), 양식에 필요하면 = 못 끔 */
.pe-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pe-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 42px; padding: 6px; background: var(--pe-panel); color: var(--pe-dim); font-size: 13px; }
.pe-chip:hover { color: var(--pe-strong); background: #1f2126; }
.pe-chip small { display: none; }
.pe-chip[aria-pressed='true'] { color: #f1b2aa; background: #261a1b; text-decoration: line-through; text-decoration-color: #e58f84; text-decoration-thickness: 1.5px; }
.pe-chip.pe-need { color: #6c717b; cursor: not-allowed; background: var(--pe-panel); }
.pe-chip.pe-need small { display: block; font-size: 10.5px; color: #8fb4ff; text-decoration: none; }

/* ── 오른쪽: 모니터 + 타임라인 (왼쪽 높이에 맞춤) ── */
/* 11/28 사용자 "왼쪽과 오른쪽 세로 길이 맞추고, 프롬프트가 길어지면 스크롤": 오른쪽 = 왼쪽 높이에 맞춰 늘어나고(따라 내려오기 없앰), 모니터 줄 목록이 남는 높이를 다 차지하며 넘치면 그 안에서만 스크롤 */
.pe-right { display: flex; flex-direction: column; }
.pe-stick { flex: 1; display: flex; flex-direction: column; gap: var(--dw); background: var(--dc); }
.pe-mon { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pe-lines {
  list-style: none; flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 10px 0 14px; background: #121317;
  font-size: 13.5px; line-height: 1.6; overscroll-behavior: contain;
}
.pe-ln { display: grid; grid-template-columns: 40px 1fr; padding-right: 16px; border-left: 3px solid transparent; }
.pe-ln.t-v1, .pe-ln.t-v2, .pe-ln.t-v3, .pe-ln.t-a1, .pe-ln.t-a2, .pe-ln.t-a3 { border-left-color: var(--lab); }
.pe-ln.gap { min-height: 10px; }
.pe-ln.gap .pe-no { visibility: hidden; }
.pe-no { padding-right: 12px; text-align: right; font-size: 11.5px; line-height: 23px; color: #5f6570; font-variant-numeric: tabular-nums; user-select: none; }
.pe-tx { white-space: pre-wrap; overflow-wrap: anywhere; word-break: keep-all; }
.pe-ln.head .pe-tx { color: var(--pe-strong); font-weight: 700; padding-top: 2px; }
.pe-ln.on, .pe-ln:hover { background: rgba(255, 255, 255, 0.04); }
.pe-ln.hl { animation: pe-hl 1.4s ease-out; }
@keyframes pe-hl { from { background: rgba(79, 141, 255, 0.26); } to { background: transparent; } }
.pe-foot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--pe-rule); }
.pe-foot p { font-size: 12.5px; color: var(--pe-dim); }
.pe-export {
  height: 40px; padding: 0 20px; border-radius: 6px; background: var(--pe-sel); color: #fff; font-weight: 700; font-size: 14px;
  transition: background 0.15s;
}
.pe-export:hover { background: #3f7ef2; }
.pe-export.pe-done { background: #3a9a5c; }

/* 타임라인: 가로 = 프롬프트 줄 순서 */
.pe-tlbox { position: relative; padding-bottom: 8px; }
.pe-rulerrow { display: flex; height: 22px; border-bottom: 1px solid var(--pe-rule); }
.pe-th { flex: 0 0 var(--th); display: flex; align-items: center; gap: 6px; padding-left: 10px; font-size: 11.5px; color: var(--pe-dim); border-right: 1px solid var(--pe-rule); background: var(--pe-head); }
.pe-th b { font-size: 11px; font-weight: 700; color: var(--pe-strong); }
.pe-ruler { position: relative; flex: 1; }
.pe-ruler i { position: absolute; bottom: 0; width: 1px; height: 4px; background: #4a4f58; }
.pe-ruler i.big { height: 8px; background: #6d737d; }
.pe-ruler b { position: absolute; left: 3px; bottom: 6px; font-size: 10px; font-weight: 400; color: var(--pe-dim); font-variant-numeric: tabular-nums; }
.pe-render { height: 3px; margin-left: var(--th); }
.pe-render.pe-dirty { background: #c8463c; }
.pe-render.pe-done { background: #3fae5a; }
.pe-track { display: flex; height: 28px; border-bottom: 1px solid #23262d; }
.pe-track.audio-top { border-top: 2px solid var(--pe-rule); }
.pe-lane { position: relative; flex: 1; }
.pe-clip {
  position: absolute; top: 3px; bottom: 3px; min-width: 4px; padding: 0 5px; border-radius: 3px;
  background: var(--lab); color: #101114; font-size: 10.5px; font-weight: 600; line-height: 22px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 -6px rgba(0, 0, 0, 0.12);
}
.pe-clip:hover, .pe-clip.hl { box-shadow: inset 0 0 0 1.5px #fff; }
.pe-play {
  position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: var(--pe-sel); pointer-events: none;
  transition: left 0.18s ease-out;
}
.pe-play::before { content: ''; position: absolute; top: 0; left: -5px; width: 11px; height: 12px; background: var(--pe-sel); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }

/* ── 내보내기 인코딩 (11/28 A안): 재생 헤드가 쓸고 지나간 자리만 렌더 막대 초록(--rp), 지나간 줄 번호도 초록 ── */
.pe-encoding .pe-play { transition: none; }
.pe-encoding .pe-render.pe-dirty { background: linear-gradient(90deg, #3fae5a var(--rp, 0%), #c8463c 0); }
.pe-ln.pe-pass .pe-no { color: #3fae5a; }
.pe-ln.pe-cur { background: rgba(79, 141, 255, 0.22); }
/* 인코딩 창 = 모니터 위(이름 줄과 내보내기 줄은 안 가림) */
.pe-mon { position: relative; }
.pe-enc { position: absolute; left: 0; right: 0; top: 42px; display: grid; place-items: start center; padding: 16px; background: rgba(8, 9, 11, 0.45); transition: opacity 0.26s; }
.pe-enc[hidden] { display: none; }
.pe-enc.out { opacity: 0; }
.pe-enc-box { width: min(330px, 100%); padding: 14px 16px 12px; border-radius: 8px; background: #23252b; border: 1px solid #3d4049; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); font-size: 12.5px; color: var(--pe-dim); }
.pe-enc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pe-enc-h b { font-size: 14.5px; font-weight: 700; color: var(--pe-strong); }
.pe-enc.ok .pe-enc-h b::before { content: '✓ '; color: #3fae5a; }
.pe-enc-pct { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--pe-strong); }
.pe-enc-file { margin-top: 3px; font: 12px/1.4 ui-monospace, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-enc-bar { height: 6px; margin: 11px 0 9px; border-radius: 3px; background: #111215; overflow: hidden; }
.pe-enc-bar i { display: block; width: 0; height: 100%; background: var(--pe-sel); }
.pe-enc.ok .pe-enc-bar i { background: #3fae5a; }
.pe-enc-now { min-height: 19px; color: var(--pe-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-enc-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-variant-numeric: tabular-nums; }
.pe-export:disabled { cursor: progress; background: #3d5f9e; }

@media (hover: none) { #pe-key { display: none; } }   /* 휴대폰엔 단축키 안내 없음 */
@media (prefers-reduced-motion: reduce) { .pe-ln.hl { animation: none; background: rgba(79, 141, 255, 0.18); } .pe-play { transition: none; } .pe-item { transition: none; } }

/* 좁은 화면: 고르기 → 모니터 → 타임라인 순서로 쌓기 (격자는 4·4·3칸 그대로 — 빈칸이 안 생기게) */
@media (max-width: 900px) {
  .pe { grid-template-columns: 1fr; }
  .pe-mon { flex: none; }
  .pe-lines { flex: none; height: 380px; }   /* 쌓이면 왼쪽 높이가 없으니 고정 높이 */
}
@media (max-width: 560px) {
  .pe { --th: 54px; }
  .pe-item { padding: 5px 5px 7px; gap: 5px; }
  .pe-item > b { font-size: 11.5px; }
  .pe-item > small { font-size: 10px; }
  .pe-thumb { height: 44px; }
  .pe-pv { height: 50px; }
  .pv-brutal .box { display: none; }   /* 좁은 칸에선 링크 글자와 겹침 */
  .pe-tab small { display: none; }
  .pe-th { padding-left: 7px; font-size: 0; gap: 0; }   /* 좁으면 V1·A1 같은 이름만 */
  .pe-th b { font-size: 11px; }
}
