/* Scope the workbench to this route; shared navigation, ads and other tools are untouched. */
.gemini-template-page{--gm-ink:var(--ink,#17233a);--gm-muted:var(--muted,#62718a);--gm-line:var(--line,#dce4ee);--gm-card:var(--card,#fff);--gm-soft:var(--bg,#f5f8fc);--gm-brand:var(--brand,#315acb);--gm-brand-soft:var(--brand-soft,#eef3ff);color:var(--gm-ink)}
.gemini-template-page>.tool-hero,.gemini-template-page .gm-workbench>.legacy-help,.gemini-template-page .gm-workbench textarea+button.btn-outline-secondary.btn-sm{display:none!important}
html.xunl-legacy-tool .gm-workbench{max-width:1240px;width:calc(100% - 48px);margin:30px auto 60px;font-size:16px;line-height:1.7}
.gm-workbench *{box-sizing:border-box}.gm-workbench [hidden]{display:none!important}.gm-intro{max-width:850px;margin-bottom:30px}.gm-back{display:inline-flex;min-height:40px;align-items:center;margin-bottom:13px;font-size:14px;text-decoration:none;color:var(--gm-muted)}.gm-eyebrow{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:12px;font-weight:750;letter-spacing:.09em;color:var(--gm-brand)}.gm-spark{font-size:20px}.gm-pill{letter-spacing:0;font-weight:550;padding:3px 9px;border-radius:20px;background:var(--gm-brand-soft);font-size:12px}.gm-intro h1{font-size:clamp(28px,3.3vw,40px);line-height:1.25;letter-spacing:-.035em;margin:12px 0 14px;font-weight:760;color:var(--gm-ink)}.gm-intro>p{font-size:17px;color:var(--gm-muted);max-width:760px;margin:0 0 16px;line-height:1.8}.gm-benefits{display:flex;flex-wrap:wrap;gap:8px 21px;font-size:13px;color:var(--gm-muted)}.gm-layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:24px;align-items:start}.gm-panel{background:var(--gm-card);border:1px solid var(--gm-line);border-radius:18px;box-shadow:0 5px 20px #13295505;min-width:0;padding:26px}.gm-panel-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.gm-panel-top>div{display:flex;align-items:center;gap:10px}.gm-panel-top h2{margin:0;font-size:19px;line-height:1.4;font-weight:700}.gm-step{color:var(--gm-brand);background:var(--gm-brand-soft);font-size:12px;font-weight:750;padding:4px 7px;border-radius:6px}.gm-field{margin:0 0 20px}.gm-field label,.gm-prompt-body label{font-weight:650;display:block;font-size:15px;line-height:1.7;margin:0 0 8px;color:var(--gm-ink)}.gm-label-row{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.gm-label-row small{font-size:12px!important;color:var(--gm-muted);white-space:nowrap}.gm-required{color:#c33556}.gm-optional{color:var(--gm-muted);font-weight:400;font-size:13px;margin-left:5px}.gm-control{width:100%;border:1px solid var(--gm-line);border-radius:10px;background:var(--gm-card);color:var(--gm-ink);font:inherit;font-size:16px;line-height:1.7;padding:12px 13px;transition:border-color .15s,box-shadow .15s;min-width:0;min-height:48px}.gm-control::placeholder{color:var(--gm-muted);opacity:.82}.gm-control:focus{border-color:var(--gm-brand);outline:none;box-shadow:0 0 0 3px var(--gm-brand-soft)}textarea.gm-control{resize:vertical}.gm-hint{margin:8px 0 0;font-size:13px!important;line-height:1.7!important;color:var(--gm-muted)}.gm-prompt-options{border:1px solid var(--gm-line);border-radius:10px;margin:6px 0 20px;overflow:hidden}.gm-prompt-options>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 15px;cursor:pointer;list-style:none;font-size:14px;font-weight:650;background:var(--gm-soft);min-height:49px}.gm-prompt-options>summary::-webkit-details-marker{display:none}.gm-summary-icon{font-size:20px;line-height:1;color:var(--gm-muted);transition:transform .2s}.gm-prompt-options[open] .gm-summary-icon{transform:rotate(45deg)}.gm-prompt-body{padding:17px 15px}.gm-prompt-body .gm-label-row{flex-wrap:wrap;gap:0 10px;margin-bottom:8px}.gm-prompt-body label{margin:0}.gm-prompt-editor{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.75}.gm-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:9px 13px;font-family:inherit;font-size:14px;line-height:1.5;font-weight:650;border:1px solid transparent;border-radius:9px;cursor:pointer;text-decoration:none;transition:background-color .15s,transform .15s;white-space:normal;color:var(--gm-ink);background:transparent}.gm-button:hover:not(:disabled){background:var(--gm-soft)}.gm-button:active:not(:disabled){transform:translateY(1px)}.gm-button:disabled{opacity:.55;cursor:not-allowed}.gm-button-primary{width:100%;min-height:52px;background:#315acb;color:#fff;border-color:#315acb;font-size:16px;box-shadow:0 3px 9px #315acb20}.gm-button-primary:hover:not(:disabled){background:#274db5}.gm-submit-icon{font-size:20px}.gm-button-secondary{border-color:var(--gm-line);background:var(--gm-card)}.gm-button-subtle{background:var(--gm-soft);border-color:var(--gm-line)}.gm-button-link{padding:5px 0;min-height:36px;color:var(--gm-brand);font-size:13px}.gm-submit-area{margin-top:20px}.gm-submit-area>.gm-hint{text-align:center}.gm-privacy{font-size:12px;line-height:1.8;margin:16px 0 0;color:var(--gm-muted)}.gm-notice{font-size:14px;line-height:1.8;color:var(--gm-brand);background:var(--gm-brand-soft);border-radius:9px;padding:12px 14px;margin:14px 0}.gm-notice-error,.gm-notice[data-state=error]{color:var(--bad,#a92e47);background:var(--bad-soft,#fff0f3);border:1px solid var(--bad,#d86278)}.gm-workbench .legacy-captcha-feedback{border-color:var(--gm-line)!important;border-radius:9px!important;background:var(--gm-soft);color:var(--gm-muted);font-size:14px!important;line-height:1.8!important;padding:12px 14px!important;margin:0 0 14px!important}.gm-workbench .legacy-captcha-feedback[data-state=error]{background:var(--bad-soft,#fff0f3);color:var(--bad,#a92e47)}.gm-workbench .legacy-captcha-feedback button{font:inherit;color:inherit;background:transparent;border:1px solid currentColor;padding:8px 12px;border-radius:7px;min-height:44px}.gm-status-pill{display:inline-flex;align-items:center;gap:5px;border-radius:20px;background:var(--gm-soft);border:1px solid var(--gm-line);padding:4px 9px;font-size:12px;color:var(--gm-muted);white-space:nowrap}.gm-status-pill[data-state=ready]{background:var(--ok-soft,#eaf8ef);color:var(--ok,#23774a);border-color:var(--ok-soft,#eaf8ef)}.gm-status-pill[data-state=error]{background:var(--bad-soft,#fff0f3);color:var(--bad,#a92e47)}.gm-result-actions{display:flex;gap:9px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--gm-line)}.gm-empty{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:330px;padding:35px 10px}.gm-empty h3{font-size:18px;font-weight:650;margin:27px 0 9px}.gm-empty p{font-size:14px;line-height:1.9;color:var(--gm-muted);max-width:340px;margin:0}.gm-draft-visual{position:relative;display:flex;flex-direction:column;justify-content:center;gap:10px;width:105px;height:121px;border:1px solid var(--gm-line);background:linear-gradient(150deg,var(--gm-card),var(--gm-brand-soft));border-radius:13px;transform:rotate(-6deg);padding:24px 19px;box-shadow:8px 8px 0 var(--gm-soft)}.gm-draft-visual i{height:5px;border-radius:4px;background:var(--gm-brand);opacity:.28}.gm-draft-visual i:nth-of-type(2){width:82%}.gm-draft-visual i:nth-of-type(3){width:62%}.gm-draft-visual b{font-size:10px;font-weight:650;letter-spacing:.1em;color:var(--gm-brand);text-align:left}.gm-draft-star{position:absolute;right:-14px;top:-17px;font-size:39px;color:var(--gm-brand);text-shadow:0 3px 10px var(--gm-brand-soft)}.gm-result-text{font-family:inherit;font-size:15px;line-height:1.95;color:var(--gm-ink);padding:22px 0;max-height:950px;overflow:auto;overscroll-behavior:contain}.gm-result-text:empty{display:none}.gm-result-note{margin:0 0 20px;padding:12px 13px;border-radius:9px;background:var(--gm-soft);font-size:13px;color:var(--gm-muted);line-height:1.8}.gm-guide{border-top:1px solid var(--gm-line);padding-top:21px;margin-top:5px}.gm-guide h3{font-size:15px;margin:0 0 10px;font-weight:650}.gm-guide p,.gm-guide ul{font-size:13px;line-height:1.9;color:var(--gm-muted);margin:0 0 10px}.gm-guide ul{padding-left:20px}.gm-guide li{margin-bottom:6px}.gm-guide a{font-size:13px;color:var(--gm-brand);text-decoration:none;min-height:30px;display:inline-flex;align-items:center}.gm-guide a:hover{text-decoration:underline}.gm-faq{max-width:900px;margin:44px auto 0}.gm-faq h2{font-size:22px;margin:0 0 18px}.gm-faq details{border-bottom:1px solid var(--gm-line);padding:16px 0}.gm-faq summary{font-size:16px;font-weight:600;min-height:28px;cursor:pointer}.gm-faq p{color:var(--gm-muted);font-size:15px;line-height:1.9;margin:12px 0 0}.gm-spinner{width:18px;height:18px;display:inline-block;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:gm-spin .8s linear infinite}.gm-workbench[data-generating=true] .gm-draft-star{animation:gm-pulse 1.4s ease-in-out infinite}.gm-workbench[data-generating=true] .gm-draft-visual i{animation:gm-pulse 1.4s ease-in-out infinite}.gm-workbench[data-generating=true] .gm-draft-visual i:nth-of-type(2){animation-delay:.15s}.gm-workbench[data-generating=true] .gm-draft-visual i:nth-of-type(3){animation-delay:.3s}
html[data-xunl-theme=dark] .gemini-template-page .gm-control{background:var(--bg,#0b1220);border-color:var(--line-2,#38506d)}html[data-xunl-theme=dark] .gm-button-primary{background:#416fdc;border-color:#416fdc}html[data-xunl-theme=dark] .gm-button-primary:hover:not(:disabled){background:#315fc9}html[data-xunl-theme=dark] .gm-required{color:#ffadb9}
@keyframes gm-spin{to{transform:rotate(360deg)}}@keyframes gm-pulse{50%{opacity:.35;transform:translateY(-2px)}}
@media(max-width:960px){.gm-layout{grid-template-columns:minmax(0,1fr)}.gm-result-panel{min-height:0}.gm-empty{min-height:250px}.gm-result-text{max-height:700px}}
@media(max-width:600px){html.xunl-legacy-tool .gm-workbench{width:calc(100% - 24px);margin-top:16px}.gm-intro{margin-bottom:22px}.gm-panel{padding:19px 16px;border-radius:13px}.gm-panel-top{gap:8px;margin-bottom:21px}.gm-panel-top h2{font-size:17px}.gm-panel-top>div{gap:7px}.gm-panel-top .gm-button{font-size:13px;padding:7px 9px}.gm-benefits{gap:6px 14px;font-size:12px}.gm-intro>p{font-size:16px}.gm-label-row{align-items:start}.gm-field label{font-size:15px}.gm-faq{margin-top:32px}.gm-faq h2{font-size:20px}.gm-faq summary{font-size:15px}.gm-result-actions .gm-button{flex:1}.gm-control{font-size:16px}.gm-status-pill{font-size:11px}.gm-prompt-editor{font-size:13px}}
@media(prefers-reduced-motion:reduce){.gm-workbench *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
