.ppt-main { padding-block: 44px 72px; }
.ppt-intro { max-width: 740px; margin-bottom: 32px; }
.ppt-intro h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.16; letter-spacing: -.03em; margin-bottom: 16px; }
.ppt-intro p, .ppt-note { color: var(--muted); line-height: 1.8; }
.ppt-workspace { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 44px; align-items: start; }
.ppt-workspace h2 { font-size: 20px; margin-bottom: 18px; }
.ppt-workspace label:not(.ppt-consent) { display: block; font-size: 14px; margin-block: 18px 8px; }
.ppt-workspace textarea, .ppt-workspace input:not([type='checkbox']), .ppt-workspace select { width: 100%; padding: 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; min-height: 44px; }
.ppt-workspace textarea { resize: vertical; line-height: 1.7; }
#ppt-text { min-height: 260px; font-size: 14px; }
.ppt-workspace input[type='file'] { font-size: 14px; }
.ppt-workspace input::file-selector-button { border: 0; padding: 9px 12px; margin-right: 10px; border-radius: 6px; background: var(--primary-soft); color: var(--heading); font: inherit; cursor: pointer; }
.ppt-note { font-size: 13px; margin-block: 12px; }
.ppt-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.7; margin-block: 22px; }
.ppt-consent input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--primary); }
.ppt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block: 18px; }
.ppt-actions .btn { min-height: 44px; font-size: 14px; }
.ppt-actions .btn:disabled { opacity: .55; cursor: not-allowed; }
#ppt-status { min-height: 28px; line-height: 1.7; color: var(--primary); font-size: 14px; margin-block: 16px; }
#ppt-status[data-error='true'] { color: var(--err); }
.ppt-output { min-width: 0; border-left: 1px solid var(--border); padding-left: 32px; }
.ppt-empty { padding: 32px; background: var(--surface); border-radius: 12px; color: var(--muted); line-height: 1.8; }
.ppt-empty h3 { color: var(--heading); font-size: 22px; margin-block: 20px 12px; }
.ppt-specimen { aspect-ratio: 16 / 9; padding: 10%; background: #0b3b37; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 14px; border-radius: 4px; }
.ppt-specimen strong { font: 700 clamp(17px, 2vw, 25px)/1.3 Cambria, serif; }
.ppt-specimen span { font-size: 13px; color: #c6e7df; }
.ppt-slide { margin-block: 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.ppt-slide h3 { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.ppt-preview { min-height: 280px; padding: 7%; background: #f6faf9; color: #0f172a; border: 1px solid #b9d3ce; border-radius: 4px; }
.ppt-preview strong { display: block; font: 700 clamp(17px, 1.8vw, 25px)/1.25 Cambria, serif; margin-bottom: 6%; overflow-wrap: anywhere; }
.ppt-preview ul { padding-left: 20px; font: 400 clamp(12px, 1.05vw, 15px)/1.5 Arial, sans-serif; }
.ppt-preview li { margin-bottom: 8px; overflow-wrap: anywhere; }
.ppt-slide:first-child .ppt-preview { background: #0b3b37; color: #fff; }
.ppt-slide details { margin-top: 14px; font-size: 13px; }
.ppt-slide summary { min-height: 44px; display: list-item; padding-block: 12px; cursor: pointer; color: var(--primary); }
.ppt-slide details p { color: var(--muted); line-height: 1.8; margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ppt-slide textarea { font-size: 14px; min-height: 130px; }
.ppt-footnote { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); max-width: 75ch; }
@media (max-width: 900px) {
  .ppt-workspace { grid-template-columns: 1fr; gap: 28px; }
  .ppt-output { border-left: 0; border-top: 1px solid var(--border); padding: 28px 0 0; }
  .ppt-preview strong { font-size: clamp(17px, 4vw, 28px); }
  .ppt-preview ul { font-size: clamp(12px, 2.5vw, 17px); }
}
@media (max-width: 400px) {
  .ppt-main { padding-top: 28px; }
  .ppt-empty { padding: 20px; }
  .ppt-preview { aspect-ratio: auto; min-height: 180px; }
}
