/* Focused order flow: visible choices, one active input, optional fine tuning. */
.create-main .lead { max-width:760px; margin-bottom:12px; }
.create-main .flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:1fr; gap:10px; margin:14px 0 20px; padding:0; list-style:none; }
.create-main .flow li { display:flex; grid-column:auto; align-items:center; gap:10px; min-width:0; padding:10px 12px; border:1px solid var(--line); border-radius:14px; background:rgba(24,12,50,.5); color:var(--muted); font-size:14px; }
.create-main .flow li b,.create-main .stepn { display:inline-grid; flex:0 0 28px; width:28px; height:28px; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(135deg,var(--accent),var(--accent2)); box-shadow:var(--glow-a); }
.create-main .order-title { margin-bottom:12px; }
.create-main .studio { margin-bottom:18px; }
.create-main .studio-panel > form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.create-main .studio-panel > form > .order-intake,
.create-main .studio-panel > form > .preset-step,
.create-main .studio-panel > form > .draftnote { grid-column:1 / -1; }
.create-main .order-intake { min-width:0; margin:0; padding:16px; border:1px solid rgba(160,107,255,.45); border-radius:20px; background:linear-gradient(140deg,rgba(34,20,79,.72),rgba(18,12,49,.82)); }
.create-main .order-intake > legend { padding:0 8px; font-size:18px; font-weight:700; color:#fff; }
.create-main .order-intake > legend .stepn { margin-right:8px; vertical-align:middle; }
.create-main .intake-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; min-width:0; }
.create-main .service-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:4px 0 10px; }
.create-main .service-options > .opt { display:block; min-width:0; }
.create-main .service-options button.service-choice { display:grid; grid-template-columns:minmax(120px,.72fr) minmax(0,1.28fr); align-items:center; gap:14px; width:100%; min-height:146px; padding:12px 16px; border:1px solid rgba(160,107,255,.48); border-radius:16px; background:rgba(12,7,35,.62); color:var(--text); text-align:left; white-space:normal; box-shadow:none; }
.create-main .service-options button.service-choice:hover { border-color:var(--accent2); background:rgba(70,48,139,.35); }
.create-main .service-options button.service-choice.on { border-color:var(--accent2); background:linear-gradient(120deg,rgba(126,84,255,.28),rgba(60,151,255,.18)); box-shadow:var(--glow-a); }
.create-main .service-choice-visual { display:flex; align-items:center; justify-content:center; width:100%; height:116px; min-width:0; padding:4px; overflow:hidden; border-radius:12px; background:radial-gradient(ellipse at center,rgba(105,75,205,.3),rgba(15,9,39,.3) 72%); }
.create-main .service-choice-visual img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
.create-main .service-choice-copy { display:flex; min-width:0; flex-direction:column; gap:4px; }
.create-main .service-choice-copy strong { color:#fff; font-size:16px; line-height:1.2; }
.create-main .service-choice-copy small { color:var(--muted); font-size:13px; line-height:1.3; }
.create-main .order-intake > .hint { margin:0 0 10px; font-size:13px; }
.create-main #src.order-step-source { min-width:0; margin:12px 0 0; padding:12px 0 0; border:0; border-top:1px solid rgba(160,107,255,.28); border-radius:0; background:transparent; }
.create-main #src > legend { padding:0 4px 0 0; color:#fff; font-size:15px; font-weight:650; }
.create-main #src textarea { min-height:96px; resize:vertical; }
.create-main #src .examples { margin-top:7px; }
.create-main #src .examples-label { display:block; width:100%; margin:4px 0 2px; color:var(--muted); font-size:12px; }
.create-main .image-url-more { margin-top:10px; }
.create-main .image-url-more > summary { position:relative; padding-right:42px; color:var(--accent2); font-size:13px; cursor:pointer; }
.create-main .image-url-more > input { margin-top:8px; }
.create-main #src .rbox { margin-top:10px; }
.create-main .order-step-source.image-mode .upload-row { justify-content:center; }
.create-main .preset-step { margin:2px 0 0; }
.create-main .preset-step > h3 { display:flex; align-items:center; gap:9px; margin:0 0 5px; color:#fff; font-size:20px; }
.create-main .preset-step > p { margin:0 0 10px; font-size:14px; }
.create-main .recs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:1fr; align-items:stretch; gap:12px; }
.create-main .recs .rec { position:relative; isolation:isolate; container-type:inline-size; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(2.5em,auto) auto auto 1fr; align-content:start; gap:7px; min-width:0; min-height:268px; padding:10px; border:1px solid rgba(160,107,255,.38); border-radius:17px; background:linear-gradient(145deg,rgba(38,24,88,.84),rgba(18,12,48,.92)); transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.create-main .recs .rec:hover { transform:translateY(-2px); border-color:rgba(174,143,255,.72); }
.create-main .recs .rec.selected { border-color:var(--accent2); box-shadow:var(--glow-a); }
.create-main .rec-visual { position:absolute; inset:0; z-index:0; min-width:0; overflow:hidden; border-radius:inherit; pointer-events:none; }
.create-main .rec-visual img { position:absolute; right:-34px; bottom:-44px; z-index:0; display:block; width:260px; height:260px; max-width:none; object-fit:contain; opacity:.42; }
.create-main .rec-visual::after { position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(15,9,39,.36) 0%,rgba(15,9,39,.25) 55%,rgba(15,9,39,.04) 100%); content:""; }
.create-main .recs .rec > :not(.rec-visual) { position:relative; z-index:2; }
.create-main .recs .rec h4 { min-width:0; width:66.666%; max-width:100%; margin:0; color:#fff; font-size:clamp(18px,6cqi,25px); font-weight:800; line-height:1.08; overflow-wrap:anywhere; text-wrap:pretty; }
.create-main .recs .rec p { min-width:0; max-width:100%; margin:0; font-size:13px; line-height:1.35; overflow-wrap:anywhere; }
.create-main .rec-chips { align-self:start; width:max-content; min-width:0; max-width:100%; padding:4px 8px; overflow:hidden; border:1px solid rgba(160,107,255,.35); border-radius:99px; color:#ddd4ff; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.create-main .rec-act { display:flex; align-items:center; justify-content:space-between; gap:8px; align-self:end; flex-wrap:wrap; }
.create-main .rec-act button { min-width:112px; min-height:46px; padding:10px 16px; font-size:16px; font-weight:750; }
.create-main .rec-act button[aria-pressed="true"] { background:linear-gradient(135deg,#48bdff,#8d76ff); }
.create-main .rec-act a.rec-learn { display:inline-flex; align-items:center; justify-content:center; min-width:0; min-height:36px; max-width:min(100%,108px); padding:6px 8px; border:1px solid rgba(130,174,255,.55); border-radius:12px; background:rgba(41,91,174,.2); color:#e9f2ff; font-size:12px; font-weight:650; line-height:1.15; text-align:center; text-decoration:none; }
.create-main .rec-act a.rec-learn:hover { background:rgba(56,119,210,.38); border-color:rgba(161,202,255,.9); }
.create-main .rec-act a.rec-learn:focus-visible { outline:3px solid #9dd7ff; outline-offset:2px; }
.create-main .rec-price { display:flex; align-items:baseline; gap:7px; min-width:0; white-space:nowrap; }
.create-main .rec-price > span { color:var(--muted); font-size:13px; font-weight:650; }
.create-main .rec-price > strong { color:#fff; font-size:39px; font-weight:900; line-height:.95; letter-spacing:.01em; text-shadow:0 1px 0 rgba(223,220,255,.95),0 3px 0 rgba(151,129,207,.9),0 5px 0 rgba(83,66,137,.86),0 9px 12px rgba(0,0,0,.68),0 0 18px rgba(140,174,255,.48); }
.create-main .manual-settings,.create-main .optional-assistant { min-width:0; margin:0; padding:0; overflow:hidden; border:1px solid var(--line); border-radius:15px; background:rgba(24,12,50,.42); }
.create-main .manual-settings > summary,.create-main .optional-assistant > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:50px; padding:12px 16px; color:#fff; font-weight:650; cursor:pointer; list-style:none; }
.create-main .manual-settings > summary::-webkit-details-marker,.create-main .optional-assistant > summary::-webkit-details-marker { display:none; }
.create-main .manual-settings > summary::after,.create-main .optional-assistant > summary::after { content:"+"; display:grid; flex:0 0 24px; width:24px; height:24px; place-items:center; border-radius:50%; background:rgba(132,98,255,.22); color:#fff; font-size:20px; }
.create-main .manual-settings[open] > summary::after,.create-main .optional-assistant[open] > summary::after { content:"−"; }
.create-main .manual-settings > summary:focus-visible,.create-main .optional-assistant > summary:focus-visible { outline:3px solid #8ccfff; outline-offset:-3px; }
.create-main #manualSummary { color:var(--muted); font-size:13px; font-weight:500; }
.create-main .manual-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0 12px 12px; }
.create-main .manual-settings-grid > fieldset { min-width:0; margin:0; }
.create-main .optional-assistant > fieldset { margin:0 12px 12px; }
.create-main .draftnote { margin:0; }
.create-main .panel-buy { position:static; margin-top:0; }
.create-main .flow,
.create-main .order-intake,
.create-main .order-step-source,
.create-main .preset-step,
.create-main .manual-settings,
.create-main .optional-assistant,
.create-main .panel-buy { min-width:0; }
.create-main .order-intake legend,
.create-main .order-step-source legend { max-width:100%; overflow-wrap:anywhere; }
.create-main #src textarea,
.create-main #src input[type="text"] { display:block; width:100%; min-width:0; max-width:100%; font-size:16px; line-height:1.45; }
.create-main #src textarea { overflow-wrap:anywhere; }
.create-main .examples { display:flex; align-items:stretch; flex-wrap:wrap; gap:6px; min-width:0; }
.create-main .examples .ex { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; text-align:left; line-height:1.3; }
.create-main .service-options { width:100%; min-width:0; }
.create-main .service-options > .opt { min-width:0; }
.create-main .service-options button.service-choice { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.create-main .service-choice-copy,
.create-main .service-choice-copy strong,
.create-main .service-choice-copy small { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.create-main .recs .rec,
.create-main .rec-act,
.create-main .rec-act button,
.create-main .rec-act a { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.create-main .rec-act button { white-space:normal; line-height:1.25; }
.create-main .panel-buy,
.create-main .order-intake,
.create-main .order-step-source,
.create-main .preset-step,
.create-main .manual-settings { scroll-margin-top:96px; }
.create-main .step-arrive { animation:order-step-arrive .7s ease-out; }
.create-main .manual-settings-grid .seg.segq .opt { min-width:0; }

/* Inline illustration and file picker for the order's image step. */
.upload-inline { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr); gap:12px; align-items:stretch; min-width:0; margin:8px 0 2px; }
.upload-inline-drop { display:grid; grid-template-columns:minmax(110px,.72fr) minmax(0,1.28fr); align-items:center; gap:12px; min-width:0; min-height:218px; padding:12px; border:1px dashed rgba(160,107,255,.65); border-radius:17px; background:linear-gradient(145deg,rgba(37,26,82,.64),rgba(15,11,42,.72)); transition:border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.upload-inline-drop.over { border-color:#8dc5ff; background:rgba(55,76,151,.32); box-shadow:0 0 0 3px rgba(79,140,255,.16),var(--glow-a); }
.upload-inline-car { display:block; width:100%; max-height:176px; object-fit:contain; }
.upload-inline-action { display:grid; align-content:center; justify-items:start; gap:7px; min-width:0; }
.upload-inline-action > strong { color:#fff; font-size:16px; line-height:1.25; }
.upload-inline-action > p { margin:0; color:var(--muted); font-size:13px; line-height:1.35; }
.upload-inline-choose { display:flex; align-items:center; justify-content:flex-start; gap:9px; width:100%; min-width:0; min-height:46px; padding:6px 10px; border:1px solid rgba(176,132,255,.5); border-radius:13px; color:#fff; background:linear-gradient(135deg,rgba(126,84,255,.3),rgba(60,151,255,.22)); box-shadow:var(--glow-a); font-weight:700; text-align:left; }
.upload-inline-choose:hover { border-color:var(--accent2); background:linear-gradient(135deg,rgba(126,84,255,.45),rgba(60,151,255,.3)); }
.upload-inline-choose .drop-plus { flex:0 0 32px; width:32px; height:32px; font-size:24px; }
.upload-inline-choose #dropText { min-width:0; overflow-wrap:anywhere; line-height:1.2; }
.upload-inline-format { color:var(--muted); font-size:11px; }
.upload-inline-error { min-height:0; margin:0; color:var(--err)!important; font-size:12px!important; }
.upload-inline-error:not(:empty) { margin-top:1px; }
.upload-inline-tips { min-width:0; padding:11px; border:1px solid rgba(160,107,255,.3); border-radius:17px; background:rgba(18,13,48,.36); }
.upload-inline-tips h3 { margin:0 0 8px; color:#fff; font-size:15px; line-height:1.25; }
.upload-inline-tips ul { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.upload-inline-tips li { display:grid; grid-template-columns:72px minmax(0,1fr); align-items:center; gap:9px; min-height:53px; min-width:0; padding:4px 6px; border-radius:11px; background:rgba(12,8,34,.45); color:var(--text); font-size:12px; font-weight:600; line-height:1.25; }
.upload-inline-tips li img { display:block; width:72px; height:46px; object-fit:cover; border-radius:8px; background:#f5f1e9; }
.upload-inline .upload-preview { grid-column:1 / -1; width:min(100%,420px); }
.upload-inline-choose:focus-visible { outline:3px solid #a6d5ff; outline-offset:3px; }
@media (max-width:760px) {
  .upload-inline { grid-template-columns:minmax(0,1fr); gap:9px; }
  .upload-inline-drop { grid-template-columns:minmax(88px,.7fr) minmax(0,1.3fr); gap:8px; min-height:176px; padding:9px; }
  .upload-inline-car { max-height:128px; }
  .upload-inline-action { gap:6px; }
  .upload-inline-action > strong { font-size:14px; }
  .upload-inline-action > p { font-size:12px; }
  .upload-inline-choose { min-height:44px; padding:5px 7px; font-size:13px; }
  .upload-inline-choose .drop-plus { flex-basis:30px; width:30px; height:30px; }
  .upload-inline-tips { padding:9px; }
  .upload-inline-tips h3 { font-size:14px; }
  .upload-inline-tips ul { gap:4px; }
  .upload-inline-tips li { grid-template-columns:68px minmax(0,1fr); min-height:49px; gap:8px; padding:3px 5px; font-size:12px; }
  .upload-inline-tips li img { width:68px; height:42px; }
  .upload-inline .upload-preview { max-width:100%; }
}
@media (prefers-reduced-motion:reduce) { .upload-inline-drop { transition:none; } }
@media (min-width:960px) {
  .create-main .intake-fields { grid-template-columns:minmax(0,1fr); align-items:start; gap:12px; }
  .create-main #src.order-step-source { grid-column:1; margin:0; padding:12px 0 0; border-top:1px solid rgba(160,107,255,.28); border-left:0; }
  .create-main .intake-fields > .prep { grid-column:1 / -1; margin:0; display:grid; grid-template-columns:minmax(0,1fr); }
  .create-main .intake-fields > .prep[hidden] { display:none; }
  .create-main .intake-fields > .prep h4 { margin-bottom:4px; }
  .create-main .intake-fields > .prep .prep-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px 12px; margin:0; }
  .create-main .intake-fields > .prep .prep-list li { min-width:0; align-self:center; font-size:13px; line-height:1.3; }
  .create-main .intake-fields > .prep .row { grid-column:1 / -1; margin-top:6px; }
  .create-main .order-step-source.image-mode .upload-inline { grid-template-columns:minmax(0,1.2fr) minmax(210px,.8fr); }
}
@keyframes order-step-arrive {
  0% { box-shadow:0 0 0 0 rgba(79,140,255,.55); }
  100% { box-shadow:0 0 0 14px rgba(79,140,255,0); }
}
@media (max-width:799px) {
  .create-main .flow { gap:6px; margin:12px 0 16px; }
  .create-main .flow li { align-items:flex-start; gap:6px; min-width:0; padding:8px 7px; font-size:12px; line-height:1.3; }
  .create-main .flow li span { min-width:0; overflow-wrap:anywhere; }
  .create-main .flow li b { flex-basis:24px; width:24px; height:24px; }
  .create-main .order-intake { padding:12px; }
  .create-main .studio-panel > form { grid-template-columns:minmax(0,1fr); }
  .create-main .studio-panel > form > .order-intake,
  .create-main .studio-panel > form > .preset-step,
  .create-main .studio-panel > form > .draftnote { grid-column:auto; }
  .create-main .service-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .create-main .service-options button.service-choice { grid-template-columns:minmax(0,1fr); grid-template-rows:76px auto; min-height:150px; align-items:start; gap:6px; padding:10px; text-align:left; }
  .create-main .service-choice-visual { height:76px; }
  .create-main .service-choice-copy strong { font-size:14px; line-height:1.25; }
  .create-main .service-choice-copy small { font-size:12px; line-height:1.3; }
  .create-main .recs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .create-main .recs .rec { grid-template-rows:auto minmax(2.5em,auto) auto auto 1fr; min-height:244px; padding:8px; gap:6px; }
  .create-main .rec-visual img { right:-26px; bottom:-36px; width:220px; height:220px; }
  .create-main .recs .rec h4 { font-size:clamp(18px,6cqi,23px); }
  .create-main .recs .rec p { font-size:12px; }
  .create-main .rec-chips { font-size:10px; }
  .create-main .rec-act { gap:5px; }
  .create-main .rec-act button { min-width:104px; min-height:46px; padding:10px 12px; font-size:15px; }
  .create-main .rec-act a.rec-learn { min-height:36px; padding:6px 9px; font-size:12px; }
  .create-main .manual-settings-grid { grid-template-columns:minmax(0,1fr); }
  .create-main .manual-settings > summary,.create-main .optional-assistant > summary { padding:11px 12px; font-size:14px; }
  .create-main .manual-settings-grid > fieldset { min-width:0; }
  .create-main .manual-settings-grid .seg.segq { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:6px; }
  .create-main .manual-settings-grid .seg.segq .opt { min-width:0; }
  .create-main .manual-settings-grid .seg.segq button { width:100%; min-width:0; min-height:44px; padding:8px 5px; white-space:normal; overflow-wrap:anywhere; line-height:1.2; }
}
@media (max-width:560px) {
  .create-main .recs { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:959px) {
  .create-main #src.order-step-source { grid-column:auto; margin:12px 0 0; padding:12px 0 0; border-top:1px solid rgba(160,107,255,.28); border-left:0; }
}
@media (max-width:380px) {
  .create-main .order-intake { padding:10px; }
  .create-main .service-options { grid-template-columns:minmax(0,1fr); }
  .create-main .service-options button.service-choice { grid-template-columns:96px minmax(0,1fr); grid-template-rows:1fr; min-height:90px; align-items:center; gap:10px; padding:10px; }
  .create-main .service-choice-visual { height:68px; }
  .create-main .flow { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .create-main .flow li { align-items:center; padding:7px 10px; }
  .create-main .manual-settings-grid .seg.segq { grid-template-columns:minmax(0,1fr); }
  .create-main .manual-settings-grid .seg.segq button { text-align:left; padding-inline:12px; }
  .create-main .buy-main { grid-template-columns:minmax(72px,.5fr) minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  .create-main .recs .rec { transition:none; }
  .create-main .recs .rec:hover { transform:none; }
  .create-main .step-arrive { animation:none; }
}

/* Исходные данные: компактный ввод и самостоятельный большой предпросмотр. */
.create-main .source-workspace { display:grid; grid-template-columns:minmax(240px,.75fr) minmax(0,1.5fr); gap:20px; align-items:start; }
.create-main .source-workspace .intake-fields { display:block; min-width:0; }
.create-main .service-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.create-main .service-options button.service-choice { display:block; min-height:48px; padding:10px 12px; text-align:center; font-size:15px; }
.create-main #src.order-step-source { margin:16px 0 0; padding:0; border:0; }
.create-main #src > legend, .create-main #examples, .create-main #src-hint { display:none; }
.create-main #prompt { width:100%; min-height:200px; resize:vertical; }
.create-main .order-step-source.image-mode .upload-inline { display:block; }
.create-main .upload-inline-drop { display:block; min-height:180px; padding:24px 14px; border-style:dashed; }
.create-main .upload-inline-action { align-items:center; text-align:center; gap:14px; }
.create-main .upload-inline-choose { justify-content:center; text-align:center; }
.create-main .image-url-more { margin:12px 0; }
.create-main .source-preview { min-width:0; padding:16px; border:1px solid rgba(160,107,255,.3); border-radius:16px; background:rgba(12,7,35,.55); }
.create-main .source-preview-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.create-main .source-preview-head h3 { margin:0; font-size:18px; }
.create-main .source-preview-head button { min-height:40px; font-size:13px; padding:8px 12px; }
.create-main .source-preview-stage { display:flex; align-items:center; justify-content:center; min-height:440px; height:min(58vw,640px); overflow:hidden; border-radius:12px; background:rgba(5,4,18,.55); }
.create-main #previewEmpty { color:var(--muted); text-align:center; padding:20px; }
.create-main #dropPreviewBox { width:100%; height:100%; max-width:none; margin:0; padding:0; border:0; background:transparent; }
.create-main #dropPreview { display:block; width:100%; height:100%; max-height:none; object-fit:contain; border:0; border-radius:0; }
.create-main #descriptionPreview { align-self:stretch; width:100%; margin:0; padding:24px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:20px; line-height:1.6; overflow:auto; }
.create-main #dropPreviewName { display:block; margin:10px 0 0; overflow-wrap:anywhere; font-size:13px; color:var(--muted); }
.create-main .source-preview [hidden], .create-main #dropPreviewName[hidden] { display:none; }
.create-main .source-workspace .prep { margin-top:16px; }

.source-image-viewer { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; padding:72px 16px 16px; border:0; background:#0c0918; color:#fff; }
.source-image-viewer::backdrop { background:rgba(0,0,0,.9); }
.source-image-viewer > button { position:absolute; top:16px; right:16px; min-height:44px; }
.source-image-viewer > img { display:block; width:100%; height:100%; object-fit:contain; }
@media(max-width:799px) {
  .create-main .source-workspace { grid-template-columns:minmax(0,1fr); gap:16px; }
  .create-main .source-preview { padding:12px; }
  .create-main .source-preview-stage { min-height:300px; height:80vw; max-height:560px; }
  .create-main #descriptionPreview { padding:16px; font-size:18px; }
  .create-main .upload-inline-drop { min-height:150px; padding:16px; }
}
.create-main #dropPreviewBox { display:block; flex:none; }
.create-main #dropPreviewBox[hidden] { display:none; }
.create-main #dropPreview { flex:none; }
.create-main .upload-inline-action { justify-items:stretch; }
.create-main .source-checks { width:100%; }
.create-main .source-checks summary { min-height:32px; cursor:pointer; color:var(--text); font-weight:600; }
.create-main .source-checks[open] summary { margin-bottom:10px; }

.create-main .source-preview-stage { position:relative; background:#100d26; }
.create-main .upload-placeholder { display:flex; align-items:center; justify-content:center; width:100%; height:100%; min-height:inherit; padding:0; border:0; border-radius:0; background:#100d26; box-shadow:none; cursor:pointer; }
.create-main .upload-placeholder img { display:block; width:100%; height:100%; object-fit:contain; }
.create-main .upload-placeholder:hover { background:#100d26; box-shadow:inset 0 0 24px rgba(161,84,255,.15); }
.create-main .upload-placeholder:focus-visible { outline:3px solid #c17cff; outline-offset:-4px; }
.create-main .upload-placeholder[hidden] { display:none; }

/* Краткие советы занимают свободное место под вводом только на компьютере. */
.create-main .source-settings-sidebar { display:grid; min-width:0; }
@media(min-width:1100px) {
  .create-main .source-settings-sidebar { margin-top:16px; }
}

/* Настройки стоят под советами в правой части блока исходных данных. */
.create-main .quality-settings { min-width:0; padding:16px; border:1px solid rgba(160,107,255,.45); border-radius:16px; background:rgba(12,7,35,.55); }
.create-main .quality-settings h3 { margin:0 0 12px; color:#fff; font-size:18px; }
.create-main .quality-settings fieldset { min-width:0; margin:0 0 14px; padding:0; border:0; }
.create-main .quality-settings .order-step-texture { padding-top:14px; border-top:1px solid rgba(160,107,255,.28); }
.create-main .quality-settings .order-step-texture legend { padding:0; color:#fff; font-size:15px; font-weight:650; }
.create-main .quality-settings .hint { margin:5px 0 0; font-size:13px; }
.create-main .quality-settings .seg.quality-options { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; width:100%; margin:0; }
.create-main .quality-options .opt { position:relative; display:block; width:100%; min-width:0; }
.create-main .quality-options .opt > button { display:block; width:100%; height:54px; min-height:54px; padding:8px 16px; text-align:left; white-space:normal; }
.create-main .quality-options .opt > button.on:hover { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; }
.create-main .quality-settings .seg.texture-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; width:100%; margin:8px 0 0; }
.create-main .quality-purchase { display:grid; gap:10px; margin-top:10px; padding:12px; border:1px solid rgba(160,107,255,.45); border-radius:16px; background:linear-gradient(140deg,rgba(34,20,79,.72),rgba(18,12,49,.82)); }
.create-main .quality-purchase-price { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.create-main .quality-purchase-price span { color:var(--muted); font-size:14px; }
.create-main .quality-purchase-price b { color:#fff; font-size:26px; line-height:1.1; text-shadow:var(--glow-a); }
.create-main .quality-purchase #go { width:100%; min-height:48px; padding:10px 16px; font-size:16px; }
.create-main .source-settings-sidebar .buy-assurance { min-height:0; margin-top:8px; padding:9px 10px 9px 42px; }
.create-main .source-settings-sidebar .buy-assurance::before { left:10px; }
.create-main .source-settings-sidebar .buy-assurance b { font-size:13px; }
.create-main .source-settings-sidebar .buy-assurance p { font-size:12px; }
.create-main .quality-purchase-message { margin:6px 0 0; font-size:13px; }
.create-main .quality-purchase-message:empty { display:none; }

/* Optional multi-view photos stay under the existing live image preview. */
.create-main .multiview-tools { margin:12px 0 4px; padding:10px; border:1px solid rgba(147,91,234,.42); border-radius:16px; background:rgba(16,10,44,.58); }
.create-main .multiview-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:54px; padding:8px 12px; border:1px solid rgba(161,122,255,.32); border-radius:12px; background:rgba(18,12,49,.82); color:#fff; font:inherit; font-weight:750; text-align:left; cursor:pointer; }
.create-main .multiview-toggle:hover { border-color:#956cff; background:rgba(32,20,76,.9); }
.create-main .multiview-toggle-main { display:flex; align-items:center; gap:10px; min-width:0; flex:1; line-height:1.25; }
.create-main .multiview-plus { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; border:1px solid rgba(160,107,255,.65); border-radius:50%; color:#e7ddff; font-size:21px; line-height:1; transition:transform .18s,background .18s; }
.create-main .multiview-toggle[aria-expanded="true"] .multiview-plus { transform:rotate(45deg); background:rgba(160,107,255,.22); }
.create-main .multiview-count { flex:0 0 auto; color:var(--muted); font-size:12px; font-weight:600; white-space:nowrap; }
.create-main .multiview-panel { padding:10px 4px 3px; }
.create-main .multiview-panel[hidden], .create-main .multiview-slot[hidden] { display:none !important; }
.create-main .multiview-intro { margin:3px 0 12px; color:var(--muted); font-size:14px; line-height:1.45; }
.create-main .multiview-actions { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:10px; }
.create-main .multiview-angle { min-height:38px; padding:8px 14px; border:1px solid rgba(160,107,255,.55); border-radius:999px; background:rgba(34,24,78,.72); color:#eee7ff; font:inherit; font-weight:650; cursor:pointer; }
.create-main .multiview-angle:hover, .create-main .multiview-angle[aria-expanded="true"] { border-color:#a06bff; background:linear-gradient(115deg,#8b4fd7,#397fd1); color:#fff; }
.create-main .multiview-slot { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:9px; margin:8px 0; padding:9px; border:1px solid rgba(160,107,255,.36); border-radius:12px; background:rgba(11,8,31,.55); }
.create-main .multiview-slot b, .create-main .multiview-slot small { display:block; }
.create-main .multiview-slot b { color:#fff; font-size:13px; }
.create-main .multiview-slot small { margin-top:3px; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.create-main .multiview-file, .create-main .multiview-remove { min-height:36px; padding:7px 10px; border:1px solid rgba(160,107,255,.48); border-radius:9px; background:rgba(34,24,78,.8); color:#eee7ff; font:inherit; font-size:12px; font-weight:650; cursor:pointer; }
.create-main .multiview-file:hover, .create-main .multiview-remove:hover { background:#38256e; }
.create-main .multiview-remove { color:#c3badd; }
.create-main .multiview-free-note { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.4; }
@media(max-width:620px) {
  .create-main .multiview-tools { padding:8px; }
  .create-main .multiview-panel { padding:8px 2px 2px; }
  .create-main .multiview-toggle { padding:8px; }
  .create-main .multiview-count { display:none; }
  .create-main .multiview-slot { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .create-main .multiview-slot > div { grid-column:1/-1; }
  .create-main .multiview-file { grid-column:1; justify-self:start; }
  .create-main .multiview-remove { grid-column:2; }
  .create-main .multiview-angle { padding:8px 12px; }
}
.create-main .texture-options .opt { display:block; min-width:0; }
.create-main .texture-options .opt > button.texture-choice { display:block; position:relative; width:90%; min-width:0; min-height:0; margin-inline:auto; aspect-ratio:1; overflow:hidden; padding:0; border:2px solid rgba(170,116,255,.54); border-radius:18%; background:#081442; box-shadow:0 0 11px rgba(150,88,255,.25); filter:none; transform:none; transition:border-color .2s,box-shadow .2s,filter .2s,transform .2s; }
.create-main .texture-options .texture-choice img { display:block; width:100%; height:100%; object-fit:cover; transform:scale(1.055); pointer-events:none; }
.create-main .texture-options .opt > button.texture-choice:hover { border-color:#d1a6ff; box-shadow:0 0 0 2px rgba(184,119,255,.56),0 0 24px rgba(170,83,255,.75); filter:brightness(1.13); transform:translateY(-2px); }
.create-main .texture-options .opt > button.texture-choice:focus-visible { outline:3px solid #e3c6ff; outline-offset:3px; }
.create-main .texture-options .opt > button.texture-choice.on { border-color:#d4a6ff; box-shadow:0 0 0 3px rgba(193,124,255,.72),0 0 26px rgba(157,92,255,.75); }
.create-main .texture-options .opt > button.texture-choice:active { filter:brightness(.86); transform:translateY(3px) scale(.96); box-shadow:inset 0 9px 18px rgba(3,2,28,.7),0 0 0 1px rgba(194,126,255,.7); }
.create-main .texture-options .opt > button.texture-choice.texture-press { animation:texture-press .48s ease-out; }
@keyframes texture-press {
  0% { transform:translateY(-1px) scale(1); }
  28% { filter:brightness(.82); transform:translateY(4px) scale(.95); box-shadow:inset 0 10px 20px rgba(3,2,28,.75),0 0 0 1px rgba(194,126,255,.65); }
  100% { transform:translateY(0) scale(1); }
}
@media(prefers-reduced-motion:reduce) {
  .create-main .texture-options .opt > button.texture-choice { transition:none; }
  .create-main .texture-options .opt > button.texture-choice.texture-press { animation:none; }
}
@media(max-width:1099px) {
  .create-main .quality-settings { padding:14px; }
  .create-main .quality-settings .seg.quality-options { grid-template-columns:minmax(0,1fr); }
}

/* Управление изображением непосредственно в углах окна предпросмотра. */
.create-main .preview-icon { position:absolute; z-index:2; right:12px; display:grid; place-items:center; width:46px; height:46px; min-height:46px; padding:10px; color:#78d5ff; border:1px solid rgba(120,213,255,.35); border-radius:12px; background:rgba(16,13,38,.88); box-shadow:none; }
.create-main .preview-icon:hover { color:#c3efff; border-color:#78d5ff; background:#21173f; }
.create-main .preview-icon:focus-visible { outline:3px solid #78d5ff; outline-offset:3px; }
.create-main .preview-icon svg { display:block; width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.create-main .preview-replace { top:12px; }
.create-main .preview-expand { bottom:12px; }
.create-main .preview-icon[hidden] { display:none; }
.create-main .upload-placeholder:hover { box-shadow:none; }
.create-main .source-preview-stage.over { outline:2px dashed #78d5ff; outline-offset:-3px; }
.create-main .preview-icon:hover { transform:none; }
.create-main .source-preview-head .preview-replace { position:static; flex:0 0 46px; }
.create-main .source-preview-stage.image-mode { cursor:pointer; }
.create-main .source-preview-stage.image-mode:focus-visible { outline:3px solid #78d5ff; outline-offset:3px; }

/* Горизонтальная строка проверки под окном просмотра. */
.create-main .source-preview .prep-strip { display:block; min-width:0; width:100%; margin:12px 0 0; padding:8px 12px; border-radius:12px; }
.create-main .source-preview .prep-strip[hidden] { display:none; }
.create-main .source-preview .source-tip-strip { display:flex; align-items:center; gap:14px; margin:0 0 12px; }
.create-main .source-tip-label { flex:none; color:#fff; font-size:13px; }
.create-main .source-tip-strip .prep-viewport { flex:1; width:auto; min-width:0; }
.create-main .prep-viewport { width:100%; overflow:hidden; scrollbar-width:none; }
.create-main .prep-track { display:flex; align-items:center; gap:24px; width:max-content; }
.create-main .prep-content { display:flex; align-items:center; flex:none; gap:20px; white-space:nowrap; }
.create-main .prep-content > strong { flex:none; font-size:13px; color:#fff; }
.create-main .prep-strip .prep-list { display:flex; align-items:center; gap:20px; margin:0; padding:0; }
.create-main .prep-strip .prep-list li { flex:none; padding:0 0 0 22px; font-size:13px; }
.create-main .prep-strip .prep-list li::before { top:0; width:17px; height:17px; font-size:10px; }
.create-main .prep-viewport.scrolling .prep-track { animation:prep-marquee var(--marquee-duration,25s) linear infinite; }
@keyframes prep-marquee { to { transform:translateX(calc(-50% - 12px)); } }
@media(prefers-reduced-motion:reduce) {
  .create-main .prep-viewport.scrolling { overflow-x:auto; scrollbar-width:auto; }
  .create-main .prep-viewport.scrolling .prep-track { animation:none; }
}

.create-main .source-preview-stage.image-mode .upload-placeholder img,
.create-main .source-preview-stage.image-mode #dropPreview { cursor:pointer; }

/* Пиксельный тумблер помощника. */
.create-main .assistant-inline { display:flex; align-items:center; gap:12px; }
.create-main .assistant-inline[hidden] { display:none; }
.create-main .assistant-inline-label { color:var(--text); font-weight:600; }
.create-main .source-preview-head .assistant-inline { gap:7px; margin-left:auto; }
.create-main .source-preview-head .assistant-inline-label { color:#bdefff; font-size:13px; }
.create-main .pixel-switch { display:inline-flex; align-items:center; gap:9px; min-height:44px; padding:6px 10px; border:1px solid #499cc8; border-radius:3px; background:#0c1b35; box-shadow:inset 0 0 0 2px #172c4c,0 0 10px rgba(63,203,255,.18); color:#bbdcf0; font:700 12px ui-monospace,SFMono-Regular,Consolas,monospace; cursor:pointer; }
.create-main .pixel-switch:hover { border-color:#79e3ff; background:#102345; }
.create-main .pixel-switch:focus-visible { outline:3px solid #a5dfff; outline-offset:3px; }
.create-main .pixel-switch .switch-track { position:relative; display:block; width:44px; height:22px; border:2px solid #5095b9; background:repeating-linear-gradient(90deg,#112a47 0 5px,#0a1c34 5px 8px); }
.create-main .pixel-switch .switch-block { position:absolute; top:2px; left:2px; width:14px; height:14px; background:#8295a8; box-shadow:0 0 0 2px #536b85; transition:transform .18s steps(2,end),background .18s; }
.create-main .pixel-switch[aria-checked="true"] { border-color:#61dfff; box-shadow:inset 0 0 0 2px #173350,0 0 14px rgba(63,203,255,.42); }
.create-main .pixel-switch[aria-checked="true"] .switch-block { transform:translateX(22px); background:#6beaff; box-shadow:0 0 8px #6beaff; }
.create-main .pixel-switch[aria-checked="false"] .switch-off,.create-main .pixel-switch[aria-checked="true"] .switch-on { color:#79ecff; text-shadow:0 0 7px #52d9ff; }
.create-main #asstBox[hidden] { display:none; }

/* Описание живёт в окне предпросмотра как неоновый разговор. */
.create-main .description-chat { display:flex; flex-direction:column; align-self:stretch; width:100%; height:100%; min-height:0; color:#eafaff; border:1px solid rgba(96,215,255,.48); border-radius:12px; background:linear-gradient(150deg,rgba(25,21,61,.98),rgba(6,15,36,.98)); box-shadow:inset 0 0 28px rgba(47,156,255,.1),0 0 18px rgba(52,193,255,.13); overflow:hidden; }
.create-main .description-chat[hidden] { display:none; }
.create-main .chat-top { display:flex; align-items:center; gap:10px; flex:none; min-height:48px; padding:11px 16px; border-bottom:1px solid rgba(91,207,255,.33); color:#a6eaff; font-size:12px; font-weight:800; letter-spacing:.12em; text-shadow:0 0 9px #3ecbff; }
.create-main .chat-top small { margin-left:auto; color:#69ddc8; font-size:10px; }
.create-main .chat-signal { width:9px; height:9px; border-radius:50%; background:#69e4dc; box-shadow:0 0 10px #69e4dc; }
.create-main .chat-scroll { display:flex; flex-direction:column; align-items:flex-start; gap:14px; min-height:0; padding:18px; overflow:auto; scrollbar-color:#5581a7 transparent; }
.create-main .chat-intro { display:flex; align-items:flex-end; gap:12px; max-width:94%; }
.create-main .chat-bubble { max-width:100%; min-width:0; padding:13px 16px; border:1px solid rgba(84,204,255,.42); border-radius:16px 16px 16px 4px; background:rgba(26,50,80,.56); box-shadow:0 0 15px rgba(34,190,255,.12),inset 0 0 16px rgba(61,161,255,.05); color:#d9f8ff; text-shadow:0 0 8px rgba(65,207,255,.32); overflow-wrap:anywhere; }
.create-main .chat-bubble p { margin:5px 0 0; line-height:1.5; }
.create-main .chat-author { color:#75ddff; font-size:11px; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }
.create-main .chat-user { align-self:flex-end; max-width:86%; border-color:rgba(177,112,255,.46); border-radius:16px 16px 4px 16px; background:rgba(82,46,137,.42); color:#fff; }
.create-main #descriptionPreview { align-self:flex-end; width:auto; margin:0; padding:13px 16px; font-size:15px; line-height:1.5; white-space:pre-wrap; overflow:visible; }
.create-main .chat-hint { margin-left:54px; }
.create-main .description-chat .chat-reply { width:100%; max-width:100%; align-items:flex-start; }
.create-main .description-chat .chat-reply .chat-bubble { flex:1; }
.create-main .description-chat .chat-reply #asstBox { margin:6px 0 0; width:100%; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
.create-main .description-chat #asstBox > p { margin:0 0 4px; }
.create-main .description-chat #asstBox .asst-chips { gap:0; margin:2px 0 6px; }
.create-main .description-chat #asstBox .asst-chips button { border:0; border-bottom:1px solid rgba(104,206,255,.23); border-radius:0; background:transparent; box-shadow:none; color:#d8efff; }
.create-main .description-chat #asstBox .asst-chips button:hover,.create-main .description-chat #asstBox .asst-chips button[aria-pressed="true"] { color:#8feaff; background:rgba(75,171,231,.12); box-shadow:none; }
.create-main .description-chat #asstBox > .row { gap:5px; margin:5px 0; }
.create-main .description-chat #asstBox .asst-ask { margin-top:5px; }
.create-main .description-chat #asstBox .asst-out { margin-top:5px; }
.create-main .description-chat #asstBox .asst-out p { margin:3px 0; }
.create-main .description-chat .examples { display:flex; gap:8px; margin-left:54px; }
.create-main .description-chat .examples-label { width:100%; color:#9fd4e8; font-size:13px; }
.create-main .description-chat .examples .ex { padding:8px 11px; font-size:13px; border-color:rgba(84,204,255,.4); background:rgba(25,61,86,.56); }
.create-main .description-chat #asstBox,.create-main .description-chat .rbox { align-self:stretch; margin:0 0 0 54px; min-width:0; border-color:rgba(84,204,255,.38); background:rgba(20,46,74,.56); }
.create-main .description-chat .rbox { margin-top:0; }
.create-main .description-chat .row { flex-wrap:wrap; }
.create-main .description-chat input { max-width:100%; }
@media(min-width:800px) {
  .create-main .description-chat #asstBox .asst-chips { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
  .create-main .description-chat #asstBox .asst-chips button { width:100%; min-height:48px; padding:8px 10px; text-align:left; }
  .create-main .description-chat #asstBox > .row:not(.asst-ask) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .create-main .description-chat #asstBox > .row:not(.asst-ask) > button { width:100%; }
  .create-main .description-chat #asstBox > .row:not(.asst-ask) > button:only-child { grid-column:1 / -1; }
  .create-main .description-chat #asstBox > .asst-ask { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .create-main .description-chat #asstBox > .asst-ask input { min-width:0; }
}
.create-main .pixel-robot { display:grid; grid-template-columns:repeat(17,3px); grid-template-rows:repeat(16,3px); gap:1px; flex:none; margin-bottom:2px; filter:drop-shadow(0 0 5px #60dfff); }
.create-main .pixel-robot .pixel { width:3px; height:3px; }
.create-main .pixel-robot .lit { background:#7be6ff; }
.create-main .pixel-robot.assemble .lit { animation:robot-pixel-fall .65s cubic-bezier(.2,.8,.3,1) both; animation-delay:var(--fall); }
@keyframes robot-pixel-fall { from { opacity:0; transform:translateY(-110px) scale(.3); } to { opacity:1; transform:translateY(0) scale(1); } }
@media(max-width:799px) {
  .create-main .chat-scroll { padding:13px; gap:12px; }
  .create-main .chat-intro { flex-direction:column; align-items:flex-start; gap:6px; width:100%; max-width:100%; }
  .create-main .chat-intro .chat-bubble { flex:none; width:100%; }
  .create-main .chat-bubble { padding:9px 10px; font-size:14px; line-height:1.4; }
  .create-main .chat-bubble p { line-height:1.4; }
  .create-main .chat-author { font-size:10px; }
  .create-main #descriptionPreview { padding:9px 10px; font-size:14px; }
  .create-main .description-chat .chat-reply #asstBox { padding:0; }
  .create-main .description-chat .asst-chips { grid-template-columns:minmax(0,1fr); }
  .create-main .description-chat .asst-chips button { grid-column:auto; min-height:40px; padding:6px 3px; font-size:13px; line-height:1.3; white-space:normal; text-align:left; }
  .create-main .description-chat .asst-box > .row,.create-main .description-chat .asst-ask { display:grid; grid-template-columns:minmax(0,1fr); }
  .create-main .description-chat .asst-box > .row > *,.create-main .description-chat .asst-ask > * { width:100%; min-width:0; }
  .create-main .chat-hint,.create-main .description-chat .examples,.create-main .description-chat #asstBox,.create-main .description-chat .rbox { margin-left:0; }
  .create-main .source-preview-head .assistant-inline { flex-direction:column; gap:2px; }
  .create-main .source-preview-head .assistant-inline-label { font-size:11px; }
  .create-main .source-preview-head .pixel-switch { gap:4px; padding:5px 6px; }
  .create-main .source-preview-head .switch-track { width:36px; }
  .create-main .source-preview-head .switch-block { width:12px; }
  .create-main .source-preview-head .pixel-switch[aria-checked="true"] .switch-block { transform:translateX(18px); }
  .create-main .pixel-robot { grid-template-columns:repeat(17,2px); grid-template-rows:repeat(16,2px); gap:0; }
  .create-main .pixel-robot .pixel { width:2px; height:2px; }
}
@media(prefers-reduced-motion:reduce) { .create-main .pixel-robot.assemble .lit { animation:none; } }
