/* ==========================================================================
   Primasole — CSS das features transversais.

   Cobre o Perfil do usuário, o sino de Notificações (topo + painel), a Central
   de Downloads e o modal de avisos com ciência. Depende dos tokens --ds-* e dos
   átomos definidos na fundação (ps-core.css); aqui entram só as classes
   próprias das features (.ds-prof, .ds-bell, .ds-notif, .ds-nfc, .ds-dl,
   .ds-alert), todas reativas aos 4 temas.
   ========================================================================== */

/* ==========================================================================
   Modal "Meu perfil"
   ========================================================================== */
.ds-prof-load, .ds-prof-msg { text-align: center; color: var(--ds-text-subtlest); padding: var(--ds-space-400) 0; font-size: 20px; }
.ds-prof-msg { font-size: 13px; }
.ds-prof-head { display: flex; align-items: center; gap: var(--ds-space-200); margin-bottom: var(--ds-space-250); }
.ds-prof-photo { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.ds-prof-photo img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 3px var(--ds-surface), 0 0 0 4px var(--ds-border); }
.ds-prof-initial { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ds-background-brand-bold); color: var(--ds-text-inverse); font-size: 30px; font-weight: var(--ds-font-weight-bold); }
.ds-prof-cam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ds-surface); background: var(--ds-background-brand-bold); color: var(--ds-text-inverse); cursor: pointer; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; transition: background .1s; }
.ds-prof-cam:hover { background: var(--ds-background-brand-bold-hovered); }
.ds-prof-cam.is-loading { pointer-events: none; }
.ds-prof-cam.is-loading i::before { content: "\f110"; animation: fa-spin 1s linear infinite; }
.ds-prof-name { font-size: 16px; font-weight: var(--ds-font-weight-bold); color: var(--ds-text); line-height: 1.3; }
.ds-prof-login { font-size: 12.5px; color: var(--ds-text-subtlest); }
.ds-prof-rows { display: flex; flex-direction: column; gap: var(--ds-space-100); margin-top: var(--ds-space-100); }
.ds-prof-row { display: flex; align-items: center; gap: var(--ds-space-150); background: var(--ds-surface-raised); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-medium); padding: 10px 12px; }
.ds-prof-row.is-editing { align-items: stretch; }
.ds-prof-row__ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--ds-radius-medium); display: inline-flex; align-items: center; justify-content: center; background: var(--ds-background-accent-blue-subtlest); color: var(--ds-text-brand); font-size: 13px; }
.ds-prof-row__main { flex: 1; min-width: 0; }
.ds-prof-row__label { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ds-text-subtlest); }
.ds-prof-row__val { font-size: 13.5px; color: var(--ds-text); word-break: break-word; }
.ds-prof-edit { flex: 1; min-width: 0; }
.ds-prof-input { margin: 6px 0 8px; padding-left: 12px; }
.ds-prof-phone { display: flex; gap: 6px; margin: 6px 0 8px; }
.ds-prof-phone .ds-prof-cc { flex: 0 0 46%; min-width: 0; }
.ds-prof-phone .ds-prof-cc .ds-select__input { padding-left: 10px; }
.ds-prof-phone .ds-prof-input { flex: 1; min-width: 0; margin: 0; }
.ds-prof-code { text-align: center; letter-spacing: 8px; font-size: 18px; font-family: var(--ds-font-family-code); }
.ds-prof-hint { font-size: 12.5px; color: var(--ds-text-subtle); line-height: 1.5; margin-bottom: 2px; }
.ds-prof-hint b { color: var(--ds-text); }
.ds-prof-act { display: flex; gap: var(--ds-space-100); }

/* ==========================================================================
   Sino de notificações (topbar) + badge de não-lidas
   ========================================================================== */
.ds-bell {
  position: relative; flex-shrink: 0; width: 34px; height: 34px; border: 0; cursor: pointer;
  background: transparent; color: var(--ds-icon-subtle); border-radius: var(--ds-radius-small);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
  transition: background .1s, color .1s;
}
.ds-bell:hover { background: var(--ds-background-neutral-subtle-hovered); color: var(--ds-text); }
.ds-bell.has-unread { color: var(--ds-text); }
.ds-bell__badge {
  position: absolute; top: 2px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: var(--ds-background-danger-bold); color: #fff;
  font-size: 9.5px; font-weight: var(--ds-font-weight-bold); line-height: 15px; text-align: center;
  box-shadow: 0 0 0 2px var(--ds-surface);
}
.ds-bell__badge[hidden] { display: none; }
.ds-bell.has-unread i { animation: ds-bell-swing 2.4s ease-in-out 1; transform-origin: 50% 2px; }
@keyframes ds-bell-swing { 0%,70%,100% { transform: rotate(0); } 76% { transform: rotate(11deg); } 82% { transform: rotate(-9deg); } 88% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }

/* ==========================================================================
   Central de notificações (painel lateral)
   ========================================================================== */
.ds-notif { position: fixed; inset: 0; z-index: 910; pointer-events: none; }
.ds-notif[hidden] { display: none; }
.ds-notif__scrim { position: absolute; inset: 0; background: rgba(10, 15, 30, .32); opacity: 0; transition: opacity .24s ease; pointer-events: none; }
.ds-notif.is-open .ds-notif__scrim { opacity: 1; pointer-events: auto; }
.ds-notif__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw;
  display: flex; flex-direction: column; pointer-events: auto;
  background: var(--ds-surface); border-left: 1px solid var(--ds-border);
  box-shadow: -18px 0 48px -24px rgba(0, 0, 0, .5);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4, 0, .2, 1);
}
.ds-notif.is-open .ds-notif__panel { transform: none; }

.ds-notif__head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-100); padding: var(--ds-space-100) var(--ds-space-150); height: 56px; border-bottom: 1px solid var(--ds-border); background: var(--ds-surface-raised); }
.ds-notif__id { display: flex; align-items: center; gap: var(--ds-space-100); min-width: 0; }
.ds-notif__glyph { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; color: var(--ds-text-brand); background: var(--ds-background-accent-blue-subtlest); font-size: 15px; }
.ds-notif__idtext { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ds-notif__title { font-size: 14px; font-weight: var(--ds-font-weight-semibold); color: var(--ds-text); }
.ds-notif__sub { font-size: 11px; color: var(--ds-text-subtlest); }
.ds-notif__tools { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.ds-notif__ico { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; color: var(--ds-icon-subtle); border-radius: var(--ds-radius-small); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; transition: background .1s, color .1s; }
.ds-notif__ico:hover { background: var(--ds-background-neutral-subtle-hovered); color: var(--ds-text); }

.ds-notif__bar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-100); padding: var(--ds-space-100) var(--ds-space-150); border-bottom: 1px solid var(--ds-border); }
.ds-notif__pill { font-size: 11px; font-weight: var(--ds-font-weight-semibold); color: var(--ds-text-brand); background: var(--ds-background-accent-blue-subtlest); padding: 3px 10px; border-radius: 999px; line-height: 1.5; }
.ds-notif__pill.is-zero { color: var(--ds-text-subtlest); background: var(--ds-background-neutral); }
.ds-notif__markall { border: 0; background: transparent; cursor: pointer; color: var(--ds-text-subtle); font: inherit; font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: var(--ds-radius-small); transition: background .1s, color .1s; }
.ds-notif__markall:hover { background: var(--ds-background-neutral-subtle-hovered); color: var(--ds-text); }

.ds-notif__feed { flex: 1; overflow-y: auto; padding: var(--ds-space-150); background: var(--ds-surface-sunken); }

/* ── Abas (Confirmações / Mensagens / Gerais) ── */
.ds-notif__tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; padding: 6px 8px 0; background: var(--ds-surface-raised); border-bottom: 1px solid var(--ds-border); }
.ds-ntab {
  position: relative; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 9px; font-size: 10.5px; font-weight: 700; line-height: 1.15;
  color: var(--ds-text-subtlest); border-bottom: 2px solid transparent; text-align: center;
}
.ds-ntab i { font-size: 15px; }
.ds-ntab.is-on { color: var(--ds-text-brand); border-bottom-color: var(--ds-text-brand); }
.ds-ntab__n {
  position: absolute; top: 2px; right: calc(50% - 26px); min-width: 15px; height: 15px;
  border-radius: 8px; background: var(--ds-text-danger); color: #fff;
  font-size: 9.5px; line-height: 15px; padding: 0 4px; text-align: center;
}

/* ── Confirmações (accordion + biometria) ── */
.ds-cfm-list { display: grid; gap: 10px; }
.ds-cfm { background: var(--ds-surface-raised); border: 1px solid var(--ds-border); border-radius: 12px; overflow: hidden; }
.ds-cfm.is-done { opacity: .82; }
.ds-cfm__hd { width: 100%; border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 11px; padding: 12px 13px; text-align: left; color: var(--ds-text); }
.ds-cfm__ico { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; font-size: 15px; background: var(--ds-background-selected, #f8eae7); color: var(--ds-text-brand); }
.ds-cfm.is-done .ds-cfm__ico { background: var(--ds-background-success, #edf4e4); color: var(--ds-text-success); }
.ds-cfm__tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ds-cfm__tx b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-cfm__tx small { font-size: 11.5px; color: var(--ds-text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-cfm__chev { color: var(--ds-text-subtlest); transition: transform .2s; flex: 0 0 auto; }
.ds-cfm.is-open .ds-cfm__chev { transform: rotate(180deg); }
.ds-cfm__badge.is-ok { flex: 0 0 auto; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--ds-text-success); background: var(--ds-background-success, #edf4e4); border-radius: 6px; padding: 3px 7px; }
.ds-cfm__body { display: none; padding: 0 13px 13px 62px; }
.ds-cfm.is-open .ds-cfm__body { display: block; }
.ds-cfm__body p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.55; color: var(--ds-text-subtle); }
.ds-cfm__hint { display: flex; align-items: center; gap: 7px; font-size: 11.5px !important; color: var(--ds-text-brand) !important; }
.ds-cfm__okline { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ds-text-success); }

/* ── Mensagens: lista de conversas ── */
.ds-thr-list { display: grid; gap: 2px; }
.ds-thr { width: 100%; border: 0; background: var(--ds-surface-raised); cursor: pointer; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; text-align: left; color: var(--ds-text); }
.ds-thr:hover { background: var(--ds-surface-raised-hovered, var(--ds-surface-hovered)); }
.ds-thr__av { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--ds-background-selected, #f8eae7); color: var(--ds-text-brand); }
.ds-thr__tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ds-thr__top, .ds-thr__bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ds-thr__top b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-thr__top small { flex: 0 0 auto; font-size: 11px; color: var(--ds-text-subtlest); }
.ds-thr__prev { flex: 1; min-width: 0; font-size: 12px; color: var(--ds-text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-thr__badge { flex: 0 0 auto; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ds-text-brand); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; padding: 0 5px; }
.ds-userpick { display: grid; gap: 4px; }

/* ── Mensagens: conversa aberta (chat) ── */
.ds-chatv { display: flex; flex-direction: column; height: 100%; margin: calc(-1 * var(--ds-space-150)); }
.ds-chatv__hd { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ds-surface-raised); border-bottom: 1px solid var(--ds-border); }
.ds-chatv__who { min-width: 0; } .ds-chatv__who b { display: block; font-size: 13px; } .ds-chatv__who small { font-size: 11px; color: var(--ds-text-subtle); }
.ds-chatv__scroll { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.ds-cmsg { max-width: 82%; align-self: flex-start; background: var(--ds-surface-raised); border-radius: 14px 14px 14px 4px; padding: 9px 11px 5px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ds-cmsg.is-me { align-self: flex-end; background: var(--ds-text-brand); color: #fff; border-radius: 14px 14px 4px 14px; }
.ds-cmsg p { margin: 0; font-size: 13px; line-height: 1.45; word-break: break-word; }
.ds-cmsg small { display: block; text-align: right; font-size: 10px; color: var(--ds-text-subtlest); margin-top: 2px; }
.ds-cmsg.is-me small { color: rgba(255,255,255,.7); }
.ds-chatv__composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--ds-surface-raised); border-top: 1px solid var(--ds-border); }
.ds-chatv__composer input { flex: 1; min-width: 0; border: 1.5px solid var(--ds-border); border-radius: 999px; background: var(--ds-surface-sunken); color: var(--ds-text); padding: 10px 14px; font-size: 14px; outline: none; }
.ds-chatv__composer input:focus { border-color: var(--ds-text-brand); background: var(--ds-surface); }
.ds-chatv__send { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; cursor: pointer; background: var(--ds-text-brand); color: #fff; font-size: 15px; }

/* ── Biometria facial (modal) ── */
.ds-notif__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: var(--ds-space-400) var(--ds-space-200); color: var(--ds-text-subtlest); }
.ds-notif__empty b { font-size: 14px; font-weight: var(--ds-font-weight-semibold); color: var(--ds-text); }
.ds-notif__empty span:not(.ds-notif__empty-ico) { font-size: 12px; max-width: 260px; line-height: 1.5; }
.ds-notif__empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ds-background-neutral); color: var(--ds-icon-subtlest); font-size: 20px; margin-bottom: 4px; }
.ds-notif__empty.is-error .ds-notif__empty-ico { background: var(--ds-background-danger); color: var(--ds-text-danger); }

/* Card de notificação */
.ds-nfc {
  position: relative; display: flex; gap: var(--ds-space-100); padding: 11px 12px 11px 13px; margin-bottom: 8px;
  background: var(--ds-surface-raised); border: 1px solid var(--ds-border); border-left: 3px solid var(--ac);
  border-radius: var(--ds-radius-large); box-shadow: var(--ds-shadow-raised);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; cursor: pointer;
}
.ds-nfc:hover { transform: translateY(-1px); box-shadow: var(--ds-shadow-overlay); }
.ds-nfc.is-read { cursor: default; opacity: .82; }
.ds-nfc.is-read:hover { transform: none; box-shadow: var(--ds-shadow-raised); }
.ds-nfc.is-unread .ds-nfc__head > span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); margin-right: 6px; vertical-align: middle; }
.ds-nfc__ico { flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--ds-radius-medium); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ac); background: color-mix(in srgb, var(--ac) 15%, transparent); }
.ds-nfc__main { min-width: 0; flex: 1; }
.ds-nfc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ds-nfc__head h4 { font-size: 13px; font-weight: var(--ds-font-weight-semibold); color: var(--ds-text); line-height: 1.35; margin: 0; padding-right: 10px; }
.ds-nfc__head span { flex-shrink: 0; font-size: 10px; color: var(--ds-text-subtlest); white-space: nowrap; }
.ds-nfc__main p { font-size: 12px; color: var(--ds-text-subtle); line-height: 1.5; margin: 4px 0 0; word-break: break-word; }
.ds-nfc__media { display: block; margin-top: 8px; }
.ds-nfc__media img { max-width: 100%; max-height: 160px; border-radius: var(--ds-radius-medium); display: block; }
.ds-nfc__video { position: relative; margin-top: 8px; border-radius: var(--ds-radius-medium); overflow: hidden; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--ds-border); }
.ds-nfc__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ds-nfc__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.ds-nfc__links a { font-size: 11.5px; color: var(--ds-link); display: inline-flex; align-items: center; gap: 5px; }
.ds-nfc__file { max-width: 100%; padding: 5px 10px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius-medium); background: var(--ds-background-neutral); color: var(--ds-text) !important; }
.ds-nfc__file:hover { border-color: var(--ds-border-bold); text-decoration: none; }
.ds-nfc__file i { color: var(--ds-icon-subtle); }
.ds-nfc__file small { color: var(--ds-text-subtlest); }
.ds-nfc__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 10.5px; color: var(--ds-text-subtlest); }
.ds-nfc__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ds-nfc__new { color: var(--ds-text-brand); font-weight: var(--ds-font-weight-semibold); }
.ds-nfc__done { color: var(--ds-text-success); }
.ds-nfc.prio-high { border-left-width: 4px; }

@media (max-width: 480px) { .ds-notif__panel { width: 100vw; border-left: 0; } }
/* ==========================================================================
   Central de Downloads (dropdown ancorado sob o ícone)
   ========================================================================== */
.ds-bell__badge--work { background: var(--ds-background-brand-bold); }
.ds-bell.is-working { color: var(--ds-text-brand); }
.ds-bell.is-working i { animation: ds-dl-bob 1.4s ease-in-out infinite; }
@keyframes ds-dl-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(2px); } }

.ds-dl { position: fixed; inset: 0; z-index: 915; pointer-events: none; }
.ds-dl[hidden] { display: none; }
.ds-dl__panel {
  position: fixed; width: 372px; max-width: calc(100vw - 16px);
  display: flex; flex-direction: column; max-height: min(520px, calc(100vh - 72px));
  pointer-events: auto; background: var(--ds-surface); border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-large); box-shadow: var(--ds-shadow-overlay);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .16s ease, transform .16s cubic-bezier(.4, 0, .2, 1);
}
.ds-dl.is-open .ds-dl__panel { opacity: 1; transform: none; }

.ds-dl__head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-100); padding: var(--ds-space-100) var(--ds-space-150); border-bottom: 1px solid var(--ds-border); }
.ds-dl__id { display: flex; align-items: center; gap: var(--ds-space-100); min-width: 0; }
.ds-dl__glyph { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; color: var(--ds-text-brand); background: var(--ds-background-accent-blue-subtlest); font-size: 14px; }
.ds-dl__id > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ds-dl__h { font-size: 13.5px; font-weight: var(--ds-font-weight-semibold); color: var(--ds-text); }
.ds-dl__hsub { font-size: 11px; color: var(--ds-text-subtlest); }
.ds-dl__ico { width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; color: var(--ds-icon-subtle); border-radius: var(--ds-radius-small); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; transition: background .1s, color .1s; }
.ds-dl__ico:hover { background: var(--ds-background-neutral-subtle-hovered); color: var(--ds-text); }

.ds-dl__list { flex: 1; overflow-y: auto; padding: var(--ds-space-100); background: var(--ds-surface-sunken); }

.ds-dl__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: var(--ds-space-300) var(--ds-space-200); color: var(--ds-text-subtlest); }
.ds-dl__empty b { font-size: 13px; font-weight: var(--ds-font-weight-semibold); color: var(--ds-text); }
.ds-dl__empty span:not(.ds-dl__empty-ico) { font-size: 11.5px; max-width: 240px; line-height: 1.5; }
.ds-dl__empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ds-background-neutral); color: var(--ds-icon-subtlest); font-size: 18px; margin-bottom: 2px; }
.ds-dl__empty.is-error .ds-dl__empty-ico { background: var(--ds-background-danger); color: var(--ds-text-danger); }

.ds-dl__item {
  position: relative; display: flex; align-items: center; gap: var(--ds-space-100);
  padding: 9px 10px; margin-bottom: 6px; background: var(--ds-surface-raised);
  border: 1px solid var(--ds-border); border-radius: var(--ds-radius-medium);
}
.ds-dl__item:last-child { margin-bottom: 0; }
.ds-dl__ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--ds-radius-medium); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: var(--ds-text-subtle); background: var(--ds-background-neutral); }
.ds-dl__item.is-done .ds-dl__ico { color: var(--ds-text-success); background: var(--ds-background-success); }
.ds-dl__item.is-err .ds-dl__ico { color: var(--ds-text-danger); background: var(--ds-background-danger); }
.ds-dl__body { min-width: 0; flex: 1; }
.ds-dl__title { font-size: 12.5px; font-weight: var(--ds-font-weight-semibold); color: var(--ds-text); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-dl__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin-top: 2px; font-size: 10.5px; color: var(--ds-text-subtlest); }
.ds-dl__dot { margin: 0 5px; opacity: .5; }
.ds-dl__fmt i { margin-right: 3px; }
.ds-dl__status { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11px; font-weight: var(--ds-font-weight-medium); }
.ds-dl__status--proc { color: var(--ds-text-brand); }
.ds-dl__status--done { color: var(--ds-text-success); }
.ds-dl__status--err { color: var(--ds-text-danger); }
.ds-dl__act { flex-shrink: 0; }
.ds-dl__get { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--ds-radius-medium); background: var(--ds-background-brand-bold); color: var(--ds-text-inverse, #fff); font-size: 15px; text-decoration: none; transition: filter .1s, transform .1s; }
.ds-dl__get:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; }
.ds-dl__rm { width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; color: var(--ds-icon-subtle); border-radius: var(--ds-radius-small); font-size: 14px; transition: background .1s, color .1s; }
.ds-dl__rm:hover { background: var(--ds-background-danger); color: var(--ds-text-danger); }
.ds-dl__spin { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--ds-text-brand); font-size: 15px; }

/* Mini-menu de escolha de formato (ancorado no botão que dispara a exportação) */
.ds-dl-fmt {
  position: fixed; z-index: 960; min-width: 190px; padding: 6px; background: var(--ds-surface);
  border: 1px solid var(--ds-border); border-radius: var(--ds-radius-medium); box-shadow: var(--ds-shadow-overlay);
  opacity: 0; transform: translateY(-4px); transition: opacity .13s ease, transform .13s ease;
}
.ds-dl-fmt.is-open { opacity: 1; transform: none; }
.ds-dl-fmt__t { font-size: 10.5px; font-weight: var(--ds-font-weight-bold); text-transform: uppercase; letter-spacing: .04em; color: var(--ds-text-subtlest); padding: 4px 8px 6px; }
.ds-dl-fmt__op { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--ds-text); text-align: left; padding: 8px 8px; border-radius: var(--ds-radius-small); transition: background .1s; }
.ds-dl-fmt__op:hover { background: var(--ds-background-neutral-subtle-hovered); }
.ds-dl-fmt__op i { width: 16px; text-align: center; color: var(--ds-icon-subtle); font-size: 14px; }

@media (max-width: 480px) { .ds-dl__panel { width: calc(100vw - 16px); } }


/* ==========================================================================
   Alerta com "ciente" (corpo do modal bloqueante)
   ========================================================================== */
.ds-alert { text-align: center; padding: var(--ds-space-100) var(--ds-space-100) 0; }
.ds-alert__ico {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; font-size: 24px; margin-bottom: var(--ds-space-150);
  color: var(--ac); background: color-mix(in srgb, var(--ac) 15%, transparent);
}
.ds-alert__msg { font-size: 13.5px; color: var(--ds-text-subtle); line-height: 1.6; margin: 0; }
.ds-alert__media { margin-top: var(--ds-space-150); }
.ds-alert__media img { max-width: 100%; max-height: 200px; border-radius: var(--ds-radius-medium); display: block; margin: 0 auto; }
.ds-alert__link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--ds-space-150); font-size: 12.5px; color: var(--ds-link); }
/* No modal de alerta, o botão Ciente ocupa a largura toda do rodapé. */
.ds-modal:has(.ds-alert) .ds-modal__footer { justify-content: stretch; }
.ds-modal:has(.ds-alert) .ds-modal__footer .ds-button { flex: 1; }
/* Perfil — linha de biometria facial (2026-07-14) */
.ds-prof-bio { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
.ds-prof-row__ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; font-size: 15px; background: var(--ds-background-selected, #f8eae7); color: var(--ds-text-brand); }
.ds-prof-row__ic.is-ok { background: var(--ds-background-success, #edf4e4); color: var(--ds-text-success); }
.ds-prof-row__tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ds-prof-row__tx small { font-size: 11px; color: var(--ds-text-subtlest); }
.ds-prof-row__tx b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Picker de usuário com busca (Nova conversa) — 2026-07-14 */
.ds-userpick__search { display: flex; align-items: center; gap: 9px; padding: 10px 12px; margin-bottom: 8px; border: 1.5px solid var(--ds-border); border-radius: 999px; background: var(--ds-surface-sunken); color: var(--ds-text-subtle); }
.ds-userpick__search:focus-within { border-color: var(--ds-text-brand); background: var(--ds-surface); }
.ds-userpick__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ds-text); font-size: 14px; }
.ds-userpick__list { max-height: 52vh; overflow-y: auto; display: grid; gap: 2px; }
/* Confirmações — chips de anexo (link/arquivo) — 2026-07-14 */
.ds-cfm__anexos { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.ds-cfm__anexo { display: inline-flex; align-items: center; gap: 6px; background: var(--ds-surface-sunken); border: 1px solid var(--ds-border); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 700; color: var(--ds-text-brand); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-cfm__anexo:hover { background: var(--ds-surface-hovered, var(--ds-surface-sunken)); }
