*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#f3f4f6;color:#111}
header{background:#111827;color:#fff;padding:12px 18px;display:flex;justify-content:space-between;align-items:center}
header a{color:#cbd5e1;text-decoration:none;font-size:14px}header b{font-size:17px}
.wrap{max-width:1150px;margin:0 auto;padding:16px;display:grid;gap:16px}
.card{background:#fff;border-radius:14px;box-shadow:0 1px 3px rgba(0,0,0,.08);padding:16px}
.busy{border-radius:16px;padding:22px;color:#fff;text-align:center}
.busy h2{margin:0;font-size:34px}.busy p{margin:6px 0 0;opacity:.9}
.green{background:#16a34a}.yellow{background:#eab308;color:#111}.red{background:#dc2626}.unknown{background:#6b7280}
.btn{border:0;border-radius:10px;padding:10px 16px;font-size:15px;cursor:pointer;background:#2563eb;color:#fff}
.btn.big{width:100%;padding:20px;font-size:22px;font-weight:700;background:#111827}
.btn.ghost{background:#e5e7eb;color:#111}.btn.ok{background:#16a34a}.btn.no{background:#dc2626}.btn.sm{padding:6px 10px;font-size:13px}
.chat{height:420px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:6px}
.msg{max-width:78%;padding:9px 12px;border-radius:14px;white-space:pre-wrap;line-height:1.35}
.msg small{display:block;font-size:11px;opacity:.6;margin-top:3px}
.me{align-self:flex-end;background:#2563eb;color:#fff}.them{align-self:flex-start;background:#e5e7eb}
.sub{white-space:normal;align-self:stretch;max-width:100%;background:#fff;border:2px solid #111827;color:#111}
.sub h4{margin:0 0 6px}.sub table td{padding:2px 8px 2px 0}.tag{display:inline-block;padding:2px 8px;border-radius:99px;font-size:12px;font-weight:600}
.t-pending{background:#fef3c7}.t-accepted{background:#dcfce7}.t-declined{background:#fee2e2}.t-error{background:#fecaca}
.send{display:flex;gap:8px;margin-top:8px}.send input{flex:1}
input,select{padding:10px;border:1px solid #d1d5db;border-radius:10px;font-size:15px;width:100%}
label{font-size:13px;font-weight:600;display:block;margin:10px 0 4px}
.labor{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #eee}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:flex-start;justify-content:center;padding:20px;overflow:auto;z-index:10}
.modal .card{width:100%;max-width:560px}.err{color:#dc2626;font-size:14px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.admin{display:grid;grid-template-columns:300px 1fr;gap:16px}
.shopitem{padding:10px;border-radius:10px;cursor:pointer;border:1px solid transparent}.shopitem:hover{background:#f3f4f6}
.shopitem.active{background:#eff6ff;border-color:#93c5fd}.shopitem .p{float:right;background:#dc2626;color:#fff;border-radius:99px;padding:0 7px;font-size:12px}
.muted{color:#6b7280;font-size:13px}
@media(max-width:800px){.grid2,.admin{grid-template-columns:1fr}.chat{height:360px}.msg{max-width:90%}}

.brand{display:flex;align-items:center;gap:12px}.logo{height:28px;width:auto;display:block}
@media(max-width:600px){.logo{height:16px}}
.shopitem{position:relative}.shopitem .more{display:none;position:absolute;right:8px;bottom:8px;border:1px solid #d1d5db;background:#fff;border-radius:6px;padding:0 8px;cursor:pointer;font-size:16px;line-height:20px}
.shopitem:hover .more{display:block}
.sitefoot{text-align:center;color:#6b7280;font-size:13px;padding:18px 16px 28px;border-top:1px solid #e5e7eb;margin-top:12px}.sitefoot a{color:#111827;font-weight:600;text-decoration:none}.sitefoot a:hover{text-decoration:underline}
