/* ValSolution Free AI Image Generator Studio. All styles stay scoped inside .aig-page */
.aig-page {
  --aig-ink:#193b35; --aig-text:#4d6761; --aig-muted:#697d76;
  --aig-accent:#276653; --aig-hover:#1c5141; --aig-line:#dfe9e3;
  --aig-panel:#fff; --aig-soft:#f6f9f6; --aig-tint:#eaf3e9;
  color:var(--aig-ink); font-family:var(--font-body,Arial,sans-serif);
  background:radial-gradient(ellipse at 12% 4%,#dcf1eb 0,transparent 36%),radial-gradient(ellipse at 92% 9%,#e7edce 0,transparent 32%),#f8faf6;
  padding-bottom:4px; -webkit-font-smoothing:antialiased;
}
.aig-page *,.aig-page *::before,.aig-page *::after { box-sizing:border-box; }
.aig-page :where(h1,h2,h3,p) { margin:0; }
.aig-page button,.aig-page input,.aig-page select,.aig-page textarea { font:inherit; }
.aig-page button { cursor:pointer; touch-action:manipulation; transition:background .16s,border-color .16s,box-shadow .16s,transform .16s; }
.aig-page button:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.aig-page :where(button,a,input,select,textarea,summary):focus-visible { outline:3px solid #83bbaa; outline-offset:4px; }
.aig-page [hidden] { display:none !important; }
.aig-shell { width:min(1232px,calc(100% - 64px)); margin:auto; padding:54px 0 68px; }
.aig-hero { max-width:850px; margin:0 auto 36px; text-align:center; }
.aig-kicker { display:inline-flex; align-items:center; gap:9px; font-size:12px; font-weight:700; color:var(--aig-accent); letter-spacing:.035em; }
.aig-hero>.aig-kicker { padding:8px 14px; border:1px solid #cbded0; border-radius:30px; background:#ffffff8c; }
.aig-badge-dot { width:6px; height:6px; background:#4e8763; border-radius:50%; }
.aig-hero h1 { font-family:var(--font-display,inherit); font-size:clamp(32px,3.7vw,48px); line-height:1.15; font-weight:750; letter-spacing:-1.9px; margin:19px 0 15px; color:var(--aig-ink); }
.aig-hero h1>span { display:block; margin-top:7px; font-size:.57em; letter-spacing:-.65px; font-weight:450; color:#527266; }
.aig-hero>p { font-size:15px; line-height:1.8; color:var(--aig-text); }
.aig-hero-perks { display:flex; justify-content:center; gap:24px; flex-wrap:wrap; margin-top:18px; font-size:11px; font-weight:650; color:var(--aig-text); }
.aig-hero-perks span::before { content:'✓'; margin-right:6px; color:var(--aig-accent); }

/* Charcoal Studio Container (Matches ValSolution Studio System) */
.aig-page .aig-studio {
  --aig-ink:#f5f7f2; --aig-text:#d2d9cd; --aig-muted:#aeb9a8;
  --aig-accent:#bbe69e; --aig-line:#3b4338; --aig-panel:#20221f;
  --aig-soft:#2b3028; --aig-tint:#35432e;
  display:grid; grid-template-columns:minmax(0,1fr) 410px;
  grid-template-areas:"tabs tabs" "content preview" "design preview" "benefits preview";
  grid-template-rows:auto auto 1fr auto;
  background:#20221f; border:1px solid #353c31; border-radius:26px;
  box-shadow:0 25px 65px -30px #182b2366; overflow:clip;
}
.aig-tabs { grid-area:tabs; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:17px 28px; gap:10px; background:#20221f; border-bottom:1px solid var(--aig-line); }
.aig-tab { display:flex; align-items:center; justify-content:center; gap:9px; border:1px solid transparent; border-radius:12px; min-height:52px; padding:8px 12px; background:transparent; color:#bde5a4; font-size:12px; font-weight:650; }
.aig-tab svg { width:19px; height:19px; flex-shrink:0; }
.aig-tab:hover { background:#2b3227; color:#e5f8da; }
.aig-tab.is-active { background:#353e2f; color:#ddf6cb; border-color:#647854; }

.aig-settings { grid-area:content; padding:30px 36px 24px; }
.aig-panel-head { margin-bottom:20px; }
.aig-eyebrow { display:block; color:var(--aig-muted); font-size:10px; letter-spacing:1.5px; font-weight:750; margin-bottom:10px; line-height:1.5; }
.aig-panel-head h2 { font-size:20px; letter-spacing:-.65px; line-height:1.35; font-weight:700; color:var(--aig-ink); }
.aig-panel-head p { font-size:12px; color:var(--aig-muted); margin-top:6px; line-height:1.65; }

.aig-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin-top:18px; }
.aig-field { display:grid; gap:8px; margin:0; min-width:0; }
.aig-field>span { font-size:11px; font-weight:650; color:var(--aig-text); }
.aig-input,.aig-textarea { width:100%; min-width:0; max-width:100%; padding:12px 14px; border:1px solid #e2e8dc; border-radius:11px; color:#223126; background:#fbfcf8; font-size:14px; outline:none; transition:border-color .16s,box-shadow .16s; color-scheme:light; }
.aig-input { height:46px; }
.aig-textarea { resize:vertical; min-height:106px; line-height:1.6; }
.aig-input::placeholder,.aig-textarea::placeholder { color:#75816e; opacity:1; }
.aig-input:focus,.aig-textarea:focus { border-color:#b6df92; box-shadow:0 0 0 3px #b6df9229; }

.aig-prompt-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-top:12px; }
.aig-sample-chips { display:flex; flex-wrap:wrap; gap:7px; }
.aig-chip { border:1px solid #4b5a3d; background:#2d3527; color:#d0ebbb; border-radius:20px; padding:5px 11px; font-size:11px; font-weight:600; }
.aig-chip:hover { background:#3b4a31; border-color:#9cbd80; }
.aig-char-count { font-size:11px; color:var(--aig-muted); font-variant-numeric:tabular-nums; }
.aig-input-help { font-size:11px; line-height:1.65; color:#f2d897; margin-top:10px !important; }
#aigValidation:empty,#aigActionStatus:empty { display:none; }
.aig-local-note { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--aig-muted); margin-top:16px; }
.aig-local-note>span { width:18px; height:18px; display:grid; place-items:center; background:var(--aig-tint); border-radius:50%; color:var(--aig-accent); flex-shrink:0; }

.aig-design { grid-area:design; padding:24px 36px 28px; border-top:1px solid var(--aig-line); }
.aig-design .aig-panel-head { margin-bottom:16px; }
.aig-design .aig-panel-head h2 { font-size:18px; }
.aig-style-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.aig-style { display:flex; align-items:center; flex-direction:column; gap:7px; padding:10px 4px 8px; min-width:0; background:#282d24; border:1px solid #48513f; border-radius:10px; color:#d4ddce; font-size:11px; }
.aig-style:hover { border-color:#9aba7e; transform:translateY(-2px); }
.aig-style.is-active { background:#394730; border-color:#b9dd99; color:#e2f5d3; box-shadow:0 0 0 1px #b9dd99; }
.aig-swatch { display:block; height:24px; width:24px; border-radius:7px; border:2px solid #ffffff33; }
.aig-sw-auto { background:linear-gradient(135deg,#22c55e,#3b82f6); }
.aig-sw-photo { background:linear-gradient(135deg,#334155,#94a3b8); }
.aig-sw-cine { background:linear-gradient(135deg,#0f172a,#d97706); }
.aig-sw-3d { background:linear-gradient(135deg,#8b5cf6,#ec4899); }
.aig-sw-anime { background:linear-gradient(135deg,#f43f5e,#38bdf8); }
.aig-sw-art { background:linear-gradient(135deg,#0d9488,#a855f7); }
.aig-sw-min { background:linear-gradient(135deg,#18181b,#e4e4e7); }

.aig-generate-wrap { margin-top:20px; }
.aig-generate-btn { width:100%; min-height:50px; display:flex; align-items:center; justify-content:center; gap:10px; border:1px solid #bce198; border-radius:12px; background:#bce198; color:#1f3318; font-size:14px; font-weight:750; box-shadow:0 4px 14px #00000029; }
.aig-generate-btn:hover { background:#ceeeb0; border-color:#ceeeb0; transform:translateY(-1px); }

.aig-free-banner { grid-area:benefits; display:flex; align-items:center; flex-wrap:wrap; gap:14px 26px; padding:18px 36px 24px; border-top:1px solid var(--aig-line); color:#eef5e9; font-size:12px; font-weight:550; }
.aig-free-banner>span { display:inline-flex; align-items:center; gap:9px; }
.aig-benefit-check { display:inline-grid; place-items:center; width:20px; height:20px; border:1px solid #617b4d; border-radius:50%; background:#35452c; color:#c5e6a9; font-size:11px; flex-shrink:0; }

/* Right Preview Panel */
.aig-preview { grid-area:preview; padding:30px 27px 25px; background:#252922; border-left:1px solid var(--aig-line); }
.aig-preview-head { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; margin-bottom:20px; }
.aig-preview-head h2 { font-size:17px; letter-spacing:-.5px; }
.aig-preview-head p { font-size:11px; }
.aig-live-pill { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border:1px solid #5d754a; border-radius:20px; font-size:10px; background:#303c28; color:#d0eab9; white-space:nowrap; }
.aig-live-dot { height:5px; width:5px; background:#b9df90; border-radius:50%; }

.aig-output-wrap { display:grid; place-items:center; min-height:260px; padding:12px; background-color:#30372b; background-image:radial-gradient(#4c5743 .7px,transparent .7px); background-size:10px 10px; border-radius:18px; overflow:hidden; }
.aig-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; min-height:230px; color:#9eb094; font-size:11px; text-align:center; padding:16px; }
.aig-placeholder svg { width:54px; height:54px; opacity:.55; }
.aig-img { width:100%; max-height:360px; object-fit:contain; border-radius:12px; background:#141712; display:block; }

.aig-health { display:grid; grid-template-columns:22px minmax(0,1fr); gap:9px; align-items:start; padding:14px 0 0; }
.aig-health-icon { height:20px; width:20px; border:1px solid #59664e; border-radius:50%; display:grid; place-items:center; background:#303a29; color:#c0d7ad; font-size:10px; }
.aig-health strong { display:block; font-size:11px; line-height:1.5; color:var(--aig-ink); }
.aig-health div>span { display:block; margin-top:2px; color:var(--aig-muted); font-size:10px; line-height:1.55; }
.aig-health[data-state=good] .aig-health-icon { background:#3e5430; border-color:#88aa64; color:#d5f5b9; }
.aig-health[data-state=warn] .aig-health-icon { background:#4b3d23; border-color:#ab8c49; color:#f2d897; }

.aig-progress-track { width:100%; height:6px; background:#353d30; border-radius:99px; overflow:hidden; margin-top:12px; }
.aig-progress-bar { width:0%; height:100%; background:#bce198; transition:width .25s ease; }

.aig-meta { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; color:#b5c1ab; font-size:10px; }
.aig-meta>span+span::before { content:'·'; margin-right:7px; }

.aig-downloads { display:grid; gap:8px; margin-top:16px; }
.aig-download-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.aig-download { min-height:42px; border:1px solid #536646; background:#303b29; color:#d8edc6; border-radius:10px; padding:9px 12px; font-size:12px !important; font-weight:700 !important; }
.aig-download:hover:not(:disabled) { background:#3b4a31; border-color:#9cbd80; }
.aig-download-primary { min-height:48px; display:flex; justify-content:center; align-items:center; gap:9px; background:#bce198; color:#22351b; border-color:#bce198; font-size:13px !important; }
.aig-download-primary:hover:not(:disabled) { background:#ceeeb0; border-color:#ceeeb0; }
.aig-format-tag { font-size:9px; font-weight:600; padding:2px 6px; border:1px solid #48623966; border-radius:4px; }

.aig-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:8px; }
.aig-action { min-height:36px; border:1px solid #4b5a3d; border-radius:9px; background:#2d3527; color:#d0ebbb; font-size:11px !important; font-weight:600 !important; }
.aig-action:hover:not(:disabled) { background:#3b4a31; border-color:#9cbd80; }

.aig-history-wrap { margin-top:18px; padding-top:14px; border-top:1px solid var(--aig-line); }
.aig-history-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.aig-hist-item { border:2px solid transparent; border-radius:9px; overflow:hidden; padding:0; background:#1a1d18; aspect-ratio:1/1; }
.aig-hist-item img { width:100%; height:100%; object-fit:cover; display:block; }
.aig-hist-item.is-active,.aig-hist-item:hover { border-color:#bce198; }

.aig-note { color:#b5c1ab; font-size:10px; line-height:1.65; text-align:center; margin-top:12px !important; }

/* Informational SEO & FAQ Sections */
.aig-confidence { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; padding:25px 13px 32px; text-align:center; color:#697d76; font-size:11px; line-height:1.7; }
.aig-confidence strong { display:block; font-size:12px; font-weight:650; color:#4d6761; }
.aig-info,.aig-copy-card,.aig-faq { border:1px solid #dfe9e3; background:#fff; border-radius:20px; padding:30px; }
.aig-info { margin-top:10px; }
.aig-info-intro { max-width:740px; }
.aig-info h2,.aig-copy-card h2,.aig-faq h2 { color:#193b35; font-size:23px; line-height:1.35; letter-spacing:-.8px; margin:10px 0 11px; }
.aig-info p,.aig-copy-card>p,.aig-faq-head>p { color:#4d6761; font-size:13px; line-height:1.8; }
.aig-info-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin-top:23px; }
.aig-info-grid article { padding:19px; border-radius:13px; background:#f6f9f6; }
.aig-info-grid strong { display:block; font-size:13px; margin-bottom:7px; color:#193b35; }
.aig-info-grid p { font-size:12px; }
.aig-seo-block { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.aig-copy-card h2,.aig-faq h2 { font-size:21px; }
.aig-steps { list-style:none; counter-reset:aigsteps; padding:0; margin:22px 0 0; display:grid; gap:19px; }
.aig-steps li { position:relative; padding-left:42px; counter-increment:aigsteps; }
.aig-steps li::before { content:counter(aigsteps); position:absolute; left:0; top:0; width:27px; height:27px; display:grid; place-items:center; border-radius:50%; background:#eaf3e9; color:#276653; font-size:11px; font-weight:700; }
.aig-steps strong { display:block; font-size:12px; color:#193b35; }
.aig-steps span { display:block; color:#4d6761; font-size:12px; line-height:1.7; margin-top:4px; }
.aig-use-cases { padding-left:17px; margin:18px 0; color:#4d6761; font-size:12px; line-height:1.8; }
.aig-use-cases li+li { margin-top:8px; }
.aig-fineprint { padding-top:14px; border-top:1px solid #dfe9e3; font-size:11px !important; }
.aig-faq { margin-top:16px; }
.aig-faq-list { margin-top:21px; }
.aig-faq-item { border-top:1px solid #dfe9e3; }
.aig-faq-item summary { list-style:none; padding:19px 30px 19px 0; position:relative; font-size:13px; font-weight:650; cursor:pointer; color:#193b35; }
.aig-faq-item summary::-webkit-details-marker { display:none; }
.aig-faq-item summary::after { content:'+'; position:absolute; right:5px; top:15px; font-size:21px; font-weight:400; color:#276653; }
.aig-faq-item[open] summary::after { content:'−'; }
.aig-faq-item p { color:#4d6761; font-size:12px; line-height:1.8; padding:0 25px 19px 0; max-width:950px; }

@media(max-width:1100px) {
  .aig-shell { width:calc(100% - 40px); }
  .aig-page .aig-studio { grid-template-columns:minmax(0,1fr) 360px; }
  .aig-settings,.aig-design,.aig-free-banner { padding-left:25px; padding-right:25px; }
  .aig-style-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:780px) {
  .aig-shell { width:calc(100% - 28px); padding:32px 0 38px; }
  .aig-hero h1 { font-size:34px; letter-spacing:-1.4px; }
  .aig-hero h1>span { font-size:18px; }
  .aig-page .aig-studio { grid-template-columns:minmax(0,1fr); grid-template-areas:"tabs" "content" "design" "benefits" "preview"; grid-template-rows:auto; border-radius:20px; }
  .aig-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; gap:6px; }
  .aig-tab { flex-direction:column; gap:5px; font-size:11px; padding:8px 6px; }
  .aig-settings,.aig-design,.aig-preview { padding:24px 20px; }
  .aig-preview { border-left:0; border-top:1px solid var(--aig-line); }
  .aig-confidence,.aig-info-grid,.aig-seo-block { grid-template-columns:1fr; }
  .aig-desktop-break { display:none; }
  .aig-textarea,.aig-input { font-size:16px; }
}
@media(max-width:440px) {
  .aig-style-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .aig-grid-2 { grid-template-columns:1fr; }
}
[data-theme=dark] .aig-page {
  background:radial-gradient(ellipse at 12% 0%,#253d31 0,transparent 45%),#15271d;
}
[data-theme=dark] .aig-hero>.aig-kicker { border-color:#3c5d48; background:#203b2a; color:#a4d1b2; }
[data-theme=dark] .aig-hero h1 { color:#e0ece3; }
[data-theme=dark] .aig-hero h1>span,[data-theme=dark] .aig-hero>p,[data-theme=dark] .aig-hero-perks { color:#b5c7bb; }
[data-theme=dark] .aig-info,[data-theme=dark] .aig-copy-card,[data-theme=dark] .aig-faq { background:#1d3026; border-color:#334b3c; }
[data-theme=dark] .aig-info h2,[data-theme=dark] .aig-copy-card h2,[data-theme=dark] .aig-faq h2,[data-theme=dark] .aig-faq-item summary,[data-theme=dark] .aig-steps strong,[data-theme=dark] .aig-info-grid strong { color:#e0ece3; }
[data-theme=dark] .aig-info p,[data-theme=dark] .aig-copy-card>p,[data-theme=dark] .aig-faq-head>p,[data-theme=dark] .aig-faq-item p,[data-theme=dark] .aig-steps span,[data-theme=dark] .aig-use-cases { color:#b5c7bb; }
[data-theme=dark] .aig-info-grid article { background:#24392c; }

/* Browser-local controls and readable model/download notices. */
.aig-studio a { color:#d5efba; text-decoration:underline; overflow-wrap:anywhere; }
.aig-note { font-size:12px; text-align:left; }
.aig-field { margin-top:12px; }
.aig-field input[type=checkbox] { width:18px; height:18px; vertical-align:middle; accent-color:#bce198; margin-right:6px; }
.aig-field input[type=file] { display:block; width:100%; max-width:100%; min-width:0; padding:12px; border:1px solid #59634f; border-radius:10px; color:#e2ebdb; background:#2d3527; font-size:12px; }
.aig-field small { color:var(--aig-muted); font-size:12px; line-height:1.65; }
.aig-actions { grid-template-columns:repeat(auto-fit,minmax(115px,1fr)); }
.aig-info a { color:#276653; overflow-wrap:anywhere; }
[data-theme=dark] .aig-info a { color:#bbe69e; }
