@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 'DM Sans', system-ui, sans-serif; color: #1c2430; background: #f4f6fa; }
header { background: #1E4DB7; color: #fff; padding: 12px 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
header b { font-size: 17px; margin-right: auto; }
header a { color: #fff; text-decoration: none; opacity: .85; }
header a:hover, header a.on { opacity: 1; text-decoration: underline; }
main { max-width: 1050px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid #dde3ee; border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.card h2 { margin: 0 0 4px; font-size: 18px; }
.hint { color: #5b6677; font-size: 13.5px; margin: 0 0 14px; }
label { display: block; font-weight: 600; font-size: 13.5px; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], select { width: 100%; padding: 9px 11px; border: 1px solid #c9d1de; border-radius: 8px; font: inherit; background: #fff; }
input:focus, select:focus, button:focus-visible { outline: 2px solid #1E4DB7; outline-offset: 1px; }
button { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 8px; border: 1px solid #1E4DB7; background: #1E4DB7; color: #fff; cursor: pointer; }
button.ghost { background: #fff; color: #1E4DB7; }
button.danger { background: #fff; color: #C0392B; border-color: #C0392B; }
button:disabled { opacity: .5; cursor: default; }
button.small { padding: 5px 10px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
th { font-size: 12.5px; color: #5b6677; font-weight: 600; }
td input[type=text], td input[type=email] { padding: 6px 8px; }
td.c, th.c { text-align: center; }
.msg { padding: 10px 14px; border-radius: 8px; margin: 12px 0; }
.msg.ok { background: #E3F5EE; color: #0d5e43; }
.msg.err { background: #FBE7E5; color: #8e2a20; }
.msg.info { background: #E8EEFB; color: #163a8a; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > div { flex: 1 1 200px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #eef1f6; }
.tag.admin { background: #FDF3DE; color: #8a5a10; }
.tag.off { background: #FBE7E5; color: #8e2a20; }
.login { max-width: 380px; margin: 9vh auto; }
.savebar { position: sticky; bottom: 0; background: #f4f6fa; padding: 12px 0; display: flex; gap: 12px; align-items: center; }
td.actions { white-space: nowrap; }
td.actions button { margin: 2px 0; }
/* Phones: tables become one card per row, with the column name beside each value. */
@media (max-width: 700px) {
  header { padding: 10px 14px; gap: 4px 16px; }
  header b { width: 100%; }
  main { margin: 14px auto; padding: 0 10px; }
  .card { padding: 16px 14px; }
  button { min-height: 40px; }
  button.small { min-height: 36px; }
  table.stack thead { display: none; }
  table.stack tr { display: block; border: 1px solid #dde3ee; border-radius: 10px; padding: 6px 12px; margin-bottom: 10px; }
  table.stack td { display: flex; align-items: center; gap: 10px; border: 0; padding: 6px 0; text-align: left; overflow-wrap: anywhere; }
  table.stack td::before { content: attr(data-label); flex: 0 0 38%; font-size: 12.5px; font-weight: 600; color: #5b6677; }
  table.stack td > input[type=text], table.stack td > input[type=email] { flex: 1; min-width: 0; }
  table.stack td > input[type=checkbox] { width: 22px; height: 22px; }
  table.stack td.actions { flex-wrap: wrap; white-space: normal; }
  table.stack td.actions::before, table.stack td.head::before { display: none; }
  table.stack td.head { font-weight: 700; }
}
code.pw { font-size: 17px; background: #fff; padding: 3px 8px; border-radius: 6px; border: 1px solid #c9d1de; user-select: all; }
