*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a,
.nav button {
  font-size: 14px;
}

.nav form {
  margin: 0;
}

.btn-link {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

main {
  padding: 32px 0 48px;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.card h1,
.card h2,
.card h3 {
  margin-top: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.stat-label {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
}

.table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

.table th {
  color: #475569;
  font-weight: 600;
  background: #f8fafc;
}

.table tbody tr:hover {
  background: #f8fafc;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table__cell--numeric,
.table td.table__cell--numeric,
.table th.table__cell--numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table__cell--actions,
.table td.table__cell--actions,
.table th.table__cell--actions {
  text-align: right;
  white-space: nowrap;
  min-width: 14rem;
}

.table__cell--checkbox,
.table td.table__cell--checkbox,
.table th.table__cell--checkbox {
  width: 40px;
  padding-left: 16px;
  padding-right: 8px;
  text-align: center;
}

.table__cell--checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.table__action-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.sign-doc-cell,
.table-primary-cell {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: #0f172a;
}

.table-primary-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
}

.table-primary-link:hover .table-primary-cell {
  color: #2563eb;
}

.table-secondary-cell {
  display: inline-block;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  font-size: 13px;
  color: #334155;
}

.table-link-cell {
  display: inline-block;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}

.table-link-cell:hover {
  text-decoration: underline;
}

.text-muted {
  color: #94a3b8;
}

.sign-email-inline {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: #334155;
  font-size: 13px;
}

.people-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.people-chip:hover,
.people-chip:focus-visible {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.people-chip i {
  font-size: 11px;
}

.people-chip__count {
  font-variant-numeric: tabular-nums;
}

.people-chip__label {
  font-weight: 600;
  color: inherit;
}

.progress-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.progress-chip:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

a.progress-chip--link {
  text-decoration: none;
}

a.progress-chip--link:hover {
  text-decoration: none;
}

.progress-chip:disabled {
  cursor: default;
  opacity: 1;
}

.progress-chip__fraction {
  font-variant-numeric: tabular-nums;
}

.progress-chip__hint {
  font-weight: 500;
  color: #64748b;
}

.progress-chip:hover:not(:disabled) .progress-chip__hint {
  color: #2563eb;
}

span.progress-chip {
  cursor: default;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  white-space: nowrap;
}

.status-pill--success {
  background: #ecfdf5;
  color: #047857;
}

.status-pill--warning {
  background: #fffbeb;
  color: #b45309;
}

.status-pill--info {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-pill--muted {
  background: #f1f5f9;
  color: #475569;
}

.modal.modal--people-list {
  max-width: 440px;
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.modal.modal--people-list .modal__header--people {
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.people-list-modal__heading {
  min-width: 0;
  flex: 1;
}

.modal.modal--people-list .modal__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
}

.modal.modal--people-list .modal__close--people {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
}

.modal.modal--people-list .modal__close--people:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.people-list-modal__body {
  padding: 6px 8px 10px;
}

.people-list-modal__count {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: #64748b;
  font-weight: 600;
}

.people-list-modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(56vh, 360px);
  overflow: auto;
}

.people-list-modal__list li,
.people-list-modal__person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  line-height: 1.35;
  color: #0f172a;
  word-break: break-word;
}

.people-list-modal__list li:last-child,
.people-list-modal__person:last-child {
  border-bottom: none;
}

.people-list-modal__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.people-list-modal__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.people-list-modal__name {
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-list-modal__name--link {
  color: #2563eb;
  text-decoration: none;
}

.people-list-modal__name--link:hover {
  text-decoration: underline;
}

.people-list-modal__email {
  overflow: hidden;
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-list-modal__email:hover {
  text-decoration: underline;
}

.people-list-modal__email--empty {
  color: #94a3b8;
  font-weight: 500;
}

.people-list-modal__empty {
  color: #94a3b8;
  font-style: normal;
  justify-content: center;
  padding: 24px 12px;
}

.people-list-modal__list a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.people-list-modal__list a:hover {
  text-decoration: underline;
}

.email-body-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  padding: 4px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.email-body-chip:hover,
.email-body-chip:focus-visible {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.email-body-chip i {
  font-size: 11px;
}

.email-body-empty {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.modal-backdrop.modal-backdrop--email-body {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px;
}

.modal-backdrop.modal-backdrop--email-body.is-open .modal.modal--email-body {
  animation: email-body-modal-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes email-body-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Beat billing.css `.modal { padding: 24px }` (loaded after this file). */
.modal.modal--email-body {
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100% - 16px));
  max-width: 560px;
  max-height: min(84vh, 720px);
  height: auto;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px -16px rgba(15, 23, 42, 0.32);
  overflow: hidden;
}

.email-body-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 6px 0 12px;
}

.email-body-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
}

.email-body-modal__badge i {
  font-size: 10px;
  color: #64748b;
}

.email-body-modal__close {
  appearance: none;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-body-modal__close:hover,
.email-body-modal__close:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
}

.email-body-modal__scroll {
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(62vh, 520px);
  overflow: auto;
  padding: 2px 12px 0;
}

.email-body-modal__header {
  padding: 2px 0 8px;
}

.email-body-modal__subject {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.email-body-modal__meta {
  margin: 0;
  display: grid;
  gap: 3px;
}

.email-body-modal__meta-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.email-body-modal__meta-row dt {
  margin: 0;
  padding-top: 1px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.email-body-modal__meta-row dd {
  margin: 0;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.email-body-modal__recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.email-body-modal__chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 1px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.email-body-modal__divider {
  height: 1px;
  margin: 0 0 8px;
  background: #eef2f7;
}

.email-body-modal__body {
  padding: 0 0 10px;
}

.email-body-modal__status {
  margin: 0;
  padding: 12px;
  border: 1px dashed #dbe3ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.email-body-modal__content {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #f8fafc;
  color: #1e293b;
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.email-body-modal__content > *:first-child {
  margin-top: 0 !important;
}

.email-body-modal__content > *:last-child {
  margin-bottom: 0 !important;
}

.email-body-modal__content p,
.email-body-modal__content div {
  margin: 0 0 0.55em;
}

.email-body-modal__content p:last-child,
.email-body-modal__content div:last-child {
  margin-bottom: 0;
}

.email-body-modal__content p:empty,
.email-body-modal__content div:empty {
  display: none;
}

.email-body-modal__content br + br {
  display: none;
}

.email-body-modal__content h1,
.email-body-modal__content h2,
.email-body-modal__content h3,
.email-body-modal__content h4 {
  margin: 0 0 0.45em;
  color: #0f172a;
  line-height: 1.3;
  font-weight: 700;
}

.email-body-modal__content h1 { font-size: 1.2em; }
.email-body-modal__content h2 { font-size: 1.1em; }
.email-body-modal__content h3,
.email-body-modal__content h4 { font-size: 1em; }

.email-body-modal__content ul,
.email-body-modal__content ol {
  margin: 0 0 0.55em;
  padding-left: 1.25em;
}

.email-body-modal__content li + li {
  margin-top: 0.2em;
}

.email-body-modal__content blockquote {
  margin: 0 0 0.55em;
  padding: 6px 10px;
  border-left: 3px solid #cbd5e1;
  background: #fff;
  color: #475569;
}

.email-body-modal__content pre,
.email-body-modal__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.email-body-modal__content pre {
  margin: 0 0 0.55em;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  overflow: auto;
}

.email-body-modal__content hr {
  margin: 0.7em 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.email-body-modal__content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.email-body-modal__content img,
.email-body-modal__content video {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.email-body-modal__content table {
  max-width: 100%;
  border-collapse: collapse;
}

.email-body-modal__content td,
.email-body-modal__content th {
  padding: 4px 6px;
  vertical-align: top;
}

.email-body-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid #eef2f7;
  background: #fafbfc;
}

.email-body-modal__note {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .modal.modal--email-body {
    width: calc(100% - 16px);
    max-width: none;
    max-height: min(90vh, 720px);
    border-radius: 10px;
  }

  .email-body-modal__scroll {
    padding: 0 10px;
  }

  .email-body-modal__footer {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 10px;
  }

  .email-body-modal__footer .btn {
    width: 100%;
  }
}

.table-email-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.table-inline-form {
  display: inline-flex;
  margin: 0;
  flex-shrink: 0;
}

[data-bulk-delete] {
  display: none !important;
}

[data-bulk-delete].is-visible {
  display: inline-flex !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-opened {
  background: #dcfce7;
  color: #15803d;
}

.badge-unopened {
  background: #f1f5f9;
  color: #64748b;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.auth-card p {
  margin: 0 0 24px;
  color: #64748b;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='password'] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}

a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus {
  color: #fff;
  text-decoration: none;
}

a.btn-secondary,
a.btn-secondary:hover,
a.btn-secondary:focus {
  color: #0f172a;
  text-decoration: none;
}

.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-outline {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
}

.btn.btn-outline {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
}

a.btn-outline,
a.btn.btn-outline,
a.btn-outline:hover,
a.btn.btn-outline:hover,
a.btn-outline:focus,
a.btn.btn-outline:focus,
a.btn-outline:focus-visible,
a.btn.btn-outline:focus-visible {
  color: #0f172a;
  text-decoration: none;
}

.btn-outline:hover,
.btn-outline:focus-visible,
.btn.btn-outline:hover,
.btn.btn-outline:focus-visible {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.error-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #b91c1c;
  font-size: 14px;
}

.token-box {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  margin-top: 12px;
}

.detail-grid {
  display: grid;
  gap: 16px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.meta-row span:last-child {
  color: #475569;
  text-align: right;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ── Mailsuite-style dashboard shell ── */

.dashboard-body {
  background: #f4f6f8;
  overflow: hidden;
  height: 100%;
}

html:has(.dashboard-body) {
  height: 100%;
}

.dashboard-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.dashboard-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #111827;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  padding: 18px 0 24px;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.dashboard-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.dashboard-sidebar__brand:hover {
  text-decoration: none;
}

.dashboard-sidebar__brand-mark {
  color: #22c55e;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-sidebar__brand .brand-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

.dashboard-sidebar__brand .brand-logo-img--icon {
  width: 36px;
  height: 36px;
}

.dashboard-sidebar__section {
  padding: 14px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.dashboard-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 14px;
  color: #cbd5e1;
  text-decoration: none;
}

.dashboard-sidebar__link i {
  width: 16px;
  text-align: center;
  color: #94a3b8;
}

.dashboard-sidebar__link.is-active i {
  color: #86efac;
}

.dashboard-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
}

.dashboard-sidebar__link.is-active {
  background: rgba(34, 197, 94, 0.18);
  color: #fff;
  border-left: 3px solid #22c55e;
  padding-left: 15px;
}

.dashboard-sidebar__count {
  margin-left: auto;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.dashboard-sidebar__link--soon {
  opacity: 0.72;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

.dashboard-topbar__lead {
  flex: 1;
  max-width: 420px;
}

.dashboard-topbar__extension-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

a.dashboard-topbar__extension-btn,
a.dashboard-topbar__extension-btn:hover,
a.dashboard-topbar__extension-btn:focus,
a.dashboard-topbar__extension-btn:focus-visible,
a.dashboard-topbar__extension-btn:active {
  color: #0f172a;
  text-decoration: none;
}

a.dashboard-topbar__extension-btn:hover,
a.dashboard-topbar__extension-btn:focus-visible {
  background: #f0fdfa;
  border-color: #14b8a6;
  color: #0f766e;
}

.dashboard-topbar__extension-btn i {
  color: #4285f4;
  font-size: 15px;
}

.dashboard-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #14b8a6;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.btn-upgrade:hover {
  background: #0d9488;
  text-decoration: none;
}

.dashboard-topbar__link {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
}

.dashboard-topbar__link:hover,
.dashboard-topbar__link:focus,
.dashboard-topbar__link:focus-visible,
.dashboard-topbar__link:active {
  text-decoration: none;
}

.dashboard-topbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
  color: #64748b;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dashboard-topbar__icon:hover,
.dashboard-topbar__icon:focus,
.dashboard-topbar__icon:focus-visible,
.dashboard-topbar__icon:active {
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
  outline: none;
}

.dashboard-topbar__icon i {
  text-decoration: none;
  pointer-events: none;
}

.account-menu {
  position: relative;
  margin-left: 4px;
  flex-shrink: 0;
}

.account-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  min-width: 0;
  padding: 4px 10px 4px 4px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-menu__trigger:hover,
.account-menu.is-open .account-menu__trigger {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.account-menu__trigger:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.account-menu__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.account-menu__avatar--lg {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.account-menu__identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
  line-height: 1.25;
}

.account-menu__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.account-menu__name,
.account-menu__email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__name {
  max-width: 120px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.account-menu__email {
  max-width: 180px;
  font-size: 11px;
  color: #64748b;
}

.account-menu__plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 18px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.account-menu__plan--free {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}

.account-menu__plan--pro {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: #0f766e;
}

.account-menu__plan--admin {
  background: #ede9fe;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.account-menu__caret {
  font-size: 10px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.account-menu.is-open .account-menu__caret {
  transform: rotate(180deg);
}

.account-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 280px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.account-menu__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.account-menu__header-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  justify-content: center;
}

.account-menu__header-name {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.account-menu__header-email {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-menu__divider {
  height: 1px;
  margin: 4px 0;
  background: #e2e8f0;
}

.account-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu__item i {
  width: 1em;
  color: #64748b;
  text-align: center;
}

.account-menu__item:hover,
.account-menu__item:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
  outline: none;
  text-decoration: none;
}

.account-menu__item--danger {
  color: #b91c1c;
}

.account-menu__item--danger i {
  color: #dc2626;
}

.account-menu__item--danger:hover,
.account-menu__item--danger:focus-visible {
  background: #fef2f2;
  color: #991b1b;
}

.account-menu__logout-form {
  margin: 0;
}

.dashboard-topbar__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.dashboard-topbar__menu:hover,
.dashboard-topbar__menu:focus-visible {
  background: #f8fafc;
  color: #0f172a;
  outline: none;
}

.dashboard-sidebar-overlay {
  display: none;
}

.dashboard-sidebar__link--extension {
  display: none;
}

.dashboard-sidebar__mobile-only {
  display: none;
}

.dashboard-sidebar__logout-form {
  margin: 0;
}

.dashboard-sidebar__link--button {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.dashboard-content {
  padding: 24px 28px 40px;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.page-title {
  margin: 0 0 20px;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f172a;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.page-header .page-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.page-header .export-menu {
  flex: 0 0 auto;
  margin-left: auto;
}

.page-title--inline {
  font-size: 24px;
  margin-bottom: 16px;
}

.page-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.page-tabs a {
  padding: 0 0 12px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.page-tabs a.is-active {
  color: #0f172a;
  border-bottom: 2px solid #22c55e;
}

.page-toolbar {
  margin-bottom: 20px;
}

.page-toolbar__select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
}

.page-toolbar__select select {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.panel-card,
.settings-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
}

.track-detail.panel-card {
  padding: 0;
  overflow: hidden;
}

.track-detail__section {
  padding: 24px;
  scroll-margin-top: 24px;
}

.track-detail__section + .track-detail__section {
  border-top: 1px solid #e2e8f0;
}

.track-detail h2,
.track-detail .data-table__header h2,
.track-detail .data-table__header h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
}

.track-detail__section .page-title--inline {
  margin-bottom: 20px;
}

.track-detail__section .data-table-card:not(.panel-card) {
  margin-top: 0;
}

.track-detail .data-table-card .data-table__toolbar {
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

.track-detail .data-table-card .data-table__toolbar .filter-panel {
  width: 100%;
}

.track-detail__link-block .meta-row:last-of-type {
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

.track-detail__link-block .data-table-card {
  margin-top: 0;
}

.track-detail__link-block + .track-detail__link-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.data-table__toolbar:has(.filter-panel) {
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

.data-table__toolbar .filter-panel {
  width: 100%;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: #64748b;
}

.empty-state p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #475569;
}

.empty-state__hint {
  margin-top: 8px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #94a3b8 !important;
}

.activity-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.activity-feed__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.activity-feed__item:last-child {
  border-bottom: none;
}

.activity-feed__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #16a34a;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.activity-feed__item--click .activity-feed__icon {
  background: #eff6ff;
  color: #2563eb;
}

.activity-feed__item--alert .activity-feed__icon {
  background: #fff7ed;
  color: #ea580c;
}

.activity-feed__body {
  flex: 1;
  min-width: 0;
}

.activity-feed__subject {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-feed__detail {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.activity-feed__time {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.table--dashboard th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  white-space: nowrap;
}

.table--dashboard td {
  color: #0f172a;
}

.table--dashboard th.table__cell--numeric,
.table--dashboard td.table__cell--numeric {
  padding-left: 12px;
  padding-right: 20px;
}

.table--dashboard td a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

.table--dashboard td a:hover {
  color: #0d9488;
  text-decoration: none;
}

.table--dashboard td a.btn {
  text-decoration: none;
  white-space: nowrap;
}

.table--dashboard td a.btn-primary,
.table--dashboard td a.btn-primary:hover,
.table--dashboard td a.btn-primary:focus,
.table--dashboard td a.btn-primary:focus-visible,
.table--dashboard td a.btn-primary:active {
  color: #fff;
  background: #2563eb;
  text-decoration: none;
}

.table--dashboard td a.btn-primary:hover,
.table--dashboard td a.btn-primary:focus,
.table--dashboard td a.btn-primary:focus-visible {
  background: #1d4ed8;
  color: #fff;
}

.table--dashboard td a.btn-outline,
.table--dashboard td a.btn-outline:hover,
.table--dashboard td a.btn-outline:focus,
.table--dashboard td a.btn-outline:focus-visible,
.table--dashboard td a.btn-outline:active,
.table--dashboard td a.btn.btn-outline,
.table--dashboard td a.btn.btn-outline:hover,
.table--dashboard td a.btn.btn-outline:focus,
.table--dashboard td a.btn.btn-outline:focus-visible,
.table--dashboard td a.btn.btn-outline:active {
  color: #0f172a;
  background: #fff;
  text-decoration: none;
}

.table--dashboard td a.btn-outline:hover,
.table--dashboard td a.btn.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.table--dashboard td a.btn-secondary {
  color: #0f172a;
}

.table--dashboard td a.btn-secondary:hover {
  background: #cbd5e1;
  color: #0f172a;
  text-decoration: none;
}

.badge--click {
  background: #eff6ff;
  color: #2563eb;
}

.badge--alert {
  background: #fff7ed;
  color: #ea580c;
}

.badge i {
  margin-right: 4px;
}

.data-table-card {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.data-table-card.panel-card {
  padding: 0;
  overflow-x: auto;
  overflow-y: visible;
}

.data-table-card:not(.panel-card) {
  margin-top: 16px;
}

.data-table-card.panel-card .data-table__toolbar {
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid #e2e8f0;
}

.data-table-card.panel-card .data-table__toolbar .filter-panel {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  gap: 1rem;
}

.data-table-card.panel-card .data-table__scroll {
  border: none;
  border-radius: 0;
  border-top: 1px solid #e2e8f0;
}

.data-table-card.panel-card .data-table__footer {
  padding: 1rem 1.5rem 1.25rem;
  margin-top: 0;
  border-top: 1px solid #e2e8f0;
}

.data-table-card.panel-card .data-table__header {
  padding: 1.25rem 1.5rem 0;
}

.data-table__header h2,
.data-table__header h3 {
  margin: 0 0 16px;
}

.data-table__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.data-table__toolbar--standalone {
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
  justify-content: center;
}

.data-table__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
}

.data-table__filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  flex: 1 1 520px;
}

.data-table__filters-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.data-table__search-field,
.data-table__date-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.data-table__search-field {
  flex: 1 1 260px;
}

.data-table__date-range {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.data-table__date-field {
  flex: 1 1 160px;
}

.data-table__date-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table__field-icon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  color: #94a3b8;
  pointer-events: none;
  font-size: 14px;
  line-height: 1;
}

.data-table__search-input,
.data-table__date-input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.data-table__search-input:focus,
.data-table__date-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.data-table__search-btn,
.data-table__clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.data-table__search-btn {
  border: 1px solid #16a34a;
  background: #22c55e;
  color: #fff;
}

.data-table__search-btn:hover {
  background: #16a34a;
}

.data-table__clear-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
}

.data-table__clear-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.flatpickr-calendar {
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  font-family: inherit;
  overflow: hidden;
}

.flatpickr-calendar.hasTime {
  display: grid !important;
  grid-template-columns: 307px 120px;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  width: 427px !important;
  max-width: calc(100vw - 24px) !important;
  padding: 0 !important;
}

.flatpickr-calendar.hasTime .flatpickr-months {
  grid-column: 1;
  grid-row: 1;
  position: relative !important;
  width: 307px !important;
  max-width: 307px !important;
}

.flatpickr-calendar.hasTime .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar.hasTime .flatpickr-months .flatpickr-next-month {
  position: absolute !important;
  top: 0 !important;
  height: 34px !important;
  z-index: 4;
}

.flatpickr-calendar.hasTime .flatpickr-months .flatpickr-prev-month {
  left: 0 !important;
  right: auto !important;
}

.flatpickr-calendar.hasTime .flatpickr-months .flatpickr-next-month {
  right: 0 !important;
  left: auto !important;
}

.flatpickr-calendar.hasTime .flatpickr-innerContainer {
  grid-column: 1;
  grid-row: 2;
  width: 307px !important;
  border-right: 1px solid #eef2f7;
}

.flatpickr-calendar.hasTime .flatpickr-rContainer,
.flatpickr-calendar.hasTime .flatpickr-days,
.flatpickr-calendar.hasTime .dayContainer {
  width: 307px !important;
  min-width: 307px !important;
  max-width: 307px !important;
}

.flatpickr-calendar.hasTime .flatpickr-time {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px;
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100%;
  margin: 0 !important;
  padding: 20px 14px !important;
  border: none !important;
  border-left: 1px solid #eef2f7 !important;
  background: #f8fafc;
  box-sizing: border-box;
  line-height: 1 !important;
  overflow: hidden;
}

.flatpickr-calendar.hasTime .flatpickr-time:before {
  content: 'Time';
  display: block;
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.flatpickr-calendar.hasTime .flatpickr-time .numInputWrapper {
  position: relative !important;
  width: 72px !important;
  height: 44px !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.flatpickr-calendar.hasTime .flatpickr-time .numInputWrapper:hover {
  border-color: #cbd5e1;
}

.flatpickr-calendar.hasTime .flatpickr-time input.flatpickr-hour,
.flatpickr-calendar.hasTime .flatpickr-time input.flatpickr-minute {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 20px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  text-align: center !important;
  -moz-appearance: textfield;
}

.flatpickr-calendar.hasTime .flatpickr-time input.flatpickr-hour::-webkit-outer-spin-button,
.flatpickr-calendar.hasTime .flatpickr-time input.flatpickr-hour::-webkit-inner-spin-button,
.flatpickr-calendar.hasTime .flatpickr-time input.flatpickr-minute::-webkit-outer-spin-button,
.flatpickr-calendar.hasTime .flatpickr-time input.flatpickr-minute::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.flatpickr-calendar.hasTime .flatpickr-time .flatpickr-time-separator {
  display: none !important;
}

.flatpickr-calendar.hasTime .flatpickr-time .numInputWrapper span.arrowUp,
.flatpickr-calendar.hasTime .flatpickr-time .numInputWrapper span.arrowDown {
  display: none !important;
}

.flatpickr-calendar.hasTime .flatpickr-time .flatpickr-am-pm {
  width: 72px !important;
  height: 34px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 999px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 32px !important;
  text-align: center;
  cursor: pointer;
}

.flatpickr-calendar.hasTime .flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-calendar.hasTime .flatpickr-time .flatpickr-am-pm:focus {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
  color: #1e40af !important;
}

@media (max-width: 520px) {
  .flatpickr-calendar.hasTime {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    width: 307px !important;
  }

  .flatpickr-calendar.hasTime .flatpickr-months,
  .flatpickr-calendar.hasTime .flatpickr-innerContainer,
  .flatpickr-calendar.hasTime .flatpickr-time {
    grid-column: 1;
    width: 307px !important;
    max-width: 307px !important;
  }

  .flatpickr-calendar.hasTime .flatpickr-months {
    grid-row: 1;
  }

  .flatpickr-calendar.hasTime .flatpickr-innerContainer {
    grid-row: 2;
    border-right: none;
  }

  .flatpickr-calendar.hasTime .flatpickr-time {
    grid-row: 3;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px;
    border-left: none !important;
    border-top: 1px solid #eef2f7 !important;
    padding: 12px !important;
  }

  .flatpickr-calendar.hasTime .flatpickr-time:before {
    display: none;
  }
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #22c55e;
  border-color: #22c55e;
}

.data-table__toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.data-table__toolbar-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.data-table__toolbar:has(.filter-panel) .data-table__toolbar-bar {
  margin-bottom: 14px;
}

.export-menu {
  position: relative;
  display: inline-flex;
  order: 2;
}

.export-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #16a34a;
  border-radius: 10px;
  background: #16a34a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(22, 163, 74, 0.22);
}

.export-menu__trigger:hover,
.export-menu__trigger:focus-visible {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
  outline: none;
}

.export-menu__caret {
  font-size: 10px;
  opacity: 0.85;
}

.export-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 168px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.export-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.export-menu__item:hover {
  background: #f0fdf4;
  color: #166534;
  text-decoration: none;
}

.export-menu__item i {
  width: 16px;
  text-align: center;
  color: #16a34a;
}

[data-bulk-delete] {
  order: 1;
}

.data-table__scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  max-width: 100%;
}

/* Bare tables inside cards (billing history, subscription, etc.) */
.card > .table,
.card > table.table {
  display: table;
}

.card:has(> .table),
.card:has(> table.table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.data-table__scroll:focus {
  outline: 2px solid rgba(34, 197, 94, 0.35);
  outline-offset: 2px;
}

.data-table__scroll .table {
  margin: 0;
}

.data-table__scroll .table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: inset 0 -1px 0 #e2e8f0;
}

.data-table-empty {
  padding-top: 48px;
  padding-bottom: 48px;
}

.table__truncate {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination-wrap {
  margin-top: 0;
}

.table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.table-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.table-footer__per-page {
  margin: 0;
}

.table-footer__per-page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
}

.table-footer__per-page-label select {
  padding: 8px 32px 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size: 14px;
  color: #0f172a;
  appearance: none;
}

.table-footer__summary {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pagination__btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pagination__btn:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
  color: #0f172a;
}

.pagination__btn--disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
}

.pagination__btn--disabled:hover {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #94a3b8;
  box-shadow: none;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination__page,
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pagination__page:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pagination__page:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
  color: #0f172a;
}

.pagination__page--active {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.pagination__page--active:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  box-shadow: none;
}

.pagination__ellipsis {
  border-color: transparent;
  background: transparent;
  color: #94a3b8;
  min-width: auto;
  padding: 0 4px;
}

@media (max-width: 768px) {
  .data-table__toolbar,
  .table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .data-table__filters,
  .data-table__filters-row,
  .table-footer__meta {
    width: 100%;
  }

  .pagination-wrap {
    overflow-x: auto;
  }

  .pagination {
    justify-content: center;
    min-width: max-content;
  }

  .table th,
  .table td {
    padding: 12px 14px;
  }
}

.settings-subnav {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.settings-subnav a {
  padding: 0 0 12px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.settings-subnav a.is-active {
  color: #0f172a;
  border-bottom: 2px solid #22c55e;
}

.settings-panel h2 {
  margin-top: 0;
  font-size: 18px;
}

.settings-subtitle {
  margin: 24px 0 12px;
  font-size: 15px;
}

.settings-copy {
  color: #64748b;
  font-size: 14px;
}

.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.settings-toggle p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch input:checked + .switch__slider {
  background: #22c55e;
}

.switch input:checked + .switch__slider::before {
  transform: translateX(20px);
}

.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-danger:hover {
  background: #fecaca;
}

.coming-soon {
  text-align: center;
  padding: 72px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.coming-soon__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
}

.coming-soon__hint {
  color: #64748b;
  max-width: 520px;
  margin: 12px auto 20px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.plan-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

.plan-card--featured {
  border-color: #22c55e;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}

.plan-card__price {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 16px;
}

.plan-card__price span {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.plan-card__features {
  margin: 0 0 20px;
  padding-left: 18px;
  color: #475569;
  font-size: 14px;
}

.plan-card__current {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.back-link {
  margin: 0 0 16px;
}

.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  text-decoration: none;
}

.back-link a:hover {
  color: #0f172a;
}

@media (max-width: 960px) {
  body.dashboard-nav-open {
    overflow: hidden;
  }

  .dashboard-shell {
    flex-direction: row;
    height: 100vh;
  }

  .dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(280px, 88vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    padding-bottom: 24px;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.18);
  }

  .dashboard-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .dashboard-sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-sidebar__nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    min-height: 0;
    max-height: none;
  }

  .dashboard-sidebar__section {
    display: block;
  }

  .dashboard-sidebar__link {
    padding: 10px 18px;
    border-radius: 0;
    font-size: 14px;
  }

  .dashboard-sidebar__link.is-active {
    border-left: 3px solid #22c55e;
    padding-left: 15px;
  }

  .dashboard-sidebar__link--extension {
    display: flex;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
  }

  .dashboard-sidebar__mobile-only {
    display: block;
    margin-top: auto;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dashboard-topbar__action--overflow {
    display: none !important;
  }

  .dashboard-topbar__actions {
    flex: 0 0 auto;
    gap: 0;
  }

  .account-menu {
    margin-left: 0;
  }

  .account-menu__trigger {
    max-width: none;
    padding: 2px;
    border-color: transparent;
    background: transparent;
  }

  .account-menu__identity,
  .account-menu__caret {
    display: none;
  }

  .account-menu__panel {
    width: min(280px, calc(100vw - 24px));
  }

  .dashboard-main {
    flex: 1;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
  }

  .dashboard-topbar {
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
  }

  .dashboard-topbar__menu {
    display: inline-flex;
  }

  .dashboard-topbar__lead {
    display: none;
  }

  .dashboard-topbar__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
  }

  .dashboard-topbar__link,
  .dashboard-topbar__logout-text {
    display: none;
  }

  .btn-upgrade {
    padding: 8px 10px;
    font-size: 12px;
  }

  .dashboard-content {
    padding: 16px 14px 28px;
  }

  .page-title {
    font-size: 1.375rem;
    margin-bottom: 16px;
  }

  .track-detail__hero {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .track-detail__metrics {
    width: 100%;
    max-width: none;
    flex-wrap: wrap;
  }

  .track-detail__metric {
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: 5.5rem;
  }

  .track-intel__grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .track-detail__metric {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .filter-panel__search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-panel__search-row > .filter-field,
  .filter-panel__search-row > .filter-field--search {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .filter-panel__actions {
    width: 100%;
  }

  .filter-panel__apply,
  .filter-panel__clear {
    flex: 1;
    justify-content: center;
  }
}

.modal--confirm {
  max-width: 440px;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.modal__header--confirm {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 0;
}

.modal__header-copy {
  flex: 1;
  min-width: 0;
}

.modal__icon--danger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.modal__actions--confirm {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
  padding: 20px 24px 24px;
  border-top: 1px solid #e2e8f0;
}

/* UI chrome links — never show underline on hover/focus */
.dashboard-topbar a,
.dashboard-topbar a:hover,
.dashboard-topbar a:focus,
.dashboard-topbar a:focus-visible,
.dashboard-topbar a:active,
.dashboard-sidebar a,
.dashboard-sidebar a:hover,
.dashboard-sidebar a:focus,
.dashboard-sidebar a:focus-visible,
.dashboard-sidebar a:active,
.settings-sidebar a,
.settings-sidebar a:hover,
.settings-sidebar a:focus,
.settings-sidebar a:focus-visible,
.settings-sidebar a:active,
.page-tabs a,
.page-tabs a:hover,
.settings-subnav a,
.settings-subnav a:hover,
.admin-breadcrumbs a,
.admin-breadcrumbs a:hover,
.btn-upgrade,
.btn-upgrade:hover {
  text-decoration: none !important;
}

/* Filter panel (search + intelligence) */
.filter-panel {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
  display: grid;
  gap: 14px;
}

.filter-panel__body {
  display: grid;
  gap: 14px;
}

.filter-panel__intel {
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.filter-panel__intel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-panel__intel-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-panel__intel-active {
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 4px 10px;
  border-radius: 999px;
}

.filter-panel__intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.filter-panel__search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.filter-panel__search-row > .filter-field {
  flex: 1 1 9rem;
  min-width: 8rem;
}

.filter-panel__search-row > .filter-field--search {
  flex: 1.4 1 11rem;
  min-width: 10rem;
}

.filter-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.filter-panel__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.filter-panel__apply:hover {
  background: #15803d;
}

.filter-panel__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.filter-panel__clear:hover {
  background: #f8fafc;
  color: #0f172a;
}

.filter-field {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.filter-field--search {
  min-width: 0;
}

.filter-field__label {
  display: flex;
  align-items: flex-end;
  min-height: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.filter-input-wrap {
  position: relative;
  display: block;
}

.filter-input-wrap__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-input {
  padding-left: 38px;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.filter-select-wrap {
  position: relative;
  display: block;
}

.filter-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.filter-select {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.filter-input--plain {
  padding-left: 12px;
}

.filter-input--color {
  padding: 4px;
  height: 42px;
  cursor: pointer;
}

.filter-textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  resize: vertical;
}

.filter-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.filter-field--grow {
  flex: 1;
  min-width: 180px;
}

.filter-panel.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.filter-panel.is-loading .filter-panel__apply::after {
  content: "…";
}

[data-ajax-filter-root].is-loading {
  opacity: 0.72;
  pointer-events: none;
}

[data-ajax-filter-root].is-loading [data-ajax-table-target] {
  min-height: 12rem;
}

.data-table__toolbar .filter-panel {
  margin: 0;
}

/* Tracking intelligence UI */
.table__cell--status {
  min-width: 11rem;
}

.table__cell--status .track-badges {
  margin-top: 0;
}

.track-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table__placeholder {
  color: #94a3b8;
}

.track-detail__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #fff;
}

.track-detail__hero-main {
  flex: 1;
  min-width: min(100%, 16rem);
}

.track-detail__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.track-detail__hero .track-badges {
  margin-top: 0;
}

.track-detail__meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.track-detail__meta-line i {
  font-size: 0.75rem;
  color: #94a3b8;
}

.track-detail__meta-sep {
  color: #cbd5e1;
}

.track-detail__metrics {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.track-detail__metric {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  white-space: nowrap;
}

.track-detail__metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.3rem;
  font-size: 0.5625rem;
}

.track-detail__metric--opens .track-detail__metric-icon {
  color: #15803d;
  background: #dcfce7;
}

.track-detail__metric--clicks .track-detail__metric-icon {
  color: #6d28d9;
  background: #ede9fe;
}

.track-detail__metric--reply .track-detail__metric-icon {
  color: #0369a1;
  background: #e0f2fe;
}

.track-detail__metric strong {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
}

.track-detail__metric > span:last-child {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1;
}

@media (max-width: 720px) {
  .track-detail__hero {
    align-items: flex-start;
  }

  .track-detail__metrics {
    width: 100%;
    flex-wrap: wrap;
  }
}

.track-detail__section-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.track-detail__section--compact {
  padding-top: 18px;
  padding-bottom: 18px;
}

.track-detail__intel-fold {
  margin: 0;
  border-top: 1px solid #e2e8f0;
}

.track-detail__intel-fold-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 24px;
  cursor: pointer;
  list-style: none;
  background: #f8fafc;
}

.track-detail__intel-fold-summary::-webkit-details-marker {
  display: none;
}

.track-detail__intel-fold-summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #64748b;
  transition: transform 0.15s ease;
}

.track-detail__intel-fold[open] .track-detail__intel-fold-summary::before {
  transform: rotate(90deg);
}

.track-detail__intel-fold-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.track-detail__intel-fold-hint {
  font-size: 13px;
  color: #64748b;
}

.detail-grid--compact {
  margin-top: 0;
}

.badge-engagement--not_viewed {
  background: #f1f5f9;
  color: #64748b;
}

.badge-engagement--viewed {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-engagement--interested {
  background: #fef3c7;
  color: #b45309;
}

.badge-engagement--high_interest {
  background: #fce7f3;
  color: #be185d;
}

.badge-engagement--custom-1 {
  background: #eef2ff;
  color: #3730a3;
}

.badge-engagement--custom-2 {
  background: #ecfdf5;
  color: #047857;
}

.badge-engagement--custom-3 {
  background: #fff7ed;
  color: #c2410c;
}

.badge-engagement--custom-4 {
  background: #f5f3ff;
  color: #6d28d9;
}

.filter-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}

.filter-field__manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: 1px solid #2563eb;
  border-radius: 8px;
  padding: 5px 11px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-field__manage i {
  font-size: 11px;
}

.filter-field__manage:hover,
.filter-field__manage:focus-visible {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

.filter-field__manage:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.engagement-dialog {
  border: 0;
  padding: 0;
  max-width: 640px;
  width: calc(100% - 32px);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.engagement-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.engagement-dialog__panel {
  padding: 20px 22px 18px;
}

.engagement-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.engagement-dialog__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.engagement-dialog__lead {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.engagement-manager__errors {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.engagement-manager__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.engagement-manager__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.engagement-manager__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.engagement-manager__range {
  font-size: 13px;
  color: #64748b;
}

.engagement-manager__row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.engagement-manager__form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 110px 110px auto;
  gap: 8px;
  align-items: end;
  width: 100%;
}

.engagement-manager__form--add {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.engagement-manager__add-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.engagement-manager__hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: #64748b;
}

.engagement-manager__field {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.engagement-manager__field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}

.engagement-manager__restore {
  margin-top: 14px;
}

.badge-reply--not_opened {
  background: #f1f5f9;
  color: #64748b;
}

.badge-reply--opened_no_reply {
  background: #ffedd5;
  color: #c2410c;
}

.badge-reply--replied {
  background: #dcfce7;
  color: #15803d;
}

.badge-reply--pending {
  background: #e0e7ff;
  color: #4338ca;
}

.badge-reply--completed {
  background: #dcfce7;
  color: #15803d;
}

.badge-reply--cancelled {
  background: #f1f5f9;
  color: #64748b;
}

.track-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.track-tag-list--compact .track-tag {
  font-size: 11px;
  padding: 3px 9px;
}

.track-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.track-tag[data-colored] {
  background: color-mix(in srgb, var(--tag-color) 14%, #fff);
  color: color-mix(in srgb, var(--tag-color) 72%, #0f172a);
  border-color: color-mix(in srgb, var(--tag-color) 26%, #e2e8f0);
}

.track-detail__section--intel {
  padding: 16px 20px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.track-detail__section--intel .track-intel {
  margin-bottom: 0;
}

/* Tracking intelligence panel */
.track-intel {
  margin: 0;
}

.track-intel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.track-intel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.track-intel__subtitle {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.track-intel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.track-intel__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: none;
}

.track-intel__panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.track-intel__panel-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.track-intel__panel-icon--tags {
  background: #eff6ff;
  color: #2563eb;
}

.track-intel__panel-icon--notes {
  background: #fef3c7;
  color: #b45309;
}

.track-intel__panel-icon--reminders {
  background: #f3e8ff;
  color: #7c3aed;
}

.track-intel__panel-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.track-intel__panel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 12px 12px;
  gap: 10px;
}

.track-intel__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #94a3b8;
}

.track-intel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.track-intel__chip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
}

.track-intel__chip-remove-form {
  display: inline-flex;
  margin: 0;
}

.track-intel__chip-remove {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.track-intel__chip-remove:hover {
  background: #f1f5f9;
  color: #475569;
}

.track-intel__feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 9rem;
  overflow-y: auto;
}

.track-intel__feed-item {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.track-intel__feed-item--reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.track-intel__feed-text {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.4;
  color: #0f172a;
}

.track-intel__feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
}

.track-intel__reminder-when {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #0f172a;
}

.track-intel__reminder-when i {
  color: #94a3b8;
}

.track-intel__reminder-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.track-intel__composer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.track-intel__row-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.track-intel__row-form:last-child,
.track-intel__stack-form:last-child {
  margin-bottom: 0;
}

.track-intel__row-form--actions {
  margin-bottom: 0;
}

.track-intel__stack-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-intel__field-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.track-intel__field-row--actions {
  flex-wrap: wrap;
}

.track-intel__form-actions {
  display: flex;
  justify-content: flex-end;
}

.track-intel__inline-btn {
  flex-shrink: 0;
  align-self: flex-end;
  white-space: nowrap;
}

.track-intel .intel-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.track-intel .intel-field--grow {
  flex: 1;
}

.track-intel .intel-field--color {
  flex-shrink: 0;
}

.track-intel .intel-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.track-intel .intel-label__hint {
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #94a3b8;
}

.track-intel .intel-control {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.track-intel .intel-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.track-intel .intel-select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.track-intel .intel-textarea {
  min-height: 56px;
  resize: vertical;
  padding: 8px 10px;
}

.track-intel .intel-color-input {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.track-intel .intel-color-input input[type="color"] {
  width: 26px;
  height: 26px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.track-intel__text-action {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.track-intel__text-action:hover {
  color: #0f172a;
}

.track-intel__panel .btn-primary.btn-sm,
.track-intel__panel .btn-outline.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .track-intel__grid {
    grid-template-columns: 1fr;
  }

  .filter-panel__intel-grid {
    grid-template-columns: 1fr;
  }

  .engagement-manager__form {
    grid-template-columns: 1fr;
  }

  .filter-panel__search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-panel__search-row > .filter-field,
  .filter-panel__search-row > .filter-field--search {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .filter-panel__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ── Notification bell + history ── */

.notification-bell {
  position: relative;
}

.notification-bell__toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.notification-bell__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: min(380px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  z-index: 40;
  overflow: hidden;
}

.notification-dropdown__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.notification-dropdown__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.notification-dropdown__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.notification-dropdown__mark {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
  cursor: pointer;
}

.notification-dropdown__mark:hover {
  color: #115e59;
}

.notification-dropdown__empty {
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
}

.notification-dropdown__empty i {
  font-size: 22px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.notification-dropdown__empty p {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.notification-dropdown__empty span {
  font-size: 12px;
  color: #94a3b8;
}

.notification-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}

.notification-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}

.notification-dropdown__item:hover,
.notification-dropdown__item:focus-visible {
  background: #f8fafc;
  text-decoration: none;
}

.notification-dropdown__item.is-unread {
  background: #f0fdfa;
}

.notification-dropdown__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #ecfdf5;
  color: #16a34a;
  font-size: 12px;
}

.notification-dropdown__icon--clicks {
  background: #eff6ff;
  color: #2563eb;
}

.notification-dropdown__icon--alerts {
  background: #fff7ed;
  color: #ea580c;
}

.notification-dropdown__icon--reminders {
  background: #f5f3ff;
  color: #7c3aed;
}

.notification-dropdown__icon--polls {
  background: #fdf4ff;
  color: #c026d3;
}

.notification-dropdown__icon--signatures {
  background: #f8fafc;
  color: #0f172a;
}

.notification-dropdown__body {
  min-width: 0;
  flex: 1;
}

.notification-dropdown__item-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.notification-dropdown__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14b8a6;
  flex-shrink: 0;
}

.notification-dropdown__message {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-dropdown__when {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}

.notification-dropdown__group {
  font-weight: 600;
  color: #64748b;
}

.notification-dropdown__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.notification-dropdown__footer a {
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
}

.notification-dropdown__footer a:hover {
  color: #115e59;
}

.notification-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.notification-groups__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.notification-groups__chip span {
  color: #94a3b8;
  font-weight: 700;
  font-size: 12px;
}

.notification-groups__chip:hover,
.notification-groups__chip:focus-visible {
  border-color: #14b8a6;
  color: #0f766e;
  text-decoration: none;
}

.notification-groups__chip.is-active {
  background: #f0fdfa;
  border-color: #14b8a6;
  color: #0f766e;
}

.notification-groups__chip.is-active span {
  color: #0f766e;
}

.notification-row.is-unread {
  background: #f8fffc;
}

.notification-history__title {
  font-weight: 700;
  color: #0f172a;
}

.notification-history__title:hover {
  color: #0f766e;
}

.notification-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.notification-status--unread {
  background: #ccfbf1;
  color: #0f766e;
}

.notification-status--read {
  background: #f1f5f9;
  color: #64748b;
}

.notification-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.notification-group-badge i {
  width: 14px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 960px) {
  .notification-groups {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .notification-groups__chip {
    flex-shrink: 0;
  }
}

.form-results__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 20px 24px;
}

.form-results__hero-main {
  flex: 1 1 16rem;
  min-width: 0;
}

.form-results__title {
  margin: 0 0 10px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

.form-results__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.form-results__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.form-results__meta i {
  color: #94a3b8;
}

.form-results__desc {
  margin: 10px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.form-results__share {
  flex: 1 1 26rem;
  min-width: min(100%, 22rem);
  max-width: 36rem;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.form-results__share-label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.form-results__url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.form-results__url {
  flex: 1 1 12rem;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.form-results__url:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
  border-color: #60a5fa;
}

.form-results__url-row .btn {
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.form-results__url-row .btn.is-copied {
  background: #ecfdf5;
  color: #047857;
}

.form-results__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.form-results__heading {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
}

.form-results__count {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.form-results__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-results__item {
  margin: 0;
  padding: 18px 20px;
}

.form-results__item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.form-results__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.form-results__item-who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-results__item-who strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-results__item-who time {
  color: #64748b;
  font-size: 12px;
}

.form-results__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 24px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.form-results__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.form-results__field--wide {
  grid-column: 1 / -1;
}

.form-results__fields dt,
.form-results__fields dd {
  margin: 0;
}

.form-results__fields dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-results__fields dd {
  min-width: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.form-results__fields dd a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.form-results__fields dd a:hover {
  text-decoration: underline;
}

.form-results__empty-value {
  color: #94a3b8;
  font-weight: 500;
}

.form-results__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 48px 24px;
  text-align: center;
}

.form-results__empty i {
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 28px;
}

.form-results__empty p {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.form-results__empty span {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 720px) {
  .form-results__share {
    max-width: none;
  }

  .form-results__url-row .btn {
    flex: 1 1 auto;
  }
}

