*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#15191f;color:#f8fafc;font:16px system-ui,sans-serif}main{max-width:540px;margin:auto;padding:20px}img{width:100%;height:auto}#status{color:#cdd0d7}article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;margin-bottom:8px;border:1px solid #626569;border-radius:12px;background:#242a32;overflow-wrap:anywhere}button{min-height:44px;border:0;border-radius:10px;background:#c40019;color:white;font:700 14px system-ui;padding:8px 12px}button:disabled{opacity:.6}details{margin-top:24px}button:focus-visible,summary:focus-visible{outline:2px solid white;outline-offset:3px}form{margin-top:12px}label{display:block;margin:8px 0}input:not([type=checkbox]),select{display:block;width:100%;min-height:44px;font:inherit}fieldset{margin:12px 0}
/* Owner guest cards have their own layout. Device controls retain their rows. */
#users { display: grid; gap: 14px; margin-top: 16px; }
article.guest-card { display: block; padding: 14px; margin: 0; }
.guest-card h3 { margin: 0 0 10px; font-size: 18px; }
.guest-card dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0 0 12px;
  font-size: 14px;
}
.guest-card dt { color: #cdd0d7; }
.guest-card dd { margin: 0; }
.guest-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.guest-actions:empty { display: none; }
.guest-actions button { flex: 1 0 max-content; max-width: 100%; overflow-wrap: normal; }
.guest-access-actions button { background: #353d49; }
.guest-revoke {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 1px solid #e27280;
  background: transparent;
  color: #ffc5cd;
}
#guest-confirm, #invitation-created { width: min(400px, calc(100% - 32px)); padding: 20px; border-radius: 14px; border: 1px solid #626569; background: #242a32; color: #f8fafc; }
#guest-confirm::backdrop, #invitation-created::backdrop { background: #000a; }
#guest-confirm form, dialog h2 { margin-top: 0; }
dialog h2 { font-size: 20px; }
#guest-confirm button { background: #353d49; }
#guest-confirm button.danger { background: #c40019; }
#close-invitation { background: #353d49; }
#invitation-created-status:empty { display: none; }
.invite-send { display: inline-flex; flex: 1 0 max-content; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 10px; background: #353d49; color: white; font-weight: 700; font-size: 14px; }
#access-start-note { color: #cdd0d7; font-size: 14px; }
