:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f4f1;
  color: #151515;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.shell { width: min(680px, 100%); margin: 0 auto; padding: 28px 18px 56px; }
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand-row h1 { margin: 0; font-size: 24px; letter-spacing: -0.04em; }
.brand-row p { margin: 2px 0 0; color: #747474; font-size: 14px; }
.mark { width: 42px; height: 42px; display: grid; place-items: center; background: #151515; color: white; border-radius: 13px; font-weight: 800; }

.card { background: #fff; border: 1px solid #e5e5df; border-radius: 22px; padding: 18px; margin-bottom: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.035); }
.eyebrow { font-size: 11px; letter-spacing: .14em; color: #8a8a84; font-weight: 700; margin-bottom: 10px; }
.room-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.room-row input, textarea { width: 100%; border: 1px solid #deded8; background: #fafaf8; border-radius: 14px; padding: 12px 13px; outline: none; }
.room-row input { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.room-row input:focus, textarea:focus { border-color: #151515; }

.primary, .secondary, .ghost { border: 0; border-radius: 13px; padding: 12px 14px; font-weight: 700; }
.primary { background: #151515; color: #fff; }
.secondary { background: #ecece7; color: #151515; }
.ghost { margin-top: 9px; background: transparent; color: #666; padding-left: 2px; }

.status-row { display: flex; gap: 8px; align-items: center; margin-top: 13px; color: #666; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: #b8b8b2; }
.status-dot.online { background: #1f9d55; box-shadow: 0 0 0 4px rgba(31,157,85,.10); }

.drop-zone { border: 1.5px dashed #d6d6cf; border-radius: 18px; min-height: 145px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; padding: 22px; background: #fafaf8; }
.drop-zone strong { font-size: 17px; }
.drop-zone span { color: #81817b; font-size: 13px; max-width: 300px; }
.drop-zone input { margin-top: 10px; max-width: 100%; }

.text-send { margin-top: 14px; display: grid; gap: 8px; }
textarea { resize: vertical; min-height: 78px; }
.progress-wrap { margin: 16px 0 4px; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #666; margin-bottom: 6px; }
progress { width: 100%; height: 8px; }
.hidden { display: none; }

.received { display: grid; gap: 9px; }
.received.empty { color: #85857f; font-size: 14px; }
.received-item { padding: 12px; background: #f7f7f4; border-radius: 14px; overflow-wrap: anywhere; }
.received-item a { color: #151515; font-weight: 700; }
.received-item small { display: block; margin-top: 5px; color: #85857f; }

@media (max-width: 500px) {
  .room-row { grid-template-columns: 1fr; }
  .primary { width: 100%; }
}
