/* Shared by /setup, /account and /people. Same look as login.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F5F5F5;
  color: #111827;
  min-height: 100vh;
  padding: 32px 16px;
}
.wrap { max-width: 440px; margin: 0 auto; }
.wrap.wide { max-width: 760px; }
.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.06);
  margin-bottom: 16px;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.top a { font-size: 13px; color: #A86E12; text-decoration: none; }
.top a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 600; }
h2 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.lead, .muted { font-size: 13px; color: #6b7280; line-height: 1.5; }
.lead { margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
label, .label {
  display: block; font-size: 12px; font-weight: 600; color: #374151;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px;
}
input[type=text], input[type=password], input[type=number], select {
  width: 100%; padding: 11px 14px; border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: 14px; color: #111827; background: #f9fafb; outline: none; font-family: inherit;
}
input:focus, select:focus { border-color: #C8861A; background: #fff; }
.code-input { font-size: 20px !important; letter-spacing: 3px; text-transform: uppercase; text-align: center; }
.hint { font-size: 12px; color: #6b7280; margin-top: 6px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; display: flex; align-items: center; gap: 6px; margin: 0; }
.btn {
  display: inline-block; padding: 11px 22px; background: #C8861A; color: #fff; border: none;
  border-radius: 24px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 6px rgba(200,134,26,.30);
}
.btn.full { width: 100%; }
a.btn { text-decoration: none; text-align: center; }
.btn:hover { background: #A86E12; }
.btn:disabled { background: #E8E8E8; color: #A8A5A0; cursor: not-allowed; box-shadow: none; }
.btn.quiet { background: #fff; color: #374151; border: 1.5px solid #d1d5db; box-shadow: none; }
.btn.quiet:hover { background: #f3f4f6; }
.btn.danger { background: #fff; color: #b91c1c; border: 1.5px solid #fca5a5; box-shadow: none; }
.btn.danger:hover { background: #fef2f2; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.msg { display: none; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-top: 12px; line-height: 1.5; }
.msg.show { display: block; }
.msg.error { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }
.msg.done { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.list { list-style: none; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #eee; }
.list li:first-child { border-top: none; }
.who { min-width: 0; }
.who b { display: block; font-size: 15px; }
.who span { font-size: 13px; color: #6b7280; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #f3f4f6; color: #374151; margin-left: 6px; vertical-align: middle; }
.tag.owner { background: #fef3c7; color: #92400e; }
.tag.manager { background: #e0f2fe; color: #075985; }
.tag.off { background: #fee2e2; color: #991b1b; }
.code-box {
  margin-top: 12px; padding: 16px; border-radius: 12px; background: #fffbeb; border: 1.5px dashed #C8861A;
  text-align: center;
}
.code-box .code { font-size: 28px; font-weight: 700; letter-spacing: 4px; font-family: ui-monospace, Menlo, monospace; margin: 6px 0; }
details.edit { margin-top: 10px; }
details.edit summary { cursor: pointer; font-size: 13px; color: #A86E12; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.log { font-size: 12px; color: #6b7280; line-height: 1.7; }
[hidden] { display: none !important; }
@media (max-width: 520px) {
  body { padding: 16px 12px; }
  .card { padding: 20px; }
  .list li { flex-direction: column; align-items: flex-start; }
}

/* The invite under a setup code (People and logins). */
.invite { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0d9a8; text-align: left; }
.invite h3 { font-size: 15px; margin: 0 0 8px; }
.invite-to { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.invite-to label { font-size: 12px; color: #6b7280; display: grid; gap: 3px; }
.invite-to input { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; min-width: 0; }
.invite .small { font-size: 12px; margin-top: 6px; }
.invite details { margin-top: 8px; }
.invite summary { cursor: pointer; font-size: 13px; color: #A86E12; }
.invite textarea { width: 100%; margin-top: 6px; font: 12.5px/1.45 ui-monospace, Menlo, monospace; padding: 8px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; resize: vertical; }
@media (max-width: 520px) { .invite-to { grid-template-columns: 1fr; } }
