.home-view { max-width: 1540px; margin: 0 auto; padding: 0 clamp(18px, 4.6vw, 72px) 24px; }
.home-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: clamp(24px, 5vw, 80px); align-items: center; min-height: 430px; padding: 46px 0 44px; border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 640px; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #9badae; font-size: 9px; font-weight: 800; letter-spacing: .145em; }
.eyebrow-line { width: 24px; height: 1px; background: var(--accent); }
.hero-copy h1 { margin: 23px 0 16px; font-size: clamp(40px, 5.3vw, 69px); line-height: .99; letter-spacing: -.065em; font-weight: 590; }
.hero-copy h1 span { color: var(--accent); }
.hero-description { max-width: 515px; margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; margin-top: 25px; }
.hero-actions .primary-button { min-width: 183px; min-height: 46px; }
.hero-note { color: var(--muted); font-size: 10px; }
.hero-proof { display: flex; align-items: center; gap: 11px; margin-top: 31px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.hero-proof strong { color: var(--text-2); font-weight: 650; }
.proof-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(124,224,211,.19); border-radius: 9px; color: var(--accent); font-size: 16px; }
.hero-art { position: relative; min-width: 0; min-height: 360px; display: flex; align-items: center; justify-content: center; isolation: isolate; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; width: 83%; height: 88%; border-radius: 50%; background: radial-gradient(ellipse, rgba(49, 113, 117, .17), transparent 70%); filter: blur(5px); z-index: -2; }
.art-orbit { position: absolute; border: 1px solid rgba(124,224,211,.11); border-radius: 50%; transform: rotate(-20deg); }
.orbit-one { width: 355px; height: 250px; }
.orbit-two { width: 440px; height: 315px; transform: rotate(32deg); border-color: rgba(177, 152, 120, .10); }
.art-back-card { position: absolute; left: 28%; top: 10%; width: 217px; height: 288px; border: 1px solid rgba(245, 241, 232, .13); border-radius: 4px; background: linear-gradient(150deg,#2c3944,#171f2a); transform: rotate(10deg); box-shadow: 0 35px 65px rgba(0,0,0,.31); }
.back-card-line { position: absolute; bottom: 30px; left: 19px; width: 76%; height: 3px; border-radius: 4px; background: #63727d; opacity: .5; }
.back-card-line.short { bottom: 20px; width: 49%; height: 2px; opacity: .3; }
.back-card-dot { position: absolute; top: 17px; right: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.art-front-card { position: relative; z-index: 1; display: flex; flex-direction: column; width: 225px; height: 304px; padding: 8px; border: 1px solid rgba(240, 235, 226, .23); border-radius: 3px; background: #d8d1c3; transform: translate(-20px, 3px) rotate(-7deg); box-shadow: 0 25px 70px rgba(0,0,0,.48), 0 0 0 8px rgba(11,15,21,.11); }
.art-image { position: relative; flex: 1; overflow: hidden; background: linear-gradient(160deg, #8aaba5 0%, #5f8080 39%, #354b4c 62%, #27323a 100%); }
.art-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(15, 25, 27, .24)); }
.sun { position: absolute; top: 16%; right: 20%; width: 37px; height: 37px; border-radius: 50%; background: #e5bf87; box-shadow: 0 0 36px rgba(229,191,135,.2); }
.ridge { position: absolute; left: -15%; width: 135%; bottom: 12%; height: 58%; transform: rotate(-7deg); }
.ridge-back { background: linear-gradient(130deg, #73877d, #52695f); clip-path: polygon(0 100%, 0 82%, 21% 48%, 36% 61%, 60% 16%, 79% 45%, 100% 20%, 100% 100%); }
.ridge-front { bottom: -1%; height: 43%; background: linear-gradient(110deg,#354d49,#243b3d); clip-path: polygon(0 100%,0 55%,25% 32%,47% 57%,68% 0,100% 40%,100% 100%); }
.foreground { position: absolute; inset: auto 0 0; height: 24%; background: linear-gradient(100deg, #263b35, #182a2b); clip-path: polygon(0 100%,0 48%,19% 15%,31% 54%,59% 27%,83% 43%,100% 10%,100% 100%); }
.art-caption { padding: 15px 13px 11px; background: #e9e0cf; color: #303c3a; }
.art-caption-kicker { display: block; margin-bottom: 7px; color: #64786c; font-size: 6px; font-weight: 800; letter-spacing: .18em; }
.art-caption-title { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.1; letter-spacing: -.045em; }
.art-caption-rule { display: block; width: 25px; height: 2px; margin-top: 11px; background: #728579; }
.art-corner-marker { position: absolute; width: 10px; height: 10px; border: 1px solid rgba(32,49,47,.48); }
.marker-one { top: 11px; left: 11px; border-right: 0; border-bottom: 0; }
.marker-two { bottom: 11px; right: 11px; border-left: 0; border-top: 0; }
.art-size-tag { position: absolute; z-index: 2; bottom: 10%; left: 8%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(192,211,223,.16); border-radius: 8px; background: rgba(17,25,34,.9); color: #d7e2e6; box-shadow: 0 12px 28px rgba(0,0,0,.2); font-size: 10px; font-weight: 650; }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag-divider { color: var(--muted); }
.art-floating-note { position: absolute; z-index: 3; right: 1%; bottom: 7%; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid rgba(192,211,223,.14); border-radius: 9px; background: #151c25; box-shadow: 0 14px 32px rgba(0,0,0,.28); }
.floating-symbol { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: rgba(124,224,211,.1); color: var(--accent); font-size: 17px; }
.art-floating-note strong, .art-floating-note small { display: block; }
.art-floating-note strong { font-size: 9px; font-weight: 700; }
.art-floating-note small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.preset-heading { padding: 32px 0 17px; }
.section-index, .panel-kicker { display: block; color: #8b9aab; font-size: 8px; line-height: 1.2; font-weight: 800; letter-spacing: .16em; }
.section-heading h2 { margin: 7px 0 4px; font-size: 23px; font-weight: 590; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.preset-tabs { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.preset-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 650; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.preset-tab:hover { color: var(--text); }
.preset-tab.is-active { border-color: rgba(124,224,211,.13); background: rgba(124,224,211,.08); color: var(--accent); }
.tab-plus { display: inline-grid; width: 15px; height: 15px; place-items: center; border: 1px solid currentColor; border-radius: 4px; font-size: 12px; line-height: 1; }
.preset-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 11px; }
.capability-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 31px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability { display: flex; align-items: flex-start; gap: 12px; }
.capability-number { color: var(--accent); font-family: var(--mono); font-size: 10px; }
.capability strong, .capability small { display: block; }
.capability strong { font-size: 11px; font-weight: 650; }
.capability small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.home-footer, .editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 17px; color: #667482; font-size: 8px; letter-spacing: .07em; }
.home-footer > span:first-child, .editor-footer > span:first-child { font-weight: 750; }
.footer-separator { margin: 0 5px; color: var(--accent); }
.home-footer > span:last-child, .editor-footer > span:last-child { font-size: 9px; font-weight: 450; letter-spacing: 0; }
.custom-size-panel { margin-top: 16px; padding: 22px; border: 1px solid rgba(124,224,211,.16); border-radius: 14px; background: linear-gradient(120deg, rgba(124,224,211,.045), rgba(255,255,255,.015)); }
.custom-size-intro { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.custom-size-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(124,224,211,.2); border-radius: 10px; color: var(--accent); font-size: 20px; }
.custom-size-intro h3 { margin: 0 0 3px; font-size: 14px; }
.custom-size-intro p { margin: 0; color: var(--muted); font-size: 10px; }
.custom-size-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--text-2); font-size: 10px; font-weight: 650; }
.form-note { grid-column: 1/-1; margin: 0; color: var(--muted); font-size: 10px; }
.create-custom-button { min-height: 37px; white-space: nowrap; }

.editor-view { max-width: 1760px; margin: 0 auto; padding: 0 clamp(12px, 2vw, 28px) 18px; }
.editor-heading { padding: 19px 2px 17px; }
.editor-breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.editor-breadcrumb .text-button { font-size: 10px; }
.breadcrumb-divider { color: #4b5a67; }
#editorPresetCategory { color: var(--text-2); }
.editor-title-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 11px; }
.editor-title-line h1 { margin: 0; font-size: 25px; line-height: 1.1; letter-spacing: -.05em; font-weight: 620; }
.editor-title-line p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.editor-heading-actions { display: flex; align-items: center; gap: 17px; }
.editor-heading-actions .secondary-button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.editor-layout { display: grid; grid-template-columns: minmax(205px, 232px) minmax(350px, 1fr) minmax(278px, 310px); align-items: stretch; gap: 12px; height: clamp(540px, calc(100vh - 300px), 920px); height: clamp(540px, calc(100dvh - 300px), 920px); min-height: 0; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: rgba(17, 23, 32, .89); box-shadow: var(--shadow-card); }
.source-panel, .inspector-panel { min-height: 0; height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 17px 15px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel-header h2 { margin: 4px 0 0; font-size: 14px; font-weight: 640; letter-spacing: -.025em; }
.step-marker { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: #8292a1; font-family: var(--mono); font-size: 9px; }
.drop-zone { display: flex; width: 100%; min-height: 153px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 10px; border: 1px dashed rgba(139,163,179,.31); border-radius: 9px; background: linear-gradient(140deg,rgba(124,224,211,.035),rgba(255,255,255,.01)); color: var(--text-2); text-align: center; transition: background .18s ease,border-color .18s ease,transform .18s ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: rgba(124,224,211,.7); background: rgba(124,224,211,.07); }
.drop-zone.is-dragging { transform: scale(.99); }
.drop-icon { display: grid; width: 37px; height: 37px; place-items: center; margin-bottom: 3px; border: 1px solid rgba(124,224,211,.21); border-radius: 11px; background: rgba(124,224,211,.06); color: var(--accent); }
.drop-icon svg { width: 19px; height: 19px; }
.drop-zone strong { color: var(--text); font-size: 10px; font-weight: 650; }
.drop-zone > span:not(.drop-icon) { color: var(--muted); font-size: 9px; }
.drop-zone .drop-formats { margin-top: 4px; color: #82919c; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; }
.source-info { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); }
.source-file-row { display: flex; align-items: center; gap: 8px; }
.source-mini-icon { display: grid; width: 28px; height: 28px; flex-shrink: 0; place-items: center; border-radius: 7px; background: var(--surface-3); color: var(--accent); font-size: 15px; }
.source-file-copy { min-width: 0; flex: 1; }
.source-file-copy strong, .source-file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-file-copy strong { color: var(--text-2); font-size: 9px; font-weight: 650; }
.source-file-copy small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.icon-button { display: inline-grid; width: 29px; height: 29px; flex-shrink: 0; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.02); color: var(--text-2); font-size: 17px; transition: background .15s ease,color .15s ease; }
.icon-button:hover { background: rgba(124,224,211,.07); color: var(--accent); }
.source-ready { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--good); font-size: 8px; }
.source-ready > span:first-child { width: 5px; height: 5px; border-radius: 50%; background: var(--good); }
#sourceDimensions { margin-left: auto; color: var(--muted); font-family: var(--mono); }
.panel-separator { height: 1px; margin: 17px 0; background: var(--line); }
.compact-header { margin-bottom: 12px; }
.compact-header .panel-kicker { font-size: 7px; }
.compact-header h2 { font-size: 13px; }
.small-text-button { color: var(--accent); font-size: 9px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fit-mode-control legend, .field-label { margin-bottom: 8px; color: var(--text-2); font-size: 10px; font-weight: 650; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #0d131a; }
.segmented-control button { min-height: 31px; padding: 0 4px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 620; white-space: nowrap; }
.segmented-control button.is-selected { border-color: rgba(124,224,211,.17); background: #202c36; color: var(--accent); }
.control-help { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.range-field { display: block; margin-top: 17px; color: var(--text-2); }
.range-field > span:first-child { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.range-label { color: var(--text-2); font-size: 10px; font-weight: 600; }
.range-field output { color: var(--accent); font-family: var(--mono); font-size: 9px; }
.range-endpoints { display: flex; justify-content: space-between; margin-top: 2px; color: #718090; font-size: 8px; }
.range-endpoints small { font-size: 8px; }
.position-controls { margin-top: 19px; }
.position-label { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--text-2); font-size: 10px; font-weight: 650; }
.position-value { color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 450; }
.nudge-grid { display: grid; width: max-content; grid-template-columns: repeat(3, 31px); grid-template-rows: repeat(3, 29px); gap: 3px; margin: 10px auto 5px; }
.nudge-grid button { border: 1px solid var(--line); border-radius: 6px; background: #151d27; color: var(--text-2); font-size: 14px; line-height: 1; }
.nudge-grid button:hover { border-color: rgba(124,224,211,.3); background: rgba(124,224,211,.07); color: var(--accent); }
.nudge-grid button[data-nudge="center"] { color: var(--accent); font-size: 21px; }
.full-width-secondary { width: 100%; min-height: 34px; margin-top: 15px; font-size: 9px; }
.panel-footnote { display: flex; gap: 8px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.6; }
.footnote-lock { color: var(--accent); font-size: 14px; }
.stage-panel { position: relative; display: flex; height: 100%; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #0e131b; }
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.014); }
.stage-toolbar-left, .stage-toolbar-right { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.live-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(144,217,184,.08); }
.stage-toolbar-divider { color: #4b5a68; }
#stageSizeLabel { color: #9cabb8; font-family: var(--mono); font-size: 8px; font-weight: 450; letter-spacing: 0; }
.stage-toolbar-right { gap: 4px; }
.stage-tool { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 0; }
.stage-tool:hover, .stage-tool[aria-pressed="true"] { border-color: rgba(124,224,211,.14); background: rgba(124,224,211,.055); color: var(--accent); }
.stage-surface { position: relative; display: flex; flex: 1 1 auto; min-height: 0; align-items: center; justify-content: center; overflow: hidden; padding: 22px 18px 24px; background-color: #101720; background-image: radial-gradient(rgba(157,178,192,.12) .65px, transparent .65px); background-size: 18px 18px; }
.stage-surface::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 28%, rgba(7,10,15,.29)); }
.stage-watermark { position: absolute; right: 13px; bottom: 11px; display: flex; align-items: center; gap: 6px; color: #546271; font-size: 7px; letter-spacing: .16em; }
.stage-watermark span { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid rgba(124,224,211,.18); border-radius: 5px; color: #789a9b; font-size: 8px; letter-spacing: 0; }
.artboard { --canvas-ratio: .707; --inset-x: 4%; --inset-y: 2.8%; --radius-px: 0px; --frame-color: #f5f1e8; position: relative; z-index: 1; width: auto; height: auto; aspect-ratio: var(--canvas-ratio); max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(231,240,245,.16); border-radius: 2px; background: #f5f1e8; box-shadow: 0 25px 50px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.08) inset; touch-action: manipulation; }
.artboard.transparent { background-color: transparent; background-image: conic-gradient(#d4d9dc 25%, #f0f1f2 0 50%, #d4d9dc 0 75%, #f0f1f2 0); background-size: 12px 12px; }
.artboard-grid { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background-image: linear-gradient(to right, transparent 49.8%, rgba(124,224,211,.45) 50%, transparent 50.2%), linear-gradient(to bottom, transparent 49.8%, rgba(124,224,211,.45) 50%, transparent 50.2%); transition: opacity .15s ease; }
.artboard.show-grid .artboard-grid { opacity: .65; }
.photo-viewport { position: absolute; z-index: 2; top: var(--inset-y); right: var(--inset-x); bottom: var(--inset-y); left: var(--inset-x); overflow: hidden; border-radius: var(--radius-px); touch-action: none; }
.photo-preview { position: absolute; inset: auto; width: auto; height: auto; max-width: none; max-height: none; object-fit: fill; object-position: 50% 50%; transform: none; transform-origin: center center; user-select: none; -webkit-user-drag: none; cursor: grab; }
.photo-preview:active { cursor: grabbing; }
.photo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(145deg, rgba(124,224,211,.08), rgba(24,39,49,.04)); color: var(--muted); text-align: center; }
.placeholder-glyph { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 7px; border: 1px dashed rgba(98,135,148,.45); border-radius: 12px; color: #86b3b4; font-size: 22px; }
.photo-placeholder strong { color: #647987; font-size: 10px; font-weight: 650; }
.photo-placeholder small { color: #73848f; font-size: 9px; }
.frame-overlay { position: absolute; z-index: 4; top: var(--inset-y); right: var(--inset-x); bottom: var(--inset-y); left: var(--inset-x); border: var(--frame-width) solid var(--frame-color); border-radius: var(--radius-px); pointer-events: none; }
.caption-overlay { position: absolute; z-index: 5; top: var(--inset-y); right: var(--inset-x); bottom: var(--inset-y); left: var(--inset-x); display: flex; align-items: center; justify-content: flex-start; overflow: hidden; padding: var(--caption-inset, 4%); pointer-events: none; }
.caption-overlay[data-align="center"] { justify-content: center; }
.caption-overlay[data-align="right"] { justify-content: flex-end; }
.caption-overlay[data-position="top"] { align-items: flex-start; }
.caption-overlay[data-position="bottom"] { align-items: flex-end; }
.caption-overlay[data-position="center"] { align-items: center; }
.caption-copy { position: relative; z-index: 2; width: fit-content; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--caption-color, #fff); text-align: left; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.caption-title { font-size: 5.5cqi; font-weight: 700; line-height: 1.12; letter-spacing: -.045em; }
.caption-subtitle { margin-top: .47em; font-size: 2.9cqi; line-height: 1.35; font-weight: 500; opacity: .93; }
.caption-overlay[data-align="center"] .caption-copy { text-align: center; }
.caption-overlay[data-align="right"] .caption-copy { text-align: right; }
.caption-backdrop { position: absolute; z-index: -1; inset: calc(0px - var(--caption-box-y, 6px)) calc(0px - var(--caption-box-x, 8px)); border-radius: var(--caption-radius, 7px); background: rgba(7,12,16,.46); }
.guide-overlay { position: absolute; z-index: 9; inset: 0; pointer-events: none; }
.guide-overlay::before { content: ""; position: absolute; inset: var(--inset-y) var(--inset-x); border: 1px dashed rgba(124,224,211,.8); }
.guide-overlay span { position: absolute; background: rgba(124,224,211,.45); }
.guide-overlay span:nth-child(1), .guide-overlay span:nth-child(2) { top: 0; bottom: 0; width: 1px; left: 33.333%; }
.guide-overlay span:nth-child(2) { left: 66.666%; }
.guide-overlay span:nth-child(3), .guide-overlay span:nth-child(4) { top: 33.333%; left: 0; right: 0; height: 1px; }
.guide-overlay span:nth-child(4) { top: 66.666%; }
.guide-overlay i { position: absolute; inset: 50% auto auto 50%; width: 9px; height: 9px; border: 1px solid var(--accent); border-radius: 50%; transform: translate(-50%,-50%); }
.drag-hint { position: absolute; z-index: 10; bottom: 12px; left: 50%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(124,224,211,.21); border-radius: 6px; background: rgba(13,21,29,.9); color: var(--accent); font-size: 7px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; transform: translateX(-50%); }
.drag-hint span { font-size: 12px; }
.stage-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; padding: 0 14px; border-top: 1px solid var(--line); background: rgba(255,255,255,.016); }
.stage-footer-label, .stage-dimensions { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: 8px; }
.tiny-grid-icon { color: var(--accent); font-size: 12px; }
#stageModeLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-dimensions { color: #9eafba; font-family: var(--mono); font-size: 8px; white-space: nowrap; }
.dimension-divider { color: #52616c; }
.status-message { margin: 8px 12px 11px; padding: 8px 10px; border: 1px solid rgba(124,224,211,.19); border-radius: 7px; background: rgba(124,224,211,.055); color: #b8dcd5; font-size: 9px; line-height: 1.5; }
.status-message.is-error { border-color: rgba(242,163,163,.25); background: rgba(242,163,163,.06); color: var(--danger); }
.panel-header .panel-kicker { font-size: 7px; }
.inspector-panel { padding: 17px 14px 14px; }
.inspector-panel > .panel-header { margin-bottom: 8px; }
.inspector-section { border-top: 1px solid var(--line); }
.inspector-section:last-child { border-bottom: 1px solid var(--line); }
.inspector-section summary { display: flex; align-items: center; gap: 9px; min-height: 43px; list-style: none; cursor: pointer; color: var(--text-2); font-size: 10px; font-weight: 650; }
.inspector-section summary::-webkit-details-marker { display: none; }
.section-summary-icon { display: grid; width: 23px; height: 23px; flex-shrink: 0; place-items: center; border: 1px solid rgba(124,224,211,.12); border-radius: 6px; background: rgba(124,224,211,.04); color: var(--accent); font-size: 12px; }
.summary-chevron { margin-left: auto; color: #6c7a87; font-size: 14px; transition: transform .15s ease; }
.inspector-section:not([open]) .summary-chevron { transform: rotate(-90deg); }
.inspector-content { padding: 0 0 15px 2px; }
.inspector-content .field { margin-bottom: 11px; }
.inspector-content .field:last-child { margin-bottom: 0; }
.orientation-setting { margin-bottom: 13px; }
.orientation-setting .field-label { display: block; margin-bottom: 8px; }
.orientation-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.orientation-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid var(--line); border-radius: 7px; background: #101720; color: var(--muted); font-size: 9px; font-weight: 600; }
.orientation-button.is-selected { border-color: rgba(124,224,211,.26); background: rgba(124,224,211,.06); color: var(--accent); }
.orientation-icon { display: block; width: 11px; height: 15px; border: 1px solid currentColor; border-radius: 2px; }
.landscape-icon { width: 16px; height: 11px; }
.margin-setting { margin-top: 13px; }
.background-setting { margin-top: 15px; }
.color-picker-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.color-picker-row .field-label { margin: 0; }
.swatch-row { display: flex; align-items: center; gap: 5px; }
.color-swatch { position: relative; width: 20px; height: 20px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: var(--swatch); }
.color-swatch.is-selected::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--accent); border-radius: 50%; }
.color-swatch:hover { transform: scale(1.07); }
.checkbox-row { position: relative; display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; cursor: pointer; }
.checkbox-custom { position: relative; display: inline-block; width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; border: 1px solid #506071; border-radius: 4px; background: #0f151d; transition: background .15s ease,border-color .15s ease; }
.checkbox-row input:checked + .checkbox-custom { border-color: var(--accent); background: var(--accent); }
.checkbox-row input:checked + .checkbox-custom::after { content: ""; position: absolute; top: 2px; left: 4px; width: 4px; height: 7px; border: solid var(--accent-ink); border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
.checkbox-row input:focus-visible + .checkbox-custom { box-shadow: var(--focus); }
.checkbox-row strong, .checkbox-row small { display: block; }
.checkbox-row strong { color: var(--text-2); font-size: 9px; font-weight: 600; }
.checkbox-row small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 450; line-height: 1.4; }
.checkbox-row.disabled { opacity: .45; cursor: not-allowed; }
.frame-options { padding-left: 3px; }
.frame-options .range-field { margin-top: 14px; }
.frame-options .color-picker-row { margin-top: 12px; }
.text-options { padding-top: 12px; }
.text-options .field { margin-bottom: 11px; }
.text-options em { margin-left: 4px; color: var(--muted); font-size: 8px; font-style: normal; font-weight: 450; }
.text-options .two-field-row { margin-bottom: 7px; }
.two-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two-field-row .field { min-width: 0; }
.compact-checkbox { margin-top: 13px; }
.export-section summary { color: var(--text); }
.export-dimension-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 11px; border: 1px solid rgba(124,224,211,.17); border-radius: 8px; background: linear-gradient(110deg,rgba(124,224,211,.075),rgba(124,224,211,.015)); }
.export-dimension-card > div > * { display: block; }
.dimension-card-label { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.export-dimension-card strong { margin-top: 3px; color: var(--accent); font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: -.04em; }
.export-dimension-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.dimension-card-icon { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(124,224,211,.17); border-radius: 7px; color: var(--accent); font-size: 16px; }
.quality-setting { margin-top: 13px; }
.filename-field { margin-top: 13px; }
.filename-control { position: relative; display: flex; align-items: center; }
.filename-control input { padding-right: 47px; }
.filename-control span { position: absolute; right: 9px; color: var(--muted); font-family: var(--mono); font-size: 9px; pointer-events: none; }
.export-resource-note { display: flex; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.resource-icon { color: var(--accent); font-size: 13px; }
.export-button { width: 100%; min-height: 43px; margin-top: 15px; padding: 0 11px; }
.export-button-icon { display: inline-grid; width: 21px; height: 21px; place-items: center; border-radius: 5px; background: rgba(10,36,36,.1); font-size: 17px; }
.export-button .button-arrow { margin-left: auto; }
.export-footnote { margin: 8px 0 0; color: var(--muted); font-size: 8px; text-align: center; line-height: 1.5; }
.editor-footer { padding: 16px 3px 0; }

.toast-region { position: fixed; z-index: 150; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; max-width: min(390px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid rgba(124,224,211,.23); border-radius: 10px; background: #17232a; color: var(--text); box-shadow: 0 18px 40px rgba(0,0,0,.42); font-size: 11px; line-height: 1.45; animation: toast-in .2s ease-out both; }
.toast.is-error { border-color: rgba(242,163,163,.28); background: #2a1b20; }
.toast-symbol { flex-shrink: 0; color: var(--accent); font-size: 15px; }
.toast.is-error .toast-symbol { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.help-dialog { width: min(530px, calc(100vw - 30px)); max-height: min(90vh, 760px); padding: 25px; border: 1px solid var(--line-strong); border-radius: 16px; background: #121a23; color: var(--text); box-shadow: var(--shadow-deep); }
.help-dialog::backdrop { background: rgba(3,6,10,.72); backdrop-filter: blur(5px); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.dialog-header h2 { margin: 7px 0 0; font-size: 24px; line-height: 1.1; letter-spacing: -.05em; }
.dialog-close { font-size: 22px; }
.help-steps { display: grid; gap: 18px; margin: 25px 0; }
.help-steps > div { display: flex; gap: 13px; }
.help-steps > div > span { display: grid; width: 27px; height: 27px; flex-shrink: 0; place-items: center; border: 1px solid rgba(124,224,211,.21); border-radius: 8px; color: var(--accent); font-family: var(--mono); font-size: 9px; }
.help-steps strong { font-size: 12px; font-weight: 700; }
.help-steps p { margin: 4px 0 0; color: var(--text-2); font-size: 10px; line-height: 1.6; }
.dialog-note { display: flex; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); }
.dialog-note > span { color: var(--accent); font-size: 17px; }
.dialog-note p { margin: 0; color: var(--text-2); font-size: 10px; line-height: 1.6; }
.dialog-note strong { color: var(--text); }
.dialog-primary { width: 100%; margin-top: 18px; }

@media (min-width: 1600px) {
  .editor-layout { grid-template-columns: minmax(230px,260px) minmax(0,1fr) minmax(290px,330px); gap: 14px; }
  .source-panel, .inspector-panel { padding: 20px 18px; }
  .stage-surface { padding: 26px 24px 28px; }
}
@media (max-width: 1350px) {
  .preset-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .editor-layout { grid-template-columns: minmax(190px,215px) minmax(320px,1fr) minmax(264px,290px); gap: 9px; }
  .source-panel, .inspector-panel { padding-right: 12px; padding-left: 12px; }
  .stage-toolbar { padding-right: 9px; padding-left: 9px; }
  .stage-tool { padding: 0 5px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .topbar-center { display: none; }
  .home-hero { grid-template-columns: minmax(0,1fr) minmax(315px,.8fr); gap: 20px; }
  .hero-copy h1 { font-size: clamp(39px,5vw,60px); }
  .art-front-card { transform: translate(-15px,3px) rotate(-7deg) scale(.91); }
  .art-back-card { transform: rotate(10deg) scale(.9); }
  .art-floating-note { right: -3%; }
  .orbit-one { width: 280px; height: 205px; }
  .orbit-two { width: 330px; height: 250px; }
  .preset-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .editor-layout { height: auto; min-height: 0; grid-template-columns: minmax(215px,.64fr) minmax(0,1.36fr); grid-template-rows: auto auto; align-items: start; }
  .source-panel { grid-column: 1; grid-row: 1; height: min(820px, max(520px, calc(100vh - 275px))); height: min(820px, max(520px, calc(100dvh - 275px))); }
  .stage-panel { grid-column: 2; grid-row: 1; height: min(820px, max(520px, calc(100vh - 275px))); height: min(820px, max(520px, calc(100dvh - 275px))); }
  .inspector-panel { grid-column: 1/-1; grid-row: 2; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; align-content: start; height: auto; max-height: none; overflow: visible; }
  .inspector-panel > .panel-header { grid-column: 1/-1; }
  .inspector-section { min-width: 0; }
  .inspector-section.export-section { grid-column: 1/-1; }
  .inspector-section.export-section .inspector-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
  .export-dimension-card, .export-resource-note, .export-button, .export-footnote { grid-column: 1/-1; }
  .export-section .export-dimension-card { margin-top: 0; }
  .export-section .export-button { margin-top: 15px; }
}
@media (max-width: 760px) {
  .topbar { height: 58px; padding: 0 16px; gap: 10px; }
  .topbar-center { display: none; }
  .topbar-actions { flex: 0 0 auto; gap: 10px; }
  .quiet-button span:last-child { display: none; }
  .home-view { padding: 0 18px 20px; }
  .home-hero { grid-template-columns: 1fr; gap: 0; padding: 37px 0 23px; }
  .hero-copy h1 { margin-top: 19px; font-size: clamp(43px,11vw,62px); }
  .hero-description { font-size: 12px; }
  .hero-art { min-height: 320px; margin: 6px 0 0; }
  .art-front-card { transform: translate(-20px,2px) rotate(-7deg) scale(.82); }
  .art-back-card { transform: rotate(10deg) scale(.83); }
  .orbit-one { width: 280px; height: 205px; }
  .orbit-two { width: 330px; height: 260px; }
  .art-size-tag { bottom: 5%; left: 2%; }
  .art-floating-note { right: 0; bottom: 4%; }
  .preset-heading { align-items: flex-start; flex-direction: column; gap: 18px; padding-top: 25px; }
  .preset-tabs { max-width: 100%; width: 100%; }
  .preset-tab { flex: 1; justify-content: center; padding: 0 8px; font-size: 9px; }
  .preset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .capability-strip { grid-template-columns: 1fr; gap: 17px; margin-top: 24px; padding: 19px 0; }
  .home-footer, .editor-footer { align-items: flex-start; flex-direction: column; gap: 7px; font-size: 7px; }
  .custom-size-panel { padding: 17px; }
  .custom-size-form { grid-template-columns: 1fr 1fr; }
  .custom-size-form .field:first-child { grid-column: 1/-1; }
  .custom-size-form .create-custom-button { grid-column: 1/-1; }
  .editor-view { padding: 0 10px 15px; }
  .editor-heading { padding: 15px 2px 13px; }
  .editor-title-line { align-items: flex-start; flex-direction: column; gap: 12px; }
  .editor-title-line h1 { font-size: 22px; }
  .editor-heading-actions { width: 100%; justify-content: space-between; }
  .editor-layout { display: flex; height: auto; min-height: 0; flex-direction: column; gap: 10px; }
  .source-panel, .inspector-panel { height: auto; max-height: none; overflow: visible; scrollbar-gutter: auto; }
  .stage-panel { height: auto; min-height: 0; }
  .stage-panel { order: 1; }
  .source-panel { order: 2; }
  .inspector-panel { display: block; order: 3; }
  .stage-surface { flex: 0 0 auto; height: clamp(400px, 58vh, 650px); height: clamp(400px, 58svh, 650px); min-height: 400px; padding: 17px 12px; }
  .artboard { max-width: 100%; }
  .stage-toolbar { min-height: 42px; }
  .stage-toolbar-left { gap: 6px; font-size: 7px; }
  .stage-toolbar-right { gap: 0; }
  .stage-tool { min-height: 25px; font-size: 8px; }
  .stage-footer { flex-wrap: wrap; min-height: 47px; gap: 4px; padding: 7px 10px; }
  .stage-dimensions { margin-left: auto; }
  .drop-zone { min-height: 115px; }
  .source-panel, .inspector-panel { padding: 15px; }
  .source-panel .panel-footnote { margin-bottom: 1px; }
  .inspector-panel > .panel-header { margin-bottom: 10px; }
  .inspector-section summary { min-height: 46px; }
  .inspector-section.export-section .inspector-content { display: block; }
  .export-dimension-card { margin-top: 4px; }
  .toast-region { right: 12px; bottom: 12px; }
  .help-dialog { padding: 19px; }
}
@media (max-width: 390px) {
  .brand-copy strong { font-size: 12px; }
  .brand-mark { transform: scale(.9); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .preset-tabs { gap: 2px; padding: 3px; }
  .preset-tab { padding: 0 5px; font-size: 8px; }
  .art-floating-note { transform: scale(.86); transform-origin: right bottom; }
  .stage-toolbar-left { letter-spacing: .05em; }
  .stage-tool { padding: 0 4px; }
  .stage-toolbar-right { gap: 0; }
  .stage-dimensions { font-size: 7px; }
}
