/* Presentation only: IDs, handlers, stage visibility and domain rules stay intact. */
:root:not([data-theme=light]){--paper:#111214;--bg:#111214;--surface:#1a1b1e;--surface-raised:#222326;--line:#36373b;--ink:#f3f1ee;--muted:#b0afac;--tint:#35231f;--accent-soft:#35231f;--coral:#f17d60;--coral-ink:#171311;--accent:#f17d60;--accent-dark:#ffa58c;--shadow:0 8px 28px -22px #000c;--radius-card:18px;--radius-pill:12px}
.workspace .main{max-width:1510px;padding:30px clamp(24px,3vw,48px) 64px;min-width:0}
.workspace .main>section{min-width:0}.workspace .top{margin-bottom:24px}.workspace .top h1{font-size:clamp(26px,2.5vw,32px);letter-spacing:-.04em}
.workspace .side{padding:26px 16px;border-right-width:1px}.workspace .logo{margin-bottom:30px}.workspace .nav{gap:5px}.workspace .nav button{min-height:44px;border-radius:10px;padding:11px 13px}.workspace .nav button.active{box-shadow:inset 3px 0 var(--coral)}
.workspace .card,.workspace .info-dialog,.workspace .auth-panel{border-width:1px;border-radius:18px}.workspace .card{padding:22px}.workspace .card h2{font-size:18px;margin-bottom:16px}.workspace h3{font-size:17px}.workspace .muted{line-height:1.6}.workspace .field{margin:14px 0}.workspace .field label{font-size:12px;font-weight:650;line-height:1.4}
.workspace .btn,.workspace .copy-under-field,.workspace .auth-submit,.workspace .social-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;height:auto;padding:10px 16px;border:1px solid var(--line);border-radius:11px;font-size:13px;line-height:1.35;white-space:normal;max-width:100%;touch-action:manipulation;box-shadow:none;transition:background-color .15s,border-color .15s}
.workspace .btn:hover:not(:disabled){transform:none;border-color:var(--muted)}.workspace .btn.primary:hover:not(:disabled){border-color:var(--coral);filter:brightness(1.07)}
.workspace input,.workspace textarea,.workspace select{font-size:16px;line-height:1.5;border-width:1px;border-radius:10px;padding:10px 12px;min-width:0;max-width:100%}.workspace input[type=checkbox],.workspace input[type=radio]{padding:0}.workspace input[type=hidden]{display:none}
.workspace :is(button,a,summary,select){touch-action:manipulation}.workspace :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid var(--accent-dark);outline-offset:3px}
.workspace .grid2,.workspace .row,.workspace .grid4{gap:18px}.workspace .grid2>*{min-width:0}.workspace :is(.actions,.settings-actions,.inventory-actions,.market-status-actions){gap:10px;flex-wrap:wrap}
.workspace .hero{min-height:210px;padding:28px;border-radius:20px;border-width:1px}.workspace .hero h2{font-size:clamp(28px,3vw,40px)}.workspace .hero:before{opacity:.35}.workspace .hero-art{width:170px}
.workspace :is(.notice,.workflow-status,.analysis-fact,.profit-calculator,.listing-price-context){border-radius:12px;border-width:1px}.workspace .metric{font-size:30px}.workspace :is(.chip,.badge,.stock-badge,.plan-status){border-radius:8px}
/* A narrower facts column keeps the draft readable on ordinary laptop screens. */
@media(min-width:1100px){.workspace #create>.grid2{grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);align-items:start}.workspace #find>.grid2{max-width:1050px}.workspace #settings{max-width:1100px}.workspace #inventoryDetail{max-width:1120px}}
.workspace #create .draft-workspace{border-top:1px solid var(--line);padding:24px;background:var(--surface)}
.workspace #create .draft-section{padding:16px 0;border-bottom-color:var(--line)}.workspace .draft-section-head{gap:12px;margin-bottom:9px}.workspace .draft-section-head label{letter-spacing:.1em;font-size:11px}
.workspace #create .draft-section-head .copy-under-field{width:auto;min-height:36px;padding:6px 11px;font-size:12px;border-radius:9px;background:transparent}
.workspace #create #title{min-height:50px;font-size:17px;font-weight:600;line-height:1.5;padding:12px;letter-spacing:-.015em}.workspace #create #desc{min-height:190px;line-height:1.65;padding:12px}.workspace .draft-title-count{font-size:11px}
.workspace #create .draft-keywords{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:52px;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:var(--surface-raised);cursor:text}
.workspace #create .draft-keywords:focus-within{border-color:var(--accent-dark);box-shadow:0 0 0 3px var(--tint)}
.workspace #create .draft-keyword{display:inline-flex;align-items:center;min-height:36px;max-width:100%;padding:5px 10px;border-radius:8px;font-size:12px;background:var(--surface);border:1px solid var(--line);color:var(--ink);overflow-wrap:anywhere;white-space:normal}
.workspace #create #draftKeywordEntry{flex:1 1 125px;width:125px;min-width:60px;max-width:100%;min-height:36px;padding:5px;border:0;background:transparent;box-shadow:none;font-size:16px}.workspace #create #draftKeywordEntry:focus-visible{outline-offset:0}
.workspace #create #listingButtons{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.workspace #listingButtons .btn{flex:0 1 auto;width:auto}.workspace .marketplace-button{border-radius:10px}
.workspace #inventorySearch{max-width:540px}.workspace .inventory-link{padding:14px;border-radius:12px;border-color:var(--line);background:var(--surface);margin:10px 0}.workspace .inventory-link:hover{box-shadow:none}.workspace .inventory-finance-section{background:var(--surface-raised);border-radius:12px}
.workspace .settings-categories{gap:8px;flex-wrap:wrap}.workspace .settings-categories a{min-height:40px;padding:8px 12px;border-radius:10px;font-size:12px}.workspace #settings :is(input:not([type=checkbox]),textarea,select){max-width:640px}.workspace .settings-grid{gap:16px}.workspace #billing{border-radius:18px}.workspace :is(.usage-grid,.finance-basic,.stock-age-grid){gap:12px}.workspace :is(.market-status-provider,.authenticity-era-card){border-radius:14px;border-width:1px}.workspace .era-card-heading{gap:12px}
@media(min-width:901px){.workspace #create :is(.btn,.copy-under-field){width:auto}.workspace #create .marketplace-buttons{justify-content:flex-start}.workspace #settings .btn{width:auto}.workspace .settings-actions{justify-content:flex-start}}
@media(min-width:901px) and (max-width:1099px){.workspace #create>.grid2{grid-template-columns:1fr;max-width:760px}.workspace .main{padding-inline:24px}}
@media(max-width:900px){.workspace .main{margin:0;max-width:none;padding:22px 16px calc(100px + env(safe-area-inset-bottom))}.workspace .side{padding:8px max(7px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));border-right:0}.workspace .nav{gap:2px}.workspace .nav button{padding:4px 2px;min-height:52px}.workspace .nav button.active{box-shadow:inset 0 -2px var(--coral)}.workspace .card,.workspace #create .draft-workspace{padding:18px;border-radius:16px}.workspace .grid2,.workspace .grid4{gap:12px}.workspace .hero{padding:22px 18px;min-height:205px}.workspace .hero-art{width:110px}.workspace .metric{font-size:26px}.workspace #create #desc{min-height:180px}.workspace #listingButtons .btn{flex:1 1 140px}.workspace .settings-categories a{min-height:44px}.workspace .draft-keyword{touch-action:manipulation}}
@media(max-width:360px){.workspace .main{padding-inline:12px}.workspace .card,.workspace #create .draft-workspace{padding:14px}.workspace .row{gap:10px}.workspace .hero-art{width:80px}.workspace .top h1{font-size:25px}.workspace .draft-section-head{gap:8px}}
/* Confidence evidence stays in its original order with a denser visual rhythm. */
.workspace .decision-card{padding:16px;background:var(--surface-raised);border-color:var(--line);border-radius:14px}
.workspace .decision-card .era-card-heading{margin-bottom:8px}.workspace .decision-verdict{min-height:72px;gap:12px}.workspace .decision-ring{width:68px;height:68px}.workspace .decision-evidence{gap:8px;margin:12px 0}.workspace .decision-guidance{margin:8px 0;padding:9px 10px}.workspace .decision-card .era-actions{margin-top:6px}
@media(min-width:1100px){.workspace #settings{max-width:960px}}
.seller-feedback{display:grid;gap:12px;margin-bottom:16px}
.seller-feedback h3,.seller-feedback p{margin:0}
.seller-feedback textarea,.seller-feedback input:not([type=checkbox]),.seller-feedback select{width:100%;box-sizing:border-box}
.seller-feedback .sf-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.seller-feedback .sf-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45}
.seller-feedback .sf-consent input{margin-top:3px;flex:none;width:18px;height:18px}
.seller-feedback .sf-actions{display:flex;gap:8px;flex-wrap:wrap}
.seller-feedback .sf-status:empty{display:none}
@media (max-width:600px){.seller-feedback .sf-row{grid-template-columns:1fr}}
