/* 쇼케이스 글 화면(PLAN 261010 W4, showcase-view.js). 색은 ui-kit 의 --ui-* 만 쓴다. 원장 261012 미리보기 승인 모양 그대로. */

.sv-lead-box { margin: 10px 0 0; }
.sv-lead { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ui-muted); white-space: pre-line; overflow-wrap: anywhere; }
.sv-lead.is-clamped,
.sv-prompt.is-clamped .sv-text { overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.sv-lead.is-clamped { max-height: 4.95em; }

.sv-expand { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--ui-muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.sv-expand[hidden] { display: none; }
.sv-expand:hover { color: var(--ui-text); }
.sv-expand i { font-size: .7rem; transition: transform .2s; }
.sv-expand.is-open i,
.sv-prompt:not(.is-clamped) .sv-expand i { transform: rotate(180deg); }

.sv-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.sv-fact { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--ui-border); background: var(--ui-surface); color: var(--ui-muted); font-size: .78rem; font-weight: 600; text-decoration: none; }
.sv-fact i { color: var(--ui-soft); font-size: .74rem; }
.sv-fact.is-tag { color: var(--ui-soft); font-weight: 500; }
a.sv-fact:hover { border-color: var(--ui-border-2); color: var(--ui-text); }

.sv-pending { margin: 22px 0 0; }

/* 실행 화면: 창 머리(파일 이름·크기, 버튼) + 액자 */
.sv-stage { margin: 22px 0 0; border: 1px solid var(--ui-border-2); border-radius: 14px; overflow: hidden; background: var(--ui-surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .10); }
.sv-stage-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--ui-border); background: var(--ui-surface-2); }
.sv-stage-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font-size: .8rem; color: var(--ui-muted); }
.sv-stage-name i { color: var(--ui-soft); }
.sv-stage-name b { font-weight: 600; color: var(--ui-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-stage-name span { color: var(--ui-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-acts { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.sv-act { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ui-muted); font: inherit; font-size: .8rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.sv-act:hover,
.sv-act[aria-expanded="true"] { background: var(--ui-border); color: var(--ui-text); }
.sv-act i { font-size: .82rem; }
.sv-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--ui-border-2); }
.sv-frame { display: block; width: 100%; height: min(78vh, 760px); border: 0; background: #fff; }
.sv-stage:fullscreen { border-radius: 0; }
.sv-stage:fullscreen .sv-frame { height: calc(100vh - 46px); }
/* 영상 자료(공식 글): 소개 영상 1280×800 */
.sv-video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
.sv-stage:fullscreen .sv-video { height: calc(100vh - 46px); aspect-ratio: auto; object-fit: contain; }
/* 시연 영상 칸(YouTube·Google Drive, PLAN 261013) */
.sv-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.sv-menu { width: 300px; }
.sv-menu-note { margin: 4px 4px 2px; padding: 8px 10px; border-radius: 8px; background: var(--ui-warn-bg); color: var(--ui-warn); font-size: .76rem; line-height: 1.5; }
.sv-blocked { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 20px; text-align: center; color: var(--ui-muted); font-size: .88rem; }
.sv-blocked > i { font-size: 1.4rem; color: var(--ui-soft); }
.sv-blocked p { margin: 0; }
.sv-link-broken { margin: 12px; }

.sv-section { margin: 44px 0 0; }
.sv-section h2 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; color: var(--ui-text); }

/* 제작 방법: 번호를 세로선으로 이은 프롬프트, 스킬 파일 카드 */
.sv-made { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .88rem; color: var(--ui-muted); }
.sv-made b { color: var(--ui-text); }
.sv-steps { margin: 0; padding: 0; list-style: none; }
.sv-steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }
.sv-steps li:not(:last-child)::before { content: ''; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--ui-border-2); }
.sv-num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ui-border-2); background: var(--ui-surface); color: var(--ui-muted); font-size: .78rem; font-weight: 700; }
.sv-prompt { position: relative; min-width: 0; padding: 12px 44px 12px 14px; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); font-size: .9rem; line-height: 1.65; color: var(--ui-text); }
.sv-text { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.sv-prompt.is-clamped .sv-text { max-height: 8.25em; }
.sv-copy { position: absolute; top: 7px; right: 7px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ui-soft); cursor: pointer; }
.sv-copy:hover { background: var(--ui-border); color: var(--ui-text); }
.sv-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 40px); height: 38px; margin: 0 0 14px 40px; border: 1px dashed var(--ui-border-2); border-radius: 10px; background: transparent; color: var(--ui-muted); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.sv-more[hidden] { display: none; }
.sv-more:hover { color: var(--ui-text); border-color: var(--ui-soft); }
.sv-file { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); }
.sv-file-id { flex: 1; min-width: 0; }
.sv-file-id b { display: block; font-size: .88rem; color: var(--ui-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-file-id span { font-size: .76rem; color: var(--ui-soft); }
.sv-skill-text { margin: 8px 0 0; padding: 12px 14px; max-height: 360px; overflow: auto; border: 1px solid var(--ui-border); border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem; line-height: 1.6; color: var(--ui-muted); white-space: pre-wrap; }

.sv-warn { margin: 40px 0 0; }

/* 보류·내림 안내(showcase-view.js stateNoteHtml). 관리자 안내는 오른쪽에 처리 단추 */
.sv-state { margin: 16px 0; }
.sv-state-admin { align-items: center; }
.sv-state-admin > span { flex: 1; }

/* 자료 신고 창·내리기 창(showcase-report.js, showcase-admin.js) */
#showcase-report .ui-modal-lead + .ui-modal-field { margin-top: 14px; }
#showcase-report textarea.ui-modal-input,
#showcase-remove textarea.ui-modal-input { height: auto; min-height: 4.8em; padding: 9px 12px; resize: vertical; font-family: inherit; line-height: 1.5; }
#showcase-report .sv-report-error { color: var(--ui-danger); }

@media (max-width: 560px) {
    .sv-act span { display: none; }
    .sv-act { padding: 0 9px; }
    .sv-stage-name span { display: none; }
    .sv-frame { height: 70vh; }
    .sv-menu { width: 260px; }
}
