@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary:            #1e3a8a;
  --primary-light:      #2563eb;
  --primary-container:  #dbeafe;
  --on-primary:         #ffffff;
  --on-primary-cont:    #1e3a8a;

  --surface:            #ffffff;
  --surface-variant:    #f1f5f9;
  --surface-dim:        #f8fafc;
  --on-surface:         #0f172a;
  --on-surface-variant: #475569;

  --outline:            #e2e8f0;
  --outline-variant:    #cbd5e1;

  --success:            #16a34a;
  --success-container:  #dcfce7;
  --error:              #dc2626;
  --error-container:    #fee2e2;
  --warning:            #d97706;
  --warning-container:  #fef3c7;

  --condition-low:      #ef4444;
  --condition-mid:      #f59e0b;
  --condition-high:     #22c55e;

  --elev-1: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --elev-2: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.05);
  --elev-3: 0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.06);

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  --t: 150ms ease;
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface-dim);
  color: var(--on-surface);
  margin: 0; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body[dir="rtl"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.01em; }

/* ── Splash Screen ─────────────────────────────────────────────────────────── */
#splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); transition: opacity 0.4s ease;
}
#splash-screen img { max-width: 280px; width: 70vw; }
#splash-screen.fade-out { opacity: 0; pointer-events: none; }

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--primary) !important;
  box-shadow: var(--elev-2);
  padding: 0.625rem 1rem;
}
.navbar-brand img { height: 38px; border-radius: 6px; }
.navbar-dark .navbar-brand,
.navbar-dark .nav-link { color: rgba(255,255,255,.95) !important; font-weight: 500; }
.navbar-dark .nav-link {
  padding: 0.45rem 0.75rem;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
.navbar-dark .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.12); }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-1);
  background: var(--surface);
}
.card-header {
  background: var(--primary); color: var(--on-primary);
  border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
  padding: 0.875rem 1.25rem; font-weight: 600;
}
.card-header h4, .card-header h5, .card-header h6 { margin: 0; font-weight: 600; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn { font-weight: 500; border-radius: var(--r-full); transition: all var(--t); }
.btn-primary { background: var(--primary-light); border-color: var(--primary-light); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-outline-primary { border-color: var(--primary-light); color: var(--primary-light); }
.btn-outline-primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.btn-outline-secondary {
  border-color: var(--outline-variant); color: var(--on-surface-variant); background: transparent;
}
.btn-outline-secondary:hover {
  background: var(--surface-variant); border-color: var(--outline-variant); color: var(--on-surface);
}
.btn-outline-danger, .btn-danger, .btn-success { border-radius: var(--r-full); }

/* ── Form controls ─────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border-color: var(--outline-variant); border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-label { font-weight: 500; font-size: 0.875rem; margin-bottom: 0.35rem; }

/* ── Alerts ────────────────────────────────────────────────────────────────── */
.alert {
  border-radius: var(--r-md); border: none;
  font-weight: 500; padding: 0.875rem 1.25rem;
}
.alert-success { background: var(--success-container); color: #14532d; }
.alert-danger   { background: var(--error-container); color: #7f1d1d; }
.alert-info     { background: var(--primary-container); color: var(--on-primary-cont); }
.alert-warning  { background: var(--warning-container); color: #78350f; }

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal-content { border-radius: var(--r-xl); border: none; box-shadow: var(--elev-3); }
.modal-header  { border-bottom: 1px solid var(--outline); padding: 1.25rem 1.5rem; }
.modal-body    { padding: 1.5rem; }
.modal-footer  { border-top: 1px solid var(--outline); padding: 1rem 1.5rem; }
.modal-title   { font-weight: 600; }

/* ── Nav tabs ──────────────────────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 2px solid var(--outline);
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs .nav-link {
  border: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
  border-radius: 0; color: var(--on-surface-variant); font-weight: 500; transition: var(--t);
  white-space: nowrap;
}
.nav-tabs .nav-link:hover { color: var(--primary-light); border-bottom-color: rgba(37,99,235,.35); }
.nav-tabs .nav-link.active { color: var(--primary-light); border-bottom-color: var(--primary-light); background: none; }

/* ── Progress ──────────────────────────────────────────────────────────────── */
.progress { height: 6px; border-radius: var(--r-full); background: var(--surface-variant); }
.progress-bar { background: var(--primary-light); border-radius: var(--r-full); }
.progress-bar.bg-success { background: var(--success) !important; }

/* ── Room cards ────────────────────────────────────────────────────────────── */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.room-card {
  background: var(--surface); border: 1.5px solid var(--outline);
  border-radius: var(--r-lg); padding: 1.25rem;
  transition: all var(--t); position: relative;
  display: flex; flex-direction: column;
}
.room-card:hover { box-shadow: var(--elev-3); border-color: var(--primary-light); transform: translateY(-2px); }
.room-card-link { text-decoration: none; color: var(--on-surface); display: flex; flex-direction: column; flex: 1; }
.room-card-link:hover { color: var(--on-surface); }
.room-card .room-icon  { font-size: 2rem; margin-bottom: 0.625rem; color: var(--primary); line-height: 1; }
.room-card .room-name  { font-weight: 600; font-size: 0.95rem; }
.room-card .room-pct   { font-size: 0.78rem; color: var(--on-surface-variant); margin-top: auto; padding-top: 0.5rem; }
.room-card-delete {
  position: absolute; top: 0.625rem; right: 0.625rem;
  background: none; border: none; color: var(--on-surface-variant);
  border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t); font-size: 0.9rem; opacity: 0;
}
.room-card:hover .room-card-delete { opacity: 1; }
.room-card-delete:hover { background: var(--error-container); color: var(--error); }
body[dir="rtl"] .room-card-delete { right: auto; left: 0.625rem; }

/* ── Add-room dashed card ──────────────────────────────────────────────────── */
.room-card-add {
  background: transparent; border: 2px dashed var(--outline-variant);
  border-radius: var(--r-lg); display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.25rem; cursor: pointer; min-height: 140px;
  transition: all var(--t); color: var(--on-surface-variant);
  font-weight: 500; text-decoration: none;
}
.room-card-add:hover { border-color: var(--primary-light); color: var(--primary-light); background: var(--primary-container); }
.room-card-add .add-icon { font-size: 1.75rem; margin-bottom: 0.4rem; }

/* ── Condition slider ──────────────────────────────────────────────────────── */
.condition-slider-wrap {
  position: relative;
  padding-top: 2.25rem;
  padding-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.condition-slider-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: var(--on-surface);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: left 0.08s ease;
}
.condition-slider-label::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--on-surface);
}
.condition-slider-label.low  { background: var(--condition-low); }
.condition-slider-label.low::after  { border-top-color: var(--condition-low); }
.condition-slider-label.mid  { background: var(--condition-mid); }
.condition-slider-label.mid::after  { border-top-color: var(--condition-mid); }
.condition-slider-label.high { background: var(--condition-high); }
.condition-slider-label.high::after { border-top-color: var(--condition-high); }

.condition-slider {
  -webkit-appearance: none;
  flex: 1;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--outline);
  outline: none;
  cursor: pointer;
  transition: background 0.1s;
}
.condition-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: transform 0.15s, background 0.15s;
}
.condition-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.condition-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
}
.condition-slider.low-track::-webkit-slider-thumb  { background: var(--condition-low); }
.condition-slider.mid-track::-webkit-slider-thumb  { background: var(--condition-mid); }
.condition-slider.high-track::-webkit-slider-thumb { background: var(--condition-high); }
.condition-slider.low-track::-moz-range-thumb  { background: var(--condition-low); }
.condition-slider.mid-track::-moz-range-thumb  { background: var(--condition-mid); }
.condition-slider.high-track::-moz-range-thumb { background: var(--condition-high); }

.condition-clear-btn {
  flex-shrink: 0;
  background: none; border: none;
  color: var(--on-surface-variant);
  font-size: 1rem; cursor: pointer;
  border-radius: 50%; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.condition-clear-btn:hover { background: var(--error-container); color: var(--error); }

/* ── Image thumbnails ──────────────────────────────────────────────────────── */
.thumb-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumb-wrap { position: relative; width: 80px; height: 80px; }
.thumb-wrap img {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: var(--r-sm); cursor: pointer;
  border: 2px solid var(--outline); transition: var(--t);
}
.thumb-wrap img:hover { border-color: var(--primary-light); }
.thumb-delete {
  position: absolute; top: -6px; right: -6px;
  background: var(--error); color: white; border: none; border-radius: 50%;
  width: 22px; height: 22px; font-size: 0.7rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--elev-1);
}
.thumb-wrap.thumb-pending img { border-color: var(--warning); opacity: .85; }
.thumb-pending-badge {
  position: absolute; bottom: 3px; right: 3px;
  background: var(--warning); color: white; border-radius: 50%;
  width: 18px; height: 18px; font-size: 0.6rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── Property rows ─────────────────────────────────────────────────────────── */
.property-row {
  border-bottom: 1px solid var(--outline);
  padding: 1.25rem; position: relative; transition: background var(--t);
}
.property-row:last-child { border-bottom: none; }
.property-row:hover { background: var(--surface-dim); }
.property-name { font-weight: 600; margin-bottom: 0.75rem; }
.property-row-delete {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--on-surface-variant);
  border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t); font-size: 0.9rem; opacity: 0;
}
.property-row:hover .property-row-delete { opacity: 1; }
.property-row-delete:hover { background: var(--error-container); color: var(--error); }
body[dir="rtl"] .property-row-delete { right: auto; left: 1rem; }

/* ── Forms list ────────────────────────────────────────────────────────────── */
.month-header {
  font-size: 0.78rem; font-weight: 700; color: var(--primary-light);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding-bottom: 0.5rem; margin: 1.5rem 0 0.75rem;
}
.form-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--outline);
  transition: background var(--t); cursor: pointer;
}
.form-item:last-child { border-bottom: none; }
.form-item:hover { background: var(--surface-dim); }
.form-info { flex: 1; min-width: 0; }
.form-info .client-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-info .form-address { color: var(--on-surface-variant); font-size: 0.85rem; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-date-chip {
  display: inline-block; background: var(--primary-container);
  color: var(--on-primary-cont); font-size: 0.72rem; font-weight: 600;
  padding: 2px 8px; border-radius: var(--r-full); margin-top: 4px;
}

/* ── Meta info grid ────────────────────────────────────────────────────────── */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
}
.meta-label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--on-surface-variant);
}
.meta-value { font-weight: 600; margin-top: 2px; font-size: 0.95rem; }

/* ── Section header ────────────────────────────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; }
.section-title  { font-size: 1.1rem; font-weight: 700; }

/* ── Settings list rows ────────────────────────────────────────────────────── */
.settings-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--outline);
  transition: background var(--t);
}
.settings-row:last-child { border-bottom: none; }
.settings-row:hover { background: var(--surface-dim); }
.settings-row-info { flex: 1; min-width: 0; }
.settings-row-name { font-weight: 600; font-size: 0.95rem; }
.settings-row-langs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.25rem;
}
.settings-row-langs span {
  font-size: 0.72rem; color: var(--on-surface-variant);
  background: var(--surface-variant); border-radius: var(--r-sm);
  padding: 1px 6px;
}
.settings-row-actions { display: flex; align-items: center; flex-shrink: 0; gap: 0.75rem; }
.settings-toggle { width: 2.6em !important; height: 1.4em !important; cursor: pointer; }

/* ── Empty state ───────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--on-surface-variant); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }

/* ── Room check cards (form_new) ───────────────────────────────────────────── */
.room-check-card {
  border: 1.5px solid var(--outline); border-radius: var(--r-md);
  padding: 0.75rem 1rem; transition: all var(--t);
  background: var(--surface); cursor: pointer; user-select: none;
}
.room-check-card:has(input:checked) { border-color: var(--primary-light); background: var(--primary-container); }
.room-check-card:hover { border-color: var(--outline-variant); box-shadow: var(--elev-1); }
.room-check-card label { cursor: pointer; font-weight: 500; }

/* ── Shared form ───────────────────────────────────────────────────────────── */
.shared-header { text-align: center; padding: 2rem 0; border-bottom: 1px solid var(--outline); margin-bottom: 2rem; }
.shared-header img { max-width: 240px; width: 65vw; }
.shared-room { margin-bottom: 2rem; }
.shared-room-title {
  font-size: 1rem; font-weight: 700; background: var(--primary);
  color: white; padding: 0.6rem 1rem; border-radius: var(--r-md); margin-bottom: 1rem;
}
.condition-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; border-radius: 50%;
  font-weight: 700; color: white; font-size: 0.9rem; background: var(--condition-mid);
}
.condition-badge.low  { background: var(--condition-low); }
.condition-badge.high { background: var(--condition-high); }

/* Shared-form mobile condition chip */
.condition-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 600; color: white;
  background: var(--condition-mid); white-space: nowrap;
}
.condition-chip.low  { background: var(--condition-low); }
.condition-chip.high { background: var(--condition-high); }

.btn-action-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 150px;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
}

.btn-action-circle i {
  font-size: 1.1rem;
}

@media (max-width: 576px) {
  .btn-action-circle {
    min-width: 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }
  .btn-action-circle span { display: none; }
}

body.pdf-export .no-print { display: none !important; }

/* Mobile improvements for shared form */
@media (max-width: 576px) {
  .shared-header { padding: 1.5rem 0; margin-bottom: 1.5rem; }
  .shared-room-title { padding: 0.5rem 0.75rem; font-size: 0.95rem; margin-bottom: 0.75rem; }
  .condition-badge { min-width: 28px; height: 28px; font-size: 0.85rem; }
  .thumb-grid { gap: 0.5rem; }
  .thumb-wrap { width: 100px; height: 100px; }
  .thumb-wrap img { width: 100px; height: 100px; }
  /* Share form button improvements */
  .input-group { width: 100%; }
  .input-group input, .input-group button { font-size: 0.95rem; padding: 0.5rem 0.75rem; }
  .btn-success, .btn-outline-secondary { display: flex; align-items: center; justify-content: center; }
  .toolbar-btn span { margin-left: 0.25rem; }
}

/* ── Login ─────────────────────────────────────────────────────────────────── */
.login-card { max-width: 420px; margin: 5rem auto; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo img { max-width: 200px; width: 65vw; }

/* ── Status indicators (Online/Offline · Synced/Syncing/Out-of-sync) ──────── */

/* Compact dot used on mobile (outside the navbar collapse) */
.status-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: default;
  transition: background var(--t), color var(--t);
  color: rgba(255,255,255,.75);
}
.status-dot[data-status="offline"]    { color: #fca5a5; }
.status-dot[data-status="out-of-sync"]{ color: #fcd34d; }
.status-dot[data-status="syncing"]    { color: #93c5fd; }
.status-dot[data-status="synced"]     { color: rgba(255,255,255,.55); }

/* Full-width indicator used on desktop (inside collapse) */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: default;
  transition: background var(--t), color var(--t);
  color: rgba(255,255,255,.75);
}
.status-indicator[data-status="online"]      { color: rgba(255,255,255,.75); }
.status-indicator[data-status="offline"]     { background: rgba(220,38,38,.35); color: #fecaca; }
.status-indicator[data-status="synced"]      { color: rgba(255,255,255,.5); }
.status-indicator[data-status="syncing"]     { background: rgba(255,255,255,.1); color: #fff; }
.status-indicator[data-status="out-of-sync"] { background: rgba(217,119,6,.4); color: #fcd34d; }

/* Spin animation for the syncing icon */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin { display: inline-block; animation: spin 1s linear infinite; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.text-muted { color: var(--on-surface-variant) !important; }
.min-w-0 { min-width: 0; }
.fw-700 { font-weight: 700; }
.fs-sm { font-size: 0.9rem; }

@media (max-width: 768px) {
  /* Section header wraps on tablet */
  .section-header { flex-wrap: wrap; gap: 0.5rem; }
  /* Form-item: keep info and buttons on same row but tighter */
  .form-item { padding: 0.875rem 1rem; }
  /* Extra right padding so property delete button never covers text */
  .property-row { padding-right: 2.75rem; }
  body[dir="rtl"] .property-row { padding-right: 1.25rem; padding-left: 2.75rem; }
  /* Navbar: tighter spacing */
  .navbar { padding: 0.5rem 0.75rem; }
  /* Card headers: slightly less padding */
  .card-header { padding: 0.75rem 1rem; }
}

@media (max-width: 576px) {
  /* Room card grid */
  .rooms-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
  /* Meta grid: 2 columns */
  .meta-grid  { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  /* Always show delete buttons on touch devices */
  .room-card-delete, .property-row-delete { opacity: 1 !important; }
  /* Compact main padding */
  main.container { padding-left: 0.75rem !important; padding-right: 0.75rem !important;
                   padding-top: 0.875rem !important; padding-bottom: 1.5rem !important; }
  /* Compact card headers */
  .card-header { padding: 0.625rem 0.875rem; }
  /* Smaller room cards */
  .room-card { padding: 0.875rem; min-height: 110px; }
  .room-card .room-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
  .room-card .room-name { font-size: 0.875rem; }
  /* Add-room dashed card */
  .room-card-add { min-height: 110px; padding: 0.875rem; }
  /* Property row: bigger safe zone for delete button */
  .property-row { padding: 0.875rem 3rem 0.875rem 0.875rem; }
  body[dir="rtl"] .property-row { padding: 0.875rem 0.875rem 0.875rem 3rem; }
  /* Condition slider */
  .condition-slider-wrap { gap: 6px; }
  .condition-value { min-width: 34px; height: 34px; font-size: 0.9rem; }
  /* Thumbnails */
  .thumb-wrap, .thumb-wrap img { width: 64px; height: 64px; }
  /* Headings */
  h2 { font-size: 1.25rem; }
  .section-title { font-size: 1rem; }
  /* Form action buttons: wrap and fill width */
  .d-flex.gap-3 { flex-wrap: wrap; }
  .d-flex.gap-3 > .btn { flex: 1 1 120px; }
  /* Form list items: compact */
  .form-item { padding: 0.75rem 0.875rem; }
  /* Login card spacing */
  .login-card { margin-top: 1.5rem; margin-left: 0.5rem; margin-right: 0.5rem; }
  /* Settings tables: smaller font */
  .table { font-size: 0.82rem; }
  .table th, .table td { padding: 0.5rem 0.4rem; }
  /* Room check cards: compact */
  .room-check-card { padding: 0.5rem 0.75rem; }
  /* Status dots — tighter on very small screens */
  .status-dot { width: 24px; height: 24px; font-size: 0.8rem; }
  /* Modals: full-width on small screens */
  .modal-dialog { margin: 0.5rem; }
  .modal-body { padding: 1rem; }
  .modal-footer { padding: 0.75rem 1rem; }
}
