/* Bottom status strip (shared with /api/lancet-status) */
#bottomStatus.bottom-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 76%;
  font-size: 12px;
  line-height: 1.45;
  color: #1a2230;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  white-space: normal;
}

#bottomStatus .bottom-bracket {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(36, 48, 74, 0.06);
  border: 1px solid rgba(36, 48, 74, 0.11);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

#bottomStatus .bottom-bracket--status {
  display: inline-flex;
  align-items: center;
  column-gap: 4px;
  line-height: 1.25;
}

#bottomStatus .bottom-bracket__text {
  white-space: nowrap;
  line-height: inherit;
}

#bottomStatus .bottom-bracket--status .status-led {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) inset, 0 0 6px currentColor;
  flex-shrink: 0;
}

#bottomStatus .bottom-bracket--status .status-led.status-led--synced {
  background: #16a34a;
  color: rgba(22, 163, 74, 0.55);
}

#bottomStatus .bottom-bracket--status .status-led.status-led--degraded {
  background: #ca8a04;
  color: rgba(202, 138, 4, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) inset, 0 0 5px rgba(202, 138, 4, 0.4);
}

#bottomStatus .bottom-bracket--status .status-led.status-led--offline {
  background: #dc2626;
  color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) inset, 0 0 5px rgba(220, 38, 38, 0.4);
}

#bottomStatus .status-loading,
#bottomStatus.bottom-status--err {
  font-size: 12px;
  color: #4b5568;
  padding: 2px 0;
}

#bottomStatus.bottom-status--err {
  color: #7a1f1f;
}

/* Top taskbar refinements */
.taskbar {
  padding: 0 24px !important;
  height: 65px !important;
  background: #f9f7f2 !important;
  border-bottom: 1px solid #e5e1d8 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.taskbar-title {
  margin-left: 0 !important;
  transform: none !important;
  height: 84px !important;
}

.taskbar-items {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 10px !important;
  opacity: 1 !important;
}

.taskbar-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 37px;
  font-size: 18px !important;
  font-variant-caps: all-small-caps;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.taskbar-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #008a47;
}

.taskbar-actions {
  right: 24px !important;
}

.taskbar-profile-btn {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #e5e1d8 !important;
  background: #fdfcfb !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: #1f2937;
}

.taskbar-profile-btn svg {
  display: none !important;
}

.taskbar-profile-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14c-3.314 0-6 2.239-6 5h12c0-2.761-2.686-5-6-5z'/%3E%3Ccircle cx='12' cy='8' r='3.3'/%3E%3C/svg%3E") !important;
}

.taskbar-wallet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px !important;
  padding: 0 12px 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid #e5e1d8 !important;
  background: #fdfcfb !important;
  font-size: 12px !important;
  line-height: 1 !important;
  color: #1f2937;
  font-family: "JetBrains Mono", "Cascadia Mono", "Consolas", "Courier New", monospace;
  white-space: nowrap;
}

.taskbar-wallet-btn svg {
  display: none !important;
}

.taskbar-wallet-btn::before {
  content: "" !important;
  width: 16px;
  height: 16px;
  display: block !important;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='6.5' width='17' height='11' rx='2'/%3E%3Cpath d='M15.5 12h4.5'/%3E%3Ccircle cx='15.5' cy='12' r='0.8'/%3E%3C/svg%3E");
}

.taskbar-wallet-btn .wallet-balance {
  display: inline-flex !important;
  align-items: center;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.taskbar-wallet-btn .wallet-balance::before {
  content: none !important;
}

.tracker-shell,
.profile-shell,
.wallet-shell {
  padding-top: 95px !important;
}

.feed-panel {
  top: 65px !important;
}

/* Keep top and bottom bars stable everywhere */
.bottom-sidebar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 6px 12px !important;
  box-sizing: border-box !important;
  border-top: 1px solid #e5e1d8 !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  z-index: 40 !important;
}

/* Force tracker wallets panel to reach the bottom bar */
.tracker-shell {
  height: calc(100dvh - 42px) !important;
  min-height: calc(100dvh - 42px) !important;
  padding-top: 95px !important;
  padding-bottom: 6px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.tracker-stack {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.tracker-card[aria-label="Tracked wallets"] {
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.tracker-card[aria-label="Tracked wallets"] .wallet-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: auto !important;
}
