.contact-center-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 14px;
  padding: 24px;
  overflow: hidden;
  border-color: #173f73;
  background: linear-gradient(135deg, #07182f, #123b72);
  color: #fff;
}

.contact-center-hero h2 {
  margin: 4px 0 7px;
  font-size: 27px;
  font-weight: 650;
}

.contact-center-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #c7d7ec;
  font-size: 12px;
  line-height: 1.55;
}

.contact-center-hero .eyebrow {
  color: #8db9ff;
}

.contact-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 11px;
  background: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.contact-center-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
}

.contact-center-metrics > div {
  padding: 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.contact-center-metrics > div:last-child {
  border-right: 0;
}

.contact-center-metrics strong {
  display: block;
  font-size: 20px;
  font-weight: 650;
}

.contact-center-metrics span {
  display: block;
  margin-top: 2px;
  color: #bed0e7;
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid #dce3ed;
  border-radius: 13px;
  background: #eaf0f7;
}

.contact-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 9px;
  color: #526173;
  font-size: 11px;
  font-weight: 600;
}

.contact-tabs a span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dfe7f1;
  color: #475467;
  font-size: 8px;
  text-align: center;
}

.contact-tabs a:hover {
  background: #f5f8fc;
  color: #1849a9;
}

.contact-tabs a.active {
  background: #fff;
  box-shadow: 0 4px 13px rgba(15, 23, 42, .08);
  color: #1849a9;
}

.contact-tabs a.active span {
  background: #eaf2ff;
  color: #1849a9;
}

.contact-workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(440px, 1.2fr);
  gap: 16px;
  margin-bottom: 16px;
}

.contact-create-card,
.contact-category-card,
.contact-lists-panel,
.contact-directory,
.contact-import-history,
.contact-import-stage {
  padding: 20px;
}

.contact-create-card,
.contact-category-card {
  margin: 0;
}

.contact-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-section-heading h2 {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 650;
}

.contact-section-heading > span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #526173;
  font-size: 9px;
  font-weight: 700;
}

.contact-section-heading > div > p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.contact-create-card > label {
  display: block;
  margin-top: 11px;
  color: #475467;
  font-size: 10px;
  font-weight: 600;
}

.contact-create-card > button {
  width: 100%;
  margin-top: 15px;
}

.category-add-form {
  display: grid;
  grid-template-columns: minmax(145px, .7fr) minmax(190px, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.category-add-form input {
  min-height: 39px;
  margin: 0;
  padding: 9px 10px;
  font-size: 11px;
}

.category-add-form button {
  min-height: 39px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 10px;
}

.category-manager-list {
  display: grid;
  gap: 7px;
  max-height: 315px;
  overflow: auto;
  padding-right: 2px;
}

.category-manager-row {
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fbfcfe;
}

.category-manager-row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.category-manager-row summary::-webkit-details-marker,
.list-card-menu > summary::-webkit-details-marker {
  display: none;
}

.category-manager-row summary > span {
  display: grid;
  gap: 2px;
}

.category-manager-row summary strong {
  font-size: 11px;
  font-weight: 650;
}

.category-manager-row summary small {
  color: var(--muted);
  font-size: 9px;
}

.category-manager-row summary b {
  color: #2563eb;
  font-size: 9px;
  font-weight: 650;
}

.category-manager-row > form:first-of-type {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid #e8edf3;
}

.category-manager-row label {
  margin: 0;
  color: #667085;
  font-size: 8px;
  font-weight: 600;
}

.category-manager-row input {
  min-height: 35px;
  margin-top: 4px;
  padding: 7px 8px;
  font-size: 10px;
}

.category-manager-row button {
  align-self: end;
  min-height: 35px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 9px;
}

.category-manager-row > .inline-form {
  margin: 0 10px 10px;
}

.contact-lists-panel,
.contact-directory,
.contact-import-history {
  margin-bottom: 16px;
}

.contact-lists-panel > .contact-section-heading {
  align-items: center;
}

.list-live-search {
  width: min(260px, 42%);
  margin: 0;
  color: #667085;
  font-size: 9px;
  font-weight: 600;
}

.list-live-search input {
  height: 38px;
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 11px;
}

.contact-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.contact-list-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.contact-list-card:hover {
  border-color: #bcd0ef;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.contact-list-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.contact-list-card header > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.contact-list-card header > div > div {
  min-width: 0;
}

.contact-list-card h3 {
  overflow: hidden;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-list-card header span:not(.contact-list-initial):not(.tag) {
  color: var(--muted);
  font-size: 11px;
}

.contact-list-initial {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 750;
  place-items: center;
}

.contact-list-card > p {
  min-height: 33px;
  margin: 12px 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.contact-list-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e9edf3;
  border-radius: 9px;
  background: #e9edf3;
}

.contact-list-stats span {
  display: grid;
  gap: 1px;
  padding: 8px 5px;
  background: #f8fafc;
  color: #667085;
  font-size: 10px;
  text-align: center;
}

.contact-list-stats strong {
  color: #101828;
  font-size: 14px;
  font-weight: 650;
}

.contact-list-card footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(64px, .72fr) repeat(2, minmax(72px, 1fr));
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.contact-card-action,
.list-card-menu > summary {
  display: grid;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  place-items: center;
}

.contact-list-detail-hero {
  margin-bottom: 16px;
  padding: 20px;
  border-color: #cddbec;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.contact-list-detail-top,
.contact-list-detail-title,
.contact-list-detail-stats {
  display: flex;
  align-items: center;
}

.contact-list-detail-top {
  justify-content: space-between;
  margin-bottom: 16px;
}

.contact-list-detail-top a {
  color: #1849a9;
  font-size: 11px;
  font-weight: 650;
}

.contact-list-detail-top > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: #526173;
  font-size: 10px;
}

.contact-list-detail-title {
  gap: 12px;
}

.contact-list-detail-title > div {
  min-width: 0;
}

.contact-list-detail-title .contact-list-initial {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  font-size: 17px;
}

.contact-list-detail-title h2 {
  margin: 2px 0 4px;
  font-size: 23px;
  font-weight: 650;
}

.contact-list-detail-title p {
  margin: 0;
  color: #667085;
  font-size: 12px;
}

.contact-list-detail-title .contact-primary-action {
  margin-left: auto;
}

.contact-list-detail-stats {
  gap: 8px;
  margin-top: 18px;
}

.contact-list-detail-stats span {
  min-width: 110px;
  padding: 9px 12px;
  border: 1px solid #dce6f3;
  border-radius: 10px;
  background: rgba(255, 255, 255, .8);
  color: #667085;
  font-size: 10px;
}

.contact-list-detail-stats strong {
  margin-right: 4px;
  color: #101828;
  font-size: 14px;
}

.contact-directory-filter.single-list {
  grid-template-columns: minmax(220px, 1fr) auto;
  width: min(460px, 55%);
}

.contact-list-detail-empty {
  padding: 28px;
}

.contact-list-detail-empty h2 {
  margin: 4px 0 7px;
}

.contact-list-detail-empty p:not(.eyebrow) {
  margin: 0 0 16px;
  color: #667085;
}

.contact-card-action.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.list-card-menu {
  position: relative;
}

.list-card-menu > summary {
  list-style: none;
}

.list-card-menu > div {
  position: absolute;
  right: 0;
  z-index: 40;
  width: 290px;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #d8e1ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .18);
}

.list-card-menu form:not(.inline-form) {
  display: grid;
  gap: 8px;
}

.list-card-menu label {
  margin: 0;
  color: #667085;
  font-size: 8px;
  font-weight: 600;
}

.list-card-menu input,
.list-card-menu select,
.list-card-menu textarea {
  margin-top: 4px;
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 10px;
}

.list-card-menu button {
  padding: 8px;
  border-radius: 8px;
  font-size: 9px;
}

.list-card-menu .inline-form {
  width: 100%;
  margin: 8px 0 0;
}

.list-card-menu .inline-form button {
  width: 100%;
}

.list-delete-note {
  min-height: 0 !important;
  margin: 9px 0 0 !important;
  padding: 8px;
  border-radius: 8px;
  background: #fff7ed !important;
  color: #9a3412 !important;
  font-size: 9px !important;
}

.contact-directory > .contact-section-heading {
  align-items: end;
}

.contact-directory .contact-section-heading .eyebrow {
  font-size: 11px;
}

.contact-directory .contact-section-heading h2 {
  font-size: 20px;
}

.contact-directory .contact-section-heading > div > p:last-child {
  font-size: 12px;
}

.contact-directory-filter {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(150px, .72fr) auto;
  gap: 7px;
  width: min(620px, 65%);
}

.contact-directory-filter input,
.contact-directory-filter select {
  height: 38px;
  margin: 0;
  padding: 8px 10px;
  font-size: 10px;
}

.contact-directory-filter button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 9px;
}

.contact-directory-list {
  display: grid;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 13px;
}

.contact-directory-list > article {
  display: grid;
  grid-template-columns: 36px minmax(210px, 1.4fr) minmax(150px, 1fr) minmax(130px, .65fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
}

.contact-directory-list > article:last-child {
  border-bottom: 0;
}

.contact-directory-list > article:hover {
  background: #fafcff;
}

.contact-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #edf4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
  place-items: center;
}

.contact-identity,
.contact-company,
.contact-row-status {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-identity strong,
.contact-company strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-identity span,
.contact-company span,
.contact-row-status > span {
  overflow: hidden;
  color: #667085;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-row-status {
  justify-items: start;
}

.contact-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.contact-row-actions > a {
  padding: 7px 8px;
  border-radius: 8px;
  background: #eaf2ff;
  color: #1849a9;
  font-size: 8px;
  font-weight: 650;
}

.contact-row-actions .inline-form {
  margin: 0;
}

.contact-row-actions button {
  min-height: 29px;
  padding: 6px 7px;
  border-radius: 8px;
  font-size: 8px;
}

.contact-pagination {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.contact-pagination .pagination-direction {
  width: auto;
  padding: 0 12px;
}

.pagination-gap {
  display: grid;
  min-width: 28px;
  height: 34px;
  color: #98a2b3;
  font-size: 11px;
  place-items: center;
}

.contact-add-shell {
  margin-bottom: 16px;
  padding: 0;
  overflow: hidden;
}

.contact-add-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid #dce7f5;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.contact-add-head h2 {
  margin: 3px 0 4px;
  font-size: 21px;
  font-weight: 650;
}

.contact-add-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.contact-add-head > form {
  width: min(310px, 40%);
}

.contact-add-head label {
  margin: 0;
  color: #475467;
  font-size: 9px;
  font-weight: 600;
}

.contact-add-head select {
  height: 40px;
  margin-top: 5px;
  padding: 8px 10px;
  font-size: 11px;
}

.contact-method-tabs {
  display: flex;
  gap: 5px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}

.contact-method-tabs a {
  padding: 8px 12px;
  border-radius: 9px;
  color: #667085;
  font-size: 10px;
  font-weight: 650;
}

.contact-method-tabs a.active {
  background: #eaf2ff;
  color: #1849a9;
}

.quick-contact-form,
.contact-upload-dropzone {
  padding: 22px;
}

.quick-contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(280px, 1.28fr);
  gap: 12px;
}

.quick-contact-grid label,
.contact-upload-dropzone > label:not(.contact-file-zone):not(.verified-check) {
  margin: 0;
  color: #475467;
  font-size: 10px;
  font-weight: 600;
}

.quick-contact-grid select {
  margin-top: 6px;
}

.quick-contact-grid .wide {
  grid-column: 1 / -1;
}

.quick-contact-grid textarea {
  min-height: 230px;
  margin-top: 6px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.quick-format-note {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid #dce6f5;
  border-radius: 11px;
  background: #f8fbff;
}

.quick-format-note strong {
  font-size: 10px;
  font-weight: 650;
}

.quick-format-note span {
  color: #667085;
  font-size: 9px;
}

.quick-contact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.quick-contact-footer p {
  margin: 0;
  color: #667085;
  font-size: 9px;
}

.quick-contact-footer button {
  width: auto;
  min-width: 160px;
  margin: 0;
}

.contact-upload-dropzone {
  display: grid;
  grid-template-columns: minmax(200px, .55fr) minmax(280px, 1.45fr);
  gap: 12px;
}

.contact-file-zone {
  position: relative;
  display: grid;
  min-height: 145px;
  padding: 25px;
  border: 1px dashed #9eb7dd;
  border-radius: 14px;
  background: #f8fbff;
  text-align: center;
  place-items: center;
}

.contact-file-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.contact-file-zone strong {
  font-size: 12px;
  font-weight: 650;
}

.contact-file-zone span {
  color: #667085;
  font-size: 9px;
}

.contact-upload-dropzone .verified-check,
.contact-upload-dropzone > button {
  grid-column: 1 / -1;
}

.contact-upload-dropzone .verified-check {
  margin: 0;
}

.contact-upload-dropzone > button {
  width: auto;
  min-width: 180px;
  justify-self: end;
}

.contact-import-history {
  padding: 20px;
}

.import-history-list {
  display: grid;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 13px;
}

.import-history-list article {
  display: grid;
  grid-template-columns: 42px minmax(230px, 1.2fr) minmax(270px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
}

.import-history-list article:last-child {
  border-bottom: 0;
}

.import-file-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 9px;
  font-weight: 750;
  place-items: center;
}

.import-file-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.import-file-info strong,
.import-file-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-file-info strong {
  font-size: 11px;
  font-weight: 650;
}

.import-file-info span {
  color: #667085;
  font-size: 8px;
}

.import-result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.import-result-metrics span {
  display: grid;
  gap: 2px;
  color: #667085;
  font-size: 8px;
  text-align: center;
}

.import-result-metrics strong {
  color: #101828;
  font-size: 12px;
  font-weight: 650;
}

.import-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.import-history-actions .inline-form {
  margin: 0;
}

.import-history-actions button {
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 8px;
}

.contact-empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 32px;
  border: 1px dashed #ccd6e3;
  border-radius: 12px;
  color: #667085;
  text-align: center;
}

.contact-empty-state strong {
  color: #344054;
  font-size: 13px;
}

.contact-empty-state span,
.contact-empty-state a {
  font-size: 10px;
}

.contact-empty-state a {
  padding: 8px 10px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
}

.theme-dark .contact-tabs {
  border-color: var(--line);
  background: #111a28;
}

.theme-dark .contact-tabs a.active,
.theme-dark .contact-list-card,
.theme-dark .contact-directory-list > article,
.theme-dark .import-history-list article,
.theme-dark .list-card-menu > div {
  border-color: var(--line);
  background: #172235;
}

.theme-dark .contact-create-card,
.theme-dark .contact-category-card,
.theme-dark .contact-lists-panel,
.theme-dark .contact-list-detail-hero,
.theme-dark .contact-directory,
.theme-dark .contact-add-shell,
.theme-dark .contact-import-history,
.theme-dark .contact-import-stage {
  background: #121c2b;
}

.theme-dark .category-manager-row,
.theme-dark .quick-format-note,
.theme-dark .contact-file-zone {
  border-color: #34445a;
  background: #0f1927;
}

.theme-dark .contact-list-stats {
  border-color: #2a3749;
  background: #2a3749;
}

.theme-dark .contact-list-stats span {
  background: #101a29;
}

.theme-dark .contact-list-stats strong,
.theme-dark .contact-identity strong,
.theme-dark .contact-company strong,
.theme-dark .import-result-metrics strong {
  color: #e7edf6;
}

.theme-dark .contact-add-head {
  border-color: #29466d;
  background: linear-gradient(135deg, #142033, #17253a);
}

@media (max-width: 1120px) {
  .contact-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-directory-list > article {
    grid-template-columns: 36px minmax(190px, 1.3fr) minmax(140px, 1fr) minmax(110px, .6fr) auto;
  }

  .contact-workspace-grid {
    grid-template-columns: 1fr;
  }

  .category-manager-list {
    max-height: none;
  }
}

@media (max-width: 800px) {
  .contact-center-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-center-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .contact-center-metrics > div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .contact-tabs {
    overflow-x: auto;
  }

  .contact-tabs a {
    flex: 1;
    min-width: max-content;
  }

  .contact-list-grid {
    grid-template-columns: 1fr;
  }

  .contact-list-detail-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .contact-list-detail-title .contact-primary-action {
    width: 100%;
    margin-left: 0;
  }

  .contact-list-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-list-detail-stats span {
    min-width: 0;
  }

  .contact-directory > .contact-section-heading,
  .contact-add-head {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-directory-filter,
  .contact-add-head > form {
    width: 100%;
  }

  .contact-directory-list > article {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .contact-company {
    grid-column: 2;
  }

  .contact-row-status {
    grid-column: 3;
    grid-row: 1;
  }

  .contact-row-actions {
    grid-column: 2 / 4;
    justify-content: flex-start;
  }

  .quick-contact-grid,
  .contact-upload-dropzone {
    grid-template-columns: 1fr;
  }

  .contact-upload-dropzone .verified-check,
  .contact-upload-dropzone > button {
    grid-column: 1;
  }

  .import-history-list article {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .import-result-metrics,
  .import-history-actions {
    grid-column: 2 / 4;
  }

  .import-history-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .contact-center-hero {
    grid-template-columns: 1fr;
  }

  .contact-center-hero .contact-primary-action {
    width: 100%;
  }

  .contact-center-metrics {
    grid-template-columns: 1fr;
  }

  .contact-list-detail-stats {
    grid-template-columns: 1fr;
  }

  .contact-center-metrics > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .contact-center-metrics > div:last-child {
    border-bottom: 0;
  }

  .category-add-form,
  .category-manager-row > form:first-of-type,
  .contact-directory-filter {
    grid-template-columns: 1fr;
  }

  .contact-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .list-live-search {
    width: 100%;
  }

  .list-card-menu > div {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: 80vh;
    overflow: auto;
  }

  .quick-contact-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-contact-footer button {
    width: 100%;
  }

  .contact-directory-list > article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .contact-company,
  .contact-row-status,
  .contact-row-actions {
    grid-column: 2;
  }

  .contact-row-status {
    grid-row: auto;
  }

  .import-history-list article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .import-result-metrics,
  .import-history-actions {
    grid-column: 1 / -1;
  }

  .contact-tabs {
    justify-content: flex-start;
  }

  .contact-tabs a {
    flex: 0 0 auto;
  }
}
