/* Shared across all hosted pages (rooms, editor, install).
   Tokens like --bg-paper, --text-ink, --teal, --border, --shadow
   come from /css/base.css which all three pages also load. */

/* The hosted UI's only modal — used as the login dialog on the rooms
   and editor pages, and as the optional name-prompt on both. */
dialog.hosted-dialog {
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-paper);
  padding: 1.5rem 1.7rem;
  max-width: 380px;
  font-family: var(--font-sans);
}
dialog.hosted-dialog::backdrop {
  background: rgba(26, 26, 26, 0.4);
}
dialog.hosted-dialog .eyebrow { margin-bottom: 0.4rem; }
dialog.hosted-dialog h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
}
dialog.hosted-dialog p {
  margin: 0 0 1rem;
  color: #555;
  font-size: 0.9rem;
}
dialog.hosted-dialog input {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: var(--border);
  background: #fff;
}
dialog.hosted-dialog input:focus {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
dialog.hosted-dialog .actions {
  margin-top: 1.1rem;
  text-align: right;
}
dialog.hosted-dialog .login-error {
  color: #B7410E;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-height: 1rem;
  margin: 0.5rem 0 0;
}
