/* ============================================================
   PrairieOps — components.css
   Buttons, badges, modals, forms, PIN pad, pills, toasts
   ============================================================ */

/* ── Buttons — outlined-only, brief fill on press ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}
.btn-primary:hover:not(:disabled),
.btn-primary:active:not(:disabled) { background: rgba(196, 144, 96, 0.12); }

.btn-danger {
  background: transparent;
  border-color: var(--urgent);
  color: var(--urgent);
}
.btn-danger:hover:not(:disabled),
.btn-danger:active:not(:disabled) { background: rgba(224, 53, 53, 0.12); }

.btn-warning {
  background: transparent;
  border-color: var(--deadline);
  color: var(--deadline);
}
.btn-warning:hover:not(:disabled),
.btn-warning:active:not(:disabled) { background: rgba(192, 120, 56, 0.12); }

.btn-info {
  background: transparent;
  border-color: var(--eow);
  color: var(--eow);
}
.btn-info:hover:not(:disabled),
.btn-info:active:not(:disabled) { background: rgba(91, 141, 217, 0.12); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled),
.btn-ghost:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-urgent {
  background: transparent;
  border-color: var(--urgent);
  color: var(--urgent);
  font-weight: var(--weight-bold);
}
.btn-urgent:hover:not(:disabled),
.btn-urgent:active:not(:disabled) {
  background: rgba(224, 53, 53, 0.12);
}

/* ── Phase 4 semantic variants (2026-05-24) ───────────────── */
/* btn-success — Complete / Approve / Sign Off / Save */
.btn-success {
  background: transparent;
  border-color: var(--green-400);
  color: var(--green-300);
}
.btn-success:hover:not(:disabled),
.btn-success:active:not(:disabled) { background: rgba(45, 122, 66, 0.16); }

/* btn-support — Request Support / help requests */
.btn-support {
  background: transparent;
  border-color: var(--deadline);
  color: var(--deadline);
}
.btn-support:hover:not(:disabled),
.btn-support:active:not(:disabled) { background: rgba(212, 130, 10, 0.16); }

/* btn-update — Update Task / informational add */
.btn-update {
  background: transparent;
  border-color: var(--eow);
  color: var(--eow);
}
.btn-update:hover:not(:disabled),
.btn-update:active:not(:disabled) { background: rgba(74, 127, 212, 0.16); }

/* btn-edit — Edit Task (lighter brown, distinct from primary bronze) */
.btn-edit {
  background: transparent;
  border-color: var(--brand-light);
  color: var(--brand-light);
}
.btn-edit:hover:not(:disabled),
.btn-edit:active:not(:disabled) { background: rgba(212, 170, 128, 0.14); }

/* btn-neutral — off-white "admin action" (Reassign Task, future system actions) */
.btn-neutral {
  background: transparent;
  border-color: #e0e0e0;
  color: #f0f0f0;
}
.btn-neutral:hover:not(:disabled),
.btn-neutral:active:not(:disabled) { background: rgba(255, 255, 255, 0.10); }

/* Icon-only button — square, centred icon, no text padding */
.btn-icon-only {
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
}
.btn-icon-only.btn-sm { padding: 4px 7px; min-width: 26px; }

.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
  min-height: 26px;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 10px 20px;
  font-size: 14px;
  min-height: 42px;
  border-radius: var(--radius-md);
}
.btn-full { width: 100%; }
.btn-icon {
  width: 30px; height: 30px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ── Badges / Pills ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Priority badges — text-forward, minimal bg.                          */
/* min-widths sized to the longest label each badge can show so the     */
/* Phase 4 rotation (label ↔ time remaining) doesn't shift layout.       */
.badge-urgent   { background: rgba(224,53,53,0.12);  border-color: rgba(224,53,53,0.25);  color: var(--urgent);   min-width: 62px; justify-content: center; }
.badge-deadline { background: rgba(192,120,56,0.12); border-color: rgba(192,120,56,0.25); color: var(--deadline); min-width: 76px; justify-content: center; }
.badge-eod      { background: rgba(196,144,96,0.12); border-color: rgba(196,144,96,0.25); color: var(--eod);      min-width: 84px; justify-content: center; }
.badge-eow      { background: rgba(91,141,217,0.12); border-color: rgba(91,141,217,0.25); color: var(--eow);      min-width: 92px; justify-content: center; }
.badge-backlog  { background: rgba(80,80,80,0.12);   border-color: rgba(80,80,80,0.25);   color: var(--backlog); }
.badge-overdue  { background: rgba(224,53,53,0.18);  border-color: rgba(224,53,53,0.45);  color: var(--urgent);   min-width: 62px; justify-content: center; }

/* Overdue duration text — used in the task detail/expanded view */
.overdue-duration {
  font-weight: 600;
  color: var(--urgent);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Role badges */
.badge-manager { background: rgba(144,96,196,0.12); border-color: rgba(144,96,196,0.25); color: var(--role-manager); }
.badge-foreman { background: rgba(74,126,196,0.12); border-color: rgba(74,126,196,0.25); color: var(--role-foreman); }
.badge-crew    { background: rgba(40,132,66,0.12);  border-color: rgba(40,132,66,0.25);  color: var(--role-crew); }
.badge-owner   { background: rgba(196,144,96,0.12); border-color: rgba(196,144,96,0.30); color: var(--role-owner); font-weight: 700; }

/* Status badges */
.badge-status  { background: var(--bg-elevated); border-color: var(--border); color: var(--text-muted); }
.badge-live    { background: rgba(40,132,66,0.10);  border-color: rgba(40,132,66,0.2);  color: var(--green-300); }
.badge-claimed { background: rgba(74,126,196,0.10); border-color: rgba(74,126,196,0.2); color: var(--eow); }
.badge-progress{ background: rgba(212,120,10,0.10); border-color: rgba(212,120,10,0.2); color: var(--deadline); }
.badge-signoff { background: rgba(196,144,96,0.10); border-color: rgba(196,144,96,0.2); color: var(--eod); }
.badge-rejected{ background: rgba(224,53,53,0.10);  border-color: rgba(224,53,53,0.2);  color: var(--urgent); }

/* Board tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-field { background: rgba(44,95,46,0.35); color: #6fbf72; border: 1px solid rgba(44,95,46,0.6); }
.tag-grain { background: rgba(139,105,20,0.35); color: #e0b84a; border: 1px solid rgba(139,105,20,0.6); }
.tag-shop  { background: rgba(30,58,95,0.35); color: #6aaee8; border: 1px solid rgba(30,58,95,0.6); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* Split date + time pickers */
.datetime-split {
  display: flex;
  gap: var(--sp-2);
}
.datetime-split input[type="date"],
.datetime-split input[type="time"] {
  flex: 1;
  min-width: 0;
}

label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

input[type="text"],
input[type="number"],
input[type="time"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 8px 10px;
  width: 100%;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }
select option { background: var(--bg-elevated); color: var(--text-primary); }

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: var(--radius-sm);
  accent-color: var(--brand);
  cursor: pointer;
}
.checkbox-item span {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  backdrop-filter: blur(2px);
}
.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.15s ease;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.18s ease;
  overflow: hidden;
}

/* ── New Task modal + Notif panel — spring-overshoot entry (Phase 4) ──── */
/* Scoped to #modal-task-overlay + #notif-panel so other modals keep their */
/* default subtle slide-up.                                                 */
#modal-task-overlay.open .modal {
  animation: taskModalSpringIn 0.55s cubic-bezier(0.34, 1.65, 0.5, 1);
}
#modal-task-overlay.open {
  animation: fadeInBackdrop 0.22s ease;
}

/* Option B — bigger bounce, 2-bounce settle. Picked from mockup 2026-05-24. */
@keyframes taskModalSpringIn {
  0%   { opacity: 0; transform: translateY(50px) scale(0.85); }
  45%  { opacity: 1; transform: translateY(-14px) scale(1.05); }
  72%  { transform: translateY(6px) scale(0.985); }
  88%  { transform: translateY(-2px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: color var(--transition-fast);
}
.modal-close:hover { color: var(--text-primary); }

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── PIN Pad ────────────────────────────────────────────────── */
.pin-display {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin: var(--sp-3) 0 var(--sp-3);
}
.pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: all var(--transition-fast);
}
.pin-dot.filled {
  background: var(--brand);
  border-color: var(--brand);
}
.pin-dot.error {
  background: var(--urgent);
  border-color: var(--urgent);
  animation: flash 0.4s ease;
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  max-width: 260px;
  margin: 0 auto;
}
.pin-key {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  user-select: none;
}
.pin-key:hover { background: var(--bg-hover); border-color: var(--border-focus); }
.pin-key:active { transform: scale(0.93); }
.pin-key.pin-backspace { font-size: var(--text-lg); color: var(--text-secondary); }
.pin-key.pin-backspace:hover { color: var(--danger); border-color: var(--danger); }

/* ── Toast / Banner Notifications ──────────────────────────── */
#toast-container {
  position: fixed;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 360px;
  width: 100%;
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-md);
  animation: slideInDown 0.2s ease;
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.toast-urgent  { border-left: 4px solid var(--urgent); }
.toast-warning { border-left: 4px solid var(--deadline); }
.toast-success { border-left: 4px solid var(--success); }
.toast-info    { border-left: 4px solid var(--info); }

.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.toast-msg {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
  color: var(--text-muted);
}
.empty-icon { font-size: 40px; margin-bottom: var(--sp-3); }
.empty-title { font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--text-secondary); }
.empty-sub   { font-size: var(--text-sm); margin-top: var(--sp-1); }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-4) 0;
}

/* ── Count badge (queue headers) ───────────────────────────── */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 var(--sp-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
}
.count-badge.has-items {
  background: rgba(196,144,96,0.12);
  border-color: rgba(196,144,96,0.3);
  color: var(--brand);
}

/* ── Notification panel ─────────────────────────────────────── */
#notif-panel {
  display: none;
  position: fixed;
  top: 56px; right: var(--sp-4);
  width: 340px;
  max-height: 480px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  overflow: hidden;
  flex-direction: column;
  transform-origin: top right;
}
/* Phase 4: spring entry matched to the New Task modal (Option B). */
#notif-panel.open {
  display: flex;
  animation: taskModalSpringIn 0.55s cubic-bezier(0.34, 1.65, 0.5, 1);
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  flex-shrink: 0;
}
.notif-panel-title { display: inline-flex; align-items: center; }
.notif-clear-all {
  background: none;
  border: none;
  color: var(--ios-red);            /* matches swipe-delete red */
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}
.notif-clear-all:hover  { background: rgba(255, 59, 48, 0.08); }
.notif-clear-all:active { background: rgba(255, 59, 48, 0.16); }
.notif-clear-all[hidden] { display: none; }

.notif-list {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* Reset button styles when notif-item is a <button> (clickable items) */
button.notif-item {
  background: none;
  font-family: var(--font-sans);
  text-align: left;
  width: 100%;
}

.notif-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
  min-height: 56px;
}
.notif-item:hover { background: var(--bg-elevated); }
.notif-item.unread { background: transparent; }
.notif-item-clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.notif-item-clickable:hover,
.notif-item-clickable:active {
  background: var(--bg-elevated);
  border-left: 3px solid var(--brand);
  padding-left: calc(var(--sp-4) - 3px);
}

.notif-item-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: var(--text-base); color: var(--text-primary); font-weight: var(--weight-medium); }
.notif-item-time  { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* ── Swipe-to-delete wrapper (iOS Mail style) ──────────────── */
.notif-swipe-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}
.notif-swipe-delete-bg {
  position: absolute;
  inset: 0;
  background: var(--ios-red);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 24px;
  pointer-events: none;
}
.notif-trash {
  color: #FFFFFF;
  opacity: 0;
  transform: scale(0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Item must be fully opaque so it covers the red swipe-delete bg.
   Compound selectors below outrank the `.notif-item.unread { background: transparent }`
   rule above — without them, unread items would leak red through. */
.notif-swipe-wrap .notif-item,
.notif-swipe-wrap .notif-item.unread,
.notif-swipe-wrap button.notif-item {
  position: relative;
  background: var(--bg-surface);
  z-index: 1;
}

/* ── Task Detail Modal (full-screen on mobile, panel on desktop) */
.task-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(3px);
}
.task-detail-overlay.open { opacity: 1; }

.task-detail-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  width: 100%;
  max-height: 96vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(40px);
  transition: transform 0.25s ease;
  position: relative;
}
.task-detail-overlay.open .task-detail-modal {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .task-detail-overlay { align-items: center; }
  .task-detail-modal {
    max-width: 620px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    transform: translateY(20px) scale(0.97);
  }
  .task-detail-overlay.open .task-detail-modal {
    transform: translateY(0) scale(1);
  }
}

/* Header — contains title on left, close X on right */
.task-detail-header {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.task-detail-header-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.task-detail-header-content {
  flex: 1;
  min-width: 0;
}
.task-detail-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  line-height: var(--line-tight);
  margin-top: var(--sp-2);
}

/* Close button — always visible in header, never scrolls away */
.task-detail-close {
  min-width: 80px;
  height: 48px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-sans);
}
.task-detail-close:hover,
.task-detail-close:active {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* Bottom close strip — large, easy to tap */
.task-detail-close-strip {
  padding: var(--sp-3) var(--sp-4) var(--sp-5);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.task-detail-close-bottom {
  width: 100%;
  min-height: 56px;
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
  border-width: 2px;
}

/* Scrollable body */
.task-detail-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Field rows */
.detail-field {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.detail-field:last-child { border-bottom: none; }
.detail-field-block { flex-direction: column; gap: var(--sp-2); }

.detail-label {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  min-width: 130px;
  flex-shrink: 0;
}
.detail-value {
  font-size: var(--text-md);
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

/* Notes / long text block */
.detail-notes {
  background: var(--bg-elevated);
  border-left: 4px solid var(--border-focus);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: var(--line-normal);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Action strip */
.task-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.task-detail-actions:empty { display: none; }

/* Larger tap targets on mobile */
@media (max-width: 639px) {
  .task-detail-actions {
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
  }
  .task-detail-actions .btn {
    min-height: 52px;
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-base);
    flex: 1 1 calc(50% - var(--sp-1));
  }
  /* Full-width for solo buttons like Delete */
  .task-detail-actions .btn:only-child,
  .task-detail-actions .btn-full {
    flex: 1 1 100%;
  }
}

/* ── Stall Banner ───────────────────────────────────────────── */
.stall-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--urgent-bg);
  border-top: 1px solid var(--urgent-border);
  border-bottom: 1px solid var(--urgent-border);
  padding: 10px 16px;
  font-size: 12px;
  color: var(--urgent);
  font-weight: 600;
}
.stall-banner.stall-acked {
  background: var(--eow-bg);
  border-color: var(--eow-border);
  color: var(--eow);
}

/* ── Activity Feed ──────────────────────────────────────────── */
.detail-feed-section {
  margin-top: var(--sp-4);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
}
.detail-feed-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.detail-feed-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.detail-feed-item:last-of-type { border-bottom: none; }
.feed-icon { font-size: 15px; flex-shrink: 0; padding-top: 1px; }
.feed-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.feed-author {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.feed-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--line-normal);
  word-break: break-word;
}
.feed-ts {
  font-size: 10px;
  color: var(--text-muted);
}

/* ── Parts Requests — stacked list ──────────────────────────── */
.detail-parts-header {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--eod);
  margin: var(--sp-4) 0 var(--sp-2);
}

.parts-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.part-item {
  background: var(--bg-elevated);
  border: 1px solid var(--eod-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.part-item-resolved {
  border-color: var(--green-500);
  opacity: 0.65;
}

/* Top row: identity + status badge */
.part-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.part-item-identity {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  flex: 1;
}

.part-number {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  color: var(--eod);
  white-space: nowrap;
  flex-shrink: 0;
}
.part-desc {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  word-break: break-word;
}

/* Dealer notes row */
.part-dealer {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--line-normal);
  word-break: break-word;
}
.part-dealer-label {
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
}

/* Bottom row: photo + by info + action button */
.part-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.part-item-left {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.part-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: zoom-in;
  display: block;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), opacity var(--transition-fast);
}
.part-thumb:hover { border-color: var(--eow); opacity: 0.85; }

.part-by-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.part-by-name { font-size: var(--text-xs); color: var(--text-secondary); }
.part-by-date { font-size: 10px; color: var(--text-muted); }
.part-by-updated { font-size: 10px; color: var(--eod); }

.part-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.part-status-badge.pending {
  background: var(--eod-bg);
  border-color: var(--eod-border);
  color: var(--eod);
}
.part-status-badge.sourced {
  background: var(--green-100);
  border-color: var(--green-500);
  color: var(--green-300);
}

/* ── Photo Lightbox ─────────────────────────────────────────── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 20);
  background: rgba(0,0,0,0.96);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.15s ease;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  background: rgba(0,0,0,0.6);
  flex-shrink: 0;
  gap: var(--sp-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lightbox-zoom-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.lightbox-zoom-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  min-width: 42px;
  text-align: center;
  font-family: var(--font-mono);
}

.lightbox-right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.lightbox-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  white-space: nowrap;
  line-height: 1;
}
.lightbox-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}
.lightbox-btn.lb-zoom {
  padding: 6px 12px;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}
.lightbox-btn.lb-close {
  padding: 6px 10px;
  color: var(--text-muted);
}
.lightbox-btn.lb-close:hover {
  color: var(--urgent);
  border-color: var(--urgent);
  background: var(--urgent-bg);
}

.lightbox-img-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  padding: var(--sp-4);
  position: relative;
}
.lightbox-img-wrap:active { cursor: grabbing; }

#lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  display: block;
}

/* ── Edit Mode ──────────────────────────────────────────────── */
.task-detail-edit {
  padding: var(--sp-2) 0;
}
.edit-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}
.edit-field label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.edit-field-checkbox { flex-direction: row; align-items: center; gap: var(--sp-2); }
.edit-field-checkbox label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
}
.edit-field input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Inline Modal (Stop Work, Ask Help, Delete, Parts, etc.) ── */
.inline-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: calc(var(--z-modal) + 10);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.inline-modal-overlay.open { opacity: 1; }

.inline-modal-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--sp-5) var(--sp-6);
  padding-top: calc(var(--sp-5) + 10px); /* room for close X */
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.inline-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: var(--weight-bold);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}
.inline-modal-close:hover,
.inline-modal-close:active {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  color: var(--text-primary);
}
@media (min-width: 640px) {
  .inline-modal-overlay { align-items: center; }
  .inline-modal-panel { border-radius: var(--radius-xl); }
}

.inline-modal-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.inline-modal-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}

/* ============================================================
   Parts Needed Page
   ============================================================ */

.parts-page-section {
  margin-bottom: var(--sp-6);
}

.parts-all-clear {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--green-400);
  font-weight: var(--weight-semibold);
  padding: var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-5);
}

/* ── Task group ─────────────────────────────────────────────── */
.parts-task-group {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.parts-task-group-sourced {
  opacity: 0.7;
}

.parts-task-header {
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.parts-task-header:hover { background: var(--bg-hover); }

.parts-task-title-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.parts-priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.parts-task-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  flex: 1;
}

.parts-open-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-shrink: 0;
}

.parts-task-meta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-1);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.parts-status-chip {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Part rows ──────────────────────────────────────────────── */
.parts-items-list {
  display: flex;
  flex-direction: column;
}

.parts-row {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}
.parts-row:last-child { border-bottom: none; }
.parts-row-sourced { background: var(--bg-app); }

.parts-row-top {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.parts-row-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}
.parts-row-thumb:hover { opacity: 0.85; }

.parts-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.parts-row-identity {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.parts-row-desc {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.parts-row-notes {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border-left: 3px solid var(--eow-border);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.parts-notes-label {
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  margin-right: 4px;
}

.parts-row-footer {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.parts-row-by {
  font-size: 11px;
  color: var(--text-muted);
}

.parts-row-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-end;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .parts-row-top { flex-direction: column; }
  .parts-row-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .parts-row-thumb { width: 100%; height: 180px; }
}

/* ── Sourced collapsible section ────────────────────────────── */
.parts-sourced-details { border: none; }
.parts-sourced-details summary { display: block; }

.parts-sourced-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: var(--sp-2) 0;
  margin-bottom: var(--sp-3);
  -webkit-tap-highlight-color: transparent;
  list-style: none;
}
.parts-sourced-summary::-webkit-details-marker { display: none; }

.parts-sourced-chevron {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}
.parts-sourced-details[open] .parts-sourced-chevron {
  transform: rotate(90deg);
}

.parts-sourced-body { padding-top: var(--sp-2); }

/* ── Order Parts modal — per-part rows ───────────────────────── */
.order-modal-part-row {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-base);
}
.order-modal-part-ordered {
  background: var(--bg-elevated);
  border-color: var(--green-500);
  opacity: 0.85;
}

/* ============================================================
   Topbar avatar + Account popover (Phase 2 / Chunk 2 add-on,
   May 22 2026). Mobile-accessible logout + account view for
   every role. See js/account-menu.js.
   ============================================================ */

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  letter-spacing: -0.3px;
  transition: border-color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.topbar-avatar:hover  { border-color: var(--brand); }
.topbar-avatar:active { transform: scale(0.95); }

/* Role-color border ring on the topbar avatar (set by JS via class). */
.topbar-avatar.role-owner   { border-color: var(--role-owner); }
.topbar-avatar.role-manager { border-color: var(--role-manager); }
.topbar-avatar.role-foreman { border-color: var(--role-foreman); }
.topbar-avatar.role-crew    { border-color: var(--role-crew); }

/* Backdrop (transparent click-outside catcher). */
.account-popover-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: var(--z-overlay);
  display: none;
}
.account-popover-overlay.open { display: block; }

/* Desktop / tablet: anchored dropdown under the avatar. */
.account-popover {
  position: absolute;
  top: 56px;
  right: 12px;
  width: 300px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  z-index: calc(var(--z-overlay) + 1);
  animation: account-popover-in 0.16s ease-out;
}
@keyframes account-popover-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile (≤480px): full-width bottom sheet so it never falls off-screen. */
@media (max-width: 480px) {
  .account-popover {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    animation: account-popover-up 0.18s ease-out;
  }
  @keyframes account-popover-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}

.account-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}
.account-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.account-avatar-large.role-owner   { border-color: var(--role-owner); }
.account-avatar-large.role-manager { border-color: var(--role-manager); }
.account-avatar-large.role-foreman { border-color: var(--role-foreman); }
.account-avatar-large.role-crew    { border-color: var(--role-crew); }

.account-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-align: center;
}
.account-handle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: 0.2px;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.account-row:hover, .account-row:active {
  border-color: var(--brand);
}
.account-row[disabled],
.account-row.account-row-static {
  cursor: default;
  opacity: 1;
}
.account-row[disabled]:hover,
.account-row.account-row-static:hover { border-color: var(--border); }
.account-row-label { color: var(--text-secondary); font-size: 13px; }
.account-row-value { color: var(--text-primary); font-weight: 500; }

.account-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 4px 0;
  line-height: 1.5;
}

/* Change-PIN inline form (managers/owners only). */
.account-changepin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.account-changepin label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
}
.account-changepin input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: 0.4em;
  text-align: center;
  -webkit-text-security: disc;
}
.account-changepin input:focus {
  outline: none;
  border-color: var(--brand);
}
.account-changepin-error {
  min-height: 18px;
  font-size: 12px;
  color: var(--urgent);
  text-align: center;
}

/* ============================================================
   Verifying spinner — used by js/employee-auth.js progress UI
   during bindDeviceToFarm / verifyEmployeePin / bridge calls.
   Slow rural connections: see Chunk 2 stabilization notes.
   ============================================================ */
.ea-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto;
  animation: ea-spin 0.9s linear infinite;
}
@keyframes ea-spin { to { transform: rotate(360deg); } }

/* ============================================================
   Login screen polish — Chunk 3 cutover (May 23 2026)
   Strictly cosmetic, scoped to the new two-button login surface.
   No mutations to .btn-* / .login-card / .login-logo tokens.
   ============================================================ */
.login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 4px;
}
/* Scoped mobile-safe min-tap-target — no global .btn resize. */
.login-actions .btn {
  min-height: 48px;
  letter-spacing: 0.2px;
}
/* Subtle keyboard-focus ring; restrained brand tint. */
.login-actions .btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.login-helper {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 22px;
  padding: 0 8px;
}
