/* Multitool AntiFast — compléments au design system commun (base.css, app.css). */

.mt-tag { font-size: 11px; font-weight: 600; color: var(--brand-text); background: var(--brand-soft); padding: 2px 7px; border-radius: 999px; }
.mt-login-note { margin-top: 18px !important; font-size: 12.5px !important; }
.mt-ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-big { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; }
.mt-progress { height: 8px; }
.mt-progress > span { transition: width 0.4s ease; }

/* Outils */
.mt-tool { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.mt-tool:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-1px); }
.mt-tool strong { display: block; font-size: 14.5px; }
.mt-tool span:not(.mt-tool-icon) { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mt-tool-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); flex-shrink: 0; }
.mt-tool-icon.danger { background: var(--danger-soft); color: var(--danger); }
.mt-tool-icon svg { width: 18px; height: 18px; }

/* Serveurs */
.mt-guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.mt-guild { display: flex; align-items: center; gap: 12px; padding: 12px 14px; box-shadow: none; }
.mt-guild.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.mt-guild-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.mt-guild-icon { border-radius: 12px; flex-shrink: 0; object-fit: cover; }
.mt-guild-icon.fallback { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); font-weight: 650; font-size: 13px; }
.mt-guild-head { gap: 14px; }
.mt-guild-head h2 { font-size: 20px; }
.mt-active { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; color: var(--text); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.mt-active:hover { text-decoration: none; border-color: var(--brand); }

/* Composition */
.mt-compose { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mt-preview { position: sticky; top: 84px; }
.mt-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mt-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.mt-choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.mt-choice.disabled { opacity: 0.55; cursor: not-allowed; }
.mt-choice input { margin-top: 3px; accent-color: var(--brand); }
.mt-choice strong { display: block; font-size: 13.5px; }
.mt-choice span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mt-bots { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-bot { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; font-size: 13px; }
.mt-bot:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.mt-bot.disabled { opacity: 0.55; cursor: not-allowed; }
.mt-bot input { accent-color: var(--brand); margin: 0; }
.mt-bot img { width: 22px; height: 22px; border-radius: 50%; }
.mt-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 13.5px; }
.mt-summary dt { color: var(--muted); }
.mt-summary dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }

/* Aperçu façon Discord (toujours en thème sombre, comme le client) */
.dc-frame { background: #313338; border-radius: var(--radius); padding: 14px 16px; }
.dc-frame .small.muted { color: #b5bac1; }
.dc-message { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; color: #dbdee1; font-size: 14.5px; line-height: 1.4; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; }
.dc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-app { font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; }
.dc-time { font-size: 12px; color: #949ba4; }
.dc-embed { max-width: 520px; background: #2b2d31; border-left: 4px solid #7c5cff; border-radius: 4px; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.dc-title { font-weight: 600; color: #f2f3f5; font-size: 15px; overflow-wrap: anywhere; }
.dc-desc { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.dc-footer { font-size: 12px; color: #b5bac1; margin-top: 2px; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 4px; font-size: 14px; font-weight: 500; color: #fff; background: #4e5058; }
.dc-button svg { width: 14px; height: 14px; }

@media (max-width: 1100px) {
  .mt-compose { grid-template-columns: 1fr; }
  .mt-preview { position: static; }
}
@media (max-width: 600px) {
  .mt-choices { grid-template-columns: 1fr; }
  .mt-ellipsis { max-width: 160px; }
}
