
*{box-sizing:border-box}body{font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;margin:0;background:#f6f7f9;color:#1d2125}
header.top{display:flex;gap:16px;align-items:center;padding:10px 20px;background:#0b3d2e;color:#fff}
header.top a{color:#cfe9df;text-decoration:none;margin-right:12px}header.top a.active{color:#fff;font-weight:600;border-bottom:2px solid #25d366}
.spacer{flex:1}main{padding:20px;max-width:1300px;margin:auto}main.narrow{max-width:380px;margin-top:10vh}
h1{font-size:20px;margin:0 0 16px}h2{font-size:16px;margin:24px 0 8px}
table{border-collapse:collapse;width:100%;background:#fff}th,td{text-align:left;padding:7px 9px;border-bottom:1px solid #e5e7eb;vertical-align:top}
th{background:#f0f2f5;font-weight:600;font-size:12px;text-transform:uppercase;color:#555}
.badge{display:inline-block;padding:1px 8px;border-radius:10px;font-size:12px;background:#ddd}
.ok{background:#d1f5e0;color:#0a6b37}.warn{background:#fff1c2;color:#7a5600}.bad{background:#fde0de;color:#9b1c13}.info{background:#dbeafe;color:#1e40af}.muted{background:#e5e7eb;color:#555}
form.inline{display:inline}button,input,select,textarea{font:inherit}
button{background:#0b3d2e;color:#fff;border:0;padding:5px 12px;border-radius:5px;cursor:pointer}button.danger{background:#b42318}button.secondary{background:#e5e7eb;color:#111}
button.link{background:none;color:#cfe9df;padding:0}
input[type=text],input[type=password],input[type=number],input[type=url],input[type=email],select,textarea{padding:5px 7px;border:1px solid #c9ccd1;border-radius:5px;width:100%;background:#fff}
textarea{min-height:90px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px 16px}
label{display:block;font-size:12px;color:#444}label input[type=checkbox]{margin-right:6px}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:14px;margin-bottom:16px}.card>h2:first-child{margin-top:0}
.flash{background:#d1f5e0;padding:8px 12px;border-radius:6px;margin-bottom:12px}.flash.err{background:#fde0de}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:900px){.cols{grid-template-columns:1fr}}
img.screen{max-width:100%;border:1px solid #ccc;border-radius:6px;background:#fff}img.qr{width:280px;image-rendering:pixelated;border:1px solid #ccc}
.msg-in{background:#fff}.msg-out{background:#e7f8df}.small{font-size:12px;color:#666}code{background:#eef;padding:1px 4px;border-radius:3px}
img.thumb{max-width:90px;max-height:70px;border-radius:4px;border:1px solid #ddd}.att{display:inline-block;background:#eef2f7;border-radius:4px;padding:1px 6px;font-size:12px;margin-right:4px}
input[type=file]{font-size:13px}.code{font-size:28px;letter-spacing:4px;font-weight:700}.actions form{margin-right:4px}pre{white-space:pre-wrap;word-break:break-word;margin:0;font-size:12px}
