@layer views {
  /* ── calendar import: the calendars a class follows, and adding one ── */
  .cal-dialog .modal-body { gap: 14px; }
  .cal-dialog h2:focus { outline: none; }

  .cal-feeds { display: grid; gap: 8px; }
  .cal-feed {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--bg-raise);
  }
  .cal-feed-main { display: grid; gap: 2px; min-width: 0; }
  .cal-host { color: var(--fg); font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
  /* Only the start of an address is ever shown; it still gets one line at most. */
  .cal-hint { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal-meta, .cal-status { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
  .cal-status[data-tone="error"] { color: var(--wrong); font-weight: 600; }
  .cal-feed-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  .cal-note { font-size: 12.5px; }

  .cal-add { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
  .cal-add-title { font-size: 15px; color: var(--fg); letter-spacing: -0.01em; }
  /* 16px or more: phones zoom the page into any smaller field you tap. */
  .cal-add .input { font-size: 16px; }
  .cal-add > .pill { justify-self: start; }

  .cal-help { font-size: 13.5px; color: var(--fg-2); }
  .cal-help > summary { cursor: pointer; width: fit-content; font-size: 13px; font-weight: 600; color: var(--muted); }
  .cal-help > summary:hover { color: var(--fg); }
  .cal-help[open] > summary { margin-bottom: 10px; }
  .cal-help dl { display: grid; gap: 10px; margin: 0; }
  .cal-help dt { font-weight: 700; color: var(--fg); }
  .cal-help dd { margin: 2px 0 0; overflow-wrap: anywhere; }
  .cal-help p { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

  .empty-actions { display: flex; flex-wrap: wrap; gap: 8px; }

  /* Phones: a calendar's buttons go under its name. */
  @media (max-width: 480px) {
    .cal-feed { grid-template-columns: minmax(0, 1fr); align-items: start; }
  }
}
