/* ============================================================
   FotoDNI - styles.css
   Estilos extraídos de prototipo_foto_dni_hibrido.html
   (sin cambios de diseño; solo separación de ficheros)
   ============================================================ */
:root {
  --accent: #1e604f;
  --accent-hover: #174c40;
  --accent2: #5e9c89;
  --success: #24755d;
  --success-bg: #e2f0ea;
  --danger: #b42318;
  --danger-bg: #fef0ed;
  --warning: #a86816;
  --warning-bg: #fff7e7;
  --bg-dark: #18304a;
  --card-bg: #fffdf8;
  --text-main: #18304a;
  --text-muted: #687477;
  --paper: #f5f0e6;
  --paper-soft: #faf7f0;
  --line: #ddd7ca;
  --navy: #18304a;
  --green: #1e604f;
  --green-soft: #dceae4;
  --green-dark: #174c40;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--paper); color: var(--text-main); line-height: 1.5; }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 100;
  padding: 16px 30px; background: rgba(255,253,248,.94);
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 18px rgba(24,48,74,.04);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.5px; }
.brand-icon { display: block; width: 36px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.brand-accent { color: var(--green); }
.nav-links { display: flex; list-style: none; gap: 24px; }
.nav-links a { color: #58666b; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--green); }
.navMenuToggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: #fffdf8; font: inherit; font-size: 21px; cursor: pointer; }
.navPrivacy { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* PROCESSING OVERLAY */
.processingOverlay { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(24,48,74,.72); backdrop-filter: blur(6px); }
.processingOverlay.visible { display: flex; }
.processingPanel { width: min(470px, 100%); background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px rgba(15,23,42,.35); }
.processingBrand { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.processingBrand img { width: 42px; height: 42px; object-fit: contain; }
.processingEyebrow { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .9px; }
.processingPanel h2 { color: var(--navy); font-size: 22px; margin: 5px 0 4px; }
.processingLead { color: #64748b; font-size: 13px; margin-bottom: 20px; }
.processingSteps { list-style: none; display: flex; flex-direction: column; }
.processingStep { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 11px; min-height: 58px; color: #94a3b8; }
.processingStep:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 31px; bottom: 0; width: 2px; background: #e2e8f0; }
.processingStep.done:not(:last-child)::after { background: #8ebbaa; }
.processingDot { position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #dbe3ef; border-radius: 50%; background: #fff; font-size: 12px; font-weight: 800; }
.processingStep.active { color: #334155; }
.processingStep.active .processingDot { color: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px var(--green-soft); font-size: 0; }
.processingStep.active .processingDot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1s ease-in-out infinite alternate; }
.processingStep.done { color: #334155; }
.processingStep.done .processingDot { color: #fff; border-color: var(--green); background: var(--green); font-size: 0; }
.processingStep.done .processingDot::before { content: '✓'; font-size: 13px; }
.processingStep strong { display: block; font-size: 13px; margin-top: 4px; }
.processingStep small { display: block; font-size: 11.5px; margin-top: 2px; color: #94a3b8; }
.processingStep.active strong::after { content: ''; display: inline-block; width: 14px; margin-left: 5px; animation: workingDots 1.2s steps(4,end) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes workingDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75%,100% { content: '...'; } }
.processingTrack { height: 8px; overflow: hidden; border-radius: 99px; background: #e1e5df; margin-top: 8px; }
.processingFill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--green),#78b6a2); transition: width .45s cubic-bezier(.22,.61,.36,1); }
.processingFooter { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #64748b; }
@keyframes pulse { to { transform: scale(1.5); opacity: .45; } }

/* HERO */
.hero { padding: 58px 28px 0; background: linear-gradient(125deg, #fffdf8 0 54%, #dceae4 54% 100%); border-bottom: 1px solid var(--line); }
.heroLayout { width: min(1160px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.heroCopy { padding-bottom: 52px; }
.heroEyebrow { display: block; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { margin: 12px 0 18px; max-width: 600px; color: var(--navy); font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -2.7px; }
.heroCopy > p { max-width: 560px; color: #677477; font-size: 17px; }
.heroActions { display: flex; align-items: center; gap: 18px; margin-top: 27px; }
.heroPrimary { border: 0; border-radius: 9px; padding: 13px 20px; color: #fff; background: var(--green); font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(30,96,79,.18); transition: background .18s, transform .15s; }
.heroPrimary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.heroPrivacy { display: flex; align-items: center; gap: 7px; margin-top: 21px; color: #677477; font-size: 12px; }
.heroPrivacy span { display: grid; place-items: center; width: 18px; height: 18px; color: #fff; background: var(--green); border-radius: 50%; font-size: 10px; }
.heroShowcase { min-width: 0; margin-bottom: 50px; }
.heroPhotoCard { position: relative; min-height: 420px; overflow: hidden; border: 1px solid rgba(24,48,74,.12); border-radius: 24px 24px 0 0; background: #dceae4; box-shadow: 0 24px 60px rgba(24,48,74,.18); }
.heroPhotoCard > img { width: 100%; height: 100%; min-height: 420px; display: block; object-fit: cover; object-position: 53% center; }
.heroPhotoShade { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 48%,rgba(16,38,58,.84) 100%); }
.heroPhotoCopy { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 13px; color: #fff; }
.heroPhotoCopy img { width: 48px; height: 48px; padding: 6px; object-fit: contain; border-radius: 13px; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.heroPhotoCopy strong { display: block; font-size: 15px; }
.heroPhotoCopy span { display: block; margin-top: 2px; color: #d9e6e1; font-size: 11.5px; }
.heroTrustBadge { position: absolute; top: 18px; right: 18px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: var(--navy); background: rgba(255,255,255,.90); backdrop-filter: blur(8px); font-size: 11px; font-weight: 800; }
.heroHighlights { width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); color: #dbe5e8; border-radius: 0 0 14px 14px; overflow: hidden; }
.heroHighlights span { padding: 17px 22px; text-align: center; font-size: 12px; }
.heroHighlights span + span { border-left: 1px solid rgba(255,255,255,.13); }
.heroHighlights b { color: #fff; }

/* TOOL SECTION */
.toolSection { display: none; padding: 42px 24px 60px; background: #f5f0e6; }
body.has-photo .toolSection { display: block; }
body.has-photo .hero { display: none; }
body.has-photo .info-section, body.has-photo .contact-section { display: none; }

.assistantShell { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 230px 1fr; overflow: hidden; background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(24,48,74,.11); }
.assistantRail { display: flex; flex-direction: column; min-height: 710px; padding: 32px 24px; background: #e9ece7; border-right: 1px solid var(--line); }
.assistantEyebrow { display: block; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.assistantRail ol { list-style: none; margin-top: 26px; }
.assistantRail li { position: relative; display: grid; grid-template-columns: 31px 1fr; gap: 11px; min-height: 78px; color: #7b8587; }
.assistantRail li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 34px; bottom: 7px; width: 1px; background: #cbd2cd; }
.assistantRail li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #b9c2bd; border-radius: 50%; background: #f8f7f2; font-size: 12px; font-weight: 800; }
.assistantRail li div { display: flex; flex-direction: column; padding-top: 2px; }
.assistantRail li small { color: #899293; font-size: 11px; }
.assistantRail li.done, .assistantRail li.active { color: var(--navy); }
.assistantRail li.done > span { color: #fff; border-color: var(--green); background: var(--green); }
.assistantRail li.active > span { color: var(--green); border: 2px solid var(--green); box-shadow: 0 0 0 4px rgba(30,96,79,.10); }
.assistantPrivacy { display: grid; grid-template-columns: 25px 1fr; gap: 9px; margin-top: auto; color: var(--navy); }
.assistantPrivacy > span { display: grid; place-items: center; width: 23px; height: 23px; color: #fff; background: var(--green); border-radius: 50%; font-size: 11px; }
.assistantPrivacy div { display: flex; flex-direction: column; }
.assistantPrivacy small { color: #748083; font-size: 11px; }

.assistantMain { min-width: 0; padding: 30px 34px 38px; }
.assistantHeader { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.assistantHeader h2 { margin: 5px 0 3px; color: var(--navy); font-size: 25px; }
.assistantHeader p { color: var(--text-muted); font-size: 13px; }
.assistantReset { padding: 9px 12px; color: var(--navy); background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.assistantReset:hover { color: var(--green); border-color: #9bbcaf; }
.assistantNotice:empty { display: none; }
.assistantNotice { margin-top: 16px; }
.assistantNotice.visible { display: block; padding: 11px 13px; color: #9d261c; background: #fef0ed; border: 1px solid #efc1bb; border-radius: 9px; font-size: 12px; }

/* UPLOAD ZONE */
.uploadZone {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px;
  border: 2px dashed #9bbcaf; border-radius: 14px; padding: 13px 14px; margin-bottom: 16px;
  background: #f6faf7; transition: border-color 0.25s, box-shadow 0.25s, transform 0.15s; cursor: pointer;
}
.uploadZone:hover { border-color: var(--green); box-shadow: 0 7px 16px rgba(30,96,79,.10); }
.uploadZone.dragover { border-color: var(--green); background: var(--green-soft); transform: scale(1.01); }
.uploadZone.locked { opacity: 0.55; cursor: not-allowed; border-color: #cbd5e1; background: #f2f0ea; }
.uploadZone.locked:hover { box-shadow: none; }
.upload-left { display: flex; align-items: center; gap: 12px; }
.uploadIcon { width: 38px; height: 38px; min-width: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 16px; box-shadow: 0 4px 10px rgba(30,96,79,.25); }
.uploadZone.locked .uploadIcon { background: #94a3b8; box-shadow: none; }
.uploadTitle { font-weight: 700; color: #1e293b; font-size: 13.5px; }
.uploadSub { font-size: 11.5px; color: #64748b; }
#fileInput { display: none; }
.uploadBtn { padding: 8px 18px; font-size: 12.5px; font-weight: 600; border-radius: 8px; background: var(--green); color: #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(30,96,79,.20); transition: transform 0.15s, box-shadow 0.15s; white-space: nowrap; border: none; }
.uploadBtn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,96,79,.28); }
.uploadZone.locked .uploadBtn { background: #94a3b8; box-shadow: none; cursor: not-allowed; }

.modelStatus { text-align: left; font-size: 12.5px; color: #64748b; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.modelStatus.ready { color: var(--success); font-weight: 600; }
.modelStatus.errorState { color: var(--danger); font-weight: 600; }
.retryBtn { border: none; background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; cursor: pointer; }
#status { text-align: left; color: #475569; font-size: 13px; margin: 6px 0; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid #ddd; border-top-color: var(--green); border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 5px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
#progressWrap { width: 240px; margin: 6px 0; background: #e2e8f0; border-radius: 20px; height: 6px; overflow: hidden; display: none; }
#progressBar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--accent2)); transition: width 0.2s; }
#errorBox { display: none; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 10px; font-size: 12px; margin: 10px 0; text-align: left; }

/* EDITOR GRID */
.editorGrid { display: none; grid-template-columns: 310px 1fr; gap: 34px; margin-top: 24px; align-items: start; }
.previewCol { display: flex; flex-direction: column; align-items: center; text-align: center; }
.canvasBox { position: relative; width: 260px; height: 320px; border-radius: 14px; box-shadow: 0 12px 28px rgba(24,48,74,.13); overflow: hidden; background: #ffffff; border: 1px solid var(--line); }
#canvas { width: 100%; height: 100%; display: block; }
.previewSubtitle { font-size: 11.5px; color: #64748b; margin-top: 10px; line-height: 1.4; max-width: 260px; }
.changePhotoBtn { margin-top: 10px; color: var(--green); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; background: none; border: none; }
.changePhotoBtn:hover { color: var(--accent-hover); }

.controlsCol { display: flex; flex-direction: column; gap: 14px; }
.fieldGroup { display: flex; flex-direction: column; gap: 4px; }
.fieldGroup label { font-size: 12.5px; font-weight: 700; color: #334155; }
.docSelect { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 13.5px; color: #1e293b; background: #fbfaf6; outline: none; }
.docSub { font-size: 11.5px; color: #64748b; }
.sliderBox { display: flex; flex-direction: column; gap: 4px; }
.sliderBox label { font-size: 12.5px; font-weight: 700; color: #334155; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: #e2e8f0; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); cursor: pointer; transition: transform 0.1s; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); background: var(--green); }
.toggleMini { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.toggleMini span { font-size: 12px; font-weight: 600; color: #475569; }
.switch { position: relative; width: 34px; height: 18px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-toggle { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 20px; transition: 0.2s; }
.slider-toggle:before { position: absolute; content: ""; height: 12px; width: 12px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider-toggle { background: var(--green); }
.switch input:checked + .slider-toggle:before { transform: translateX(16px); }
.bgNote { font-size: 10.5px; color: #64748b; margin-top: -8px; }

.checklistHeading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 4px; border-top: 1px solid var(--line); }
.checklistHeading span { color: var(--navy); font-size: 13px; font-weight: 750; }
.checklistHeading small { color: var(--text-muted); font-size: 10.5px; text-align: right; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.checkItem { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; line-height: 1.35; }
.checkIcon { font-size: 14px; font-weight: 800; min-width: 16px; text-align: center; }
.checkOk { color: #16a34a; }
.checkFail { color: #dc2626; }
.checkWarn { color: var(--warning); }
.itemFail { color: #b91c1c; font-weight: 500; }
.itemWarn { color: #92400e; font-weight: 500; }
.checkText { flex: 1; }
.checkTag { font-size: 9px; line-height: 1; padding: 3px 5px; border-radius: 999px; white-space: nowrap; background: #e6efeb; color: #315f53; font-weight: 700; text-transform: uppercase; letter-spacing: .25px; }
.checkTag.quality { background: #f0ede6; color: #6c7474; }

.actionBtn { width: 100%; padding: 13px 20px; border-radius: 10px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; text-align: center; margin-top: 6px; }
.actionBtn.btnSuccess { background: var(--green); color: #ffffff; box-shadow: 0 6px 18px rgba(30,96,79,.23); }
.actionBtn.btnSuccess:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(30,96,79,.28); }
.actionBtn.btnDanger { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; cursor: default; }
.actionBtn.btnWarning { background: #fffbeb; color: #92400e; border: 1px solid #fbbf24; }
.actionBtn:disabled { cursor: not-allowed; transform: none; box-shadow: none; }

/* INFO SECTION */
.info-section { background: #f9f7f1; padding: 64px 20px; }
.info-container { max-width: 960px; margin: 0 auto; }
.info-heading { text-align: center; margin-bottom: 28px; }
.info-heading h2 { color: var(--navy); font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.info-heading p { color: #64748b; font-size: 14px; max-width: 720px; margin: 0 auto; }
.quick-guide { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 28px; }
.quick-item { display: flex; align-items: center; gap: 11px; background: #fffdf8; border: 1px solid var(--line); border-radius: 13px; padding: 14px; }
.quick-number { width: 30px; height: 30px; min-width: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; font-weight: 800; background: var(--green); }
.quick-item strong { display: block; color: #1e293b; font-size: 12.5px; }
.quick-item span { color: #64748b; font-size: 11px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.info-card { background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.info-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 12px; }
.info-list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: #475569; font-size: 13px; }
.info-note { margin-top: 14px; padding: 11px 12px; border-radius: 9px; background: var(--green-soft); color: #315d52; font-size: 12px; line-height: 1.5; }

/* CONTACT */
.contact-section { padding: 60px 20px; background: var(--navy); color: #cbd5e1; }
.contact-container { max-width: 600px; margin: 0 auto; }
.contact-container h3 { font-size: 22px; color: #fff; margin-bottom: 6px; text-align: center; }
.contact-container p { font-size: 13.5px; color: #94a3b8; text-align: center; margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); padding: 24px; border-radius: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12.5px; font-weight: 600; color: #e2e8f0; }
.form-group input, .form-group textarea { background: rgba(15,23,42,.6); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 10px 12px; color: #fff; font-size: 13px; font-family: inherit; outline: none; }
.contact-submit { padding: 10px 20px; background: var(--green); color: #fff; border: none; border-radius: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; }

/* FOOTER */
footer { background: #10263a; color: #64748b; padding: 40px 20px 30px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.footer-grid { max-width: 900px; margin: 0 auto 30px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer-col h4 { color: #f1f5f9; font-size: 14px; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #94a3b8; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.05); padding-top: 20px; font-size: 11.5px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #f1f5f9; }
.footer-brand img { width: 38px; height: 38px; object-fit: contain; }
.footer-brand h4 { margin: 0; }

/* RESPONSIVE */
img, svg, canvas { max-width: 100%; }
@media (max-width: 820px) {
  .navbar { padding: 13px 18px; }
  .heroLayout { grid-template-columns: 1fr; }
  .heroCopy { padding-bottom: 0; }
  .heroShowcase { margin-bottom: 34px; }
  .heroPhotoCard, .heroPhotoCard > img { min-height: 340px; }
  .heroHighlights { grid-template-columns: 1fr; border-radius: 12px 12px 0 0; }
  .heroHighlights span + span { border-left: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .assistantShell { grid-template-columns: 1fr; }
  .assistantRail { min-height: auto; padding: 18px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .assistantRail > .assistantEyebrow, .assistantPrivacy { display: none; }
  .assistantRail ol { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; }
  .assistantRail li { min-height: auto; }
  .assistantRail li:not(:last-child)::after { display: none; }
  .assistantMain { padding: 26px 22px 32px; }
  .editorGrid { grid-template-columns: 1fr; }
  .quick-guide { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-brand { font-size: 15px; gap: 8px; letter-spacing: -0.3px; }
  .brand-icon { width: 32px; height: 32px; }
  .brand-accent { font-size: 0.85em; }
  .navMenuToggle { display: inline-grid; place-items: center; margin-left: auto; }
  .navPrivacy { display: none; }
  .nav-links { position: absolute; z-index: 30; left: 12px; right: 12px; top: calc(100% + 1px); display: none; grid-template-columns: 1fr; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fffdf8; box-shadow: 0 14px 30px rgba(24,48,74,.14); }
  .nav-links.open { display: grid; }
  .uploadZone { align-items: flex-start; flex-direction: column; }
  .uploadBtn { width: 100%; text-align: center; }
  .assistantHeader { flex-direction: column; }
  .assistantReset { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .quick-guide { grid-template-columns: 1fr; }
  .editorGrid { grid-template-columns: 1fr !important; gap: 18px; }
  .previewCol { order: -1; }
}
@media (max-width: 1024px) {
  .editorGrid { grid-template-columns: 1fr !important; max-width: 480px; margin-left: auto; margin-right: auto; }
  .previewCol { order: -1; }
  .canvasBox { width: clamp(198px, 62vw, 260px); height: auto; aspect-ratio: 26 / 32; }
}
