/**
 * SmartTenant admin top bar — YouTube-style chrome (light).
 * Accent focus/active: #444DDB
 */
.pc-header.pc-header--youtube {
  --yt-header-h: 56px;
  --yt-accent: #444ddb;
  --yt-accent-soft: rgba(68, 77, 219, 0.12);
  --yt-bar-bg: #ffffff;
  --yt-bar-border: #e5e5e5;
  --yt-search-bg: #f0f0f0;
  --yt-icon: #0f0f0f;
  --yt-muted: #606060;
  position: sticky;
  top: 0;
  z-index: 1025;
  background: var(--yt-bar-bg) !important;
  border-bottom: 1px solid var(--yt-bar-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: var(--yt-icon);
}

.pc-header.pc-header--youtube .header-wrapper.yt-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  min-height: var(--yt-header-h);
  max-height: var(--yt-header-h);
  padding: 0 16px;
  width: 100%;
}

.pc-header.pc-header--youtube .yt-header__start {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.pc-header.pc-header--youtube .yt-header__start > ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.pc-header.pc-header--youtube .yt-header__start .pc-h-item {
  margin: 0;
}

.pc-header.pc-header--youtube .yt-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--yt-icon);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

.pc-header.pc-header--youtube .yt-header__brand:hover {
  background: var(--st-hover, #eaeaea);
  color: var(--yt-icon);
}

.pc-header.pc-header--youtube .yt-header__brand img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.pc-header.pc-header--youtube .yt-header__wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.pc-header.pc-header--youtube .yt-header__center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.pc-header.pc-header--youtube .header-search-item,
.pc-header.pc-header--youtube .yt-header__center .header-search-wrap {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 640px;
}

.pc-header.pc-header--youtube .header-search {
  position: relative;
  width: 100%;
}

.pc-header.pc-header--youtube .header-search .form-control {
  height: 40px;
  padding-inline: 16px 48px;
  border: 1px solid var(--yt-bar-border);
  border-radius: 9999px;
  background: var(--yt-search-bg);
  color: var(--yt-icon);
  box-shadow: none;
  font-size: 16px;
  line-height: 1.25;
}

.pc-header.pc-header--youtube .header-search .form-control::placeholder {
  color: var(--yt-muted);
  opacity: 1;
}

.pc-header.pc-header--youtube .header-search .form-control:focus {
  border-color: var(--yt-accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--yt-accent);
  outline: none;
}

.pc-header.pc-header--youtube .header-search .icon-search {
  left: auto;
  right: 4px;
  width: 40px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: var(--yt-muted);
  pointer-events: none;
  font-size: 16px;
}

.pc-header.pc-header--youtube .header-search .form-control:focus ~ .icon-search,
.pc-header.pc-header--youtube .header-search:focus-within .icon-search {
  color: var(--yt-accent);
}

.pc-header.pc-header--youtube #searchDropdown {
  top: calc(100% + 6px);
  border-radius: 12px;
  border-color: var(--yt-bar-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.pc-header.pc-header--youtube .yt-header__search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--yt-icon);
}

.pc-header.pc-header--youtube .yt-header__search-toggle:hover {
  background: var(--st-hover, #eaeaea);
}

.pc-header.pc-header--youtube .yt-header__end > ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.pc-header.pc-header--youtube .pc-head-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  margin: 0;
  border-radius: 50%;
  background: transparent !important;
  color: var(--yt-icon) !important;
  box-shadow: none !important;
  border: none;
  transition: background 0.15s ease;
}

.pc-header.pc-header--youtube .pc-head-link > i {
  color: var(--yt-icon) !important;
  font-size: 18px;
}

.pc-header.pc-header--youtube .pc-head-link:hover,
.pc-header.pc-header--youtube .pc-head-link:focus-visible {
  background: var(--st-hover, #eaeaea) !important;
  color: var(--yt-icon) !important;
}

.pc-header.pc-header--youtube .pc-head-link:has(.quick-create-label) {
  border-radius: 20px;
  padding-inline: 12px;
}

.pc-header.pc-header--youtube .quick-create-label {
  color: var(--yt-icon);
  font-size: 14px;
  font-weight: 500;
}

.pc-header.pc-header--youtube .header-user-profile .pc-head-link {
  padding: 4px;
  gap: 0;
}

.pc-header.pc-header--youtube .header-user-profile .user-avtar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
}

.pc-header.pc-header--youtube .header-user-profile .pc-head-link > span {
  display: none !important;
}

.pc-header.pc-header--youtube .dropdown-menu {
  border-color: var(--yt-bar-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.pc-header.pc-header--youtube .dropdown-item:hover,
.pc-header.pc-header--youtube .dropdown-item.active {
  background: var(--yt-search-bg);
  color: var(--yt-icon);
}

/* Hide legacy workspace chip (workspace lives in sidebar) */
.pc-header.pc-header--youtube .kuetu-workspace-switcher {
  display: none !important;
}

@media (min-width: 1025px) {
  .pc-header.pc-header--youtube .yt-header__wordmark {
    display: inline;
  }
}

@media (max-width: 767.98px) {
  .pc-header.pc-header--youtube .yt-header__wordmark {
    display: none;
  }

  .pc-header.pc-header--youtube .header-wrapper.yt-header {
    grid-template-columns: auto 1fr auto;
    gap: 4px 8px;
    padding-inline: 8px;
  }

  .pc-header.pc-header--youtube .yt-header__center .header-search-wrap {
    display: none;
  }

  .pc-header.pc-header--youtube .yt-header__search-toggle {
    display: inline-flex;
  }

  .pc-header.pc-header--youtube.yt-header--search-open .header-wrapper.yt-header {
    grid-template-columns: auto 1fr auto;
  }

  .pc-header.pc-header--youtube.yt-header--search-open .yt-header__start {
    display: none;
  }

  .pc-header.pc-header--youtube.yt-header--search-open .yt-header__end {
    display: none;
  }

  .pc-header.pc-header--youtube.yt-header--search-open .yt-header__center {
    grid-column: 1 / -1;
    max-width: none;
  }

  .pc-header.pc-header--youtube.yt-header--search-open .yt-header__center .header-search-wrap {
    display: block;
  }

  .pc-header.pc-header--youtube.yt-header--search-open .yt-header__search-toggle {
    display: none;
  }
}

@media (max-width: 1024px) {
  .pc-header.pc-header--youtube .yt-header__center {
    max-width: min(480px, 42vw);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .pc-header.pc-header--youtube .yt-header__center {
    max-width: 360px;
  }

  .pc-header.pc-header--youtube .quick-create-label {
    display: none;
  }
}

[data-pc-direction="rtl"] .pc-header.pc-header--youtube .header-search .icon-search {
  right: auto;
  left: 4px;
}

[data-pc-direction="rtl"] .pc-header.pc-header--youtube .header-search .form-control {
  padding-inline: 48px 16px;
}

/* ═══════════════════════════════════════════════════════════
   Public / landing top bar — same YouTube chrome as admin
   Accent: #444DDB (replaces YouTube red)
   ═══════════════════════════════════════════════════════════ */

.lp-header.lp-header--youtube {
  --yt-header-h: 56px;
  --yt-accent: #444ddb;
  --yt-accent-soft: rgba(68, 77, 219, 0.12);
  --yt-bar-bg: #ffffff;
  --yt-bar-border: #e5e5e5;
  --yt-icon: #0f0f0f;
  --yt-muted: #606060;
  /* Neutralize Able Pro landing.css `header { min-height:100vh; display:flex; … }`
     which was turning this topbar into a full-viewport blank sheet. */
  position: sticky;
  top: 0;
  z-index: 1030;
  display: block !important;
  align-items: stretch;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  background: var(--yt-bar-bg) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--yt-bar-border) !important;
  box-shadow: none;
  backdrop-filter: none !important;
  color: var(--yt-icon);
  padding: 0 !important;
  overflow: visible !important;
  transition: box-shadow 0.2s ease;
}

/* Kill Able Pro decorative header::after overlay on the YouTube topbar */
.lp-header.lp-header--youtube::before,
.lp-header.lp-header--youtube::after {
  content: none !important;
  display: none !important;
}

.lp-header.lp-header--youtube.lp-header--scrolled,
.lp-header.lp-header--youtube.top-nav-collapse {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 12px rgba(0, 0, 0, 0.06);
}

.lp-header.lp-header--youtube .yt-header.lp-yt-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  min-height: var(--yt-header-h);
  max-height: var(--yt-header-h);
  padding: 0 16px;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
}

.lp-header.lp-header--youtube .yt-header__start {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.lp-header.lp-header--youtube .lp-yt-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--yt-icon);
  cursor: pointer;
  flex-shrink: 0;
}

.lp-header.lp-header--youtube .lp-yt-menu-toggle:hover,
.lp-header.lp-header--youtube .lp-yt-menu-toggle:focus-visible {
  background: #eaeaea;
  outline: none;
}

.lp-header.lp-header--youtube .lp-yt-menu-toggle[aria-expanded="true"] {
  background: var(--yt-accent-soft);
  color: var(--yt-accent);
}

.lp-header.lp-header--youtube .yt-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--yt-icon) !important;
  text-decoration: none !important;
  min-width: 0;
  flex-shrink: 0;
  max-width: none;
}

.lp-header.lp-header--youtube .yt-header__brand:hover {
  background: #eaeaea;
  color: var(--yt-icon) !important;
}

.lp-header.lp-header--youtube .yt-header__logo {
  display: block;
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.lp-header.lp-header--youtube .yt-header__wordmark,
.lp-header.lp-header--youtube .lp-brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--yt-icon) !important;
}

.lp-header.lp-header--youtube .yt-header__center.lp-yt-nav {
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.lp-header.lp-header--youtube .lp-yt-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lp-header.lp-header--youtube .lp-yt-nav__list::-webkit-scrollbar {
  display: none;
}

.lp-header.lp-header--youtube .lp-yt-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  color: var(--yt-icon) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.lp-header.lp-header--youtube .lp-yt-link:hover {
  background: #eaeaea;
  color: var(--yt-icon) !important;
}

.lp-header.lp-header--youtube .lp-yt-link.active,
.lp-header.lp-header--youtube .lp-yt-link:focus-visible {
  background: var(--yt-accent-soft);
  color: var(--yt-accent) !important;
  outline: none;
}

.lp-header.lp-header--youtube .yt-header__end.lp-yt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.lp-header.lp-header--youtube .lp-yt-actions__desktop {
  align-items: center;
  gap: 6px;
}

.lp-header.lp-header--youtube .lp-yt-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  color: var(--yt-icon) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
}

.lp-header.lp-header--youtube .lp-yt-login:hover {
  background: #eaeaea;
  color: var(--yt-icon) !important;
}

.lp-header.lp-header--youtube .lp-yt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--yt-accent) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
}

.lp-header.lp-header--youtube .lp-yt-cta:hover,
.lp-header.lp-header--youtube .lp-yt-cta:focus-visible {
  background: #2c33a8 !important;
  color: #ffffff !important;
  outline: none;
}

.lp-header.lp-header--youtube .lp-yt-cta--compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.lp-header.lp-header--youtube .lp-yt-lang .st-language-switcher .btn-outline-secondary {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  border-color: var(--yt-bar-border);
  color: var(--yt-icon);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}

.lp-header.lp-header--youtube .lp-yt-lang .st-language-switcher .btn-outline-secondary:hover,
.lp-header.lp-header--youtube .lp-yt-lang .st-language-switcher .btn-outline-secondary:focus {
  background: #eaeaea;
  border-color: var(--yt-bar-border);
  color: var(--yt-icon);
}

.lp-header.lp-header--youtube .lp-yt-lang .dropdown-menu {
  border-color: var(--yt-bar-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.lp-header.lp-header--youtube .lp-yt-mobile {
  border-top: 1px solid var(--yt-bar-border);
  background: #ffffff;
  max-height: calc(100dvh - var(--yt-header-h));
  overflow-y: auto;
}

.lp-header.lp-header--youtube .lp-yt-mobile__list {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
}

.lp-header.lp-header--youtube .lp-yt-mobile__list .lp-yt-link {
  width: 100%;
  justify-content: flex-start;
  min-height: 44px;
  border-radius: 12px;
  padding-inline: 14px;
}

.lp-header.lp-header--youtube .lp-yt-mobile__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 12px 16px;
  border-top: 1px solid var(--yt-bar-border);
}

.lp-header.lp-header--youtube .lp-yt-mobile__actions .lp-yt-login,
.lp-header.lp-header--youtube .lp-yt-mobile__actions .lp-yt-cta {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.lp-header.lp-header--youtube .lp-yt-mobile__actions .lp-yt-lang {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

/* Kill legacy Able Pro / gradient navbar chrome if any remnant classes leak in */
.landing-page .lp-header.lp-header--youtube.navbar,
.landing-page .lp-header.lp-header--youtube {
  background: var(--yt-bar-bg) !important;
  background-image: none !important;
}

@media (max-width: 991.98px) {
  .lp-header.lp-header--youtube .yt-header.lp-yt-header {
    padding-inline: 12px;
  }

  .lp-header.lp-header--youtube .lp-yt-nav__list .lp-yt-link {
    padding-inline: 10px;
    font-size: 13px;
  }
}

@media (max-width: 767.98px) {
  .lp-header.lp-header--youtube .lp-yt-menu-toggle {
    display: inline-flex;
  }

  .lp-header.lp-header--youtube .yt-header__wordmark,
  .lp-header.lp-header--youtube .lp-brand-name {
    display: none;
  }

  .lp-header.lp-header--youtube .yt-header.lp-yt-header {
    grid-template-columns: auto 1fr auto;
    gap: 4px 8px;
    padding-inline: 8px;
  }

  .lp-header.lp-header--youtube .yt-header__center.lp-yt-nav {
    display: none !important;
  }

  .lp-header.lp-header--youtube .yt-header__end.lp-yt-actions {
    grid-column: 3;
  }
}

@media (min-width: 768px) {
  .lp-header.lp-header--youtube .lp-yt-mobile {
    display: none !important;
  }

  .lp-header.lp-header--youtube .lp-yt-menu-toggle {
    display: none !important;
  }
}

[dir="rtl"] .lp-header.lp-header--youtube .yt-header.lp-yt-header {
  direction: rtl;
}
