/* 프로젝트 폴더 · 빠른 꺼내기 · 단계 연습 · 포트폴리오 PT · 회사 키워드 */

/* 폴더 카드 (경험 정리 목록) */
.folder-card .card-head { align-items: center; }
.folder-open { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.folder-open h3 { margin: 0; font-size: 18px; }
.folder-open .exp-meta { display: block; margin-top: 2px; }
.folder-thumb { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--grey-100); }
.folder-thumb.empty { display: grid; place-items: center; background: var(--accent-weak); color: var(--accent-ink); font-size: 24px; font-weight: 800; }
.slot-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.slot-chips li { padding: 10px 12px; border-radius: 12px; background: var(--grey-50); min-width: 0; }
.slot-chips li b { display: block; font-size: 12px; color: var(--muted); }
.slot-chips li span { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-chips li.empty span { color: var(--grey-400); font-weight: 500; }
.slot-chips li.key2 { background: #fff5ee; }
.slot-chips li.key2 b { color: #c2410c; }

/* 폴더 화면 */
.folder-shot { overflow: hidden; }
.folder-image { display: block; width: 100%; max-height: 520px; object-fit: contain; background: var(--grey-50); }
.folder-shot-actions { display: flex; gap: 8px; padding: 14px 20px; }
.folder-shot-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 24px; text-align: center; }
.folder-shot-empty b { font-size: 17px; }
.folder-shot-empty span { max-width: 460px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.folder-shot-empty .upload { margin-top: 6px; }
.folder-pf { border-top: 1px solid var(--line); }
.folder-pf summary { padding: 14px 20px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.folder-pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 0 20px 18px; }
.folder-pf-grid button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--grey-100); cursor: pointer; }
.folder-pf-grid button:hover { border-color: var(--accent); }
.folder-pf-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.folder-slots { margin-top: 12px; padding: 8px 0; }
.fslot { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 20px; padding: 18px 24px; }
.fslot + .fslot { border-top: 1px solid var(--line); }
.fslot-head { grid-row: span 2; }
.fslot-head b { display: block; font-size: 16px; }
.fslot-head .hint { display: block; margin-top: 4px; font-size: 13px; line-height: 1.55; }
.fslot-badge { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: var(--accent-weak); color: #c2410c; font-size: 11px; font-weight: 700; }
.fslot.key2 { background: #fffaf6; }
.fslot-cue { display: flex; align-items: center; gap: 10px; }
.fslot-cue span { flex: none; font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.fslot-cue .input { flex: 1; font-weight: 600; }
.prep-page .fslot-text, .fslot-text { font-size: 14px; color: var(--ink-2); min-height: 64px; height: 64px; resize: vertical; }
.fslot-note { grid-column: 2; margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff5ee; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.folder-go { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 22px 24px; }
.folder-go b { display: block; font-size: 16px; }
.folder-go span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.folder-go .btn { flex: none; }

/* 단계 고르기 */
.level-dialog { max-width: 440px; }
.level-list { display: grid; gap: 8px; margin: 18px 0 4px; }
.level-opt { display: block; padding: 16px 18px; border: 1.5px solid var(--grey-200); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.level-opt:hover:not([disabled]) { border-color: var(--accent); background: #fffaf6; }
.level-opt b { display: block; font-size: 16px; }
.level-opt span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.level-opt[disabled] { opacity: .45; cursor: not-allowed; }

/* 면접 화면의 보조: 포트폴리오 화면 + 칸 키워드 */
.stage-aids { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px; margin-top: 22px; }
.stage-shot { max-width: min(520px, 90vw); max-height: 30vh; border-radius: 14px; object-fit: contain; background: rgba(255, 255, 255, .06); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.stage-cues { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; margin: 0; padding: 0; list-style: none; }
.stage-cues li { padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 14px; }
.stage-cues b { color: #ff9a6b; font-weight: 700; }
.stage-cues span { margin-left: 8px; color: rgba(255, 255, 255, .9); font-weight: 600; }

/* 빠른 꺼내기 */
.drill-card { padding: 28px 32px 32px; }
.drill-top { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 700; color: var(--muted); }
.drill-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--grey-100); overflow: hidden; }
.drill-bar i { display: block; width: 100%; height: 100%; background: var(--accent); }
.drill-q { margin: 26px 0 28px; font-size: 28px; line-height: 1.45; letter-spacing: -0.03em; }
.drill-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.drill-folder { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 2px solid var(--grey-200); border-radius: 16px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.drill-folder:hover:not([disabled]) { border-color: var(--accent); transform: translateY(-2px); }
.drill-folder img, .drill-folder > span { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; object-fit: cover; background: var(--accent-weak); color: var(--accent-ink); display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.drill-folder b { font-size: 15px; line-height: 1.4; }
.drill-folder.right { border-color: var(--good); background: var(--good-weak); }
.drill-folder.other { border-color: var(--accent); background: #fff5ee; }
.drill-note { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.drill-result { padding: 28px 32px; }
.drill-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.drill-stats div { padding: 18px; border-radius: 16px; background: var(--grey-50); text-align: center; }
.drill-stats b { display: block; font-size: 30px; letter-spacing: -0.03em; }
.drill-stats span { font-size: 13px; color: var(--muted); }
.drill-list { margin: 20px 0 0; padding: 0; list-style: none; }
.drill-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.drill-list li span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drill-list li em { font-style: normal; text-align: right; font-weight: 700; color: var(--good); }
.drill-list li.slow em { color: var(--accent-ink); }
.drill-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* 포트폴리오 PT */
.pt-setup, .pt-empty { padding: 24px 28px; }
.pt-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pt-empty span { font-size: 14px; color: var(--muted); }
.pt-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-pages img { width: 84px; height: 63px; object-fit: cover; border-radius: 8px; background: var(--grey-100); }
.pt-pages span { display: grid; place-items: center; width: 84px; height: 63px; border-radius: 8px; background: var(--grey-100); font-weight: 700; color: var(--muted); }
.pt-row { display: flex; align-items: flex-end; gap: 20px; margin-top: 20px; }
.pt-row .field { width: 140px; margin: 0; }
.pt-row .hint { margin: 0 0 6px; line-height: 1.6; }
.pt-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.pt-summary { padding: 24px 28px; }
.pt-total b { font-size: 44px; letter-spacing: -0.03em; }
.pt-total span { margin-left: 12px; font-size: 15px; color: var(--muted); }
.pt-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin-top: 18px; }
.pt-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.pt-bar i { display: block; width: 100%; max-width: 36px; border-radius: 6px 6px 2px 2px; background: var(--grey-300); }
.pt-bar.long i { background: var(--accent); }
.pt-bar.short i { background: var(--grey-200); }
.pt-bar span { margin-top: 6px; font-size: 11px; color: var(--muted); }
.stage[data-mode='pt'] { grid-template-rows: auto minmax(0, 1fr) auto; }
.pt-stage { display: grid; place-items: center; min-height: 0; padding: 18px 0; }
.pt-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.pt-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pt-page { font-size: 15px; color: rgba(255, 255, 255, .7); }
.pt-page b { color: #fff; }
#ptClock { font-variant-numeric: tabular-nums; font-weight: 700; }
#ptClock small { font-weight: 500; opacity: .6; }

/* 회사 키워드 */
.company-card { margin-top: 12px; padding: 22px 24px; }
.company-head h2 { margin: 0; font-size: 18px; }
.company-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.company-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ck { padding: 8px 13px; border: 1.5px solid var(--grey-200); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.ck:hover { border-color: var(--accent); }
.ck.on { border-color: var(--accent); background: var(--accent-weak); color: #b73509; }
.company-add { display: flex; gap: 8px; margin-top: 12px; }
.company-add .input { flex: 1; min-width: 0; }
.company-jd { margin-top: 12px; }
.company-jd summary { padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; }
.company-jd summary::-webkit-details-marker { display: none; }
.company-jd summary::after { content: ' ＋'; color: var(--grey-400); }
.company-jd[open] summary::after { content: ' −'; }
.company-jd textarea { width: 100%; margin-top: 8px; }
.company-cands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.company-cands .hint { margin-right: 4px; }
.script-company { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* 질문 준비의 연습 도구 */
.prep-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.prep-tool { display: block; padding: 18px 22px; border: 0; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.prep-tool:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.prep-tool b { display: block; font-size: 16px; }
.prep-tool span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* 문장 다듬기 (접힘) */
.script-editor.polish > summary { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; cursor: pointer; list-style: none; padding: 2px 0; }
.script-editor.polish > summary::-webkit-details-marker { display: none; }
.script-editor.polish > summary b { font-size: 15px; }
.script-editor.polish > summary .optional { font-size: 12px; color: var(--muted); }
.script-editor.polish > summary::after { content: '+'; margin-left: auto; color: var(--grey-400); }
.script-editor.polish[open] > summary::after { content: '−'; }
.script-editor.polish[open] > summary { margin-bottom: 14px; }

/* 리포트: 말하기 점검 */
.speaking-notes { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.speaking-notes li { padding: 10px 12px; border-radius: 10px; background: #fff5ee; font-size: 13px; line-height: 1.6; color: var(--ink-2); }

@media (max-width: 760px) {
  .fslot { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; }
  .fslot-head { grid-row: auto; }
  .fslot-note { grid-column: 1; }
  .folder-go { flex-direction: column; align-items: stretch; }
  .prep-tools { grid-template-columns: minmax(0, 1fr); }
  .drill-card, .drill-result { padding: 22px 20px; }
  .drill-q { font-size: 22px; }
  .drill-stats b { font-size: 24px; }
  .pt-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 보조가 있을 때는 질문과 모키를 줄여 한 화면에 들어가게 */
.stage-center:has(.stage-aids) .stage-q { font-size: clamp(24px, 2.6vw, 36px); }
.stage-center:has(.stage-aids) .iv.iv3d { width: 132px; height: 132px; }
.stage-center:has(.stage-aids) .orb-wrap { transform: scale(.6); }
.stage-aids { align-items: center; gap: 22px; margin-top: 18px; }
.stage-shot { max-height: 34vh; max-width: min(460px, 46vw); }
.stage-shot + .stage-cues { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; max-width: 340px; }
.pt-stage { overflow: hidden; }
.pt-stage img { max-height: calc(100vh - 230px); }
.pt-bottom { padding-top: 10px; }

/* 면접 종료: 모키가 눈을 감고 고개를 숙여 인사한 뒤, 천천히 둥실 */
.end-moki { position: relative; width: 190px; height: 190px; margin: 0 auto 26px; animation: emIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.em-glow { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 31, .28), transparent 70%); }
.em-bow { position: absolute; inset: 0; transform-origin: 50% 88%; animation: emBow 1.9s cubic-bezier(.45, 0, .25, 1) .55s both, emFloat 3.2s ease-in-out 2.5s infinite; }
.em-bow img { display: block; width: 100%; height: 100%; object-fit: contain; }
.em-eyes { position: absolute; left: 50%; top: 44%; width: 21%; height: 20%; translate: -50% -50%; display: flex; justify-content: space-between; }
.em-eyes i { width: 27%; height: 100%; border-radius: 999px; background: linear-gradient(180deg, #ff7b45, #ff5a1f 60%, #ef4a10); transform-origin: 50% 70%; animation: emEyes 1.9s ease .55s both; }
.em-shadow { position: absolute; left: 22%; right: 22%; bottom: -6px; height: 14px; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(6px); animation: emShadow 1.9s cubic-bezier(.45, 0, .25, 1) .55s both; }
@keyframes emIn { from { opacity: 0; transform: translateY(16px) scale(.92); } }
/* 숙였다가(0.4초) 잠깐 머물고(0.5초) 천천히 돌아온다 */
@keyframes emBow {
  0% { transform: none; }
  25% { transform: translateY(12px) rotate(-3deg) scale(1.02, .9); }
  55% { transform: translateY(12px) rotate(-3deg) scale(1.02, .9); }
  80% { transform: translateY(-3px) scale(.99, 1.02); }
  100% { transform: none; }
}
@keyframes emEyes { 0%, 18% { transform: none; } 26%, 56% { transform: scaleY(.14); } 66%, 100% { transform: none; } }
@keyframes emShadow { 0%, 100% { transform: none; opacity: 1; } 25%, 55% { transform: scaleX(1.12); opacity: 1.2; } }
@keyframes emFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 폴더 카드 (접힘: 썸네일 · 제목 · 키워드 / 펼침: 칸별 내용) */
.folder-card { padding: 0; overflow: hidden; }
.folder-fold > summary { list-style: none; }
.folder-fold > summary::-webkit-details-marker { display: none; }
.folder-sum { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; transition: background .15s; }
.folder-sum:hover { background: var(--grey-50); }
.folder-sum .folder-thumb { width: 52px; height: 52px; border-radius: 12px; }
.folder-thumb.is-default { background: #fff; box-shadow: inset 0 0 0 1px var(--grey-100); object-fit: contain; padding: 4px; }
.folder-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.folder-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.folder-title h3 { margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-count { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.folder-kws { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.folder-kws span { padding: 2px 8px; border-radius: 6px; background: var(--accent-weak); color: #c2410c; font-size: 12px; font-weight: 600; }
.folder-chev { flex: none; color: var(--grey-400); transition: transform .2s; }
.folder-chev svg { width: 18px; height: 18px; display: block; }
.folder-fold[open] .folder-chev { transform: rotate(180deg); }
.folder-detail { padding: 2px 18px 16px 84px; }
.slot-rows { margin: 0; display: grid; border-top: 1px solid var(--grey-100); }
.slot-rows > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--grey-100); font-size: 14px; }
.slot-rows dt { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.slot-rows dd { margin: 0; color: var(--ink); line-height: 1.5; }
.slot-rows .empty dd { color: var(--grey-400); }
.slot-rows .is-key dt { color: #c2410c; }
.folder-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
@media (max-width: 640px) {
  .folder-sum { padding: 12px 14px; gap: 12px; }
  .folder-sum .folder-thumb { width: 44px; height: 44px; }
  .folder-detail { padding: 2px 14px 14px; }
}

/* 빈 화면: 상황에 맞는 모키 + 한 줄 설명 + 버튼 하나 */
.moki-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 24px 30px; text-align: center; }
.moki-empty img, .pt-empty img { mix-blend-mode: multiply; margin-bottom: 4px; }
.moki-empty b { font-size: 17px; }
.moki-empty span { font-size: 14px; color: var(--muted); }
.moki-empty .btn { margin-top: 10px; }

/* 설정 · 백업 */
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.backup-actions .btn svg { width: 16px; height: 16px; }
.upload-btn { cursor: pointer; }
/* 회사 키워드는 '회사 · 내 자료' 접힘 안으로: 카드 중첩 없이 */
.prep-materials-body .company-card { margin: 0 12px 20px; padding: 4px 0 24px; border-bottom: 1px solid var(--line, #eceef1); }
.company-card .company-chips:empty { display: none; }
.company-cands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.company-cands .hint { width: 100%; }

/* 설정: AI 분석 연결 */
.api-steps { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; }
.api-steps li { position: relative; padding: 12px 14px 12px 46px; border-radius: 12px; background: var(--grey-50); counter-increment: step; }
.api-steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grey-900); color: #fff; font-size: 12px; font-weight: 700; }
.api-steps b { display: block; font-size: 14px; }
.api-steps span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.key-form .inline { display: flex; gap: 8px; }
.key-form .inline .input { flex: 1; min-width: 0; }
.key-form .check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.key-form .check small { width: 100%; padding-left: 22px; font-size: 12px; font-weight: 500; color: var(--muted); }
.api-facts { display: grid; gap: 0; margin: 16px 0 8px; border-top: 1px solid var(--grey-100); }
.api-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--grey-100); }
.api-facts dt { font-size: 13px; font-weight: 700; color: var(--ink); }
.api-facts dd { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.pending-analyze { border: 1.5px solid var(--accent-weak-hover); }
.pending-analyze.ok { border-color: rgba(3, 178, 108, .35); }
@media (max-width: 640px) { .api-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* 확인 창: 선택지 3개 · 저장 범위 */
.dialog-actions.choice { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.scope-list { display: grid; gap: 8px; margin-top: 12px; }
.scope-list p { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--grey-50); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.scope-list p b { display: block; margin-bottom: 2px; color: var(--ink); }
.scope-list p.hint { background: none; padding: 0 2px; font-size: 13px; }

/* 3초 경험 고르기: 경험이 하나뿐일 때 */
.moki-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* 포트폴리오 PT: 새 연습 · 결과 · 지난 발표 기록 */
.pt-setup-head h2 { margin: 0; font-size: 18px; }
.pt-setup-head p { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
.pt-setup-head p b { color: var(--ink); }
.pt-bar em { margin-bottom: 4px; font-size: 11px; font-style: normal; font-weight: 600; color: var(--muted); }
.pt-history { display: grid; gap: 8px; }
.pt-card summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; }
.pt-card summary::-webkit-details-marker { display: none; }
.pt-card summary > svg { flex: 0 0 auto; color: var(--faint); transition: transform .2s; }
.pt-card[open] summary > svg { transform: rotate(180deg); }
.pt-card-main { flex: 1; min-width: 0; }
.pt-card-main b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.pt-card-main span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-card-verdict { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pt-card-body { padding: 0 22px 20px; }
.pt-result { width: min(760px, 100%); padding: 28px 30px; border-radius: 24px; background: var(--surface); color: var(--ink); text-align: left; }
.pt-result h3 { margin: 22px 0 0; font-size: 15px; }
.pt-result .pt-total { margin-top: 6px; }
.pt-result-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 640px) {
  .pt-card summary { flex-wrap: wrap; padding: 16px 18px; }
  .pt-card-verdict { order: 3; width: 100%; }
  .pt-result { padding: 22px 18px; }
}
.key-form .key-remember { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; row-gap: 2px; align-items: center; width: auto; margin-top: 10px; cursor: pointer; }
.key-form .key-remember input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--accent); }
.key-form .key-remember span { font-size: 14px; font-weight: 600; color: var(--ink); }
.key-form .key-remember small { grid-column: 2; font-size: 12px; color: var(--muted); }
.key-form + .status-line { margin-top: 12px; }
.pt-result .btn { background: var(--grey-100); color: var(--ink); }
.pt-result .btn.accent { background: var(--accent); color: #fff; }
/* PT: 파일 바꾸기 · 지우기, 발표할 페이지 고르기 */
.pt-setup-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.pt-file-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-pick-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 4px 0 8px; }
.pt-pick-head b { font-size: 14px; }
.pt-pick-head b span { margin-left: 4px; font-weight: 600; color: var(--accent-ink); }
.pt-pick-tools { display: flex; gap: 12px; font-size: 13px; }
.pt-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.pt-pick { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--grey-50); cursor: pointer; overflow: hidden; opacity: .45; transition: opacity .15s, border-color .15s; }
.pt-pick img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pt-pick span { position: absolute; left: 4px; top: 4px; min-width: 20px; padding: 1px 5px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 600; }
.pt-pick.on { opacity: 1; border-color: var(--accent); }
.pt-pick.on span { background: var(--accent); }
.pt-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pt-stage { cursor: pointer; }
/* 지난 발표 기록: 장이 많아도 카드 밖으로 넘치지 않게 */
.pt-card, .pt-card-body { min-width: 0; }
.pt-card-body .pt-bars, .pt-result .pt-bars { overflow-x: auto; padding-bottom: 4px; }
.pt-bars .pt-bar { min-width: 14px; }
.pt-card-actions { margin-top: 8px; text-align: right; font-size: 13px; }
.pt-result { max-height: calc(100vh - 120px); overflow-y: auto; }
/* 경험 카드 AI로 다듬기 */
.refine-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--accent-weak); }
.refine-box > div { flex: 1 1 260px; min-width: 0; }
.refine-box b { display: block; font-size: 15px; color: var(--ink); }
.refine-box span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.refine-box .refine-tip { margin-top: 6px; color: var(--accent-ink); font-weight: 600; }
.refine-box.done { background: var(--good-weak); }
.settings-meter { margin: -4px 0 8px; }
