:root{
  --ink:#202124;--muted:#6f7178;--green:#e51d2a;--paper:#f7f7f8;--card:#fff;
  --line:#ebe7e7;--brand:#e51d2a;--brand-dark:#b90e18;--brand-soft:#fff1f2;
  --shadow-sm:0 5px 18px rgba(54,26,28,.05);--shadow-md:0 16px 44px rgba(74,24,28,.09)
}
*{scrollbar-color:#d7d2d2 transparent;scrollbar-width:thin}
html{background:var(--paper);scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;background:var(--paper);letter-spacing:.01em}
button,input,textarea,select{transition:border-color .18s,box-shadow .18s,background .18s,transform .18s,opacity .18s}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(229,29,42,.14);outline-offset:2px}
button:disabled{cursor:not-allowed;opacity:.48;filter:saturate(.5)}

.app{grid-template-columns:220px minmax(0,1fr);background:var(--paper)}
aside{width:220px;padding:24px 14px 18px;background:linear-gradient(180deg,#c80f19 0%,#a90812 100%);box-shadow:8px 0 30px rgba(91,5,11,.12);z-index:20}
.logo{padding:2px 10px 29px;gap:11px}.logo b{width:42px;height:42px;padding:0;display:grid;place-items:center;border-radius:13px;box-shadow:0 6px 18px rgba(99,0,7,.18)}
.logo span{font-size:18px}.logo small{margin-top:4px;color:#ffd9dc;font-size:9px}
nav{gap:5px}nav button{position:relative;display:flex;align-items:center;gap:10px;min-height:46px;padding:12px 14px;border-radius:12px;color:#ffe5e7;font-weight:600}
nav button:hover{background:rgba(255,255,255,.1);transform:translateX(2px)}
nav button.active{background:#fff;color:var(--brand-dark);box-shadow:0 7px 20px rgba(88,0,5,.18)}
nav button.active:before{content:"";position:absolute;left:-5px;width:3px;height:20px;border-radius:3px;background:#fff}
.aside-foot{padding:18px 6px 0;border-color:rgba(255,255,255,.18)}.aside-foot>div:nth-child(2){min-width:0;flex:1}.aside-foot strong{display:-webkit-box;overflow:hidden;font-size:12px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.aside-foot small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{flex:0 0 36px;width:36px;height:36px;box-shadow:0 5px 14px rgba(83,0,5,.16)}
.logout{border-radius:9px;padding:7px}.logout:hover{background:rgba(255,255,255,.12)}

main{grid-column:2;max-width:1680px;padding:0 34px 72px}
header{position:sticky;top:0;height:82px;margin:0 -8px;padding:0 8px;background:rgba(247,247,248,.9);backdrop-filter:blur(16px);z-index:15}
.crumb{color:#9a9293}.pill{color:#a90d16;border-color:#f0cfd1;background:#fff;padding:8px 14px;font-weight:650;box-shadow:var(--shadow-sm)}
.view{padding-bottom:20px}.panel{border:1px solid var(--line);border-radius:20px;padding:28px;margin-top:18px;box-shadow:var(--shadow-sm)}
.section-title{gap:20px}.section-title h3{font-size:22px;letter-spacing:-.02em}.section-title>small{max-width:54%;text-align:right;line-height:1.6}
.eyebrow,.section-title span{color:#8b5357;letter-spacing:.16em}

.hero{padding:44px 48px;border:1px solid #f0dddd;border-radius:24px;background:radial-gradient(circle at 82% 20%,rgba(229,29,42,.09),transparent 34%),linear-gradient(125deg,#fff 42%,#fff4f4);box-shadow:var(--shadow-sm)}
.hero:after{right:54px;top:-68px;color:rgba(229,29,42,.035)}.hero h1{font-size:42px;letter-spacing:-.045em}.hero>p{font-size:15px;line-height:1.7}
.prompt{margin-top:26px;padding:9px 10px 9px 16px;border:1px solid #f1e4e4;border-radius:17px;box-shadow:0 14px 35px rgba(73,31,34,.08)}
.prompt:focus-within{border-color:#edaeb2;box-shadow:0 0 0 4px rgba(229,29,42,.07),0 16px 38px rgba(73,31,34,.09)}
.prompt textarea{min-height:76px;line-height:1.7;background:transparent}.examples{gap:6px;color:#8a8384}.examples button:hover{background:#fff;color:var(--brand-dark)}

.primary{min-height:44px;border-radius:11px;background:linear-gradient(135deg,#f02835,#d71320);box-shadow:0 7px 16px rgba(215,19,32,.18);font-weight:700}
.primary:hover{transform:translateY(-1px);box-shadow:0 10px 21px rgba(215,19,32,.24)}.primary:active{transform:translateY(0)}
.ghost,.upload{min-height:42px;border-color:#e7dddd;border-radius:11px;color:#413b3c;background:#fff;font-weight:600}.ghost:hover,.upload:hover{border-color:#e7aeb2;background:#fff8f8;color:#b20e18}
input,textarea,select{min-height:45px;border-color:#e7dede;border-radius:11px;color:var(--ink);background:#fff}
input:hover,textarea:hover,select:hover{border-color:#d8c7c8}.auth-card input:focus,input:focus,textarea:focus,select:focus{border-color:#e4777e;box-shadow:0 0 0 4px rgba(229,29,42,.075);outline:none}
label{line-height:1.4}.condition-grid{gap:14px 18px;margin:20px 0}.condition-grid label{color:#696264;font-weight:600}.condition-grid input,.condition-grid select{font-weight:400}
.category-picks{display:flex;flex-wrap:wrap;gap:6px;margin-top:1px}.category-picks button{min-height:29px;padding:5px 10px;border:1px solid #eadfe0;border-radius:999px;background:#fff;color:#6c6465;font-size:12px}.category-picks button:hover{border-color:#e7aeb2;color:#b20e18}.category-picks button.active{border-color:#ef9da3;background:#fff0f1;color:#bd111b;box-shadow:inset 0 0 0 1px rgba(229,29,42,.06)}
.customer-context{display:grid;grid-template-columns:minmax(220px,300px) minmax(280px,1fr) auto;gap:22px;align-items:end}.customer-context select{min-width:0;width:100%}.customer-context .preference-opt{align-self:center;margin-top:20px}.customer-context .ghost{margin:0}
.brief-questions{padding:18px 20px;border-color:#f1cfd1;background:linear-gradient(135deg,#fff7f7,#fff)}.brief-questions h4{font-size:15px}.source-row{gap:18px;padding-top:20px;flex-wrap:wrap}.source-row label{display:flex;align-items:center;gap:6px}.source-row input[type="radio"]{min-height:0;accent-color:var(--brand)}.source-row .primary{min-width:190px}

.workspace-command{padding:10px;border:1px solid #eee4e4;border-radius:15px;background:#faf8f8;margin:18px 0 22px}.workspace-command input{border:0;background:transparent}.workspace-command input:focus{box-shadow:none}
.tabs{flex-wrap:wrap;gap:8px}.tabs button{min-height:42px;padding:9px 16px;border-color:#e8dede;border-radius:11px;font-weight:650}.tabs button:hover{border-color:#e7aeb2;background:#fff8f8}.tabs button.active{background:linear-gradient(135deg,#ee2431,#d51320);border-color:transparent;box-shadow:0 7px 16px rgba(215,19,32,.16)}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px;margin-top:22px}.product{border-color:#e9e2e2;border-radius:16px;box-shadow:0 4px 15px rgba(52,31,32,.035)}
.product:hover{transform:translateY(-4px);border-color:#e6c6c8;box-shadow:0 15px 34px rgba(73,28,31,.11)}.product img{height:172px;object-fit:contain;background:linear-gradient(145deg,#f8f7f7,#f2efef)}
.product-body{padding:15px}.product h4{line-height:1.5;min-height:45px}.product p{line-height:1.55;height:38px}.source{display:inline-flex;align-items:center}.price{padding-top:2px}.price b{color:#d92525;font-size:20px}.product-tools{gap:6px;flex-wrap:wrap}.product-tools button{flex:1;border:1px solid #e8dede;background:#fff;min-width:58px}.product-tools button:hover{border-color:#e6afb3;color:#b50f19;background:#fff7f7}
.check{box-shadow:0 3px 10px rgba(49,22,24,.12)}.product.selected{border-color:#e21c29}.product.selected .check{background:var(--brand)}
.sticky-action{bottom:18px;padding:15px 18px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:linear-gradient(120deg,#321012,#4a1216);box-shadow:0 18px 40px rgba(53,8,12,.3);z-index:10}.sticky-action b{font-size:18px}.sticky-action .primary{box-shadow:none}

.toolbar{gap:18px;align-items:flex-start}.toolbar>div{flex-wrap:wrap;align-items:center}.toolbar input#productSearch{min-width:220px}.empty-head h3{margin:2px 0 7px}.plan-list{gap:14px}.plan-card,.metric{border-color:#e9e3e3;border-radius:16px;box-shadow:var(--shadow-sm)}.plan-card:hover,.metric:hover{border-color:#e6c9cb;box-shadow:var(--shadow-md)}
.metrics{gap:16px}.metric b{color:#2f292a}.summary{border:1px solid #f0d9da;background:linear-gradient(135deg,#fff5f5,#fff)}.bulk-bar{border-radius:14px;box-shadow:var(--shadow-sm);flex-wrap:wrap}
.quote-row{grid-template-columns:54px minmax(180px,1.7fr) 105px 72px 90px 105px 105px 120px 36px;gap:10px}
.quote-row select,.quote-row input{width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}
.field-error{color:#c91622!important}.field-error select{border-color:#e31d2b!important;box-shadow:0 0 0 3px #e31d2b18}.pricing-warning{color:#c91622!important;font-weight:700}.plan-primary-actions{display:flex;align-items:center;gap:8px}.plan-more{position:relative}.plan-more summary{list-style:none;border:1px solid var(--line);border-radius:10px;padding:11px 16px;cursor:pointer}.plan-more>div{position:absolute;right:0;top:46px;z-index:5;width:220px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px #25151520;display:grid;grid-template-columns:1fr 1fr;gap:6px}.plan-more button{padding:8px}.settings-card form label small{color:var(--muted);font-weight:400}
.summary{flex-wrap:wrap;gap:24px;justify-content:flex-start}.summary>div{min-width:130px}.summary b{font-size:19px}
@media(max-width:1100px){.quote-row{grid-template-columns:54px minmax(180px,1fr) repeat(3,100px) 36px}.quote-row>*:nth-child(4),.quote-row>*:nth-child(5),.quote-row>*:nth-child(8){display:none}}
.editor-actions{gap:9px}.title-input{padding:12px 2px}.settings-card{max-width:800px}

dialog{border-radius:22px;box-shadow:0 30px 90px rgba(37,12,14,.28)}dialog::backdrop{background:rgba(35,13,15,.55);backdrop-filter:blur(4px)}dialog form,#workspaceDialog{padding:28px}
#toast{right:28px;top:auto;bottom:28px;max-width:min(520px,calc(100vw - 36px));padding:14px 18px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(38,31,32,.96);box-shadow:0 14px 36px rgba(39,12,14,.24);transform:translateY(14px);line-height:1.55;z-index:100}
#toast.show{transform:none}

.auth-shell{background:linear-gradient(140deg,#c80e18,#ee2632)}.auth-brand img{box-shadow:0 24px 60px rgba(92,4,10,.25)}.auth-card{border:1px solid rgba(255,255,255,.55);box-shadow:0 36px 90px rgba(94,4,10,.32)}

@media(max-width:1180px){main{padding:0 24px 60px}.hero{padding:38px 36px}.customer-context{grid-template-columns:1fr 1fr}.customer-context .ghost{grid-column:2;justify-self:end}.product-grid{grid-template-columns:repeat(auto-fill,minmax(225px,1fr))}.toolbar{flex-direction:column}.toolbar>div{width:100%}}
@media(max-width:900px){.app{grid-template-columns:76px minmax(0,1fr)}aside{width:76px;padding:18px 9px}.logo{padding:2px 7px 25px}.logo b{width:40px;height:40px}nav button{justify-content:center;padding:12px 8px;font-size:18px}main{padding:0 16px 50px}header{height:72px}.hero{padding:32px 26px}.hero h1{font-size:36px}.customer-context{grid-template-columns:1fr}.customer-context .preference-opt{margin-top:0}.customer-context .ghost{grid-column:auto;justify-self:stretch}.condition-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-title{align-items:flex-start}.section-title>small{max-width:48%}.workspace-command{grid-template-columns:1fr 1fr}.workspace-command input{grid-column:1/-1}.sticky-action{bottom:10px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){main{padding:0 11px 44px}.panel{padding:20px 16px;border-radius:17px}.hero{padding:27px 18px}.hero h1{font-size:30px}.hero:after{display:none}.prompt{padding:8px;display:block}.prompt .primary{width:100%}.condition-grid,.product-grid,.metrics{grid-template-columns:1fr}.section-title{display:block}.section-title>small{display:block;max-width:none;text-align:left;margin-top:6px}.source-row{gap:12px}.source-row .primary{width:100%}.workspace-command{grid-template-columns:1fr}.workspace-command input{grid-column:auto}.sticky-action{gap:12px;align-items:stretch;flex-direction:column}.sticky-action .primary{width:100%}.toolbar input#productSearch{min-width:0;width:100%}.editor-actions>*{width:100%}#toast{right:18px;bottom:18px}}

/* Founder acceptance detail polish: rhythm, alignment and dense workbench states. */
.view>.hero,.view>.panel,.view>.customer-context,.view>.onboarding,.view>.toolbar,.view>.empty-head,.view>.plan-list,.view>.metrics{max-width:1440px;margin-left:auto;margin-right:auto}
.section-title{min-height:52px;align-items:center}.section-title>div{min-width:0}.section-title h3{margin:5px 0 0;line-height:1.25}.section-title>small{overflow-wrap:anywhere}
.condition-grid{grid-auto-rows:minmax(75px,auto);align-items:start}.condition-grid>label{min-width:0}.condition-grid input,.condition-grid select{width:100%}
.source-row{min-height:66px}.source-row>strong{margin-right:2px;white-space:nowrap}.source-row label{min-height:36px;margin:0;padding:5px 0}.source-row .primary,.source-row .ghost{margin-left:0}.source-row #cancelSelection{margin-left:auto}.source-row #selectBtn{margin-left:0}
.selection-progress{position:relative;display:grid;grid-template-columns:auto 1fr;gap:3px 12px;align-items:center;margin-top:14px;padding:14px 16px 13px 20px;overflow:hidden;border:1px solid #f2d1d3;border-radius:12px;background:#fff8f8}.selection-progress b{font-size:13px}.selection-progress small{grid-column:2;color:var(--muted)}.selection-progress-bar{grid-row:1/3;width:10px;height:10px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 6px rgba(229,29,42,.1)}.selection-progress:after{content:"";position:absolute;left:0;bottom:0;height:3px;width:36%;background:linear-gradient(90deg,transparent,var(--brand),transparent);animation:selection-scan 1.35s ease-in-out infinite}@keyframes selection-scan{from{transform:translateX(-110%)}to{transform:translateX(300%)}}
.workspace-command{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:9px;align-items:center}.workspace-command input{min-width:0}.workspace-rating{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:-8px 0 18px}
#themeTabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}#themeTabs button{display:flex;min-width:0;min-height:70px;flex-direction:column;justify-content:center;align-items:center;text-align:center;line-height:1.3}#themeTabs button small{max-width:100%;line-height:1.35}
.product-grid{align-items:stretch}.product{display:flex;min-width:0;flex-direction:column}.product-body{display:flex;flex:1;flex-direction:column}.product h4{display:-webkit-box;min-height:45px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.product p{display:-webkit-box;height:auto;min-height:38px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.product .price{margin-top:auto}.product-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}.product-tools button{min-width:0;padding:9px 5px;white-space:nowrap}
.sticky-action{max-width:1404px}.plan-card{gap:18px}.plan-card>div:first-child{min-width:0}.plan-card h4,.plan-card p{overflow-wrap:anywhere}.plan-primary-actions{flex:0 0 auto}.editor-actions{align-items:center}.editor-actions .inline-check{min-height:42px;display:flex;align-items:center;gap:7px;margin-right:auto}.editor-actions .inline-check input{min-height:0}
.quote-row{min-height:82px}.quote-row>div,.quote-row>label{min-width:0}.quote-row b{overflow-wrap:anywhere}.quote-row small{line-height:1.35}.summary{align-items:stretch}.summary>div{padding-right:18px;border-right:1px solid #efdddd}.summary>div:last-child{border-right:0}
.settings-card form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 18px}.settings-card form>label{display:flex;min-width:0;flex-direction:column;gap:7px}.settings-card form .logo-preview,.settings-card form>.primary{grid-column:1/-1}.settings-card form>.primary{justify-self:end;min-width:190px}
dialog .section-title{padding:22px 26px 0}dialog form .section-title{padding:0}.comparison{overflow:auto}.comparison table{min-width:700px}
@media(max-width:900px){#themeTabs{grid-template-columns:1fr}.settings-card form{grid-template-columns:1fr}.settings-card form .logo-preview,.settings-card form>.primary{grid-column:auto}.quote-row{overflow-x:auto}.source-row #cancelSelection{margin-left:0}}

/* Founder Selection Acceptance: explicit fulfillment, price and per-result evaluation. */
.acceptance-toolbar{display:flex;align-items:center;gap:10px;margin:16px 0;padding:12px 14px;border:1px solid #eed7d8;border-radius:12px;background:#fff8f8}.acceptance-toolbar>div{display:flex;flex:1;flex-direction:column;gap:3px}.acceptance-toolbar span{color:#777;font-size:12px}.product-status{display:flex;align-items:center;justify-content:space-between;gap:6px}.fulfillment{padding:4px 7px;border-radius:12px;font-size:10px;font-weight:700}.fulfillment.ready{background:#e3f5e8;color:#16713a}.fulfillment.partial{background:#fff0d5;color:#9a5a00}.fulfillment.unknown{background:#eceff3;color:#58616d}.fulfillment.unavailable{background:#fde5e5;color:#a51d25}.price>div{display:flex;flex-direction:column;gap:2px}.price small{color:#888;font-size:10px}.founder-score{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;margin-top:12px;padding-top:10px;border-top:1px dashed #eadada}.founder-score span{grid-column:1/-1;color:#7b6666;font-size:11px}.founder-score button{border:1px solid #e7ced0;border-radius:7px;background:#fff;padding:7px 3px;color:#6b393c;font-size:10px}.founder-score button:hover{border-color:#d71920;background:#fff2f2;color:#b30e17}.acceptance-summary{display:grid;gap:9px}.acceptance-summary>b{font-size:20px}.acceptance-summary p{margin:0;color:#555}.rating-reasons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:18px}.rating-reasons label{margin:0;padding:9px;border:1px solid #eee;border-radius:8px}
@media(max-width:700px){.acceptance-toolbar{align-items:stretch;flex-direction:column}.acceptance-toolbar button{width:100%}.rating-reasons{grid-template-columns:1fr}}
@media(max-width:620px){header .pill{display:none}.section-title{min-height:0}.workspace-rating{margin-top:-5px}.selection-progress{grid-template-columns:auto 1fr}.source-row>strong{width:100%}#themeTabs button{min-height:60px}.product-tools{gap:5px}.plan-card{align-items:flex-start;flex-direction:column}.plan-primary-actions{width:100%;flex-wrap:wrap}.plan-more{width:100%}.plan-more summary{text-align:center}.settings-card form>.primary{width:100%;justify-self:stretch}}
