:root {
  --itvy-chrome-h: 44px;
}

html.itvy-has-chrome {
  --itvy-chrome-bg: #ffffff;
  --itvy-chrome-ink: #1a1a1a;
  --itvy-chrome-muted: #667085;
  --itvy-chrome-line: #e6e8ec;
  --itvy-chrome-on: #101828;
}

.itvy-chrome {
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--itvy-chrome-h);
  padding: 0 16px;
  background: var(--itvy-chrome-bg);
  border-bottom: 1px solid var(--itvy-chrome-line);
  color: var(--itvy-chrome-ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

.itvy-chrome *,
.itvy-chrome *::before,
.itvy-chrome *::after {
  box-sizing: border-box;
}

.itvy-chrome a {
  color: inherit;
  text-decoration: none;
}

.itvy-chrome-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: 12px;
  white-space: nowrap;
}

.itvy-chrome-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.itvy-chrome-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--itvy-chrome-muted);
  font: inherit;
  white-space: nowrap;
}

a.itvy-chrome-item:hover {
  color: var(--itvy-chrome-on);
  background: #f2f4f7;
}

.itvy-chrome-item[aria-current="page"] {
  color: var(--itvy-chrome-on);
  font-weight: 650;
}

.itvy-chrome-item:disabled,
.itvy-chrome-item.is-disabled {
  color: var(--itvy-chrome-muted);
  opacity: 0.7;
  cursor: not-allowed;
}

.itvy-chrome-soon {
  font-size: 11px;
  font-weight: 500;
  color: var(--itvy-chrome-muted);
}

html.itvy-has-chrome .app .sidebar,
html.itvy-has-chrome aside.nav {
  top: var(--itvy-chrome-h);
  height: calc(100vh - var(--itvy-chrome-h));
}

html.itvy-has-chrome .mobile-bar {
  top: var(--itvy-chrome-h);
}

html.itvy-has-chrome .header {
  top: var(--itvy-chrome-h);
}

html.itvy-has-chrome .browse-layout,
html.itvy-has-chrome .coverage-layout {
  height: calc(100vh - 56px - var(--itvy-chrome-h));
}

@media (max-width: 900px) {
  html.itvy-has-chrome .app .sidebar {
    top: auto;
    height: auto;
  }
}

@media (max-width: 860px) {
  html.itvy-has-chrome aside.nav {
    top: var(--itvy-chrome-h);
    height: calc(100vh - var(--itvy-chrome-h));
  }
}
