/* Approved desktop toolbar. Mobile styles and DOM order stay unchanged. */
.desktop-views,
.desktop-filter-trigger {
  display: none;
}
@media (min-width: 901px) {
  [data-desktop-toolbar='true'] .topbar {
    height: 56px;
    min-height: 56px;
    padding: 0 20px;
    gap: 20px;
    flex-wrap: nowrap;
  }
  [data-desktop-toolbar='true'] .topbar .logo {
    font-size: 26px;
    flex: none;
  }
  [data-desktop-toolbar='true'] .desktop-views {
    display: flex;
    position: relative;
    align-self: stretch;
    gap: 20px;
    margin-left: 4px;
    flex: none;
  }
  [data-desktop-toolbar='true'] .desktop-views button {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    padding: 0 2px;
    min-height: 44px;
    font-size: 15px;
    color: #536278;
    display: flex;
    align-items: center;
    gap: 7px;
  }
  [data-desktop-toolbar='true'] .desktop-views svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
  }
  [data-desktop-toolbar='true'] .desktop-views button[aria-pressed='true'] {
    border-bottom-color: #21447b;
    color: #142446;
    font-weight: 700;
  }
  [data-desktop-toolbar='true'] .desktop-views button:hover {
    background: #f4f6f8;
    color: #142446;
  }
  [data-desktop-toolbar='true'] .topbar .masthead-picker {
    display: none;
  }
  [data-desktop-toolbar='true'] .topbar > .time-window {
    margin-left: auto;
    gap: 0;
    border: 1px solid #d5d9de;
    flex: none;
    height: 38px;
  }
  [data-desktop-toolbar='true'] .topbar > .time-window button {
    height: 36px;
    min-width: 43px;
    padding: 0 7px;
    font-size: 14px;
    background: white;
    color: #536278;
  }
  [data-desktop-toolbar='true'] .topbar > .time-window button[aria-pressed='true'] {
    background: #e8eef6;
    color: #142446;
    font-weight: 700;
  }
  [data-desktop-toolbar='true'] .topbar .toolbar-controls {
    display: flex;
    flex: none;
  }
  [data-desktop-toolbar='true'] .topbar .filters {
    display: flex;
    gap: 0;
    flex: none;
    border: 1px solid #d5d9de;
    height: 44px;
    justify-content: flex-start;
  }
  [data-desktop-toolbar='true'] .topbar .filters label {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    min-width: 126px;
    padding: 3px 7px 2px;
    border-right: 1px solid #d5d9de;
  }
  [data-desktop-toolbar='true'] .topbar .filters label > span {
    display: block;
    font-size: 11px;
    line-height: 14px;
    color: #536278;
    padding-left: 3px;
  }
  [data-desktop-toolbar='true'] .topbar .filters select {
    height: 24px;
    font-size: 14px;
    max-width: none;
    width: 142px;
    padding: 0 3px;
    background: transparent;
  }
  [data-desktop-toolbar='true'] .topbar .kind-filters {
    display: flex;
    align-items: center;
    gap: 0;
  }
  [data-desktop-toolbar='true'] .topbar #unknown {
    font-size: 13px;
    min-height: 42px;
    padding: 0 10px;
    background: white;
    color: #21447b;
  }
  [data-desktop-toolbar='true'] .topbar #unknown[aria-pressed='true'] {
    background: #e8eef6;
    color: #142446;
  }
  [data-desktop-toolbar='true'] .topbar .method {
    font-size: 13px;
    white-space: nowrap;
    margin: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding-left: 16px;
    border-left: 1px solid #d5d9de;
  }
  [data-desktop-toolbar='true'] .topbar .filters select:focus-visible,
  [data-desktop-toolbar='true'] .desktop-views button:focus-visible,
  .desktop-filter-trigger:focus-visible {
    outline: 2px solid #21447b;
    outline-offset: 2px;
  }
  [data-desktop-toolbar='true'] .topbar .list-toggle {
    display: none;
  }
}
@media (min-width: 901px) and (max-width: 1399px) {
  [data-desktop-toolbar='true'] .topbar {
    gap: 16px;
    padding-inline: 16px;
  }
  [data-desktop-toolbar='true'] .topbar .toolbar-controls {
    display: none;
  }
  [data-desktop-toolbar='true'] .topbar .toolbar-controls[data-desktop-filters-open='true'] {
    display: flex;
    position: fixed;
    z-index: 30;
    inset: auto;
    left: var(--filters-left, 16px);
    top: var(--filters-top, 62px);
    width: 350px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 80px);
    overflow: auto;
    margin: 0;
    padding: 16px;
    background: white;
    color: #142446;
    border: 1px solid #8a98ae;
    box-shadow: 0 8px 24px #14244626;
  }
  [data-desktop-toolbar='true'] .topbar .toolbar-controls .filters {
    height: auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    border: 0;
    gap: 12px;
  }
  [data-desktop-toolbar='true'] .topbar .toolbar-controls .filters label {
    border: 1px solid #d5d9de;
    padding: 5px 8px;
    width: 100%;
  }
  [data-desktop-toolbar='true'] .topbar .toolbar-controls .filters select {
    width: 100%;
    height: 30px;
    font-size: 15px;
  }
  [data-desktop-toolbar='true'] .topbar .toolbar-controls .kind-filters {
    display: grid;
    gap: 12px;
    width: 100%;
  }
  [data-desktop-toolbar='true'] .topbar .toolbar-controls #unknown {
    border: 1px solid #d5d9de;
    font-size: 14px;
  }
  [data-desktop-toolbar='true'] .desktop-filter-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    max-width: 245px;
    padding: 0 10px;
    background: white;
    border: 1px solid #d5d9de;
    color: #142446;
    font-size: 14px;
  }
  [data-desktop-toolbar='true'] .desktop-filter-trigger svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    flex: none;
  }
  [data-desktop-toolbar='true'] .desktop-filter-trigger .filter-caption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #536278;
  }
  [data-desktop-toolbar='true'] .desktop-filter-trigger[aria-expanded='true'] {
    background: #e8eef6;
    border-color: #21447b;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .desktop-views.layout-cue [data-layout-button] {
    animation: layout-cue 900ms ease-out 3;
  }
}
.pilot-links { display:flex;align-items:center;gap:16px;white-space:nowrap; }
.pilot-links a { min-height:44px;display:inline-flex;align-items:center; }
@media(max-width:900px) { .pilot-links .pilot-how { display:none; } }
