#tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.tab { flex: 1; font-size: 12px; white-space: nowrap; padding-left: 2px; padding-right: 2px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--dim); padding: 10px 0; cursor: pointer; font: inherit; }
.tab.on { color: var(--text); border-bottom-color: var(--accent); }

.panel { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.panel h4 { margin: 8px 0 0; font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.hint { color: var(--dim); font-size: 12px; }
.hint.pad { padding: 16px; }
.btnrow { display: flex; gap: 6px; flex-wrap: wrap; }
.btnrow.tight { gap: 4px; }

.layerlist { display: flex; flex-direction: column; gap: 4px; }
.litem { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--panel2); border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.litem.on { border-color: var(--accent); }
.ltype { width: 20px; text-align: center; color: var(--accent2); font-weight: 700; }
.lname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.slotgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot { background: var(--panel2); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.slotimg { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; background: #12131a; border-radius: 6px; }
.slotimg img { max-width: 100%; max-height: 100%; }
.slotname { font-size: 12px; text-align: center; }
.trow { display: flex; align-items: center; gap: 4px; }
.trow select { padding: 2px; font-size: 12px; }
.ticon { width: 22px; height: 22px; }
.tlab { width: 28px; font-size: 12px; }
.tnum { width: 18px; text-align: right; color: var(--dim); font-size: 12px; }
.tthumb { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; flex: none; }
.tthumb.empty { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.slotsel { width: 100%; font-size: 12px; }

.insp-title { margin: 0; padding: 12px; font-size: 13px; border-bottom: 1px solid var(--line); }
.sec { border-bottom: 1px solid var(--line); }
.sec > summary { cursor: pointer; padding: 10px 12px; font-weight: 600; color: var(--dim); }
.sec[open] > summary { color: var(--text); }
.sec > :not(summary) { margin: 0 12px 8px; }
.sec > .btnrow { margin-bottom: 10px; }
.frow { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px; }
.flabel { color: var(--dim); font-size: 12px; }

.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.sw:hover { border-color: var(--accent2); }

.srow { display: flex; gap: 6px; align-items: center; min-width: 0; }
.srow input[type=range] { flex: 1; min-width: 0; }
.srow .snum { width: 68px; flex: none; }
.srow input[type=color] { flex: 1; }

.bgpanel { display: flex; flex-direction: column; gap: 8px; }
.bggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bgthumb { position: relative; border: 2px solid transparent; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: #12131a; }
.bgthumb.on { border-color: var(--accent2); }
.bgthumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.bgdel { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; cursor: pointer; }

.slotcustom { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.slotcustom select { width: 100%; font-size: 12px; }
.slotcol { height: 26px; }
.tcol { width: 64px; height: 28px; flex: none; }

.th-panel { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.th-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.th-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; background: var(--panel2); border: 2px solid transparent; border-radius: 10px; cursor: pointer; color: var(--text); font: inherit; }
.th-card:hover { border-color: var(--line); }
.th-card.on { border-color: var(--accent2); }
.th-title { font-size: 22px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.th-btns { display: flex; gap: 4px; }
.th-btn { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; border: 1px solid rgba(255,255,255,.6); }
.th-name { font-size: 12px; color: var(--dim); }

.fxbox { display: flex; flex-direction: column; gap: 8px; }
.texgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.texthumb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; aspect-ratio: 16 / 10; padding: 0; background: #12131a; border: 2px solid transparent; border-radius: 6px; overflow: hidden; color: var(--dim); cursor: pointer; font: inherit; }
.texthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.texthumb small { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; padding: 1px 0; }
.texthumb.on { border-color: var(--accent2); }
.texthumb.add span { font-size: 20px; }

/* 대기 탭 */
.seg { display: flex; gap: 4px; background: var(--panel2); padding: 4px; border-radius: 10px; }
.seg button { flex: 1; min-height: 40px; background: none; border: 0; border-radius: 8px; color: var(--dim); font: inherit; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.lbody { display: flex; flex-direction: column; gap: 8px; }
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.chip { position: relative; aspect-ratio: 1; min-height: 44px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; padding: 0; }
.chip small { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.artprev { display: flex; justify-content: center; padding: 8px; background: repeating-conic-gradient(#2a2c3a 0 25%, #1c1e29 0 50%) 0 0 / 16px 16px; border-radius: 8px; }
.artprev img { max-height: 120px; max-width: 100%; object-fit: contain; }
