* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-muted);
  line-height: 1.5;
}
.bar { background: var(--neutral-solid); color: var(--action-on); padding: var(--s3) var(--s4); }
.brand { font-weight: 700; letter-spacing: .2px; }
main { max-width: 560px; margin: var(--s6) auto; padding: 0 var(--s4); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--action-bg); border-radius: var(--r-card); padding: var(--s5); }
h1 { margin: 0 0 var(--s3); font-size: var(--t-page); }
.btn { display: inline-block; background: var(--action-bg); color: var(--action-on); border: 0; border-radius: var(--r-control); padding: var(--s3) var(--s4); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--action-bg-hover); }
.btn.quiet { background: transparent; color: var(--action-bg); padding: var(--s2) 0; }
.checks { list-style: none; padding: 0; margin: var(--s4) 0; }
.checks li { display: flex; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
.checks li:last-child { border-bottom: 0; }
.checks .mark { width: 20px; flex: none; font-weight: 700; }
.checks .ok .mark { color: var(--action-bg); }
.checks .todo .mark { color: var(--warn-text); }
.checks p { margin: var(--s1) 0 0; color: var(--text-muted); font-size: var(--t-body); }
.warn { color: var(--danger-text); }
.small { color: var(--text-muted); font-size: var(--t-meta); word-break: break-all; }
code { background: var(--bg-subtle); padding: 0 var(--s1); border-radius: var(--r-sm); font-size: var(--t-label); }
h2.sub { font-size: var(--t-body); margin: var(--s5) 0 0; }

/* Users & access page */
main.wide { max-width: 860px; }
.ulist { width: 100%; border-collapse: collapse; margin: var(--s3) 0; font-size: var(--t-body); }
.ulist th, .ulist td { text-align: left; padding: var(--s2) var(--s2); border-bottom: 1px solid var(--border); vertical-align: top; }
.ulist th { font-size: var(--t-label); color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.ulist .off td { color: var(--text-muted); }
.pill { display: inline-block; font-size: var(--t-label); font-weight: 600; padding: var(--s1) var(--s2); border-radius: var(--r-pill); background: var(--bg-subtle); }
.pill.ok { background: var(--ok-bg); color: var(--action-bg-hover); }
.pill.bad { background: var(--danger-bg); color: var(--danger-text); }
/* Part 87: a test crew login on Users & access (made by Claude, ZZ only) */
.pill.test { background: var(--warn-bg); color: var(--warn-text); }
.acts { display: flex; flex-wrap: wrap; gap: var(--s1); }
.acts form { margin: 0; }
.btn.sm { padding: var(--s1) var(--s2); font-size: var(--t-meta); }
.btn.tap { min-height: var(--control-h); padding: 0 var(--s4); } /* full-size tap (sign-in Approve / Deny) */
.btn.danger { background: var(--danger-solid); }
.btn.ghost { background: var(--bg-card); color: var(--text); border: 1px solid var(--outline-edge); } /* part 48: outlined (white, brand outline) */
.btn.back { display: inline-flex; align-items: center; min-height: var(--control-h); box-sizing: border-box; padding: 0 var(--s3); font-size: var(--t-meta); } /* part 48: Back is an outlined button, top-left, tap size */
@media (max-width: 620px) { .btn.ghost { min-height: var(--control-h); box-sizing: border-box; } }
/* Part 50 (Nov 14 2026): /users on phones: Save, Change email, the division picker and the access select are 44 px tall */
@media (max-width: 620px) {
  .ulist .btn, .ulist summary.btn, .chgform .btn, .divpick summary { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-h); box-sizing: border-box; }
  .ulist select, .addform select, .addform input { min-height: var(--control-h); box-sizing: border-box; }
}
.addform { display: grid; gap: var(--s2); grid-template-columns: 2fr 1.4fr 1fr auto; align-items: end; margin-top: var(--s2); }
.addform label { font-size: var(--t-label); color: var(--text-muted); display: grid; gap: var(--s1); }
.addform input, .addform select { font: inherit; padding: var(--s2); border: 1px solid var(--border); border-radius: var(--r-control); }
.note { background: var(--stage-bg); border: 1px solid var(--stage-line); border-radius: var(--r-control); padding: var(--s2) var(--s3); font-size: var(--t-meta); margin: var(--s3) 0; }
/* Change email (Docs build, Nov 12 2026): the row's small form and the confirm page */
.chgmail summary { list-style: none; cursor: pointer; }
.chgmail summary::-webkit-details-marker { display: none; }
.chgform { display: grid; gap: var(--s2); margin-top: var(--s2); }
.chgform label { display: grid; gap: var(--s1); }
.chgform input[type=email] { font: inherit; padding: var(--s2); border: 1px solid var(--border); border-radius: var(--r-control); min-height: var(--control-h); box-sizing: border-box; width: 100%; }
.chgform .check { display: flex; gap: var(--s2); align-items: center; min-height: var(--control-h); }
.chgpair { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: baseline; word-break: break-all; }
.chglist { padding-left: var(--s4); display: grid; gap: var(--s1); }
.backlink { display: inline-flex; align-items: center; min-height: var(--control-h); }
.flash { background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: var(--r-control); padding: var(--s2) var(--s3); margin-bottom: var(--s3); }
@media (max-width: 640px) {
  .addform { grid-template-columns: 1fr; }
  .ulist thead { display: none; }
  .ulist tr { display: grid; border-bottom: 1px solid var(--border); padding: var(--s2) 0; }
  .ulist td { border: 0; padding: var(--s1) 0; }
}

/* 0B (Nov 8 2026): phones get 16px fields so an iPhone doesn't zoom in; numbers line up in tables */
@media (max-width:899px){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea{font-size:var(--t-field)}}
td, th { font-variant-numeric: tabular-nums; }
h1, h2, h3 { line-height: var(--lh-title); }
body { font-size: var(--t-body); line-height: var(--lh-body); }
:where(input[type=checkbox],input[type=radio]){margin:0 var(--s1) 0 0}
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){padding:var(--s1) var(--s2)}
:where(button){padding:0 var(--s2)}
:where(p){margin-block:var(--s3)}
:where(small){font-size:var(--t-label)}
:where(b,strong){font-weight:700}
:where(button,input,select,textarea){font:inherit}

/* Divisions dropdown with check marks (Users & access, Decisions 4) */
.divpick { display: inline-block; position: relative; }
.divpick summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: var(--s1); }
.divpick summary::-webkit-details-marker { display: none; }
.divpick .divlist { display: grid; gap: var(--s1); margin-top: var(--s1); padding: var(--s2) var(--s3); border: 1px solid var(--border); border-radius: var(--r-control); background: var(--bg-card); }
.divpick .divlist label { display: flex; align-items: center; gap: var(--s2); min-height: 44px; cursor: pointer; }
.divst { margin-left: var(--s2); }

/* Cleanup (Nov 20 2026, P4 + decision 81; Charlie): Users & access on a phone. The division ticks, "Switch off for
   everyone", "Turn writing off for everyone" and Info are full tap size (44 px), and the two connector switches sit
   well apart so one can't be hit for the other (both still ask first). */
.claudesw { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s2); }
.claudesw + .claudesw { margin-top: var(--s5); }
.divpick .divlist input[type=checkbox] { width: var(--s5); height: var(--s5); flex: none; }
.uinfo > summary { display: inline-flex; align-items: center; }
@media (max-width: 620px) {
  .claudesw .btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-h); box-sizing: border-box; }
  .claudesw + .claudesw { margin-top: var(--s6); }
  .uinfo > summary { min-height: var(--control-h); min-width: var(--control-h); }
  .divpick .divlist label { min-width: var(--control-h); }
}
/* Cleanup (Nov 20 2026): a sentence in small print wraps between words ("the ph / one app" at 390 on Users & access);
   long emails in small print (div.small) still break anywhere so nothing runs off a phone screen */
p.small { word-break: normal; overflow-wrap: anywhere; }
