/*
 * Prototype UI integration layer
 *
 * Chỉ thay đổi lớp trình bày; không thay đổi cấu trúc dữ liệu, route,
 * biểu mẫu hay các hook JavaScript hiện có. Desktop dùng sidebar cố định;
 * mobile tiếp tục dùng drawer hiện tại trong navigation.css.
 */

@media (min-width: 1100px) {
  :root {
    --dashboard-bg: #f3f4f6;
    --dashboard-panel: #ffffff;
    --dashboard-panel-soft: #f8f9fa;
    --dashboard-ink: #20242b;
    --dashboard-muted: #737a84;
    --dashboard-line: #e3e6ea;
    --dashboard-accent: #111111;
    --dashboard-sidebar: #ffffff;
  }

  html,
  body {
    min-height: 100%;
    background: var(--dashboard-bg);
  }

  body {
    color: var(--dashboard-ink);
  }

  .page-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    align-items: start;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    background: var(--dashboard-bg);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    grid-column: 1;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    width: 248px;
    height: 100vh;
    min-height: 680px;
    overflow-y: auto;
    border: 0;
    border-right: 1px solid var(--dashboard-line);
    border-radius: 0;
    background: var(--dashboard-sidebar);
    box-shadow: 4px 0 18px rgba(32, 36, 43, .035);
  }

  .site-masthead {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 27px 20px 21px;
    background: var(--dashboard-sidebar);
    color: var(--dashboard-ink);
  }

  .brand-home {
    order: 1;
  }

  .wordmark {
    color: var(--dashboard-ink);
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -.07em;
    line-height: 1;
  }

  .wordmark span {
    color: var(--dashboard-ink);
  }

  .site-kicker {
    order: 2;
    margin: 12px 0 0;
    color: var(--dashboard-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.45;
    white-space: normal;
  }

  .site-tagline {
    order: 3;
    max-width: none;
    margin: 7px 0 0;
    color: var(--dashboard-muted);
    font-size: 11px;
    line-height: 1.45;
  }

  .masthead-tools {
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-content: stretch;
    gap: 7px;
    margin-top: 21px;
  }

  .masthead-tools > * {
    width: 100%;
  }

  .language-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-height: 34px;
    color: var(--dashboard-muted);
    font-size: 11px;
  }

  .language-picker select,
  .lang-selector {
    min-width: 0;
    max-width: 112px;
    padding: 6px 7px;
    border: 1px solid var(--dashboard-line);
    border-radius: 7px;
    background: var(--dashboard-panel);
    color: var(--dashboard-ink);
    font-size: 11px;
  }

  .sync-trigger,
  .account-trigger,
  .auth-trigger {
    min-height: 34px;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11px;
  }

  .auth-trigger {
    border-color: var(--dashboard-ink);
    background: var(--dashboard-ink);
    color: #fff;
  }

  .auth-trigger:hover {
    background: #3d424a;
  }

  .account-trigger {
    border-color: var(--dashboard-line);
    background: var(--dashboard-panel);
    color: var(--dashboard-ink);
  }

  .navigation-trigger,
  .navigation-overlay {
    display: none;
  }

  .site-navigation {
    position: static;
    z-index: auto;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    min-height: 0;
    padding: 11px 12px 20px;
    border: 0;
    border-top: 1px solid var(--dashboard-line);
    background: var(--dashboard-sidebar);
    box-shadow: none;
    transform: none;
  }

  .site-navigation > .nav-link,
  .site-navigation > .artist-nav,
  .site-navigation .artist-nav > .nav-link {
    flex: 0 0 auto;
    width: 100%;
  }

  .site-navigation > .nav-link,
  .site-navigation .artist-nav > .nav-link {
    min-height: 42px;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--dashboard-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: left;
  }

  .site-navigation .nav-link:hover,
  .site-navigation .nav-link:focus-visible {
    background: var(--dashboard-panel-soft);
    color: var(--dashboard-ink);
  }

  .site-navigation .nav-link.is-active,
  .site-navigation .nav-link[aria-current="page"] {
    background: var(--dashboard-ink);
    color: #fff;
    box-shadow: none;
  }

  .site-navigation .artist-nav {
    display: block;
  }

  .site-navigation .artist-dropdown {
    position: static;
    min-width: 0;
    margin: 2px 0 6px 12px;
    padding: 4px;
    border: 0;
    border-left: 1px solid var(--dashboard-line);
    border-radius: 0;
    background: var(--dashboard-panel-soft);
    box-shadow: none;
  }

  .site-navigation .artist-dropdown a {
    padding: 8px 10px;
    color: var(--dashboard-muted);
    font-size: 11px;
  }

  .site-navigation .artist-dropdown a:hover,
  .site-navigation .artist-dropdown a:focus-visible,
  .site-navigation .artist-dropdown a[aria-current="page"] {
    background: #eef0f2;
    color: var(--dashboard-ink);
    box-shadow: none;
  }

  .site-search-area,
  main,
  .site-footer {
    grid-column: 2;
    min-width: 0;
  }

  .site-search-area {
    padding: 28px 38px 0;
  }

  .site-search-form {
    min-height: 47px;
    border: 1px solid var(--dashboard-line);
    border-radius: 10px;
    background: var(--dashboard-panel);
    box-shadow: 0 4px 14px rgba(32, 36, 43, .035);
  }

  #search-input {
    min-height: 45px;
    font-size: 13px;
  }

  .search-submit {
    min-height: 35px;
    margin-right: 6px;
    border-radius: 7px;
    background: var(--dashboard-ink);
  }

  .recommendation-section {
    margin-top: 18px;
  }

  main {
    padding: 27px 38px 68px;
  }

  .home-intro,
  .catalog-section,
  .broadcast-schedule-section,
  .birthday-section,
  .company-section,
  .site-footer {
    max-width: none;
  }

  .home-intro {
    padding-top: 0;
  }

  .stats-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .stat-card,
  .stat-card-catalog,
  .calendar-card,
  .content-card,
  .person-card,
  .age-card,
  .catalog-card,
  .company-card {
    border-color: var(--dashboard-line);
    border-radius: 11px;
    background: var(--dashboard-panel);
    box-shadow: 0 4px 14px rgba(32, 36, 43, .035);
  }

  .stat-card {
    min-height: 96px;
    padding: 15px;
  }

  .stat-card-catalog,
  .stat-icon-coral,
  .stat-icon-pink,
  .stat-icon-blue,
  .stat-icon-yellow,
  .stat-icon-green {
    background: var(--dashboard-panel-soft);
    color: var(--dashboard-ink);
  }

  .catalog-grid,
  .content-grid,
  .person-grid,
  .company-grid {
    gap: 13px;
  }

  .calendar-card,
  .catalog-card,
  .content-card,
  .company-card {
    padding: 17px;
  }

  .primary-button,
  .secondary-button,
  .today-button,
  .icon-button,
  .dropdown-add-button {
    border-radius: 8px;
  }

  .primary-button {
    border-color: var(--dashboard-ink);
    background: var(--dashboard-ink);
    box-shadow: none;
  }

  .secondary-button,
  .today-button,
  .icon-button {
    border-color: var(--dashboard-line);
    background: var(--dashboard-panel);
    color: var(--dashboard-ink);
  }

  .site-footer {
    margin-top: 0;
    padding: 26px 38px 38px;
    border-top: 1px solid var(--dashboard-line);
    background: var(--dashboard-panel);
  }
}


/* Reference-matched refinement: neutral, premium, and gender-neutral presentation. */
:root {
  --ref-bg: #f3f5f6;
  --ref-sidebar: #e7eaee;
  --ref-panel: #ffffff;
  --ref-line: #e1e5e8;
  --ref-ink: #1f2328;
  --ref-muted: #737a80;
  --ref-teal: #55a7bb;
  --ref-teal-soft: #e7f4f7;
  --ref-black: #17191c;
}

html,
body {
  background: var(--ref-bg);
  color: var(--ref-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.site-header,
.site-masthead,
.site-navigation {
  background: var(--ref-sidebar);
}

.site-header {
  border-color: #d8dde1;
  box-shadow: none;
}

.site-masthead {
  padding-top: 28px;
  padding-bottom: 22px;
}

.wordmark {
  color: var(--ref-ink);
  letter-spacing: .025em;
  font-weight: 760;
}

.wordmark::before {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #252d35;
  color: #fff;
  content: "▣";
}

.site-kicker,
.site-tagline,
.site-navigation .nav-link,
.language-picker {
  color: var(--ref-muted);
}

.site-navigation {
  border-top-color: #d8dde1;
}

.site-navigation .nav-link {
  border-radius: 10px;
}

.site-navigation .nav-link:hover,
.site-navigation .nav-link:focus-visible {
  background: rgba(255, 255, 255, .58);
  color: var(--ref-ink);
}

.site-navigation .nav-link.is-active,
.site-navigation .nav-link[aria-current="page"] {
  border: 1px solid rgba(255, 255, 255, .95);
  background: var(--ref-panel);
  color: var(--ref-ink);
  box-shadow: inset 3px 0 0 var(--ref-teal), 0 2px 7px rgba(31, 35, 40, .04);
}

.site-navigation .nav-link.is-active::before,
.site-navigation .nav-link[aria-current="page"]::before {
  color: var(--ref-teal);
}

.site-search-area,
main {
  background: var(--ref-bg);
}

.site-search-form,
.calendar-card,
.content-card,
.person-card,
.age-card,
.catalog-card,
.company-card,
.stat-card,
.artist-overview-card,
.artist-directory-panel {
  border-color: var(--ref-line);
  background: var(--ref-panel);
  box-shadow: 0 2px 8px rgba(31, 35, 40, .025);
}

.site-search-form {
  border-radius: 12px;
}

.search-submit,
.primary-button,
.auth-trigger {
  border-color: var(--ref-black);
  background: var(--ref-black);
  box-shadow: none;
}

.search-submit:hover,
.primary-button:hover,
.auth-trigger:hover {
  border-color: #343a40;
  background: #343a40;
}

.secondary-button,
.today-button,
.icon-button {
  border-color: var(--ref-line);
  background: var(--ref-panel);
  color: var(--ref-ink);
}

.primary-button,
.secondary-button,
.today-button,
.icon-button,
.dropdown-add-button {
  border-radius: 10px;
}

.eyebrow {
  color: var(--ref-teal);
}

.people-section,
.catalog-section,
.companies-section,
.artist-profile-section {
  margin-top: 14px;
}

.people-heading h2,
.catalog-title,
.people-section h2,
.artist-list-heading h3 {
  color: var(--ref-ink);
  letter-spacing: -.035em;
}

.artist-directory-intro,
.catalog-intro,
.directory-heading-note,
.toolbar-hint {
  color: var(--ref-muted);
}

.artist-overview-stats {
  gap: 12px;
}

.artist-overview-card {
  min-height: 72px;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(31, 35, 40, .025);
}

.artist-overview-icon {
  background: var(--ref-teal-soft);
  color: var(--ref-teal);
}

.artist-directory-panel {
  border-radius: 15px;
  box-shadow: none;
}

.artist-directory-filters {
  gap: 12px;
}

.artist-directory-search input,
.artist-company-filter select,
.text-input {
  border-color: #dfe3e6;
  background: #fff;
  color: var(--ref-ink);
  border-radius: 11px;
}

.artist-directory-search input:focus,
.artist-company-filter select:focus,
.text-input:focus {
  border-color: var(--ref-teal);
  box-shadow: 0 0 0 3px rgba(85, 167, 187, .13);
}

.artist-list-heading {
  border-bottom-color: var(--ref-line);
}

.artist-view-mark {
  color: var(--ref-teal);
}

.directory-back-link {
  color: var(--ref-teal);
}

/* Keep gender data and filters intact, but use one neutral visual treatment. */
.birthday-chip,
.birthday-chip.female,
.birthday-chip.male,
.birthday-chip.other,
.upcoming-item.female .upcoming-avatar,
.upcoming-item.male .upcoming-avatar,
.upcoming-item.other .upcoming-avatar,
.person-card.female .person-avatar,
.person-card.male .person-avatar,
.person-card.other .person-avatar,
.age-avatar.female,
.age-avatar.male,
.age-avatar.other,
.age-male .age-card-icon,
.age-female .age-card-icon {
  background: #eef1f3;
  color: #59636b;
}

.person-date,
.age-number {
  color: var(--ref-teal);
}

.legend-female,
.legend-male,
.legend-other {
  background: #9aa5ad;
}

.calendar-legend {
  color: var(--ref-muted);
}

.modal-backdrop {
  background: rgba(27, 32, 36, .38);
}

.modal {
  border-color: var(--ref-line);
  border-radius: 17px;
  background: var(--ref-panel);
  box-shadow: 0 24px 60px rgba(27, 32, 36, .16);
}

.modal-close {
  background: #eef1f3;
  color: var(--ref-muted);
}

@media (max-width: 1099px) {
  .site-masthead,
  .site-navigation {
    background: var(--ref-sidebar);
  }

  .site-navigation .nav-link.is-active,
  .site-navigation .nav-link[aria-current="page"] {
    background: var(--ref-panel);
    color: var(--ref-ink);
    box-shadow: inset 3px 0 0 var(--ref-teal);
  }

  .site-masthead .wordmark {
    max-width: min(100%, 280px);
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 20px;
    line-height: 1.12;
  }
}

@media (max-width: 700px) {
  .artist-overview-card {
    min-height: 72px;
  }

  .artist-directory-panel {
    padding: 15px;
  }
}


/* Artist directory panel */
.people-section { color: var(--ref-ink); }
.people-heading,
.artist-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.people-heading { margin-bottom: 7px; }
.people-heading h2 { margin: 0; color: var(--ref-ink); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.artist-directory-intro { margin: 0 0 22px; color: var(--ref-muted); font-size: 13px; }
.artist-overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.artist-overview-card { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 14px 16px; border: 1px solid var(--ref-line); border-radius: 13px; background: var(--ref-panel); color: var(--ref-ink); font-size: 13px; font-weight: 650; box-shadow: 0 2px 8px rgba(31, 35, 40, .025); }
.artist-overview-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--ref-teal-soft); color: var(--ref-teal); font-size: 20px; }
.artist-directory-panel { padding: 21px; border: 1px solid var(--ref-line); border-radius: 15px; background: var(--ref-panel); box-shadow: none; }
.artist-directory-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .34fr); gap: 12px; margin-bottom: 24px; }
.artist-directory-search, .artist-company-filter { display: block; min-width: 0; }
.artist-directory-search input, .artist-company-filter select { width: 100%; min-height: 42px; padding: 10px 13px; border: 1px solid #dfe3e6; border-radius: 11px; background: #fff; color: var(--ref-ink); font: inherit; font-size: 13px; outline: none; }
.artist-directory-search input:focus, .artist-company-filter select:focus { border-color: var(--ref-teal); box-shadow: 0 0 0 3px rgba(85, 167, 187, .13); }
.artist-list-heading { padding-bottom: 13px; border-bottom: 1px solid var(--ref-line); }
.artist-list-heading h3 { margin: 0; color: var(--ref-ink); font-size: 17px; letter-spacing: -.02em; }
#artist-list-count { color: var(--ref-muted); font-size: 13px; font-weight: 500; }
.artist-view-mark { color: var(--ref-teal); font-size: 18px; }
.artist-directory-panel > .toolbar { margin: 13px 0 15px; }

@media (max-width: 700px) {
  .people-heading { align-items: flex-start; flex-direction: column; }
  .people-heading .primary-button { width: 100%; }
  .artist-overview-stats { gap: 8px; }
  .artist-overview-card { min-height: 72px; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 5px; text-align: center; font-size: 11px; }
  .artist-overview-icon { width: 29px; height: 29px; font-size: 16px; }
  .artist-directory-panel { padding: 15px; }
  .artist-directory-filters { grid-template-columns: 1fr; }
  .artist-list-heading h3 { font-size: 15px; }
}


@media (min-width: 1100px) {
  .site-masthead .wordmark {
    max-width: 205px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.14;
  }
}

/* Gender remains available in data and filters, but is not emphasized in this visual mode. */
.calendar-legend {
  display: none;
}


@media (min-width: 1100px) {
  .site-masthead .wordmark::before {
    display: block !important;
    margin: 0 0 9px !important;
  }

  .site-masthead .wordmark {
    max-width: 210px;
    font-size: 16px;
    letter-spacing: .02em;
    line-height: 1.18;
  }
}


@media (max-width: 1099px) {
  .site-masthead .wordmark {
    text-align: center;
  }

  .site-masthead .wordmark::before {
    display: block !important;
    margin: 0 auto 8px !important;
  }
}


/* Mobile performance guardrails: keep transitions crisp without costly compositor work. */
.person-card,
.catalog-card,
.company-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 150px;
}

@media (max-width: 1099px) {
  .navigation-overlay,
  .modal-backdrop {
    backdrop-filter: none;
  }

  .person-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(31, 35, 40, .025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .navigation-overlay,
  .modal-backdrop {
    transition: none !important;
  }
}


/* One typeface across the entire product: iOS-style system sans. */
:root {
  --site-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

html,
body,
button,
input,
textarea,
select,
*::before,
*::after {
  font-family: var(--site-font) !important;
}


*,
*::before,
*::after {
  font-family: var(--site-font) !important;
}


/* Desktop composition matched to the supplied reference: top header + left rail + content canvas. */
@media (min-width: 1100px) {
  .page-shell {
    display: grid;
    grid-template-columns: 312px minmax(0, 1fr);
    grid-template-rows: 154px auto minmax(0, 1fr) auto;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    background: var(--ref-bg);
  }

  .site-header {
    display: contents;
  }

  .site-masthead {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 154px;
    padding: 28px 38px;
    border: 0;
    border-bottom: 1px solid var(--ref-line);
    border-radius: 0;
    background: var(--ref-panel);
    color: var(--ref-ink);
  }

  .site-masthead .site-kicker {
    display: none;
  }

  .site-masthead .brand-home {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .site-masthead .wordmark {
    max-width: none;
    color: var(--ref-ink);
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.08;
    white-space: nowrap;
  }

  .site-masthead .wordmark::before {
    display: inline-grid !important;
    width: 72px;
    height: 72px;
    margin: 0 17px 0 0 !important;
    vertical-align: middle;
    border-radius: 17px;
    background: #252d35;
    color: #fff;
    content: "▣";
    font-size: 34px;
  }

  .site-masthead .site-tagline {
    margin: 6px 0 0 89px;
    color: var(--ref-muted);
    font-size: 20px;
    line-height: 1.2;
  }

  .site-masthead .masthead-tools {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
  }

  .site-masthead .language-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    color: var(--ref-muted);
    font-size: 0;
  }

  .site-masthead .language-picker select,
  .site-masthead .lang-selector {
    width: 84px;
    min-height: 48px;
    padding: 8px 13px;
    border: 0;
    border-radius: 999px;
    background: #f0f1f3;
    color: var(--ref-ink);
    font-size: 20px;
    text-align: center;
  }

  .site-masthead .sync-trigger,
  .site-masthead .auth-trigger,
  .site-masthead .account-trigger {
    min-height: 48px;
    border: 1px solid var(--ref-line);
    border-radius: 999px;
    background: var(--ref-panel);
    color: var(--ref-ink);
    font-size: 13px;
  }

  .site-masthead .auth-trigger {
    background: var(--ref-black);
    color: #fff;
  }

  .navigation-trigger {
    position: absolute;
    z-index: 42;
    top: 188px;
    left: 20px;
    display: flex;
    width: 272px;
    min-height: 70px;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 12px 28px;
    border: 1px solid #c7cbd0;
    border-radius: 999px;
    background: transparent;
    color: #555b62;
    box-shadow: none;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }

  .navigation-trigger-icon {
    font-size: 31px;
    line-height: 1;
  }

  .navigation-trigger:hover,
  .navigation-trigger:focus-visible {
    background: rgba(255, 255, 255, .45);
    color: var(--ref-ink);
    transform: none;
  }

  .navigation-overlay {
    display: none !important;
  }

  .site-navigation {
    position: relative;
    z-index: 10;
    grid-column: 1;
    grid-row: 2 / 5;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    min-height: calc(100vh - 154px);
    padding: 94px 12px 34px;
    border: 0;
    border-right: 1px solid #d8dde1;
    background: var(--ref-sidebar);
    box-shadow: none;
    transform: none;
  }

  .site-navigation > .nav-link,
  .site-navigation > .artist-nav,
  .site-navigation .artist-nav > .nav-link {
    width: 100%;
    flex: 0 0 auto;
  }

  .site-navigation > .nav-link,
  .site-navigation .artist-nav > .nav-link {
    min-height: 68px;
    justify-content: flex-start;
    padding: 15px 18px;
    border-radius: 12px;
    color: #596168;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
  }

  .site-navigation .nav-link::before {
    width: 31px;
    margin-right: 13px;
    color: #606a72;
    font-size: 25px;
  }

  .site-navigation .nav-link:hover,
  .site-navigation .nav-link:focus-visible {
    background: rgba(255, 255, 255, .55);
    color: var(--ref-ink);
  }

  .site-navigation .nav-link.is-active,
  .site-navigation .nav-link[aria-current="page"] {
    border: 0;
    background: var(--ref-panel);
    color: var(--ref-ink);
    box-shadow: inset 4px 0 0 var(--ref-teal);
    font-weight: 650;
  }

  .site-navigation .artist-dropdown {
    position: static;
    min-width: 0;
    margin: 0 0 5px 45px;
    padding: 5px;
    border: 0;
    border-left: 1px solid #cbd2d6;
    border-radius: 0;
    background: rgba(255, 255, 255, .35);
    box-shadow: none;
  }

  .site-navigation .artist-dropdown a {
    padding: 10px 12px;
    color: var(--ref-muted);
    font-size: 14px;
  }

  .site-search-area {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    padding: 28px 38px 0;
    background: var(--ref-bg);
  }

  main {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
    padding: 30px 38px 68px;
    background: var(--ref-bg);
  }

  .site-footer {
    grid-column: 2;
    grid-row: 4;
    min-width: 0;
    margin: 0;
    padding: 22px 38px 30px;
    border-top: 1px solid var(--ref-line);
    background: var(--ref-panel);
  }

  body[data-page="companies"] .site-search-area {
    display: none;
  }

  body[data-page="companies"] main {
    grid-row: 2 / 4;
    padding-top: 52px;
  }

  body[data-page="companies"] .companies-section {
    margin-top: 0;
  }

  .companies-section .catalog-heading {
    align-items: center;
  }

  .companies-section .catalog-title {
    font-size: clamp(30px, 3vw, 44px);
    letter-spacing: -.04em;
  }

  .companies-section .catalog-intro {
    font-size: 21px;
    color: var(--ref-muted);
  }
}


@media (min-width: 1100px) {
  .page-shell {
    display: block;
    min-height: 100vh;
  }

  .site-header {
    display: block;
    min-height: 154px;
  }

  .site-masthead {
    min-height: 154px;
    height: 154px;
  }

  .site-masthead .masthead-tools {
    width: auto;
    max-width: 360px;
    justify-content: flex-end;
  }

  .site-masthead .masthead-tools > * {
    width: auto !important;
    flex: 0 0 auto;
  }

  .site-navigation {
    position: fixed;
    z-index: 30;
    top: 154px;
    bottom: 0;
    left: 0;
    width: 312px;
    min-height: 0;
    height: calc(100vh - 154px);
    padding: 94px 12px 34px;
    overflow-y: auto;
  }

  .navigation-trigger {
    position: fixed;
    z-index: 42;
    top: 188px;
    left: 20px;
  }

  .site-search-area,
  main,
  .site-footer {
    margin-left: 312px;
  }

  .site-search-area {
    min-height: 0;
  }

  main {
    min-height: calc(100vh - 280px);
  }

  .site-footer {
    min-height: 66px;
  }

  body[data-page="companies"] main {
    padding-top: 52px;
  }
}


@media (min-width: 1100px) {
  .site-header {
    width: 100%;
    height: 154px;
    min-height: 154px;
  }

  .site-masthead {
    width: 100%;
  }
}


@media (min-width: 1100px) {
  .site-masthead .masthead-tools {
    width: max-content;
    max-width: none;
    overflow: visible;
  }

  .site-masthead .sync-trigger { order: 1; }
  .site-masthead .auth-trigger { order: 2; }
  .site-masthead .account-trigger { order: 2; }
  .site-masthead .language-picker { order: 3; }

  .site-masthead .language-picker select,
  .site-masthead .lang-selector {
    position: relative;
    z-index: 3;
  }
}


@media (min-width: 1100px) {
  .site-masthead .masthead-tools {
    flex-wrap: nowrap;
  }

  .site-masthead .language-picker {
    flex: 0 0 84px;
    width: 84px;
  }

  .site-masthead .auth-trigger,
  .site-masthead .sync-trigger,
  .site-masthead .account-trigger {
    flex: 0 0 auto;
    min-width: 76px;
    white-space: nowrap;
  }
}


@media (min-width: 1100px) {
  .site-masthead .sync-trigger,
  .site-masthead .auth-trigger {
    display: none;
  }

  .site-masthead .language-picker {
    margin-left: auto;
  }
}

/* Sidebar finishing details: restrained line icons and account actions. */
@media (min-width: 1100px) {
  .site-navigation > .nav-link::before,
  .site-navigation .artist-nav > .nav-link::before {
    display: inline-grid;
    place-items: center;
    width: 31px;
    margin-right: 13px;
    color: #606a72;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
  }

  .site-navigation > .nav-link:nth-child(1)::before { content: "⌂"; }
  .site-navigation > .artist-nav:nth-child(2) .nav-link::before { content: "♙"; }
  .site-navigation > .artist-nav:nth-child(3) .nav-link::before { content: "▣"; }
  .site-navigation > .artist-nav:nth-child(4) .nav-link::before { content: "▤"; }
  .site-navigation > .nav-link:nth-child(5)::before { content: "♡"; }
  .site-navigation > .nav-link:nth-child(6)::before { content: "◷"; }
  .site-navigation > .nav-link:nth-child(7)::before { content: "▥"; }

  .site-navigation .nav-link.is-active::before,
  .site-navigation .nav-link[aria-current="page"]::before {
    color: var(--ref-teal);
  }

  .sidebar-footer {
    position: fixed;
    z-index: 31;
    left: 0;
    bottom: 0;
    display: flex;
    width: 312px;
    flex-direction: column;
    gap: 3px;
    padding: 13px 12px 17px;
    border-top: 1px solid #d8dde1;
    background: var(--ref-sidebar);
  }

  .sidebar-action {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #596168;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
  }

  .sidebar-action > span:first-child {
    display: inline-grid;
    width: 31px;
    place-items: center;
    color: #606a72;
    font-size: 22px;
  }

  .sidebar-action:hover,
  .sidebar-action:focus-visible {
    background: rgba(255, 255, 255, .55);
    color: var(--ref-ink);
    outline: none;
  }

  .sidebar-logout {
    color: #687178;
  }
}
