/* The horizontal wordmark is for the page, not the browser favicon. */
:root {
  --qianshou-logo-width: 152px;
  --qianshou-logo-height: 58px;
}
img[src$="/brand/qianshou-logo.png"] {
  display: block;
  width: var(--qianshou-logo-width) !important;
  height: var(--qianshou-logo-height) !important;
  max-width: none !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  flex-shrink: 0;
}
div:has(> img[src$="/brand/qianshou-logo.png"]) {
  width: var(--qianshou-logo-width) !important;
  min-width: var(--qianshou-logo-width) !important;
  height: var(--qianshou-logo-height) !important;
  aspect-ratio: auto !important;
  flex-shrink: 0;
  overflow: visible !important;
}
/* Override the application's 20px inline brand container in the console. */
a:has(> div > img[src$="/brand/qianshou-logo.png"]) {
  min-height: var(--qianshou-logo-height);
  height: auto !important;
  gap: 12px !important;
}
header a:has(img[src$="/brand/qianshou-logo.png"]) > span {
  max-width: 19rem;
  font-size: 14px;
}
a:has(> div > img[src$="/brand/qianshou-logo.png"]) > h1 {
  max-width: 19rem;
  font-size: 16px;
}
/* Expanded sidebars use a stacked brand so the name remains readable. */
[data-slot="sidebar-menu-button"]:has(img[src$="/brand/qianshou-logo.png"]) {
  height: auto !important;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
[data-slot="sidebar-menu-button"]:has(img[src$="/brand/qianshou-logo.png"]) > div:last-child {
  width: 100%;
  text-align: center;
}
/* Collapsed navigation uses only the supplied symbol. */
[data-collapsible="icon"] div:has(> img[src$="/brand/qianshou-logo.png"]) {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
}
[data-collapsible="icon"] img[src$="/brand/qianshou-logo.png"] {
  content: url("/brand/qianshou-icon.png?v=20260930-2");
  width: 32px !important;
  height: 32px !important;
}
[data-collapsible="icon"] [data-slot="sidebar-menu-button"]:has(img[src$="/brand/qianshou-logo.png"]) {
  min-height: 40px;
}
@media (max-width: 767px) {
  :root {
    --qianshou-logo-width: 110px;
    --qianshou-logo-height: 42px;
  }
  header a:has(img[src$="/brand/qianshou-logo.png"]) > span {
    max-width: 9rem;
    white-space: normal;
    font-size: 11px;
    line-height: 1.3;
  }
}
@media (max-width: 479px) {
  /* Keep the larger wordmark without crowding compact header controls. */
  header a:has(img[src$="/brand/qianshou-logo.png"]) > span[title] {
    display: none;
  }
  a:has(> div > img[src$="/brand/qianshou-logo.png"]) > h1 {
    max-width: 11rem;
    font-size: 13px;
    line-height: 1.35;
  }
}
