/* ppt.tnvjaos.com 2차 — 내 발표자료 화면 공용 (큰 글자·큰 버튼·고대비, 외부 글꼴 없음) */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #f4f6f9; color: #1a1a1a;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 1rem; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word;
}
a { color: #0b57d0; }
[hidden] { display: none !important; }
:focus-visible { outline: 4px solid #002b80; outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px; z-index: 99; }
.skip:focus { left: 8px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 620px; }
svg.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리 */
.top { background: #fff; border-bottom: 2px solid #d5dbe3; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 64px; flex-wrap: wrap; padding: 4px 0; }
.brand { font-weight: 700; font-size: 1.05rem; color: #1a1a1a; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.menu { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.menu a { display: inline-flex; align-items: center; gap: 6px; min-height: 56px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; color: #0b57d0; font-size: 1rem; }
.menu a:hover { background: #e8f0fe; }
.menu a[aria-current="page"] { background: #0b57d0; color: #fff; }

/* 본문 */
main { padding: 20px 0 48px; }
h1 { font-size: 1.6rem; line-height: 1.35; margin: 8px 0 8px; }
h2 { font-size: 1.3rem; line-height: 1.4; margin: 0 0 12px; }
h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.lead { font-size: 1.05rem; margin: 0 0 16px; color: #2a313a; }
.hint { color: #4a5361; font-size: 1rem; margin: 6px 0 0; }
.panel { background: #fff; border: 2px solid #d5dbe3; border-radius: 14px; padding: 18px; margin: 0 0 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lbl { display: block; font-weight: 700; margin: 14px 0 6px; }
.lbl:first-child { margin-top: 0; }
.inp, textarea.inp, select.inp {
  width: 100%; min-height: 56px; font: inherit; font-size: 1.05rem; color: #1a1a1a;
  border: 2px solid #6b7684; border-radius: 10px; padding: 10px 12px; background: #fff;
}
textarea.inp { min-height: 120px; resize: vertical; line-height: 1.5; }
.inp:focus { border-color: #0b57d0; }
.inp::placeholder { color: #5f6670; opacity: 1; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 8px 0; cursor: pointer; font-size: 1.05rem; }
.check input { width: 30px; height: 30px; flex: none; margin: 2px 0 0; accent-color: #0b57d0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 10px 22px; font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.3;
  border: 3px solid #0b57d0; border-radius: 12px; background: #fff; color: #0b57d0; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: #e8f0fe; }
.btn.primary { background: #0b57d0; color: #fff; }
.btn.primary:hover { background: #0842a0; border-color: #0842a0; }
.btn.danger { border-color: #b3261e; color: #b3261e; }
.btn.danger:hover { background: #fdecea; }
.btn.danger.fill { background: #b3261e; color: #fff; }
.btn.big { min-height: 72px; font-size: 1.25rem; padding: 14px 32px; border-radius: 14px; }
.btn.wide { width: 100%; }
.btn:disabled, .btn:disabled:hover { background: #e4e7eb; color: #4a5361; border-color: #c4cad2; cursor: not-allowed; }
.link-btn { background: none; border: 0; font: inherit; color: #0b57d0; text-decoration: underline; cursor: pointer; min-height: 48px; padding: 8px 4px; }

.notice { background: #fff4e5; border: 3px solid #b35c00; color: #5c2e00; border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-weight: 700; }
.ok-box { background: #e7f4ea; border: 3px solid #1e7b34; color: #124d20; border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-weight: 700; }
.err-box { background: #fdecea; border: 3px solid #b3261e; color: #7a1610; border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-weight: 700; }
.info-box { background: #eef4ff; border: 2px solid #9ab8ef; color: #12305f; border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.info-box ul, .notice ul { margin: 6px 0 0; padding-left: 1.2em; }
.muted { color: #4a5361; }

/* 막대 */
.bar { height: 22px; background: #e4e7eb; border-radius: 11px; overflow: hidden; border: 1px solid #c4cad2; }
.bar > span { display: block; height: 100%; width: 0; background: #0b57d0; transition: width .2s; }
.bar.warn > span { background: #b35c00; }
.spin { width: 28px; height: 28px; border: 4px solid #c9d7f2; border-top-color: #0b57d0; border-radius: 50%; animation: pptc-spin 1s linear infinite; flex: none; }
@keyframes pptc-spin { to { transform: rotate(360deg); } }

/* 올리기 */
.drop { border: 4px dashed #6b8fd6; border-radius: 18px; background: #f5f8ff; padding: 28px 18px; text-align: center; transition: background .15s, border-color .15s; }
.drop.over { background: #dfe9ff; border-color: #0b57d0; }
.drop .big-ic { width: 64px; height: 64px; color: #0b57d0; }
.drop p { margin: 8px 0; font-size: 1.1rem; }
.up-progress { margin-top: 14px; text-align: left; }
.up-progress .row { justify-content: space-between; font-weight: 700; margin-bottom: 6px; }

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card { background: #fff; border: 2px solid #d5dbe3; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card .thumb { aspect-ratio: 16 / 9; background: #1f2329; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card .thumb .wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; text-align: center; font-size: 1rem; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .title { font-size: 1.1rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.card .meta { color: #4a5361; font-size: 1rem; margin: 0; }
.card .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.card .acts .btn { padding: 8px 10px; }
.card .acts .btn.primary { grid-column: 1 / -1; }
.card.failed { border-color: #b3261e; }
.empty { text-align: center; padding: 28px 12px; color: #4a5361; }

/* 상자(대화창) */
dialog.dlg { border: 3px solid #1a1a1a; border-radius: 16px; padding: 22px; max-width: 520px; width: calc(100% - 32px); font-size: 1.05rem; }
dialog.dlg::backdrop { background: rgba(0, 0, 0, .55); }
dialog.dlg h2 { margin-top: 0; }
dialog.dlg .row { justify-content: flex-end; margin-top: 18px; }

/* 쪽 목록(자세히) */
.slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.slide { background: #fff; border: 3px solid #d5dbe3; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.slide.sel { border-color: #0b57d0; box-shadow: 0 0 0 3px #a8c4f5; }
.slide.dragging { opacity: .45; }
.slide.drop-before { box-shadow: -6px 0 0 #0b57d0; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #1f2329; display: block; }
.slide .s-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; }
.slide .s-num { font-weight: 700; font-size: 1.05rem; }
.slide .s-tools { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 8px 8px; }
.slide .s-tools .btn { min-height: 56px; min-width: 56px; padding: 6px 10px; font-size: 1rem; }
.slide .s-pick { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 4px 8px; cursor: pointer; font-weight: 700; }
.slide .s-pick input { width: 28px; height: 28px; accent-color: #0b57d0; }
.slide .notes { font-size: 1rem; color: #3d4652; padding: 0 10px 10px; margin: 0; max-height: 6.2em; overflow: auto; }

.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.chip { min-height: 56px; padding: 8px 16px; border: 2px solid #6b8fd6; background: #f5f8ff; color: #0b3c8c; border-radius: 28px; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.chip:hover { background: #dfe9ff; }
.chip:disabled, .chip:disabled:hover { background: #e4e7eb; color: #4a5361; border-color: #c4cad2; cursor: not-allowed; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-card { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 16px; border: 3px solid #b8c2cf; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 700; font-size: 1.05rem; flex: 1 1 220px; }
.radio-card input { width: 26px; height: 26px; accent-color: #0b57d0; flex: none; }
.radio-card:has(input:checked) { border-color: #0b57d0; background: #eef4ff; }

.job { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.1rem; }
.compare { display: grid; gap: 14px; margin: 12px 0; }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; background: #f8f9fb; border: 2px solid #d5dbe3; border-radius: 12px; padding: 10px; }
.cmp-row h4 { grid-column: 1 / -1; margin: 0; font-size: 1.05rem; }
.cmp-row figure { margin: 0; }
.cmp-row figcaption { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.cmp-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #1f2329; border-radius: 8px; display: block; }
.cmp-row .gone { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: #eceff3; border: 2px dashed #9aa5b3; border-radius: 8px; color: #3d4652; font-weight: 700; text-align: center; padding: 8px; }
.change-list { margin: 8px 0; padding-left: 1.3em; }
.change-list li { margin: 4px 0; }

.tbl-wrap { overflow-x: auto; border: 2px solid #d5dbe3; border-radius: 12px; background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
.tbl th, .tbl td { border-top: 1px solid #d5dbe3; padding: 10px 12px; text-align: left; vertical-align: middle; }
.tbl thead th { background: #eef2f7; border-top: 0; }
.tbl .btn { min-height: 56px; padding: 6px 12px; font-size: 1rem; }
.tbl tr.cur td { background: #eef4ff; }

/* 로그인·가입 */
.auth { max-width: 560px; margin: 0 auto; }
.auth .panel { padding: 24px; }
.auth .btn.big { width: 100%; margin-top: 18px; }
.auth .links { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.auth .links a { display: inline-flex; align-items: center; min-height: 48px; font-size: 1.05rem; }
.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 110px; }
.pw-wrap .pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 48px; padding: 4px 12px; border: 2px solid #6b7684; background: #fff; border-radius: 8px; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }

/* 설정 */
.key-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.key-now .mask { font-family: Consolas, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: 1px; }
ol.steps-ol { padding-left: 1.4em; margin: 8px 0; }
ol.steps-ol li { margin: 0 0 8px; }

/* 리모콘 코드 입력 */
.code-inp { width: 100%; min-height: 96px; font: inherit; font-size: 3rem; font-weight: 700; text-align: center; letter-spacing: .3em; border: 3px solid #1a1a1a; border-radius: 16px; padding: 8px 4px; font-family: Consolas, "Malgun Gothic", monospace; }
.code-inp:focus { border-color: #0b57d0; }

/* 바닥 */
footer.foot { border-top: 2px solid #d5dbe3; background: #fff; padding: 16px 0; color: #3d4652; font-size: 1rem; }
footer.foot p { margin: 4px 0; }
footer.foot a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; }

/* 개인정보 */
.doc h2 { margin-top: 26px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: 4px 0; }

@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .panel { padding: 14px; }
  .top-in { flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0 10px; }
  .top nav { width: 100%; }
  .menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .menu a { justify-content: center; padding: 6px 8px; border: 2px solid #b9cdf2; white-space: nowrap; }
  .cards { grid-template-columns: 1fr; }
  .slides { grid-template-columns: 1fr 1fr; gap: 10px; }
  .slide .s-tools .btn { flex: 1 1 56px; padding: 6px 4px; font-size: 1rem; }
  .slide .s-tools { gap: 4px; }
  .slide .s-tools .btn { flex: 1 1 100%; justify-content: flex-start; gap: 6px; }
  .cmp-row { grid-template-columns: 1fr 1fr; padding: 8px; gap: 8px; }
  .btn.big { width: 100%; }
  .code-inp { font-size: 2.4rem; letter-spacing: .2em; }
  .key-now .btn { width: 100%; }
}
@media (max-width: 340px) {
  .slides { grid-template-columns: 1fr; }
}
.more-cmp { margin-top: 4px; }
.more-cmp > summary::-webkit-details-marker { display: none; }
.more-cmp .compare { margin-top: 12px; }
