:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
}

button,
input,
textarea {
  font: inherit;
}

.receiver-page {
  min-height: 100dvh;
  overflow: hidden;
}

.receiver-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background: #000;
}

.status-dot {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b4b4b;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04);
}

.status-dot.online,
.connection-dot.online {
  background: #d8ffd8;
}

.status-text {
  position: fixed;
  left: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  margin: 0;
  color: #666;
  font-size: 12px;
}

.enable-button,
.primary-button {
  border: 0;
  border-radius: 12px;
  background: #f3f3f3;
  color: #050505;
  font-weight: 700;
  cursor: pointer;
}

.enable-button {
  padding: 14px 18px;
}

.phone-toast {
  width: min(92vw, 420px);
  padding: 16px 18px;
  border: 1px solid #242424;
  border-radius: 16px;
  background: #101010;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
  animation: toast-in 180ms ease-out;
}

.phone-toast strong,
.phone-toast span {
  display: block;
}

.phone-toast strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.phone-toast span {
  color: #b9b9b9;
  font-size: 14px;
  line-height: 1.45;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

.controller-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background: #080808;
}

.controller-card {
  width: min(100%, 540px);
  padding: 28px;
  border: 1px solid #202020;
  border-radius: 20px;
  background: #0d0d0d;
}

.eyebrow {
  margin-bottom: 10px;
  color: #737373;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.05;
}

.muted {
  margin: 0 0 24px;
  color: #8c8c8c;
  line-height: 1.5;
}

label {
  display: block;
  margin-top: 16px;
  color: #bcbcbc;
  font-size: 13px;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #292929;
  border-radius: 12px;
  outline: none;
  background: #111;
  color: #f5f5f5;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #5e5e5e;
}

.primary-button {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.controller-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #717171;
  font-size: 12px;
}

.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b4b4b;
}
