.cs-panel{--cs-purple:#71389c;--cs-ink:#322339;--cs-paper:#fffaf0;color:var(--cs-ink);max-width:1060px;margin:auto}
/* The mode switch is a separate row above the legacy full-bleed hero. */
[data-shopping-mode]:not([hidden]),[data-community-mode]:not([hidden]){margin-bottom:1rem}
[data-shopping-mode]:not([hidden])+[data-shopping-demo] .sd-hero,
[data-community-mode]:not([hidden])+[data-community-demo] .cd-hero{margin-top:0}
.cs-hero{display:flex;align-items:center;gap:1rem;padding:clamp(1rem,3vw,2rem);background:linear-gradient(115deg,#efe5f5,#fff3db);border:2px solid #805796;border-radius:30px 20px 32px 16px;box-shadow:4px 5px 0 #d7c6b4;margin-bottom:1rem}
.cs-community .cs-hero{background:linear-gradient(115deg,#ffe4d4,#f3e6ed)}
.cs-hero>div{flex:1;min-width:0}.cs-hero img{width:clamp(75px,16vw,135px);height:150px;object-fit:contain}.cs-hero h2{font-size:clamp(1.5rem,4vw,2.2rem);margin:.3rem 0}.cs-hero p{max-width:52ch}
.cs-tabs,.cs-actions{display:flex;gap:.55rem;flex-wrap:wrap;align-items:center}.cs-tabs button{flex:1;min-height:44px;border:1px solid #bba5c4;background:#fffaf1;color:#422c52;border-radius:18px 12px 17px 12px;padding:.7rem;font-weight:800}.cs-tabs button[aria-current=page]{background:#71389c;color:#fff}
.cs-status{min-height:1.4em;color:#772e39}.cs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}.cs-card{padding:1.15rem;border:1px solid #bda9bf;border-radius:24px 18px 27px 18px;background:#fffcf6;box-shadow:2px 3px 0 #e8dac9;margin-bottom:1rem;overflow-wrap:anywhere}.cs-card h3{margin:.25rem 0 .75rem}.cs-card p{white-space:pre-wrap}.cs-card small{color:#64516a}.cs-card .cs-money{font-size:1.65rem;font-weight:900;color:#64358c}.cs-card img.cs-product{width:100%;height:150px;object-fit:contain}.cs-tag{display:inline-block;background:#eadcf1;border-radius:10px;padding:.25rem .6rem;font-size:.8rem;font-weight:800;color:#522b6d}.cs-empty{text-align:center;padding:2rem 1rem;background:#faf3e5;border-radius:25px;border:1px dashed #ab8aaf}.cs-post-head{display:flex;align-items:center;gap:.65rem}.cs-avatar{width:48px;height:48px;object-fit:cover;border-radius:50%;border:2px solid #baa1c5;background:#efe2f5}.cs-post-photo{display:block;max-width:100%;max-height:500px;object-fit:contain;border-radius:18px;margin:.8rem auto}.cs-line{display:flex;gap:.75rem;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:.75rem 0;border-bottom:1px solid #e4d7e5}.cs-line>div{min-width:0;flex:1}.cs-line input[type=number]{width:5rem}.cs-profile{display:flex;align-items:center;gap:1rem}.cs-profile .cs-avatar{width:84px;height:84px}.cs-muted{font-size:.9rem;color:#61546a}.cs-dialog{width:min(620px,calc(100vw - 24px));max-height:90dvh;overflow:auto;background:#fffaf3;border:2px solid #805796;border-radius:28px 18px 28px 18px;padding:1.2rem}.cs-dialog-head{display:flex;justify-content:space-between;gap:1rem;align-items:center}.cs-dialog-head h2{font-size:1.35rem}.cs-dialog label,.cs-panel label{display:grid;gap:.4rem;margin:.8rem 0;font-weight:700}.cs-dialog input,.cs-dialog textarea,.cs-dialog select,.cs-panel input,.cs-panel textarea,.cs-panel select{min-height:44px;min-width:0;max-width:100%;border:1px solid #b8a8bd;border-radius:12px;padding:.7rem;background:#fff;color:#322339;font:inherit}.cs-dialog textarea,.cs-panel textarea{width:100%;min-height:100px;box-sizing:border-box}.cs-dialog button,.cs-panel button,.cs-panel a.cs-link{min-height:44px}.cs-link{display:inline-flex;align-items:center;padding:.4rem .8rem;border-radius:12px;background:#71389c;color:#fff;text-decoration:none}.cs-chat{display:flex;flex-direction:column;gap:.7rem;max-height:55dvh;overflow:auto;padding:.5rem}.cs-message{align-self:flex-start;background:#f1e5f5;border-radius:16px 16px 16px 3px;padding:.8rem;max-width:88%;overflow-wrap:anywhere}.cs-message[data-own=true]{align-self:flex-end;background:#e0eddb;border-radius:16px 16px 3px 16px}.cs-message p{white-space:pre-wrap;margin:.3rem 0}.cs-choice{display:flex!important;align-items:center;gap:.6rem!important}.cs-choice input{flex:0 0 auto}.cs-warning{background:#fff1c9;border-left:4px solid #9a6c15;padding:1rem;border-radius:12px}.cs-record{background:#eee9dc;border-left:3px solid #708551;padding:.8rem;border-radius:12px}.cs-card [aria-pressed=true]{background:#ead2f7;color:#4f226d}
@media(max-width:420px){.cs-hero{gap:.4rem;padding:1rem}.cs-hero img{width:78px;height:115px}.cs-tabs button{flex-basis:28%;padding:.55rem .35rem;font-size:.85rem}.cs-card{padding:.9rem}.cs-dialog{padding:1rem}.cs-dialog-head{align-items:flex-start}.cs-actions button{flex:1}.cs-profile{align-items:flex-start}.cs-line{gap:.45rem}}
