:root {
  color-scheme: light;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: #202c3a;
  background: #f5f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, .asset-upload:focus-within { outline: 3px solid #547eb8; outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.app-header { height: 84px; padding: 0 clamp(22px, 3vw, 46px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fdfdfd; border-bottom: 1px solid #e1e5e9; }
.app-identity, .app-header-right { display: flex; align-items: center; }
.app-identity { gap: 16px; }
.app-identity > div { min-width: 0; }
.app-logo { display: block; width: clamp(130px, 12vw, 176px); height: auto; flex: 0 0 auto; object-fit: contain; }
.app-identity-divider { width: 1px; height: 33px; flex: 0 0 auto; background: #d9e0e6; }
.eyebrow, .section-index { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #788797; }
.app-identity h1 { margin: 0; max-width: 460px; font-size: 18px; letter-spacing: -.035em; line-height: 1.15; }
.app-header-right { gap: 10px; flex: 0 0 auto; }
.local-status { display: inline-flex; align-items: center; gap: 9px; color: #66788a; font-size: 12px; font-weight: 600; white-space: nowrap; }
.local-status > span { width: 7px; height: 7px; border-radius: 50%; background: #4d9b7c; box-shadow: 0 0 0 4px #e8f5ef; }
.reset-button { border: 1px solid #ccd5dd; border-radius: 5px; background: #fff; padding: 10px 16px; color: #2c4053; font-size: 12px; font-weight: 750; transition: background .2s, border-color .2s; }
.reset-button:hover { background: #f1f5f7; border-color: #a9b9c6; }

.workspace { min-height: calc(100vh - 84px); display: grid; grid-template-columns: minmax(332px, 382px) minmax(0, 1fr); }
.editor { background: #fff; border-right: 1px solid #e1e5e9; padding: 36px 30px 34px clamp(22px, 3vw, 46px); }
.editor-intro { padding-bottom: 27px; border-bottom: 1px solid #e6eaf0; }
.editor-intro h2, .preview-toolbar h2 { margin: 11px 0 9px; font-size: 25px; font-weight: 730; letter-spacing: -.045em; line-height: 1.12; }
.editor-intro > p:last-child { margin: 0; max-width: 295px; color: #718092; line-height: 1.55; font-size: 13px; }
.control-section { padding: 26px 0 28px; border-bottom: 1px solid #e6eaf0; }
.section-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.section-heading > span { color: #9aabb9; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.section-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.control-fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.control-fieldset legend, .color-field > label, .text-field > label { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 750; color: #34475c; }
.template-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.template-option { display: flex; flex-direction: column; gap: 9px; border: 1px solid #dbe2e9; border-radius: 7px; padding: 9px; color: #637488; font-size: 11px; font-weight: 700; cursor: pointer; transition: border-color .18s, background .18s; }
.template-option:has(input:checked) { border-color: #426e9d; background: #f2f7fc; color: #233e5b; box-shadow: inset 0 0 0 1px #426e9d; }
.template-option:has(input:focus-visible) { outline: 3px solid #547eb8; outline-offset: 3px; }
.template-option input { position: absolute; opacity: 0; pointer-events: none; }
.template-illustration { height: 57px; border-radius: 3px; background: #d5e0e7; position: relative; overflow: hidden; }
.template-illustration span { position: absolute; width: 31px; height: 38px; left: calc(50% - 15px); top: 10px; border-radius: 2px; background: #fff; box-shadow: 0 2px 7px #26394925; }
.template-illustration.partial::after { content: ""; position: absolute; inset: 0 0 0 62%; background: #fff; }
.template-illustration.partial span { z-index: 1; left: auto; right: 5%; top: 16px; width: 28%; height: 26px; background: linear-gradient(#a9b7c4 0 3px, transparent 3px 10px, #d1d9df 10px 12px, transparent 12px 19px, #84a7c8 19px); box-shadow: none; }
.color-field { margin-bottom: 18px; }
.color-field > label { display: block; }
.color-input-wrap { display: flex; align-items: center; gap: 8px; border: 1px solid #dbe2e9; border-radius: 5px; height: 43px; padding: 5px 8px; }
#background-color { width: 29px; height: 29px; border: 0; padding: 0; border-radius: 3px; background: none; cursor: pointer; }
#background-color::-webkit-color-swatch-wrapper { padding: 0; }
#background-color::-webkit-color-swatch { border: 1px solid #bac4ce; border-radius: 3px; }
#background-color-text { width: 100%; border: 0; outline: 0; color: #35485b; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.field-note { margin: 7px 0 0; color: #8795a3; font-size: 11px; line-height: 1.4; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #f0f2f5; padding: 15px 0; }
.switch-row:last-child { padding-bottom: 0; }
.switch-row label { display: block; font-size: 12px; font-weight: 750; color: #34475c; cursor: pointer; }
.switch-row p { margin: 4px 0 0; color: #8b98a5; font-size: 11px; }
.switch-input { appearance: none; flex: 0 0 auto; width: 35px; height: 20px; margin: 0; border-radius: 20px; background: #ccd5dd; position: relative; cursor: pointer; transition: background .2s; }
.switch-input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #25384e33; transition: transform .2s; }
.switch-input:checked { background: #3a6997; }
.switch-input:checked::before { transform: translateX(15px); }
.section-description { margin: -10px 0 17px; font-size: 11px; line-height: 1.5; color: #8492a0; }
.asset-list { display: grid; gap: 0; }
.asset-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 77px; padding: 10px 0; border-top: 1px solid #edf0f3; }
.asset-row:last-child { border-bottom: 1px solid #edf0f3; }
.asset-thumbnail { width: 78px; height: 44px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px dashed #c7d1db; border-radius: 4px; background: #fff; }
.asset-thumbnail span { color: #a1afbc; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.asset-thumbnail img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; display: none; }
.asset-row.has-image .asset-thumbnail span { display: none; }
.asset-row.has-image .asset-thumbnail img { display: block; }
.asset-row[data-asset="background"] .asset-thumbnail { background: var(--asset-surface, #eef1f5); }
.asset-row[data-asset="background"] .asset-thumbnail img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.asset-row[data-asset="squareDark"] .asset-thumbnail { background: #2c3642; border-color: #677789; }
.asset-row[data-asset="squareDark"] .asset-thumbnail span { color: #a9b9c7; }
.asset-content { min-width: 0; }
.asset-content strong { display: block; font-size: 11px; font-weight: 750; line-height: 1.35; }
.asset-content small { display: block; margin-top: 3px; color: #8a98a6; font-size: 9px; line-height: 1.25; }
.asset-status { margin: 4px 0 0; color: #9aa7b3; font-size: 10px; line-height: 1.3; overflow-wrap: anywhere; }
.asset-status.warning { color: #a75e1c; }
.asset-status.error { color: #b34343; }
.asset-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.asset-upload { position: relative; display: inline-block; border: 1px solid #d8e0e7; border-radius: 4px; padding: 6px 9px; color: #365b80; background: white; font-size: 10px; font-weight: 750; cursor: pointer; }
.asset-upload:hover { background: #f2f7fa; }
.asset-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.asset-remove { border: 0; background: none; padding: 0; color: #8e6470; font-size: 10px; text-decoration: underline; }
.asset-remove:hover { color: #a32e4b; }
.text-field + .text-field { margin-top: 20px; }
.text-field label { display: block; }
.text-field input, .text-field textarea { width: 100%; border: 1px solid #d8e0e7; border-radius: 5px; background: #fff; color: #314358; padding: 11px 12px; font-size: 12px; line-height: 1.4; resize: vertical; }
.text-field input:focus, .text-field textarea:focus { border-color: #527a9f; }
.export-button { border: 1px solid #1f5f99; border-radius: 5px; padding: 10px 14px; background: #1767aa; color: #fff; font-size: 12px; font-weight: 750; white-space: nowrap; }
.export-button:hover { background: #0e548e; }
.export-button:disabled { opacity: .65; cursor: wait; }
.export-status { position: fixed; z-index: 50; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); margin: 0; padding: 12px 15px; border: 1px solid #bfd8eb; border-radius: 6px; background: #f3f9fd; box-shadow: 0 8px 25px #20324725; color: #365a78; font-size: 12px; line-height: 1.4; opacity: 1; transform: translateY(0); transition: opacity 220ms cubic-bezier(.25, 1, .5, 1), transform 220ms cubic-bezier(.25, 1, .5, 1); }
.export-status:empty { display: none; }
.export-status:not(:empty) { animation: export-toast-enter 260ms cubic-bezier(.25, 1, .5, 1); }
.export-status.is-leaving { opacity: 0; transform: translateY(8px); pointer-events: none; }
.export-status.error { border-color: #e4b6b6; background: #fff5f5; color: #a33434; }
@keyframes export-toast-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.editor-footnote { margin: 24px 0 0; color: #91a0ad; font-size: 10px; line-height: 1.5; }
.editor-footnote a { color: #456c94; text-decoration: none; border-bottom: 1px solid #a9bfd4; }

.preview-area { min-width: 0; padding: 38px clamp(24px, 4vw, 62px) 50px; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 22px; max-width: 1180px; margin: 0 auto 18px; }
.preview-toolbar h2 { margin-bottom: 0; }
.preview-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.theme-switch, .viewport-switch { display: flex; gap: 3px; border: 1px solid #dce3e9; background: #edf0f3; border-radius: 6px; padding: 3px; }
.theme-button, .viewport-button { display: inline-flex; gap: 7px; align-items: center; border: 0; border-radius: 4px; background: transparent; color: #7a8998; padding: 8px 11px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.theme-button.active, .viewport-button.active { background: #fff; color: #263f59; box-shadow: 0 1px 3px #20324717; }
.step-toolbar { display: flex; align-items: center; gap: 14px; max-width: 1180px; margin: 0 auto 15px; }
.step-label { color: #667789; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.step-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.step-button { border: 1px solid #dce3e9; border-radius: 5px; padding: 8px 11px; background: #f8fafb; color: #607184; font-size: 11px; font-weight: 700; white-space: nowrap; }
.step-button:hover { border-color: #9bb5cc; color: #294c6d; }
.step-button.active { border-color: #315f88; background: #e8f1f8; color: #214f78; }
.step-button:focus-visible { outline: 2px solid #315f88; outline-offset: 2px; }
.desktop-icon { width: 13px; height: 9px; border: 1.5px solid currentColor; border-radius: 1px; position: relative; }
.desktop-icon::after { content: ""; position: absolute; width: 7px; height: 2px; border-top: 1.5px solid currentColor; bottom: -4px; left: 2px; }
.mobile-icon { width: 8px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; }
.preview-stage { display: grid; place-items: center; min-height: 648px; max-width: 1180px; margin: 0 auto; padding: 22px; border: 1px solid #e2e7eb; border-radius: 10px; background: repeating-linear-gradient(45deg, #f0f2f4 0 12px, #f4f5f7 12px 24px); }
.browser-window { width: 100%; max-width: 1120px; border: 1px solid #d2d8df; border-radius: 9px; overflow: hidden; background: #fff; box-shadow: 0 22px 60px #293d541e, 0 2px 8px #293d5410; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.browser-bar { height: 43px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border-bottom: 1px solid #e1e4e7; background: #f9fafb; color: #84919c; font-size: 10px; }
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c2ccd4; }
.browser-tab { display: flex; align-items: center; gap: 6px; align-self: end; height: 34px; padding: 0 12px; min-width: 133px; border: 1px solid #e1e4e7; border-bottom: 0; border-radius: 6px 6px 0 0; background: white; color: #526172; }
.browser-favicon { width: 10px; height: 10px; display: inline-block; background-color: transparent; background-position: center; background-size: contain; background-repeat: no-repeat; }
.browser-address { flex: 1; max-width: 310px; border: 1px solid #e2e6e9; border-radius: 4px; padding: 6px 11px; background: #f2f4f6; color: #a0aab3; }
.preview-canvas { height: clamp(535px, 51vw, 650px); min-height: 535px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #eef1f5; font-family: "Segoe UI", Arial, sans-serif; color: #1b1b1b; isolation: isolate; }
.preview-canvas[data-step="verification"] { height: clamp(600px, 51vw, 650px); min-height: 600px; }
.scene-art { position: absolute; z-index: -2; inset: 0; background-size: cover; background-position: center; }
.preview-canvas[data-template="partial"] { --split-pane-width: clamp(320px, 38%, 440px); justify-content: flex-end; }
.preview-canvas[data-template="partial"] .scene-art { right: var(--split-pane-width); }
.preview-canvas[data-template="partial"]::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 calc(100% - var(--split-pane-width)); background: #fff; }
.login-card { width: 440px; min-height: 338px; padding: 43px 44px 32px; background: #fff; box-shadow: 0 3px 15px #26374b27; position: relative; z-index: 1; }
.preview-canvas[data-template="partial"] .login-card { width: var(--split-pane-width); height: 100%; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 70px 34px 85px; box-shadow: none; }
.card-logo, .header-logo { display: flex; align-items: center; gap: 6px; min-height: 27px; color: #5e5e5e; font-family: "Segoe UI", Arial, sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.card-logo img, .header-logo img { display: block; width: 100%; max-width: 245px; height: 36px; object-fit: contain; object-position: left center; }
.ms-mark { display: grid; flex: 0 0 auto; grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); gap: 2px; width: 22px; height: 22px; }
.ms-mark i:nth-child(1) { background: #f35325; }
.ms-mark i:nth-child(2) { background: #81bc06; }
.ms-mark i:nth-child(3) { background: #05a6f0; }
.ms-mark i:nth-child(4) { background: #ffba08; }
.login-card h3 { margin: 22px 0 20px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.account-identity { display: flex; align-items: center; gap: 10px; margin: 17px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.back-arrow { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.login-step:has(.account-identity) h3 { margin-top: 15px; }
.fake-input { height: 34px; border-bottom: 1px solid #6b6b6b; display: flex; align-items: flex-start; color: #656565; font-size: 15px; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-note { margin-top: 15px; font-size: 12px; color: #262626; }
.account-note span, .fake-actions > span:first-child:not(.fake-next):not(.fake-secondary) { color: #0067b8; }
.fake-link { color: #0067b8; font-size: 12px; }
.step-description { margin: 0; font-size: 14px; line-height: 1.5; }
.verification-number { margin: 17px 0 12px; text-align: center; font-size: 32px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.verification-help { margin: 0; color: #555; font-size: 12px; line-height: 1.45; }
.step-link { margin-top: 17px; line-height: 1.35; }
.fake-checkbox { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; }
.fake-checkbox > span { display: inline-block; width: 18px; height: 18px; border: 1px solid #616161; }
.page-text { margin: 18px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; color: #424242; max-height: 108px; overflow: auto; }
.fake-actions { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 12px; }
.fake-actions-end { justify-content: flex-end; }
.fake-next { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; height: 33px; background: #0067b8; color: white; font-size: 14px; }
.fake-secondary { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; height: 33px; background: #e8e8e8; color: #1b1b1b; font-size: 14px; }
.preview-header { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 70px; display: flex; align-items: center; padding: 0 4.5%; background: #fff; }
.preview-footer { position: absolute; z-index: 2; right: 0; bottom: 0; min-height: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 26px; width: 100%; padding: 6px 4.5%; background: transparent; color: var(--footer-text-color, #303942); font-size: 10px; }
.preview-canvas[data-template="full"] .preview-footer:is(.has-background, .background-always-visible) { background: #0008; color: #fff; }
.preview-header[hidden], .preview-footer[hidden], .page-text[hidden] { display: none; }
.preview-canvas[data-template="partial"] .preview-footer { width: var(--split-pane-width); padding: 12px 25px; color: #616161; }
.preview-notes { max-width: 1180px; margin: 19px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 17px; align-items: start; }
.note-primary { display: flex; gap: 11px; align-items: flex-start; padding: 16px 17px; border: 1px solid #e1e7eb; border-radius: 7px; background: #fbfcfd; }
.note-icon { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 auto; border: 1px solid #91a8b8; color: #5a7890; border-radius: 50%; font-family: Georgia, serif; font-size: 12px; font-style: italic; }
.note-primary p { margin: 0; color: #7d8a96; font-size: 11px; line-height: 1.5; }
.note-primary strong { color: #4c6173; }
.square-panel { display: flex; gap: 25px; align-items: center; padding: 14px 16px; border: 1px solid #e1e7eb; border-radius: 7px; background: #fbfcfd; }
.square-panel-heading { max-width: 170px; }
.square-panel h3 { margin: 0 0 4px; font-size: 11px; }
.square-panel p { margin: 0; color: #8996a3; font-size: 10px; line-height: 1.4; }
.square-samples { display: flex; gap: 8px; }
.square-sample { width: 69px; height: 69px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid #e0e5e9; border-radius: 4px; background: white; }
.square-sample.dark { background: #2c3642; border-color: #2c3642; }
.square-sample.current { outline: 2px solid #527da7; outline-offset: 2px; }
.square-logo { width: 30px; height: 30px; display: grid; place-items: center; }
.square-logo img { width: 100%; height: 100%; object-fit: contain; }
.square-sample small { color: #8997a4; font-size: 8px; }
.square-sample.dark small { color: #b9c6d0; }

.browser-window[data-theme="dark"] { border-color: #38424c; background: #202020; }
.browser-window[data-theme="dark"] .browser-bar { background: #252b31; border-bottom-color: #3b4651; color: #b5c1ca; }
.browser-window[data-theme="dark"] .browser-dots i { background: #65717b; }
.browser-window[data-theme="dark"] .browser-tab { background: #303842; border-color: #46515b; color: #d9e0e5; }
.browser-window[data-theme="dark"] .browser-address { background: #1e252c; border-color: #3d4852; color: #b0bcc5; }
.preview-canvas[data-theme="dark"] { color: #f2f2f2; color-scheme: dark; }
.preview-canvas[data-theme="dark"] .login-card { background: #202020; box-shadow: 0 3px 18px #0007; }
.preview-canvas[data-theme="dark"] .card-logo, .preview-canvas[data-theme="dark"] .header-logo { color: #f0f0f0; }
.preview-canvas[data-theme="dark"] .fake-input { color: #d4d4d4; border-bottom-color: #a7a7a7; }
.preview-canvas[data-theme="dark"] .account-note { color: #e2e2e2; }
.preview-canvas[data-theme="dark"] .account-note span, .preview-canvas[data-theme="dark"] .fake-actions > span:first-child:not(.fake-next):not(.fake-secondary) { color: #80bcf3; }
.preview-canvas[data-theme="dark"] .fake-link { color: #80bcf3; }
.preview-canvas[data-theme="dark"] .verification-help { color: #c8c8c8; }
.preview-canvas[data-theme="dark"] .fake-secondary { background: #383838; color: #f2f2f2; }
.preview-canvas[data-theme="dark"] .fake-checkbox > span { border-color: #ddd; }
.preview-canvas[data-theme="dark"] .page-text { color: #d2d2d2; }
.preview-canvas[data-theme="dark"] .fake-next { background: #0f6cbd; }
.preview-canvas[data-theme="dark"] .preview-header { background: #202020; }
.preview-canvas[data-template="partial"][data-theme="dark"]::after { background: #202020; }
.preview-canvas[data-template="partial"][data-theme="dark"] .login-card { box-shadow: none; }
.preview-canvas[data-template="partial"][data-theme="dark"] .preview-footer { color: #d0d0d0; }

.preview-stage.mobile .browser-window { width: min(390px, 100%); }
.preview-stage.mobile .browser-dots, .preview-stage.mobile .browser-address { display: none; }
.preview-stage.mobile .browser-bar { height: 37px; }
.preview-stage.mobile .browser-tab { height: 30px; align-self: center; border-bottom: 1px solid #e1e4e7; border-radius: 5px; }
.preview-stage.mobile .browser-window[data-theme="dark"] .browser-tab { border-bottom-color: #46515b; }
.preview-stage.mobile .preview-canvas { height: 650px; min-height: 650px; align-items: flex-start; padding: 95px 0 0; }
.preview-stage.mobile .scene-art { right: 0; }
.preview-stage.mobile .preview-canvas[data-template="partial"] { padding: 0; align-items: stretch; }
.preview-stage.mobile .preview-canvas[data-template="partial"] .scene-art, .preview-stage.mobile .preview-canvas[data-template="partial"]::after { display: none; }
.preview-stage.mobile .login-card { width: calc(100% - 24px); min-height: 315px; padding: 32px 28px 27px; }
.preview-stage.mobile .preview-canvas[data-template="partial"] .login-card { width: 100%; height: 100%; padding: 70px 32px 85px; }
.preview-stage.mobile .preview-header { height: 60px; padding: 0 24px; }
.preview-stage.mobile .preview-footer { padding: 7px 15px 24px; gap: 12px; font-size: 9px; }
.preview-stage.mobile .preview-canvas[data-template="partial"] .preview-footer { width: 100%; padding: 7px 15px 24px; }

@media (max-width: 1200px) {
  .preview-notes { grid-template-columns: 1fr; }
  .square-panel { justify-content: space-between; }
  .square-panel-heading { max-width: none; }
}
@media (max-width: 930px) {
  .local-status { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .editor { border-right: 0; border-bottom: 1px solid #e1e5e9; padding: 30px clamp(22px, 5vw, 46px); }
  .editor-intro > p:last-child { max-width: 550px; }
  .asset-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; }
  .asset-row:nth-last-child(2) { border-bottom: 1px solid #edf0f3; }
  .preview-area { padding: 34px clamp(22px, 5vw, 46px) 50px; }
}
@media (max-width: 630px) {
  .app-header { height: auto; min-height: 92px; padding: 12px 20px; flex-wrap: wrap; gap: 10px; }
  .app-identity { width: 100%; gap: 11px; }
  .app-header-right { width: 100%; justify-content: flex-end; gap: 8px; }
  .app-logo { width: 108px; }
  .app-identity-divider { height: 28px; }
  .app-identity h1 { font-size: 15px; }
  .local-status { display: none; }
  .reset-button { padding: 8px 10px; }
  .export-button { padding: 8px 10px; }
  .asset-list { grid-template-columns: 1fr; }
  .asset-row:nth-last-child(2) { border-bottom: 0; }
  .preview-toolbar { align-items: start; flex-direction: column; gap: 17px; }
  .preview-controls { justify-content: flex-start; }
  .step-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .preview-stage { min-height: 0; padding: 10px; }
  .preview-canvas { min-height: 490px; height: 490px; }
  .preview-canvas[data-step="verification"] { min-height: 590px; height: 590px; }
  .login-card { width: calc(100% - 24px); padding: 32px 26px 27px; min-height: 315px; }
  .preview-canvas[data-template="partial"] { align-items: stretch; }
  .preview-canvas[data-template="partial"] .scene-art, .preview-canvas[data-template="partial"]::after { display: none; }
  .preview-canvas[data-template="partial"] .login-card { width: 100%; height: 100%; padding: 65px 26px 75px; }
  .preview-canvas[data-template="partial"] .preview-footer { width: 100%; }
  .preview-footer { gap: 11px; padding: 8px 10px; font-size: 8px; }
  .square-panel { gap: 10px; }
}
@media (max-width: 410px) {
  .app-header { padding: 12px; }
  .app-identity { gap: 8px; min-width: 0; }
  .app-logo { width: 90px; }
  .app-identity-divider { height: 23px; }
  .app-identity h1 { margin: 0; font-size: 12px; line-height: 1.15; }
  .reset-button { padding: 7px 8px; font-size: 11px; }
  .export-button { padding: 7px 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
