/* Studio layout: scoped to the public tools, preserving administration styles. */
.conversion-time-notice { display: flex; gap: 12px; margin: 14px 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--reading-soft); color: var(--ink); }
.conversion-time-icon { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--reading-surface); color: var(--reading-accent); font-size: 22px; }
.conversion-time-notice strong { font-size: 13px; }
.conversion-time-notice p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
html body.studio-layout .progress-panel[data-stage="convert"][data-measured="true"] .progress-fill { width: var(--conversion-percent, 0%) !important; animation: none !important; transform: none !important; max-width: 100%; min-width: 0; background: linear-gradient(90deg,#6558dc,#4e9cce); transition: width .6s ease; }
html body.studio-layout .progress-panel[data-stage="convert"] .progress-percent { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--reading-accent); }
@media(prefers-reduced-motion:reduce) { html body.studio-layout .progress-panel[data-stage="convert"] .progress-fill { transition: none; } }
.process-steps:has([data-step="convert"]:not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media(max-width:480px) { .process-steps:has([data-step="convert"]:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.video-tutorial-card { display: flex; align-items: center; gap: 18px; padding: 22px; margin: 22px 0; background: var(--reading-soft); border: 1px solid var(--reading-accent); border-radius: 16px; color: var(--ink); }
.video-tutorial-card:hover { box-shadow: 0 6px 20px rgb(70 60 160 / 12%); }
.video-tutorial-play { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: #6456dc; font-size: 22px; }
.video-tutorial-copy { display: grid; gap: 6px; min-width: 0; }
.video-tutorial-copy small { font-size: 10px; font-weight: 750; letter-spacing: .1em; color: var(--reading-accent); }
.video-tutorial-copy strong { font-family: inherit; font-size: 19px; line-height: 1.4; }
.video-tutorial-copy > span { font-size: 13px; line-height: 1.7; color: var(--muted); }
.video-tutorial-button { flex-shrink: 0; margin-left: auto; padding: 12px 16px; border-radius: 10px; background: #6456dc; color: #fff; font-size: 13px; font-weight: 700; }
@media(max-width:560px) { .video-tutorial-card { flex-wrap: wrap; gap: 14px; padding: 18px 14px; } .video-tutorial-play { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; font-size: 17px; } .video-tutorial-copy { flex: 1; } .video-tutorial-copy strong { font-size: 17px; } .video-tutorial-button { width: 100%; text-align: center; } }
html body.studio-layout .workflow-guide { padding: 32px; background: var(--reading-surface); border: 1px solid var(--line); box-shadow: none; }
html body.studio-layout .workflow-header { text-align: left; margin-bottom: 24px; }
html body.studio-layout .workflow-header h2 { max-width: 26ch; margin-left: 0; font-family: inherit; font-size: clamp(25px,3vw,34px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
html body.studio-layout .workflow-header > p { max-width: 76ch; margin-left: 0; font-size: 14px; }
html body.studio-layout .workflow-route { margin-top: 22px; padding: 14px; border-radius: 14px; background: var(--canvas); }
html body.studio-layout .workflow-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
html body.studio-layout .workflow-card { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--canvas); box-shadow: none; transform: none; }
html body.studio-layout .workflow-card-heading { min-height: auto; margin-bottom: 14px; }
html body.studio-layout .workflow-card h3 { font-family: inherit; font-size: 20px; line-height: 1.4; font-weight: 750; }
html body.studio-layout .workflow-card > p { margin: 14px 0; font-size: 14px; line-height: 1.8; }
html body.studio-layout .workflow-optimize, html body.studio-layout .workflow-publish { grid-column: 1 / -1; }
.guide-action-list { display: grid; gap: 12px; margin: 18px 0; padding-left: 22px; color: var(--ink); font-size: 14px; line-height: 1.8; }
.guide-action-list li { padding-left: 5px; }
.guide-action-list li::marker { color: var(--reading-accent); font-weight: 800; }
html body.studio-layout .workflow-tip, .guide-completion { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--reading-surface); color: var(--green); font-size: 12px; line-height: 1.8; }
.guide-illustration { margin: 12px 0; }
.guide-illustration > summary { display: list-item; min-height: 44px; padding: 10px 0; color: var(--reading-accent); cursor: pointer; font-size: 12px; font-weight: 650; }
html body.studio-layout .guide-illustration .workflow-demo { max-width: 420px; margin: 12px 0; }
.guide-help { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); padding: 20px; }
.guide-help h3 { font-family: inherit; font-size: 20px; margin: 0 0 12px; }
.guide-help details { padding: 6px 0; border-top: 1px solid var(--line); }
.guide-help summary { min-height: 44px; padding: 10px 0; font-size: 14px; font-weight: 650; cursor: pointer; }
.guide-help p { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 6px 0 14px; }
@media(max-width:760px) { html body.studio-layout .workflow-guide { padding: 22px 18px; } html body.studio-layout .workflow-cards { grid-template-columns: minmax(0,1fr); } html body.studio-layout .workflow-card { padding: 20px 16px; } }
@media(max-width:480px) { html body.studio-layout .workflow-guide { padding: 20px 14px; } html body.studio-layout .workflow-header h2 { font-size: 25px; } .guide-action-list { font-size: 13px; } .guide-help { padding: 16px 12px; } .guide-help summary { font-size: 13px; } }
.export-recommendation { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--reading-accent); border-radius: 16px; color: var(--ink); background: var(--reading-surface); text-align: left; }
.export-recommendation-heading { display: flex; align-items: flex-start; gap: 12px; }
.export-recommendation-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--reading-soft); color: var(--reading-accent); font-weight: 800; }
.export-recommendation-kicker { color: var(--reading-accent); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.export-recommendation h3 { margin: 5px 0 0; font-family: inherit; font-size: 20px; line-height: 1.4; }
.export-recommendation p { margin: 16px 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.export-recommendation-settings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.export-recommendation-settings span { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--reading-soft); color: var(--reading-accent); font: 700 13px/1.5 ui-sans-serif, system-ui, sans-serif; }
.export-recommendation .export-recommendation-action { padding: 14px 16px; background: var(--canvas); border-radius: 10px; color: var(--ink); }
.export-recommendation .export-recommendation-note { font-size: 12px; }
@media(max-width:560px) { .export-recommendation { padding: 18px 14px; } .export-recommendation h3 { font-size: 18px; } .export-recommendation p { font-size: 13px; } .export-recommendation-settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } .export-recommendation-settings span { padding: 8px; text-align: center; font-size: 12px; } }
html body.studio-layout { background: var(--canvas); }
html body.studio-layout main { padding-bottom: 40px; }
html body.studio-layout .content-section { width: min(1160px, calc(100% - 48px)); }
html body.studio-layout .hero { display: none; }
html body.studio-layout .site-header { box-shadow: none; }
html body.studio-layout .header-inner { width: min(1160px, calc(100% - 48px)); min-height: 72px; }
html body.studio-layout .brand-copy strong { font-family: inherit; font-weight: 800; font-size: 15px; background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
html body.studio-layout .compact-tool-tabs.tool-tabs { width: min(1160px, calc(100% - 48px)); margin: 20px auto 12px; padding: 6px; border-radius: 16px; box-shadow: 0 4px 16px rgb(0 0 0 / 4%); background: var(--reading-surface); }
html body.studio-layout .tool-tab { justify-content: center; }
html body.studio-layout .tool-tab::before, html body.studio-layout .tool-tab::after { display: none; }
html body.studio-layout .tool-tab.is-active { background: #6456dc; box-shadow: none; }
html body.studio-layout .notice-bar { max-width: 1160px; margin: auto; color: var(--muted); text-align: center; }
html body.studio-layout .workspace { margin-top: 16px; padding: 36px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 40px; background: var(--reading-surface); border: 1px solid var(--line); box-shadow: 0 12px 40px rgb(0 0 0 / 3%); border-radius: 24px; }
html body.studio-layout .workspace::before, html body.studio-layout #upload-form::before { display: none; }
html body.studio-layout .intro { padding: 14px 0; grid-row: 1 / span 4; }
.studio-eyebrow { display: block; color: var(--reading-accent); font-size: 11px; letter-spacing: .16em; font-weight: 800; margin-bottom: 14px; }
html body.studio-layout .intro h2 { font-family: inherit; font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; margin: 0 0 16px; }
html body.studio-layout .intro .subtitle { max-width: 36ch; color: var(--muted); font-size: 15px; line-height: 1.8; }
html body.studio-layout .feature-list { margin-top: 30px; gap: 20px; }
html body.studio-layout .feature-list > div { padding: 0; border: 0; box-shadow: none; background: none; gap: 14px; }
html body.studio-layout .feature-mark { width: 36px; height: 36px; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; background: var(--reading-soft); color: var(--reading-accent); }
html body.studio-layout .feature-list strong { font-family: inherit; font-size: 14px; font-weight: 700; }
html body.studio-layout .feature-list small { color: var(--muted); font-size: 12px; }
html body.studio-layout #upload-form { padding: 22px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--canvas); box-shadow: none; }
.upload-form-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.upload-form-heading strong { font-size: 14px; }
.studio-step { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--reading-accent); background: var(--reading-soft); font-size: 11px; font-weight: 800; }
.studio-format { margin-left: auto; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
html body.studio-layout .dropzone { min-height: 220px; padding: 26px 16px; border: 1.5px dashed color-mix(in srgb, var(--reading-accent) 45%, var(--line)); border-radius: 14px; background: var(--reading-surface); box-shadow: none; }
html body.studio-layout .dropzone:hover, html body.studio-layout .dropzone:focus-visible { border-color: var(--reading-accent); background: var(--reading-soft); transform: none; }
html body.studio-layout .upload-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--reading-soft); color: var(--reading-accent); border: 0; box-shadow: none; }
html body.studio-layout .drop-title { font-family: inherit; font-size: 16px; font-weight: 750; }
html body.studio-layout .drop-hint, html body.studio-layout .drop-meta { font-size: 12px; color: var(--muted); }
html body.studio-layout .conversion-option { margin: 16px 0; padding: 15px; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--reading-surface); transition: border-color .15s; }
html body.studio-layout .conversion-option:has(input:checked) { border-color: var(--reading-accent); background: var(--reading-soft); }
html body.studio-layout .conversion-option input { width: 20px; height: 20px; flex-basis: 20px; }
html body.studio-layout .conversion-option strong { font-size: 13px; font-weight: 700; }
html body.studio-layout .conversion-option small { font-size: 12px; line-height: 1.7; color: var(--muted); opacity: 1; }
html body.studio-layout .conversion-option .conversion-hdr-warning { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); }
html body.studio-layout .conversion-hdr-warning strong { display: block; margin-bottom: 3px; color: var(--reading-accent); font-size: 12px; }

/* Main studio: restrained color, clear controls, compositor-only ambient motion. */
html body.studio-layout #processor {
  position: relative; isolation: isolate;
  background: linear-gradient(145deg, color-mix(in srgb, #8170f8 5%, var(--reading-surface)), var(--reading-surface) 48%, color-mix(in srgb, #24bfc4 4%, var(--reading-surface)));
  border-color: color-mix(in srgb, #8170f8 24%, var(--line));
  box-shadow: 0 16px 48px rgb(53 45 119 / 6%), inset 0 1px 0 rgb(255 255 255 / 30%);
}
html body.studio-layout #processor::before {
  content: ''; display: block; position: absolute; pointer-events: none; z-index: -1;
  top: 0; left: 12%; width: 45%; height: 140px; border-radius: 50%;
  background: radial-gradient(ellipse, rgb(118 91 236 / 9%), transparent 70%);
  animation: studio-ambient-drift 18s ease-in-out infinite alternate;
}
html body.studio-layout #processor .intro { align-self: center; }
html body.studio-layout #processor .studio-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 8px; border: 1px solid color-mix(in srgb, #7964e9 18%, var(--line)); background: var(--reading-soft); }
html body.studio-layout #processor .studio-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7d68ec; box-shadow: 0 0 0 4px rgb(125 104 236 / 10%); }
html body.studio-layout #processor .intro h2 { color: var(--ink); }
html body.studio-layout #processor .feature-list > div { padding: 12px 14px; border: 1px solid color-mix(in srgb, #8170f8 9%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--reading-surface) 65%, transparent); transition: border-color .25s ease, transform .25s ease; }
html body.studio-layout #processor .feature-mark { border-radius: 11px; color: #6551cf; background: #ebe7ff; }
html body.studio-layout #processor .feature-mark--green { color: #117f73; background: #dcf5ee; }
html body.studio-layout #processor .feature-mark--amber { color: #94621c; background: #fff0d5; }
html body.studio-layout #processor #upload-form { position: relative; background: color-mix(in srgb, var(--reading-surface) 78%, var(--reading-soft)); border-color: color-mix(in srgb, #8170f8 23%, var(--line)); box-shadow: 0 8px 26px rgb(53 45 119 / 4%); }
html body.studio-layout #processor .dropzone { position: relative; background: linear-gradient(150deg, color-mix(in srgb, #8c79f8 5%, var(--reading-surface)), color-mix(in srgb, #28bec9 4%, var(--reading-surface))); border-color: color-mix(in srgb, #7564d9 65%, var(--line)); transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
html body.studio-layout #processor .upload-icon { background: linear-gradient(145deg, #7c68ec, #4c68da); color: #fff; border: 1px solid rgb(255 255 255 / 25%); box-shadow: 0 7px 18px rgb(100 81 210 / 20%); transition: transform .25s ease; }
html body.studio-layout #processor .dropzone:hover, html body.studio-layout #processor .dropzone:focus-visible { border-color: #7863e6; box-shadow: 0 0 0 4px rgb(117 100 217 / 8%); }
html body.studio-layout #processor .conversion-option { transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
html body.studio-layout #processor .conversion-option:has(input:checked) { border-color: #8a75e7; box-shadow: 0 0 0 3px rgb(117 100 217 / 7%); }
html body.studio-layout #processor .process-button:not(:disabled) { background: linear-gradient(110deg, #6253d9, #7654cd 65%, #4f70d9); border: 1px solid rgb(255 255 255 / 18%); box-shadow: 0 6px 18px rgb(100 81 210 / 18%); transition: transform .2s ease, box-shadow .2s ease; }
html body.studio-layout #processor .process-button:disabled { background: var(--reading-soft); color: var(--muted); box-shadow: none; }
html body.studio-layout .compact-tool-tabs .tool-tab.is-active { background: linear-gradient(110deg, #6253d9, #7654cd 70%, #5571d9); box-shadow: 0 4px 12px rgb(100 81 210 / 15%); }
html[data-theme="dark"] body.studio-layout #processor { box-shadow: 0 16px 48px rgb(0 0 0 / 14%); }
html[data-theme="dark"] body.studio-layout #processor .feature-mark { color: #c0b4ff; background: #343052; }
html[data-theme="dark"] body.studio-layout #processor .feature-mark--green { color: #8fdccf; background: #213f3e; }
html[data-theme="dark"] body.studio-layout #processor .feature-mark--amber { color: #e9c78c; background: #443b2d; }
@keyframes studio-ambient-drift { from { transform: translate3d(-10px, 0, 0); opacity: .65; } to { transform: translate3d(55px, 12px, 0); opacity: 1; } }
@media(hover:hover) and (pointer:fine) {
  html body.studio-layout #processor .feature-list > div:hover { transform: translateY(-2px); border-color: color-mix(in srgb, #8170f8 36%, var(--line)); }
  html body.studio-layout #processor .dropzone:hover .upload-icon { transform: translateY(-3px); }
  html body.studio-layout #processor .process-button:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgb(100 81 210 / 25%); }
}
@media(max-width:760px) { html body.studio-layout #processor::before { animation: none; width: 65%; left: 10%; } }
@media(prefers-reduced-motion:reduce) {
  html body.studio-layout #processor::before { animation: none; }
  html body.studio-layout #processor :is(.feature-list > div, .upload-icon, .dropzone, .conversion-option, .process-button) { transition: none; transform: none; }
}
html body.studio-layout .process-button { min-height: 52px; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 750; background: #6456dc; color: #fff; box-shadow: none; }
html body.studio-layout .process-button:disabled { background: var(--reading-soft); color: var(--muted); border: 1px solid var(--line); opacity: 1; }
html body.studio-layout .file-row { min-width: 0; border-radius: 12px; }
html body.studio-layout .file-details { min-width: 0; }
html body.studio-layout #file-name { overflow-wrap: anywhere; }
html body.studio-layout .progress-panel, html body.studio-layout .result-panel { min-width: 0; border-radius: 16px; }
html body.studio-layout .plans-section { margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--reading-surface); box-shadow: none; }
html body.studio-layout .plans-section::before { display: none; }
html body.studio-layout .plans-heading h2 { font-family: inherit; font-size: 22px; font-weight: 750; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
html body.studio-layout .plans-heading p { max-width: 70ch; line-height: 1.7; }
html body.studio-layout .plan-list { gap: 12px; }
html body.studio-layout .plan-item { padding: 20px 16px; border-radius: 14px; background: var(--canvas); box-shadow: none; }
html body.studio-layout .plan-item .plan-price { font-family: inherit; font-size: 25px; font-weight: 800; }
html body.studio-layout .plan-item button { min-height: 44px; }
html body.studio-layout .workflow-guide { margin-top: 32px; border-radius: 20px; }
@media (max-width: 760px) {
  html body.studio-layout .content-section, html body.studio-layout .header-inner, html body.studio-layout .compact-tool-tabs.tool-tabs { width: calc(100% - 28px); }
  html body.studio-layout .header-inner { min-height: 64px; gap: 8px; }
  html body.studio-layout .brand-copy strong { font-size: 12px; }
  html body.studio-layout .compact-tool-tabs.tool-tabs { margin-top: 12px; top: calc(var(--site-header-height) + 4px); }
  html body.studio-layout .workspace { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 20px; border-radius: 20px; }
  html body.studio-layout .intro { grid-row: auto; padding: 0; }
  html body.studio-layout .intro h2 { font-size: 28px; margin-bottom: 8px; }
  html body.studio-layout .intro .subtitle { max-width: none; font-size: 14px; margin-bottom: 0; }
  html body.studio-layout .feature-list { display: none; }
  html body.studio-layout #upload-form, html body.studio-layout .progress-panel, html body.studio-layout .message, html body.studio-layout .result-panel { grid-column: 1; }
  html body.studio-layout .plans-section { padding: 22px; }
  html body.studio-layout .plan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.studio-layout .plans-heading { align-items: flex-start; gap: 16px; }
  html body.studio-layout .workflow-guide { width: calc(100% - 28px); }
}
@media (max-width: 480px) {
  html body.studio-layout .header-inner { flex-wrap: wrap; padding: 10px 0; }
  html body.studio-layout .header-actions { gap: 6px; flex-wrap: wrap; }
  html body.studio-layout .brand-copy small { display: block; font-size: 8px; letter-spacing: 0; }
  html body.studio-layout .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  html body.studio-layout .auth-actions .ghost-button, html body.studio-layout .auth-actions .solid-button { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  html body.studio-layout .tool-tab .tool-tab-copy small { display: none; }
  html body.studio-layout .tool-tab { min-height: 48px; padding: 8px; gap: 6px; }
  html body.studio-layout .notice-bar { padding: 0 20px 6px; font-size: 10px; }
  html body.studio-layout .workspace { padding: 18px 14px; margin-top: 10px; }
  html body.studio-layout #upload-form { padding: 14px; }
  .studio-eyebrow { margin-bottom: 8px; font-size: 10px; }
  html body.studio-layout .intro h2 { font-size: 26px; }
  html body.studio-layout .dropzone { min-height: 190px; padding: 22px 12px; }
  html body.studio-layout .drop-hint { display: none; }
  html body.studio-layout .drop-meta { margin-top: 12px; font-size: 11px; }
  .studio-format { display: none; }
  html body.studio-layout .conversion-option { padding: 12px; }
  html body.studio-layout .process-button { min-height: 54px; }
  html body.studio-layout .plans-heading { flex-direction: column; }
  html body.studio-layout .plans-heading-actions { width: 100%; justify-content: space-between; }
  html body.studio-layout .plans-section { padding: 18px 14px; }
  html body.studio-layout .plan-item { padding: 16px 12px; min-width: 0; }
  html body.studio-layout .plan-item .plan-price { font-size: 21px; }
}
