.flux-studio {
  --flux-forest: #0b2117;
  --flux-forest-2: #123426;
  --flux-mint: #7fd7ae;
  --flux-paper: #f8f3e7;
  --flux-amber: #f5b841;
  --flux-amber-2: #ffd57e;
  --flux-ink: #18372b;
  --flux-muted: #718078;
  width: 100%;
  padding: clamp(18px, 3.5vw, 44px);
  color: var(--flux-ink);
  background:
    radial-gradient(680px 360px at 100% 0, rgba(127, 215, 174, .14), transparent 66%),
    radial-gradient(rgba(245, 184, 65, .08) 1px, transparent 1.5px),
    var(--flux-forest);
  background-size: auto, 20px 20px, auto;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}
.flux-studio *, .flux-studio *::before, .flux-studio *::after { box-sizing: border-box; }
.flux-studio button, .flux-studio input, .flux-studio textarea, .flux-studio a { font: inherit; }

.flux-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; max-width: 1180px; margin: 0 auto clamp(24px, 3vw, 36px); }
.flux-intro > div:first-child { max-width: 760px; }
.flux-eyebrow { margin: 0 0 10px; color: var(--flux-mint) !important; font-size: 10px !important; font-weight: 850; letter-spacing: .17em; line-height: 1.3 !important; text-transform: uppercase; }
.flux-intro h2 { margin: 0; color: #fff8e7 !important; font: 600 clamp(32px, 5vw, 56px)/1.02 Georgia, serif !important; letter-spacing: -.04em !important; }
.flux-intro > div:first-child > p:last-child { max-width: 650px; margin: 16px 0 0; color: #b9cbc0 !important; font-size: clamp(14px, 1.5vw, 17px) !important; line-height: 1.65 !important; }
.flux-benefits { display: grid; flex: 0 0 auto; gap: 8px; }
.flux-benefits span { padding: 9px 13px; color: #deebe3; border: 1px solid rgba(127, 215, 174, .28); border-radius: 999px; font-size: 10px; font-weight: 750; text-align: center; }

.flux-workspace { display: grid; grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr); max-width: 1180px; margin: 0 auto; overflow: hidden; background: var(--flux-paper); border: 1px solid rgba(245, 184, 65, .48); border-radius: 20px; box-shadow: 0 32px 75px -44px rgba(0,0,0,.95); }
.flux-form-panel, .flux-preview-panel { min-width: 0; padding: clamp(18px, 3vw, 32px); }
.flux-preview-panel { display: flex; flex-direction: column; background: #eee9dc; border-left: 1px solid rgba(24, 55, 43, .12); }
.flux-panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 23px; }
.flux-panel-heading > span { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: #6e4b08; background: linear-gradient(145deg, var(--flux-amber-2), var(--flux-amber)); border-radius: 12px; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.flux-panel-heading div { min-width: 0; }
.flux-panel-heading small { display: block; margin-bottom: 2px; color: #48846a; font-size: 8px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.flux-panel-heading h3 { margin: 0; color: var(--flux-ink) !important; font-size: clamp(21px, 2.5vw, 28px) !important; letter-spacing: -.025em !important; }

.flux-fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.flux-fieldset legend, .flux-field label > span:first-child, .field-heading label, .size-col > span, .seed-value > span { color: #29473a; font-size: 11px; font-weight: 850; letter-spacing: .025em; }
.model-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.model-option { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; min-width: 0; padding: 13px; background: #fffdf7; border: 1px solid #d8d7cb; border-radius: 12px; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.model-option:hover { border-color: #75aa91; transform: translateY(-1px); }
.model-option:has(input:checked) { background: #f2fbf6; border-color: #3d9770; box-shadow: inset 0 0 0 1px #3d9770; }
.model-option input { width: 17px; height: 17px; margin: 0; accent-color: #237653; }
.model-option > span { display: grid; min-width: 0; gap: 2px; }
.model-option strong { color: #234235; font-size: 11px; }
.model-option small { color: #7d8982; font-size: 8px; line-height: 1.35; }
.model-option b { position: absolute; top: 8px; right: 8px; color: #9a6810; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }

.flux-field { margin-bottom: 20px; }
.field-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field-heading small { max-width: 250px; color: #849088; font-size: 8px; line-height: 1.35; text-align: right; }
.styled-input, .styled-textarea { width: 100%; color: #1f3b30; background: #fffdf8; border: 1px solid #d4d5ca; border-radius: 10px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.styled-textarea { min-height: 132px; padding: 13px 14px; resize: vertical; font-size: 13px; line-height: 1.55; }
.styled-input { height: 45px; padding: 10px 12px; font-size: 12px; }
.styled-input:focus, .styled-textarea:focus { border-color: #2b8b64; box-shadow: 0 0 0 3px rgba(43,139,100,.13); }
.styled-textarea::placeholder, .styled-input::placeholder { color: #9ca69f; }

.compact-fieldset { padding: 14px; background: #efe9dc; border: 1px solid rgba(30,69,52,.1); border-radius: 13px; }
.compact-fieldset legend { padding: 0 5px; }
.compact-fieldset > p { margin: -1px 0 11px; color: #7e8982 !important; font-size: 8px !important; line-height: 1.4 !important; }
.size-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: 9px; }
.size-col { display: grid; gap: 6px; }
.number-control { position: relative; }
.number-control .styled-input { padding-right: 38px; }
.number-control b { position: absolute; top: 50%; right: 12px; color: #8a958e; font-size: 9px; transform: translateY(-50%); }
.size-link { display: grid; place-items: center; width: 25px; height: 45px; color: #a36d0d; font-weight: 850; }

.seed-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px; }
.seed-options { display: flex; min-height: 45px; padding: 4px; background: #deddd3; border-radius: 10px; }
.seed-options label { cursor: pointer; }
.seed-options input { position: absolute; opacity: 0; pointer-events: none; }
.seed-options span { display: grid; place-items: center; min-width: 72px; height: 37px; color: #68766f; border-radius: 8px; font-size: 10px; font-weight: 800; }
.seed-options input:checked + span { color: #254435; background: #fffdf8; box-shadow: 0 2px 8px rgba(30,61,47,.09); }
.seed-value { display: grid; gap: 6px; }
.seed-value input:disabled { color: #9da49f; background: #e6e4dc; cursor: not-allowed; }

.gradient-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; margin: 5px 0 0; padding: 12px 17px; color: #35270a; background: linear-gradient(145deg, var(--flux-amber-2), var(--flux-amber)); border: 1px solid #dfa12d; border-radius: 12px; box-shadow: 0 14px 25px -18px rgba(190,123,11,.8); cursor: pointer; }
.gradient-btn span { font-size: 17px; }
.gradient-btn strong { font-size: 12px; letter-spacing: .02em; }
.gradient-btn b { font-size: 17px; }
.gradient-btn:hover:not(:disabled) { filter: brightness(1.04); transform: translateY(-1px); }
.gradient-btn:disabled { opacity: .62; cursor: wait; }
.generating-btn { position: relative; overflow: hidden; color: #315344; background: #bcd9ca !important; border-color: #9ec8b3; box-shadow: none; }
.generating-btn::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, transparent, #277857, transparent); animation: flux-progress 1.35s linear infinite; }
@keyframes flux-progress { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.preview-heading { margin-bottom: 18px; }
.preview-stage { position: relative; display: grid; flex: 1 1 auto; min-height: 500px; overflow: hidden; background: repeating-conic-gradient(#e8e5dc 0 25%, #f5f1e7 0 50%) 50% / 24px 24px; border: 1px solid #d1d0c6; border-radius: 15px; }
.placeholder-image { display: grid; place-items: center; align-content: center; max-width: 370px; margin: auto; padding: 30px; color: #61766c; text-align: center; }
.placeholder-mark { position: relative; display: block; width: 78px; height: 68px; margin-bottom: 20px; background: #133b2c; border-radius: 19px; box-shadow: 0 18px 30px -22px rgba(11,52,37,.85); }
.placeholder-mark i { position: absolute; display: block; background: var(--flux-amber-2); border-radius: 50%; }
.placeholder-mark i:nth-child(1) { top: 15px; left: 16px; width: 10px; height: 10px; }
.placeholder-mark i:nth-child(2) { right: 13px; bottom: 13px; width: 40px; height: 28px; background: var(--flux-mint); border-radius: 60% 35% 8px 8px; transform: rotate(-8deg); }
.placeholder-mark i:nth-child(3) { left: 11px; bottom: 12px; width: 38px; height: 23px; background: #f5b841; border-radius: 60% 35% 7px 7px; transform: rotate(7deg); }
.placeholder-image strong { color: #29483a; font-size: 18px; }
.placeholder-image p { margin: 7px 0 14px; color: #718078 !important; font-size: 11px !important; line-height: 1.5 !important; }
.placeholder-image small { color: #8d9891; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.result-area { position: absolute; inset: 0; display: grid; place-items: center; min-width: 0; }
.result-area:empty { display: none; }
.result-area > p { margin: 0; padding: 18px; color: #34654f !important; background: rgba(255,253,248,.9); border: 1px solid rgba(35,117,82,.2); border-radius: 11px; font-size: 12px !important; font-weight: 750; text-align: center; }
.generated-image { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.download-btn { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; color: #243516 !important; background: linear-gradient(145deg, var(--flux-amber-2), var(--flux-amber)); border: 1px solid #dfa12d; border-radius: 10px; box-shadow: 0 12px 25px -15px rgba(50,39,10,.7); text-decoration: none; font-size: 11px; font-weight: 850; }
.download-btn:hover { filter: brightness(1.05); }
.preview-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 11px 13px; color: #61766b; background: #e5e0d4; border-radius: 10px; }
.preview-note > span { color: #a87112; font-size: 16px; }
.preview-note p { margin: 0; color: #61766b !important; font-size: 9px !important; line-height: 1.5 !important; }
.preview-note strong { color: #385345; }

@media (max-width: 920px) {
  .flux-workspace { grid-template-columns: 1fr; }
  .flux-preview-panel { border-top: 1px solid rgba(24,55,43,.12); border-left: 0; }
  .preview-stage { min-height: min(70vw, 560px); }
}
@media (max-width: 680px) {
  .flux-intro { align-items: flex-start; flex-direction: column; }
  .flux-benefits { display: flex; flex-wrap: wrap; }
  .model-options { grid-template-columns: 1fr; }
  .field-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .field-heading small { max-width: none; text-align: left; }
  .seed-controls { grid-template-columns: 1fr; }
  .seed-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .seed-options span { min-width: 0; }
}
@media (max-width: 480px) {
  .flux-studio { padding: 12px; }
  .flux-workspace { border-radius: 15px; }
  .flux-form-panel, .flux-preview-panel { padding: 15px; }
  .size-row { grid-template-columns: 1fr; }
  .size-link { width: 100%; height: 18px; }
  .preview-stage { min-height: 330px; }
}
@media (prefers-reduced-motion: reduce) { .flux-studio * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
