/* Add to Telegram dialog (partials/_telegram_add.html) */
dialog.tg-add { width: min(600px, calc(100vw - 2rem)); }
.tg-add-ways { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; margin-top: 16px; }
.tg-add-ways .micro { margin-bottom: 8px; color: var(--label-3); }
/* A code needs dark on light to scan, so the tile stays white in every theme. */
.tg-add-qr { box-sizing: border-box; width: 200px; height: 200px; padding: 12px; border-radius: var(--r-md); background: var(--c-text-on-dark); }
.tg-add-qr svg { display: block; width: 100%; height: 100%; }
.tg-add-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 36px; box-sizing: border-box; }
.tg-add-open svg { width: 16px; height: 16px; fill: currentColor; }
.tg-add-scan { margin: 8px 0 0; color: var(--label-2); font-size: 12.5px; text-align: center; }
.tg-add-hint { margin: 8px 0 14px; color: var(--label-3); font-size: 12.5px; line-height: 1.45; }
.tg-add-copy { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 11px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--fill-1); }
.tg-add-copy + .tg-add-copy { margin-top: 6px; }
.tg-add-copy code { flex: 1; min-width: 0; padding: 0; overflow: hidden; background: none; color: var(--label-1); font: 500 13px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.tg-add-copy .btn { flex-shrink: 0; }
.tg-add-steps { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 13px; }
.tg-add-steps summary { color: var(--label-2); font-weight: 500; cursor: pointer; }
.tg-add-steps ol { margin: 10px 0 0; padding-left: 20px; color: var(--label-2); line-height: 1.55; }
.tg-add-steps li { margin-bottom: 4px; }
.tg-add-steps strong { color: var(--label-1); }
.tg-add-steps code { padding: 1px 5px; border-radius: 4px; background: var(--fill-2); color: var(--label-1); font: 500 12.5px var(--font-mono); }
.tg-add-watching { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--label-3); font-size: 12.5px; }
.tg-add-watching[hidden] { display: none; }
.tg-add-watching span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

@media (max-width: 600px) {
    .tg-add-ways { grid-template-columns: minmax(0, 1fr); }
    .tg-add-qr { margin-inline: auto; }
}
