/* Your data, screen 6, your key, your bill: a two-way switch over two cards, what works on
   your machine (lilac) and what runs at OpenAI on your key (dashed, as OpenAI's ring is).
   Without a key, OpenAI's card waits and its door is empty; your machine's works on. The
   switch is native radios; the cards follow it with :has, so it works with no script. */
.dy-switch { margin-bottom: 18px; }
.dy-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(24 * var(--u)); align-items: start; }
.dy-card { padding: 20px 22px 20px; border: 2px solid var(--ink); border-radius: var(--radius-card); transition: background-color 0.25s ease, border-color 0.25s ease; }
.dy-machine { background: var(--lilac); }
.dy-openai { border-style: dashed; background: var(--paper); }
.dy-card-h { display: flex; align-items: center; min-height: 34px; font-size: 16px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.dy-ring { flex: none; width: 66px; height: 28px; margin-right: 10px; overflow: visible; }
.dy-door { opacity: 0; }

.dy-list { list-style: none; margin-top: 10px; }
.dy-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 11px 0; border-bottom: 1.5px solid var(--line-strong); font-size: 15.5px; line-height: 1.35; font-weight: 600; color: var(--ink); transition: color 0.25s ease; }
.dy-machine .dy-list li { border-color: var(--iris); }
.dy-wait { display: none; padding: 3px 10px; border-radius: 999px; background: var(--haze); font-size: 13px; font-weight: 700; color: var(--plum); white-space: nowrap; }

/* Insights, as the app draws a corner of it. */
.dy-insights { margin-top: 16px; padding: 12px 14px 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); }
.dy-ins-h { font-size: 14px; font-weight: 800; color: var(--ink); }
.dy-week { display: flex; gap: 5px; margin-top: 8px; }
.dy-week i { width: 14px; height: 14px; border-radius: 4px; background: var(--haze); }
.dy-week i.is-on { background: var(--sky); }
.dy-ins-line { margin-top: 8px; font-size: 13.5px; line-height: 1.4; font-weight: 700; color: var(--plum); }
.dy-foot { margin-top: 14px; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--plum); }
.dy-without { display: none; }

/* Without a key: what runs at OpenAI waits for one, and the door is empty. */
.dy:has(input[value="without"]:checked) .dy-openai { background: transparent; border-color: var(--muted); }
.dy:has(input[value="without"]:checked) .dy-openai .dy-list li { color: var(--muted); }
.dy:has(input[value="without"]:checked) .dy-wait { display: inline-flex; }
.dy:has(input[value="without"]:checked) .dy-key { opacity: 0; }
.dy:has(input[value="without"]:checked) .dy-door { opacity: 1; }
.dy:has(input[value="without"]:checked) .dy-with { display: none; }
.dy:has(input[value="without"]:checked) .dy-without { display: inline; }

@container demo (max-width: 560px) {
  .dy-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 1023.98px) {
  .dy-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dy-card { padding: 16px 16px 18px; }
  .dy-list li { font-size: 15px; }
}

/* ---------------------------------------------------------------- motion */
.dy-key, .dy-door { transition: opacity 0.3s ease; }
