.activity__path { max-width: 420px; overflow-wrap: anywhere; }
.activity__row--login_denied td, .activity__row--session_invalid td { background: color-mix(in srgb, var(--danger) 4%, transparent); }
.online { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.online__item { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border-default); background: var(--surface-2); color: var(--text-primary); font-size: 12px; }
.online__item:hover { border-color: var(--border-gold); text-decoration: none; color: var(--gold-200); }

.dacc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; margin-bottom: 16px; }
.dacc-head__main { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1 1 420px; }
.dacc-head__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dacc-head__name { font: var(--text-h2, 600 24px/1.2 var(--font-sans)); margin: 0; overflow-wrap: anywhere; }
.dacc-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--text-secondary); font-size: 13px; }
.dacc-stats { display: grid; grid-template-columns: repeat(3, minmax(96px, 1fr)); gap: 10px; margin: 0; flex: 1 1 360px; }
.dacc-stats > div { padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-2); }
.dacc-stats dt { font-size: 11px; color: var(--text-muted); }
.dacc-stats dd { margin: 4px 0 0; font: 600 16px/1.2 var(--font-sans); color: var(--text-primary); }
.dacc-join { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; margin-bottom: 16px; }
.dacc-join__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-subtle); color: var(--gold-200); }
.dacc-join__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; }
.dacc-join__select { flex: 1 1 220px; max-width: 360px; }
.dguild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.dguild { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-1); }
.dguild--owner { border-color: var(--gold-400); box-shadow: inset 3px 0 0 var(--gold-400); }
.dguild--admin { box-shadow: inset 3px 0 0 var(--warning); }
.dguild__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dguild__title { min-width: 0; flex: 1; }
.dguild__name { font: 600 14px/1.3 var(--font-sans); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dguild__id { padding: 0; border: 0; background: none; font: 11px/1.4 var(--font-mono); color: var(--text-muted); cursor: copy; }
.dguild__id:hover { color: var(--gold-200); }
.dguild__counts { display: flex; flex-wrap: wrap; gap: 14px; font: 12px/1 var(--font-mono); color: var(--text-secondary); }
.dguild__counts span { display: inline-flex; align-items: center; gap: 5px; }
.dguild__online .ic { color: var(--success); fill: var(--success); }
.dguild__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dguild__tags:empty { display: none; }
.dguild__perms { line-height: 1.5; }
.dguild[hidden] { display: none; }
.dguild { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.dguild__member { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; border-top: 1px solid var(--border-subtle); color: var(--text-secondary); }
.dguild__member span { display: inline-flex; align-items: center; gap: 5px; }
.dguild__warn { color: var(--danger-fg); }
.dguild__action { margin-top: auto; }
.dacc-scopes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.dacc-scope { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); font-size: 12px; color: var(--text-muted); }
.dacc-scope.is-on { border-color: color-mix(in srgb, var(--success) 45%, transparent); background: var(--success-subtle); color: var(--success-fg); }
.dacc-conn { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.dacc-conn li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--border-subtle); }
.dacc-conn li:first-child { border-top: 0; padding-top: 0; }
.dacc-conn li.is-revoked { opacity: .6; }
.dacc-conn__type { grid-row: span 3; font-weight: 600; font-size: 13px; color: var(--text-primary); }
.dacc-conn__name { font-size: 13px; overflow-wrap: anywhere; }
.dacc-conn__flags { display: flex; flex-wrap: wrap; gap: 4px; }
.dacc-conn .dguild__id { justify-self: start; text-align: left; }
.dacc-avatars { display: flex; flex-wrap: wrap; gap: 10px; }
.dacc-avatars__item { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 11px/1.2 var(--font-mono); color: var(--text-muted); text-decoration: none; }
.dacc-avatars__item img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-default); background: var(--surface-3); }
.dacc-avatars__item.is-current img { border-color: var(--gold-400); }
.sess__sub { display: block; }
.sess__actions { justify-content: flex-end; }
.dhist__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dhist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; max-height: 640px; overflow-y: auto; }
.dhist__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.dhist__item:first-child { border-top: 0; padding-top: 0; }
.dhist__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-default); color: var(--text-secondary); }
.dhist__item--success .dhist__icon { border-color: var(--success); color: var(--success-fg); background: var(--success-subtle); }
.dhist__item--danger .dhist__icon { border-color: var(--danger); color: var(--danger-fg); background: var(--danger-subtle); }
.dhist__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.dhist__pair { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.dhist-guild { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-2); max-width: 560px; }
.dhist-guild__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dhist-guild__name { font-weight: 600; font-size: 13px; color: var(--text-primary); overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .dacc-conn li { grid-template-columns: minmax(0, 1fr); }
  .dacc-conn__type { grid-row: auto; }
}

@media (max-width: 600px) {
  .dacc-head { padding: 16px; }
  .dacc-head__main { flex-direction: column; align-items: flex-start; }
  .dacc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dacc-join__select { max-width: none; }
  .dacc-join .btn { width: 100%; }
}
.dm-matrix td:first-child { min-width: 280px; max-width: 380px; }
.dm-matrix td.is-dim .check { opacity: .35; }
.dm-matrix td.is-dim .check:hover, .dm-matrix td.is-dim .check:focus-within { opacity: 1; }
.dm-matrix__label { font-weight: 600; color: var(--text-primary); }
.dm-who { margin-top: 6px; }
.dm-who summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; color: var(--text-secondary); }
.dm-who summary::-webkit-details-marker { display: none; }
.dm-who summary:hover { color: var(--gold-200); }
.dm-who[open] summary .ic { transform: rotate(180deg); }
.dm-who__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.dm-who__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dm-who__name { min-width: 0; }
.dm-who__ctrl { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.dm-who__ctrl .check { gap: 6px; font-size: 12px; }
.dm-legend { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.dm-mode { margin-top: 8px; width: 100%; max-width: 300px; }
.dm-row:has(.dm-mode option[value="bell"]:checked) .dm-matrix__discord,
.dm-row:has(.dm-mode option[value="none"]:checked) .dm-matrix__discord { opacity: .2; pointer-events: none; }
.dm-row:has(.dm-mode option[value="none"]:checked) .dm-matrix__label { color: var(--text-muted); text-decoration: line-through; }
.dm-personal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px 16px; }