/* My list + share sheets. Standalone: every app token has a fallback. */
.ml-dlg {
  --l-bg: var(--bg, #f5f6f8); --l-surface: var(--surface, #fff); --l-ink: var(--ink, #14161a);
  --l-muted: var(--muted, #596070); --l-line: var(--line, #e2e5ea); --l-line2: var(--line-strong, #8c94a1);
  --l-accent: var(--accent, #2446c7); --l-accent-ink: var(--accent-ink, #fff);
  --l-safe: var(--safe, #0f6e3b); --l-safe-bg: var(--safe-bg, #e5f4ec);
  --l-likely: var(--likely, #875700); --l-likely-bg: var(--likely-bg, #fbf0d9);
  --l-possible: var(--possible, #465166); --l-possible-bg: var(--possible-bg, #edf0f4);
  --l-r: var(--r, 12px); --l-mono: "Geist Mono", ui-monospace, monospace;
}
.ml-dlg {
  box-sizing: border-box; padding: 0; border: 0; color: var(--l-ink); background: var(--l-bg);
  font: 16px/1.5 Geist, system-ui, sans-serif; font-variant-numeric: tabular-nums;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; overflow: hidden;
}
.ml-dlg[open] { display: flex; flex-direction: column; }
.ml-dlg::backdrop { background: rgba(10, 12, 16, .55); }
.ml-dlg * { box-sizing: border-box; }
@media (min-width: 721px) {
  .ml-dlg { width: 720px; height: auto; max-height: 90vh; margin: auto; border-radius: 16px; border: 1px solid var(--l-line); }
}
.ml-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--l-surface); border-bottom: 1px solid var(--l-line); flex: none; }
.ml-head h1 { margin: 0; font-size: 17px; font-weight: 600; }
.ml-head h1 span { color: var(--l-muted); font-weight: 400; }
.ml-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px; overscroll-behavior: contain; }
.ml-foot { display: flex; gap: 10px; padding: 10px 16px 16px; background: var(--l-surface); border-top: 1px solid var(--l-line); flex: none; }
.ml-btn, .ml-ghost, .ml-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: inherit;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--l-ink);
}
.ml-btn { flex: 1; border-radius: 99px; border: 0; background: var(--l-accent); color: var(--l-accent-ink); min-height: 48px; padding: 0 16px; }
.ml-btn.sec { background: var(--l-surface); color: var(--l-ink); border: 1px solid var(--l-line2); }
.ml-icon { width: 48px; min-height: 48px; border-radius: 99px; border: 1px solid var(--l-line2); background: var(--l-surface); flex: none; padding: 0; }
.ml-ghost { border: 0; background: transparent; color: var(--l-accent); font-weight: 500; font-size: 14px; padding: 0 8px; }
.ml-ghost.mute { color: var(--l-muted); }
.ml-dlg button:focus-visible, .ml-dlg a:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 2px; }
.ml-dlg svg { flex: none; }
.ml-banner { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--l-r); background: var(--l-likely-bg); color: var(--l-likely); font-size: 13px; line-height: 1.4; margin-bottom: 12px; }
.ml-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ml-card { display: flex; gap: 10px; align-items: flex-start; background: var(--l-surface); border: 1px solid var(--l-line); border-radius: var(--l-r); padding: 12px 6px 12px 14px; }
.ml-n { font: 500 15px var(--l-mono); width: 22px; flex: none; color: var(--l-muted); padding-top: 1px; }
.ml-main { flex: 1; min-width: 0; }
.ml-t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.ml-t b { font-size: 15px; font-weight: 600; }
.ml-pill { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--l-possible-bg); color: var(--l-possible); }
.ml-pill.SAFE { background: var(--l-safe-bg); color: var(--l-safe); }
.ml-pill.LIKELY { background: var(--l-likely-bg); color: var(--l-likely); }
.ml-sub { font-size: 13px; color: var(--l-muted); margin-top: 2px; }
.ml-sub.ink { color: var(--l-ink); }
.ml-yr { margin-top: 6px; font-size: 12.5px; color: var(--l-muted); display: flex; flex-direction: column; gap: 2px; }
.ml-yr span { display: block; }
.ml-yr i { font-style: normal; font-family: var(--l-mono); color: var(--l-ink); }
.ml-yr b { font-weight: 500; margin-right: 4px; }
.ml-main .rm { margin: 2px 0 -6px -8px; font-size: 13px; }
.ml-bond { margin-top: 6px; font-size: 12.5px; color: var(--l-muted); }
.ml-ops { display: flex; flex-direction: column; flex: none; }
.ml-ops button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--l-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ml-ops button:disabled { color: var(--l-line2); opacity: .45; cursor: default; }
.ml-empty { text-align: center; color: var(--l-muted); padding: 32px 8px; font-size: 14px; }
.ml-note { margin: 12px 4px 0; font-size: 12.5px; line-height: 1.5; color: var(--l-muted); }
.ml-msg { min-height: 20px; margin: 8px 4px 0; font-size: 13px; color: var(--l-safe); }
.ml-print-h { display: none; }
.ml-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 16px; border-radius: 99px; background: var(--l-ink); color: var(--l-bg); font: 14px Geist, system-ui, sans-serif; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.ml-toast button { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
/* share sheet */
.ml-card-wrap { display: flex; justify-content: center; }
.ml-canvas { width: 100%; max-width: 340px; background: #2446c7; height: auto; aspect-ratio: 1080 / 1350; border-radius: 10px; box-shadow: 0 6px 24px rgba(20, 22, 26, .16); }
.ml-canvas.story { max-width: 240px; aspect-ratio: 1080 / 1920; }
.ml-canvas[hidden], .ml-btn[hidden] { display: none; }
.ml-seg { display: flex; gap: 4px; padding: 4px; margin: 0 auto 12px; max-width: 340px; background: var(--l-possible-bg); border-radius: 99px; }
.ml-seg button { flex: 1; min-height: 44px; border: 0; border-radius: 99px; background: transparent; color: var(--l-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ml-seg button[aria-pressed="true"] { background: var(--l-surface); color: var(--l-accent); box-shadow: 0 1px 3px rgba(20, 22, 26, .15); }
.ml-cap { text-align: center; margin: 8px 0 0; font-size: 12px; color: var(--l-muted); }
.ml-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ml-foot.col { flex-wrap: wrap; }
.ml-foot.col .ml-btn { flex: 1 1 140px; white-space: nowrap; }
/* The primary share action gets its own full-width row, so its label never wraps. */
.ml-foot.col .ml-btn:not(.sec) { flex-basis: 100%; }
@media print {
  body > *:not(.ml-dlg-list) { display: none !important; }
  .ml-dlg-list { display: block !important; position: static !important; inset: auto !important; width: auto !important; max-width: none !important; height: auto !important; max-height: none !important; overflow: visible !important; border: 0 !important; background: #fff !important; color: #000 !important; }
  .ml-dlg-list * { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  .ml-dlg-list .ml-head, .ml-dlg-list .ml-foot, .ml-dlg-list .ml-banner, .ml-dlg-list .ml-ops, .ml-dlg-list .ml-note, .ml-dlg-list .ml-msg, .ml-toast { display: none !important; }
  .ml-dlg-list .ml-body { overflow: visible !important; padding: 0 !important; }
  .ml-print-h { display: block; margin: 0 0 12px; font-size: 18px; font-weight: 700; }
  .ml-card { break-inside: avoid; border: 0 !important; border-bottom: 1px solid #000 !important; border-radius: 0; padding: 8px 0; }
  .ml-pill { border: 1px solid #000; }
}
