/* ===== Header: Status Bar + Tab Bar + Toolbar ===== */

.header {
  background: #DEE3EB;
  flex-shrink: 0;
}

/* --- Status Bar --- */
.status-bar {
  height: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 26px;
  margin-bottom: 8px;
  color: #242424;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 510;
  line-height: 1.2;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 510;
}

.status-wifi {
  width: 16px;
  height: 12px;
  color: #242424;
}

.status-battery-text {
  font-size: 12px;
}

.status-battery {
  display: flex;
  align-items: center;
  gap: 1px;
}

.status-battery-body {
  width: 24px;
  height: 12px;
  border: 1px solid rgba(0,0,0,0.4);
  border-radius: 3px;
  padding: 2px;
}

.status-battery-fill {
  width: 100%;
  height: 100%;
  background: #242424;
  border-radius: 1.5px;
}

.status-battery-cap {
  width: 1.5px;
  height: 4px;
  background: rgba(0,0,0,0.4);
  border-radius: 0 1px 1px 0;
}

/* --- Header Shadow (between tab bar and toolbar) --- */
.header-shadow {
  height: 0;
}

/* --- Toolbar --- */
.toolbar {
  height: 52px;
  position: relative;
}

.toolbar-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: #F4F7FB;
  backdrop-filter: blur(50px);
  border-radius: 12px 12px 0 0;
}

.toolbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7B83EB;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.toolbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toolbar-btn {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.86);
  flex-shrink: 0;
  position: relative;
}

.toolbar-btn svg {
  width: 24px;
  height: 24px;
}

.toolbar-tab-count {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,0.86);
}

.nav-back, .nav-forward {
  width: 32px;
  height: 32px;
}

.nav-back.disabled, .nav-forward.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* --- Omni Box --- */
.omni-box {
  flex: 1;
  height: 36px;
  background: rgba(0,0,0,0.06);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  position: relative;
  transition: background 0.3s ease;
}

/* NTP state: blend into toolbar, invisible but still occupies space */
.omni-box.omni-hidden {
  background: transparent;
  pointer-events: none;
}

.omni-box.omni-hidden .omni-center,
.omni-box.omni-hidden .omni-refresh {
  opacity: 0;
}

.omni-center {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  width: 100%;
  padding: 0 12px;
}

.omni-lock {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(0,0,0,0.86);
  transition: opacity 0.15s ease;
}

/* Hide lock icon when input is focused */
.omni-box:has(.omni-focused) .omni-lock {
  opacity: 0;
  pointer-events: none;
}

.omni-input {
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: rgba(0,0,0,0.86);
  outline: none;
  text-align: center;
  width: 200px;
  transition: width 0.2s ease, text-align 0.2s ease, padding 0.2s ease;
}

/* Focused state: full width, left-aligned, no padding for lock */
.omni-input.omni-focused {
  width: calc(100% - 48px);
  text-align: left;
  padding-left: 12px;
}

.omni-refresh {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(0,0,0,0.86);
  width: 24px;
  height: 24px;
}

.omni-refresh svg {
  width: 24px;
  height: 24px;
}

/* --- Toolbar Right --- */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
