@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --night: #08090b;
  --deep: #111216;
  --panel: #17191e;
  --panel-2: #202126;
  --line: #ffffff1b;
  --line-strong: #ef44443c;
  --cream: #ffffff;
  --soft: #d4d6dc;
  --dim: #aeb3bd;
  --gold: #f0444b;
  --gold-light: #ffb4b4;
  --wine: #c52f3d;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--cream);
  background: var(--night);
}
.variant-gallery { margin: 34px 0 48px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.variant-gallery h3 { margin: 0 0 18px; font: 700 19px Manrope, sans-serif; letter-spacing: -.035em; }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.variant-card { min-width: 0; padding: 14px; background: linear-gradient(160deg, #202126, #111216); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 36px #0005; }
.variant-card.selected { border-color: #f0444b; box-shadow: 0 0 0 1px #f0444b55, 0 16px 36px #0007; }
.variant-card h4 { min-height: 42px; margin: 2px 0 12px; color: var(--cream); font: 700 13px/1.5 Manrope, sans-serif; }
.variant-direction { min-height: 40px; margin: -6px 0 12px; color: var(--soft); font-size: 11px; line-height: 1.55; }
.variant-frame { display: grid; place-items: center; height: 225px; overflow: hidden; background: #090a0d; border: 1px solid var(--line); border-radius: 7px; }
.variant-frame img { width: 100%; height: 100%; object-fit: contain; }
.variant-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.variant-card .actions button { padding: 10px 13px; font-size: 11px; }
.variant-error { color: #ffb4b4; font-size: 12px; line-height: 1.6; }
.studio-progress { position: fixed; z-index: 100; right: clamp(16px, 3vw, 40px); bottom: 22px; max-width: min(460px, calc(100vw - 32px)); padding: 15px 18px; border: 1px solid #ff6971; border-radius: 12px; background: #2d151c; color: #fff; box-shadow: 0 18px 45px #000b; font: 700 13px/1.5 Manrope, sans-serif; }
.studio-progress.failed { border-color: #ffb4b4; background: #571e27; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse 68% 42% at 80% -8%, #6c222322, transparent 80%), var(--night); min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 18px; top: 16px; z-index: 50; padding: 12px; background: var(--gold-light); color: var(--night); }

.topbar { height: 82px; padding: 0 clamp(24px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #0b0c10db; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); position: relative; z-index: 2; }
.brand { display: flex; gap: 15px; align-items: center; font-family: Manrope, 'Segoe UI', sans-serif; font-size: 17px; font-weight: 500; letter-spacing: -.04em; white-space: nowrap; }
.brand b { font-weight: 800; letter-spacing: -.055em; }
.brand small { display: block; margin-top: 3px; font: 600 9px/1.4 Manrope, sans-serif; letter-spacing: .24em; color: var(--dim); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #f0444b; border-radius: 12px; background: linear-gradient(145deg, #e43746, #741620); color: #fff; font: 800 21px/1 Manrope, sans-serif; box-shadow: 0 8px 24px #e4374628; }
.privacy { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .025em; color: var(--soft); }
.privacy::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #9cbd91; box-shadow: 0 0 0 4px #9cbd911c; }

.shell { max-width: 1640px; min-height: calc(100vh - 82px); margin: auto; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.rail { position: relative; padding: 56px 20px 40px 30px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #111216 0%, #090a0d 100%); }
.rail::after { content: 'S / 02'; position: absolute; bottom: 36px; left: 32px; color: #ef444436; font: 400 36px Georgia, serif; letter-spacing: -.07em; }
.rail-heading { padding: 0 13px 28px; color: var(--gold); font: 700 10px Manrope, sans-serif; letter-spacing: .22em; }
.rail nav { position: relative; display: grid; }
.rail nav::before { content: ''; position: absolute; top: 25px; bottom: 25px; left: 31px; width: 1px; background: #ef44442d; pointer-events: none; }
.rail button { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 63px; padding: 9px 12px; text-align: left; border: 0; border-bottom: 1px solid #ffffff0a; border-radius: 9px; background: transparent; color: #fff; font: 600 12px Manrope, sans-serif; transition: color .18s ease, background .18s ease; }
.rail button:hover { color: var(--cream); background: #ffffff06; }
.rail button b { position: relative; z-index: 1; flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ef444466; border-radius: 10px; background: #211519; color: #fff; font: 700 10px Manrope, sans-serif; letter-spacing: .03em; }
.rail button.active { color: #fff; background: linear-gradient(90deg, #ef444432, #ef444408 90%); border-bottom-color: #ef44445b; }
.rail button.active::after { content: '→'; position: absolute; right: 12px; color: var(--gold); font-size: 15px; }
.rail button.active b { background: #d52e3b; color: #fff; border-color: #f0444b; box-shadow: 0 0 0 4px #ef444420; }
.rail button small { margin-left: auto; color: var(--dim); font: 500 9px Manrope, sans-serif; }
.rail-note { margin: 34px 14px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; line-height: 1.8; }
.shell main { min-width: 0; padding: 0 clamp(24px, 5vw, 84px) 90px; }

.intro { position: relative; isolation: isolate; overflow: hidden; max-width: 1180px; min-height: 315px; padding: 62px 0 46px; border-bottom: 1px solid var(--line-strong); }
.intro::before { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; top: -150px; right: 2%; border-radius: 50%; background: radial-gradient(circle, #a022303d 0%, #51151e2a 34%, transparent 70%); filter: blur(7px); }
.intro::after { content: 'S'; position: absolute; z-index: -1; right: 8%; top: -64px; color: transparent; -webkit-text-stroke: 1px #ef444428; font: italic 390px/.9 Georgia, serif; transform: rotate(-9deg); }
.eyebrow, .step-label { display: flex; align-items: center; gap: 14px; color: var(--gold); font: 700 10px/1.5 Manrope, sans-serif; letter-spacing: .24em; }
.eyebrow-line { width: 28px; height: 1px; background: var(--gold); opacity: .6; }
.intro h1 { margin: 21px 0 20px; max-width: 780px; font: 800 clamp(48px, 5.7vw, 82px)/1.03 Manrope, 'Segoe UI', sans-serif; letter-spacing: -.07em; text-wrap: balance; }
.intro h1 em { color: #ff686e; font-style: normal; font-weight: 800; }
.intro p { max-width: 645px; margin: 0; color: var(--soft); font-size: 15px; line-height: 1.75; }
.intro-meta { display: flex; flex-wrap: wrap; gap: 9px 28px; margin-top: 28px; color: var(--dim); font: 600 10px Manrope, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.intro-meta span { display: flex; align-items: baseline; gap: 8px; }
.intro-meta b { color: var(--gold); font-size: 11px; }

.page { display: none; max-width: 1180px; margin-top: 34px; padding: clamp(25px, 3.5vw, 48px); background: linear-gradient(145deg, #22242a 0%, #17191e 48%, #14161a 100%); border: 1px solid #ffffff1f; border-radius: 18px; box-shadow: 0 28px 80px #00000055, inset 0 1px #ffffff12; scroll-margin-top: 22px; }
.page.active { display: block; animation: emerge .22s ease-out; }
@keyframes emerge { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.page h2 { margin: 10px 0 9px; font: 800 clamp(27px, 3.1vw, 39px)/1.13 Manrope, sans-serif; letter-spacing: -.055em; }
.page-heading p { max-width: 740px; margin: 0; color: var(--soft); font-size: 13px; line-height: 1.7; }
.source-grid, .ai-grid, .compose-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.drop { min-height: 316px; padding: 32px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 11px; text-align: center; border: 1px dashed #ef4444a0; border-radius: 14px; background: radial-gradient(circle at 50% 20%, #ef444418, transparent 70%), #191b20; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.drop:hover, .drop.dragging { border-color: var(--gold-light); background: #24262c; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop-icon { display: grid; place-items: center; width: 61px; height: 61px; margin-bottom: 11px; border: 1px solid #ef444470; border-radius: 50%; color: var(--gold-light); font: 300 35px/1 Manrope, sans-serif; }
.drop strong { font: 600 16px Manrope, sans-serif; }
.drop > span:last-child { color: var(--dim); font-size: 11px; }
.source-card, .ai-result { min-width: 0; padding: 15px; border: 1px solid #ffffff2b; border-radius: 14px; background: #111317; }
.source-image, .working-image { height: 248px; min-height: 248px; overflow: hidden; display: flex; justify-content: center; align-items: center; text-align: center; color: #fff; font-size: 12px; background: repeating-conic-gradient(#25282e 0 25%, #1b1e23 0 50%) 0 0 / 18px 18px; }
.source-image img, .working-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.source-meta { padding: 15px 4px 3px; overflow-wrap: anywhere; color: var(--soft); font-size: 11px; }
.source-thumbnails { display: flex; gap: 7px; overflow-x: auto; margin-top: 10px; }
.source-thumb { flex: 0 0 94px; min-width: 0; padding: 5px; border: 1px solid #ffffff30; border-radius: 8px; background: #1c1e23; }
.source-thumb img { display: block; width: 100%; height: 58px; object-fit: contain; border-radius: 4px; background: #101216; }
.source-thumb span { display: block; overflow: hidden; margin-top: 5px; color: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.details label, .ai-form label, .controls label { display: grid; gap: 9px; color: #fff; font: 700 12px Manrope, sans-serif; letter-spacing: .015em; }
.details label span { color: var(--dim); font-weight: 400; }
.details input, .ai-form textarea, .ai-form select, .controls select { width: 100%; padding: 13px 14px; border: 1px solid #ffffff36; border-radius: 10px; outline: none; background: #0d0f12; color: #fff; font: 400 14px 'DM Sans', sans-serif; transition: border-color .18s ease, box-shadow .18s ease; }
.details input::placeholder, .ai-form textarea::placeholder { color: #abb0b8; }
.details input:focus, .ai-form textarea:focus, .ai-form select:focus, .controls select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #ef444417; }
.select-shell { position: relative; width: 100%; min-width: 0; font: 600 13px Manrope, sans-serif; }
.select-shell .native-select { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid #ffffff55; border-radius: 10px; background: #101216; color: #fff; text-align: left; font: 700 13px Manrope, sans-serif; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.select-trigger::after { content: ''; flex: 0 0 auto; width: 8px; height: 8px; margin: -4px 2px 0 0; border-right: 2px solid #ff777f; border-bottom: 2px solid #ff777f; transform: rotate(45deg); transition: transform .18s ease; }
.select-shell.open .select-trigger { border-color: #ff6971; background: #19161a; box-shadow: 0 0 0 3px #ef444423; }
.select-shell.open .select-trigger::after { margin-top: 4px; transform: rotate(225deg); }
.select-menu { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; right: 0; max-height: 270px; overflow: auto; padding: 6px; border: 1px solid #f0444b88; border-radius: 12px; background: #17191e; box-shadow: 0 22px 44px #000b; }
.select-option { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; color: #fff; text-align: left; font: 600 12px Manrope, sans-serif; }
.select-option:hover, .select-option:focus-visible { background: #3b1e25; outline: none; }
.select-option[aria-selected="true"] { background: #ae2635; color: #fff; }
.select-option[aria-selected="true"]::after { content: '✓'; color: #fff; font-weight: 800; }
.instant-results { margin-top: 28px; padding: 24px; border: 1px solid #ef44445b; background: linear-gradient(145deg, #27191d, #1a1012); scroll-margin-top: 24px; }
.instant-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 19px; }
.instant-heading h3 { margin: 6px 0; font: 400 clamp(22px, 2.5vw, 31px) Georgia, serif; }
.instant-heading p { max-width: 680px; margin: 0; color: var(--soft); font-size: 11px; line-height: 1.65; }
.instant-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.instant-card { min-width: 0; display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); background: #101115; }
.instant-card canvas { width: auto; height: auto; max-width: 100%; max-height: 135px; min-height: 110px; margin: auto; object-fit: contain; }
.instant-card strong { margin-top: 11px; font: 700 11px Manrope, sans-serif; }
.instant-card span { margin: 4px 0 11px; color: var(--dim); font-size: 10px; }
.instant-card button { width: 100%; min-height: 37px; padding: 8px; font-size: 10px; }
.ai-form { display: grid; align-content: start; gap: 18px; }
.ai-connect { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); gap: 30px; align-items: center; margin-bottom: 25px; padding: 25px; border: 1px solid #f0444b88; border-radius: 14px; background: linear-gradient(120deg, #391b22, #1b1d22); }
.ai-connection-state { display: inline-flex; align-items: center; gap: 9px; margin: -8px 0 22px; padding: 9px 13px; border: 1px solid #f0444b88; border-radius: 999px; background: #391b22; color: #fff; font: 700 11px Manrope, sans-serif; }
.ai-connection-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff717a; }
.ai-connection-state.ready { border-color: #3a9f6a88; background: #173126; }
.ai-connection-state.ready::before { background: #6ce5a1; }
.ai-connect h3 { margin: 9px 0; font: 800 26px Manrope, sans-serif; letter-spacing: -.04em; }
.ai-connect p { max-width: 590px; margin: 0; color: var(--soft); font-size: 12px; line-height: 1.7; }
.auto-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 22px; margin-bottom: 27px; padding: 19px 21px; border: 1px solid #ffffff38; border-radius: 12px; background: linear-gradient(120deg, #24262c, #17191e); }
.auto-panel strong { display: block; color: #fff; font: 800 16px Manrope, sans-serif; }
.auto-panel span { display: block; margin-top: 5px; color: var(--soft); font-size: 12px; line-height: 1.55; }
.auto-panel .auto-status { grid-column: 1 / -1; min-height: 18px; margin: 0; color: #fff; font-size: 12px; line-height: 1.5; }
.field-ai-button { justify-self: start; min-height: 31px; padding: 6px 10px; border: 1px solid #f0444b8c; border-radius: 7px; background: #391b22; color: #fff; font: 700 11px Manrope, sans-serif; }
.field-ai-button:hover { background: #5a202b; border-color: #ff737b; }
.connect-form { display: grid; gap: 8px; }
.connect-form label { color: #fff; font: 700 12px Manrope, sans-serif; }
.connect-form input { width: 100%; min-height: 43px; padding: 11px; border: 1px solid var(--gold); border-radius: 10px; background: #13090c; color: #fff; }
.connect-form button { width: 100%; }
.gemini-feedback { min-height: 32px; margin: 3px 0 0; color: #fff; font-size: 12px; line-height: 1.5; }
.gemini-feedback.error { padding: 9px 11px; border: 1px solid #ff737b88; border-radius: 8px; background: #571e27; color: #fff; }
.concept-section { margin-bottom: 26px; }
.concept-heading { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; margin-bottom: 11px; }
.concept-heading p { margin: 0; color: var(--dim); font-size: 11px; }
.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.concept-grid button { min-height: 110px; padding: 17px; border: 1px solid #ffffff33; border-radius: 12px; background: #111317; color: #fff; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.concept-grid button:hover, .concept-grid button.active { border-color: #ff6971; background: #ef444422; transform: translateY(-2px); }
.concept-grid strong { display: block; margin-bottom: 8px; font: 800 17px Manrope, sans-serif; letter-spacing: -.025em; }
.concept-grid span { color: var(--soft); font-size: 11px; line-height: 1.55; }
.ai-form textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.auto-description { justify-self: start; margin-top: 2px; }
.ai-form .actions { margin-top: 0; }
.ai-result { padding: 17px; }
.result-label { display: flex; justify-content: space-between; gap: 12px; margin: 1px 0 14px; color: var(--gold); font: 700 10px Manrope, sans-serif; letter-spacing: .15em; }
.result-label span { color: var(--soft); font-weight: 500; letter-spacing: 0; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.comparison > div { min-width: 0; }
.comparison-label { display: block; margin-bottom: 7px; color: var(--dim); font: 700 9px Manrope, sans-serif; letter-spacing: .1em; }
.working-image { height: 360px; min-height: 360px; padding: 8px; color: #fff; line-height: 1.5; }
.result-download { width: 100%; margin-top: 12px; }
.helper { margin: 9px 0 0; color: var(--dim); font-size: 11px; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.primary, .secondary { min-height: 47px; padding: 12px 19px; border-radius: 10px; color: #fff; font: 800 12px Manrope, sans-serif; letter-spacing: .01em; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.primary { border: 1px solid #f14955; background: linear-gradient(135deg, #e63b48 0%, #b91e31 100%); box-shadow: 0 9px 25px #d1293b35; }
.primary:hover:not(:disabled) { background: linear-gradient(135deg, #f24d59, #ce273a); transform: translateY(-2px); box-shadow: 0 13px 28px #d1293b45; }
.secondary { border: 1px solid #ef44448c; background: #24171b; }
.secondary:hover:not(:disabled) { background: #472027; border-color: #ff6971; transform: translateY(-1px); }
.primary:disabled, .secondary:disabled { cursor: not-allowed; color: #fff; background: #4e5159; border-color: #676b74; box-shadow: none; opacity: 1; }

.profile-list { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 6px; }
.profile-list button { flex: 0 0 auto; min-width: 148px; padding: 14px 16px; border: 1px solid #ffffff36; border-radius: 10px; background: #111317; color: #fff; text-align: left; font: 600 11px Manrope, sans-serif; }
.profile-list button:hover { border-color: #ef444470; }
.profile-list button.active { border-color: #ff6971; background: #ef444429; color: #fff; }
.profile-list strong { display: block; margin-bottom: 4px; color: var(--cream); font: 700 12px Manrope, sans-serif; }
.editor-preview { display: grid; place-items: center; align-content: start; padding: 24px; border: 1px solid #ffffff2b; border-radius: 14px; background: radial-gradient(circle at 50% 45%, #78252f3a, transparent 65%), #101115; }
.preview-wrap { position: relative; display: grid; place-items: center; width: 100%; min-height: 340px; }
.preview-wrap canvas { width: auto; height: auto; max-width: 100%; max-height: 540px; background: #fff; box-shadow: 0 20px 38px #0007; }
.preview-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: var(--soft); text-align: center; font-size: 12px; }
.preview-caption { margin-top: 15px; color: var(--gold); font: 600 10px Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.preview-download { width: min(100%, 300px); margin-top: 16px; }
.controls { display: grid; align-content: start; gap: 19px; padding: 27px; border: 1px solid #ffffff2b; border-radius: 14px; background: #111317; }
.controls h3 { margin: 0 0 5px; font: 800 22px Manrope, sans-serif; letter-spacing: -.04em; }
.control-title { display: block; margin-bottom: 10px; color: #fff; font: 700 12px Manrope, sans-serif; }
.look-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.look-list button { min-height: 40px; border: 1px solid #ffffff36; border-radius: 8px; background: #191b20; color: #fff; font: 700 11px Manrope, sans-serif; }
.look-list button:hover { border-color: var(--gold); color: var(--cream); }
.look-list button.active { border-color: #ff6971; background: #ef444429; color: #fff; }
.controls input[type=color] { width: 75px; height: 43px; padding: 4px; border: 1px solid var(--line-strong); background: var(--night); }
.controls input[type=range] { width: 100%; accent-color: var(--gold); }
.controls label span { color: var(--dim); font-size: 10px; }
.controls .toggle { display: flex; align-items: center; gap: 9px; line-height: 1.5; }
.controls .toggle input { accent-color: var(--gold); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.metric { min-width: 0; padding: 21px; border: 1px solid #ffffff2b; border-radius: 12px; background: #111317; }
.metric small { display: block; margin-bottom: 12px; color: var(--dim); font: 600 10px Manrope, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.metric strong { color: var(--gold-light); font: 400 25px Georgia, serif; overflow-wrap: anywhere; }
.metric p { margin: 10px 0 0; color: var(--soft); font-size: 11px; line-height: 1.65; }
.quality-notes { margin-top: 18px; padding: 21px 24px; border-left: 2px solid var(--gold); background: #ef44440d; color: var(--soft); font-size: 12px; line-height: 1.7; }
.quality-notes strong { color: var(--gold-light); }
.quality-notes ul { margin: 9px 0 0; padding-left: 18px; }
.empty { padding: 25px; color: var(--dim); font-size: 12px; }
.export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.export-card { min-width: 0; padding: 16px; border: 1px solid #ffffff2b; border-radius: 12px; background: #111317; }
.export-preview { display: grid; place-items: center; height: 230px; overflow: hidden; background: #27292e; }
.export-preview canvas { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.export-card h3 { margin: 16px 0 5px; font: 800 18px Manrope, sans-serif; letter-spacing: -.03em; }
.export-card p { margin: 0 0 14px; color: var(--dim); font-size: 11px; }
.export-card button { width: 100%; }
.export-note { margin: 21px 0 0; color: var(--dim); font-size: 11px; line-height: 1.7; }
[hidden] { display: none !important; }

@media (max-width: 1020px) {
  .shell { grid-template-columns: 1fr; }
  .rail { padding: 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail::after, .rail-heading, .rail-note, .rail nav::before { display: none; }
  .rail nav { display: flex; gap: 0; overflow-x: auto; }
  .rail button { flex: 0 0 auto; width: auto; min-height: 62px; padding: 8px 16px; white-space: nowrap; }
  .rail button.active::after { display: none; }
  .rail button b { width: 28px; height: 28px; }
  .shell main { padding: 0 30px 70px; }
  .intro { min-height: 275px; padding-top: 45px; }
  .instant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-connect { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .auto-panel { grid-template-columns: 1fr; }
  .auto-panel .auto-status { grid-column: 1; }
  .topbar { height: 70px; padding: 0 20px; }
  .privacy { display: none; }
  .brand { font-size: 15px; }
  .brand-mark { width: 36px; height: 36px; }
  .rail { padding: 0 12px; }
  .rail button { min-height: 54px; gap: 9px; padding: 6px 11px; font-size: 11px; }
  .shell main { padding: 0 16px 58px; }
  .intro { min-height: 0; padding: 41px 6px 35px; }
  .intro::after { font-size: 265px; right: -4%; top: -17px; }
  .intro h1 { font-size: clamp(45px, 11vw, 68px); }
  .intro p { font-size: 12px; }
  .intro-meta { gap: 8px 14px; font-size: 9px; }
  .page { margin-top: 20px; padding: 22px; }
  .page-heading { margin-bottom: 22px; }
  .source-grid, .ai-grid, .compose-grid, .details, .metric-grid, .export-grid { grid-template-columns: 1fr; }
  .concept-heading { display: block; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-grid button { min-height: 0; }
  .drop { min-height: 230px; }
  .working-image { height: 250px; min-height: 250px; }
  .source-image { height: 220px; min-height: 220px; }
  .instant-results { padding: 16px; }
  .instant-heading { flex-direction: column; align-items: stretch; }
  .instant-grid { gap: 8px; }
  .instant-card canvas { max-height: 100px; min-height: 85px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .page.active { animation: none; } .primary, .secondary { transition: none; } }

