/* AI Forge: gold filigree, large artwork, and touch-friendly controls. */
:root{--forge-gold:#d7b67b;--forge-ink:#09111b;--forge-line:#79613f}body{background:radial-gradient(ellipse at 50% 0,#29202b55,transparent 50%),#080e17;color:#eee8dc}main{max-width:1680px;margin:auto}.page-heading h1{font-size:clamp(28px,3vw,46px)}.topbar{position:relative;z-index:2;background:#0b111dec;border-bottom:1px solid #77603c}.topbar nav{flex-wrap:wrap;gap:8px 18px}.topbar nav a{min-height:44px;font-size:12px}.topbar nav a[hidden]{display:none}.ai-controls{position:relative;padding:24px;background:linear-gradient(140deg,#302536aa,#101a28 65%);border:1px solid var(--forge-line);border-radius:10px;margin:0 0 26px;box-shadow:inset 0 0 0 4px #0b111b}.ai-controls:before,.ai-controls:after{content:'✧';position:absolute;top:8px;color:var(--forge-gold);font-size:19px}.ai-controls:before{left:10px}.ai-controls:after{right:10px}.ai-controls h3{font:clamp(26px,2.5vw,36px)/1.15 Georgia,serif;margin:16px 0;color:#f0dfbd}.ai-controls p{font-size:14px;line-height:1.65}.ai-fields{display:grid;gap:14px}.ai-fields label{display:grid;gap:6px;color:#d5c7ad;font-size:13px}.ai-fields input,.ai-fields select{width:100%;min-width:0}.ai-controls input,.ai-controls select,input,select,textarea{font-size:16px;min-height:46px}button,.button,.upload-button{min-height:48px;line-height:1.35}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #947947;border-radius:5px;padding:12px 16px;color:#efddb7;text-decoration:none;background:#171f2c}.button:focus-visible{outline:2px solid #e5c58b;outline-offset:4px}button:disabled{opacity:.55;cursor:not-allowed}.primary{background:linear-gradient(135deg,#755e32,#3d3021);border-color:#be9e63;color:#fff4dc}.ai-results{padding:24px;margin-bottom:24px;border:1px solid var(--forge-line);border-radius:10px;background:linear-gradient(135deg,#151d2a,#0a121d)}.ai-results[hidden]{display:none}.ai-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.ai-section-head h2{font:28px Georgia,serif;margin:8px 0}.ai-section-head p{color:#c4bdaf}.ai-concepts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ai-concept{min-width:0;border:1px solid #6a5638;border-radius:9px;background:#0c1421;overflow:hidden}.ai-art{display:flex;align-items:center;justify-content:center;border:0;border-radius:0;padding:0;width:100%;aspect-ratio:2/3;background:radial-gradient(ellipse,#252039,#080e18 75%);overflow:hidden}.ai-art img{width:100%;height:100%;object-fit:contain}.ai-concept-info{padding:16px}.ai-concept-info p{font-size:13px;color:#c5bcad}.ai-concept-info .action-row{display:grid;grid-template-columns:1fr;gap:10px}.skeleton .ai-art{color:#baa16f;text-align:center;font:18px/2 Georgia,serif;background:linear-gradient(110deg,#111827,#252032,#111827);background-size:200% 100%;animation:forge-wait 3s linear infinite}@keyframes forge-wait{to{background-position:200% 0}}.history-entry{padding:24px;margin:20px 0;border:1px solid #665234;border-radius:8px}.ai-page{min-width:0}.ai-page h2{color:#edd7aa}.ai-reference-actions{border-top:1px solid #6d5736;margin-top:22px;padding-top:22px}.ai-reference-actions h3{font-size:23px}.ai-reference-actions .action-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.visual-tools{background:#0b1420;border-color:#79613f;grid-row:auto}.visual-tools>.action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.visual-tools .image-choices{display:grid;grid-template-columns:repeat(4,minmax(135px,1fr));overflow:auto;max-height:none;padding:18px 3px}.visual-tools .image-choices button{width:100%;min-width:0;padding:10px;flex:initial}.visual-tools .image-choices .weapon-art{height:210px}.image-choices span{font:13px/1.5 system-ui;margin-top:8px}.visual-tools .hint{font:13px/1.7 system-ui;color:#bfb6a7}.submit-proposal h3{font-size:26px}.submit-proposal input{max-width:none;width:100%}.moderation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}.moderation-card{padding:20px;border:1px solid #77613f;border-radius:8px;min-width:0}.moderation-art{height:360px;background:#080f1c}.moderation-art .weapon-art{width:100%;height:100%;object-fit:contain}.moderation-card pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto}.moderation-card label{display:grid;gap:6px;margin:14px 0}.moderation-card details{margin:14px 0}.moderation-card summary{cursor:pointer;min-height:44px}.mesh-options{padding:20px}.mesh-options fieldset{border:1px solid #79613f;border-radius:5px}.mesh-options label{display:flex;gap:10px;align-items:center;min-height:48px}.mesh-options input{width:20px;min-height:20px}.history-entry progress{width:100%;accent-color:#d2ab69}#ai-result-error{color:#f2c4ae;line-height:1.6}#ai-service-status{min-height:44px}#ai-sign-in{color:#efd29a;text-decoration:underline;padding:12px 0;display:inline-block}#ai-sign-in[hidden]{display:none}
@media(max-width:1100px){.ai-concepts{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-tools .image-choices{grid-template-columns:repeat(4,minmax(135px,1fr))}}
@media(max-width:760px){main{padding:22px 14px 0}.topbar{padding:18px 14px 0}.topbar nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.topbar nav a{font-size:11px;white-space:normal;text-align:center;padding:10px 5px}.topbar .brand{font-size:24px}.creation{order:0}.result-column{order:1}.ai-controls{padding:22px 18px}.ai-results{padding:18px 12px}.ai-concepts{gap:12px}.ai-concept-info{padding:12px}.ai-concept-info .eyebrow{font-size:10px;letter-spacing:1px}.ai-concept-info button,.ai-concept-info .button{font-size:13px;padding:10px 8px}.ai-section-head{align-items:flex-start;flex-direction:column;gap:6px}.ai-section-head h2{font-size:26px}.visual-tools{width:auto;padding:18px 14px;grid-row:auto}.visual-tools>.action-row{grid-template-columns:1fr 1fr}.visual-tools button,.visual-tools .upload-button{font-size:14px;min-height:48px;white-space:normal;padding:12px 9px}.visual-tools .image-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:visible}.visual-tools .image-choices .weapon-art{height:240px}.visual-tools .image-choices button{border-radius:8px}.visual-tools .image-choices button[aria-pressed=true]{box-shadow:0 0 0 2px #d1ad70;border-color:#e5ca90}.art-stage{min-height:500px;height:500px}.ai-reference-actions .action-row{grid-template-columns:1fr}.submit-proposal button{width:100%}.moderation-grid{grid-template-columns:1fr}.history-entry{padding:18px 12px}.history-entry .ai-section-head{padding:0 5px}.discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.discovery-card>.weapon-art{height:220px}.page-heading h1{font-size:28px}.form-section .fields{gap:14px}.ai-page input,.ai-page select{max-width:100%}#art-dialog{width:96vw}.art-view-canvas{padding:10px;height:70dvh}}
@media(max-width:360px){.ai-concepts{grid-template-columns:1fr}.visual-tools>.action-row{grid-template-columns:1fr}.visual-tools .image-choices .weapon-art{height:180px}}
@media(prefers-reduced-motion:reduce){.skeleton .ai-art{animation:none}}

.ai-hero{padding:38px 30px 42px;margin-bottom:28px;border:1px solid #80633d;border-radius:10px;background:linear-gradient(90deg,#0b121bea 15%,#0b121b88),url(forge-backdrop.webp) center/cover;position:relative}.ai-hero h2{font:clamp(36px,5vw,66px)/1.1 Georgia,serif;margin:18px 0;color:#f0dfbd;text-transform:none;letter-spacing:-1px}.ai-hero p{font-size:16px;color:#d1c4b1}.ai-hero .button{margin-top:12px}.sample-collection{margin:28px 0;border-top:1px solid #70583a;padding-top:18px}.sample-collection>summary{font:21px Georgia,serif;cursor:pointer;min-height:48px;color:#dfc796}.sample-collection .discovery{margin-top:12px}.sample-collection .discovery h2{font-size:24px}@media(max-width:760px){.ai-hero{padding:28px 22px}.ai-hero h2{font-size:38px}.ai-hero p{font-size:14px}}
