/* Your AI, its own page (yourai.js). The picker and steps below keep their
   cn-ai styles from style.css. */
.ya-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.ya-top-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ya-top-text b { font-size: 16px; font-weight: 600; color: var(--ink); }
.ya-top .ya-connect { flex: none; min-height: 44px; padding: 0 20px; }
.ya-can { margin: 0 0 22px; }
.ya-can-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.ya-can-list li { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--body, var(--ink)); overflow-wrap: anywhere; }
/* Your AI sits in the Connections block of the sidebar, but the red dot
   there is for apps that signed out, not for the AI. */
.rail.shell .sh-conns-bad .rail-btn[aria-label="Your AI"]::after { content: none; }
@media (max-width: 600px) {
  .ya-top { flex-direction: column; align-items: stretch; }
  .ya-top .ya-connect { width: 100%; }
  .ya-can-list { grid-template-columns: 1fr; }
}
/* Your AI cleanup (Conner, 2026-11-18): the account note and the green
   linked line, as on onboarding's Link your AI; More opens the rest. */
.cn-ais .cn-ai-more { margin: 8px 2px 4px; font-size: 13px; color: var(--muted); }
.cn-ais .cn-ai-linked { margin: 6px 2px 0; font: 600 14px var(--sans); color: #12B76A; }
.cn-ais .cn-ai-more-btn .cn-ai-ico { display: grid; place-items: center; font-weight: 700; }

/* Phone fit (2026-11-10): nothing on Your AI may scroll sideways at 360px or
   390px. These are scoped to the picker that follows .ya-can on this page, so
   style.css and the same picker elsewhere stay as they are. */
.ya-can ~ .cn-ais { min-width: 0; max-width: 100%; }
.ya-can ~ .cn-ais .cn-ai-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
@media (max-width: 560px) {
  .ya-can ~ .cn-ais .cn-ai-step { grid-template-columns: 30px minmax(0, 1fr); }
  .ya-can ~ .cn-ais .cn-ai-box { flex-wrap: wrap; max-width: 100%; }
  .ya-can ~ .cn-ais .cn-ai-box code { flex: 1 1 100%; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .ya-can ~ .cn-ais .cn-ai-panel { padding-left: 14px; padding-right: 14px; }
}
