:root{--ink:#121212;--cream:#f7f3eb;--paper:#fffdf9;--gold:#ae8847;--gold2:#d7c49a;--muted:#6f6a62;--line:#ded6c8;--green:#39735b}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',sans-serif}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:#111;color:#fff;padding:28px 16px;display:flex;flex-direction:column;z-index:20}.brand{font-family:'Libre Baskerville',serif;font-size:24px;line-height:1.12;letter-spacing:.02em}.brand span,.brand b{color:#c29b59}.brand b{font-size:20px}.brand-sub{font-size:11px;margin-top:8px;color:#ddd}.desktop-nav{display:grid;gap:10px;margin-top:42px}.nav-item{border:0;background:transparent;color:#fff;text-align:left;padding:14px 15px;border-radius:7px;font:500 15px 'DM Sans';cursor:pointer}.nav-item.active{background:linear-gradient(90deg,#82652f,#b39253)}.sidebar-quote{margin-top:auto;font-family:Georgia,serif;font-style:italic;font-size:13px;line-height:1.45;color:#eee}.sidebar-footer{font-size:11px;color:#aaa;margin-top:26px}.main-content{margin-left:220px;min-height:100vh;padding:0 36px 70px}.topbar{height:72px;display:flex;justify-content:flex-end;align-items:center}.mobile-brand{display:none}.user-chip{display:flex;gap:9px;align-items:center;font-size:14px}.user-chip span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--gold);color:white}.view{display:none;max-width:1160px;margin:auto}.active-view{display:block}.home-head{display:grid;grid-template-columns:1.6fr 1fr;gap:30px;align-items:end}.hero-copy .eyebrow,.eyebrow{color:#9b7434;font-size:12px;font-weight:700;letter-spacing:.17em}.hero-copy h1{font:700 52px/1.05 'Libre Baskerville',serif;margin:8px 0 10px}.hero-copy>p:last-child,.page-subtitle{color:#47423c;font-size:16px}.opportunity{position:relative;border:1px solid #dfd0b5;background:linear-gradient(120deg,#f1e6d2,#f7efe1);padding:20px 70px 18px 22px;border-radius:12px}.opportunity b{font-size:11px;color:#916b2e;letter-spacing:.08em}.opportunity p{margin:8px 0 0;font-size:14px}.opportunity span{position:absolute;right:22px;bottom:15px;font-size:38px;opacity:.55}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}.category-card{position:relative;min-height:188px;text-align:left;padding:24px;border:1px solid var(--line);background:var(--paper);border-radius:12px;cursor:pointer;box-shadow:0 3px 12px #00000008;transition:.18s}.category-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px #0000000e}.category-card i{display:block;color:var(--gold);font-style:normal;font-size:32px;height:40px}.category-card span{display:block;font:700 20px 'Libre Baskerville',serif;margin:8px 0}.category-card small{display:block;font-size:14px}.category-card em{display:block;font-style:normal;color:var(--muted);font-size:13px;max-width:80%;margin-top:12px}.category-card b{position:absolute;right:18px;bottom:18px;width:38px;height:38px;border-radius:50%;background:#f4eee2;display:grid;place-items:center}.ask-card{width:100%;margin-top:18px;border:0;border-radius:10px;background:#111;color:#fff;padding:18px 22px;display:flex;justify-content:space-between;text-align:left;cursor:pointer}.ask-card span{font-weight:700}.ask-card small{display:block;color:#ddd;margin-top:4px}.text-back{border:0;background:none;padding:0;margin:5px 0 28px;color:#625d55;cursor:pointer}.view h2{font:700 38px 'Libre Baskerville',serif;margin:7px 0 8px}.generator-list{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:28px}.generator-card{border:1px solid var(--line);background:var(--paper);border-radius:10px;text-align:left;padding:22px;cursor:pointer}.generator-card strong{font:700 18px 'Libre Baskerville',serif}.generator-card p{color:var(--muted);min-height:38px}.generator-card span{font-size:12px;font-weight:700;color:#8e6b32}.generator-heading{display:grid;grid-template-columns:1fr 230px;gap:28px;align-items:center}.pro-tip{background:#f3ede2;border:1px solid #e2d6c2;border-radius:9px;padding:14px;font-size:12px}.pro-tip b,.pro-tip span{display:block}.pro-tip span{margin-top:5px;color:#5d574f}.profile-use{border:1px solid #dfcda8;background:#f3ecdf;padding:12px 16px;border-radius:8px;margin:18px 0;display:flex;gap:12px;font-size:13px}.step-rail{display:flex;gap:0;margin:26px 0 18px}.rail-step{flex:1;display:flex;align-items:center;gap:8px;color:#918b82;font-size:12px;position:relative}.rail-step:not(:last-child):after{content:'';height:1px;background:#d9d0c2;flex:1;margin:0 8px}.rail-step b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#d5d0c8;color:white}.rail-step.current{color:#111}.rail-step.current b,.rail-step.done b{background:var(--gold)}.generator-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px}.form-card,.about-card{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:26px}.form-card h3{font:700 20px 'Libre Baskerville',serif;margin:0 0 22px}.form-card label{display:block;font-weight:600;font-size:13px;margin:17px 0 7px}.form-card input,.form-card select,.form-card textarea,.search-input{width:100%;border:1px solid #d9d1c5;background:white;border-radius:7px;padding:13px 14px;font:14px 'DM Sans';outline:none}.form-card textarea{resize:vertical}.form-card input:focus,.form-card select:focus,.form-card textarea:focus{border-color:#8f6c35;box-shadow:0 0 0 2px #b4945422}.tile-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:8px 0 20px}.choice{min-height:72px;border:1px solid var(--line);background:#fff;border-radius:7px;padding:10px;cursor:pointer}.choice.selected{border:2px solid var(--gold);background:#fbf5e9}.form-actions{display:flex;justify-content:space-between;margin-top:14px}.primary-btn,.secondary-btn,.mini-btn{border-radius:7px;padding:13px 22px;font:600 13px 'DM Sans';cursor:pointer}.primary-btn{background:#050505;color:#fff;border:1px solid #050505}.secondary-btn,.mini-btn{background:#fff;color:#111;border:1px solid #cfc6b8}.wide{width:100%}.about-card{font-size:13px}.about-card ul{list-style:none;padding:0;line-height:2}.about-card li{color:#514b44}.about-card hr{border:0;border-top:1px solid #e4dbcd;margin:24px 0}.result-view{max-width:820px;text-align:center}.plug-icon{font-size:34px}.center{text-align:center}.result-context{color:var(--muted)}.prompt-card{text-align:left;border:1px solid var(--line);background:var(--paper);border-radius:10px;margin:22px 0 14px}.prompt-head{display:flex;justify-content:space-between;padding:13px 16px;border-bottom:1px solid var(--line);font-size:11px;font-weight:700;letter-spacing:.1em}.prompt-head button{border:0;background:none;cursor:pointer}.prompt-card pre{white-space:pre-wrap;font:13px/1.6 'DM Sans';max-height:380px;overflow:auto;padding:18px}.compat{font-size:12px;color:var(--muted)}.plug-tip{text-align:left;background:#f2e9d8;border:1px solid #dfcda9;border-radius:9px;padding:15px;margin:18px 0}.plug-tip p{margin:5px 0 0}.result-actions{display:flex;gap:12px;justify-content:center;align-items:center}.text-action{border:0;background:none;text-decoration:underline;cursor:pointer}.search-input{max-width:520px;margin:20px 0}.saved-prompts{display:grid;gap:12px}.saved-card,.empty-state{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:18px}.saved-card h3{margin:0}.saved-card p{color:var(--muted)}.saved-actions{display:flex;gap:8px}.profile-form,.ask-form{max-width:760px}.optional{font-weight:400;color:var(--muted)}.toast{position:fixed;right:24px;bottom:24px;background:#111;color:#fff;padding:12px 18px;border-radius:7px;opacity:0;transform:translateY(10px);transition:.2s;z-index:99}.toast.show{opacity:1;transform:none}.mobile-nav{display:none}
@media(max-width:900px){.sidebar{display:none}.main-content{margin-left:0;padding:0 16px 90px}.topbar{height:68px;justify-content:space-between}.mobile-brand{display:block;font-family:'Libre Baskerville';font-size:16px}.mobile-brand span{color:var(--gold)}.user-chip b{display:none}.home-head{display:block}.opportunity{display:none}.hero-copy h1{font-size:34px}.category-grid{grid-template-columns:1fr 1fr;gap:10px}.category-card{min-height:112px;padding:14px}.category-card i{font-size:21px;height:23px}.category-card span{font-size:14px;margin:6px 0}.category-card small{font-size:11px}.category-card em{display:none}.category-card b{width:26px;height:26px;right:10px;bottom:10px}.generator-list{grid-template-columns:1fr}.generator-heading{display:block}.pro-tip{margin:15px 0}.generator-layout{display:block}.about-card{margin-top:16px}.step-rail{overflow:auto}.rail-step span{display:none}.tile-grid{grid-template-columns:repeat(2,1fr)}.view h2{font-size:28px}.mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(4,1fr);bottom:0;left:0;right:0;background:#111;color:#fff;z-index:30;padding:8px 5px max(8px,env(safe-area-inset-bottom))}.mobile-nav button{border:0;background:none;color:#aaa;display:grid;gap:2px;place-items:center;font-size:16px}.mobile-nav button span{font-size:9px}.mobile-nav button.active{color:#d2ad68}.result-actions{flex-direction:column}.form-actions .primary-btn{min-width:130px}}
/* V1.1.1 — one-page button generator + useful Saved Prompts sidebar */
.one-page-head{grid-template-columns:1fr auto}.mobile-saved-toggle{display:none}.generator-workspace{grid-template-columns:minmax(0,1fr) 285px;align-items:start}.builder-column{min-width:0}.one-page-form{padding:8px 18px}.builder-section{padding:14px 0;border-bottom:1px solid var(--line)}.builder-section:last-child{border-bottom:0}.section-title{display:flex;align-items:center;gap:9px;margin:2px 0 8px}.section-title span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f2e7d3;color:#8b672e;font-size:11px;font-weight:700}.section-title h3{margin:0;font:700 15px 'DM Sans',sans-serif}.builder-row{display:grid;grid-template-columns:185px minmax(0,1fr);gap:16px;align-items:start;padding:9px 0}.field-copy strong{font-size:13px;line-height:1.25}.builder-row input,.builder-row textarea{width:100%;border:1px solid #d9d1c5;background:#fff;border-radius:7px;padding:11px 13px;font:13px 'DM Sans';outline:none}.builder-row textarea{resize:vertical}.builder-row input:focus,.builder-row textarea:focus{border-color:#8f6c35;box-shadow:0 0 0 2px #b4945422}.chip-wrap{display:flex;flex-wrap:wrap;gap:8px}.choice-chip{border:1px solid #d7d0c5;background:#fff;color:#171717;border-radius:8px;padding:9px 13px;font:500 12px 'DM Sans';cursor:pointer;transition:.15s}.choice-chip:hover{border-color:#b49359}.choice-chip.selected{background:#111;color:#fff;border-color:#111;box-shadow:0 0 0 3px #ead8b5}.one-page-actions{padding:14px 0 0}.one-page-actions .primary-btn{min-width:210px}.saved-sidebar{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:18px;position:sticky;top:88px;max-height:calc(100vh - 115px);display:flex;flex-direction:column}.saved-sidebar-head{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid var(--line);padding-bottom:12px}.saved-sidebar-head .eyebrow{margin:0 0 4px}.saved-sidebar-head h3{margin:0;font:700 16px 'Libre Baskerville',serif}.count-badge{display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:#ead9b8;color:#6f5123;font-weight:700;font-size:11px}.sidebar-saved-list{display:grid;gap:10px;overflow:auto;padding:12px 2px 4px}.sidebar-saved-card{border:1px solid #e5ddd1;border-radius:8px;background:#fbf7f0;padding:11px}.sidebar-open{display:block;width:100%;border:0;background:none;text-align:left;padding:0;cursor:pointer}.sidebar-open strong{display:block;font-size:12px}.sidebar-open span{display:block;color:var(--muted);font-size:10px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-card-actions{display:flex;gap:7px;margin-top:9px}.sidebar-card-actions button{border:1px solid #d7cdbd;background:#fff;border-radius:6px;padding:6px 9px;font:600 10px 'DM Sans';cursor:pointer}.sidebar-empty{display:grid;gap:5px;padding:20px 6px;text-align:center;color:var(--muted)}.sidebar-empty strong{color:#39342e;font-size:12px}.sidebar-empty span{font-size:11px}.sidebar-view-all{margin-top:auto;padding-top:13px;text-align:left;font-size:11px}.generator-heading .page-subtitle{margin-bottom:0}
@media(max-width:900px){.one-page-head{display:flex;align-items:end;justify-content:space-between;gap:10px}.mobile-saved-toggle{display:block;padding:9px 11px;font-size:11px;white-space:nowrap}.generator-workspace{display:block}.saved-sidebar{display:none;position:fixed;z-index:60;inset:76px 12px 82px 12px;max-height:none;box-shadow:0 20px 60px #0003}.saved-sidebar.mobile-open{display:flex}.one-page-form{padding:5px 13px}.builder-row{grid-template-columns:1fr;gap:7px;padding:8px 0}.chip-wrap{gap:7px}.choice-chip{padding:9px 11px}.one-page-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}.one-page-actions .primary-btn{min-width:0;padding-left:10px;padding-right:10px}.profile-use{flex-direction:column;gap:3px}}
/* V1.1.2 — direct category-to-builder workflow + inline prompt output */
.eyebrow{display:none!important}
.opportunity b{display:none}
.opportunity{padding-top:18px;padding-bottom:18px}
.tool-chooser{padding:16px 18px;margin-bottom:14px}
.tool-chooser-row{display:grid;grid-template-columns:185px minmax(0,1fr);gap:16px;align-items:start}
.tool-chooser-row .field-copy span{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.tool-chip{font-weight:600}
.generator-action-row{align-items:center;gap:12px;margin-top:14px;padding-bottom:4px}
.prompt-actions{display:flex;gap:9px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.prompt-actions button:disabled{opacity:.45;cursor:not-allowed}
.inline-prompt-area{background:var(--paper);border:1px solid var(--line);border-radius:11px;margin-top:14px;overflow:hidden}
.inline-prompt-head{padding:14px 18px;border-bottom:1px solid var(--line)}
.inline-prompt-head h3{margin:0;font:700 16px 'Libre Baskerville',serif}
.inline-prompt-area pre{margin:0;white-space:pre-wrap;font:13px/1.6 'DM Sans';padding:17px 18px;max-height:360px;overflow:auto;background:#fff}
.saved-sidebar-head{align-items:center}
.saved-sidebar-head h3{font-size:17px}
@media(max-width:900px){
 .tool-chooser-row{grid-template-columns:1fr;gap:8px}
 .generator-action-row{display:block}
 .generator-action-row>#clearGenerator{width:100%;margin-bottom:8px}
 .prompt-actions{display:grid;grid-template-columns:1.25fr 1fr 1fr;margin-left:0}
 .prompt-actions button{padding:11px 8px}
}
/* V1.1.4 — Home is the prompt workspace. */
.workspace-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:2px 0 18px}.workspace-hero h1{font:700 46px/1.05 'Libre Baskerville',serif;margin:0 0 9px}.workspace-hero p{margin:0;color:#47423c;font-size:15px}.category-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 14px}.category-tab{border:1px solid #d4ccbf;background:#fff;color:#151515;border-radius:8px;padding:10px 15px;font:600 12px 'DM Sans';cursor:pointer;transition:.15s}.category-tab:hover{border-color:#a9874e}.category-tab.selected{background:#111;color:#fff;border-color:#111;box-shadow:0 0 0 3px #ead8b5}.workspace-category-head{display:flex;align-items:baseline;gap:14px;margin:2px 0 10px}.workspace-category-head h2{font:700 24px 'Libre Baskerville',serif;margin:0}.workspace-category-head .page-subtitle{font-size:13px;margin:0;color:#6b655d}.tool-chooser{padding:0;margin:0 0 12px;background:transparent;border:0;border-radius:0}.tool-strip{display:flex;flex-wrap:wrap;gap:8px}.tool-chip{padding:9px 12px}.generator-workspace{margin-top:0}.profile-use{margin:10px 0 12px}.one-page-form{border-radius:10px}.generator-action-row{margin-bottom:2px}
@media(max-width:900px){.workspace-hero{align-items:center}.workspace-hero h1{font-size:32px}.workspace-hero p{font-size:13px}.category-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;margin-right:-16px;padding-right:16px}.category-tab{white-space:nowrap;padding:9px 12px}.workspace-category-head{display:block}.workspace-category-head h2{font-size:22px}.workspace-category-head .page-subtitle{margin-top:4px}.tool-strip{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;margin-right:-13px;padding-right:13px}.tool-chip{white-space:nowrap}}

/* V1.1.5 — Plug AI high-contrast workspace: white sidebar, charcoal canvas, white work surfaces. */
:root{--plug-charcoal:#101010;--plug-sidebar:#fcfcfa;--plug-white:#ffffff;--plug-gold:#b48a3c;--plug-line:#dedbd4;--plug-stone:#f3f2ee}
body{background:var(--plug-charcoal)}
.sidebar{background:var(--plug-sidebar);color:#111;border-right:1px solid #e4e2dc}
.brand{color:#111}.brand span,.brand b{color:var(--plug-gold)}.brand-sub{color:#8a6a32}
.nav-item{color:#171717}.nav-item.active{background:#111;color:#fff;box-shadow:none}.nav-item:hover:not(.active){background:#f2f1ed}
.sidebar-quote{color:#242424;border-top:1px solid #dedbd4;padding-top:18px}.sidebar-footer{color:#666}
.main-content{background:var(--plug-charcoal);color:#fff}
.user-chip{color:#fff}.user-chip span{background:var(--plug-gold)}
.workspace-hero{margin:0 0 14px}.workspace-hero h1{font-size:42px;color:#fff}.workspace-hero p{color:#d2d2d2}
.category-tabs{gap:10px;margin-bottom:12px}.category-tab{flex:1 1 150px;min-height:50px;background:#fff;border:1px solid #dedede;color:#111;font-size:13px;padding:12px 16px}.category-tab:hover{border-color:var(--plug-gold)}.category-tab.selected{background:#171717;color:#fff;border:1px solid var(--plug-gold);box-shadow:none}
.workspace-category-head,.profile-use{display:none!important}
.tool-chooser{margin-bottom:14px}.tool-strip{gap:9px}.tool-chip{background:#fff;color:#111;border-color:#dedede;padding:10px 15px}.tool-chip:hover{border-color:var(--plug-gold)}.tool-chip.selected{background:#171717;color:#fff;border:1px solid var(--plug-gold);box-shadow:none}
.generator-layout,.generator-workspace{color:#111}.one-page-form,.saved-sidebar,.inline-prompt-area{background:#fff;border-color:#dedbd4;box-shadow:none}.builder-section{border-color:#e7e4de}.section-title span{background:#f0e4cc;color:#75551f}.builder-row input,.builder-row textarea{background:#fff;border-color:#d8d8d5}.choice-chip{background:#fff;border-color:#d8d8d5}.choice-chip:hover{border-color:var(--plug-gold)}.choice-chip.selected{background:#171717;color:#fff;border:1px solid var(--plug-gold);box-shadow:none}
.saved-sidebar{top:78px}.sidebar-saved-card{background:#fff;border-color:#e1dfda}.sidebar-view-all,.sidebar-view-all a{color:#111}
.inline-prompt-area{margin-top:16px}.inline-prompt-area pre{background:#fff}.primary-btn{background:#111;border-color:#111}.secondary-btn,.mini-btn{background:#fff;border-color:#d4d2cc}
@media(max-width:900px){body,.main-content{background:var(--plug-charcoal)}.topbar{color:#fff}.mobile-brand{color:#fff}.workspace-hero h1{font-size:31px}.category-tab{flex:0 0 auto;min-height:44px}.mobile-nav{background:#fff;color:#111;border-top:1px solid #dedbd4}.mobile-nav button{color:#666}.mobile-nav button.active{color:#111}}

/* V1.1.6 — simplified top navigation + muted gold sidebar. */
:root{--plug-sidebar-gold:#b18a43;--plug-sidebar-gold-dark:#9d7939}
.sidebar{background:var(--plug-sidebar-gold);color:#111;border-right:1px solid #8f6b31}
.brand{color:#111}.brand span,.brand b{color:#111}.brand-sub{color:#2d2519}.desktop-nav{margin-top:38px}
.nav-item{color:#111;font-weight:600}.nav-item:hover{background:#0000000b}.nav-item.active{background:#111;color:#fff;box-shadow:none}
.sidebar-quote{color:#1c1812;border-top:1px solid #8f6b31;padding-top:18px}.sidebar-footer{color:#342817}
.user-chip span{background:var(--plug-sidebar-gold);color:#111;font-weight:700}
.workspace-hero{margin-bottom:16px}.category-tabs{margin-bottom:14px}
.category-tab{min-height:52px;font-size:13px;border-radius:8px}.category-tab.selected{background:#171717;color:#fff;border-color:var(--plug-sidebar-gold);box-shadow:0 0 0 1px var(--plug-sidebar-gold)}
.one-page-form{padding:0 18px 8px}
.generator-picker{display:grid;grid-template-columns:185px minmax(0,1fr);gap:16px;align-items:start;padding:18px 0 16px;border-bottom:1px solid #e7e4de}
.generator-picker-copy h3{margin:0;font:700 14px 'DM Sans',sans-serif;color:#111}.generator-picker-copy p{margin:5px 0 0;color:#77716a;font-size:11px}
.generator-picker-buttons{display:flex;flex-wrap:wrap;gap:8px}.generator-pick{padding:9px 12px;background:#fff;border:1px solid #d8d8d5;color:#111}
.generator-pick:hover{border-color:var(--plug-sidebar-gold)}.generator-pick.selected{background:#171717;color:#fff;border:1px solid var(--plug-sidebar-gold);box-shadow:none}
.section-title span{background:#f1f0ec;color:#34312c}.choice-chip.selected{border-color:var(--plug-sidebar-gold)}
@media(max-width:900px){.generator-picker{grid-template-columns:1fr;gap:9px}.generator-picker-buttons{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;margin-right:-13px;padding-right:13px}.generator-pick{white-space:nowrap}.mobile-nav button.active{color:var(--plug-sidebar-gold-dark)}}

/* V1.1.8 — safe rebuild from V1.1.6 baseline.
   Keep the working builder layout intact while refining navigation and option groups. */
:root{--plug-sidebar:#fcfcfa;--plug-charcoal:#101010;--plug-gold:#b48a3c;--plug-line:#dedbd4}
.sidebar{background:var(--plug-sidebar);color:#111;border-right:1px solid #e4e2dc}
.brand{color:#111}.brand span,.brand b{color:var(--plug-gold)}.brand-sub{color:#8a6a32}
.nav-item{color:#171717;font-weight:600}.nav-item:hover{background:#f2f1ed}.nav-item.active{background:#111;color:#fff;box-shadow:none}
.sidebar-quote{color:#242424;border-top:1px solid #dedbd4;padding-top:18px}.sidebar-footer{color:#666}
.user-chip span{background:var(--plug-gold);color:#fff}

/* Main category tiles: preserve exact 3-over-2 placement and align to builder column. */
.category-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:calc(100% - 305px);margin:0 0 14px}
.category-tab{width:100%;min-height:68px;padding:15px 16px;font-size:15px;border-radius:8px;background:#fff;color:#111;border:1px solid #dedede}
.category-tab:hover{border-color:var(--plug-gold)}
.category-tab.selected{background:#171717;color:#fff;border:1px solid var(--plug-gold);box-shadow:none}

/* Keep the form stable and make option groups read top-to-bottom. */
.one-page-form{padding:0 18px 8px}
.generator-picker{display:block;padding:18px 0 16px;border-bottom:1px solid #e7e4de}
.generator-picker-copy{margin-bottom:11px}.generator-picker-copy h3{font:700 17px 'Libre Baskerville',serif}.generator-picker-copy p{font-size:12px;margin-top:5px}
.generator-picker-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
.generator-pick{padding:9px 13px}

.builder-row{display:block;padding:11px 0}
.builder-row .field-copy{margin-bottom:8px}
.builder-row .field-copy strong{font-size:13px}
.chip-wrap{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}

/* Custom option bar sits below each applicable option set. */
.custom-option-row{display:flex;gap:8px;align-items:center;margin-top:10px;width:100%}
.custom-option-row input{flex:1;min-width:0;border:1px solid #d8d8d5;background:#fff;border-radius:7px;padding:10px 12px;font:13px 'DM Sans';outline:none}
.custom-option-row input:focus{border-color:var(--plug-gold);box-shadow:0 0 0 2px #b48a3c22}
.custom-option-row button{flex:0 0 auto;border:1px solid #111;background:#111;color:#fff;border-radius:7px;padding:10px 15px;font:600 12px 'DM Sans';cursor:pointer}
.custom-plus{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#f0e4cc;color:#8b672e;font-size:18px}
.custom-added-chip{border-color:var(--plug-gold)!important}

@media(max-width:900px){
 .category-tabs{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin-right:0;padding-right:0}
 .category-tab{min-height:56px;font-size:13px;white-space:normal}
 .generator-picker-buttons{overflow:visible;flex-wrap:wrap;margin-right:0;padding-right:0}
 .builder-row{display:block}
 .custom-option-row{gap:6px}
}


/* V1.1.9 — clearer numbered hierarchy and stronger page heading separation. */
@media(min-width:901px){
  .topbar{height:52px}
  .workspace-hero{margin:-2px 0 24px}
}
.workspace-hero h1{margin-bottom:8px}
.category-tabs{margin-top:0}
.builder-tool-section{padding-top:16px}
.section-title{align-items:flex-start;margin-bottom:10px}
.section-title h3{font:700 17px 'Libre Baskerville',serif;line-height:1.25}
.section-helper{margin:4px 0 0;color:#77716a;font:400 12px 'DM Sans',sans-serif}
.promoted-field-section .builder-row{padding-top:2px}
.promoted-field-section .field-copy{display:none}
.promoted-field-section .chip-wrap{margin-top:0}
.generator-picker-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
@media(max-width:900px){
  .workspace-hero{margin:0 0 18px}
  .section-title h3{font-size:16px}
}

.visually-hidden-label{display:none!important}


/* V1.1.10 — guided hierarchy: category -> tool -> context, all inside the builder. */
.legacy-category-tabs{display:none!important}
.workspace-hero{margin-bottom:18px}
.workspace-hero h1{font-size:40px;line-height:1.08;margin-bottom:7px}
.workspace-hero p{color:#d8d8d5;font-size:14px}
.builder-category-section{padding-top:16px}
.category-picker-buttons,.generator-picker-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
.category-pick{font-weight:600;padding:9px 13px;min-height:36px}
.category-pick.selected{background:#171717;color:#fff;border:1px solid var(--plug-gold);box-shadow:none}
.builder-tool-section{padding-top:14px}
@media(max-width:900px){
  .workspace-hero h1{font-size:29px}
  .workspace-hero p{font-size:13px}
  .category-picker-buttons,.generator-picker-buttons{gap:7px}
  .category-pick{padding:8px 11px}
}

/* V1.1.11 — simplify numbered workflow headings. */
.section-helper{display:none!important}
.section-title{gap:11px;margin-bottom:12px;align-items:center}
.section-title>span{
  width:30px;
  height:30px;
  min-width:30px;
  border-radius:50%;
  background:var(--plug-gold);
  color:#fff;
  font-size:13px;
  font-weight:700;
}
.section-title h3{line-height:1.2}
@media(max-width:900px){
  .section-title>span{width:28px;height:28px;min-width:28px;font-size:12px}
}


/* V1.1.12 — consistent button-first generator forms */
.button-first-row{display:block;padding:7px 0 10px}
.button-first-row .field-copy{margin:0 0 8px}
.button-first-row .chip-wrap{margin-bottom:2px}
.button-first-row .custom-option-row{margin-top:10px}
.compact-freeform{display:block;padding:8px 0 10px}
.compact-freeform .field-copy{margin:0 0 7px}
.compact-freeform textarea{min-height:58px;max-height:110px}
.builder-section .button-first-row+.button-first-row,.builder-section .compact-freeform+.button-first-row,.builder-section .button-first-row+.compact-freeform{border-top:1px solid #eee8dd;margin-top:4px;padding-top:12px}
.section-title span{width:30px;height:30px;background:var(--gold);color:#fff;font-size:13px;flex:0 0 30px}
.section-title h3{font:700 18px 'Libre Baskerville',serif}
.section-helper{display:none!important}
@media(max-width:720px){.section-title span{width:28px;height:28px;flex-basis:28px}.section-title h3{font-size:16px}.choice-chip{padding:8px 10px}.custom-option-row input{font-size:12px}}

/* V1.1.13 — one numbered question per section */
.promoted-field-section .builder-row{grid-template-columns:1fr;gap:8px;padding-top:0}
.promoted-field-section .field-copy.visually-hidden-label{display:none}
.promoted-field-section .chip-wrap{margin-top:0}
.promoted-field-section .custom-option-row{margin-top:10px}

/* V1.1.14 — streamlined navigation, Ask the Plug, and compact profile */
.profile-form,.ask-form{max-width:900px}.compact-page{max-width:1040px}.compact-flow{padding:20px 26px}.ask-section{padding:4px 0 18px;margin-bottom:14px;border-bottom:1px solid var(--line)}.ask-section .section-title{margin-bottom:12px}.ask-section textarea{min-height:105px}.ask-custom{margin-top:10px}.profile-compact{padding:22px 26px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.profile-grid label{margin-top:0}.profile-choice{padding:14px 0;border-top:1px solid var(--line)}.profile-choice>strong{display:block;font-size:13px;margin-bottom:9px}.profile-save{display:block;margin:16px 0 0 auto;min-width:180px}.mobile-nav{grid-template-columns:repeat(3,1fr)!important}
@media(max-width:900px){.profile-grid{grid-template-columns:1fr}.profile-compact,.compact-flow{padding:16px}.profile-save{width:100%}.ask-section textarea{min-height:120px}}

/* V1.1.15 — fixed Ask/Profile chips + new compact Vending Plug AI logo */
.brand-block{width:100%}.brand-lockup{width:100%;display:flex;align-items:center}.brand-logo{display:block;width:100%;max-width:190px;height:auto}.mobile-brand-mark{display:inline-grid;place-items:center;width:22px;height:22px;border:1.5px solid var(--plug-gold);border-radius:4px;color:var(--plug-gold);font-size:10px;margin-right:5px}.ask-section .section-title h3,.profile-choice>strong{color:#111}.ask-form .choice-chip,.profile-form .choice-chip{color:#171717;background:#fff}.ask-form .choice-chip.selected,.profile-form .choice-chip.selected{color:#fff;background:#171717}.ask-form textarea,.ask-custom,.profile-form input{color:#171717;background:#fff}.ask-form textarea::placeholder,.ask-custom::placeholder,.profile-form input::placeholder{color:#7b746b;opacity:1}
@media(max-width:900px){.brand-logo{max-width:175px}.mobile-brand{display:flex;align-items:center;font-weight:700;letter-spacing:.02em}}


/* V1.1.16 — ultra-lean navigation + tighter Ask the Plug */
.desktop-nav{margin-top:34px}
.topbar{height:18px;min-height:18px}
.compact-page{padding-top:0}
.compact-page>h2{margin-top:0;margin-bottom:16px}
#ask .form-card{margin-top:0}
#ask .ask-section:first-child{padding-top:0}
.brand-logo{max-width:188px}
.mobile-nav{grid-template-columns:repeat(2,1fr)!important}
@media(max-width:900px){
  .topbar{height:58px;min-height:58px}
  .mobile-brand{display:flex}
  .compact-page>h2{margin-top:0}
  .mobile-nav{grid-template-columns:repeat(2,1fr)!important}
}


/* V1.1.17 — compact plug wordmark brand */
.brand-logo.brand-wordmark{max-width:194px;width:100%;height:auto;overflow:visible}
.brand-lockup{justify-content:center}
.mobile-plug-mark{display:inline-grid;place-items:center;width:24px;height:24px;border:1.5px solid var(--plug-gold);border-radius:50%;color:var(--plug-gold);font-size:16px;line-height:1;margin-right:7px}
@media(max-width:900px){.mobile-brand strong{font-family:'Libre Baskerville',serif;font-size:15px}.mobile-brand>span:last-child{font-family:'Libre Baskerville',serif;font-weight:700;color:var(--plug-gold)}}


/* V1.1.18 — refined compact wordmark + gold primary build action */
.brand-logo.brand-wordmark{max-width:198px;width:100%;height:auto;overflow:visible}
#buildGenerator{background:linear-gradient(180deg,#d9b35e 0%,#c99a3d 100%);color:#111;border:1px solid #b98932;box-shadow:0 1px 0 rgba(255,255,255,.28) inset;font-weight:700;min-width:126px}
#buildGenerator:hover{filter:brightness(1.04);border-color:#9f742c}
#buildGenerator:active{transform:translateY(1px)}
.generator-action-row .prompt-actions{display:flex;gap:10px;align-items:center}
.generator-action-row .prompt-actions .primary-btn,.generator-action-row .prompt-actions .secondary-btn{min-height:44px;padding:12px 22px}
@media(max-width:900px){#buildGenerator{min-width:0}.brand-logo.brand-wordmark{max-width:184px}}


/* V1.1.19 — full black canvas, lifecycle workflow, compact header logo */
body,.app-shell,.main-content{background:#101010!important}
.sidebar{display:none!important}
.main-content{margin-left:0!important;min-height:100vh;padding:0 28px 74px!important}
.view{max-width:1320px}
.app-header{height:96px!important;min-height:96px!important;max-width:1320px;margin:0 auto;display:flex!important;align-items:center;justify-content:space-between!important;border-bottom:1px solid #242424}
.header-logo-button{width:86px;height:86px;padding:0;border:0;background:transparent;border-radius:50%;overflow:hidden;cursor:pointer;display:grid;place-items:center}
.header-logo-button img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.header-actions{display:flex;align-items:center;gap:14px}
.header-ask{border:1px solid #b48a3c;background:#171717;color:#fff;border-radius:8px;padding:11px 16px;font:600 13px 'DM Sans';cursor:pointer}
.header-ask:hover,.header-ask.active{background:#b48a3c;color:#111}
.header-version{font-size:11px;color:#8f8f8f}
.mobile-nav{display:none!important}
.workspace-hero{margin:18px 0 18px!important}
.workspace-hero h1{font-size:42px}
.category-picker-buttons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px!important}
.category-pick{width:100%;white-space:nowrap;text-align:center}
#ask.compact-page{padding-top:18px!important}
#ask.compact-page>h2{color:#fff;margin-bottom:16px}
#prompts>h2,#prompts>.page-subtitle{color:#fff}
@media(max-width:900px){
 .main-content{padding:0 14px 78px!important}
 .app-header{height:76px!important;min-height:76px!important}
 .header-logo-button{width:66px;height:66px}
 .header-version{display:none}
 .header-ask{padding:9px 11px;font-size:12px}
 .workspace-hero{margin:12px 0 14px!important}
 .workspace-hero h1{font-size:30px}
 .category-picker-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .category-pick{white-space:normal;min-height:42px}
}
@media(max-width:520px){
 .category-picker-buttons{grid-template-columns:1fr 1fr!important}
 .header-logo-button{width:60px;height:60px}
 .app-header{height:70px!important;min-height:70px!important}
}


/* V1.1.20 — tighter workspace, centered branding, stronger Ask the Plug */
:root{--workspace-main:850px;--workspace-side:285px;--workspace-gap:20px}
.view{max-width:calc(var(--workspace-main) + var(--workspace-side) + var(--workspace-gap))!important}
.app-header{max-width:calc(var(--workspace-main) + var(--workspace-side) + var(--workspace-gap))!important;display:grid!important;grid-template-columns:var(--workspace-main) var(--workspace-side)!important;gap:var(--workspace-gap)!important;border-bottom:0!important;height:104px!important;min-height:104px!important}
.header-logo-button{justify-self:center;width:88px;height:88px}
.header-actions{justify-self:end}
.header-ask{background:linear-gradient(180deg,#d9b35e 0%,#c99a3d 100%)!important;color:#111!important;border-color:#b98932!important;font-weight:700!important;box-shadow:0 1px 0 rgba(255,255,255,.25) inset}
.header-ask:hover,.header-ask.active{filter:brightness(1.05);color:#111!important}
.workspace-hero{width:var(--workspace-main);display:block!important;text-align:center!important;margin:12px 0 18px!important}
.workspace-hero>div{width:100%}
.workspace-hero h1{font-size:39px!important;margin-bottom:7px!important}
.workspace-hero p{text-align:center!important}
.generator-layout,.generator-workspace{grid-template-columns:var(--workspace-main) var(--workspace-side)!important;gap:var(--workspace-gap)!important;justify-content:start!important}
.builder-column{width:var(--workspace-main);max-width:var(--workspace-main)}
.one-page-form{width:100%}
.category-picker-buttons{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.category-pick{min-height:42px}
#ask.compact-page{max-width:850px!important;margin-left:auto!important;margin-right:auto!important}
#ask.compact-page>h2{text-align:center}
@media(max-width:1185px) and (min-width:901px){
 :root{--workspace-main:minmax(0,1fr)}
 .view,.app-header{max-width:100%!important}
 .app-header{grid-template-columns:minmax(0,1fr) 285px!important}
 .workspace-hero{width:calc(100% - 305px)!important}
 .generator-layout,.generator-workspace{grid-template-columns:minmax(0,1fr) 285px!important}
 .builder-column{width:auto;max-width:none}
}
@media(max-width:900px){
 .app-header{display:flex!important;height:78px!important;min-height:78px!important}
 .header-logo-button{width:64px;height:64px;justify-self:auto}
 .workspace-hero{width:100%!important;text-align:center!important;margin:8px 0 14px!important}
 .workspace-hero h1{font-size:29px!important}
 .generator-layout,.generator-workspace{display:block!important}
 .builder-column{width:auto;max-width:none}
 .category-picker-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* V1.1.21 — navigation clarity, saved-prompt delete, and action feedback */
.header-logo-button{border-bottom:0!important;box-shadow:none!important}
body.ask-mode .app-header{
  max-width:850px!important;
  grid-template-columns:1fr auto 1fr!important;
  margin-left:auto!important;margin-right:auto!important;
  position:relative;
}
body.ask-mode .header-logo-button{grid-column:2;justify-self:center}
body.ask-mode .header-actions{grid-column:3;justify-self:end;position:absolute;right:0;top:24px}
body.ask-mode #ask.compact-page{margin-top:0!important}
body.ask-mode #ask.compact-page>h2{margin-top:4px!important}
.header-ask{white-space:nowrap}
.sidebar-card-actions{align-items:center;flex-wrap:wrap}
.sidebar-delete{color:#7b2b24!important;background:#fff!important;border:1px solid #d8c2bd!important}
.sidebar-delete:hover{background:#fff5f3!important;border-color:#b97b70!important}
#buildGenerator,.ask-build-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px}
.build-plug{display:inline-block;font-size:1.08em;transform-origin:50% 70%}
#buildGenerator.building .build-plug,.ask-build-btn.building .build-plug{animation:plugBounce .42s ease-in-out infinite alternate}
#buildGenerator.build-complete{filter:brightness(1.06)}
.action-confirm{box-shadow:0 0 0 2px rgba(199,153,59,.22) inset}
@keyframes plugBounce{from{transform:translateY(1px) rotate(-5deg) scale(1)}to{transform:translateY(-5px) rotate(5deg) scale(1.18)}}
@media(prefers-reduced-motion:reduce){#buildGenerator.building .build-plug,.ask-build-btn.building .build-plug{animation:none}}
@media(max-width:900px){
 body.ask-mode .app-header{max-width:100%!important;display:grid!important;grid-template-columns:1fr auto 1fr!important}
 body.ask-mode .header-logo-button{grid-column:2}
 body.ask-mode .header-actions{grid-column:3;right:10px;top:14px}
 body.ask-mode .header-ask{font-size:11px;padding:9px 10px}
}


/* V1.1.22 — dedicated mobile navigation and action-bar polish */
.mobile-ask-launch{display:none}
@media(max-width:900px){
  .main-content{padding:0 14px 96px!important;overflow-x:hidden}
  .app-header{display:flex!important;align-items:center!important;justify-content:space-between!important;height:86px!important;min-height:86px!important;padding:8px 2px!important}
  .header-logo-button{width:72px!important;height:72px!important;flex:0 0 72px!important}
  .header-actions{display:flex!important;align-items:center!important;gap:8px!important;margin-left:auto!important;position:static!important}
  .header-actions .mobile-saved-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:9px 13px!important;border:1px solid #d0a44d;background:#fff;color:#111;font-weight:700;border-radius:8px}
  .header-actions .header-ask{display:none!important}
  .workspace-hero{display:block!important;text-align:center!important;margin:10px auto 18px!important}
  .workspace-hero h1{font-size:31px!important;line-height:1.08!important;margin:4px auto 8px!important;max-width:620px}
  .workspace-hero p{font-size:15px!important;color:#d5d5d5!important;margin:0 auto!important;text-align:center!important}
  .mobile-ask-launch{display:inline-flex;align-items:center;justify-content:center;margin:14px auto 0;border:1px solid #b98932;background:linear-gradient(180deg,#d9b35e 0%,#c99a3d 100%);color:#111;border-radius:8px;padding:10px 16px;font:700 13px 'DM Sans';cursor:pointer}

  /* Saved prompts is one compact mobile drawer; the retired Prompt Shelf is never used. */
  .saved-sidebar{display:none;position:fixed!important;z-index:80!important;inset:94px 14px auto 14px!important;max-height:min(62vh,520px)!important;overflow:hidden;border-radius:14px!important;padding:18px!important;box-shadow:0 18px 60px rgba(0,0,0,.45)!important}
  .saved-sidebar.mobile-open{display:flex!important}
  .sidebar-saved-list{overflow:auto!important;max-height:360px!important}
  .sidebar-view-all{display:none!important}

  /* Utility reset stays separate; the three prompt actions share one row. */
  .generator-action-row{display:block!important;margin-top:16px!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
  .generator-action-row>#clearGenerator{display:block!important;width:100%!important;min-height:44px!important;margin:0 0 10px!important;padding:10px 12px!important}
  .generator-action-row .prompt-actions{display:grid!important;grid-template-columns:1.25fr 1fr 1fr!important;gap:8px!important;width:100%!important;margin:0!important}
  .generator-action-row .prompt-actions button{width:100%!important;min-width:0!important;min-height:48px!important;padding:10px 6px!important;font-size:12px!important;white-space:nowrap!important}

  /* Ask the Plug: centered brand, compact back control, clean full-width form. */
  body.ask-mode .app-header{display:grid!important;grid-template-columns:1fr auto 1fr!important;max-width:850px!important;height:90px!important;min-height:90px!important;padding:7px 0!important}
  body.ask-mode .header-logo-button{grid-column:2!important;justify-self:center!important;width:72px!important;height:72px!important}
  body.ask-mode .header-actions{grid-column:3!important;justify-self:end!important;position:static!important;margin:0!important}
  body.ask-mode .header-actions .mobile-saved-toggle{display:none!important}
  body.ask-mode .header-actions .header-ask{display:inline-flex!important;align-items:center!important;justify-content:center!important;max-width:142px;min-height:40px;padding:8px 10px!important;font-size:11px!important;line-height:1.2;white-space:normal!important;text-align:center}
  body.ask-mode #ask.compact-page{width:100%!important;max-width:850px!important;margin:4px auto 0!important;padding-top:0!important}
  body.ask-mode #ask.compact-page>h2{font-size:32px!important;line-height:1.1!important;margin:8px 0 18px!important;text-align:center!important}
  #ask .ask-form{width:100%!important;max-width:none!important;margin:0!important;padding:18px 16px!important}
  #ask .ask-section{padding:3px 0 18px!important;margin-bottom:14px!important}
  #ask .section-title{align-items:center!important;gap:10px!important}
  #ask .section-title h3{font-size:20px!important;line-height:1.2!important}
  #ask .choice-chip{font-size:13px!important;padding:10px 12px!important}
  #ask .ask-section textarea{min-height:132px!important;font-size:14px!important;line-height:1.45!important}
}
@media(max-width:520px){
  .app-header{height:82px!important;min-height:82px!important}
  .header-logo-button{width:66px!important;height:66px!important;flex-basis:66px!important}
  .header-actions .mobile-saved-toggle{font-size:12px!important;padding:9px 11px!important}
  .workspace-hero h1{font-size:29px!important}
  .generator-action-row .prompt-actions{grid-template-columns:1.22fr .92fr .92fr!important;gap:7px!important}
  .generator-action-row .prompt-actions button{font-size:11.5px!important;padding-left:4px!important;padding-right:4px!important}
  body.ask-mode .app-header{height:84px!important;min-height:84px!important}
  body.ask-mode .header-logo-button{width:66px!important;height:66px!important}
  body.ask-mode .header-actions .header-ask{max-width:128px;font-size:10.5px!important;padding:7px 8px!important}
  body.ask-mode #ask.compact-page>h2{font-size:30px!important}
}


/* V1.1.23 — closable mobile Saved Prompts modal */
.saved-sidebar-controls{display:flex;align-items:center;gap:8px}
.saved-sidebar-close,.saved-sidebar-backdrop{display:none}
@media(max-width:900px){
  body.saved-prompts-open{overflow:hidden}
  .saved-sidebar{z-index:91!important;inset:50% 14px auto 14px!important;transform:translateY(-50%);max-height:min(68vh,560px)!important;padding:18px!important}
  .saved-sidebar.mobile-open{display:flex!important}
  .saved-sidebar-head{align-items:center!important}
  .saved-sidebar-controls{display:flex;align-items:center;gap:10px}
  .saved-sidebar-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid #d9cfbf;border-radius:50%;background:#fff;color:#111;font:700 24px/1 'DM Sans';cursor:pointer;padding:0}
  .saved-sidebar-close:active{transform:scale(.96)}
  .saved-sidebar-backdrop{display:none;position:fixed;z-index:90;inset:0;border:0;background:rgba(0,0,0,.55);padding:0;margin:0}
  .saved-sidebar-backdrop.mobile-open{display:block}
  .sidebar-saved-list{max-height:min(48vh,390px)!important}
}
@media(max-width:520px){
  .saved-sidebar{inset:50% 12px auto 12px!important;max-height:72vh!important;border-radius:16px!important}
  .saved-sidebar-close{width:36px;height:36px;font-size:25px}
}

/* V1.1.25 — Lifetime Access Foundation */
.access-page{margin:0;min-height:100vh;background:#0f0f0f;color:#171717;font-family:'DM Sans',sans-serif;display:grid;place-items:center;padding:28px 18px;box-sizing:border-box}
.access-shell{width:100%;max-width:520px}
.access-card{background:#fffdf9;border:1px solid #d9d2c7;border-radius:22px;padding:38px 38px 30px;box-shadow:0 22px 70px rgba(0,0,0,.28);text-align:center}
.access-logo{width:92px;height:92px;object-fit:cover;border-radius:18px;display:block;margin:0 auto 20px}
.access-kicker{margin:0 0 10px;color:#ad7b22;font-size:.76rem;font-weight:800;letter-spacing:.16em}
.access-card h1{font-family:'Libre Baskerville',serif;font-size:clamp(1.65rem,5vw,2.25rem);line-height:1.15;margin:0 0 12px;color:#111}
.access-copy{margin:0 auto 26px;max-width:390px;color:#5e5b56;line-height:1.55}
.access-form{text-align:left}.access-form label{display:block;font-weight:700;margin:0 0 8px}.access-form input{width:100%;box-sizing:border-box;border:1px solid #d8d5cf;border-radius:10px;background:#fff;padding:14px 15px;font:inherit;outline:none}.access-form input:focus{border-color:#b88937;box-shadow:0 0 0 3px rgba(184,137,55,.13)}
.access-submit{width:100%;margin-top:14px;min-height:48px}.access-error{margin-top:12px;padding:11px 12px;border-radius:9px;background:#fff1f0;border:1px solid #f0c5c1;color:#8d2920;font-size:.9rem;line-height:1.4}.access-help{font-size:.82rem;line-height:1.45;color:#77736d;margin:18px 0 0}.access-version{font-size:.72rem;color:#aaa49a;margin:18px 0 0}.access-signout-form{margin:0}.header-signout{border:0;background:transparent;color:#777;font:inherit;font-size:.8rem;cursor:pointer;padding:7px 4px}.header-signout:hover{color:#111;text-decoration:underline}
@media(max-width:600px){.access-page{padding:18px 14px}.access-card{padding:30px 22px 24px;border-radius:18px}.access-logo{width:78px;height:78px}.header-signout{font-size:.74rem}}

/* V1.1.26 private analytics dashboard */
.admin-page{margin:0;background:#f6f1e7;color:#111;font-family:Arial,sans-serif;min-height:100vh}.admin-shell{max-width:1180px;margin:auto;padding:34px 24px 60px}.admin-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:26px}.admin-head h1{margin:4px 0 6px;font-size:32px}.admin-head p{margin:0;color:#766c5d}.admin-eyebrow{font-size:12px!important;letter-spacing:2px!important;color:#a97918!important;font-weight:800}.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.admin-stat,.admin-panels article{background:#fff;border:1px solid #e3d8c7;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.04)}.admin-stat{padding:20px}.admin-stat span{display:block;font-size:11px;font-weight:800;color:#806f57;letter-spacing:.4px}.admin-stat strong{display:block;font-size:31px;margin-top:7px}.admin-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.admin-panels article{padding:18px}.admin-panels h2{font-size:15px;margin:0 0 12px}.admin-row{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #eee3d4;padding:10px 0}.admin-row:first-of-type{border-top:0}.admin-recent small{display:block;color:#887b69;margin-top:3px}.admin-recent em{font-size:12px;color:#887b69;font-style:normal;white-space:nowrap}.admin-privacy{font-size:12px;color:#827665;margin-top:18px}.admin-login-card{width:min(420px,calc(100% - 40px));margin:10vh auto;background:#fff;border:1px solid #e3d8c7;border-radius:20px;padding:34px;box-sizing:border-box;box-shadow:0 18px 50px rgba(0,0,0,.08);text-align:center}.admin-login-card h1{margin:6px 0}.admin-login-card p{color:#756a5a}.admin-login-card label{display:block;text-align:left;font-weight:700;margin:24px 0 16px}.admin-login-card input{display:block;width:100%;box-sizing:border-box;padding:13px;border:1px solid #d8cbb7;border-radius:9px;margin-top:7px}.admin-crown{font-size:34px;color:#b88622}.admin-error{background:#fff0f0;color:#9d2525;padding:10px;border-radius:8px;margin-top:14px}.admin-login-card small{display:block;color:#999;margin-top:18px}@media(max-width:800px){.admin-grid{grid-template-columns:repeat(2,1fr)}.admin-panels{grid-template-columns:1fr}.admin-head{align-items:center}.admin-head h1{font-size:25px}}@media(max-width:480px){.admin-shell{padding:22px 14px 45px}.admin-grid{gap:9px}.admin-stat{padding:15px}.admin-stat strong{font-size:26px}.admin-stat span{font-size:9px}.admin-head{display:block}.admin-head form{margin-top:14px}}

/* V1.1.27 — mobile polish + demo-readiness */
@media(max-width:900px){
  .header-actions{gap:8px!important;align-items:center!important}
  .mobile-saved-toggle{min-height:40px!important;padding:8px 12px!important;font-size:12px!important;white-space:nowrap}
  .header-signout{font-size:11px!important;padding:6px 2px!important;white-space:nowrap}
  .workspace-hero{margin-top:0!important;margin-bottom:14px!important}
  .workspace-hero h1{font-size:29px!important;line-height:1.08!important;margin-bottom:7px!important}
  .workspace-hero p{font-size:12px!important}
  .mobile-ask-launch{margin-top:12px!important;min-height:44px!important}
  .builder-section{scroll-margin-top:66px}
}
@media(max-width:430px){
  .mobile-saved-toggle{padding:7px 9px!important;font-size:11px!important}
  .header-signout{font-size:10px!important}
  .workspace-hero h1{font-size:27px!important}
}


/* V1.1.28 — universal response length + button consistency */
.response-length-section{padding-bottom:16px!important}
.response-length-choices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px!important;max-width:520px}
.response-length-choices .choice-chip{width:100%;min-height:42px;display:flex;align-items:center;justify-content:center;font-weight:700}
.generator-action-row>.secondary-btn,.generator-action-row .prompt-actions button{border-radius:8px;font-weight:700;min-height:44px}
.generator-action-row .prompt-actions .secondary-btn{border-color:#cfc6b8;background:#fff;color:#111}
.generator-action-row .prompt-actions .primary-btn{border-color:#111;background:#111;color:#fff}
.header-actions .mobile-saved-toggle{border-radius:8px;font-weight:700}
#ask .ask-length-section{padding-bottom:12px!important}
@media(max-width:900px){
  .response-length-choices{max-width:none;width:100%;gap:7px!important}
  .response-length-choices .choice-chip{min-height:44px;padding:10px 8px!important}
  .generator-action-row .prompt-actions button{border-radius:8px!important;font-weight:700!important}
}
@media(max-width:430px){
  .response-length-choices{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .response-length-choices .choice-chip{font-size:12px!important}
}

/* V1.1.29 — mobile header placement, compact response controls, access polish */
.response-length-helper{margin:4px 0 0;color:#77716a;font:400 12px/1.35 'DM Sans',sans-serif}

@media(max-width:900px){
  /* True centered mobile brand; utilities stay on the right without pushing the logo. */
  body:not(.ask-mode) .app-header{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:7px 4px!important;
  }
  body:not(.ask-mode) .app-header .header-logo-button{
    position:absolute!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    width:64px!important;
    height:64px!important;
    flex:0 0 64px!important;
    margin:0!important;
  }
  body:not(.ask-mode) .app-header .header-actions{
    position:absolute!important;
    inset:0 4px 0 4px!important;
    width:auto!important;
    height:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    transform:none!important;
    margin:0!important;
    pointer-events:none;
  }
  body:not(.ask-mode) .app-header .header-actions>*{pointer-events:auto}
  body:not(.ask-mode) .app-header .access-signout-form{
    position:absolute!important;
    left:0!important;
    top:50%!important;
    transform:translateY(-50%)!important;
  }
  body:not(.ask-mode) .app-header .mobile-saved-toggle{
    min-height:36px!important;
    padding:7px 10px!important;
    font-size:11.5px!important;
  }
  body:not(.ask-mode) .app-header .header-version{display:none!important}
  body:not(.ask-mode) .app-header .header-signout{font-size:10.5px!important;padding:6px 5px!important;color:#aaa!important}

  .response-length-section{padding-bottom:12px!important}
  .response-length-choices{gap:7px!important}
  .response-length-choices .choice-chip{
    min-height:36px!important;
    padding:7px 6px!important;
    font-size:12px!important;
    line-height:1.15!important;
  }
  .response-length-helper{font-size:11.5px;line-height:1.3;margin-top:3px}
}

@media(max-width:600px){
  .access-page{display:block;padding:14px 12px;min-height:100svh}
  .access-shell{max-width:500px;margin:0 auto}
  .access-card{padding:22px 20px 20px;border-radius:18px;min-height:0}
  .access-logo{width:68px;height:68px;border-radius:15px;margin-bottom:13px}
  .access-kicker{font-size:.71rem;letter-spacing:.15em;margin-bottom:7px}
  .access-card h1{font-size:clamp(1.55rem,7vw,1.95rem);line-height:1.12;margin-bottom:10px}
  .access-copy{font-size:.96rem;line-height:1.42;margin-bottom:19px;max-width:340px}
  .access-form label{font-size:.94rem;margin-bottom:6px}
  .access-form input{min-height:48px;padding:11px 13px;border-radius:10px}
  .access-submit{min-height:44px;margin-top:11px;padding:10px 14px!important}
  .access-help{font-size:.77rem;line-height:1.35;margin-top:13px}
  .access-version{font-size:.68rem;margin-top:11px}
}

@media(max-width:390px){
  body:not(.ask-mode) .app-header .header-logo-button{width:60px!important;height:60px!important}
  body:not(.ask-mode) .app-header .mobile-saved-toggle{padding:6px 8px!important;font-size:10.5px!important}
  .access-card{padding:19px 17px 18px}
  .access-logo{width:62px;height:62px;margin-bottom:11px}
  .access-copy{font-size:.9rem;margin-bottom:16px}
}


/* V1.1.30 — move Saved Prompts out of the centered header and rebalance bottom utilities */
.generator-utility-actions{display:flex;align-items:center;gap:8px}
.generator-utility-actions #clearGenerator{width:auto;min-width:108px}
@media(max-width:900px){
  /* Header stays visually clean: centered logo with no Saved Prompts control competing beside it. */
  body:not(.ask-mode) .app-header .mobile-saved-toggle{display:none!important}

  /* Saved library access now lives beside a compact Clear All above the prompt actions. */
  .generator-action-row{display:block!important}
  .generator-utility-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1.35fr) minmax(96px,.65fr)!important;
    gap:8px!important;
    width:100%!important;
    margin:0 0 10px!important;
  }
  .generator-utility-actions .mobile-saved-toggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    width:100%!important;
    min-height:42px!important;
    margin:0!important;
    padding:9px 12px!important;
    border:1px solid #d0a44d!important;
    background:#fff!important;
    color:#111!important;
    border-radius:8px!important;
    font-weight:700!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
  .generator-utility-actions #clearGenerator{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:42px!important;
    margin:0!important;
    padding:9px 8px!important;
    font-size:11.5px!important;
    white-space:nowrap!important;
  }
}
@media(max-width:390px){
  .generator-utility-actions{grid-template-columns:minmax(0,1.3fr) minmax(88px,.7fr)!important;gap:7px!important}
  .generator-utility-actions .mobile-saved-toggle{font-size:11px!important;padding:8px 7px!important}
  .generator-utility-actions #clearGenerator{font-size:10.5px!important;padding:8px 5px!important}
}

/* V1.1.31 — restore mobile viewport containment and compact spacing */
html,body,.app-shell{max-width:100%;overflow-x:hidden}
@media(max-width:900px){
  /* Keep every workspace surface inside the device viewport. */
  .main-content{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding-left:14px!important;
    padding-right:14px!important;
    overflow-x:hidden!important;
  }
  .view,.app-header,.workspace-hero,.generator-layout,.generator-workspace,.builder-column,.one-page-form{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .workspace-hero{
    padding:0 4px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    overflow:hidden!important;
  }
  .workspace-hero>div{width:100%!important;max-width:100%!important;min-width:0!important}
  .workspace-hero h1{
    width:100%!important;
    max-width:100%!important;
    padding:0 2px!important;
    font-size:27px!important;
    line-height:1.12!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    text-wrap:balance;
  }
  .workspace-hero p{max-width:100%!important;padding:0 4px!important}

  /* Two-column mobile choices shrink inside the grid instead of widening it. */
  .category-picker-buttons,.generator-picker-buttons{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .category-picker-buttons>* ,.generator-picker-buttons>*{
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  .builder-section,.builder-row,.chip-wrap,.generator-action-row,.generator-utility-actions,.prompt-actions{
    max-width:100%!important;
    min-width:0!important;
  }
  .choice-chip{max-width:100%;white-space:normal}
}
@media(max-width:430px){
  .main-content{padding-left:12px!important;padding-right:12px!important}
  .workspace-hero h1{font-size:26px!important}
  .category-pick,.generator-pick{font-size:12px!important;padding-left:8px!important;padding-right:8px!important}
}

/* V1.1.32 — mobile header safe-area placement + iOS form focus stability */
@media(max-width:900px){
  /* Keep Sign Out fully visible in the intended top-right position on narrow phones. */
  body:not(.ask-mode) .app-header .header-actions{
    left:0!important;
    right:0!important;
    inset-inline:0!important;
    padding-left:max(8px,env(safe-area-inset-left))!important;
    padding-right:max(10px,env(safe-area-inset-right))!important;
    overflow:visible!important;
  }
  body:not(.ask-mode) .app-header .access-signout-form{
    position:absolute!important;
    left:auto!important;
    right:max(8px,env(safe-area-inset-right))!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    max-width:72px!important;
    margin:0!important;
  }
  body:not(.ask-mode) .app-header .header-signout{
    display:block!important;
    max-width:72px!important;
    padding:7px 4px!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  /* iOS Safari auto-zooms focused fields below 16px. Keep fields at 16px so focus never enlarges the page. */
  input,select,textarea,
  .form-card input,.form-card select,.form-card textarea,.search-input,
  .custom-tool-input,.ask-custom{
    font-size:16px!important;
  }
}

/* V1.1.33 — restore compact mobile choice wrapping */
@media(max-width:900px){
  /* Step 1 stays a compact two-column grid like the earlier mobile layout. */
  .category-picker-buttons{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
  }
  .category-picker-buttons .category-pick{
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    padding:8px 7px!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:normal!important;
  }

  /* Step 2 and later option groups go back to natural wrapped chips,
     rather than the forced one-/two-column full-width layout. */
  .generator-picker-buttons,
  .chip-wrap{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:7px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .generator-picker-buttons .generator-pick,
  .chip-wrap .choice-chip{
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    padding:8px 10px!important;
    font-size:12px!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
  }
}
@media(max-width:430px){
  .category-picker-buttons .category-pick{min-height:36px!important;padding:7px 6px!important;font-size:11.5px!important}
  .generator-picker-buttons .generator-pick,.chip-wrap .choice-chip{min-height:36px!important;padding:7px 9px!important;font-size:11.5px!important}
}

/* V1.1.36 — restore original display typography; retain smaller placeholders */
.hero-copy h1{font-family:'Libre Baskerville',serif}
.section-title h3{font-family:'Libre Baskerville',serif}
.section-title>span{font-family:inherit}
.custom-option-row input::placeholder,
.builder-row input::placeholder,
.builder-row textarea::placeholder,
.ask-form textarea::placeholder,
.ask-custom::placeholder,
.profile-form input::placeholder{font-size:11px}

/* V1.1.49 compact two-choice access page */
.access-choices{display:grid;gap:11px;margin:24px 0 10px}
.access-choice{display:block;box-sizing:border-box;text-decoration:none;text-align:center;background:#151515;color:#fff;border:1px solid #151515;border-radius:10px;padding:15px 10px;font-weight:700;font-size:.94rem;line-height:1.35}
.access-choice:hover,.access-choice:focus-visible{outline:2px solid #b88937;outline-offset:2px}
.access-choice-secondary{background:transparent;color:#171717;border-color:#b88937}
.access-choice.selected{box-shadow:0 0 0 2px rgba(184,137,55,.25)}
.access-choices+.access-form{margin-top:22px}
.access-card>.access-copy{margin-bottom:0}
@media(max-width:600px){.access-choices{margin:18px 0 8px;gap:10px}.access-choice{padding:13px 8px;font-size:.88rem}.access-choices+.access-form{margin-top:18px}}

/* V1.1.50: accessible selected state for customer access options */
.access-mode-group { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; min-width: 0; }
.access-mode-option { display: block; position: relative; cursor: pointer; margin: 0; }
.access-mode-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.access-mode-option span { display: block; padding: 15px 12px; text-align: center; border: 1px solid #c58a26; border-radius: 10px; background: #fffcf7; color: #161616; font-weight: 700; transition: background .15s, color .15s; }
.access-mode-option input:checked + span { background: #151515; color: #fff; border: 2px solid #c58a26; padding: 14px 11px; }
.access-mode-option input:focus-visible + span { outline: 3px solid #c58a26; outline-offset: 3px; }
.access-submit:disabled { opacity: .65; cursor: wait; }
.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; }

/* V1.1.51: visibly selected access option on all devices */
.access-mode-option input:checked + span { background: #151515 !important; color: #fff !important; border: 2px solid #c58a26 !important; box-shadow: inset 0 0 0 1px #151515, 0 0 0 2px rgba(197,138,38,.18); }
.access-mode-option input:not(:checked) + span { background: #fffcf7 !important; color: #161616 !important; border: 1px solid #c58a26 !important; }
.access-mode-option input:checked + span::before { content: "✓ "; color: #e6b85c; }

/* V1.1.66: grouped agreement intake; two columns on desktop, one on phones. */
.agreement-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;align-items:start}
.agreement-group-field{min-width:0}
.agreement-group-field .builder-row{margin:0;min-width:0}
.agreement-group-field input,.agreement-group-field textarea{width:100%;max-width:100%;box-sizing:border-box}
.agreement-group-field .field-copy{margin-bottom:8px}
.agreement-group-field .chip-wrap{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:700px){.agreement-group-grid{grid-template-columns:minmax(0,1fr);gap:18px}}

/* V1.1.67: only address city/state/ZIP fields share a row. */
.agreement-group-section .agreement-group-grid{display:flex;flex-direction:column;gap:18px}
.agreement-group-section .agreement-group-field{width:100%;min-width:0}
.agreement-group-section .agreement-address-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.25fr);gap:12px;align-items:start;width:100%}
.agreement-group-section .agreement-address-row .builder-row{margin:0}
@media(max-width:600px){.agreement-group-section .agreement-address-row{grid-template-columns:repeat(2,minmax(0,1fr))}.agreement-group-section .agreement-address-row .agreement-group-field:first-child{grid-column:1/-1}}

/* V1.1.68: compact operator/host/site details; individually numbered other questions. */
.agreement-compact-section .agreement-group-grid{gap:10px!important}
.agreement-compact-section .agreement-group-field .builder-row{margin:0!important;padding:0!important}
.agreement-compact-section .agreement-group-field .field-copy{margin-bottom:4px!important}
.agreement-compact-section .agreement-group-field input,.agreement-compact-section .agreement-group-field select{min-height:40px;max-width:100%;width:100%;box-sizing:border-box;border:1px solid #d4d4d4;border-radius:7px;padding:9px 11px;background:#fff;color:#171717}
.agreement-compact-section .agreement-address-row{gap:10px}
.agreement-compact-section .agreement-group-field{margin:0!important}
.agreement-numbered-field .builder-row .field-copy.visually-hidden-label{display:none}
@media(max-width:600px){.agreement-compact-section .agreement-group-grid{gap:12px!important}.agreement-compact-section .agreement-address-row{gap:8px}}

/* V1.1.69: topic-based agreement intake; keep compact address rows. */
.agreement-topic-section .agreement-group-grid{display:flex;flex-direction:column;gap:12px}
.agreement-topic-section .agreement-group-field{width:100%;min-width:0}
.agreement-topic-section .agreement-group-field .builder-row{margin:0}
.agreement-topic-section .agreement-group-field .field-copy{margin-bottom:6px}
.agreement-compact-section .agreement-group-grid>.builder-row{margin:0 0 8px}
.agreement-compact-section .agreement-group-grid>.agreement-group-field{margin:0}

/* V1.1.70: beginner-friendly insurance guidance. */
.agreement-insurance-help,.agreement-insurance-note{margin:0;padding:10px 12px;border-radius:7px;line-height:1.55;font-size:13px;background:#f6f3ed;color:#34302a}
.agreement-insurance-note{background:#faf4e8;border-left:3px solid #b18b48}

/* V1.1.71 insurance intake */
.agreement-insurance-help{font-size:13px;line-height:1.55;margin:6px 0 10px;color:#514a41}
.agreement-insurance-note{font-size:13px;line-height:1.55;margin:8px 0;padding:10px 12px;border-left:3px solid #b18b48;background:#faf4e8;color:#34302a}
