:root {
  --atp-primary: #245f73;
  --atp-primary-dark: #19495a;
  --atp-accent: #c98435;
  --atp-bg: #f5f7f8;
  --atp-border: #d9e1e5;
  --atp-text: #1e2a31;
}

.stat-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.stat-card span {
  display: block;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.stat-card strong {
  color: #111827;
  font-size: 1.75rem;
  line-height: 1;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--atp-text);
  background: var(--atp-bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.login-page {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef4f5 0%, #f8f6f1 100%);
}

.login-shell {
  width: min(420px, calc(100vw - 32px));
}

.login-panel {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
}

.login-panel h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  color: var(--atp-primary-dark);
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.login-logo {
  display: block;
  width: min(260px, 82%);
  max-height: 145px;
  object-fit: contain;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--atp-border);
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: visible;
}

.main-menu-link,
.main-menu-button {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--atp-text);
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  border: 0;
  background: transparent;
}

.main-menu-link:hover,
.main-menu-button:hover {
  color: var(--atp-primary-dark);
  background: #edf5f6;
}

.main-menu-link.disabled,
.main-submenu-link.disabled {
  pointer-events: none;
  color: #8a989f;
  background: transparent;
}

.main-menu-dropdown {
  position: relative;
}

.main-menu-dropdown::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 8px;
  content: '';
}

.main-submenu {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(22, 38, 48, .14);
}

.main-menu-dropdown:hover .main-submenu,
.main-menu-dropdown:focus-within .main-submenu,
.main-menu-dropdown.is-open .main-submenu {
  display: grid;
}

.main-submenu-link {
  display: block;
  padding: 9px 10px;
  color: var(--atp-text);
  border-radius: 6px;
  white-space: nowrap;
}

.main-submenu-link:hover {
  color: var(--atp-primary-dark);
  background: #edf5f6;
}

.brand {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--atp-primary-dark);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  min-width: 142px;
  padding: 0;
}

.brand-logo img {
  display: block;
  width: 152px;
  max-height: 36px;
  object-fit: contain;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #53636b;
  font-size: .94rem;
  min-width: 0;
}

.topbar-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 18;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 24px;
  color: #53636b;
  font-size: .88rem;
  background: #fff;
  border-top: 1px solid var(--atp-border);
}

.app-footer span:first-child {
  color: var(--atp-primary-dark);
  font-weight: 700;
}

.topbar-group-select {
  width: min(260px, 28vw);
}

.context-note {
  padding: 8px 10px;
  color: #53636b;
  background: #f7fafb;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
}

.context-value {
  padding-top: 6px;
  color: var(--atp-primary-dark);
  font-weight: 700;
}

.email-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.email-actions-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.manual-email-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(120px, 150px) auto;
  gap: 10px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--atp-border);
}

.manual-email-submit {
  display: grid;
}

.email-builder {
  display: grid;
  gap: 10px;
}

.email-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.email-template-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.email-preview-frame {
  width: 100%;
  min-height: 68vh;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
  background: #fff;
}

.email-preview-modal .modal-body {
  padding: 12px;
}

.email-editor:focus {
  border-color: var(--atp-primary);
  box-shadow: 0 0 0 .2rem rgba(27, 137, 116, .12);
  outline: 0;
}

.email-editor:empty::before {
  color: #7a8990;
  content: attr(data-placeholder);
}

.note-editor.note-frame {
  border-color: var(--atp-border);
  border-radius: 8px;
}

.note-editor .note-toolbar {
  background: #f8fafb;
  border-color: var(--atp-border);
  border-radius: 8px 8px 0 0;
}

.note-editor .note-editable {
  min-height: 520px;
}

.email-preview-title {
  margin-bottom: 6px;
  color: #53636b;
  font-size: .85rem;
  font-weight: 700;
}

.app-main {
  max-width: 1180px;
  margin: 24px auto;
  width: calc(100vw - 48px);
  min-width: 0;
}

.page-host {
  width: 100%;
  min-height: calc(100vh - 106px);
  padding-top: 1px;
  padding-bottom: 42px;
  margin-top: 64px;
}

.page-header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.page-header > div:first-child {
  min-width: 0;
}

.page-header h1 {
  margin: 0;
  font-size: 1.55rem;
}

.page-header p {
  display: none;
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.content-panel {
  background: #fff;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
  padding: 18px;
  min-width: 0;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.report-metrics div {
  min-width: 0;
  padding: 10px 12px;
  background: #f7fafb;
  border: 1px solid #e6edf0;
  border-radius: 8px;
}

.report-metrics span {
  display: block;
  color: #607079;
  font-size: .78rem;
  line-height: 1.1;
}

.report-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--atp-primary-dark);
  font-size: 1.15rem;
  line-height: 1.1;
}

.report-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: end;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}
.form-label
{
  margin-bottom: .1rem !important;
}
.form-grid-3 {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(140px, 180px);
}

.field-check {
  align-self: end;
  min-height: 38px;
  display: flex;
  align-items: center;
  margin: 0;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.general-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: stretch;
}

.side-settings {
  display: grid;
  gap: 14px;
  align-self: stretch;
  align-content: start;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--atp-border);
  background: transparent;
}

.side-settings .form-check {
  margin: 0;
  padding: 10px 0 4px 1.65rem;
}

.side-settings .form-check-input {
  margin-top: .2rem;
}

.audit-info {
  display: grid;
  gap: 10px;
}

.audit-info dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.audit-info dt {
  color: #65747c;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.audit-info dd {
  min-height: 38px;
  margin: -6px 0 2px;
  padding: 8px 10px;
  color: var(--atp-text);
  font-size: .92rem;
  font-weight: 600;
  background: #f8fafb;
  border: 1px solid var(--atp-border);
  border-radius: 6px;
}

.audit-info dd:last-child {
  margin-bottom: 2px;
}

.settings-texts {
  display: grid;
  gap: 22px;
}

.settings-text-group {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--atp-border);
}

.settings-text-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.settings-text-group h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.auxiliary-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.auxiliary-table-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
}

.auxiliary-table-card:hover {
  border-color: var(--atp-primary);
  background: #f8fbfc;
}

.auxiliary-table-card__icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: var(--atp-primary);
  border-radius: 8px;
}

.auxiliary-table-card__body {
  display: grid;
  gap: 4px;
}

.auxiliary-table-card__body small {
  color: #63727a;
}

.login-table {
  width: 100%;
  margin: 0;
}

.login-table th,
.login-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--atp-border);
  vertical-align: top;
}

.group-picker-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.group-picker-toolbar .form-control {
  max-width: 360px;
}

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

@media (max-width: 720px) {
  .group-picker-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .group-picker-toolbar .form-control {
    max-width: none;
  }

  .group-picker-actions {
    justify-content: flex-start;
  }
}

.permissions-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
  background: #fff;
}

.permissions-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.permissions-table thead th {
  padding: 12px 16px;
  color: #52626b;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #f6f8f9;
  border-bottom: 1px solid var(--atp-border);
}

.permissions-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f3;
  vertical-align: middle;
}

.permissions-table tbody tr:nth-child(even) td {
  background: #fafcfc;
}

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

.permissions-table tbody tr:hover td {
  background: #f8fbfc;
}

.permissions-table th:first-child,
.permissions-table td:first-child {
  width: auto;
  font-weight: 600;
}

.permissions-table th:not(:first-child),
.permissions-table td:not(:first-child) {
  width: 110px;
  text-align: center;
}

.permission-toggle {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
}

.permission-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.permission-toggle span {
  position: absolute;
  inset: 0;
  border: 1px solid #cfd9de;
  border-radius: 999px;
  background: #eef2f4;
  transition: background .16s ease, border-color .16s ease;
}

.permission-toggle span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  content: '';
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(19, 35, 45, .22);
  transition: transform .16s ease;
}

.permission-toggle input:checked + span {
  border-color: var(--atp-primary);
  background: var(--atp-primary);
}

.permission-toggle input:checked + span::after {
  transform: translateX(18px);
}

.btn-primary {
  --bs-btn-bg: var(--atp-primary);
  --bs-btn-border-color: var(--atp-primary);
  --bs-btn-hover-bg: var(--atp-primary-dark);
  --bs-btn-hover-border-color: var(--atp-primary-dark);
}

.osb-grid-shell {
  width: 100%;
  overflow: visible;
  border-radius: 8px;
}

.nav-tabs {
  flex-wrap: wrap;
  overflow: visible;
}

.nav-tabs .nav-link {
  white-space: nowrap;
}

.tab-content {
  min-width: 0;
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 16px;
    gap: 12px;
  }

  .app-main {
    width: calc(100vw - 32px);
    max-width: none;
    margin: 20px auto 24px;
  }

}

@media (max-width: 720px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 10px;
  }

  .topbar-main {
    gap: 14px;
    min-width: 0;
  }

  .topbar-user {
    justify-content: flex-end;
    max-width: calc(100vw - 150px);
  }

  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .page-actions .btn {
    flex: 1 1 120px;
  }

  .content-panel {
    padding: 14px;
  }

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

  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .report-toolbar {
    grid-template-columns: 1fr;
  }

  .manual-email-form {
    grid-template-columns: 1fr;
  }

  .general-layout {
    grid-template-columns: 1fr;
  }

  .side-settings {
    align-self: start;
    padding: 14px;
    border: 1px solid var(--atp-border);
    border-radius: 8px;
    background: #f8fafb;
  }

  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 112px;
    padding: 10px 14px;
  }

  .topbar-main {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .main-menu {
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-menu::-webkit-scrollbar {
    display: none;
  }

  .main-submenu {
    right: auto;
    left: 0;
  }

  .topbar-user {
    width: 100%;
    max-width: none;
    justify-content: space-between;
  }

  .app-main {
    width: calc(100vw - 32px);
    margin: 18px auto 20px;
  }

  .page-host {
    min-height: calc(100vh - 154px);
    padding-bottom: 42px;
    margin-top: 112px;
  }

  .login-panel {
    padding: 24px;
  }

}


.global-message {
  position: fixed;
  top: 78px;
  right: 18px;
  z-index: 1080;
  width: min(380px, calc(100vw - 36px));
  margin: 0;
  border: 0;
  box-shadow: 0 16px 36px rgba(30, 42, 49, 0.16);
}

.send-progress-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.send-progress-summary > div {
  padding: 10px 12px;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
  background: #f8fafb;
}

.send-progress-bar {
  height: 22px;
}

.send-progress-list {
  max-height: 360px;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
}

.send-progress-list thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

@media (max-width: 720px) {
  .global-message {
    top: 74px;
    right: 12px;
    width: calc(100vw - 24px);
  }

  .send-progress-summary {
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 480px) {
  .global-message {
    top: 122px;
  }
}

.dashboard-main {
  max-width: 1360px;
}

.dashboard-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-context > div,
.dashboard-kpi,
.dashboard-panel {
  background: #fff;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
}

.dashboard-context > div {
  padding: 12px 14px;
}

.dashboard-context span,
.dashboard-kpi span,
.dashboard-kpi small,
.dashboard-rate small,
.dashboard-list-row span,
.dashboard-error-row span,
.dashboard-error-row small {
  color: #607079;
}

.dashboard-context strong {
  display: block;
  margin-top: 2px;
  color: var(--atp-primary-dark);
  font-size: 1rem;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-kpi {
  padding: 14px;
}

.dashboard-kpi span,
.dashboard-kpi small {
  display: block;
  font-size: .82rem;
}

.dashboard-kpi strong {
  display: block;
  margin: 5px 0 3px;
  color: #15242b;
  font-size: 1.65rem;
  line-height: 1;
}

.dashboard-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-panel {
  padding: 14px;
  min-width: 0;
}

.dashboard-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-panel-header h2 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-rates,
.dashboard-bars,
.dashboard-list,
.dashboard-errors {
  display: grid;
  gap: 12px;
}

.dashboard-rate-top,
.dashboard-bar-label,
.dashboard-list-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.dashboard-meter,
.dashboard-bar,
.dashboard-list-bar {
  height: 8px;
  overflow: hidden;
  background: #eef2f4;
  border-radius: 999px;
}

.dashboard-meter span,
.dashboard-bar span,
.dashboard-list-bar span {
  display: block;
  height: 100%;
  background: var(--atp-primary);
  border-radius: inherit;
}

.dashboard-rate small {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
}

.dashboard-bar-row.is-draft .dashboard-bar span {
  background: #8a98a3;
}

.dashboard-bar-row.is-sending .dashboard-bar span {
  background: #c98435;
}

.dashboard-bar-row.is-sent .dashboard-bar span {
  background: #2d7c65;
}

.dashboard-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #607079;
  font-size: .8rem;
  flex-wrap: wrap;
}

.dashboard-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dashboard-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
}

.dashboard-legend .sent {
  background: var(--atp-primary);
}

.dashboard-legend .opened {
  background: #2d7c65;
}

.dashboard-legend .failed {
  background: #b84a4a;
}

.dashboard-timeline {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 8px;
  min-height: 180px;
  align-items: end;
}

.dashboard-day {
  display: grid;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.dashboard-day-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  height: 135px;
  padding: 8px 3px 0;
  background: #f7fafb;
  border: 1px solid #e6edf0;
  border-radius: 8px;
}

.dashboard-day-bars span {
  width: 9px;
  min-height: 2px;
  border-radius: 999px 999px 0 0;
}

.dashboard-day-bars .sent {
  background: var(--atp-primary);
}

.dashboard-day-bars .opened {
  background: #2d7c65;
}

.dashboard-day-bars .failed {
  background: #b84a4a;
}

.dashboard-day small {
  color: #607079;
  font-size: .72rem;
}

.dashboard-list-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f3;
}

.dashboard-list-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-list-row strong,
.dashboard-error-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-list-row span {
  display: block;
  font-size: .78rem;
}

.dashboard-list-row em {
  color: var(--atp-primary-dark);
  font-style: normal;
  font-weight: 700;
}

.dashboard-list-bar {
  grid-column: 1 / -1;
}

.dashboard-error-row {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f3;
}

.dashboard-error-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-error-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .dashboard-kpis,
  .dashboard-grid-2,
  .dashboard-context {
    grid-template-columns: 1fr;
  }

  .dashboard-timeline {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.topbar-profile-link {
  max-width: 220px;
  overflow: hidden;
  color: #53636b;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-profile-link:hover {
  color: var(--atp-primary-dark);
}

.profile-main {
  max-width: 900px;
}

.profile-panel {
  max-width: 820px;
}

.profile-main {
  max-width: 1120px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-summary-panel,
.profile-form-panel {
  background: #fff;
  border: 1px solid var(--atp-border);
  border-radius: 8px;
}

.profile-summary-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #fff;
  background: var(--atp-primary);
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 800;
}

.profile-summary-text strong,
.profile-summary-text span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-summary-text strong {
  color: #15242b;
  font-size: 1.2rem;
}

.profile-summary-text span {
  color: #607079;
}

.profile-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #edf1f3;
}

.profile-meta dt {
  color: #607079;
  font-weight: 600;
}

.profile-meta dd {
  margin: 0;
  color: var(--atp-primary-dark);
  font-weight: 700;
  text-align: right;
}

.profile-form-panel {
  display: grid;
  gap: 0;
  padding: 0;
}

.profile-section {
  padding: 20px;
}

.profile-section + .profile-section {
  border-top: 1px solid #edf1f3;
}

.profile-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-section-header h2 {
  margin: 0;
  font-size: 1rem;
}

.profile-section-header span {
  color: #607079;
  font-size: .86rem;
}

@media (max-width: 860px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-meta dd {
    text-align: left;
  }
}

button.topbar-profile-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
