.wish-app{max-width:1080px;padding-bottom:3rem;--wish-accent:#ffdc75;--wish-ink:#24213b;--wish-bg:#faf7ff}
.wish-app [hidden]{display:none!important}
.wish-app h1,.wish-app h2,.wish-app h3,.wish-app p,.wish-items li{overflow-wrap:anywhere}
.wish-hero{background:#2b2344;color:#fff;border-radius:24px;padding:clamp(20px,5vw,52px);margin-top:18px}
.wish-hero h1{margin:.1em 0;font-size:clamp(3rem,12vw,7rem);line-height:1}
.wish-hero h1 span,.wish-kicker{color:var(--wish-accent)}
.wish-hero .btn.ghost{color:inherit;border-color:#c7badf}
.wish-app .btn{min-height:48px;white-space:normal;text-align:center;justify-content:center;touch-action:manipulation}
.wish-app label{display:block;font-weight:650}
.wish-app input,.wish-app textarea,.wish-app select{width:100%;min-width:0;min-height:48px;border:1px solid #9e93ad;border-radius:12px;padding:10px 12px;background:#fff;color:var(--wish-ink);font:inherit;font-size:max(16px,1em)}
.wish-status{padding:.5rem 0;min-height:2.4em;margin:.2rem 0;white-space:pre-wrap}
.wish-panel{border:1px solid #e0d7ec;border-radius:20px;background:var(--wish-bg);padding:clamp(14px,3vw,24px);min-width:0;margin-bottom:14px;color:var(--wish-ink)}
.wish-room-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:1rem 0;flex-wrap:wrap}
.wish-room-heading h2,.wish-panel h2,.wish-panel h3{margin:.2em 0 .45em}
.wish-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.wish-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.wish-form-line input{flex:1 1 150px}
.wish-fields{display:grid;gap:10px;margin:12px 0}
.wish-fields .btn{justify-self:start}
.wish-app summary{cursor:pointer;font-weight:720;padding:12px 0}
.wish-items{list-style:none;padding:0;display:grid;gap:8px}
.wish-items li{background:white;border-radius:12px;padding:12px;border:1px solid #e2d9ef}
.wish-items li p{margin:5px 0;white-space:pre-wrap}
.wish-items .wish-actions{margin-top:8px}
.wish-items a{min-height:44px;display:inline-flex;align-items:center;text-decoration:underline}
.wish-messages{display:flex;flex-direction:column;gap:8px;min-height:115px;max-height:min(42dvh,410px);overflow:auto;margin:10px 0;overscroll-behavior:contain}
.wish-bubble{border:1px solid #e2d9ef;background:white;border-radius:12px;padding:9px 12px;max-width:92%;align-self:flex-start}
.wish-bubble[data-mine]{background:#eae0fb;align-self:flex-end}
.wish-bubble p{white-space:pre-wrap;margin:3px 0}
.wish-danger{color:#8f194b!important}
.wish-dialog{max-width:min(530px,calc(100% - 24px));border:1px solid #d8c9ed;border-radius:20px;color:var(--wish-ink);padding:20px}
.wish-dialog::backdrop{background:#201b36a6}
.wish-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:690px){.wish-grid{grid-template-columns:minmax(0,1fr)}.wish-hero{border-radius:18px}.wish-hero .wish-actions .btn{flex:1 1 140px}.wish-room-heading>div{min-width:0}}

.wish-app[data-open] .wish-hero{padding:14px 16px;display:flex;gap:6px 14px;align-items:center;flex-wrap:wrap}
.wish-app[data-open] .wish-hero h1{font-size:1.65rem;margin-right:auto}
.wish-app[data-open] .wish-hero .lede,.wish-app[data-open] .wish-kicker,.wish-app[data-open] .wish-hero a.btn{display:none}
.wish-app[data-open] .wish-hero .btn{font-size:.83rem;min-height:44px}
.wish-app h2{font-size:clamp(1.5rem,5vw,2.5rem)}
.wish-jump{display:flex;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.wish-jump a{min-height:44px;display:inline-flex;align-items:center;border-radius:10px;padding:6px 12px;background:#eae0fb;color:#312649;font-weight:650}
.wish-app :is(#wish-items-title,#wish-chat-title){scroll-margin-top:14px}
