/* ---- suggestions: proposals for new routines ---- */
/* Tokens only, so both themes work. The dialog itself is sized by the page. */

.sugg-intro { margin-bottom: 14px; }

.sugg-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.sugg-card.sugg-fresh { border-color: var(--accent); }

.sugg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.sugg-title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.sugg-new { flex: none; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.sugg-seen { margin: 0; font-size: .88rem; color: var(--ink); max-width: 72ch; overflow-wrap: anywhere; }
.sugg-meta { margin: 0; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }

.sugg-sessions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
/* A session title can be long: it wraps inside its button and never widens the card. */
.sugg-sessions .act { max-width: 100%; white-space: normal; text-align: left; font-weight: 500; }
.sugg-sessions .sugg-gone { color: var(--muted); font-size: .9em; padding: 4px 6px; border: 1px dashed var(--line, currentColor); border-radius: 6px; }

.sugg-proposes { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 10px; border-radius: 8px; background: var(--sunk); font-size: .86rem; }
.sugg-proposes b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.sugg-proposes span { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }

.sugg-fold { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.sugg-fold .act { padding-left: 0; }
.sugg-fold .act[aria-expanded="true"] .ic { transform: rotate(180deg); }
.sugg-draft { align-self: stretch; margin: 0; padding: 9px 11px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--sunk); color: var(--ink); font-family: var(--f-mono); font-size: .78rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-height: 240px; }

.sugg-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 2px; }

/* The dashboard panel: a compact row with the main action at its end. */
.sugg-row .act { flex: none; }
.sugg-more { padding-top: 6px; font-size: .78rem; }

@media (max-width: 559px) {
  .sugg-card { padding: 12px; }
  /* The main action takes a full line, the two ways to say no share the next one. */
  .sugg-acts .act.primary { flex: 1 1 100%; }
  .sugg-acts .act:not(.primary) { flex: 1 1 0; }
  .sugg-draft { max-height: 200px; }
}
