:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1A1A1A;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --text-primary: #F5F4F1;
  --text-secondary: #9C9B95;
  --text-muted: #6E6D67;
  --silver: #C0C0C0;
  --silver-muted: #424242;
  --accent: #FE4000;
  --accent-deep: #B93321;
  --status-out: #CD1C18;
  --status-out-tint: rgba(205, 28, 24, 0.16);
  --status-free: #45CC2D;
  --status-free-tint: rgba(69, 204, 45, 0.16);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
.display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 90px;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

#setupScreen,
#loginScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-strong);
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  margin: 0 -16px 16px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
}

.header-logo {
  max-height: 28px;
  max-width: 150px;
  display: block;
  margin-bottom: 6px;
  object-fit: contain;
}

.eyebrow,
.title-block .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.eyebrow::before,
.title-block .eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

h1 {
  font-size: clamp(22px, 5.5vw, 31px);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text-primary);
}

.sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

button {
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform .08s ease, background .15s ease;
}

.btn-primary:hover {
  background: #E2E1DD;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text-secondary);
}

.btn-ghost:active {
  transform: scale(0.97);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  font-size: 17px;
  padding: 0;
  flex: none;
}

.icon-btn:active {
  transform: scale(0.94);
}

/* ---------- Stat pills ---------- */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.stats-row .btn-primary {
  flex: none;
}

.stats {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.stats::-webkit-scrollbar {
  display: none;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.stat-filter {
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color .12s ease, transform .08s ease;
}

.stat-filter:active {
  transform: scale(0.96);
}

.stat-filter.active {
  border-color: var(--text-primary);
  border-width: 1.5px;
}

.stat.out.active {
  border-color: var(--status-out);
}

.stat.avail.active {
  border-color: var(--status-free);
}

.stat .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat .lbl {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat.out .num {
  color: var(--status-out);
}

.stat.avail .num {
  color: var(--status-free);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 520px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 760px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.selection-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  margin: 0 -16px 16px;
  animation: fadeIn .15s ease;
}

.selection-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.selection-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.selection-actions button {
  font-size: 12.5px;
  padding: 8px 12px;
}

.selection-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tag.selected,
.list-row.selected,
.my-equip-row.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: rgba(254, 64, 0, 0.1);
}

.tag {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 12px 11px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.tag.status-out {
  border-left-color: var(--status-out);
}

.tag.status-free {
  border-left-color: var(--status-free);
}

.tag:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.tag:active {
  transform: translateY(0) scale(0.98);
}

.tag-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.tag-name {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.25;
  color: var(--text-primary);
}

.tag-cat {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  flex: none;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid currentColor;
  white-space: nowrap;
  flex: none;
}

.stamp.out {
  color: var(--status-out);
  background: var(--status-out-tint);
}

.stamp.avail {
  color: var(--status-free);
  background: var(--status-free-tint);
}

.who {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-secondary);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  grid-column: 1/-1;
  font-size: 15.5px;
}

.list-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sync-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 21.5px;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color .15s ease;
}

.sync-btn:hover {
  color: var(--text-primary);
}

.sync-btn:active {
  transform: scale(0.9);
}

.sync-btn.spinning {
  color: var(--accent);
  animation: spin .7s linear infinite;
}

.sync-btn:disabled {
  cursor: default;
}

.view-toggle {
  display: flex;
  gap: 4px;
  flex: none;
}

.view-toggle-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  font-size: 13.5px;
  padding: 0;
  transition: all .12s ease;
}

.view-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.view-toggle-btn.active {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}

.list-view {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.list-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  cursor: pointer;
  transition: background .12s ease;
}

.list-row:last-child {
  border-bottom: none;
}

.list-row:hover {
  background: var(--surface-2);
}

.list-row.status-out {
  border-left-color: var(--status-out);
}

.list-row.status-free {
  border-left-color: var(--status-free);
}

.my-equip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  cursor: pointer;
  background: rgba(254, 64, 0, 0.06);
  transition: background .12s ease;
}

.my-equip-row:last-child {
  border-bottom: none;
}

.my-equip-row:hover {
  background: rgba(254, 64, 0, 0.12);
}

.my-equip-info {
  min-width: 0;
  flex: 1;
}

.my-equip-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-equip-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.list-row-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.list-row-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.list-row-cat {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.list-row-id {
  font-family: 'JetBrains Mono', monospace;
  color: var(--silver-muted);
}

.list-row-movement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.list-row-borrower {
  font-size: 14px;
}

.list-row-since {
  font-size: 12px;
  color: var(--text-secondary);
}

.cat-filter-row {
  position: relative;
  display: flex;
  gap: 7px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 2px 4px 4px 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-left: 4px;
}

.cat-filter-row:empty {
  display: none;
  margin-bottom: 0;
}

.cat-filter-row::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 20px;
  white-space: nowrap;
  flex: none;
  transition: all .12s ease;
  scroll-snap-align: start;
}

.cat-chip:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.cat-chip.active {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
  font-weight: 600;
}

.cat-chip:last-child {
  margin-right: 16px;
}

.tag.skeleton {
  height: 92px;
  cursor: default;
  border-left-color: var(--border);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ---------- Overlay / modal (bottom sheet on mobile) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
  animation: fadeIn .15s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: var(--shadow-lift);
  animation: popIn .18s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.modal h2 {
  font-size: 21.5px;
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal .modal-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C9B95' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.field select option {
  background: var(--surface-2);
  color: var(--text-primary);
}

.field textarea {
  resize: vertical;
  min-height: 56px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 11px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  flex: 1;
}

.btn-secondary:hover {
  background: var(--surface);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid var(--status-out);
  color: var(--status-out);
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.btn-danger-outline:hover {
  background: var(--status-out-tint);
}

.err {
  color: var(--status-out);
  font-size: 13.5px;
  margin-top: 6px;
}

.history {
  margin-top: 6px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.history h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin: 0 0 8px;
  font-weight: 600;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 300px;
}

.history-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0 8px 6px 0;
  border-bottom: 1px solid var(--border-strong);
}

.history-table td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.4;
  color: var(--text-primary);
}

.history-table tr:last-child td {
  border-bottom: none;
}

.h-name {
  font-weight: 600;
  color: var(--accent);
}

.h-trail-prev {
  color: var(--text-secondary);
  font-weight: 500;
}

.h-arrow {
  color: var(--text-muted);
  margin: 0 1px;
}

.h-meta {
  color: var(--text-secondary);
  font-size: 11.5px;
  margin-top: 2px;
}

.h-out {
  color: var(--status-out);
  font-weight: 600;
}

.h-returned {
  color: #008000;
  font-weight: 600;
}

.h-name.h-returned {
  color: #008000;
}

.trail-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.trail-hop {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.25;
}

.trail-hop-time {
  font-size: 0.78em;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
}

.close-x {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 20.5px;
  position: absolute;
  top: 16px;
  right: 18px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.user-row:last-child {
  border-bottom: none;
}

.role-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--status-free-tint);
  color: var(--status-free);
}

.role-badge.admin {
  background: var(--status-out-tint);
  color: var(--status-out);
}

.role-badge.superadmin {
  background: rgba(224, 67, 43, 0.18);
  color: var(--accent);
}

.login-screen {
  position: relative;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 26px 28px;
  box-shadow: var(--shadow-lift);
}

.login-screen::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 18px;
  height: 18px;
  border-top: 1.5px solid var(--text-secondary);
  border-left: 1.5px solid var(--text-secondary);
}

.login-screen h1 {
  font-size: 29.5px;
  margin-bottom: 6px;
}

.login-screen .sub {
  margin-bottom: 22px;
}

.login-mark {
  max-width: 140px;
  max-height: 52px;
  margin: 0 0 22px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 19px;
}

.login-mark img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.banner code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--surface-2);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--text-primary);
}

.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* ---------- Bottom nav / tabs ---------- */
#mainScreen {
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

.tab-panel {
  animation: fadeIn .15s ease;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-strong);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 26px;
  border-radius: 12px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.bottom-nav-btn svg {
  width: 23px;
  height: 23px;
}

.bottom-nav-btn:active {
  transform: scale(0.92);
}

.bottom-nav-btn.active {
  color: var(--accent);
  background: rgba(254, 64, 0, 0.12);
}

/* ---------- Equipment tab ---------- */
.tab-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tab-header-row h1 {
  margin: 0;
}

.simple-list .list-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Settings tab ---------- */
.settings-profile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 22px;
}

.settings-profile-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.settings-profile-name {
  font-size: 25px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

#mainScreen.settings-view {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

#mainScreen.settings-view #settingsTab {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#settingsTab {
  display: flex;
  flex-direction: column;
}

.settings-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}