*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#1d1d1f;background:#f5f5f7;line-height:1.5}
.top{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:3px solid var(--brand)}
.brand{font-weight:700;color:#1d1d1f;text-decoration:none}.brand img{max-height:40px;max-width:180px;display:block}
main{max-width:680px;margin:0 auto;padding:16px}
h1{font-size:1.4rem;margin:.5rem 0 1rem}h2{font-size:1.1rem;margin:0 0 .5rem}
.card{background:#fff;border-radius:10px;padding:16px;margin:0 0 16px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
label{display:block;font-weight:600;margin:.75rem 0 .25rem}
input,textarea{width:100%;padding:10px;border:1px solid #c7c7cc;border-radius:8px;font:inherit}
textarea{min-height:110px}
button{margin-top:12px;background:var(--brand);color:var(--on-brand,#fff);border:0;border-radius:8px;padding:12px 18px;font:inherit;font-weight:600;cursor:pointer;width:100%}
button.secondary{background:#fff;color:var(--brand);border:1px solid var(--brand)}
button.link{background:none;color:#6e6e73;padding:0;margin:0;width:auto;font-weight:400;text-decoration:underline}
.row{display:flex;gap:8px}.row>*{flex:1}
.flash{padding:10px 12px;border-radius:8px;background:#e8f2ff}.flash-error{background:#fde8e8}
.product{display:flex;gap:12px;align-items:center}.product img{width:72px;height:72px;object-fit:cover;border-radius:8px}
.thread{list-style:none;padding:0;margin:0}
.msg{background:#fff;border-radius:10px;padding:10px 12px;margin:0 0 10px;max-width:88%}
.msg.mine{margin-left:auto;background:#eef0fb}
.meta{font-size:.8rem;color:#6e6e73}
.proposal{border-left:4px solid var(--brand)}
.meeting{border:2px solid var(--brand)}
.small{font-size:.85rem;color:#6e6e73}
.foot{text-align:center;font-size:.8rem;color:#6e6e73;padding:24px 16px}
@media (min-width:640px){button{width:auto}}
.nav-mine{margin-left:auto;margin-right:12px;color:#1d1d1f}

.inbox{list-style:none;padding:0;margin:0;display:grid;gap:12px;grid-template-columns:1fr}
.card-link{display:flex;gap:12px;background:#fff;border-radius:12px;padding:12px;color:#1d1d1f;text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.06);border-left:4px solid transparent}
.card-link.action{border-left-color:var(--shop)}
.card-link:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
.thumb{flex:0 0 88px;height:88px;border-radius:10px;background:#eceef6;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.info{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.row1{display:flex;align-items:center;gap:8px}
.card-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.badge{background:var(--shop);color:var(--on-shop,#fff);border-radius:999px;padding:1px 8px;font-size:.75rem}
.shop{font-size:.8rem;color:#6e6e73;display:flex;align-items:center;gap:6px}
.shop img{max-height:16px;max-width:60px}
.excerpt{font-size:.9rem;color:#3a3a3c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row3{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:auto}
.state{font-size:.8rem;border-radius:6px;padding:2px 8px;background:#f0f1f7;color:var(--shop)}
.state.strong{background:var(--shop);color:var(--on-shop,#fff)}
.state.muted{color:#6e6e73}
.date{font-size:.8rem;color:#6e6e73;margin-left:auto}
@media (min-width:768px){.inbox{grid-template-columns:1fr 1fr}}
