.ppt-page { max-width: 100%; overflow-x: hidden; background: radial-gradient(circle at 67% 5%, rgba(237, 107, 50, .11), transparent 24%), var(--platinum-100); }
.ppt-workflow-mark { display: grid; flex: 0 0 auto; width: 29px; height: 29px; place-items: center; border: 1px solid var(--orange); color: #ff9d6e; font: 700 16px/1 Georgia, serif; }
.ppt-workspace { width: 100%; max-width: 100%; align-items: stretch; overflow-x: clip; }
.ppt-main { width: 100%; min-width: 0; max-width: 100%; padding: clamp(28px, 4.5vw, 64px) clamp(22px, 5vw, 72px) 72px; overflow-x: clip; }
.ppt-hero, .ppt-alert, .ppt-stage { width: min(850px, 100%); margin-right: auto; margin-left: auto; }
.ppt-hero { position: relative; padding: 0 0 34px; }
.ppt-hero::after { position: absolute; right: 0; bottom: 12px; width: min(280px, 42%); height: 1px; background: linear-gradient(90deg, transparent, var(--orange)); content: ""; }
.ppt-hero .eyebrow { margin: 0 0 14px; color: var(--orange-deep); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.ppt-hero h1 { max-width: 760px; margin: 0; font: 600 clamp(32px, 4.4vw, 58px)/1.08 "Noto Serif SC", "Songti SC", Georgia, serif; letter-spacing: -.035em; }
.ppt-hero > p:last-child { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.ppt-alert { margin-bottom: 18px; padding: 12px 14px; border-left: 3px solid var(--red); background: rgba(185, 79, 58, .09); color: #873727; font-size: 12px; line-height: 1.55; }
.ppt-alert.info { border-left-color: var(--blue); background: rgba(60, 113, 148, .09); color: #2e5c78; }
.ppt-stage { margin-top: 18px; padding: clamp(19px, 3vw, 30px); border: 1px solid var(--platinum-300); border-radius: 8px; background: rgba(251, 250, 246, .97); box-shadow: var(--shadow); animation: ppt-enter .42s cubic-bezier(.2,.8,.2,1) both; }
.stage-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--platinum-300); }
.stage-heading > div { display: grid; gap: 7px; }
.stage-heading span { color: var(--orange-deep); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.stage-heading h2 { margin: 0; font: 600 clamp(21px, 2.6vw, 31px)/1.2 "Noto Serif SC", "Songti SC", Georgia, serif; }
.stage-heading > p { max-width: 280px; margin: 0; color: var(--quiet); font-size: 10px; line-height: 1.55; text-align: right; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, .5fr); gap: 14px; }
.field { display: grid; gap: 8px; margin-top: 15px; }
.field > span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.field em { color: var(--quiet); font-style: normal; font-weight: 600; text-transform: none; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--platinum-300); border-radius: 4px; background: #fffefa; color: var(--ink); font-size: 12px; line-height: 1.55; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.field input, .field select { min-height: 43px; padding: 0 12px; }
.field textarea { min-height: 78px; padding: 11px 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237, 107, 50, .1); }
.ppt-upload-zone { margin-top: 17px; }
.ppt-upload-zone > input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.upload-trigger { display: grid; width: 100%; min-height: 110px; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; gap: 4px 12px; padding: 18px; border: 1px dashed #a49d90; border-radius: 6px; background: linear-gradient(145deg, #f7f3ea, #ece7dd); color: var(--ink); text-align: left; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.upload-trigger:hover, .ppt-upload-zone.dragging .upload-trigger { border-color: var(--orange); background: #fff8ef; transform: translateY(-2px); }
.upload-trigger > span { display: grid; grid-row: 1 / 3; width: 38px; height: 38px; place-items: center; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange-deep); font-size: 22px; }
.upload-trigger strong { font-size: 13px; }
.upload-trigger small { color: var(--quiet); font-size: 9px; }
.ppt-file-list { display: grid; gap: 7px; margin-top: 9px; }
.file-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--platinum-300); border-radius: 4px; background: rgba(255, 254, 250, .75); }
.file-item .file-type { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--platinum-300); color: var(--orange-deep); font-size: 8px; font-weight: 900; }
.file-item strong, .file-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item strong { font-size: 10px; }
.file-item small { margin-top: 3px; color: var(--quiet); font-size: 8px; }
.file-item button { border: 0; background: transparent; color: var(--quiet); font-size: 16px; }
.file-item button:hover { color: var(--red); }
.file-item.processing { opacity: .66; }
.file-item.warning { border-color: #d3a15f; }
.ppt-advanced { margin-top: 17px; border: 1px solid var(--platinum-300); border-radius: 5px; background: #f4f0e8; }
.ppt-advanced summary { display: flex; justify-content: space-between; padding: 13px 14px; color: var(--ink); font-size: 11px; font-weight: 800; cursor: pointer; }
.ppt-advanced summary span { color: var(--quiet); font-size: 9px; }
.advanced-body { padding: 0 14px 15px; border-top: 1px solid var(--platinum-300); }
.advanced-body .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage-actions { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 23px; }
.stage-actions > p { max-width: 390px; margin: 0; color: var(--quiet); font-size: 10px; line-height: 1.5; }
.ppt-primary { display: inline-flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 28px; padding: 0 18px; border: 1px solid var(--orange); border-radius: 4px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .03em; text-decoration: none; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.ppt-primary:hover { background: var(--orange-deep); box-shadow: 0 10px 24px rgba(201, 79, 28, .2); transform: translateY(-1px); }
.ppt-primary:disabled { cursor: wait; opacity: .55; transform: none; }
.style-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px; }
.style-card { position: relative; display: grid; min-height: 320px; grid-template-rows: 85px auto auto auto 1fr auto; gap: 10px; padding: 14px; overflow: hidden; border: 1px solid var(--platinum-300); border-radius: 5px; background: #fffefa; color: var(--ink); text-align: left; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.style-card:hover { border-color: var(--orange); box-shadow: 0 14px 26px rgba(46, 38, 29, .11); transform: translateY(-4px); }
.style-card.is-selected { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(237, 107, 50, .16), 0 16px 30px rgba(46, 38, 29, .13); transform: translateY(-4px); }
.style-card.is-selected::after { position: absolute; top: 8px; right: 8px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--orange); color: white; content: "✓"; font-size: 13px; font-weight: 900; }
.style-card:disabled { cursor: wait; opacity: .58; transform: none; }
.style-swatch { display: flex; min-height: 85px; }
.style-swatch i { flex: 1; }
.style-card small { color: var(--orange-deep); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.style-card strong { font: 600 19px/1.18 "Noto Serif SC", "Songti SC", Georgia, serif; }
.style-card .style-meta { color: var(--quiet); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.style-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.style-card b { color: var(--orange-deep); font-size: 10px; }
.plan-direction { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(190px, .7fr); gap: 12px; margin-bottom: 16px; }
.direction-card { padding: 17px; border: 1px solid var(--platinum-300); border-radius: 5px; background: #f4f0e8; }
.direction-card span, .direction-card strong { display: block; }
.direction-card span { color: var(--orange-deep); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.direction-card strong { margin-top: 8px; font: 600 18px/1.35 "Noto Serif SC", "Songti SC", Georgia, serif; }
.direction-card p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.slide-blueprint { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; counter-reset: slides; }
.slide-blueprint li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--platinum-300); border-radius: 4px; background: #fffefa; counter-increment: slides; }
.slide-blueprint li::before { content: counter(slides, decimal-leading-zero); color: var(--orange-deep); font-size: 9px; font-weight: 900; }
.slide-blueprint strong { font-size: 11px; }
.slide-blueprint span { color: var(--quiet); font-size: 9px; }
.production-state { display: flex; align-items: center; gap: 18px; min-height: 120px; padding: 18px; border: 1px solid var(--platinum-300); border-radius: 5px; background: #f4f0e8; }
.production-orbit { position: relative; width: 56px; height: 56px; border: 1px solid var(--platinum-300); border-radius: 50%; }
.production-orbit::before { position: absolute; inset: 7px; border: 2px solid transparent; border-top-color: var(--orange); border-radius: 50%; content: ""; animation: spin 1.3s linear infinite; }
.production-state.stopped .production-orbit::before { animation: none; border-color: var(--orange); }
.production-state strong { font: 600 20px/1.25 "Noto Serif SC", "Songti SC", Georgia, serif; }
.production-state p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.warning-list { margin-top: 12px; padding: 12px 14px; border-left: 2px solid #d3a15f; background: #faf1e4; color: #765225; font-size: 10px; line-height: 1.55; }
.production-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.result-panel { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 19px; border: 1px solid var(--platinum-300); border-radius: 5px; background: linear-gradient(125deg, #23211f, #302c28); color: #fffaf4; }
.result-symbol { display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid var(--orange); color: #ff9d6e; font: 600 34px/1 Georgia, serif; }
.result-panel strong { font: 600 18px/1.3 "Noto Serif SC", "Songti SC", Georgia, serif; }
.result-panel p { margin: 6px 0 0; color: #bdb8ad; font-size: 10px; }
.download-button { min-width: 150px; }
.qa-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.qa-summary span { padding: 6px 9px; border: 1px solid var(--platinum-300); border-radius: 999px; color: var(--muted); font-size: 8px; font-weight: 800; }
.variant-results { display: grid; gap: 10px; margin-top: 14px; }
.variant-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--platinum-300); border-radius: 5px; background: #fffefa; }
.variant-result strong, .variant-result small { display: block; }
.variant-result small { margin-top: 4px; color: var(--quiet); font-size: 9px; }
.variant-result a { min-height: 38px; padding: 0 13px; }
.ppt-summary { display: block; }
.ppt-summary dl { display: grid; gap: 20px; margin: 28px 0; }
.ppt-summary dl > div { padding-bottom: 17px; border-bottom: 1px solid var(--platinum-300); }
.ppt-summary dt { color: var(--quiet); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.ppt-summary dd { margin: 7px 0 0; color: var(--ink); font-size: 11px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.summary-job { padding: 12px; border: 1px solid var(--platinum-300); background: #f4f0e8; }
.summary-job span { display: block; margin-bottom: 7px; color: var(--orange-deep); font-size: 8px; font-weight: 900; }
.summary-job code { color: var(--muted); font-size: 8px; overflow-wrap: anywhere; }
.ppt-summary .brief-heading button { display: none; }
body.ppt-error .status-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(185, 79, 58, .16); }
body.ppt-complete .status-dot { background: var(--green); }
@keyframes ppt-enter { from { opacity: 0; transform: translateY(14px) scale(.995); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .ppt-summary { display: block; }
  .ppt-summary .brief-heading button { display: block; }
}
@media (max-width: 760px) {
  .ppt-page .app-shell, .ppt-workspace, .ppt-main, .ppt-hero, .ppt-stage { width: 100%; max-width: 100%; min-width: 0; }
  .ppt-page .workspace-header { width: 100%; max-width: 100vw; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; }
  .ppt-page .header-actions { min-width: 0; gap: 7px; }
  .ppt-page .header-actions .exit-link { display: none; }
  .ppt-main { padding: 28px 14px 46px; }
  .ppt-hero h1 { max-width: 100%; font-size: 36px; overflow-wrap: anywhere; }
  .ppt-stage { padding: 19px 16px; overflow: hidden; }
  .stage-heading { display: grid; }
  .stage-heading > * { min-width: 0; }
  .stage-heading > p { text-align: left; }
  .field-grid, .advanced-body .field-grid, .style-options, .plan-direction { grid-template-columns: 1fr; }
  .stage-actions { align-items: stretch; flex-direction: column; }
  .ppt-primary { width: 100%; }
  .style-card { min-height: 230px; }
  .slide-blueprint li { grid-template-columns: 30px minmax(0, 1fr); }
  .slide-blueprint li span { grid-column: 2; }
  .result-panel { grid-template-columns: 60px minmax(0, 1fr); }
  .result-symbol { width: 60px; height: 60px; }
  .result-panel .download-button { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .production-orbit::before { animation: none; border-color: var(--orange); }
}
