.fp-page { background-color: #0b130c; height: auto; min-height: 100vh; overflow: auto; }
.fp-page [hidden] { display: none !important; }
.fp-page button, .fp-page input, .fp-page textarea, .fp-page select { font: inherit; }
.fp-page button:focus-visible, .fp-page a:focus-visible, .fp-page input:focus-visible, .fp-page select:focus-visible, .fp-page textarea:focus-visible { outline: 2px solid #bef264; outline-offset: 4px; }
.fp-page button:disabled { cursor: wait; opacity: .65; }
.fp-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; min-height: calc(100vh - 73px); }
.fp-canvas { padding: clamp(24px, 3vw, 48px); min-width: 0; }
.fp-heading { margin: 0 0 30px; }
.fp-eyebrow { color: #bef264; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.fp-heading h1 { font-size: clamp(27px, 3vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 12px; }
.fp-heading > p:last-child { color: #b7bdb6; font-size: 16px; line-height: 1.5; }
.fp-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fp-frame { min-width: 0; border: 1px solid #2d3e2c; border-radius: 18px; overflow: hidden; background: #111b12; }
.fp-frame figcaption { padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; border-bottom: 1px solid #283929; }
.fp-caption-tag { color: #aab8a6; font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.fp-image-stage { position: relative; aspect-ratio: 4 / 5; min-height: 290px; display: grid; place-items: center; padding: 12px; overflow: hidden; background: #101a11; }
.fp-source .fp-image-stage { background-color: #142015; background-image: linear-gradient(#8fad7d0a 1px, transparent 1px), linear-gradient(90deg, #8fad7d0a 1px, transparent 1px); background-size: 20px 20px; }
.fp-image-stage > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; padding: 12px; }
.fp-upload { border: 0; color: #c4e8ac; background: transparent; cursor: pointer; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 14px; border-radius: 10px; }
.fp-plan-icon { width: 130px; max-width: 70%; margin-bottom: 10px; opacity: .8; }
.fp-upload strong { font-weight: 600; font-size: 18px; color: #fff; }
.fp-upload > span { max-width: 220px; font-size: 13px; color: #aab8a6; line-height: 1.5; }
.fp-source.fp-drag-over { border-color: #bef264; box-shadow: 0 0 0 2px #bef26455; }
.fp-frame-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 55px; padding: 12px 16px; font-size: 11px; color: #aab8a6; border-top: 1px solid #283929; }
.fp-frame-footer > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-text-button { border: 0; border-radius: 5px; background: none; color: #bef264; cursor: pointer; font-weight: 600 !important; font-size: 12px !important; flex-shrink: 0; padding: 6px 0; }
.fp-result-empty { color: #aab8a6; text-align: center; padding: 20px; line-height: 1.5; }
.fp-result-empty svg { display: block; width: 115px; margin: 0 auto 28px; color: #739461; opacity: .7; }
.fp-result-empty strong { display: block; font-weight: 400; font-size: 17px; color: #d4dfcf; margin-bottom: 8px; }
.fp-result-empty p { font-size: 13px; }
.fp-progress { position: absolute; z-index: 1; inset: auto 12px 12px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 10px; background: #0a100bf2; border: 1px solid #445e37; border-radius: 10px; font-size: 13px; text-align: center; }
.fp-spinner { border: 2px solid #405435; border-top-color: #bef264; border-radius: 50%; width: 18px; height: 18px; flex-shrink: 0; animation: fp-spin 1s linear infinite; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
.fp-upload-help { font-size: 12px; color: #aab8a6; line-height: 1.5; margin: 16px 0 12px; }
.fp-concept-note { font-size: 12px; color: #92a18e; line-height: 1.65; max-width: 850px; }
.fp-controls { min-width: 0; display: flex; flex-direction: column; background: #121b13; border-left: 1px solid #2d3e2c; }
.fp-settings { padding: 28px 24px 8px; border: 0; min-width: 0; }
.fp-view-choice { border: 0; padding: 0; margin: 0 0 26px; }
.fp-view-choice legend { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.fp-view-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fp-view-options label { position: relative; cursor: pointer; }
.fp-view-options input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.fp-view-options label > span { display: flex; flex-direction: column; gap: 7px; border: 1px solid #3a4b36; border-radius: 12px; padding: 14px 10px; height: 100%; }
.fp-view-options strong { font-size: 14px; font-weight: 600; }
.fp-view-options small { font-size: 11px; color: #aab8a6; line-height: 1.35; }
.fp-view-options input:checked + span { border-color: #84cc16; background: #84cc1615; color: #d9f99d; box-shadow: inset 0 0 0 1px #84cc1633; }
.fp-view-options input:focus-visible + span { outline: 2px solid #bef264; outline-offset: 4px; }
.fp-field { display: block; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.fp-field input, .fp-field select, .fp-field textarea { display: block; width: 100%; border: 1px solid #3a4b36; border-radius: 9px; color: #ecf4e8; background: #19241a; margin-top: 9px; padding: 12px; font-weight: 400; min-height: 45px; }
.fp-field select { color-scheme: dark; }
.fp-field textarea { resize: vertical; line-height: 1.5; min-height: 115px; }
.fp-field input::placeholder, .fp-field textarea::placeholder { color: #8b9d85; }
.fp-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fp-field-hint { font-size: 11px; line-height: 1.5; color: #aab8a6; margin: -10px 0 20px; }
.fp-optional { font-size: 10px; color: #9cae95; margin-left: 6px; font-weight: 400; }
.fp-actions { padding: 8px 24px 24px; margin-top: auto; }
.fp-feedback, .fp-error { font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
.fp-feedback { color: #b9cfac; }
.fp-error { color: #fecaca; background: #7f1d1d2b; border: 1px solid #fca5a533; border-radius: 8px; padding: 10px; }
.fp-actions .btn-primary { width: 100%; min-height: 48px; padding: 13px 12px; font-size: 14px; text-transform: none; letter-spacing: 0; }
.fp-access-note { font-size: 10px; color: #9cae95; margin-top: 12px; text-align: center; }
.fp-history { margin-top: 30px; }
.fp-history h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.fp-history h2 span { display: inline-block; color: #92a18e; font-size: 11px; font-weight: 400; margin-left: 10px; }
.fp-history-list { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-history-item { border: 1px solid #3a4b36; border-radius: 9px; padding: 5px; width: 102px; background: #152016; color: #d5e2ce; cursor: pointer; text-align: left; }
.fp-history-item[aria-pressed="true"] { border-color: #bef264; }
.fp-history-item img { display: block; width: 90px; height: 68px; object-fit: contain; border-radius: 5px; background: #0c120d; }
.fp-history-item span { display: block; padding: 6px 3px 2px; font-size: 11px; }
.fp-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1500px) { .fp-workspace { grid-template-columns: minmax(0, 1fr) 400px; } .fp-image-stage { aspect-ratio: 4 / 3; } }
@media (max-width: 1100px) { .fp-workspace { grid-template-columns: minmax(0, 1fr) 310px; } .fp-canvas { padding: 24px; } .fp-frame figcaption { flex-wrap: wrap; } .fp-frame-footer { flex-wrap: wrap; } .fp-image-stage { min-height: 250px; } }
@media (max-width: 800px) { .fp-workspace { grid-template-columns: 1fr; } .fp-controls { border-left: 0; border-top: 1px solid #2d3e2c; } .fp-image-stage { aspect-ratio: 4 / 3; } .fp-settings { padding-top: 24px; } .fp-field-pair { gap: 16px; } .fp-actions { padding-bottom: 30px; } }
@media (max-width: 480px) { .fp-page header { padding: 12px 20px; } .fp-page .back-btn { font-size: 12px; } .fp-page .logo-mark { width: 32px; height: 32px; border-radius: 9px; } .fp-page .brand-wordmark { font-size: 19px; } .fp-canvas { padding: 26px 18px; } .fp-comparison { grid-template-columns: 1fr; gap: 14px; } .fp-heading { margin-bottom: 22px; } .fp-heading > p:last-child { font-size: 14px; } .fp-image-stage { aspect-ratio: 4 / 3; min-height: 225px; } .fp-frame-footer { flex-wrap: nowrap; } .fp-history h2 span { display: block; margin: 6px 0 0; } }
@media (prefers-reduced-motion: reduce) { .fp-spinner { animation: none; } .fp-page *, .fp-page *::before, .fp-page *::after { transition: none !important; } }
