.builder-page{padding:28px 24px 42px}.builder-shell{max-width:1600px;margin:auto;display:grid;grid-template-columns:230px minmax(0,1fr) 330px;gap:20px;align-items:start}.builder-sidebar{padding:14px 4px}.change-builder{display:inline-flex;align-items:center;gap:12px;min-height:44px;font-size:14px;color:#c9d5ef;margin-bottom:20px}.current-builder{display:flex;align-items:flex-start;gap:12px;padding:18px 14px;background:linear-gradient(140deg,#101a33,#091726);border:1px solid #243451;border-radius:13px}.current-builder h2{font-size:19px;letter-spacing:-.3px;margin:2px 0 8px}.current-builder p{font-size:12px;line-height:1.65}.scenario-icon{display:grid;place-items:center;width:52px;height:54px;border-radius:13px;background:linear-gradient(135deg,#aa46ff,#5840ef);color:#fff;flex-shrink:0;box-shadow:inset 0 0 0 1px #ffffff18}.scenario-icon svg{width:30px;height:30px}.builder-stepper{list-style:none;margin:30px 0 0;padding:0 8px}.builder-stepper li{display:flex;align-items:center;gap:16px;position:relative;padding-bottom:32px;color:#bac8e4}.builder-stepper li:not(:last-child)::after{content:'';position:absolute;left:23px;top:48px;width:1px;height:32px;background:#304561}.step-number{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:50%;border:1px solid #39506d;background:#132236;font-size:23px;font-weight:600}.builder-stepper [aria-current=step] .step-number{background:linear-gradient(145deg,#a847ff,#067ffb);border-color:#b2a2ff;box-shadow:0 0 20px #8058ff40;color:white}.builder-stepper strong{font-size:15px;display:block}.builder-stepper p{font-size:12px;margin-top:3px}.scenario-stage,.scenario-preview{min-width:0;border:1px solid #1d3047;border-radius:18px;background:linear-gradient(125deg,#0c1927,#07121e);padding:24px}.scenario-stage{min-height:570px}.scenario-heading{padding:3px 0 25px}.step-eyebrow{font-size:13px;color:#b79aff;font-weight:600;margin-bottom:10px}.scenario-heading h1{font-size:clamp(28px,2.6vw,40px);line-height:1.15;margin-bottom:16px}.scenario-heading>p:last-child{font-size:16px;line-height:1.65;max-width:680px}.scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.scenario-card{font:inherit;position:relative;display:flex;align-items:flex-start;gap:14px;text-align:left;min-width:0;min-height:190px;padding:20px 16px 52px;border:1px solid #25384f;border-radius:13px;background:linear-gradient(125deg,#122031,#0b1827);color:var(--text);cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}.scenario-card:hover{border-color:#9169ff;transform:translateY(-2px)}.scenario-card[aria-pressed=true]{border-color:#ad79ff;box-shadow:0 0 0 1px #7456ff,0 0 20px #684cff35;background:linear-gradient(140deg,#172346,#101d30)}.scenario-card-copy{min-width:0;display:flex;flex-direction:column;gap:10px;overflow-wrap:anywhere}.scenario-card strong{font-size:16px;line-height:1.25}.scenario-card-copy>span{font-size:12px;line-height:1.6;color:var(--muted)}.scenario-card .scenario-icon{width:45px;height:48px}.scenario-card .scenario-icon svg{width:26px;height:26px}.selection-mark{position:absolute;right:10px;top:10px;display:none;width:22px;height:22px;background:#9270ff;color:#0e0930;border-radius:50%;text-align:center;font-weight:800}.scenario-card[aria-pressed=true] .selection-mark{display:block}.scenario-card[aria-pressed=true]{padding-top:28px}.scenario-arrow{position:absolute;right:14px;bottom:12px;display:grid;place-items:center;width:33px;height:33px;background:#253550;border-radius:50%;font-size:21px}.accent-blue .scenario-icon{background:linear-gradient(135deg,#486eff,#194db8)}.accent-green .scenario-icon{background:linear-gradient(135deg,#19bf92,#0b6a5c)}.accent-pink .scenario-icon{background:linear-gradient(135deg,#e9509b,#843955)}.accent-gold .scenario-icon{background:linear-gradient(135deg,#f4b534,#956316)}.scenario-preview{padding:18px;display:flex;flex-direction:column;gap:16px;min-height:460px}.scenario-visual{height:160px;border:1px solid #324776;border-radius:12px;background:radial-gradient(ellipse at 70% 25%,#472481,transparent 65%),linear-gradient(145deg,#101e4b,#0d2449);display:grid;place-items:center;color:#baa6ff}.scenario-visual svg{width:78px;height:78px;filter:drop-shadow(0 0 13px #7757ff)}.scenario-preview .step-eyebrow{margin:0}.scenario-preview h2{font-size:27px;margin-bottom:10px}.scenario-preview p{font-size:14px;line-height:1.65;overflow-wrap:anywhere}.scenario-continue{font:inherit;font-size:13px;font-weight:700;border:1px solid #7871ff;border-radius:10px;min-height:52px;padding:12px 14px;background:linear-gradient(110deg,#a347f7,#087ffc);color:white;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;margin-top:auto}.scenario-continue:hover{filter:brightness(1.15)}.scenario-continue:disabled{opacity:.45;cursor:not-allowed}.next-step-notice{padding:12px;border:1px solid #3b507d;border-radius:9px;background:#15213c}.scenario-empty{padding:20px;border:1px dashed #3a4d68;border-radius:12px;margin-top:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1450px){.builder-shell{grid-template-columns:210px minmax(0,1fr) 290px;gap:16px}.scenario-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scenario-stage{padding:22px}.scenario-card{flex-direction:column;min-height:215px}.scenario-heading h1{font-size:32px}}
@media(max-width:1050px){.builder-shell{grid-template-columns:200px minmax(0,1fr)}.builder-sidebar{grid-row:span 2}.scenario-preview{grid-column:2;min-height:0;display:grid;grid-template-columns:130px minmax(0,1fr);align-items:start}.scenario-visual{grid-row:span 3;height:130px}.scenario-preview .scenario-continue,.scenario-preview .next-step-notice{grid-column:2}.scenario-stage{min-height:400px}.scenario-preview h2{font-size:24px}}
@media(max-width:700px){.builder-page{padding:20px 16px 32px}.builder-shell{grid-template-columns:minmax(0,1fr);gap:18px}.builder-sidebar{grid-row:auto;padding:0}.change-builder{margin-bottom:12px}.current-builder{padding:14px}.builder-stepper{display:flex;gap:12px;margin:20px 0 0;padding:0;justify-content:space-between}.builder-stepper li{flex:1;flex-direction:column;align-items:flex-start;gap:8px;padding-bottom:0}.builder-stepper li:not(:last-child)::after{display:none}.step-number{width:36px;height:36px;font-size:18px}.builder-stepper strong{font-size:13px}.builder-stepper p{font-size:10px}.scenario-stage{padding:22px 18px;min-height:0}.scenario-heading h1{font-size:30px}.scenario-heading>p:last-child{font-size:14px}.scenario-grid{gap:12px}.scenario-card{padding:17px 12px 50px}.scenario-preview{grid-column:auto;display:flex;min-height:0}.scenario-visual{height:140px}.scenario-continue{width:100%;margin-top:8px}}
@media(max-width:400px){.scenario-grid{grid-template-columns:minmax(0,1fr)}.scenario-card{flex-direction:row;min-height:170px;gap:14px}.scenario-heading h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){.scenario-card{transition:none}}
.scenario-visual{width:100%}
/* Step 2: stesso contenitore e stesso stepper; solo contenuti e suggerimenti cambiano. */
.builder-shell [hidden]{display:none!important}.builder-shell[data-step="2"] .scenario-stage{padding:20px 14px;min-height:0}.builder-shell[data-step="2"] .scenario-preview{display:flex;gap:16px;min-height:0}.builder-stepper .is-complete .step-number{border-color:#7454ce;color:#ceb7ff}.builder-stepper .is-complete .step-number::after{content:'✓';position:absolute;margin:30px 0 0 35px;font-size:12px;background:#7850dd;color:white;width:19px;height:19px;border-radius:50%;text-align:center}.details-heading{padding:0 10px 16px}.details-heading h1{font-size:30px;line-height:1.2;margin-bottom:8px}.details-heading>p:last-child{font-size:14px}.detail-field{border:1px solid #20344c;border-radius:12px;padding:16px;background:linear-gradient(120deg,#0d1b2b,#091624);margin-bottom:12px;min-width:0}.detail-field-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.field-number{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;background:linear-gradient(145deg,#a548f7,#4f42e9);border-radius:50%;font-size:20px;font-weight:600}.detail-field-heading>div{flex:1;min-width:0}.detail-field-heading label{font-size:14px;font-weight:700;line-height:1.4;display:block}.detail-field-heading p{font-size:12px;line-height:1.5}.field-count{font-size:10px;white-space:nowrap;color:#b3c3db}.field-examples{display:flex;flex-wrap:wrap;gap:8px}.field-example{font:inherit;font-size:12px;line-height:1.4;flex:1 1 105px;min-height:48px;min-width:0;max-width:100%;padding:10px 12px;overflow-wrap:anywhere;border:1px solid #2b415e;border-radius:9px;background:#122337;color:#edf2ff;cursor:pointer}.field-example:hover{border-color:#8e65e3}.field-example[aria-pressed="true"]{background:linear-gradient(120deg,#432372,#172e59);border-color:#b371ff;box-shadow:0 0 0 1px #7548c8}.field-example[aria-pressed="true"]::before{content:'✓ ';color:#cbabff}.free-label{display:block;font-size:11px;color:#bccbe0;margin-top:13px;margin-bottom:5px}.detail-field textarea{display:block;width:100%;font:inherit;font-size:13px;line-height:1.5;padding:11px 12px;resize:vertical;min-height:50px;border:1px solid #29435f;border-radius:8px;background:#101f30;color:var(--text)}.detail-field textarea::placeholder{color:#a1b3cd}.field-review{color:#e0be76;font-size:11px;margin-top:8px}.no-field-examples{font-size:12px}.additional-examples{margin-top:12px;padding:10px;border:1px solid #344467;border-radius:8px}.additional-examples summary{cursor:pointer;color:#cdb4ff;font-size:12px;min-height:30px}.additional-examples>p{font-size:11px;margin-bottom:8px}.details-preview{width:100%;min-width:0}.change-scenario{display:flex;align-items:center;gap:12px;font:inherit;font-size:12px;padding:10px 14px;min-height:44px;border:1px solid #30486c;border-radius:8px;background:#14243d;color:#edf2ff;cursor:pointer;margin-bottom:22px}.details-preview h3{font-size:14px;border-bottom:2px solid #9756ee;padding-bottom:12px;margin-bottom:14px}.prompt-preview{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;padding:16px;border:1px solid #243e58;border-radius:10px;background:#061322;color:#d3e1f7;margin:0;min-height:240px}.builder-load-status{font-size:13px;color:#e3cb93;padding:12px;margin-top:12px;border:1px solid #4c4965;border-radius:8px}.detail-field[aria-busy="true"]{opacity:.7}
@media(min-width:1250px){.builder-shell[data-step="2"]{grid-template-columns:210px minmax(0,1fr) 360px}}@media(max-width:700px){.details-heading h1{font-size:27px}.detail-field{padding:13px}.field-count{font-size:9px}.field-example{flex-basis:110px}.prompt-preview{font-size:12px}.builder-shell[data-step="2"] .scenario-preview{grid-column:auto}}
/* Risultato: stessa shell, prompt selezionabile e azioni effettive. */
.builder-shell[data-step="3"] .scenario-stage{min-height:0;padding:24px 18px}.builder-shell[data-step="3"] .scenario-preview{display:flex;min-height:0;gap:18px}.result-heading{padding:0 8px 22px}.result-heading h1{font-size:clamp(28px,2.6vw,38px);line-height:1.15;margin-bottom:12px}.result-heading>p:last-child{font-size:15px}.result-card{background:#0c1a29;border:1px solid #29405b;border-radius:13px;padding:18px}.result-card-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:15px}.result-card h2{font-size:18px;line-height:1.4;letter-spacing:-.4px}.result-card h2 span{color:#bacbef}.ready-badge{font-size:10px;color:#62e6c8;background:#113536;border:1px solid #256265;border-radius:6px;padding:5px 8px}.final-prompt{font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow-y:auto;min-height:260px;background:#071321;border:1px solid #29415b;border-radius:9px;padding:18px;margin:0;color:#d9e4f6;user-select:text}.result-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}.result-actions button{margin:0;min-height:44px}.result-actions .scenario-continue{justify-content:center;padding-inline:24px}.copy-feedback{font-size:13px;margin-top:12px;color:#82e5cb}.result-summary{width:100%;min-width:0}.result-summary h3{font-size:16px;padding-bottom:12px;border-bottom:1px solid #34435f}.result-summary dl{margin:18px 0}.result-summary dt{font-size:11px;font-weight:600;color:#9faecd;margin:15px 0 4px}.result-summary dd{margin:0;font-size:14px;color:#f0f4fc;overflow-wrap:anywhere;white-space:pre-wrap}.result-ready{display:flex;gap:12px;padding:16px 12px;border:1px solid #247b66;border-radius:9px;background:#0b2827;margin-bottom:18px}.result-ready>span{color:#52e5bf;font-size:25px}.result-ready strong{color:#75edcf;font-size:13px}.result-ready p{font-size:12px;line-height:1.5;margin-top:4px}.result-summary .change-scenario{width:100%;justify-content:space-between}.generate-prompt{margin-top:18px;min-width:180px;justify-content:center;gap:24px}.required-feedback{font-size:13px;color:#ffd0a0;margin-top:12px}.detail-field textarea[aria-invalid="true"]{border-color:#ffae83;outline:1px solid #ffae83}.clipboard-fallback{position:fixed;left:-9999px;top:0}
@media(min-width:1250px){.builder-shell[data-step="3"]{grid-template-columns:210px minmax(0,1fr) 330px}}@media(max-width:700px){.builder-shell[data-step="3"] .scenario-preview{grid-column:auto}.result-card{padding:13px}.result-heading{padding-inline:0}.final-prompt{font-size:12px;padding:13px;max-height:65vh}.result-actions button,.generate-prompt{width:100%}.result-actions .change-scenario{justify-content:center}}
.field-input-wrap{position:relative}.detail-field .field-input-wrap textarea{padding-right:44px}.field-clear-icon{position:absolute;top:7px;right:7px;display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:5px;background:transparent;color:#bccbe0;font:22px/1 system-ui;cursor:pointer}.field-clear-icon:hover{background:#29435f;color:#fff}.field-clear-icon:focus-visible{outline:2px solid #cdb4ff;outline-offset:2px}

.field-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.field-requirement{font-size:10px;line-height:1.4;color:#b6c5db;border:1px solid #30445d;border-radius:4px;padding:1px 5px;white-space:nowrap}

/* Impostazione globale compatta, prima dei campi dello Step 2. */
.ai-target-control{display:grid;grid-template-columns:auto minmax(140px,210px) minmax(0,1fr);align-items:center;gap:12px;margin:0 0 14px;padding:10px 14px;border:1px solid #20344c;border-radius:10px;background:#0c1b2b}
.ai-target-control label{font-size:13px;font-weight:600;white-space:nowrap}
.ai-target-control select{width:100%;min-height:40px;padding:8px 10px;border:1px solid #30475e;border-radius:7px;background:#102031;color:#edf3fb;font:inherit;font-size:13px}
.ai-target-control p{margin:0;font-size:11px;line-height:1.5}
.ai-target-summary{border-top:1px solid #30475e;padding-top:.8rem}
.details-change-topic{margin:12px 0 0;min-height:40px}
.builder-tips{width:100%;min-width:0}
.builder-tips h2{font-size:20px;line-height:1.35;margin:0 0 8px;letter-spacing:-.3px}
.builder-tips .tips-intro{font-size:13px;margin-bottom:18px}
.tips-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.tips-list li{padding:16px;border:1px solid #20344c;border-radius:9px;background:#0c1b2b}
.tips-list h3,.active-field-tip h3,.active-field-tip h4{font-size:14px;line-height:1.4;margin:0 0 6px}
.tips-list p,.active-field-tip p{font-size:13px;line-height:1.6;margin:0}
.active-field-tip{margin-top:22px;padding-top:18px;border-top:1px solid #9356df}
.active-field-tip>div{margin-top:12px;padding:16px;border:1px solid #45336b;border-radius:9px;background:#17182f}
@media(min-width:1250px){.builder-shell[data-step="2"]{grid-template-columns:210px minmax(0,1fr) 360px}}
@media(max-width:1450px){.ai-target-control{grid-template-columns:auto minmax(140px,1fr)}.ai-target-control p{grid-column:1/-1}}
@media(max-width:700px){.ai-target-control{grid-template-columns:minmax(0,1fr);gap:7px}.ai-target-control p{grid-column:auto}.builder-tips h2{font-size:20px}}

/* Step 2: presentazione generica, indipendente da percorsi, argomenti e slug. */
.builder-shell[data-step="2"] .scenario-stage{padding:18px 12px 12px}
.builder-shell[data-step="2"] .details-heading{padding:0 6px 14px}
.builder-shell[data-step="2"] .details-heading h1{font-size:28px;margin-bottom:6px}
.builder-shell[data-step="2"] .details-heading>p:last-child{font-size:13px;line-height:1.55}
.builder-shell[data-step="2"] .step2-icon{display:inline-grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:9px;color:#dce9ff;background:#ffffff08}
.builder-shell[data-step="2"] .step2-icon svg{width:23px;height:23px;display:block}
.builder-shell[data-step="2"] .ai-target-control{grid-template-columns:30px auto minmax(140px,190px) minmax(0,1fr);gap:12px;padding:9px 12px;border-color:#335275;background:#0a1d30;margin-bottom:14px}
.builder-shell[data-step="2"] .ai-target-icon{width:30px;height:30px;background:#121e3c;color:#d8d7ff}
.builder-shell[data-step="2"] .ai-target-control label{font-size:12px}
.builder-shell[data-step="2"] .ai-target-control select{min-height:38px;background:#0c2138;border-color:#527095}
.builder-shell[data-step="2"] .ai-target-control p{grid-column:auto;font-size:11px;color:#c0cfe3}
.builder-shell[data-step="2"] .detail-field{padding:14px;margin-bottom:12px;border-color:#324973;background:linear-gradient(115deg,#111e43,#122b50);box-shadow:inset 0 1px 0 #ffffff04}
.builder-shell[data-step="2"] .detail-field:nth-child(3n+2){background:linear-gradient(115deg,#221e47,#1a2a50);border-color:#414770}
.builder-shell[data-step="2"] .detail-field:nth-child(3n){background:linear-gradient(115deg,#0b2840,#12354b);border-color:#2e536c}
.builder-shell[data-step="2"] .detail-field-heading{display:grid;grid-template-columns:40px 34px minmax(0,1fr) auto;gap:10px;margin-bottom:12px}
.builder-shell[data-step="2"] .field-number{width:40px;height:40px;font-size:22px;font-weight:700;background:linear-gradient(145deg,#9238dc,#4f42e9)}
.builder-shell[data-step="2"] .field-icon{color:#d9e8ff;background:#3853a12b}
.builder-shell[data-step="2"] .detail-field-heading label{font-size:18px;line-height:1.35;font-weight:700;color:#f2f6ff}
.builder-shell[data-step="2"] .detail-field-heading p{font-size:12px;line-height:1.5;color:#c0d1e6;margin-top:3px}
.builder-shell[data-step="2"] .field-title{gap:8px;align-items:center}
.builder-shell[data-step="2"] .field-requirement{font-size:10px;padding:3px 7px;border-color:#596a90;background:#091a2b80;color:#d4e0f1;font-weight:400}
.builder-shell[data-step="2"] .field-count{font-size:11px;color:#d0ddf0}
.builder-shell[data-step="2"] .field-examples{gap:8px}
.builder-shell[data-step="2"] .field-example{min-height:38px;padding:7px 10px;flex-basis:100px;border-radius:7px;background:#0a1c30;border-color:#577297;font-size:12px;color:#eef4ff}
.builder-shell[data-step="2"] .field-example:hover{background:#1a3152;border-color:#ab8ae5}
.builder-shell[data-step="2"] .field-example[aria-pressed="true"]{background:linear-gradient(115deg,#35235c,#223a62);border-color:#ba92ff;box-shadow:inset 0 0 0 1px #9460d4;color:#fff}
.builder-shell[data-step="2"] .field-example[aria-pressed="true"]::before{color:#e1caff}
.builder-shell[data-step="2"] .additional-examples{margin-top:8px;padding:0;border-radius:6px;background:#152d503d;border-color:#3c5278}
.builder-shell[data-step="2"] .additional-examples summary{min-height:28px;padding:5px 9px;font-size:11px;color:#e0c7ff}
.builder-shell[data-step="2"] .additional-examples>p,.builder-shell[data-step="2"] .additional-examples>.field-examples{margin:0;padding:6px 9px 9px}
.builder-shell[data-step="2"] .free-label{margin-top:8px;margin-bottom:4px;font-size:11px;color:#c4d4ea}
.builder-shell[data-step="2"] .detail-field textarea{font-size:13px;line-height:1.4;min-height:44px;height:44px;padding:11px 42px 10px 12px;border-color:#587596;background:#081b2c;color:#f2f6ff}
.builder-shell[data-step="2"] .detail-field textarea::placeholder{color:#b8cbe1}
.builder-shell[data-step="2"] .detail-field textarea[aria-invalid="true"]{border-color:#ffb98f}
.builder-shell[data-step="2"] .field-clear-icon{top:8px;right:7px;color:#e2eafa}
.builder-shell[data-step="2"] :is(.field-example,textarea,select,summary,.field-clear-icon,button):focus-visible{outline:2px solid #d8bbff;outline-offset:3px}
.builder-shell[data-step="2"] .generate-prompt{background:linear-gradient(110deg,#7836c9,#0864c4);border-color:#ab88ef;color:#fff;display:inline-flex;margin-top:0;min-height:44px;min-width:0;padding:10px 16px;font-size:12px}
.builder-shell[data-step="2"] .details-change-topic{display:inline-flex;margin:0 0 0 8px;min-height:44px;padding:10px 14px;vertical-align:middle}
.builder-shell[data-step="2"] .scenario-preview{padding:16px 12px}
.builder-shell[data-step="2"] .builder-tips h2{display:flex;align-items:center;gap:9px;font-size:17px;line-height:1.4;margin-bottom:8px}
.builder-shell[data-step="2"] .tips-heading-icon{width:24px;height:26px;color:#ffdb75;background:transparent}
.builder-shell[data-step="2"] .tips-heading-icon svg{width:21px;height:21px}
.builder-shell[data-step="2"] .builder-tips .tips-intro{font-size:12px;line-height:1.6;color:#c0d1e6;margin-bottom:16px}
.builder-shell[data-step="2"] .tips-list{gap:10px}
.builder-shell[data-step="2"] .tips-list li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;padding:13px 10px;border-color:#274861;background:#0b2032}
.builder-shell[data-step="2"] .tip-icon{width:32px;height:34px;background:#203d5d4d;color:#d9e8ff}
.builder-shell[data-step="2"] .tips-list li:last-child .tip-icon{color:#ffdc81}
.builder-shell[data-step="2"] .tips-list h3{font-size:12px;line-height:1.45;margin-bottom:5px;color:#f2f6ff}
.builder-shell[data-step="2"] .tips-list p{font-size:12px;line-height:1.55;color:#bfd0e5}
.builder-shell[data-step="2"] .active-field-tip{margin-top:20px;padding-top:14px;border-color:#9162c5}
.builder-shell[data-step="2"] .active-field-tip h3{display:flex;align-items:center;gap:8px;font-size:13px}
.builder-shell[data-step="2"] .active-field-tip>div{margin-top:12px;padding:13px;border-color:#665080;background:#211b39}
.builder-shell[data-step="2"] .active-field-tip h4{font-size:12px;line-height:1.5;color:#f2eaff}
.builder-shell[data-step="2"] .active-field-tip p{font-size:12px;line-height:1.6;color:#d0c8e3}
@media(min-width:1051px){.builder-shell[data-step="2"]{grid-template-columns:160px minmax(0,1fr) 280px;gap:16px}}
@media(min-width:1451px){.builder-shell[data-step="2"]{grid-template-columns:190px minmax(0,1fr) 340px}}
@media(max-width:1200px){.builder-shell[data-step="2"] .ai-target-control{grid-template-columns:30px auto minmax(140px,1fr)}.builder-shell[data-step="2"] .ai-target-control p{grid-column:2/-1}}
@media(max-width:700px){
 .builder-shell[data-step="2"] .detail-field{padding:12px}
 .builder-shell[data-step="2"] .detail-field-heading{grid-template-columns:36px 28px minmax(0,1fr);gap:8px}
 .builder-shell[data-step="2"] .field-number{width:36px;height:36px;font-size:20px}
 .builder-shell[data-step="2"] .field-icon{width:28px;height:30px}
 .builder-shell[data-step="2"] .field-icon svg{width:21px;height:21px}
 .builder-shell[data-step="2"] .detail-field-heading label{font-size:16px}
 .builder-shell[data-step="2"] .field-count{grid-column:3;font-size:10px}
 .builder-shell[data-step="2"] .ai-target-control{grid-template-columns:28px minmax(0,1fr);gap:8px}
 .builder-shell[data-step="2"] .ai-target-control select,.builder-shell[data-step="2"] .ai-target-control p{grid-column:1/-1}
 .builder-shell[data-step="2"] .field-example{flex-basis:105px;min-height:42px}
 .builder-shell[data-step="2"] .detail-field textarea{min-height:54px;height:54px}
 .builder-shell[data-step="2"] .generate-prompt,.builder-shell[data-step="2"] .details-change-topic{width:100%;justify-content:center;margin:8px 0 0}
}
/* L'alternanza segue i soli campi visibili, anche quando il form contiene altri argomenti nascosti. */
.builder-shell[data-step="2"] .detail-field:nth-child(3n+1 of .detail-field:not([hidden])){background:linear-gradient(115deg,#111e43,#122b50);border-color:#324973}
.builder-shell[data-step="2"] .detail-field:nth-child(3n+2 of .detail-field:not([hidden])){background:linear-gradient(115deg,#221e47,#1a2a50);border-color:#414770}
.builder-shell[data-step="2"] .detail-field:nth-child(3n of .detail-field:not([hidden])){background:linear-gradient(115deg,#0b2840,#12354b);border-color:#2e536c}
@media(min-width:1051px) and (max-width:1450px){
 .builder-shell[data-step="2"] .current-builder{padding:14px 10px;gap:9px}
 .builder-shell[data-step="2"] .current-builder>div{min-width:0}
 .builder-shell[data-step="2"] .current-builder .scenario-icon{width:38px;height:40px;border-radius:9px}
 .builder-shell[data-step="2"] .current-builder .scenario-icon svg{width:25px;height:25px}
 .builder-shell[data-step="2"] .current-builder h2{font-size:16px;overflow-wrap:anywhere}
 .builder-shell[data-step="2"] .current-builder p{font-size:11px;overflow-wrap:anywhere}
 .builder-shell[data-step="2"] .builder-stepper{padding-inline:4px}
 .builder-shell[data-step="2"] .builder-stepper li{gap:10px}
 .builder-shell[data-step="2"] .builder-stepper .step-number{width:40px;height:40px;font-size:20px}
 .builder-shell[data-step="2"] .builder-stepper li:not(:last-child)::after{left:19px;top:40px}
 .builder-shell[data-step="2"] .builder-stepper strong{font-size:14px}
 .builder-shell[data-step="2"] .builder-stepper p{font-size:11px}
}

.builder-shell[data-step="2"] .builder-stepper [aria-current="step"] .step-number{background:linear-gradient(145deg,#9238dc,#0864c4)}

/* Compact optional information area; regular field controls are reused. */
.sufficiency-fields > h2, .sufficiency-feedback > h2 { font-size:1rem; margin:0 0 .75rem; }
.sufficiency-fields, .sufficiency-feedback { margin:1rem 0; min-width:0; }
.sufficiency-feedback { border:1px solid #7454b0; border-radius:12px; padding:1rem; }
.sufficiency-feedback ul { padding-left:1.25rem; margin:.5rem 0; }
.sufficiency-feedback li button { background:none; border:0; padding:.25rem 0; color:inherit; text-align:left; text-decoration:underline; cursor:pointer; overflow-wrap:anywhere; }

/* Data-driven micro-briefs stay inside the standard parent field. */
.microbrief-group{margin-top:14px;padding:14px;border:1px solid #455477;border-radius:9px;background:#112139;min-width:0;max-width:100%}
.microbrief-group>h3{font-size:15px;line-height:1.4;margin:0 0 4px;overflow-wrap:anywhere}
.microbrief-help{font-size:12px;line-height:1.5;color:#c0d1e6;margin:0 0 12px}
.builder-shell[data-step="2"] .microbrief-group .detail-field.is-microbrief-field:not([hidden]){padding:0;margin:12px 0 0;border:0;border-radius:0;background:none;box-shadow:none;min-width:0}
.builder-shell[data-step="2"] .microbrief-group .detail-field-heading{display:flex;gap:8px;margin-bottom:6px}
.builder-shell[data-step="2"] .microbrief-group .detail-field-heading label{font-size:14px;line-height:1.5}
.builder-shell[data-step="2"] .microbrief-group .field-icon,.builder-shell[data-step="2"] .microbrief-group .free-label{display:none}
.microbrief-group textarea{max-width:100%;box-sizing:border-box}
@media(max-width:600px){.microbrief-group{padding:12px}.builder-shell[data-step="2"] .microbrief-group .detail-field-heading{display:block}.microbrief-group .field-count{display:block;margin-top:4px}}

.microbrief-activation{display:block;max-width:100%;margin-top:10px;padding:8px;border:1px solid #455477;border-radius:6px;background:#112139;color:#dce7ff;font:inherit;font-size:12px}
.builder-shell[data-step="2"] .detail-field-heading label{color:#ffdc55}
.details-topic{display:inline-block;margin:4px 0 8px;padding:5px 10px;border:1px solid #355c83;border-radius:6px;color:#b9e4ff;font-size:14px;font-weight:700}
.current-builder .sidebar-topic{margin-top:8px;color:#ffdc55;font-size:13px;font-weight:700}
.field-answer-example{font-size:12px;line-height:1.6;color:#c5d8ee;margin:4px 0 8px;overflow-wrap:anywhere}
.step-navigation{display:flex;align-items:center;gap:14px;width:100%;min-width:0;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;text-align:left}
.step-navigation-copy{min-width:0}.step-navigation-hint{display:block;font-size:12px;line-height:1.5;color:#bccbe0;margin-top:3px}
.step-navigation:not(:disabled){cursor:pointer}.step-navigation:not(:disabled):hover strong{color:#ffdc55}
.step-navigation:focus-visible{outline:2px solid #ffdc55;outline-offset:6px}
.step-navigation:disabled{opacity:1}
.builder-shell[data-step="2"] .catalog-input-multilinea textarea,.builder-shell[data-step="2"] .catalog-input-codice textarea{height:140px;min-height:100px}
.builder-shell[data-step="2"] .catalog-input-codice textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:4}
@media(max-width:700px){.step-navigation{flex-direction:column;align-items:flex-start;gap:8px}.step-navigation-hint{font-size:10px}}
.result-actions{gap:10px}.result-actions form{margin:0;display:flex}.result-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 13px;font-size:12px;white-space:nowrap}.result-actions .scenario-continue{padding-inline:13px}.result-actions svg{width:18px;height:18px;flex-shrink:0}.result-actions .result-save{background:var(--yellow);color:var(--bg);border:1px solid var(--yellow);border-radius:10px}.result-actions .change-scenario{border:1px solid #465673;padding:10px 13px;border-radius:10px}
@media(max-width:700px){.result-actions{align-items:stretch}.result-actions>button,.result-actions form,.result-actions form button{width:100%}}
.saved-edit-banner{margin:24px 28px 0;padding:18px 22px;border:1px solid var(--border);border-left:3px solid var(--yellow);border-radius:10px;background:var(--panel)}.saved-edit-banner strong{font-size:18px}.saved-edit-banner p{font-size:13px;margin-top:8px}.saved-edit-banner a{display:inline-block;color:var(--blue);margin-top:10px;font-size:13px}.result-actions form{flex-wrap:wrap;gap:10px}@media(max-width:700px){.saved-edit-banner{margin:18px 16px 0;padding:16px}}
.builder-save-feedback{margin-top:16px;padding:14px;border:1px solid var(--border);border-radius:9px;background:var(--panel);font-size:13px;line-height:1.6}.builder-save-feedback a{display:inline-block;margin-top:8px;color:var(--blue)}

.builder-shell [data-continue][hidden]{display:none}
.scenario-card[data-selected]{border-color:#3975c8}.scenario-card[data-selected] .selection-mark{opacity:1}
