:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body,
main {
  min-width: 320px;
  min-height: 100%;
}

[hidden] { display: none !important; }
#home-view { text-align: center; }
#home-title { margin: 0; color: #111; font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -1px; }
#home-status { margin: 12px 0 0; color: #777; font-size: 14px; line-height: 1.5; }

body {
  min-height: 100svh;
  margin: 0;
  background: #ffffff;
}

main {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

button {
  min-width: 160px;
  min-height: 52px;
  padding: 0 28px;
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  background: #111111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  font: 700 15px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover:not(:disabled) {
  background: #292929;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.28);
  outline-offset: 4px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

dialog {
  width: min(440px, calc(100vw - 40px));
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 28px;
  color: #222;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 20px 80px #0002;
}
dialog::backdrop { background: #0004; }
dialog h1 { margin: 0 0 16px; font-size: 21px; line-height: 1.3; font-weight: 600; }
dialog p { margin: 0 0 14px; color: #666; font-size: 14px; line-height: 1.55; }
.consent-actions { display: grid; gap: 9px; margin-top: 22px; }
.consent-actions button { width: 100%; padding: 12px 16px; box-shadow: none; font-size: 14px; line-height: 1.3; }
.consent-actions button:hover:not(:disabled) { box-shadow: none; transform: none; }
#presence-private { color: #333; background: #f0f0f0; }
#presence-private:hover { background: #e9e9e9; }
#presence-state { position: fixed; inset: auto 20px 20px; text-align: center; color: #777; font-size: 12px; }
#presence-state[hidden], #presence-stop[hidden] { display: none; }
#presence-status { margin: 0 0 8px; }
#presence-stop { min-width: auto; min-height: 32px; padding: 6px 12px; color: #555; background: #f3f3f3; box-shadow: none; border-radius: 7px; font-size: 12px; font-weight: 400; }
#presence-stop:hover { box-shadow: none; transform: none; background: #eaeaea; }

@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
