@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.stretch-app {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 12% 12%, rgba(157,85,255,.12), transparent 26%), radial-gradient(circle at 88% 86%, rgba(111,0,255,.08), transparent 28%), #FAF6FE;
  color: #2E073F;
  font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.stretch-app .iac-shell { max-width: 1320px; margin: 0 auto; padding: 52px 22px 64px; box-sizing: border-box; }
.stretch-app .iac-hero { text-align: center; margin: 0 auto 28px; }
.stretch-app .iac-hero h1 { margin: 0; color: #3B0270; font-size: 48px; line-height: 1.1; font-weight: 800; letter-spacing: -.045em; }
.stretch-app .iac-hero p { margin: 12px 0 0; color: #6C5B7B; font-size: 16px; }
.stretch-app .iac-tool-card { background: #FFFFFF; border: 1px solid #EDE2F5; border-radius: 24px; box-shadow: 0 18px 55px rgba(76, 19, 119, .10); overflow: hidden; }
.stretch-app .iac-tool-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; border-bottom: 1px solid #EDE2F5; }
.stretch-app .iac-title-wrap { display: flex; align-items: center; gap: 13px; min-width: 0; }
.stretch-app .iac-palette-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; color: #6F00FF; background: #F2E9FF; }
.stretch-app .iac-palette-icon svg { width: 23px; height: 23px; }
.stretch-app .iac-title-wrap h2, .stretch-app .iac-panel h3 { margin: 0; color: #3B0270; font-size: 16px; line-height: 1.25; font-weight: 800; }
.stretch-app .iac-title-wrap p, .stretch-app .iac-panel-note { margin: 4px 0 0; color: #6C5B7B; font-size: 13px; line-height: 1.45; }
.stretch-app .iac-header-actions, .stretch-app .iac-small-actions, .stretch-app .iac-zoom-controls { display: flex; align-items: center; gap: 8px; }
.stretch-app .iac-button, .stretch-app .iac-icon-button, .stretch-app .iac-text-button, .stretch-app .iac-browse, .stretch-app .iac-pick-button, .stretch-app .iac-eye-button { font: inherit; cursor: pointer; border: 0; }
.stretch-app .iac-button { min-height: 42px; padding: 0 15px; border-radius: 11px; font-size: 14px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.stretch-app .iac-button-primary { color: #FFFFFF; background: linear-gradient(135deg, #6F00FF, #9D55FF); box-shadow: 0 7px 16px rgba(111,0,255,.20); }
.stretch-app .iac-button-secondary { color: #3B0270; background: #FAF6FE; border: 1px solid #EDE2F5; }
.stretch-app .iac-button:not(:disabled):hover { transform: translateY(-1px); }
.stretch-app .iac-button:disabled, .stretch-app button:disabled { opacity: .46; cursor: not-allowed; }
.stretch-app .iac-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(350px, .84fr); }
.stretch-app .iac-preview-column { min-width: 0; padding: 24px; border-right: 1px solid #EDE2F5; }
.stretch-app .iac-controls-column { min-width: 0; padding: 18px; background: #FDFBFF; }
.stretch-app .iac-preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.stretch-app .iac-meta, .stretch-app .iac-file-details, .stretch-app .iac-status, .stretch-app .iac-export-summary { color: #6C5B7B; font-size: 13px; line-height: 1.45; }
.stretch-app .iac-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stretch-app .iac-icon-button { width: 35px; height: 35px; border: 1px solid #EDE2F5; border-radius: 9px; color: #3B0270; background: #FFFFFF; font-size: 19px; font-weight: 750; }
.stretch-app .iac-zoom-readout { width: 54px; font-size: 12px; }
.stretch-app .iac-canvas-stage { position: relative; min-height: 430px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #D9C7E8; border-radius: 18px; background-color: #FAF6FE; background-image: linear-gradient(45deg, rgba(111,0,255,.045) 25%, transparent 25%), linear-gradient(-45deg, rgba(111,0,255,.045) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(111,0,255,.045) 75%), linear-gradient(-45deg, transparent 75%, rgba(111,0,255,.045) 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
.stretch-app .iac-canvas-stage.iac-dragover { border-color: #6F00FF; background-color: #F4EAFF; }
.stretch-app .iac-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stretch-app .iac-empty-state { display: flex; flex-direction: column; align-items: center; max-width: 300px; padding: 26px; text-align: center; }
.stretch-app .iac-upload-icon { display: grid; place-items: center; width: 53px; height: 53px; margin-bottom: 14px; border-radius: 17px; color: #6F00FF; background: #F1E6FF; }
.stretch-app .iac-upload-icon svg { width: 27px; height: 27px; }
.stretch-app .iac-empty-state strong { color: #2E073F; font-size: 16px; }
.stretch-app .iac-empty-state small { margin-top: 11px; color: #6C5B7B; font-size: 12px; }
.stretch-app .iac-browse { min-height: 38px; margin-top: 4px; padding: 0 6px; color: #6F00FF; background: transparent; font-size: 14px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.stretch-app .iac-canvas-wrap { position: relative; width: 100%; height: 100%; min-height: 430px; display: grid; place-items: center; overflow: hidden; }
.stretch-app .iac-canvas-wrap canvas { max-width: 100%; max-height: 430px; display: block; transform-origin: center; }
.stretch-app .iac-compare-label { position: absolute; top: 13px; z-index: 2; padding: 5px 9px; border-radius: 7px; color: #FFFFFF; background: rgba(59,2,112,.82); font-size: 11px; font-weight: 800; pointer-events: none; }
.stretch-app .iac-before-label { left: 13px; }
.stretch-app .iac-after-label { right: 13px; }
.stretch-app .iac-compare-range { position: absolute; z-index: 3; left: 0; bottom: 14px; width: calc(100% - 28px); margin: 0 14px; accent-color: #6F00FF; }
.stretch-app .iac-file-details { margin: 12px 0 0; }
.stretch-app .iac-status { min-height: 20px; margin: 6px 0 0; font-weight: 650; }
.stretch-app .iac-status.iac-error { color: #7A1453; }
.stretch-app .iac-status.iac-success { color: #3B0270; }
.stretch-app .iac-panel { padding: 17px; margin-bottom: 13px; border: 1px solid #EDE2F5; border-radius: 16px; background: #FFFFFF; box-shadow: 0 5px 16px rgba(76,19,119,.035); }
.stretch-app .iac-panel:last-child { margin-bottom: 0; }
.stretch-app .iac-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stretch-app .iac-small-actions { gap: 3px; }
.stretch-app .iac-text-button { min-height: 30px; padding: 0 5px; color: #6F00FF; background: transparent; font-size: 12px; font-weight: 750; }
.stretch-app .iac-color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.stretch-app .iac-field label, .stretch-app .iac-range-field label, .stretch-app .iac-format-row legend { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #2E073F; font-size: 12px; font-weight: 750; }
.stretch-app .iac-color-row { display: flex; gap: 7px; }
.stretch-app .iac-color-row input[type="color"] { flex: 0 0 38px; width: 38px; height: 38px; padding: 3px; border: 1px solid #EDE2F5; border-radius: 10px; background: #FAF6FE; cursor: pointer; }
.stretch-app .iac-color-row input[type="text"] { min-width: 0; width: 100%; height: 38px; box-sizing: border-box; padding: 0 9px; border: 1px solid #EDE2F5; border-radius: 10px; outline: none; color: #2E073F; background: #FAF6FE; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.stretch-app .iac-eye-button { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #EDE2F5; border-radius: 10px; color: #6F00FF; background: #FAF6FE; }
.stretch-app .iac-eye-button svg { width: 18px; height: 18px; }
.stretch-app .iac-pick-button { min-height: 35px; width: 100%; margin-top: 8px; border: 1px solid #E3D4EF; border-radius: 9px; color: #6F00FF; background: #FAF6FE; font-size: 12px; font-weight: 750; }
.stretch-app .iac-range-field { margin-top: 15px; }
.stretch-app .iac-range-field output { color: #6F00FF; }
.stretch-app .iac-range-field input[type="range"] { width: 100%; margin: 0; accent-color: #6F00FF; }
.stretch-app .iac-switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; }
.stretch-app .iac-switch-row strong { display: block; color: #2E073F; font-size: 13px; }
.stretch-app .iac-switch-row span { display: block; margin-top: 2px; color: #6C5B7B; font-size: 11px; line-height: 1.35; }
.stretch-app .iac-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; }
.stretch-app .iac-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stretch-app .iac-switch span { display: block; width: 42px; height: 24px; margin: 0; border-radius: 20px; background: #D9C7E8; transition: background .18s ease; }
.stretch-app .iac-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 4px rgba(59,2,112,.25); transition: transform .18s ease; }
.stretch-app .iac-switch input:checked + span { background: #6F00FF; }
.stretch-app .iac-switch input:checked + span::after { transform: translateX(18px); }
.stretch-app .iac-format-row { display: flex; gap: 7px; padding: 0; margin: 15px 0 0; border: 0; }
.stretch-app .iac-format-row legend { width: 100%; }
.stretch-app .iac-format-row label { flex: 1; }
.stretch-app .iac-format-row input { position: absolute; opacity: 0; }
.stretch-app .iac-format-row span { min-height: 37px; display: grid; place-items: center; border: 1px solid #EDE2F5; border-radius: 9px; color: #6C5B7B; background: #FAF6FE; font-size: 12px; font-weight: 800; }
.stretch-app .iac-format-row input:checked + span { border-color: #6F00FF; color: #FFFFFF; background: #6F00FF; }
.stretch-app .iac-export-summary { margin: 12px 0 0; color: #3B0270; font-weight: 750; }
.stretch-app button:focus-visible, .stretch-app input:focus-visible { outline: 3px solid rgba(111,0,255,.27); outline-offset: 2px; }
@media (max-width: 900px) {
  .stretch-app .iac-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); }
  .stretch-app .iac-preview-column { padding: 18px; }
  .stretch-app .iac-controls-column { padding: 14px; }
  .stretch-app .iac-color-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .stretch-app .iac-shell { padding: 28px 12px 40px; }
  .stretch-app .iac-hero { margin-bottom: 20px; }
  .stretch-app .iac-hero h1 { font-size: 23pt; }
  .stretch-app .iac-hero p { font-size: 16px; line-height: 1.45; }
  .stretch-app .iac-tool-header { align-items: flex-start; flex-direction: column; padding: 18px; }
  .stretch-app .iac-header-actions { width: 100%; }
  .stretch-app .iac-button { min-height: 44px; flex: 1; }
  .stretch-app .iac-layout { grid-template-columns: 1fr; }
  .stretch-app .iac-preview-column { border-right: 0; border-bottom: 1px solid #EDE2F5; padding: 14px; }
  .stretch-app .iac-controls-column { padding: 12px; }
  .stretch-app .iac-canvas-stage, .stretch-app .iac-canvas-wrap { min-height: 310px; }
  .stretch-app .iac-canvas-wrap canvas { max-height: 310px; }
  .stretch-app .iac-panel { padding: 15px; }
  .stretch-app .iac-icon-button { min-width: 44px; min-height: 44px; }
  .stretch-app .iac-zoom-readout { width: 58px; }
}