.image-studio {
    --image-ink: #11182f;
    --image-muted: #65708a;
    --image-line: #dfe4f0;
    --image-paper: #f5f7fc;
    --image-violet: #585cf6;
    --image-cyan: #7ce7ed;
    color: var(--image-ink);
    background: #fff;
    font-family: inherit;
}
.image-studio *, .image-studio *::before, .image-studio *::after { box-sizing: border-box; }
.image-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.image-eyebrow { margin: 0; color: #4c55d9; font: 800 12px/1.3 "Roboto Mono", monospace; letter-spacing: .12em; }
.image-hero { padding: 70px 0 86px; background: linear-gradient(180deg, #f7f8fd 0%, #fff 100%); border-bottom: 1px solid var(--image-line); }
.image-hero-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(560px, 1.2fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.image-hero-copy h1 { margin: 22px 0 24px; font-size: clamp(46px, 5.4vw, 78px); line-height: 1.03; letter-spacing: -.065em; font-weight: 850; }
.image-hero-copy h1 em { display: inline-block; color: var(--image-violet); font-style: normal; text-decoration: underline; text-decoration-color: var(--image-cyan); text-decoration-thickness: 14px; text-underline-offset: -7px; text-decoration-skip-ink: none; }
.image-hero-lead { max-width: 610px; margin: 0; color: var(--image-muted); font-size: 17px; line-height: 1.78; word-break: keep-all; }
.image-proof-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.image-proof-row span { padding: 9px 12px; border: 1px solid var(--image-line); border-radius: 9px; background: #fff; color: #505b76; font-size: 12px; }
.image-proof-row b { color: var(--image-ink); font-size: 15px; }
.image-api-link { display: inline-flex; gap: 10px; margin-top: 28px; color: #343eca; font-size: 13px; font-weight: 800; }
.image-api-link:hover { text-decoration: underline; }

.image-console { overflow: hidden; border: 1px solid #cfd6e8; border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(25, 35, 76, .14); }
.image-console-head { min-height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--image-line); }
.image-console-head > div { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.console-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #22b888; box-shadow: 0 0 0 5px rgba(34, 184, 136, .12); }
.image-console-head > span { color: #3d47c3; font: 800 12px/1 "Roboto Mono", monospace; }
.image-preview { min-height: 330px; position: relative; display: grid; place-items: center; overflow: hidden; background: #11182f; }
.image-preview > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.contact-sheet { width: calc(100% - 48px); height: 210px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; transform: rotate(-3deg); }
.contact-sheet span { position: relative; overflow: hidden; padding: 13px 9px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px; color: #fff; background: linear-gradient(150deg, var(--frame-accent), #18203b 72%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.contact-sheet span::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.22); }
.contact-sheet small, .contact-sheet b { position: relative; z-index: 1; }
.contact-sheet small { margin-bottom: 7px; font: 700 9px/1 "Roboto Mono", monospace; opacity: .75; }
.contact-sheet b { font-size: 13px; writing-mode: vertical-rl; transform: rotate(180deg); }
.image-progress { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7px; background: rgba(17, 24, 47, .94); color: #fff; }
.image-progress[hidden] { display: none; }
.image-progress span { width: 10px; height: 10px; border-radius: 50%; background: var(--image-cyan); animation: image-pulse 1.1s infinite ease-in-out; }
.image-progress span:nth-child(2) { animation-delay: .15s; }.image-progress span:nth-child(3) { animation-delay: .3s; }
.image-progress p { position: absolute; margin-top: 58px; color: #cdd3e7; font-size: 12px; }
@keyframes image-pulse { 0%, 70%, 100% { transform: scale(.72); opacity: .45; } 35% { transform: scale(1.18); opacity: 1; } }
.image-controls { padding: 22px; }
.image-controls > label { display: block; margin: 0 0 9px; color: #2c3653; font-size: 12px; font-weight: 850; }
.image-controls textarea, .image-controls select { width: 100%; border: 1px solid #cfd6e8; border-radius: 11px; color: var(--image-ink); background: #fff; font: inherit; outline: none; }
.image-controls textarea { resize: vertical; min-height: 104px; padding: 14px; font-size: 14px; line-height: 1.65; }
.image-controls textarea:focus, .image-controls select:focus { border-color: var(--image-violet); box-shadow: 0 0 0 3px rgba(88, 92, 246, .12); }
.prompt-meta { margin: 7px 0 17px; display: flex; justify-content: space-between; color: #8a93a8; font-size: 11px; }
.prompt-meta button { padding: 0; border: 0; background: transparent; color: #4650d1; font-size: 11px; font-weight: 800; cursor: pointer; }
.model-select-wrap select { height: 46px; padding: 0 42px 0 13px; appearance: auto; font-size: 13px; font-weight: 750; }
.model-select-wrap p { min-height: 19px; margin: 8px 0 0; color: var(--image-muted); font-size: 11px; line-height: 1.55; }
.generate-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 17px; }
.generate-button, .download-button { min-height: 48px; border: 0; border-radius: 10px; font: 850 13px/1 inherit; cursor: pointer; transition: transform .18s ease, opacity .18s ease; }
.generate-button { padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: var(--image-violet); }
.download-button { padding: 0 16px; color: var(--image-ink); background: #edf0f7; }
.generate-button:hover, .download-button:hover { transform: translateY(-2px); }
.generate-button:disabled { cursor: wait; opacity: .55; transform: none; }
.image-message { min-height: 18px; margin: 10px 0 0; color: #bd3e38; font-size: 12px; line-height: 1.5; }

.image-tier-section { padding: 92px 0; }
.image-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 34px; }
.image-section-heading h2, .image-api-section h2 { margin: 12px 0 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.15; letter-spacing: -.05em; }
.image-section-heading > p { max-width: 560px; margin: 0; color: var(--image-muted); font-size: 14px; line-height: 1.75; }
.tier-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tier-card { min-height: 318px; position: relative; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--image-line); border-radius: 16px; text-align: left; background: #fff; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tier-card::before { content: ""; width: 34px; height: 6px; margin-bottom: 20px; border-radius: 99px; background: var(--model-accent); }
.tier-card:hover, .tier-card.is-active { transform: translateY(-6px); border-color: var(--model-accent); box-shadow: 0 18px 40px rgba(29, 38, 78, .1); }
.tier-level { color: #8790a6; font: 750 10px/1 "Roboto Mono", monospace; }
.tier-name { margin-top: 8px; color: var(--model-accent); font-size: 22px; font-weight: 850; letter-spacing: -.04em; }
.tier-card > strong { margin-top: 6px; color: var(--image-ink); font: 750 12px/1.3 "Roboto Mono", monospace; }
.tier-card > p { margin: 18px 0 24px; color: var(--image-muted); font-size: 12px; line-height: 1.65; word-break: keep-all; }
.tier-price { margin-top: auto; color: var(--image-ink); font-size: 14px; }
.tier-price b { font: 850 32px/1 "Roboto Mono", monospace; }.tier-price small { color: #8b94a9; }
.tier-recommend { position: absolute; top: 18px; right: 18px; padding: 5px 7px; border-radius: 6px; color: #fff; background: var(--model-accent); font-size: 9px; font-weight: 850; }

.image-api-section { padding: 88px 0; color: #fff; background: var(--image-ink); }
.image-api-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(540px, 1.18fr); gap: 80px; align-items: center; }
.image-api-section .image-eyebrow { color: var(--image-cyan); }
.image-api-section p:not(.image-eyebrow) { max-width: 560px; margin: 23px 0 26px; color: #c7cde0; font-size: 14px; line-height: 1.78; }
.image-api-section code { font-family: "Roboto Mono", monospace; }
.image-api-section a { color: var(--image-cyan); font-size: 13px; font-weight: 850; }
.api-code-card { overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: #0b1123; box-shadow: 0 24px 54px rgba(0,0,0,.25); }
.api-code-card > div { height: 46px; padding: 0 15px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.1); }
.api-code-card > div span { width: 8px; height: 8px; border-radius: 50%; background: #f06b61; }
.api-code-card > div span:nth-child(2) { background: #f3c64c; }.api-code-card > div span:nth-child(3) { background: #4aca85; }
.api-code-card > div b { margin-left: auto; color: #8f99b4; font: 700 10px/1 "Roboto Mono", monospace; }
.api-code-card pre { margin: 0; padding: 24px; overflow: auto; color: #dce2f4; font: 12px/1.75 "Roboto Mono", monospace; white-space: pre; }

@media (max-width: 1080px) {
    .image-hero-grid, .image-api-grid { grid-template-columns: 1fr; }
    .image-hero-copy { max-width: 760px; }
    .image-console { max-width: 760px; width: 100%; }
    .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .image-api-grid { gap: 44px; }
}
@media (max-width: 760px) {
    .image-shell { width: min(100% - 30px, 1320px); }
    .image-hero { padding: 44px 0 58px; }
    .image-hero-grid { gap: 42px; }
    .image-hero-copy h1 { font-size: 44px; }
    .image-hero-copy h1 em { text-decoration-thickness: 9px; }
    .image-console { border-radius: 17px; }
    .image-preview { min-height: 250px; }
    .contact-sheet { width: calc(100% - 28px); height: 160px; gap: 5px; }
    .image-section-heading { display: block; }
    .image-section-heading > p { margin-top: 18px; }
    .tier-grid { grid-template-columns: 1fr 1fr; }
    .tier-card { min-height: 280px; }
    .image-api-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .image-shell { width: min(100% - 22px, 1320px); }
    .image-hero-copy h1 { font-size: 37px; }
    .image-hero-lead { font-size: 15px; }
    .image-proof-row { display: grid; grid-template-columns: repeat(3, 1fr); }
    .image-proof-row span { padding: 8px 5px; text-align: center; }
    .tier-grid { grid-template-columns: 1fr; }
    .tier-card { min-height: 254px; }
    .generate-row { grid-template-columns: 1fr; }
    .download-button { width: 100%; }
    .api-code-card pre { padding: 18px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .image-studio * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
