@media (min-width: 761px) and (orientation: landscape) {
  .chat-model-control {
    position: relative;
    overflow: visible;
  }

  .chat-model-control[aria-disabled="true"] {
    cursor: default;
    opacity: 0.48;
  }

  .chat-reasoning-progress {
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    width: min(1.6rem, 78%);
    height: 0.18rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    pointer-events: none;
  }

  .chat-reasoning-progress__segment {
    min-width: 0;
    height: 0.15rem;
    flex: 1 1 0;
    border-radius: 0.06rem;
    background: #dfe3ee;
    transform: skewX(-26deg);
    transition: background-color 160ms ease, box-shadow 160ms ease;
  }

  .chat-reasoning-progress__segment.is-active {
    background: #5c5fff;
    box-shadow: 0 0.1rem 0.3rem rgba(79, 99, 255, 0.24);
  }

  .chat-model-popover,
  .chat-model-submenu {
    border: 1px solid rgba(120, 140, 180, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1rem 2.5rem rgba(40, 60, 120, 0.16);
    backdrop-filter: blur(1.1rem);
  }

  .chat-model-popover {
    position: absolute;
    left: clamp(6.5rem, 9vw, 8rem);
    bottom: calc(100% + 0.65rem);
    z-index: 32;
    width: clamp(11.5rem, 16vw, 14rem);
    padding: 0.55rem;
    animation: chatModelPopoverIn 160ms ease-out;
  }

  .chat-model-popover__head {
    min-height: 2rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.15rem 0.55rem 0.45rem;
    color: #303751;
  }

  .chat-model-popover__head img,
  .chat-model-current > img:first-child,
  .chat-model-provider > img {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    flex: 0 0 auto;
    opacity: 0.7;
  }

  .chat-model-control > img:first-child {
    object-fit: contain;
  }

  .chat-model-popover__head strong {
    font-size: 0.78rem;
    letter-spacing: 0;
  }

  .chat-reasoning-options {
    display: grid;
    gap: 0.16rem;
  }

  .chat-model-option,
  .chat-model-current,
  .chat-model-provider {
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0.72rem;
    color: #333b55;
    background: transparent;
    display: grid;
    align-items: center;
    text-align: left;
  }

  .chat-model-option {
    min-height: 2.15rem;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.52rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.76rem;
  }

  .chat-model-option:hover,
  .chat-model-current:hover,
  .chat-model-provider:hover {
    background: rgba(238, 242, 255, 0.92);
  }

  .chat-model-option.is-selected,
  .chat-model-provider.is-selected {
    color: #4f63ff;
    background: rgba(79, 99, 255, 0.09);
  }

  .chat-model-option__segments {
    width: 2.25rem;
    height: 0.2rem;
    display: flex;
    gap: 0.1rem;
  }

  .chat-model-option__segments i {
    min-width: 0;
    height: 100%;
    flex: 1 1 0;
    border-radius: 0.06rem;
    background: #dfe3ee;
    transform: skewX(-26deg);
  }

  .chat-model-option__segments i.is-active {
    background: #5c5fff;
  }

  .chat-model-current {
    min-height: 3rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.52rem;
    border-top: 1px solid rgba(120, 140, 180, 0.16);
    border-radius: 0.75rem;
    margin-top: 0.35rem;
    padding: 0.45rem 0.55rem;
  }

  .chat-model-current > span,
  .chat-model-provider > span {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
  }

  .chat-model-current small,
  .chat-model-provider small {
    color: #7f879e;
    font-size: 0.64rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-model-current strong,
  .chat-model-provider strong {
    font-size: 0.7rem;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-model-current__arrow {
    width: 0.9rem;
    height: 0.9rem;
    transform: rotate(-90deg);
    opacity: 0.55;
    transition: transform 160ms ease;
  }

  .chat-model-current[aria-expanded="true"] .chat-model-current__arrow {
    transform: rotate(90deg);
  }

  .chat-model-submenu {
    position: absolute;
    left: calc(100% + 0.55rem);
    bottom: 0;
    z-index: 33;
    width: clamp(11.5rem, 16vw, 14rem);
    max-height: min(20rem, 56dvh);
    overflow-y: auto;
    padding: 0.5rem;
    animation: chatModelSubmenuIn 160ms ease-out;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 91, 255, 0.38) transparent;
  }

  .chat-model-provider {
    min-height: 2.8rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0.42rem 0.52rem;
  }

  .chat-model-provider__mark {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: transparent;
  }

  .chat-model-provider.is-selected .chat-model-provider__mark {
    background: #5c5fff;
    box-shadow: 0 0 0 0.2rem rgba(79, 99, 255, 0.13);
  }

  @keyframes chatModelPopoverIn {
    from { opacity: 0; transform: translateY(0.35rem) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes chatModelSubmenuIn {
    from { opacity: 0; transform: translateX(-0.35rem) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
  }
}
