/* T-SETTINGS-CARDS (owner 11-21-2026): Firm settings as a grid of colored topic cards; a click shows that topic only.
   Icons: Lucide line icons (ISC, icons/settings-line/LICENSE-lucide.txt) drawn as a mask in the card color.
   T-ACCOUNT-CARDS (owner 11-21-2026): «My account» (.td-account-settings) uses the same cards.
   T-BILLING-CARDS (owner 11-21-2026): Billing (.dfb-topics) and Integrations (#dfIntegrations) too. */
.settings.dfsc-on,.td-account-settings.dfsc-on{max-width:1120px}
.settings.dfsc-on[data-dfsc-open],.td-account-settings.dfsc-on[data-dfsc-open]{max-width:860px}
.td-account-settings.dfsc-on{display:block}
/* Grid: every settings card hidden; a topic: only its cards. Notices that are not cards stay visible. */
.dfsc-on>.card:not(.dfsc-show){display:none}
.td-account-settings.dfsc-on>.card{margin-bottom:16px}
.dfsc-on[data-dfsc-open]>.dfsc-grid{display:none}
.dfsc-on:not([data-dfsc-open])>.dfsc-head{display:none}

.dfsc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:16px;margin-bottom:16px}
/* T-CARDS-CALM (owner 11-24-2026: «están muy coloridas … baja el tono del color y hazlas tarjetas digitales»): white
   cards with a soft shadow; the topic color stays only in a thin top line, the icon chip and the arrow. */
.dfsc-tile{--dfsc-a:#7c3aed;--dfsc-b:#a78bfa;position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:168px;padding:20px 18px 14px;border-radius:14px;text-align:left;color:#1b2433;cursor:pointer;font:inherit;
  background:#fff;border:1px solid #e6e9f0;box-shadow:0 1px 2px rgba(16,24,40,.04),0 4px 14px -6px rgba(16,24,40,.10);overflow:hidden;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
  animation:dfsc-in .32s ease both;animation-delay:calc(var(--dfsc-i,0)*35ms)}
.dfsc-tile::after{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--dfsc-b),color-mix(in srgb,var(--dfsc-b) 25%,#fff));opacity:.75;pointer-events:none}
.dfsc-tile:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--dfsc-b) 30%,#e6e9f0);box-shadow:0 2px 4px rgba(16,24,40,.05),0 14px 28px -14px color-mix(in srgb,var(--dfsc-a) 35%,transparent)}
.dfsc-tile:focus-visible{outline:3px solid #111a27;outline-offset:3px}
.dfsc-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:color-mix(in srgb,var(--dfsc-b) 10%,#fff);border:1px solid color-mix(in srgb,var(--dfsc-b) 18%,#fff);margin-bottom:6px}
.dfsc-icon::before{content:"";width:22px;height:22px;background:var(--dfsc-a);-webkit-mask:var(--dfsc-svg) center/contain no-repeat;mask:var(--dfsc-svg) center/contain no-repeat}
.dfsc-title{font-size:16px;font-weight:800;line-height:1.25}
.dfsc-text{font-size:12.5px;line-height:1.4;color:#5a6576}
.dfsc-foot{margin-top:auto;padding-top:8px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%}
.dfsc-badge{background:color-mix(in srgb,var(--dfsc-b) 10%,#fff);color:var(--dfsc-a);border-radius:20px;padding:2px 8px;font-size:11px;font-weight:700}
.dfsc-go{margin-left:auto;color:var(--dfsc-a);font-size:18px;font-weight:800;transition:transform .16s ease}
.dfsc-tile:hover .dfsc-go{transform:translateX(3px)}
.dfsc-violet{--dfsc-a:#6d28d9;--dfsc-b:#8b5cf6}
.dfsc-blue{--dfsc-a:#1d4ed8;--dfsc-b:#3b82f6}
.dfsc-sky{--dfsc-a:#075985;--dfsc-b:#0284c7}
.dfsc-teal{--dfsc-a:#115e59;--dfsc-b:#0d9488}
.dfsc-amber{--dfsc-a:#92400e;--dfsc-b:#c2780a}
.dfsc-orange{--dfsc-a:#9a3412;--dfsc-b:#ea580c}
.dfsc-green{--dfsc-a:#166534;--dfsc-b:#16a34a}
.dfsc-rose{--dfsc-a:#9f1239;--dfsc-b:#e11d48}
.dfsc-pink{--dfsc-a:#86198f;--dfsc-b:#c026d3}
.dfsc-brown{--dfsc-a:#713f12;--dfsc-b:#a16207}
.dfsc-indigo{--dfsc-a:#3730a3;--dfsc-b:#6366f1}
.dfsc-slate{--dfsc-a:#334155;--dfsc-b:#64748b}
.dfsc-cyan{--dfsc-a:#155e75;--dfsc-b:#0891b2}

.dfsc-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.dfsc-head-title{margin:0;font-size:20px;outline:0}
.dfsc-on[data-dfsc-open]>.card.dfsc-show{animation:dfsc-in .24s ease both}
/* An Integrations group is a wrapper, not a box: its own cards keep their look; the head already names the group. */
#dfIntegrations>.card.dfi-topic{padding:0;margin:0;background:none;border:0;border-radius:0;box-shadow:none}
#dfIntegrations.dfsc-on .dfi-topic>.dfi-group{display:none}
#dfIntegrations.dfsc-on .dfi-topic>.dfi-sub{margin-top:0}

/* T-SETTINGS-NO-FLICKER: after the first fade-in, redraws and returns show the tiles at once. */
.dfsc-grid.dfsc-calm>.dfsc-tile{animation:none}
@keyframes dfsc-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.dfsc-tile,.dfsc-on>.card.dfsc-show{animation:none}.dfsc-tile,.dfsc-go{transition:none}}
@media (max-width:640px){
  .dfsc-grid{grid-template-columns:1fr 1fr;gap:11px}
  .dfsc-tile{min-height:120px;padding:14px 13px 11px;border-radius:12px}
  .dfsc-icon{width:36px;height:36px;margin-bottom:2px}
  .dfsc-icon::before{width:19px;height:19px}
  .dfsc-title{font-size:14px}
  .dfsc-text{display:none}
  .dfsc-head-title{font-size:18px;width:100%}
}
@media (forced-colors:active){
  .dfsc-tile{border:2px solid ButtonText;color:ButtonText;background:ButtonFace}
  .dfsc-icon::before{background:ButtonText}
}
