/* Custom properties for theming */
:root {
  --color-primary: #2c3e50;
  --color-accent: #3498db;
  --color-error: #e74c3c;
  --color-bg: #f5f6fa;
  --max-form-width: 360px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* Utility class */
.hidden {
  display: none !important;
}

/* Error section */
#error-section {
  text-align: center;
  padding: 2rem 1rem;
}

#error-message {
  color: var(--color-error);
  font-size: 1.125rem;
}

/* Login section */
#login-section,
#new-password-section,
#verify-email-section {
  width: 100%;
  max-width: var(--max-form-width);
  padding: 1rem;
}

#login-form,
#new-password-form,
#verify-email-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#login-form h1,
#new-password-form h1,
#verify-email-form h1 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  text-align: center;
  color: var(--color-primary);
}

#login-form h1 {
  margin-bottom: 1.5rem;
}

.form-subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 1.5rem;
}

/* Tenant logo */
#tenant-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
}

/* Form groups */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}

.form-group input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Error messages */
.error {
  color: #fff;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  background: var(--color-error);
  padding: 0.625rem 0.75rem;
  border-radius: 4px;
  border-left: 4px solid #c0392b;
}

/* Submit button */
#submit-btn,
#new-password-btn,
#verify-email-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#submit-btn:hover,
#new-password-btn:hover,
#verify-email-btn:hover {
  background: #2980b9;
}

#submit-btn:disabled,
#new-password-btn:disabled,
#verify-email-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

#resend-verify-code-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

#resend-verify-code-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Loading indicator */
#loading-indicator {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #7f8c8d;
}

/* Protected section */
#protected-section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#protected-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: #fff;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#header-logo {
  max-height: 40px;
  width: auto;
}

#protected-section header h1 {
  font-size: 1.25rem;
  margin: 0;
}

/* Header navigation links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 2rem;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

/* User dropdown menu */
.user-menu {
  position: relative;
}

#user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#user-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 160px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 100;
  overflow: hidden;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s;
}

.dropdown-item:hover {
  background: #f0f2f5;
}

/* Account page */
#account-page {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.account-container {
  max-width: 600px;
  margin: 0 auto;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.account-header h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

#account-back-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#account-back-btn:hover {
  background: rgba(52, 152, 219, 0.08);
}

.account-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.account-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

details.account-section summary {
  cursor: pointer;
  list-style: none;
}

details.account-section summary::-webkit-details-marker {
  display: none;
}

details.account-section summary h3 {
  display: inline;
  margin-bottom: 0;
}

details.account-section summary::after {
  content: '▸';
  float: right;
  font-size: 1rem;
  color: #7f8c8d;
  transition: transform 0.2s;
}

details[open].account-section summary::after {
  transform: rotate(90deg);
}

details[open].account-section summary {
  margin-bottom: 1rem;
}

.profile-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.profile-details dt {
  font-weight: 500;
  font-size: 0.875rem;
  color: #7f8c8d;
}

.profile-details dd {
  font-size: 0.875rem;
  color: var(--color-primary);
}

/* Buttons */
.btn-primary {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-danger {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-error);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-secondary {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  background: #ecf0f1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background: #dfe6e9;
}

.account-danger p {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 1rem;
}

#delete-confirm {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

#delete-confirm p {
  margin-bottom: 0.5rem;
}

#delete-confirm-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

#delete-confirm .btn-danger,
#delete-confirm .btn-secondary {
  margin-right: 0.5rem;
}

/* Success message */
.success {
  color: #fff;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  background: #27ae60;
  padding: 0.625rem 0.75rem;
  border-radius: 4px;
  border-left: 4px solid #1e8449;
}

#protected-section main {
  flex: 1;
  padding: 2rem;
}

/* Admin Panel */
#admin-page {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.admin-container {
  max-width: 900px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-header h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

#admin-back-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#admin-back-btn:hover {
  background: rgba(52, 152, 219, 0.08);
}

.admin-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

/* User table */
#user-table {
  width: 100%;
  border-collapse: collapse;
}

#user-table thead {
  background: var(--color-bg);
}

#user-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7f8c8d;
  text-align: left;
  border-bottom: 2px solid #dcdde1;
}

#user-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  border-bottom: 1px solid #ecf0f1;
}

#user-table tbody tr:hover {
  background: #f8f9fa;
}

/* Admin action buttons in table rows */
.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-actions button {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  color: var(--color-accent);
  background: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.admin-actions button:hover {
  background: var(--color-accent);
  color: #fff;
}

.admin-actions .btn-delete {
  border-color: var(--color-error);
  color: var(--color-error);
}

.admin-actions .btn-delete:hover {
  background: var(--color-error);
  color: #fff;
}

/* Modal overlay */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Modal content */
#modal-content {
  position: relative;
  background: #fff;
  border-radius: 8px;
  max-width: 480px;
  width: 90%;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* Modal close button */
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #7f8c8d;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.modal-close:hover {
  color: var(--color-primary);
  background: #ecf0f1;
}

/* Notification toast */
.notification {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: notification-slide-in 0.3s ease, notification-fade-out 0.4s ease 3.6s forwards;
}

.notification-success {
  background: #27ae60;
}

.notification-error {
  background: var(--color-error);
}

@keyframes notification-slide-in {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes notification-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}




/* ======================== */
/* Tabs                     */
/* ======================== */
.admin-tabs,
.shifts-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #dcdde1;
}

.shifts-tabs-spacer {
  flex: 1;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #7f8c8d;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ======================== */
/* Front Page: Shift Cards  */
/* ======================== */
#upcoming-shifts {
  max-width: 900px;
  margin: 0 auto;
}

#upcoming-shifts h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

#upcoming-shifts-loading,
#upcoming-shifts-empty {
  font-size: 0.875rem;
  color: #7f8c8d;
  padding: 1rem 0;
}

#upcoming-shifts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.shift-card {
  background: #fff;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--color-accent);
  transition: box-shadow 0.2s, transform 0.15s;
}

.shift-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.shift-card-clickable {
  cursor: pointer;
}

.shift-card-clickable:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.shift-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.shift-card-date {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 0.25rem;
}

.shift-card-time {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.shift-card-users {
  font-size: 0.8125rem;
  color: #7f8c8d;
  padding-top: 0.5rem;
  border-top: 1px solid #ecf0f1;
}

.shift-card-commission {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.builtin-badge {
  font-size: 0.75rem;
  color: #7f8c8d;
  font-style: italic;
}

/* ======================== */
/* Shifts Management Page   */
/* ======================== */
#shifts-page {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.shifts-container {
  max-width: 900px;
  margin: 0 auto;
}

.shifts-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.shifts-header h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

#shifts-back-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#shifts-back-btn:hover {
  background: rgba(52, 152, 219, 0.08);
}

.shifts-empty {
  font-size: 0.875rem;
  color: #7f8c8d;
  padding: 1.5rem 0;
  text-align: center;
}

/* Shifts table */
.shifts-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shifts-table thead {
  background: var(--color-bg);
}

.shifts-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7f8c8d;
  text-align: left;
  border-bottom: 2px solid #dcdde1;
}

.shifts-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  border-bottom: 1px solid #ecf0f1;
}

.shifts-table tbody tr:hover {
  background: #f8f9fa;
}

.shifts-actions {
  display: flex;
  gap: 0.5rem;
}

.shifts-actions button {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  color: var(--color-accent);
  background: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.shifts-actions button:hover {
  background: var(--color-accent);
  color: #fff;
}

.shifts-actions .btn-delete {
  border-color: var(--color-error);
  color: var(--color-error);
}

.shifts-actions .btn-delete:hover {
  background: var(--color-error);
  color: #fff;
}

/* ======================== */
/* Shift Detail Page        */
/* ======================== */
#shift-detail-page {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.shift-detail-container {
  max-width: 700px;
  margin: 0 auto;
}

.shift-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.shift-detail-header h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

#shift-detail-back-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#shift-detail-back-btn:hover {
  background: rgba(52, 152, 219, 0.08);
}

.shift-detail-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.shift-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #ecf0f1;
}

.shift-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shift-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7f8c8d;
}

.shift-detail-value {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}

.shift-detail-instructions {
  padding: 1.5rem;
}

.shift-detail-instructions h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.shift-detail-instructions p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ======================== */
/* Chore Types Table        */
/* ======================== */
#chore-types-table {
  width: 100%;
  border-collapse: collapse;
}

#chore-types-table thead {
  background: var(--color-bg);
}

#chore-types-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7f8c8d;
  text-align: left;
  border-bottom: 2px solid #dcdde1;
}

#chore-types-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  border-bottom: 1px solid #ecf0f1;
}

#chore-types-table tbody tr:hover {
  background: #f8f9fa;
}

/* ======================== */
/* Commission Detail View   */
/* ======================== */

/* Commissions Table */
#commissions-table {
  width: 100%;
  border-collapse: collapse;
}

#commissions-table thead {
  background: var(--color-bg);
}

#commissions-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7f8c8d;
  text-align: left;
  border-bottom: 2px solid #dcdde1;
}

#commissions-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  border-bottom: 1px solid #ecf0f1;
}

#commissions-table tbody tr:hover {
  background: #f8f9fa;
}

.commission-detail {
  padding: 0;
}

.commission-detail h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.25rem;
}

.commission-detail h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: #7f8c8d;
}

.commission-members-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.commission-members-table thead {
  background: var(--color-bg);
}

.commission-members-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7f8c8d;
  text-align: left;
  border-bottom: 2px solid #dcdde1;
}

.commission-members-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  border-bottom: 1px solid #ecf0f1;
  vertical-align: middle;
}

.commission-members-table tbody tr:hover {
  background: #f8f9fa;
}

.chairperson-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #fff;
  border-radius: 3px;
}

.board-role-select {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  background: #fff;
}

.commission-add-member {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.commission-add-member input {
  flex: 1;
  max-width: 300px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
}

.commission-row-clickable td:first-child,
.commission-row-clickable td:nth-child(2) {
  cursor: pointer;
}

.commission-row-clickable:hover {
  background: #f8f9fa;
}

/* ======================== */
/* Modal Improvements       */
/* ======================== */
.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  flex: 1;
}

/* Form row (side-by-side fields) */
.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

/* Field hints */
.field-hint {
  font-weight: 400;
  font-size: 0.75rem;
  color: #7f8c8d;
}

/* Time inputs (text-based, 24h) */
input[placeholder="HH:MM"] {
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  letter-spacing: 0.05em;
}

/* Form selects (match input styling) */
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237f8c8d' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* User search/autocomplete */
.user-search-container {
  position: relative;
}

.user-search-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.user-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.user-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  background: #fff;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 180px;
  overflow-y: auto;
  z-index: 10;
}

.user-search-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 0.15s;
}

.user-search-item:hover {
  background: #f0f2f5;
}

.user-search-item.active {
  background: #f0f2f5;
}

.user-search-no-results {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #7f8c8d;
}

/* User tags (chips) */
.user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.user-tags:empty {
  margin-bottom: 0;
}

.user-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-primary);
  background: #ecf0f1;
  border-radius: 20px;
  line-height: 1.4;
}

.user-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  font-size: 0.875rem;
  line-height: 1;
  color: #7f8c8d;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.user-tag-remove:hover {
  color: var(--color-error);
  background: rgba(231, 76, 60, 0.1);
}

/* ======================== */
/* Documents Page           */
/* ======================== */
#documents-page {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.documents-container {
  max-width: 900px;
  margin: 0 auto;
}

.documents-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.documents-header h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

#documents-back-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#documents-back-btn:hover {
  background: rgba(52, 152, 219, 0.08);
}

.documents-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.documents-toolbar input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.documents-toolbar input[type="text"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.documents-toolbar button:not(.btn-primary) {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.documents-toolbar button:not(.btn-primary):hover {
  background: var(--color-accent);
  color: #fff;
}

/* Document list items */
.document-list-item {
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  border-left: 4px solid var(--color-accent);
}

.document-list-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.document-list-item:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.document-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

.document-item-commission {
  font-size: 0.75rem;
  font-weight: 500;
  color: #7f8c8d;
  background: #ecf0f1;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.document-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.document-item-score {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
}

.documents-empty {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.875rem;
  padding: 2rem 0;
}

/* Document detail view */
.document-detail-view {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 2rem;
}

.document-back-to-list-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 1.5rem;
}

.document-back-to-list-btn:hover {
  background: rgba(52, 152, 219, 0.08);
}

.document-detail-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.document-detail-commission {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #7f8c8d;
  background: #ecf0f1;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.document-detail-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.document-detail-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #444;
}

.document-detail-body h1,
.document-detail-body h2,
.document-detail-body h3,
.document-detail-body h4 {
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.document-detail-body h2 {
  font-size: 1.25rem;
}

.document-detail-body h3 {
  font-size: 1.1rem;
}

.document-detail-body p {
  margin-bottom: 1rem;
}

.document-detail-body ul,
.document-detail-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.document-detail-body li {
  margin-bottom: 0.375rem;
}

.document-detail-body code {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.85em;
  background: #f0f2f5;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

.document-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0.75rem 0;
}

/* Document authoring form */
.document-form {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 2rem;
}

.document-form h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.document-form .form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Editor toolbar */
.editor-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Document preview panel */
.document-preview {
  min-height: 200px;
  padding: 1rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  background: #fafbfc;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #444;
}

.document-preview h1,
.document-preview h2,
.document-preview h3,
.document-preview h4 {
  color: var(--color-primary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.document-preview p {
  margin-bottom: 0.75rem;
}

.document-preview ul,
.document-preview ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.document-preview li {
  margin-bottom: 0.25rem;
}

.document-preview code {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.85em;
  background: #f0f2f5;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

.document-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0.5rem 0;
}

#document-body-input {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 240px;
}

/* ======================== */
/* Runbooks Page (legacy)   */
/* ======================== */
#runbooks-page {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.runbooks-container {
  max-width: 900px;
  margin: 0 auto;
}

.runbooks-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.runbooks-header h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

#runbooks-back-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#runbooks-back-btn:hover {
  background: rgba(52, 152, 219, 0.08);
}

.runbooks-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.runbooks-toolbar input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.runbooks-toolbar input[type="text"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.runbooks-toolbar select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dcdde1;
  border-radius: 4px;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237f8c8d' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}

.runbooks-toolbar button:not(.btn-primary) {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.runbooks-toolbar button:not(.btn-primary):hover {
  background: var(--color-accent);
  color: #fff;
}

/* Runbook list items */
.runbook-list-item {
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  border-left: 4px solid var(--color-accent);
}

.runbook-list-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.runbook-list-item:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.runbook-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

.runbook-item-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: #7f8c8d;
  background: #ecf0f1;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: lowercase;
}

.runbook-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.runbook-item-score {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
}

.runbooks-empty {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.875rem;
  padding: 2rem 0;
}

/* Runbook detail view */
.runbook-detail-view {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 2rem;
}

.runbook-back-to-list-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 1.5rem;
}

.runbook-back-to-list-btn:hover {
  background: rgba(52, 152, 219, 0.08);
}

.runbook-detail-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.runbook-detail-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #7f8c8d;
  background: #ecf0f1;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.runbook-detail-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.runbook-detail-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #444;
}

.runbook-detail-body h1,
.runbook-detail-body h2,
.runbook-detail-body h3,
.runbook-detail-body h4 {
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.runbook-detail-body h2 {
  font-size: 1.25rem;
}

.runbook-detail-body h3 {
  font-size: 1.1rem;
}

.runbook-detail-body p {
  margin-bottom: 1rem;
}

.runbook-detail-body ul,
.runbook-detail-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.runbook-detail-body li {
  margin-bottom: 0.375rem;
}

.runbook-detail-body code {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.85em;
  background: #f0f2f5;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

/* Runbook authoring form */
.runbook-form {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 2rem;
}

.runbook-form h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.runbook-form .form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

#runbook-body-input {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 240px;
}

/* ============================================ */
/* Responsive / Mobile-Friendly Styles          */
/* ============================================ */

/* --- Tablet (max-width: 768px) --- */
@media (max-width: 768px) {
  #protected-section header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-left {
    flex: 1;
    min-width: 0;
  }

  #protected-section header h1 {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-nav {
    margin-left: 0;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 0.125rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .header-right {
    margin-left: auto;
  }

  #protected-section main {
    padding: 1.25rem;
  }

  #account-page,
  #admin-page,
  #shifts-page,
  #shift-detail-page,
  #documents-page,
  #runbooks-page {
    padding: 1.25rem;
  }

  /* Make tables horizontally scrollable */
  .admin-section,
  .shifts-container,
  .documents-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #user-table,
  .shifts-table,
  #chore-types-table,
  #commissions-table,
  .commission-members-table {
    min-width: 500px;
  }

  .shifts-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .shifts-tabs-spacer {
    display: none;
  }

  .admin-tabs {
    flex-wrap: wrap;
    gap: 0;
  }

  .tab-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .documents-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .documents-toolbar input[type="text"] {
    min-width: unset;
    width: 100%;
  }

  .runbooks-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  #modal-content {
    width: 95%;
    max-width: none;
    padding: 1.5rem;
    margin: 1rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .notification {
    left: 1rem;
    right: 1rem;
  }
}

/* --- Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
  #login-form,
  #new-password-form,
  #verify-email-form {
    padding: 1.25rem;
  }

  #login-form h1,
  #new-password-form h1,
  #verify-email-form h1 {
    font-size: 1.25rem;
  }

  #protected-section header {
    padding: 0.625rem 0.75rem;
  }

  #protected-section header h1 {
    font-size: 1rem;
  }

  .nav-link {
    font-size: 0.8125rem;
    padding: 0.4rem 0.625rem;
  }

  #user-menu-btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
  }

  #protected-section main {
    padding: 0.75rem;
  }

  #account-page,
  #admin-page,
  #shifts-page,
  #shift-detail-page,
  #documents-page,
  #runbooks-page {
    padding: 0.75rem;
  }

  /* Page headers: stack vertically on small screens */
  .account-header,
  .admin-header,
  .shifts-header,
  .shift-detail-header,
  .documents-header,
  .runbooks-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .account-header h2,
  .admin-header h2,
  .shifts-header h2,
  .shift-detail-header h2,
  .documents-header h2,
  .runbooks-header h2 {
    font-size: 1.25rem;
  }

  /* Table cells smaller */
  #user-table th,
  #user-table td,
  .shifts-table th,
  .shifts-table td,
  #chore-types-table th,
  #chore-types-table td,
  #commissions-table th,
  #commissions-table td,
  .commission-members-table th,
  .commission-members-table td {
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .admin-actions,
  .shifts-actions {
    flex-direction: column;
    gap: 0.25rem;
  }

  .admin-actions button,
  .shifts-actions button {
    width: 100%;
    text-align: center;
  }

  .profile-details {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }

  .profile-details dt {
    margin-top: 0.5rem;
  }

  #upcoming-shifts-list {
    grid-template-columns: 1fr;
  }

  .shift-card {
    padding: 1rem;
  }

  .shift-detail-meta {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .shift-detail-instructions {
    padding: 1rem;
  }

  /* Document list items: stack on mobile */
  .document-list-item,
  .runbook-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
  }

  .document-item-meta,
  .runbook-item-meta {
    width: 100%;
    justify-content: flex-start;
  }

  /* Document detail view */
  .document-detail-view,
  .runbook-detail-view {
    padding: 1.25rem;
  }

  .document-detail-title,
  .runbook-detail-title {
    font-size: 1.25rem;
  }

  .document-detail-actions,
  .runbook-detail-actions {
    flex-wrap: wrap;
  }

  /* Document/Runbook form */
  .document-form,
  .runbook-form {
    padding: 1.25rem;
  }

  .document-form .form-actions,
  .runbook-form .form-actions {
    flex-direction: column;
  }

  /* Commission detail */
  .commission-add-member {
    flex-direction: column;
    align-items: stretch;
  }

  .commission-add-member input {
    max-width: none;
  }

  /* Footer */
  .app-footer {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

/* --- Touch target minimum size (44x44px per WCAG) --- */
@media (pointer: coarse) {
  .nav-link,
  .tab-btn,
  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .dropdown-item,
  .admin-actions button,
  .shifts-actions button,
  #account-back-btn,
  #admin-back-btn,
  #shifts-back-btn,
  #shift-detail-back-btn,
  #documents-back-btn,
  #runbooks-back-btn,
  .document-back-to-list-btn,
  .runbook-back-to-list-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .documents-toolbar input[type="text"],
  .runbooks-toolbar input[type="text"],
  .user-search-input,
  #delete-confirm-input {
    min-height: 44px;
    font-size: 1rem;
  }

  .shift-card {
    padding: 1.25rem;
  }

  .document-list-item,
  .runbook-list-item {
    padding: 1rem 1.25rem;
    min-height: 48px;
  }

  .user-search-item {
    padding: 0.75rem;
    min-height: 44px;
  }
}

/* --- Footer --- */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid #e0e0e0;
  background: var(--color-bg);
  margin-top: auto;
}

.app-footer span {
  opacity: 0.8;
}
