/* ── Variables ─────────────────────────────────────────────── */
:root {
  --orange:       #e67e22;
  --orange-dark:  #ca6f1e;
  --orange-light: #fdf0e0;
  --dark-nav:     #1a1a2e;
  --bg:           #f4f6f9;
  --card-bg:      #ffffff;
  --text:         #212529;
  --border:       #dee2e6;
  --muted:        #6c757d;
  --input-bg:     #ffffff;
}

/* ── Dark mode ─────────────────────────────────────────────── */
html.dark-mode {
  /* Custom variables */
  --bg:        #0f0f1a;
  --card-bg:   #1c1c2e;
  --text:      #e8eaf0;
  --border:    #2e2e45;
  --muted:     #a0a6b8;
  --input-bg:  #252540;
  --dark-nav:  #0a0a14;

  /* Bootstrap 5 CSS variable overrides — these take precedence over
     direct property declarations on BS components */
  --bs-body-color:            #e8eaf0;
  --bs-body-bg:               #0f0f1a;
  --bs-secondary-color:       #a0a6b8;
  --bs-tertiary-color:        #a0a6b8;
  --bs-emphasis-color:        #e8eaf0;
  --bs-border-color:          #2e2e45;
  --bs-border-color-translucent: rgba(255,255,255,.1);
  --bs-card-bg:               #1c1c2e;
  --bs-card-border-color:     #2e2e45;
  --bs-card-cap-bg:           #1c1c2e;
  --bs-modal-bg:              #1c1c2e;
  --bs-modal-color:           #e8eaf0;
  --bs-modal-border-color:    #2e2e45;
  --bs-modal-header-border-color: #2e2e45;
  --bs-modal-footer-border-color: #2e2e45;
  --bs-table-color:           #e8eaf0;
  --bs-table-bg:              transparent;
  --bs-table-border-color:    #2e2e45;
  --bs-table-striped-color:   #e8eaf0;
  --bs-table-striped-bg:      rgba(255,255,255,.025);
  --bs-table-active-color:    #e8eaf0;
  --bs-table-active-bg:       rgba(255,255,255,.05);
  --bs-table-hover-color:     #e8eaf0;
  --bs-table-hover-bg:        rgba(255,255,255,.04);
  --bs-form-valid-color:      #60c080;
  --bs-form-invalid-color:    #f08080;
  --bs-list-group-bg:         #1c1c2e;
  --bs-list-group-color:      #e8eaf0;
  --bs-list-group-border-color: #2e2e45;
  --bs-dropdown-bg:           #1c1c2e;
  --bs-dropdown-color:        #e8eaf0;
  --bs-dropdown-border-color: #2e2e45;
  --bs-dropdown-link-color:   #e8eaf0;
  --bs-dropdown-link-hover-color: #ffffff;
  --bs-dropdown-link-hover-bg: rgba(255,255,255,.07);
  --bs-nav-tabs-border-color: #2e2e45;
  --bs-nav-tabs-link-active-color: #e8eaf0;
  --bs-nav-tabs-link-active-bg: #1c1c2e;
  --bs-nav-tabs-link-active-border-color: #2e2e45;
  --bs-input-bg:              #252540;
  --bs-input-color:           #e8eaf0;
  --bs-input-border-color:    #2e2e45;
  --bs-input-focus-color:     #e8eaf0;
  --bs-input-focus-bg:        #252540;
  --bs-input-placeholder-color: #a0a6b8;
}

/* Base */
html.dark-mode body                          { background-color: var(--bg); color: var(--text); }

/* All text elements */
html.dark-mode h1, html.dark-mode h2,
html.dark-mode h3, html.dark-mode h4,
html.dark-mode h5, html.dark-mode h6        { color: var(--text); }
html.dark-mode p, html.dark-mode span,
html.dark-mode li, html.dark-mode td,
html.dark-mode th, html.dark-mode label,
html.dark-mode small, html.dark-mode div    { color: inherit; }

/* Bootstrap text utilities */
html.dark-mode .text-dark                   { color: var(--text) !important; }
html.dark-mode .text-body                   { color: var(--text) !important; }
html.dark-mode .text-body-secondary         { color: var(--muted) !important; }
html.dark-mode .text-secondary              { color: var(--muted) !important; }
html.dark-mode .text-muted                  { color: var(--muted) !important; }

/* Cards */
html.dark-mode .card                        { background: var(--card-bg); border-color: var(--border); color: var(--text); }
html.dark-mode .card-body                   { color: var(--text); }
html.dark-mode .card-header,
html.dark-mode .card-footer                 { background: var(--card-bg) !important; border-color: var(--border) !important; color: var(--text); }

/* Forms */
html.dark-mode .form-control,
html.dark-mode .form-select                 { background: var(--input-bg); color: var(--text); border-color: var(--border); }
html.dark-mode .form-control::placeholder   { color: var(--muted); }
html.dark-mode .form-control:focus,
html.dark-mode .form-select:focus           { background: var(--input-bg); color: var(--text); box-shadow: 0 0 0 .2rem rgba(230,126,34,.25); }
html.dark-mode input[type="file"].form-control::file-selector-button,
html.dark-mode .form-control::file-selector-button {
  background: #2e2e45;
  color: var(--text);
  border-color: var(--border);
  border-right-color: var(--border);
}
html.dark-mode input[type="file"].form-control:hover::file-selector-button,
html.dark-mode .form-control:hover::file-selector-button {
  background: #3a3a55;
}
html.dark-mode .form-label                  { color: var(--text); }
html.dark-mode .form-text                   { color: var(--muted); }
html.dark-mode .form-check-label            { color: var(--text); }
html.dark-mode .input-group-text            { background: #1e1e30; border-color: var(--border); color: var(--muted); }

/* Tables */
html.dark-mode .table                       { color: var(--text); border-color: var(--border); }
html.dark-mode .table th,
html.dark-mode .table td                    { border-color: var(--border); color: var(--text); }
html.dark-mode .table-light {
  --bs-table-color:         #e8eaf0;
  --bs-table-bg:            #1e1e30;
  --bs-table-border-color:  #2e2e45;
  --bs-table-striped-color: #e8eaf0;
  --bs-table-striped-bg:    rgba(255,255,255,.025);
  --bs-table-hover-color:   #e8eaf0;
  --bs-table-hover-bg:      rgba(255,255,255,.04);
  color: #e8eaf0 !important;
  background-color: #1e1e30 !important;
}
html.dark-mode .table-light th,
html.dark-mode .table-light td            { color: #e8eaf0 !important; border-color: #2e2e45 !important; }
html.dark-mode .table-hover tbody tr:hover > * { background: rgba(255,255,255,.04); }
html.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > * { background: rgba(255,255,255,.025); }

/* Buttons */
html.dark-mode .btn-outline-secondary       { color: #c0c4d0; border-color: var(--border); }
html.dark-mode .btn-outline-secondary:hover { background: rgba(255,255,255,.08); color: var(--text); border-color: #6b7280; }
html.dark-mode .btn-outline-primary         { color: #7ab3f0; border-color: #3a6fa8; }
html.dark-mode .btn-outline-primary:hover   { background: rgba(122,179,240,.12); color: #9ac8ff; }
html.dark-mode .btn-outline-danger          { color: #f08080; border-color: #6b2020; }
html.dark-mode .btn-outline-danger:hover    { background: rgba(220,38,38,.15); color: #ffaaaa; }
html.dark-mode .btn-outline-warning         { color: #f0c040; border-color: #6b4a00; }
html.dark-mode .btn-outline-success         { color: #60c080; border-color: #1a5a30; }
html.dark-mode .btn-light                   { background: #2e2e45; border-color: var(--border); color: var(--text); }
html.dark-mode .btn-secondary              { background: #3a3a55; border-color: var(--border); color: var(--text); }

/* Nav & dropdowns */
html.dark-mode .dropdown-menu              { background: var(--card-bg); border-color: var(--border); }
html.dark-mode .dropdown-item              { color: var(--text); }
html.dark-mode .dropdown-item:hover        { background: rgba(255,255,255,.07); color: var(--text); }
html.dark-mode .dropdown-header            { color: var(--muted); }
html.dark-mode .dropdown-divider           { border-color: var(--border); }
html.dark-mode .nav-tabs                   { border-color: var(--border); }
html.dark-mode .nav-tabs .nav-link         { color: var(--muted); }
html.dark-mode .nav-tabs .nav-link:hover   { color: var(--text); border-color: var(--border); }
html.dark-mode .nav-tabs .nav-link.active  { background: var(--card-bg); border-color: var(--border) var(--border) var(--card-bg); color: var(--text); }

/* Modals */
html.dark-mode .modal-content              { background: var(--card-bg); color: var(--text); }
html.dark-mode .modal-header,
html.dark-mode .modal-footer               { border-color: var(--border); }
html.dark-mode .modal-title                { color: var(--text); }
html.dark-mode .btn-close                  { filter: invert(1) grayscale(1); }

/* Lists */
html.dark-mode .list-group-item            { background: var(--card-bg); border-color: var(--border); color: var(--text); }
html.dark-mode .list-group-item-action:hover { background: rgba(255,255,255,.05); color: var(--text); }

/* Badges */
html.dark-mode .badge.bg-light             { background: #2e2e45 !important; color: var(--text) !important; }
html.dark-mode .badge.bg-secondary         { background: #3a3a55 !important; color: #c0c4d0 !important; }
html.dark-mode .badge.text-dark            { color: var(--text) !important; }
html.dark-mode .bg-secondary-soft          { background: #1e2030 !important; color: var(--muted) !important; }

/* Borders & backgrounds */
html.dark-mode .border,
html.dark-mode .border-bottom,
html.dark-mode .border-top,
html.dark-mode .border-end,
html.dark-mode .border-start               { border-color: var(--border) !important; }
html.dark-mode .bg-white                   { background: var(--card-bg) !important; }
html.dark-mode .bg-light                   { background: #1e1e30 !important; color: var(--text); }
html.dark-mode .bg-secondary-soft          { background: #1e1e30 !important; }

/* Alerts */
html.dark-mode .alert-info                 { background: #0d2035; border-color: #1a3a5a; color: #7ec8e3; }
html.dark-mode .alert-warning              { background: #271c00; border-color: #4a3500; color: #f0c040; }
html.dark-mode .alert-danger               { background: #2a0a0a; border-color: #4a1010; color: #f08080; }
html.dark-mode .alert-success              { background: #06200f; border-color: #0e3d1e; color: #60c080; }
html.dark-mode .alert-secondary            { background: #1e1e30; border-color: var(--border); color: var(--text); }

/* Misc */
html.dark-mode hr                          { border-color: var(--border); }
html.dark-mode code                        { background: #1e1e30; color: #e67e22; }
html.dark-mode .pricing-card               { background: var(--card-bg); border-color: var(--border); color: var(--text); }
html.dark-mode .tool-card                  { border-color: var(--border); }
html.dark-mode .tool-card-label            { color: var(--text); }
html.dark-mode .stat-label                 { color: var(--muted) !important; }
html.dark-mode .plan-summary-box           { background: #1e1e30; border-color: var(--border); color: var(--text); }
html.dark-mode details summary             { color: var(--text); }
html.dark-mode .offline-banner             { background: #2a1800; color: #f0c040; }

/* Calendar */

/* ── Base ──────────────────────────────────────────────────── */
body {
  background-color: var(--bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Navbar ────────────────────────────────────────────────── */
.bg-dark-custom { background-color: var(--dark-nav) !important; }

.text-orange      { color: var(--orange) !important; }
.bg-orange        { background-color: var(--orange) !important; }
.bg-orange-subtle { background-color: rgba(230,126,34,.07) !important; }
.border-orange    { border-color: var(--orange) !important; }
.bg-purple        { background-color: #7c3aed !important; }

.navbar-brand { font-size: 1.15rem; letter-spacing: -0.3px; }
.text-light-50 { color: rgba(255,255,255,.5) !important; }

/* Navbar: keep all items on one row, icons inline with text */
.bg-dark-custom .navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.4;
}
.bg-dark-custom .navbar-nav .nav-link i {
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1;
  margin-right: 0 !important;
}
.bg-dark-custom .navbar-brand {
  margin-right: 0.5rem;
  font-size: 1.05rem;
}
@media (max-width: 1199px) {
  .bg-dark-custom .nav-company-name { display: none !important; }
  .bg-dark-custom .navbar-nav .nav-link { font-size: 0.78rem; padding-left: 0.35rem; padding-right: 0.35rem; }
}

/* ── Orange button ─────────────────────────────────────────── */
.btn-orange {
  background: linear-gradient(135deg, #ef9142 0%, var(--orange) 55%, var(--orange-dark) 100%);
  border-color: var(--orange-dark);
  color: #fff;
  box-shadow: 0 2px 10px rgba(230,126,34,.28);
  transition: box-shadow .15s, transform .15s, filter .15s;
}
.btn-orange:hover,
.btn-orange:focus {
  background: linear-gradient(135deg, #f39c12 0%, var(--orange-dark) 100%);
  border-color: var(--orange-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230,126,34,.4);
  filter: brightness(1.03);
}
.btn-orange:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(230,126,34,.3); }

/* ── Soft colour helpers ───────────────────────────────────── */
.bg-orange-soft   { background-color: var(--orange-light); }
.bg-primary-soft  { background-color: #e8f0fe; }
.bg-success-soft  { background-color: #e8f8f0; }
.bg-danger-soft   { background-color: #fde8e8; }
.bg-warning-soft  { background-color: #fef6e4; }
.bg-secondary-soft{ background-color: #f0f2f5; }
.text-orange      { color: var(--orange); }

/* ── Auth pages ────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--dark-nav) 0%, #16213e 60%, #0f3460 100%);
}
.auth-card       { width: 100%; max-width: 420px; border-radius: 16px; }
.auth-card-wide  { max-width: 680px; }

.auth-logo {
  width: 64px; height: 64px;
  background: var(--orange-light);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--orange);
}

/* ── Main content area ─────────────────────────────────────── */
.main-content { min-height: calc(100vh - 56px); }

/* Safety nav dropdown — items are reordered per industry via inline
   `order:` on each <li> (see base.html), which needs a flex container.
   Only apply flex once Bootstrap has added `.show` — an inline
   `display:flex` on the <ul> itself would beat Bootstrap's own
   `display:none`/`block` toggle (inline styles win on specificity) and
   the menu would never close. */
.dropdown-menu.safety-menu-ordered.show { display: flex; flex-direction: column; }

/* ── Avatar circle in navbar ───────────────────────────────── */
.avatar-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Stat cards ────────────────────────────────────────────── */
.stat-card { border-radius: 12px; }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-number { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-label  { font-size: .75rem; color: #6c757d; text-transform: uppercase; letter-spacing: .5px; }

/* ── Section card headers ──────────────────────────────────── */
.section-header {
  background-color: var(--dark-nav);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 1.25rem;
  border-radius: 0 !important;
}
.card:first-child > .section-header,
.card > .card-header.section-header:first-child { border-radius: 12px 12px 0 0 !important; }

/* ── Check form table ──────────────────────────────────────── */
.table-check th  { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: #6c757d; }
.table-check td  { vertical-align: middle; padding: .6rem .75rem; }
.table-check .btn-group .btn { font-size: .78rem; }

/* ── Layout density (Compact mode, set via My Preferences) ───
   First pass — covers the busiest, most repeated surfaces
   (tables, cards, section headers). Not yet applied to every
   screen in the app. */
html.density-compact .table-check td,
html.density-compact .table td,
html.density-compact .table th { padding: .35rem .5rem; }
html.density-compact .card-body { padding: .85rem 1rem; }
html.density-compact .section-header { padding: .5rem .9rem; font-size: .82rem; }
html.density-compact .card { margin-bottom: .75rem !important; }

/* ── Required asterisk ─────────────────────────────────────── */
.required-field::after { content: ' *'; color: var(--orange); }

/* ── Signature canvas ──────────────────────────────────────── */
.signature-wrapper {
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  cursor: crosshair;
}
.signature-wrapper canvas { display: block; width: 100%; height: 160px; }

/* ── Photo thumbs ──────────────────────────────────────────── */
.photo-thumb {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.photo-thumb img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photo-name { font-size: .7rem; color: #6c757d; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Detail page ───────────────────────────────────────────── */
.status-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.detail-list { margin: 0; }
.detail-list dt {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6c757d;
  margin-top: .75rem;
}
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: 0; font-weight: 600; }

.photo-grid-img { width: 100%; height: 180px; object-fit: cover; }

/* ── Badge orange ──────────────────────────────────────────── */
.badge.bg-orange { background-color: var(--orange) !important; }

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 576px) {
  .table-check .btn-group .btn { padding: .25rem .3rem; font-size: .7rem; }
  .stat-number { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════ */

.landing-body { background: #fff; }

/* Utility */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.btn-outline-orange {
  border: 2px solid var(--orange);
  color: var(--orange-dark);
  background: transparent;
  transition: background .15s, color .15s, box-shadow .15s;
}
.btn-outline-orange:hover {
  background: linear-gradient(135deg, #ef9142 0%, var(--orange) 55%, var(--orange-dark) 100%);
  border-color: var(--orange-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230,126,34,.35);
}

/* ── Landing Nav ─────────────────────────────────── */
.landing-nav {
  background: rgba(26,26,46,.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s, box-shadow .3s, padding .3s;
  padding-top: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.landing-nav.nav-scrolled {
  background: var(--dark-nav) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
}

/* ── Hero ────────────────────────────────────────── */
.hero-section {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(230,126,34,.12) 0%, transparent 60%),
    linear-gradient(160deg, #0d0d1a 0%, #1a1a2e 40%, #0f2044 100%);
  min-height: 100vh;
  padding-top: 72px;
}
.hero-pill {
  background: rgba(230,126,34,.12);
  border: 1px solid rgba(230,126,34,.3);
  color: #e8a35a;
  border-radius: 20px;
  font-size: .8rem;
  padding: .35rem .9rem;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 0 3px rgba(39,174,96,.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(39,174,96,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(39,174,96,.08); }
}
.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--orange) 0%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.65); line-height: 1.75; max-width: 500px; }
.hero-badges span { color: rgba(255,255,255,.7); font-size: .85rem; }
.btn-glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── Hero mockup wrapper ─────────────────────────── */
.hero-mockup-wrap { position: relative; padding: 2rem 1rem; }
.shadow-2xl { box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05); }
.mockup-badge {
  position: absolute;
  background: #fff;
  border-radius: 10px;
  padding: .5rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  white-space: nowrap;
}
.mockup-badge-1 { bottom: 2rem; left: -1rem; }
.mockup-badge-2 { top: 3rem;    right: -1rem; }
.mockup-date    { font-size: .68rem; color: #aaa; }
.mockup-field-box { background: #f8f9fa; border-radius: 6px; padding: 5px 8px; }
.mockup-field-label { font-size: .58rem; text-transform: uppercase; letter-spacing: .8px; color: #aaa; }
.mockup-field-val   { font-size: .78rem; font-weight: 700; color: #1a1a2e; }
.mockup-photos-row  { display: flex; gap: 6px; margin: 8px 0; }
.mockup-photo       { width: 50px; height: 38px; background: #f0f0f0; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .85rem; color: #bbb; }
.mockup-photo-add   { border: 1.5px dashed #ccc; background: #fafafa; }
.mockup-sig-row     { margin: 4px 0 8px; }
.mockup-sig-label   { font-size: .6rem; text-transform: uppercase; letter-spacing: .8px; color: #aaa; margin-bottom: 3px; }
.mockup-sig         { border: 1.5px dashed #ddd; border-radius: 6px; height: 32px; display: flex; align-items: center; padding: 0 10px; background: #fafafa; }
.mockup-submit-btn  { background: var(--orange); color: #fff; text-align: center; border-radius: 7px; padding: 7px; font-size: .8rem; font-weight: 700; margin-top: 8px; }

/* App mockup */
.app-mockup {
  width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  overflow: hidden;
}
.mockup-bar {
  background: #e8e8e8;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.mockup-url { margin-left: 10px; font-size: .7rem; color: #888; background: #fff; border-radius: 4px; padding: 2px 8px; }
.mockup-body { padding: 16px; }
.mockup-header-bar { font-size: .85rem; margin-bottom: 10px; }
.mockup-section-label { font-size: .6rem; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 4px; margin-top: 8px; }
.mockup-field { display: flex; justify-content: space-between; font-size: .78rem; padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.mockup-label { color: #888; }
.mockup-value { font-weight: 600; color: #1a1a2e; }
.mockup-check-row { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; padding: 5px 0; border-bottom: 1px solid #f5f5f5; }
.mockup-pass     { background: #e8f8f0; color: #27ae60; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.mockup-advisory { background: #fef6e4; color: #e67e22; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.mockup-photos { display: flex; gap: 6px; margin-top: 6px; }
.mockup-photo-box { width: 52px; height: 40px; background: #f0f0f0; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .9rem; color: #bbb; }
.mockup-photo-add { border: 1.5px dashed #ccc; background: #fafafa; }
.mockup-sig-area { margin-top: 10px; }
.mockup-sig-label { font-size: .6rem; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 4px; }
.mockup-sig-box { border: 1.5px dashed #ddd; border-radius: 6px; height: 36px; display: flex; align-items: center; padding: 0 10px; background: #fafafa; }
.mockup-submit { margin-top: 12px; background: var(--orange); color: #fff; text-align: center; border-radius: 8px; padding: 8px; font-size: .82rem; font-weight: 700; }

/* ── Stats bar ────────────────────────────────────── */
.stats-bar { background: #fff; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.stat-cell { padding: 1.5rem; border-right: 1px solid #f0f0f0; }
.stat-cell:last-child { border-right: none; }
.stat-big { font-size: 2.2rem; font-weight: 900; color: var(--dark-nav); line-height: 1; }
.stat-lbl { font-size: .73rem; text-transform: uppercase; letter-spacing: .6px; color: #6c757d; margin-top: 4px; }

/* ── Section helpers ─────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--dark-nav); margin-bottom: .5rem; }
.section-sub   { color: #6c757d; font-size: 1.05rem; max-width: 520px; margin: 0 auto; }
/* Eyebrow pill on a dark section (navy hero banners) — swaps the light-peach
   pill for a translucent one that reads on navy instead of clashing with it. */
.section-eyebrow--dark { background: rgba(230,126,34,.15); color: #f0a860; }

/* ── Problem section ──────────────────────────────── */
.problem-section { background: #f8f9fa; }
.problem-card { padding: 2rem; border-radius: 14px; background: #fff; border: 1px solid #eee; }
.problem-icon { font-size: 2.5rem; color: #dee2e6; margin-bottom: .5rem; }

/* ── Features ─────────────────────────────────────── */
.features-section { background: #fff; }
.feat-card {
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid #f0f0f0;
  transition: transform .2s, box-shadow .2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.feat-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.feat-icon--orange { background: var(--orange-light); color: var(--orange); }
.feat-icon--blue   { background: #e8f0fe; color: #4285f4; }
.feat-icon--green  { background: #e8f8f0; color: #27ae60; }
.feat-icon--red    { background: #fde8e8; color: #e74c3c; }
.feat-icon--purple { background: #f3e8fd; color: #9b59b6; }
.feat-icon--amber  { background: #fff8e1; color: #f39c12; }

/* ── Scroll reveal ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ── Industries ───────────────────────────────────── */
.industries-section { background: #f8f9fa; }
.industry-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1.5rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.industry-card:hover { border-color: var(--orange); box-shadow: 0 4px 16px rgba(230,126,34,.1); }
.industry-icon { font-size: 2rem; color: var(--dark-nav); display: block; margin-bottom: .5rem; }
.industry-label { font-size: .82rem; font-weight: 600; color: #444; }

/* ── Industries: tappable + reveal panel ──────────── */
.industry-card { cursor: pointer; background: transparent; width: 100%; }
.industry-card .industry-desc { font-size: .72rem; color: #999; margin-top: .15rem; line-height: 1.3; }
.industry-card.active {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 4px 16px rgba(230,126,34,.15);
}
.industry-card.active .industry-icon,
.industry-card.active .industry-label { color: var(--orange); }
.industry-panel {
  display: none;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 2rem;
  margin-top: 1.75rem;
  animation: industryFadeIn .35s ease;
}
.industry-panel.show { display: block; }
@keyframes industryFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.industry-panel-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; color: var(--orange); text-transform: uppercase; }
.industry-panel-headline { font-size: 1.3rem; font-weight: 800; color: var(--dark-nav); margin: .35rem 0 1.5rem; }
.industry-feat {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem; border-radius: 12px; background: #f8f9fa; height: 100%;
}
.industry-feat-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: var(--orange-light); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.industry-feat-title { font-weight: 700; font-size: .88rem; margin-bottom: .2rem; color: var(--dark-nav); }
.industry-feat-desc { font-size: .78rem; color: #888; line-height: 1.4; margin: 0; }

/* ── Live demo section ────────────────────────────── */
.demo-section { background: #0e0e1f; position: relative; overflow: hidden; }
.demo-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(230,126,34,.15); color: var(--orange);
  border: 1px solid rgba(230,126,34,.35);
  font-size: .72rem; font-weight: 800; letter-spacing: 1px;
  padding: .3rem .8rem; border-radius: 30px; text-transform: uppercase;
}
.demo-section .section-title, .demo-section .section-eyebrow { color: #fff; }
.demo-section .section-sub { color: rgba(255,255,255,.55); }
.demo-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 2rem 0; }
.demo-tab {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 600;
  padding: .55rem 1.1rem; border-radius: 30px; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.demo-tab:hover { border-color: rgba(230,126,34,.5); color: #fff; }
.demo-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.demo-panel-wrap {
  background: #fff; border-radius: 18px; padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  max-width: 920px; margin: 0 auto;
}
.demo-panel { display: none; }
.demo-panel.show { display: block; animation: industryFadeIn .3s ease; }
.demo-panel-head { margin-bottom: 1.25rem; }
.demo-panel-head h5 { font-weight: 800; color: var(--dark-nav); margin-bottom: .2rem; }
.demo-panel-head p { color: #888; font-size: .84rem; margin: 0; }
.demo-cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #f0f0f0;
}
.demo-cta-row span { color: #888; font-size: .84rem; }

/* Pass/Advisory/Fail pill toggle group (Pre-Start demo) */
.paf-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px solid #f5f5f5; font-size: .84rem; }
.paf-group { display: flex; gap: .3rem; }
.paf-btn {
  border: 1px solid #e2e2e2; background: #fff; color: #999; font-size: .68rem; font-weight: 700;
  padding: .25rem .6rem; border-radius: 20px; cursor: pointer;
}
.paf-btn.p.on { background: #e8f8f0; border-color: #27ae60; color: #27ae60; }
.paf-btn.a.on { background: #fef6e4; border-color: var(--orange); color: var(--orange); }
.paf-btn.f.on { background: #fdecea; border-color: #e74c3c; color: #e74c3c; }

/* Fleet table (Fleet demo) */
.demo-fleet-table { width: 100%; font-size: .8rem; border-collapse: collapse; }
.demo-fleet-table th { text-align: left; color: #999; font-size: .68rem; text-transform: uppercase; letter-spacing: .6px; padding: .4rem .5rem; border-bottom: 1px solid #eee; }
.demo-fleet-table td { padding: .55rem .5rem; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.demo-fleet-table tr { cursor: pointer; }
.demo-fleet-table tr.sel { background: var(--orange-light); }
.demo-status { font-size: .68rem; font-weight: 700; padding: .2rem .55rem; border-radius: 20px; }
.demo-status.ok  { background: #e8f8f0; color: #27ae60; }
.demo-status.due { background: #fef6e4; color: var(--orange); }
.demo-status.bad { background: #fdecea; color: #e74c3c; }

/* Quote builder (Quotes demo) */
.demo-quote-row { display: grid; grid-template-columns: 1fr 60px 90px 90px; gap: .5rem; align-items: center; padding: .4rem 0; font-size: .82rem; border-bottom: 1px solid #f5f5f5; }
.demo-quote-row.head { color: #999; font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.demo-quote-total-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .84rem; }
.demo-quote-total-row.grand { font-weight: 800; font-size: 1rem; color: var(--dark-nav); border-top: 1px solid #eee; margin-top: .4rem; padding-top: .6rem; }

/* Client portal chat (Client Portal demo) */
.demo-feed-item { display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid #f5f5f5; font-size: .8rem; }
.demo-feed-time { font-size: .68rem; color: #aaa; white-space: nowrap; }
.demo-chat-bubble { max-width: 80%; padding: .55rem .8rem; border-radius: 14px; font-size: .82rem; margin-bottom: .5rem; }
.demo-chat-bubble.them { background: #f0f0f0; color: #333; border-bottom-left-radius: 4px; }
.demo-chat-bubble.us   { background: var(--orange); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.demo-chat-time { font-size: .65rem; color: #aaa; margin-top: .15rem; }

/* Analytics mini bars (Analytics demo) */
.demo-bar-row { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; font-size: .78rem; }
.demo-bar-lbl { width: 92px; flex-shrink: 0; color: #888; }
.demo-bar-track { flex: 1; height: 10px; background: #f0f0f0; border-radius: 6px; overflow: hidden; }
.demo-bar-fill { height: 100%; background: linear-gradient(90deg, var(--orange), #f39c12); border-radius: 6px; }
.demo-bar-val { width: 34px; text-align: right; font-weight: 700; color: var(--dark-nav); }
.demo-bar-row { cursor: pointer; }
.demo-bar-breakdown {
  display: none; margin: -.3rem 0 .8rem 92px; padding: .6rem .8rem;
  background: #f8f9fa; border-radius: 8px; font-size: .74rem; color: #888;
}
.demo-bar-breakdown.show { display: block; }
.demo-bar-breakdown div { display: flex; justify-content: space-between; padding: .1rem 0; }

/* ── Editable quote builder ───────────────────────────── */
.demo-quote-row.editable { grid-template-columns: 1fr 55px 85px 85px 28px; align-items: center; }
.demo-quote-row.head.editable { grid-template-columns: 1fr 55px 85px 85px 28px; }
.demo-input {
  border: 1px solid #e5e5e5; border-radius: 6px; padding: .3rem .5rem;
  font-size: .8rem; width: 100%; background: #fff; color: #333;
}
.demo-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 2px rgba(230,126,34,.12); }
.demo-input-sm { text-align: right; }
.demo-row-remove {
  border: none; background: none; color: #ccc; cursor: pointer; font-size: .95rem;
  padding: 0; width: 28px; text-align: center;
}
.demo-row-remove:hover { color: #e74c3c; }
.demo-add-row-btn {
  border: 1.5px dashed #ddd; background: #fafafa; color: #999; font-size: .78rem; font-weight: 600;
  border-radius: 8px; padding: .5rem; width: 100%; text-align: center; margin-top: .6rem; cursor: pointer;
}
.demo-add-row-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }

/* ── Inline add-item forms (fleet / maintenance / hazards / certs / toolbox) ── */
.demo-inline-form {
  display: none; background: #f8f9fa; border-radius: 10px; padding: .9rem; margin-top: .6rem;
}
.demo-inline-form.show { display: block; }
.demo-inline-form .row > div { margin-bottom: .5rem; }
.demo-toggle-add-btn {
  border: 1px dashed #ddd; background: #fff; color: var(--orange); font-size: .78rem; font-weight: 700;
  border-radius: 20px; padding: .35rem .9rem; cursor: pointer; margin-top: .75rem;
}
.demo-toggle-add-btn:hover { background: var(--orange-light); }

/* ── Clickable / expandable rows ──────────────────────── */
.demo-clickable-row { cursor: pointer; }
.demo-row-expand {
  display: none; font-size: .76rem; color: #888; background: #f8f9fa; border-radius: 8px;
  padding: .55rem .75rem; margin: -.2rem 0 .5rem;
}
.demo-row-expand.show { display: block; }
.demo-chevron { transition: transform .15s; display: inline-block; }
.demo-chevron.rot { transform: rotate(90deg); }

/* ── Status action buttons ────────────────────────────── */
.demo-mini-btn {
  border: 1px solid #e2e2e2; background: #fff; color: #666; font-size: .68rem; font-weight: 700;
  border-radius: 20px; padding: .18rem .55rem; cursor: pointer; white-space: nowrap;
}
.demo-mini-btn:hover { border-color: var(--orange); color: var(--orange); }
.demo-mini-btn.done { background: #e8f8f0; border-color: #27ae60; color: #27ae60; cursor: default; }

/* ── Stop Work Alert demo ─────────────────────────────── */
.demo-reason-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: .5rem; margin: .75rem 0; }
.demo-reason-opt {
  border: 1.5px solid #eee; border-radius: 10px; padding: .6rem .5rem; text-align: center; cursor: pointer; font-size: .76rem; font-weight: 600; color: #666;
}
.demo-reason-opt i { display: block; font-size: 1.15rem; margin-bottom: .3rem; color: #999; }
.demo-reason-opt.sel { border-color: #e74c3c; background: #fdecea; color: #e74c3c; }
.demo-reason-opt.sel i { color: #e74c3c; }
.demo-alert-preview {
  display: none; margin-top: 1rem; border-radius: 10px; padding: .9rem 1rem;
  background: #fdecea; border: 1px solid #f5c6c2; color: #c0392b; font-size: .84rem;
}
.demo-alert-preview.show { display: block; animation: industryFadeIn .3s ease; }

/* ── Toolbox talks demo ───────────────────────────────── */
.demo-talk-card { border: 1px solid #f0f0f0; border-radius: 10px; padding: .8rem 1rem; margin-bottom: .6rem; }
.demo-ai-notes {
  display: none; background: var(--orange-light); border-radius: 8px; padding: .7rem .9rem; font-size: .78rem; color: #7a4a12; margin-top: .6rem;
}
.demo-ai-notes.show { display: block; }
.demo-ai-notes li { margin-bottom: .2rem; }

/* ── Client portal chat input ─────────────────────────── */
.demo-chat-scroll { max-height: 220px; overflow-y: auto; padding-right: 4px; }
.demo-chat-input-row { display: flex; gap: .5rem; margin-top: .6rem; }
.demo-chat-input-row input { flex: 1; }
.demo-send-btn { background: var(--orange); color: #fff; border: none; border-radius: 8px; width: 38px; flex-shrink: 0; }
.demo-send-btn:hover { background: var(--orange-dark); }

/* ── How it works ─────────────────────────────────── */
.how-section { background: #fff; }
.how-card { padding: 2rem 1.5rem; }
.how-connector {
  position: absolute;
  top: 52px;
  left: calc(12.5% + 36px);
  right: calc(12.5% + 36px);
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, #f39c12 100%);
  z-index: 0;
  opacity: .3;
}
.how-num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-icon-circle {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--orange-light);
  border: 2px solid rgba(230,126,34,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--orange);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Pricing ──────────────────────────────────────── */
.pricing-section { background: #f8f9fa; }
.pricing-card {
  border: 1.5px solid #e9ecef;
  border-radius: 18px;
  padding: 2.25rem 2rem;
  position: relative;
  transition: box-shadow .2s, transform .2s;
  background: #fff;
}
.pricing-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,.1); transform: translateY(-3px); }
.pricing-card--popular {
  border-color: var(--orange);
  box-shadow: 0 12px 40px rgba(230,126,34,.18);
}
.popular-ribbon {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 18px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .3px;
}
.pricing-tier    { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #6c757d; margin-bottom: .5rem; }
.pricing-amount  { font-size: 3.2rem; font-weight: 900; color: var(--dark-nav); line-height: 1; margin-bottom: .25rem; }
.pricing-currency{ font-size: 1.6rem; vertical-align: top; margin-top: .6rem; display: inline-block; font-weight: 700; }
.pricing-freq    { font-size: 1rem; font-weight: 400; color: #6c757d; }
.pricing-feat-list { list-style: none; padding: 0; margin: 0; }
.pricing-feat-list li { padding: .45rem 0; font-size: .9rem; color: #444; border-bottom: 1px solid #f5f5f5; }
.pricing-feat-list li:last-child { border: none; }

/* Signup modal plan summary */
.plan-summary-box { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 10px; padding: .75rem 1rem; }

/* Full plan comparison table */
.compare-table-wrap {
  overflow-x: auto;
  border: 1.5px solid #e9ecef;
  border-radius: 18px;
  background: #fff;
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td {
  padding: .75rem 1.1rem;
  text-align: center;
  font-size: .88rem;
  border-bottom: 1px solid #f0f1f3;
  white-space: nowrap;
}
.compare-table thead th {
  background: var(--dark-nav);
  color: #fff;
  font-weight: 700;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  white-space: normal;
}
.compare-table thead th:first-child { border-top-left-radius: 16px; }
.compare-table thead th:last-child  { border-top-right-radius: 16px; }
.compare-feat-col { text-align: left; color: #444; white-space: normal; min-width: 220px; }
.compare-row-price td { font-size: 1.05rem; padding-top: 1rem; padding-bottom: 1rem; }
.compare-col-popular { background: var(--orange-light); }
.compare-table thead th.compare-col-popular { background: var(--orange); }
.compare-table tbody tr:last-child td { border-bottom: none; }
html.dark-mode .compare-table-wrap { background: var(--card-bg); border-color: var(--border); }
html.dark-mode .compare-table th, html.dark-mode .compare-table td { border-color: var(--border); }
html.dark-mode .compare-feat-col { color: var(--text); }
html.dark-mode .compare-col-popular { background: rgba(230,126,34,.12); }

/* ── Testimonials ─────────────────────────────────── */
.testimonials-section { background: #fff; }
.testimonial-card {
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 2rem;
}
.testimonial-stars { color: var(--orange); font-size: .9rem; letter-spacing: 2px; }
.testimonial-text  { font-style: italic; color: #444; line-height: 1.7; font-size: .95rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--dark-nav);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-section { background: #f8f9fa; }
.faq-accordion .accordion-item { background: #fff; border-radius: 10px !important; margin-bottom: .5rem; overflow: hidden; }
.faq-accordion .accordion-button { background: #fff; color: var(--dark-nav); }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--orange); background: #fff; box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; }

/* ── Final CTA ────────────────────────────────────── */
.final-cta-section { background: var(--dark-nav); }
.final-cta-box {
  background: linear-gradient(135deg, #16213e 0%, #0f2044 100%);
  border: 1px solid rgba(230,126,34,.2);
  border-radius: 24px;
  padding: 4rem 2rem;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer { background: #0d0d1a; }
.footer-heading { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #9aa1ae; text-decoration: none; font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: var(--orange); }
/* Bootstrap's .text-muted (#6c757d) is too low-contrast against the footer's
   near-black background — scope a lighter tone to just this paragraph
   rather than touching .text-muted globally. */
.site-footer p.text-muted { color: #b8bcc8; }
.footer-social {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #aaa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.footer-social:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); }

/* ── Legal pages ──────────────────────────────────── */
.legal-content h5 { margin-top: 2rem; margin-bottom: .75rem; color: var(--dark-nav); font-weight: 700; }
.legal-content p, .legal-content li { color: #555; line-height: 1.8; }

/* ── Payment success page ─────────────────────────── */
.credentials-box {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #2d2d4e;
}
.credentials-title {
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #2d2d4e;
}
.cred-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: .6rem 0;
  border-bottom: 1px solid #2d2d4e;
}
.cred-row:last-child { border: none; padding-bottom: 0; }
.cred-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; color: #888; }
.cred-value-wrap { display: flex; align-items: center; gap: 8px; }
.cred-value { color: #f0f0f0; font-size: .95rem; background: transparent; border: none; flex: 1; overflow-wrap: anywhere; }
.cred-copy {
  background: #2d2d4e;
  border: none;
  color: #aaa;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: .8rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.cred-copy:hover, .cred-copy.copied { background: var(--orange); color: #fff; }

.next-steps { display: flex; flex-direction: column; gap: .75rem; }
.next-step { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; }
.step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 700;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════════════
   OFFLINE / PWA STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Offline top banner ───────────────────────────────────────── */
.offline-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #2c3e50;
  color: #fff;
  font-size: .85rem;
  padding: .55rem 1rem;
  text-align: center;
  z-index: 2000;
  position: sticky;
  top: 0;
}
.offline-banner i { font-size: 1rem; color: #f39c12; flex-shrink: 0; }

/* ── Sync badge (in navbar next to user name) ─────────────────── */
.sync-badge {
  background: #e67e22;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Submit button in offline mode ───────────────────────────── */
.btn-offline {
  background-color: #2c3e50 !important;
  border-color: #2c3e50 !important;
  color: #fff !important;
}

/* ── Offline saved confirmation card ─────────────────────────── */
.offline-saved-card {
  background: #fff;
  border-radius: 1rem;
  border: 2px solid #27ae60;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 540px;
  margin: 3rem auto;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.offline-saved-icon {
  width: 72px;
  height: 72px;
  background: #eafaf1;
  color: #27ae60;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

/* ── Dashboard pending upload banner ─────────────────────────── */
.pending-offline-banner {
  display: flex;
  align-items: center;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: .75rem;
  padding: .85rem 1.25rem;
  gap: 1rem;
  color: #5d4037;
}
.pending-offline-banner i { color: #e67e22; }

/* ── Toast notifications ──────────────────────────────────────── */
.vc-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 340px;
}
.vc-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: #fff;
  padding: .85rem 1.1rem;
  border-radius: .6rem;
  font-size: .875rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.vc-toast--show { opacity: 1; transform: translateY(0); }
.vc-toast button {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.vc-toast button:hover { color: #fff; }

/* ── Mobile: add-to-home-screen hint (only PWA-installable browsers) */
@media (max-width: 600px) {
  .offline-banner { font-size: .78rem; padding: .45rem .75rem; }
}


/* ── Tool-selection cards (signup modal step 2) ──────────── */
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .6rem .4rem;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
  user-select: none;
  min-height: 72px;
}
.tool-card:hover { border-color: var(--orange); }
.tool-card.checked {
  border-color: var(--orange);
  background: rgba(230,126,34,.08);
}
.tool-card-icon {
  font-size: 1.3rem;
  color: var(--orange);
}
.tool-card-label {
  font-size: .72rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

/* ── 2-step signup modal ──────────────────────────────────── */
.signup-steps { margin-bottom: .25rem; }

.step-pill {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #dee2e6;
  color: #6c757d;
  font-size: .78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.step-pill.active { background: var(--orange); color: #fff; }
.step-pill.done   { background: #27ae60; color: #fff; }

.step-connector {
  flex: 1;
  max-width: 40px;
  height: 2px;
  background: #dee2e6;
  border-radius: 2px;
}

/* Account-type picker cards (step 2 of signup) */
.signup-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background .18s;
  text-align: center;
  color: inherit;
}
.signup-type-card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(230,126,34,.12);
}
.signup-type-card.selected {
  border-color: var(--orange);
  background: rgba(230,126,34,.06);
  box-shadow: 0 0 0 3px rgba(230,126,34,.18);
}
.signup-type-icon {
  font-size: 2.2rem;
  color: var(--orange);
}
html.dark-mode .signup-type-card {
  background: var(--card-bg);
  border-color: var(--border);
  color: var(--text);
}
html.dark-mode .signup-type-card:hover,
html.dark-mode .signup-type-card.selected {
  border-color: var(--orange);
  background: rgba(230,126,34,.08);
}


/* ── Floating help button ─────────────────────────────────── */
.help-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(230,126,34,.45);
  cursor: pointer;
  z-index: 1040;
  transition: transform .15s, box-shadow .15s;
}
.help-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(230,126,34,.55); }
.search-fab { right: calc(1.5rem + 48px + 0.6rem); background: var(--navy, #1a2e4a); box-shadow: 0 4px 16px rgba(26,46,74,.35); }
.search-fab:hover { box-shadow: 0 6px 20px rgba(26,46,74,.5); }

.help-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 1044;
}
.help-backdrop.show { display: block; }

.help-offcanvas {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  max-width: 95vw;
  height: 100dvh;
  background: var(--card-bg, #fff);
  border-left: 1px solid var(--border, #dee2e6);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  z-index: 1045;
  display: flex;
  flex-direction: column;
  transition: right .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.help-offcanvas.show { right: 0; }

.help-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border, #dee2e6);
  flex-shrink: 0;
}

.help-offcanvas-body {
  overflow-y: auto;
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.help-section-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted, #6c757d);
  margin-bottom: .5rem;
}

.help-link {
  display: flex;
  align-items: center;
  padding: .45rem .6rem;
  border-radius: 8px;
  font-size: .875rem;
  color: var(--text, #212529);
  text-decoration: none;
  transition: background .12s;
}
.help-link:hover { background: rgba(230,126,34,.08); color: var(--orange); }
.help-link i { color: var(--orange); }

.help-faq-list { display: flex; flex-direction: column; gap: .25rem; }
.help-faq {
  border: 1px solid var(--border, #dee2e6);
  border-radius: 8px;
  overflow: hidden;
}
.help-faq summary {
  padding: .55rem .75rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text, #212529);
}
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after {
  content: '\002B';
  font-size: 1rem;
  color: var(--muted, #6c757d);
  transition: transform .15s;
}
.help-faq[open] summary::after { content: '\2212'; }
.help-faq p {
  margin: 0;
  padding: .5rem .75rem .75rem;
  font-size: .82rem;
  color: var(--muted, #6c757d);
  border-top: 1px solid var(--border, #dee2e6);
}

html.dark-mode .help-offcanvas  { background: var(--card-bg); border-color: var(--border); }
html.dark-mode .help-link       { color: var(--text); }
html.dark-mode .help-faq        { border-color: var(--border); }
html.dark-mode .help-faq summary { color: var(--text); }
html.dark-mode .help-faq p      { border-color: var(--border); color: var(--muted); }

/* ── Onboarding modal ─────────────────────────────────────── */
.ob-step { animation: obFadeIn .2s ease; }
@keyframes obFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.ob-feature-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background: #fafbfc;
}
.ob-feat-icon {
  font-size: 1.4rem;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}
.ob-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ob-install-steps { display: flex; flex-direction: column; gap: .75rem; }
.ob-install-step  { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; }
.ob-install-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e9ecef;
  color: #495057;
  font-weight: 700;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ob-icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e9ecef;
  font-size: .8rem;
  vertical-align: middle;
  margin: 0 2px;
}
.ob-os-btn {
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  border-radius: 8px;
  padding: .35rem .9rem;
  font-size: .82rem;
  transition: all .15s;
}
.ob-os-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.ob-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.ob-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dee2e6;
  transition: background .2s;
}
.ob-dot.active { background: var(--orange); }

/* ── Onboarding "Make it yours" step ─────────────────────────── */
.ob-choice {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .8rem;
  border: 1.5px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ob-choice:has(input:checked) { border-color: var(--orange); background: #fff8f0; }
.ob-choice input[type="radio"] { flex-shrink: 0; margin: 0; }
.ob-preview-box {
  border: 1px dashed #dee2e6;
  border-radius: 10px;
  padding: .75rem;
  background: #fafbfc;
}
.ob-preview-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; color: #6c757d; margin-bottom: .5rem; }
.ob-nav-preview { display: flex; gap: .5rem; flex-wrap: wrap; }
.ob-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy, #1a2e4a);
  transition: opacity .15s, transform .15s;
}
.ob-nav-icon-hidden { opacity: .15; transform: scale(.85); }

/* Dark mode */
html.dark-mode .ob-feature-card { background: #1e1e30; border-color: var(--border); }
html.dark-mode .ob-install-num  { background: #2e2e45; color: var(--text); }
html.dark-mode .ob-icon-inline  { background: #2e2e45; color: var(--text); }
html.dark-mode .ob-os-btn       { background: var(--card-bg); border-color: var(--border); color: var(--text); }
html.dark-mode .ob-os-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
html.dark-mode .ob-dot          { background: var(--border); }
html.dark-mode .ob-choice       { border-color: var(--border); }
html.dark-mode .ob-choice:has(input:checked) { background: rgba(230,126,34,.12); }
html.dark-mode .ob-preview-box  { background: var(--card-bg); border-color: var(--border); }
html.dark-mode .ob-nav-icon     { background: var(--card-bg); border-color: var(--border); color: var(--text); }

/* ── Timesheets ───────────────────────────────────────────── */

/* Pulsing green dot for live clock-in */
.clock-live-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #27ae60;
  animation: clock-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes clock-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(39,174,96,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(39,174,96,0); }
}

/* Status badge colours */
.ts-badge-approved  { background: #e8f8f0; color: #1a7a46; }
.ts-badge-submitted { background: #fdf0e0; color: #a05800; }
.ts-badge-rejected  { background: #fde8e8; color: #a01a1a; }
.ts-badge-draft     { background: #f0f2f5; color: #6c757d; }

/* Week nav bar */
.week-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.week-nav .week-label {
  font-weight: 600;
  font-size: .9rem;
  min-width: 200px;
  text-align: center;
}

/* Hours summary pill */
.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-weight: 700;
  font-size: .95rem;
}

/* Employee total row in admin table */
.ts-total-row td {
  background: #f8f9fa !important;
  font-weight: 600;
}

/* Reject reason callout */
.ts-reject-reason {
  background: #fde8e8;
  border-left: 3px solid #e74c3c;
  border-radius: 6px;
  padding: .4rem .7rem;
  font-size: .82rem;
  color: #a01a1a;
}


/* ── Client Portal ────────────────────────────────────────── */
.portal-pinned {
  border-left: 4px solid var(--orange) !important;
}
.portal-content {
  font-size: .97rem;
  color: #333;
}


/* ── Chat / Messaging ─────────────────────────────────────── */
.chat-window {
  height: 62vh;
  min-height: 320px;
  overflow-y: auto;
  padding: 1.25rem;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.chat-bubble {
  max-width: 75%;
  border-radius: 18px;
  padding: .65rem 1rem;
  position: relative;
  word-break: break-word;
  font-size: .93rem;
}
.chat-bubble.mine {
  background: var(--orange);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-bubble.theirs {
  background: #fff;
  border: 1px solid #dee2e6;
  color: #212529;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-meta {
  font-size: .72rem;
  opacity: .7;
  margin-top: .25rem;
  display: block;
}
.chat-bubble.mine .chat-meta  { text-align: right; color: rgba(255,255,255,.8); }
.chat-bubble.theirs .chat-meta { color: #6c757d; }
.chat-img {
  max-width: 220px;
  max-height: 180px;
  border-radius: 10px;
  display: block;
  margin-bottom: .35rem;
  cursor: pointer;
}
.chat-file-btn {
  font-size: .82rem;
  padding: .3rem .7rem;
  border-radius: 8px;
}
.chat-bubble.mine  .chat-file-btn { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); }
.chat-bubble.theirs .chat-file-btn { background: #f0f2f5; color: #333; border-color: #dee2e6; }
.chat-input-bar {
  border-top: 1px solid #dee2e6;
  background: #fff;
  padding: .75rem 1rem;
  border-radius: 0 0 12px 12px;
}
.chat-thread-header {
  background: #fafafa;
}
.chat-system-msg {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #5d4037;
}
.thread-item {
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: .85rem 1.25rem;
  cursor: pointer;
  transition: background .15s;
}
.thread-item:hover { background: rgba(255,255,255,.06); }
.thread-item:last-child { border-bottom: none; }
.thread-item-active {
  background: rgba(230,126,34,.22) !important;
  border-left: 3px solid var(--orange);
  padding-left: calc(1.25rem - 3px);
}
.thread-unread { font-weight: 700; }

/* ── Chat dark mode ──────────────────────────────────────────── */
html.dark-mode .chat-window               { background: #0d0d1a; }
html.dark-mode .chat-thread-header        { background: var(--card-bg) !important; }
html.dark-mode .chat-bubble.theirs        { background: #252535; border-color: var(--border); color: var(--text); }
html.dark-mode .chat-bubble.theirs .chat-meta { color: var(--muted); }
html.dark-mode .chat-bubble.theirs .chat-file-btn { background: #1e1e30; color: var(--text); border-color: var(--border); }
html.dark-mode .chat-input-bar            { background: var(--card-bg); border-color: var(--border); }
html.dark-mode .chat-system-msg           { background: #2a2310; border-color: #5a4a00; color: #e0c060; }
html.dark-mode .thread-item               { border-color: var(--border); }
html.dark-mode .thread-item:hover         { background: rgba(255,255,255,.05); }

/* ── Fleet Calendar ─────────────────────────────────────────── */
.cal-table       { border-collapse: collapse; table-layout: fixed; }
.cal-th          { text-align: center; font-size: .65rem; font-weight: 700;
                   color: #6c757d; padding: .2rem 0; text-transform: uppercase; }

/* Compact cell used by the smaller dashboard calendar */
.cal-td-sm       { text-align: center; vertical-align: top; padding: .15rem .1rem;
                   border-radius: 4px; height: 38px; font-size: .75rem; cursor: pointer; }
.cal-td-sm:hover { background: #fef3e2; }
.cal-td-sm.cal-today .cal-day-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 700;
}

/* Legacy full-size cell kept for any other uses */
.cal-td          { text-align: center; vertical-align: top; padding: .3rem .2rem;
                   border-radius: 6px; height: 52px; font-size: .82rem; }
.cal-td:hover.cal-has-event { background: #fef3e2; }
.cal-today .cal-day-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 700;
}

.cal-day-num     { display: block; line-height: 1.5; }
.cal-dots        { display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; margin-top: 1px; }
.cal-dot         { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.cal-has-event   { cursor: pointer; }
.cal-event-item  { display: flex; align-items: center; gap: 6px;
                   padding: .3rem .4rem; border-radius: 5px; margin-bottom: 2px; background: #f9fafb; }

/* Add-event colour picker swatches */
.ev-color-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer; padding: 0; flex-shrink: 0;
  transition: border-color .15s, transform .1s;
}
.ev-color-btn:hover   { transform: scale(1.15); }
.ev-color-btn.selected { border-color: #fff; box-shadow: 0 0 0 2px #333; }
html.dark-mode .ev-color-btn.selected { border-color: #1c1c2e; box-shadow: 0 0 0 2px #e8eaf0; }

/* Dark mode — timesheets */
html.dark-mode .hours-pill         { background: rgba(230,126,34,.15); color: var(--orange); }
html.dark-mode .ts-badge-approved  { background: #0e3320; color: #60c080; }
html.dark-mode .ts-badge-submitted { background: #2a1e00; color: #f0c040; }
html.dark-mode .ts-badge-rejected  { background: #2a0a0a; color: #f08080; }
html.dark-mode .ts-badge-draft     { background: #252535; color: #a0a6b8; }
html.dark-mode .ts-total-row td    { background: #1e1e30 !important; }
html.dark-mode .ts-reject-reason   { color: var(--text); }
html.dark-mode .bg-warning-soft    { background: rgba(240,192,64,.12) !important; }
html.dark-mode .text-warning       { color: #f0c040 !important; }
html.dark-mode .text-success       { color: #60c080 !important; }
html.dark-mode .text-danger        { color: #f08080 !important; }

/* Dark mode overrides for calendar */
html.dark-mode .cal-td-sm:hover      { background: rgba(230,126,34,.1); }
html.dark-mode .cal-td-sm            { color: var(--text); }
html.dark-mode .cal-td:hover.cal-has-event { background: rgba(230,126,34,.12); }
html.dark-mode .cal-event-item       { background: #1e1e30; color: var(--text); }
html.dark-mode .cal-th               { color: var(--muted); }

/* ── Notifications ────────────────────────────────────────────── */
.notif-unread { background: rgba(230,126,34,.07); }
.notif-item:hover { background: rgba(0,0,0,.04); }
.notif-item { transition: background .15s; }
html.dark-mode .notif-unread { background: rgba(230,126,34,.12); }
html.dark-mode .notif-item:hover { background: rgba(255,255,255,.05); }
html.dark-mode #notifDropdown { background: var(--card-bg); border-color: var(--border); }
html.dark-mode #notifDropdown .border-bottom,
html.dark-mode #notifDropdown .border-top { border-color: var(--border) !important; }
html.dark-mode #notifDropdown .bg-light { background: rgba(255,255,255,.05) !important; }
.text-orange { color: var(--orange) !important; }

/* ── Feedback board (Reddit-style feed) ──────────────────────
   A vote column on the left, compact list rows instead of individual
   shadowed cards, thin dividers, hover highlight — a feed you scan, not a
   stack of cards you read one at a time. */
.fb-sort-tabs { display: inline-flex; gap: 2px; background: #f0f1f3; border-radius: 8px; padding: 3px; }
html.dark-mode .fb-sort-tabs { background: var(--input-bg); }
.fb-sort-tab {
  border: none; background: transparent; color: var(--muted, #6c757d);
  font-weight: 600; font-size: .82rem; padding: .35rem .9rem; border-radius: 6px;
  text-decoration: none; display: inline-flex; align-items: center; gap: .35rem;
  transition: background .12s, color .12s;
}
.fb-sort-tab:hover { color: var(--text, #212529); }
.fb-sort-tab.active { background: var(--card-bg, #fff); color: var(--text, #212529); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.fb-feed { border: 1px solid var(--border, #dee2e6); border-radius: 12px; overflow: hidden; background: var(--card-bg, #fff); }
.fb-row { display: flex; gap: .85rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border, #eef0f2); transition: background .1s; }
.fb-row:last-child { border-bottom: none; }
.fb-row:hover { background: rgba(0,0,0,.015); }
html.dark-mode .fb-row:hover { background: rgba(255,255,255,.02); }

/* Vote column — up-arrow, count, greyed-out down-arrow (upvote-only, but
   shaped like the familiar Reddit arrow stack so it reads instantly). */
.fb-vote { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 40px; padding-top: .1rem; }
.fb-vote-btn {
  background: none; border: none; padding: 2px; line-height: 1; color: #9aa1ae; cursor: pointer;
  border-radius: 4px; transition: color .12s, background .12s;
}
.fb-vote-btn:hover { background: var(--orange-light); color: var(--orange); }
.fb-vote-btn.voted { color: var(--orange); }
.fb-vote-btn[disabled] { cursor: default; opacity: .35; }
.fb-vote-btn[disabled]:hover { background: none; color: #9aa1ae; }
.fb-vote-count { font-weight: 800; font-size: .95rem; color: var(--text, #1a1a2e); padding: 2px 0; font-variant-numeric: tabular-nums; }
.fb-vote-btn.voted ~ .fb-vote-count, .fb-vote-count.voted { color: var(--orange); }

.fb-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--orange);
  color: #fff; font-weight: 700; font-size: .62rem; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.fb-meta { font-size: .76rem; color: var(--muted, #6c757d); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.fb-title { font-weight: 700; font-size: .96rem; color: var(--text, #1a1a2e); text-decoration: none; }
.fb-title:hover { color: var(--orange); }
.fb-desc { font-size: .85rem; color: var(--muted, #6c757d); }

.fb-action-btn {
  background: none; border: none; color: var(--muted, #6c757d); font-size: .78rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .5rem; border-radius: 6px;
  transition: background .12s, color .12s; text-decoration: none;
}
.fb-action-btn:hover { background: #f0f1f3; color: var(--text, #212529); }
html.dark-mode .fb-action-btn:hover { background: var(--input-bg); }

.fb-comment {
  border-left: 2px solid var(--border, #eef0f2); padding-left: .75rem; margin-left: 2px;
}
