:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; color: #172033; background: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
header { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px)/2)); background: #fff; border-bottom: 1px solid #e4e8ef; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(135deg, #ff5d4b, #7158e2); font-weight: 800; }
.brand div { display: flex; flex-direction: column; }.brand strong { font-size: 14px; }.brand small { color: #818a9b; }
.actions { display: flex; align-items: center; gap: 13px; color: #8992a2; font-size: 11px; }
button { border: 1px solid #d8dde6; border-radius: 9px; padding: 8px 13px; color: #394357; background: #fff; cursor: pointer; }
main { max-width: 1180px; margin: 0 auto; padding: 42px 24px 70px; }
.hero { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.hero p { margin: 0 0 8px; color: #6355d9; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.hero h1 { margin: 0; font-size: clamp(27px, 4vw, 39px); letter-spacing: -.035em; }.hero div > span { display: block; margin-top: 8px; color: #7f889a; }
.connection { margin-bottom: 5px; padding: 7px 11px; border-radius: 20px; color: #147648; background: #ddf4e7; font-size: 11px; }.connection.offline { color: #a62f35; background: #fde5e7; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stats article { min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid #e3e7ee; border-radius: 14px; background: #fff; box-shadow: 0 3px 14px rgba(41,50,72,.035); }
.stats span { color: #7c8698; font-size: 12px; }.stats strong { font-size: 30px; letter-spacing: -.04em; }
.table-card { overflow: hidden; border: 1px solid #e3e7ee; border-radius: 15px; background: #fff; box-shadow: 0 3px 14px rgba(41,50,72,.035); }
.table-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 21px; border-bottom: 1px solid #e9ecf2; }
.table-head h2 { margin: 0 0 3px; font-size: 15px; }.table-head p { margin: 0; color: #8a93a3; font-size: 11px; }
input { width: min(310px, 45vw); padding: 9px 12px; border: 1px solid #d8dde7; border-radius: 9px; outline: none; }input:focus { border-color: #7668db; box-shadow: 0 0 0 3px #eeebff; }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th { padding: 11px 17px; color: #9199a9; background: #fafbfc; font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .06em; }td { padding: 13px 17px; border-top: 1px solid #eef0f4; color: #5d687b; font-size: 11px; }td.subject { max-width: 290px; color: #20293a; font-weight: 650; }.muted { color: #a0a7b4; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 14px; color: #737d8e; background: #edf0f4; font-weight: 650; white-space: nowrap; }.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #9da5b2; }.pill.read { color: #19754b; background: #dff5e9; }.pill.read::before { background: #24a467; }
.delete { padding: 4px 7px; border: 0; color: #a0a7b4; background: transparent; font-size: 15px; }.delete:hover { color: #d33c47; }
.empty, .error { padding: 35px; color: #8a93a3; text-align: center; font-size: 12px; }.error { color: #a62f35; background: #fdecef; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; }.hero { align-items: start; flex-direction: column; gap: 18px; }.table-head { align-items: stretch; flex-direction: column; }input { width: 100%; } }
