/* Model identifiers remain part of the terminal on desktop. */
.term {
  pointer-events: auto;
}
.model-name {
  appearance: none;
  border: 0;
  border-bottom: 1px dotted currentColor;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-shadow: inherit;
  white-space: nowrap;
  cursor: copy;
}
.model-name:hover {
  color: var(--ink);
  border-bottom-style: solid;
}
.model-name:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
.mobile-models {
  display: none;
}
.model-copy-feedback {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -6px);
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border: 1px solid var(--accent);
  background: rgba(3, 7, 14, 0.94);
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.model-copy-feedback:empty {
  padding: 0;
  border: 0;
}
.model-copy-feedback.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  .title {
    bottom: calc(306px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-models {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    padding: 2px 1px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }
  .mobile-models:empty {
    display: none;
  }
  .mobile-models .model-name {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: var(--code);
    border: 1px solid var(--ink-faint);
    background: rgba(3, 7, 14, 0.62);
    font-family: var(--f-mono);
    font-size: 10px;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-copy-feedback {
    transition: none;
  }
}
