/* ============================================================
   The Gear Room — equipment-room aesthetic
   Dark charcoal surfaces, tally-light status colors,
   SF Pro system typography with SF Mono label accents.
   ============================================================ */

:root {
  --bg: #0e0f11;
  --surface: #16181c;
  --surface-2: #1c1f24;
  --line: #272b32;
  --line-soft: #1f2329;
  --text: #ece9e2;
  --text-dim: #8d929c;
  --accent: #f2a33c;
  --accent-deep: #c97f1d;
  --ok: #46c182;
  --warn: #f2a33c;
  --out: #e5564f;
  --radius: 10px;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* subtle equipment-room texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(242, 163, 60, 0.05), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.006) 3px 4px);
  z-index: 0;
}

.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ============ SIDEBAR ============ */

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 8px 22px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #17120a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(242, 163, 60, 0.25), 0 4px 14px rgba(242, 163, 60, 0.12);
}

.brand-text { display: flex; flex-direction: column; }

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.15s, background 0.15s;
  position: relative;
}

.nav-link svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.nav-link:hover { color: var(--text); background: var(--surface-2); }

.nav-link.active {
  color: var(--accent);
  background: rgba(242, 163, 60, 0.09);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.nav-badge {
  margin-left: auto;
  background: var(--out);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

.nav-badge[hidden] { display: none; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

.role-toggle {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 10px 12px;
}

.role-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 7px;
}

.role-pills { display: flex; gap: 5px; }

.role-pill {
  flex: 1;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
}

.role-pill.active {
  background: rgba(242, 163, 60, 0.12);
  border-color: rgba(242, 163, 60, 0.4);
  color: var(--accent);
}

.reset-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
}
.reset-btn:hover { color: var(--text); opacity: 1; }

.mode-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: center;
  color: var(--ok);
  opacity: 0.85;
}
.mode-badge.local { color: var(--text-dim); }

/* member role hides admin actions */
body[data-role="member"] .admin-only { display: none; }

/* ============ MAIN ============ */

.main {
  padding: 34px 40px 60px;
  max-width: 1180px;
  width: 100%;
  animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.6px;
  line-height: 1.05;
}

/* ============ buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn:hover { border-color: var(--text-dim); }

.btn.primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: #17120a;
}
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 4px 18px rgba(242, 163, 60, 0.25); }

.btn.ghost { background: transparent; }
.btn.ghost:hover { border-color: var(--out); color: var(--out); }

.btn.lg { padding: 12px 26px; font-size: 14.5px; }

/* ============ stats ============ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: 19px; color: var(--text-dim); font-weight: 500; }

.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-bar {
  margin-top: 10px;
  height: 4px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
}
.stat-bar i { display: block; height: 100%; background: var(--ok); border-radius: 2px; transition: width 0.4s ease; }
.stat-bar.out i { background: var(--out); }

.stat.attention { border-color: rgba(242, 163, 60, 0.35); }
.stat.attention .stat-num { color: var(--accent); }
.stat.alert { border-color: rgba(229, 86, 79, 0.4); }
.stat.alert .stat-num { color: var(--out); }

/* ============ panels / dashboard ============ */

.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.panel-link { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 500; }
.panel-link:hover { text-decoration: underline; }

.loan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}

.loan-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.loan-who > div { display: flex; flex-direction: column; min-width: 0; }
.loan-who .dim { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.loan-due { font-size: 13px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }

.loan-row.overdue .loan-due { color: var(--out); }

.avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}
.avatar.lg { width: 42px; height: 42px; font-size: 15px; }

.activity-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.activity-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.activity-row .dim { font-size: 12.5px; }
.activity-row .mono { font-size: 11px; flex-shrink: 0; }

.act-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.act-dot.pending  { background: var(--warn); box-shadow: 0 0 8px rgba(242,163,60,.5); }
.act-dot.approved { background: var(--out); box-shadow: 0 0 8px rgba(229,86,79,.5); }
.act-dot.returned { background: var(--ok); }
.act-dot.denied   { background: var(--text-dim); }

/* ============ pills & chips ============ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
  border: 1px solid;
  white-space: nowrap;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok    { color: var(--ok);   border-color: rgba(70,193,130,.35);  background: rgba(70,193,130,.07); }
.pill.warn  { color: var(--warn); border-color: rgba(242,163,60,.35);  background: rgba(242,163,60,.07); }
.pill.out   { color: var(--out);  border-color: rgba(229,86,79,.35);   background: rgba(229,86,79,.07); }
.pill.alert { color: #fff; border-color: var(--out); background: var(--out); }
.pill.alert i { background: #fff; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 11px 5px 8px;
  font-size: 12.5px;
  font-weight: 500;
}
.chip-icon svg { width: 13px; height: 13px; fill: var(--text-dim); display: block; }

/* ============ toolbar / filters ============ */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}

.seg-btn {
  padding: 7px 14px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--surface-2); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(242,163,60,.3); }

.toolbar-right { display: flex; gap: 10px; }

.select, .search {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 8px 12px;
  outline: none;
}
.search { width: 210px; }
.search:focus, .select:focus { border-color: rgba(242,163,60,.5); }
.search::placeholder { color: var(--text-dim); }

/* ============ gear grid ============ */

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 13px;
}

.gear-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.gear-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.gear-card.st-available::after { background: linear-gradient(90deg, var(--ok), transparent 70%); opacity: .6; }
.gear-card.st-requested::after { background: linear-gradient(90deg, var(--warn), transparent 70%); opacity: .6; }
.gear-card.st-out::after       { background: linear-gradient(90deg, var(--out), transparent 70%); opacity: .6; }

.gear-card:hover { border-color: var(--line); transform: translateY(-2px); }

.gear-top { display: flex; align-items: center; justify-content: space-between; }

.gear-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.gear-icon svg { width: 17px; height: 17px; fill: var(--text-dim); }

.gear-card h3 { font-size: 15.5px; font-weight: 600; line-height: 1.3; }

.gear-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: rgba(242, 163, 60, 0.08);
  border: 1px solid rgba(242, 163, 60, 0.2);
  border-radius: 4px;
  padding: 2px 7px;
}

.gear-notes { font-size: 12.5px; color: var(--text-dim); }

.gear-holder {
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  margin-top: 2px;
}
.gear-holder strong { color: var(--text); }

.dim { color: var(--text-dim); }
.mono { font-family: var(--font-mono); }
.empty { color: var(--text-dim); padding: 26px 0; text-align: center; }
.span-all { grid-column: 1 / -1; }

/* ============ tabs / requests ============ */

.tabs {
  display: inline-flex;
  gap: 4px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
  width: 100%;
}

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  transition: color 0.15s;
}
.tab em { font-style: normal; font-size: 12px; color: var(--accent); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

.req-list { display: flex; flex-direction: column; gap: 13px; }

.req-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 19px 22px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.req-card.overdue { border-color: rgba(229, 86, 79, 0.4); }

.req-main { display: flex; flex-direction: column; gap: 11px; min-width: 0; }

.req-who { display: flex; align-items: center; gap: 12px; }
.req-who > div { display: flex; flex-direction: column; }
.req-who strong { font-size: 15.5px; }
.req-who .dim { font-size: 12.5px; }

.req-purpose { color: var(--text-dim); font-size: 14px; font-style: italic; }

.req-phone {
  font-size: 11.5px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.4px;
}
.req-phone:hover { text-decoration: underline; }

.req-items { display: flex; flex-wrap: wrap; gap: 7px; }

.req-dates { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-dim); letter-spacing: 0.5px; }

.req-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

/* ============ request form ============ */

.request-form { max-width: 980px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.span2 { grid-column: span 2; }

.field span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: rgba(242, 163, 60, 0.55); }
.field input::placeholder { color: #5b6069; }

.form-section {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 14px;
}

.form-hint {
  font-size: 13px;
  color: var(--accent);
  background: rgba(242, 163, 60, 0.07);
  border: 1px solid rgba(242, 163, 60, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.pick-conflict {
  font-size: 11px;
  color: var(--out);
  font-weight: 500;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 11px 13px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.pick input { position: absolute; opacity: 0; pointer-events: none; }

.pick:hover { border-color: var(--line); }

.pick.picked {
  border-color: rgba(242, 163, 60, 0.55);
  background: rgba(242, 163, 60, 0.06);
  box-shadow: 0 0 0 1px rgba(242, 163, 60, 0.25);
}

.pick .gear-icon { width: 30px; height: 30px; }
.pick-name { flex: 1; font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.pick .tag { font-size: 9.5px; }
.pick .pill { font-size: 8.5px; padding: 3px 7px; }

.pick.disabled { opacity: 0.45; cursor: not-allowed; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}
.form-foot p { max-width: 480px; font-size: 13px; }

/* ============ modal ============ */

.modal-root {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 10, 0.7);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 90;
}

.modal-root[hidden] { display: none; }

.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
  width: min(380px, calc(100vw - 40px));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.2s ease both;
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

.modal p { font-size: 13.5px; margin-bottom: 16px; }

.modal input[type="password"] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 13px;
  outline: none;
}
.modal input[type="password"]:focus { border-color: rgba(242, 163, 60, 0.55); }

.gate-error {
  color: var(--out);
  font-size: 12.5px;
  margin: 8px 0 0 !important;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

/* ============ toasts ============ */

.toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 100;
}

.toast {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast.warn { border-left-color: var(--warn); }

/* ============ accessibility ============ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.pick:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ responsive ============ */

@media (max-width: 980px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }

  .sidebar-brand { padding: 0; margin-right: auto; }
  .sidebar-nav { flex-direction: row; width: 100%; overflow-x: auto; }
  .nav-link { padding: 8px 11px; font-size: 13.5px; white-space: nowrap; }
  .nav-link.active::before { display: none; }
  .sidebar-foot { margin: 0; flex-direction: row; align-items: center; }
  .role-toggle { padding: 7px 10px; }
  .role-label { display: none; }

  body { font-size: 16px; }
  .main { padding: 24px 18px 50px; }
  .page-head h1 { font-size: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span2 { grid-column: span 1; }
  .req-card { flex-direction: column; }
  .req-actions { flex-direction: row; width: 100%; }
  .req-actions .btn { flex: 1; justify-content: center; }
  .form-foot { flex-direction: column; align-items: stretch; text-align: center; }
}
