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

:root {
  --bg:           #F4F6F8;
  --surface:      #FFFFFF;
  --surface2:     #F0F4F1;
  --border:       #DDE3E0;

  --primary:      #1B6B3A;
  --primary-dark: #145230;
  --primary-light:#E8F4EE;

  --accent:       #E8640A;
  --accent-dark:  #C5530A;
  --accent-light: #FEF0E6;

  --danger:       #DC2626;
  --success:      #16A34A;
  --warning:      #D97706;

  --text:         #1C2B22;
  --text-muted:   #6B7B72;
  --text-light:   #9CAAA3;

  --radius:       10px;
  --shadow:       0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  background: var(--primary);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; }

.nav-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 36px;
  line-height: 1;
  color: rgba(255,255,255,.75);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0 0.85rem;
  border-radius: 6px;
  border: none;
  background: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.15);
  text-decoration: none;
}

/* ── NAV DROPDOWN (admin group) ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle .caret { font-size: 0.65rem; transition: transform .15s; }
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown:has(a.active) .nav-dropdown-toggle {
  color: #fff;
  background: rgba(255,255,255,.15);
}
.nav-dropdown:hover .nav-dropdown-toggle .caret,
.nav-dropdown:focus-within .nav-dropdown-toggle .caret,
.nav-dropdown.open .nav-dropdown-toggle .caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 170px;
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}

/* ── ACTIONS DROPDOWN (page-header "More" menu) ── */
.actions-dropdown-menu {
  left: auto;
  right: 0;
}
.actions-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}
.actions-dropdown-menu button:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.actions-dropdown-menu button.danger-item { color: var(--danger, #991B1B); }
.actions-dropdown-menu button.danger-item:hover { background: #FEE2E2; }

.nav-user { display: flex; align-items: center; gap: 0.75rem; }
.nav-user img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
}
.nav-user span { font-size: 0.85rem; color: rgba(255,255,255,.85); }

.nav-user .btn-outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
}
.nav-user .btn-outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.6);
  text-decoration: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }

.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; text-decoration: none; color: #fff; }

/* ── STATUS BUTTON FEEDBACK ── */
[data-status] { position: relative; overflow: hidden; }
[data-status].is-current {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  border-color: var(--border);
  color: var(--text-muted);
  background: var(--surface2, #F3F4F6);
}
[data-status].is-busy {
  pointer-events: none;
  opacity: 0.65;
  cursor: default;
}
[data-status].is-busy::after {
  content: "";
  position: absolute;
  top: 50%; right: 0.85rem;
  width: 14px; height: 14px;
  margin-top: -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

[data-status].is-done {
  animation: btn-flash 0.6s ease;
}
@keyframes btn-flash {
  0%   { background: var(--success); color: #fff; border-color: var(--success); }
  100% { background: transparent; }
}

#viewStatus .badge { transition: transform 0.2s ease; }
#viewStatus.status-changed .badge { animation: badge-pop 0.45s ease; }
@keyframes badge-pop {
  0%   { transform: scale(0.6); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-open     { background: #DBEAFE; color: #1D4ED8; }
.badge-progress { background: #FEF3C7; color: #92400E; }
.badge-resolved { background: #D1FAE5; color: #065F46; }

/* ── CLOSED TICKET STATE ── */
.closed-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  color: #065F46;
  font-size: 0.88rem;
  font-weight: 600;
}
.detail-grid.is-closed .card {
  background: var(--surface2);
  opacity: 0.92;
}
/* Closed ticket: hide every control that would change it. The status
   buttons / assign panel / photo-upload live inside #viewMode so the
   existing is-closed toggle covers them; #editBtn lives in the page
   header above #viewMode, so it's targeted via the body-level class. */
.detail-grid.is-closed #statusCard,
.detail-grid.is-closed #assignCard,
.detail-grid.is-closed #addMorePhotos { display: none !important; }
body.ticket-closed #editBtn { display: none !important; }
body.ticket-closed #pinOutageBtn { display: none !important; }

.badge-low      { background: #D1FAE5; color: #065F46; }
.badge-medium   { background: #FEF3C7; color: #92400E; }
.badge-high     { background: #FEE2E2; color: #991B1B; }

.badge-hw       { background: #EDE9FE; color: #5B21B6; }
.badge-sw       { background: #DBEAFE; color: #1D4ED8; }
.badge-network  { background: #D1FAE5; color: #065F46; }
.badge-other    { background: #F3F4F6; color: #374151; }
.badge-default  { background: #F3F4F6; color: #374151; }

/* ── KNOWLEDGEBASE ── */
.kb-search-hero {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}
.kb-search-hero .kb-search-icon { font-size: 1.05rem; color: var(--text-muted); }
.kb-search-hero input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.02rem;
  background: transparent;
  color: var(--text);
}
.kb-search-hero .kb-search-clear {
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}
.kb-search-hero .kb-search-clear:hover { background: var(--surface2); color: var(--text); }

.kb-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.kb-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem;
  position: sticky;
  top: 78px;
}
.kb-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem 0.6rem;
}
.kb-cat-list { display: flex; flex-direction: column; gap: 0.15rem; }
.kb-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.12s ease;
}
.kb-cat-item:hover { background: var(--surface2); }
.kb-cat-item.active { background: var(--primary-light); color: var(--primary-dark); }
.kb-cat-item.active .kb-cat-count { background: var(--primary); color: #fff; }
.kb-cat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-cat-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface2);
  color: var(--text-muted);
  border-radius: 999px;
  min-width: 1.6em;
  text-align: center;
  padding: 0.1rem 0.45rem;
  flex-shrink: 0;
}

.kb-main { min-width: 0; }
.kb-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.kb-results-count { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.kb-pagination {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 1.25rem;
}
.kb-sort {
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.kb-card {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.kb-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-2px); }
.kb-card .kb-number {
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
  letter-spacing: .03em; margin-bottom: 0.35rem;
}
.kb-card .kb-title { font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.kb-card .kb-summary {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.6rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kb-card .kb-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-light);
}
.kb-card .kb-attach-count { display: inline-flex; align-items: center; gap: 0.25rem; }

.attach-list { display: flex; flex-direction: column; gap: 0.5rem; }
.attach-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface2, #F9FAFB);
}
.attach-item .attach-icon { font-size: 1.3rem; }
.attach-item .attach-name { flex: 1; font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-item .attach-size { font-size: 0.75rem; color: var(--text-light); }
.attach-item a.attach-open { font-size: 0.8rem; }

/* ── FORM ── */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input, select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,107,58,.1);
}

textarea { resize: vertical; min-height: 90px; }
select option { background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── LOGIN PAGE ── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(135deg, #1B6B3A 0%, #145230 60%, #0D3D23 100%);
}

.login-box {
  text-align: center;
  max-width: 400px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.login-box .logo { font-size: 3rem; margin-bottom: 0.5rem; }

.login-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 1.25rem;
  display: block;
  object-fit: contain;
}

.login-box h1 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.login-box .login-tagline {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.login-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem;
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
}
.google-btn:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  border-color: #bbb;
}
.google-btn img { width: 20px; }

/* ── PAGE LAYOUT ── */
.page { max-width: 1100px; margin: 0 auto; padding: 2rem; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.4rem; font-weight: 800; color: var(--text); }

/* ── QUEUE SWITCHER (page-header title dropdown) ── */
.queue-switcher { position: relative; }
.queue-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  margin: -0.2rem -0.4rem;
  border-radius: 6px;
  font-family: inherit;
  transition: background .15s;
}
.queue-switcher-toggle:hover,
.queue-switcher.open .queue-switcher-toggle { background: var(--surface2); }
.queue-switcher-toggle .caret {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform .15s;
}
.queue-switcher.open .queue-switcher-toggle .caret { transform: rotate(180deg); }

.queue-switcher-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 240px;
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 150;
}
.queue-switcher.open .queue-switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.queue-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}
.queue-option .hint {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.queue-option:hover { background: var(--primary-light); }
.queue-option.active { background: var(--primary-light); color: var(--primary-dark); }

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--border);
}
.stat-card .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 0.4rem; }
.stat-card .value { font-size: 2rem; font-weight: 800; line-height: 1; }

.stat-card.total { border-top-color: var(--primary); }
.stat-card.total .value { color: var(--primary); }
.stat-card.open  { border-top-color: #3B82F6; }
.stat-card.open  .value { color: #1D4ED8; }
.stat-card.prog  { border-top-color: var(--warning); }
.stat-card.prog  .value { color: var(--warning); }
.stat-card.done  { border-top-color: var(--success); }
.stat-card.done  .value { color: var(--success); }
.stat-card.overdue { border-top-color: var(--danger); }
.stat-card.overdue .value { color: var(--danger); }

.stat-card.myopen { border-top-color: var(--accent, #7C3AED); }
.stat-card.myopen .value { color: var(--accent, #7C3AED); }

.badge-overdue {
  background: rgba(220,38,38,.12);
  color: var(--danger);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.filter-bar input  { max-width: 260px; }
.filter-bar select { max-width: 170px; }

/* ── CALLS TABLE ── */
.table-scroll {
  overflow-x: hidden;
}

.calls-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; table-layout: fixed; }

.calls-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}
.calls-table th:first-child { border-radius: 8px 0 0 0; width: 3.5rem; }
.calls-table th:last-child  { border-radius: 0 8px 0 0; }
.calls-table td:first-child { padding-right: 0.25rem; }

.calls-table th.sortable { cursor: pointer; user-select: none; }
.calls-table th.sortable:hover { color: var(--text); }
.calls-table th.sorted { color: var(--primary); }

.calls-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.calls-table tr:last-child td { border-bottom: none; }
.calls-table tbody tr:hover td {
  background: var(--primary-light);
  cursor: pointer;
}

.caller-name { font-weight: 700; color: var(--text); overflow: hidden; }
.issue-text  { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }

.calls-table td .badge {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 0.75rem; }

/* ── DETAIL GRID ── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.meta-list { list-style: none; }
.meta-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  gap: 1rem;
}
.meta-list li:last-child { border-bottom: none; }
.meta-list .key { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }

.section-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── ADMIN / USERS TABLE ── */
.users-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.users-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
}
.users-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.users-table tr:last-child td { border-bottom: none; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); }

/* ── ASSIGNED TECHS ── */
.tech-tags { display:flex; flex-wrap:wrap; gap:0.4rem; margin-bottom:0.75rem; min-height:24px; }
.tech-tag {
  display:inline-flex; align-items:center; gap:0.35rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(27,107,58,.2);
  border-radius:20px; padding:0.2rem 0.65rem;
  font-size:0.8rem; font-weight:600;
}
.tech-tag button {
  background:none; border:none; color:var(--primary);
  cursor:pointer; font-size:0.85rem; padding:0; line-height:1;
}
.tech-tag button:hover { color: var(--danger); }

/* ── VIEWER PRESENCE ── */
.viewers-bar {
  display: flex; align-items: center; gap: 0.5rem;
}
.viewers-label {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.viewers-stack { display: flex; align-items: center; }
.viewer-avatar {
  position: relative; width: 26px; height: 26px; border-radius: 50%;
  margin-left: -8px; border: 2px solid var(--surface);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--primary);
  cursor: default; transition: transform .15s;
}
.viewer-avatar:first-child { margin-left: 0; }
.viewer-avatar:hover { transform: translateY(-2px); z-index: 1; }
.viewer-avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; }
.viewer-avatar .viewer-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71; border: 2px solid var(--surface);
}
.viewer-avatar.is-you { box-shadow: 0 0 0 2px var(--primary); }

.viewer-tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--surface);
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  padding: 0.25rem 0.55rem; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.viewer-avatar:hover .viewer-tooltip { opacity: 1; }

/* ── MEMBER AUTOCOMPLETE ── */
.autocomplete-wrap { position: relative; }
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  z-index: 50;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
}
.autocomplete-dropdown.open { display: block; }
.ac-item {
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.focused { background: var(--primary-light); }
.ac-item .ac-name  { font-weight: 700; font-size: 0.875rem; color: var(--text); }
.ac-item .ac-email { font-size: 0.78rem; color: var(--text-muted); }
.ac-member-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(27,107,58,.2);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
/* ── SEARCHABLE COMBOBOX (for long category / grouped-select lists) ── */
.combobox { position: relative; }
.combobox-input { cursor: pointer; }
.combobox-input::placeholder { color: var(--text-light); }
.combobox-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  z-index: 50;
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
  display: none;
}
.combobox-list.open { display: block; }
.combobox-group-label {
  padding: 0.4rem 0.9rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}
.combobox-option {
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background .12s;
}
.combobox-option:hover, .combobox-option.active { background: var(--primary-light); color: var(--primary); }
.combobox-empty {
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ac-member-tag button {
  background: none; border: none; color: var(--primary);
  cursor: pointer; font-size: 0.9rem; padding: 0; line-height: 1;
}
.ac-member-tag button:hover { color: var(--danger); }

/* ── NOTES ── */
.note-type-select { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
.note-type-btn {
  padding: 0.35rem 0.85rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.note-type-btn.active { color: var(--primary); border-color: var(--primary); background: var(--surface); }

.notes-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; min-height: 60px; }

.note-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.note-item.work-note     { border-left: 3px solid var(--warning); }
.note-item.customer-note { border-left: 3px solid var(--primary); }

.note-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.35rem; }
.note-author { font-size: 0.82rem; font-weight: 700; color: var(--primary); }
.note-time   { font-size: 0.75rem; color: var(--text-muted); }
.note-text   { font-size: 0.875rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: var(--text); }

.note-delete {
  background: none; border: none; color: var(--text-light);
  cursor: pointer; font-size: 0.8rem; padding: 0 0.25rem; transition: color .15s;
}
.note-delete:hover { color: var(--danger); }

.note-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 1.25rem 0; }

.note-form { display: flex; flex-direction: column; }
.note-form textarea { flex: 1; min-height: 60px; resize: none; }

/* ── HISTORY / AUDIT TRAIL ── */
.history-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.history-item {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-size: 0.85rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border);
}
.history-item:last-child { border-bottom: none; }
.history-icon { flex-shrink: 0; }
.history-text { flex: 1; color: var(--text); }
.history-text strong { color: var(--primary); }
.history-time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* ── PHOTO UPLOAD ── */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--surface2);
}
.photo-upload-area:hover, .photo-upload-area.drag-active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.photo-upload-area input[type="file"] { display: none; }

.photo-previews { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.photo-thumb {
  position: relative; width: 90px; height: 90px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb .remove-photo {
  position: absolute; top: 3px; right: 3px;
  background: rgba(0,0,0,.55); color: #fff;
  border: none; border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 999;
  animation: slideIn .25s ease;
  color: var(--text);
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }

/* ── ADMIN MESSAGE BELL ── */
.msg-bell-wrap {
  position: fixed;
  left: 1.5rem; bottom: 1.5rem;
  z-index: 998;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem;
}
.msg-bell-btn {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.msg-bell-btn:hover { transform: scale(1.06); }
.msg-bell-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}
.msg-bell-panel {
  width: 320px; max-height: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: slideIn .2s ease;
}
.msg-bell-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  font-weight: 700; font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.msg-bell-close {
  border: none; background: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.95rem; line-height: 1;
}
.msg-bell-close:hover { color: var(--text); }
.msg-bell-list { overflow-y: auto; max-height: 360px; }
.msg-bell-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.msg-bell-item:last-child { border-bottom: none; }
.msg-bell-item.unread { background: rgba(79,142,247,.06); }
.msg-bell-text { color: var(--text); margin-bottom: 0.3rem; white-space: pre-wrap; }
.msg-bell-meta { font-size: 0.75rem; color: var(--text-muted); }
.msg-bell-empty { padding: 1.5rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ── DELETE APPROVAL BELL (superadmin only) ── */
.appr-bell-wrap {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 998;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem;
}
.appr-bell-btn {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.appr-bell-btn:hover { transform: scale(1.06); }
.appr-bell-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--danger);
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}
.appr-bell-panel {
  width: 320px; max-height: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: slideIn .2s ease;
}
.appr-bell-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  font-weight: 700; font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.appr-bell-close {
  border: none; background: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.95rem; line-height: 1;
}
.appr-bell-close:hover { color: var(--text); }
.appr-bell-list { overflow-y: auto; max-height: 360px; }
.appr-bell-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.appr-bell-item:last-child { border-bottom: none; }
.appr-bell-text { color: var(--text); margin-bottom: 0.3rem; }
.appr-bell-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.appr-bell-actions { display: flex; gap: 0.5rem; }
.appr-bell-empty { padding: 1.5rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

@keyframes slideIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── TABS (admin config) ── */
.tabs { display:flex; gap:0.25rem; margin-bottom:1.5rem; border-bottom: 2px solid var(--border); }
.tab-btn {
  padding:0.55rem 1.2rem; background:none; border:none;
  color:var(--text-muted); cursor:pointer; font-size:0.9rem;
  font-weight:700; border-bottom:2px solid transparent;
  margin-bottom:-2px; transition:color .15s;
}
.tab-btn.active { color:var(--primary); border-bottom-color:var(--primary); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* ── NAV BURGER (mobile menu toggle) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .stat-card { padding: 0.65rem 0.5rem; }
  .stat-card .label { font-size: 0.62rem; margin-bottom: 0.2rem; }
  .stat-card .value { font-size: 1.3rem; }
  .kb-layout { grid-template-columns: 1fr; }
  .kb-sidebar { position: static; }
  .kb-cat-list { flex-direction: row; flex-wrap: wrap; }
  .kb-cat-item { flex: 0 0 auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; flex-wrap: wrap; height: auto; min-height: 62px; }
  .page { padding: 1rem; }

  .nav-burger { display: flex; }
  .nav-links, .nav-user {
    display: none;
    width: 100%;
  }
  nav.nav-open .nav-links,
  nav.nav-open .nav-user {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 0;
  }
  nav.nav-open .nav-user { border-top: 1px solid rgba(255,255,255,.15); padding-top: 0.75rem; }
  .nav-links a, .nav-dropdown-toggle { width: 100%; justify-content: flex-start; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    margin-top: 0.2rem;
    box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    width: 100%;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-user { justify-content: flex-start; flex-wrap: wrap; }

  .page-header { flex-wrap: wrap; gap: 0.75rem; }
  .filter-bar input, .filter-bar select { max-width: none; flex: 1 1 140px; }

  .table-scroll { overflow-x: auto; }
  .calls-table { table-layout: auto; min-width: 640px; }

  .msg-bell-panel { width: min(320px, calc(100vw - 2rem)); }
  .msg-bell-wrap { left: 1rem; bottom: 1rem; }

  .appr-bell-panel { width: min(320px, calc(100vw - 2rem)); }
  .appr-bell-wrap { right: 1rem; bottom: 1rem; }
}

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

/* ── ACCESSIBILITY: DARK MODE ── */
html[data-theme="dark"] {
  --bg:            #15191C;
  --surface:       #1E2428;
  --surface2:      #262E32;
  --border:        #38423F;

  --primary:       #3FA86A;
  --primary-dark:  #2E8351;
  --primary-light: #1B2C22;

  --accent:        #FF8A3D;
  --accent-dark:   #E6701F;
  --accent-light:  #332215;

  --text:          #ECF1EE;
  --text-muted:    #A6B3AC;
  --text-light:    #7C8A83;

  --shadow:    0 1px 4px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.35);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
}

/* ── ACCESSIBILITY: HIGH CONTRAST ── */
html[data-contrast="high"] {
  --border: #000;
  --text-muted: var(--text);
  --shadow: none;
  --shadow-sm: none;
}
html[data-contrast="high"]:not([data-theme="dark"]) {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface2: #FFFFFF;
  --text: #000000;
}
html[data-contrast="high"][data-theme="dark"] {
  --bg: #000000;
  --surface: #000000;
  --surface2: #0A0A0A;
  --text: #FFFFFF;
  --border: #FFFFFF;
}
html[data-contrast="high"] .card,
html[data-contrast="high"] .btn,
html[data-contrast="high"] input,
html[data-contrast="high"] select,
html[data-contrast="high"] textarea,
html[data-contrast="high"] .stat-card,
html[data-contrast="high"] .badge { border-width: 2px !important; }
html[data-contrast="high"] a,
html[data-contrast="high"] .btn,
html[data-contrast="high"] [data-status],
html[data-contrast="high"] .stat-card { outline-offset: 2px; }
html[data-contrast="high"] *:focus-visible { outline: 3px solid #2563EB !important; }

/* ── PINNED OUTAGE BANNER(S) ── */
.outage-banner-wrap {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.outage-banner-wrap:has(.outage-banner) {
  margin: 0.85rem 1.25rem 0;
}
.outage-banner {
  display: flex; align-items: center; gap: 0.75rem;
  background: #FEF2F2; border: 1px solid #FECACA; border-left: 4px solid #EF4444;
  color: #991B1B;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.outage-banner-icon { font-size: 1.05rem; flex-shrink: 0; }
.outage-banner-text { flex: 1; min-width: 160px; }
.outage-banner-link {
  color: #991B1B; text-decoration: underline; font-weight: 600; white-space: nowrap;
}
.outage-banner-link:hover { opacity: 0.75; }

/* ── ACCESSIBILITY: FLOATING BUTTON + PANEL ── */
.a11y-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.a11y-fab:hover { transform: scale(1.08); }

.a11y-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 501; display: none;
  align-items: flex-end; justify-content: flex-end;
  padding: 3.5rem;
}
.a11y-overlay.open { display: flex; }

.a11y-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-width: 320px; padding: 1.25rem;
  color: var(--text);
}
.a11y-panel h3 { font-size: 1rem; margin-bottom: 1rem; }
.a11y-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; font-size: 0.88rem; gap: 0.75rem;
}
.a11y-row:last-child { margin-bottom: 0; }

.a11y-switch {
  position: relative; width: 42px; height: 24px; flex-shrink: 0;
}
.a11y-switch input { opacity: 0; width: 0; height: 0; }
.a11y-switch span {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 24px; cursor: pointer; transition: background .15s;
}
.a11y-switch span::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .15s;
}
.a11y-switch input:checked + span { background: var(--primary); }
.a11y-switch input:checked + span::before { transform: translateX(18px); }

.a11y-fontctl {
  display: flex; align-items: center; gap: 0.4rem;
}
.a11y-fontctl button {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--text); cursor: pointer; font-size: 0.8rem; font-weight: 700;
}
.a11y-fontctl button:hover { border-color: var(--primary); color: var(--primary); }
.a11y-fontctl span { font-size: 0.8rem; color: var(--text-muted); min-width: 2.2em; text-align: center; }

@media (max-width: 480px) {
  .a11y-fab { right: 1rem; bottom: 1rem; }
}

/* ── SITE FOOTER (Powered by IT Tracker) ── */
.site-footer {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-light);
  font-size: 0.8rem;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}
.site-footer-brand { color: var(--text-muted); }
.site-footer-brand strong { color: var(--primary); font-weight: 700; }
.site-footer-company { color: var(--text-muted); font-weight: 600; }
.site-footer-sep { color: var(--border); }
.site-footer-copy { color: var(--text-light); }

/* Footer flows normally at the end of the page — no body-level flex, so
   existing grid/table/card layouts are left untouched. */
.site-footer { clear: both; }

@media (max-width: 480px) {
  .site-footer-sep { display: none; }
  .site-footer-inner { flex-direction: column; gap: 0.25rem; }
}
