/* V102: compact phone headers; desktop settings retain equal panel heights. */
#root .mobile-profile-v102,
#root .reset-label-short-v102 {
  display: none;
}

#root .picks-heading-v102 .picks-title-v102 {
  display: contents;
}

#root .picks-heading-v102 .result-count-v74 {
  margin-left: auto;
}

#root .picks-heading-v102 .picks-exports-v102 {
  margin-left: 0;
}

#root .usage-title-v102 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#root .usage-title-v102 h2 {
  margin: 0;
}

#root .usage-title-v102 .count-badge {
  flex: none;
  width: auto;
  min-width: 30px;
  margin: 0;
}

#root .analysis-result-summary.latest-summary-v102 {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

@media (max-width: 760px) {
  #root .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start !important;
    column-gap: 12px;
    row-gap: 22px;
  }

  #root .page-title-v102 {
    min-width: 0;
  }

  #root .page-title-v102 .eyebrow {
    font-size: 10px;
    letter-spacing: 1.4px;
    line-height: 1.5;
  }

  #root .page-title-v102 h1 {
    font-size: clamp(26px, 7.3vw, 34px);
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  #root .mobile-profile-v102 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 66px;
    min-width: 0;
    min-height: 64px;
    margin: 0;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #d9e4ef;
    font-family: inherit;
    cursor: pointer;
    transform: none !important;
    transition: border-color .15s, background-color .15s;
  }

  #root .mobile-profile-v102 .avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 11px;
    overflow: hidden;
    font-size: 17px;
  }

  #root .mobile-profile-v102 .avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #root .mobile-profile-v102 strong {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
  }

  #root .mobile-profile-v102:hover {
    border-color: #628c39;
    background: #12221b;
    transform: none !important;
  }

  #root .mobile-profile-v102:focus-visible {
    outline: 2px solid #9deb28;
    outline-offset: 2px;
  }

  #root .mobile-profile-v102:disabled {
    opacity: .55;
    cursor: wait;
  }

  #root .topbar .topbar-actions-v11 {
    grid-column: 1 / -1;
    width: 100%;
  }

  #root .mobile-nav-history-v102 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #root .mobile-nav-history-v102 > span {
    white-space: nowrap;
  }

  #root .analysis-result-summary.latest-summary-v102 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  #root .analysis-result-summary.latest-summary-v102 > div {
    min-width: 0;
    grid-column: 1 !important;
  }

  #root .result-panel-v74 > .picks-heading-v102 {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
  }

  #root .picks-heading-v102 .picks-title-v102 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  #root .picks-title-v102 h2 {
    min-width: 0;
  }

  #root .picks-heading-v102 .result-count-v74 {
    flex: none;
    margin: 0;
    min-height: 32px;
    padding-inline: 10px !important;
  }

  #root .result-panel-v74 .picks-heading-v102 .picks-exports-v102 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px !important;
    width: 100%;
  }

  #root .result-panel-v74 .picks-exports-v102 > .image-download-button-v24,
  #root .result-panel-v74 .picks-exports-v102 > .report-download-v88 {
    grid-column: auto;
    grid-row: auto;
    width: 100% !important;
    min-width: 0;
    margin: 0;
  }

  #root .result-panel-v74 .picks-exports-v102 > .report-download-v88:only-child {
    grid-column: 1 / -1;
  }

  #root .result-panel-v74 .picks-exports-v102 .image-download-button-v24,
  #root .result-panel-v74 .picks-exports-v102 .report-download-v88 button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100% !important;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 8px !important;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 12px !important;
    line-height: 1.3;
    white-space: nowrap;
  }

  #root .picks-exports-v102 button > svg {
    flex: none;
    width: 16px;
    height: 16px;
  }

  #root .usage-list-v11 > .panel-heading {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 14px;
    padding: 18px 14px;
  }

  #root .usage-title-v102 {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  #root .usage-title-v102 h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
  }

  #root .reset-label-long-v102 {
    display: none;
  }

  #root .reset-label-short-v102 {
    display: inline;
  }

  #root .v95-list-heading > .v96-list-actions,
  #root .usage-list-v11 > .panel-heading > .usage-list-actions-v15 {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    align-items: stretch;
    width: 100%;
    margin: 0;
    gap: 8px;
  }

  #root .v95-list-heading > .v96-list-actions > button,
  #root .usage-list-v11 > .panel-heading > .usage-list-actions-v15 > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 9px 7px !important;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
  }

  #root .v96-list-actions > .history-delete-selected,
  #root .usage-list-v11 .usage-list-actions-v15 > .history-delete-selected {
    grid-column: 1 / -1;
  }

  #root .settings-page-v6 > .analysis-mode-card-v20:not(.is-active) {
    display: none !important;
  }

  #root .settings-page-v6 > .analysis-mode-card-v20.is-active {
    height: auto !important;
    min-height: 0 !important;
    align-self: start;
  }
}
