:root {
  --atlc-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --atlc-bg: #f8f9fa;
  --atlc-surface: #ffffff;
  --atlc-surface-soft: #f8f9fa;
  --atlc-surface-muted: #e8eaed;
  --atlc-text: #202124;
  --atlc-text-muted: #5f6368;
  --atlc-border: #dadce0;
  --atlc-border-strong: #c7cbd1;
  --atlc-primary: #4285f4;
  --atlc-primary-dark: #1a73e8;
  --atlc-accent-soft: rgba(66, 133, 244, 0.1);
  --atlc-success-bg: #e6f4ea;
  --atlc-success-text: #137333;
  --atlc-error-bg: #fce8e6;
  --atlc-error-text: #c5221f;
  --atlc-radius-sm: 12px;
  --atlc-radius-md: 18px;
  --atlc-radius-pill: 9999px;
  --atlc-input-height: 48px;
  --atlc-button-height: 52px;
  --atlc-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
}

body {
  background: var(--atlc-bg);
  color: var(--atlc-text);
  font-family: var(--atlc-font);
}

.atlc-portal-login,
.atlc-portal-dashboard,
.atlc-portal-login *,
.atlc-portal-dashboard * {
  box-sizing: border-box;
  font-family: var(--atlc-font);
}

.atlc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.atlc-card {
  background: var(--atlc-surface);
  border: 1px solid var(--atlc-border);
  border-radius: var(--atlc-radius-md);
  padding: 24px;
  box-shadow: var(--atlc-shadow-sm);
}

.atlc-portal-login,
.atlc-portal-dashboard {
  width: 100%;
  max-width: 100%;
  margin: 24px auto 36px;
  font-size: 16px;
  line-height: 1.45;
}

.atlc-portal-dashboard h2,
.atlc-portal-login h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--atlc-text);
}

.atlc-portal-dashboard h3 {
  margin: 28px 0 14px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--atlc-text);
}

.atlc-portal-dashboard h3:first-of-type {
  margin-top: 6px;
}

.atlc-portal-dashboard > p,
.atlc-portal-login > p {
  color: var(--atlc-text-muted);
}

.atlc-login-modern,
.atlc-signup-modern,
.atlc-recover-modern {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 28px auto 40px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.atlc-login-modern__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.atlc-login-modern__header h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.atlc-login-modern__signup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin: 0;
  color: var(--atlc-text-muted);
  font-size: 18px;
}

.atlc-login-modern__signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--atlc-text);
  font-weight: 600;
  background: #eceef3;
  border: 1px solid #d8dce3;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
}

.atlc-login-modern__signup-btn:hover {
  background: #e5e8ef;
}

.atlc-login-modern__card,
.atlc-signup-modern__card,
.atlc-recover-modern__card {
  width: 100%;
  border-radius: 14px;
  padding: 22px;
  border-color: #d5d9e0;
}

.atlc-login-modern__form {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: none;
}

.atlc-login-modern__field {
  margin: 0;
}

.atlc-login-modern__field label,
.atlc-signup-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--atlc-text);
  font-size: 16px;
  font-weight: 600;
}

.atlc-login-modern__field input[type="text"],
.atlc-login-modern__field input[type="password"] {
  width: 100%;
  max-width: none;
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid #c9ced8;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
}

.atlc-login-modern.atlc-portal-login input[type="text"],
.atlc-login-modern.atlc-portal-login input[type="email"],
.atlc-login-modern.atlc-portal-login input[type="password"] {
  width: 100%;
  max-width: none;
}

.atlc-login-modern.atlc-portal-login,
.atlc-login-modern.atlc-portal-login .atlc-login-modern__card,
.atlc-login-modern.atlc-portal-login .atlc-login-modern__field,
.atlc-login-modern.atlc-portal-login .atlc-login-modern__field input[type="text"],
.atlc-login-modern.atlc-portal-login .atlc-login-modern__field input[type="email"],
.atlc-login-modern.atlc-portal-login .atlc-login-modern__field input[type="password"] {
  width: 100%;
  max-width: none;
}

/* Elementor can shrink shortcode wrappers to content width; force full-width login block. */
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode,
.elementor-widget-shortcode .elementor-shortcode .atlc-login-modern.atlc-portal-login,
.elementor-widget-shortcode .elementor-shortcode .atlc-login-modern.atlc-portal-login .atlc-login-modern__card {
  width: 100% !important;
  max-width: none !important;
}

.atlc-signup-modern.atlc-portal-login input[type="text"],
.atlc-signup-modern.atlc-portal-login input[type="email"],
.atlc-signup-modern.atlc-portal-login input[type="password"],
.atlc-recover-modern.atlc-portal-login input[type="text"],
.atlc-recover-modern.atlc-portal-login input[type="email"],
.atlc-recover-modern.atlc-portal-login input[type="password"] {
  width: 100%;
  max-width: none;
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid #c9ced8;
  padding: 12px 14px;
  font-size: 16px;
}

.atlc-login-modern__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.atlc-login-modern__row label {
  color: var(--atlc-text);
  font-size: 16px;
  font-weight: 600;
}

.atlc-login-modern__row a {
  font-size: 16px;
  color: var(--atlc-primary-dark);
  text-decoration: none;
}

.atlc-login-modern__row a:hover {
  text-decoration: underline;
}

.atlc-login-modern__submit {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  border: 1px solid #000;
  background: #000 !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.atlc-login-modern__submit:hover {
  background: #111 !important;
  border-color: #111 !important;
}

@media (max-width: 1023px) {
  .atlc-login-modern {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 16px 0 24px;
  }
}

.atlc-portal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.atlc-portal-actions a {
  display: block;
  text-decoration: none;
  border: 1px solid var(--atlc-border);
  border-radius: 12px;
  padding: 14px;
  color: var(--atlc-text);
  background: var(--atlc-surface);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.atlc-portal-actions a:hover {
  border-color: var(--atlc-border-strong);
  background: var(--atlc-surface-soft);
  box-shadow: var(--atlc-shadow-sm);
}

.atlc-dashboard-shell {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .atlc-portal-dashboard,
  .atlc-portal-login {
    width: 100%;
    max-width: 100%;
    position: static;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.atlc-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.atlc-dashboard-header > div > p {
  margin: 0;
  font-size: 15px;
  color: var(--atlc-text-muted);
}

.atlc-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.atlc-dashboard-stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #d8e2f0;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.atlc-dashboard-stat-card__label {
  margin: 0;
  color: var(--atlc-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.atlc-dashboard-stat-card__value {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: var(--atlc-text);
}

.atlc-dashboard-actions {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.atlc-dashboard-actions a {
  min-height: 56px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  border-color: #d8e2f0;
  font-weight: 700;
}

.atlc-dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px;
}

.atlc-dashboard-panel {
  background: #fff;
  border: 1px solid #d8e2f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.atlc-dashboard-panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.atlc-dashboard-panel--wide {
  grid-row: span 2;
}

.atlc-dashboard-docs-layout .atlc-dashboard-docs-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
}

.atlc-dashboard-docs-layout .atlc-dashboard-docs-nav,
.atlc-dashboard-docs-layout .atlc-dashboard-docs-side {
  position: sticky;
  top: 24px;
}

.atlc-dashboard-docs-layout--no-side .atlc-dashboard-docs-grid {
  grid-template-columns: 220px minmax(0, 1fr);
}

.atlc-dashboard-docs-layout .atlc-dashboard-docs-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.atlc-dashboard-docs-layout .atlc-dashboard-docs-nav {
  display: grid;
  gap: 12px;
  align-content: start;
}

.atlc-dashboard-docs-layout.atlc-add-form-layout .atlc-dashboard-docs-grid {
  grid-template-columns: 220px minmax(0, 1fr);
}

.atlc-event-wizard.atlc-dashboard-docs-layout.atlc-add-form-layout {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.atlc-dashboard-docs-layout .atlc-dashboard-actions {
  display: none;
}

.atlc-dashboard-docs-layout .atlc-dashboard-docs-menu {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--atlc-border);
  border-radius: 14px;
  background: #fff;
}

.atlc-dashboard-docs-layout .atlc-dashboard-docs-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--atlc-text);
  font-weight: 600;
}

.atlc-dashboard-docs-layout .atlc-dashboard-docs-menu a:hover {
  background: #f5f8fd;
}

.atlc-dashboard-docs-layout .atlc-dashboard-docs-menu a.is-active {
  background: #e8f0ff;
  color: #0b57d0;
}

.atlc-dashboard-docs-layout .atlc-dashboard-docs-side {
  display: grid;
  gap: 12px;
}

.atlc-dashboard-docs-layout .atlc-dashboard-docs-widget {
  padding: 14px;
}

.atlc-dashboard-mini-stats {
  margin: 0;
  display: grid;
  gap: 8px;
}

.atlc-dashboard-mini-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e8edf4;
}

.atlc-dashboard-mini-stats div:last-child {
  border-bottom: 0;
}

.atlc-dashboard-mini-stats dt {
  margin: 0;
  color: var(--atlc-text-muted);
  font-size: 13px;
}

.atlc-dashboard-mini-stats dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--atlc-text);
}

@media (max-width: 1200px) {
  .atlc-dashboard-docs-layout .atlc-dashboard-docs-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .atlc-dashboard-docs-layout .atlc-dashboard-docs-side {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .atlc-dashboard-docs-layout .atlc-dashboard-docs-grid {
    grid-template-columns: 1fr;
  }

  .atlc-dashboard-docs-layout .atlc-dashboard-docs-nav,
  .atlc-dashboard-docs-layout .atlc-dashboard-docs-side {
    position: static;
  }

  .atlc-dashboard-docs-layout .atlc-dashboard-docs-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlc-dashboard-docs-layout .atlc-dashboard-docs-side {
    grid-template-columns: 1fr;
  }
}

.atlc-dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.atlc-dashboard-list__item {
  border: 1px solid #e0e7f3;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fcfdff;
  display: grid;
  gap: 6px;
}

.atlc-dashboard-list__item a {
  color: var(--atlc-text);
  text-decoration: none;
  font-weight: 600;
}

.atlc-dashboard-list__item a:hover {
  text-decoration: underline;
}

.atlc-dashboard-list__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.atlc-dashboard-list__foot {
  display: flex;
  justify-content: flex-end;
}

.atlc-dashboard-list__time {
  font-size: 12px;
  color: #6e6e73;
}

.atlc-dashboard-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef3fd;
  border: 1px solid #d3e3fd;
  color: var(--atlc-primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.atlc-dashboard-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--atlc-border);
  color: var(--atlc-text-muted);
  background: #f1f3f4;
}

.atlc-dashboard-status--publish {
  border-color: #b7ebc6;
  background: #e9f8ee;
  color: #1e8e3e;
}

.atlc-dashboard-status--draft {
  border-color: #dbe4f1;
  background: #f4f7fb;
  color: #415166;
}

.atlc-dashboard-status--pending {
  border-color: #f4d9a6;
  background: #fff6e5;
  color: #b06000;
}

.atlc-dashboard-status--courtesy {
  border-color: #b7e7d0;
  background: #e8f8ef;
  color: #1a7f4b;
}

.atlc-dashboard-progress-text {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--atlc-text);
}

.atlc-dashboard-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf0f3;
  border: 1px solid var(--atlc-border);
}

.atlc-dashboard-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--atlc-primary) 0%, var(--atlc-primary-dark) 100%);
}

.atlc-dashboard-checklist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.atlc-dashboard-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--atlc-text-muted);
  font-size: 14px;
}

.atlc-dashboard-checklist li.is-done {
  color: #1e8e3e;
}

.atlc-dashboard-profile-action {
  margin: 14px 0 0;
}

.atlc-billing-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -2px;
}

.atlc-billing-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d3e3fd;
  background: #eef3fd;
  color: var(--atlc-primary-dark);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.atlc-billing-filter:hover {
  border-color: var(--atlc-primary-dark);
  background: #e5efff;
}

.atlc-billing-filter.is-active {
  border-color: var(--atlc-primary-dark);
  background: var(--atlc-primary);
  color: #fff;
}

.atlc-billing-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.atlc-billing-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--atlc-border);
  background: #fff;
  color: var(--atlc-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.atlc-billing-page:hover {
  border-color: var(--atlc-border-strong);
  background: var(--atlc-surface-soft);
}

.atlc-billing-page.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.atlc-billing-request-form {
  display: grid;
  gap: 8px;
  min-width: 130px;
}

.atlc-billing-request-form__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: var(--atlc-text-muted);
}

.atlc-billing-request-form button {
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.atlc-billing-request-form.is-readonly {
  opacity: 0.75;
}

.atlc-billing-request-form.is-readonly button,
.atlc-billing-request-form.is-readonly input[type='checkbox'] {
  cursor: not-allowed;
}

.atlc-billing-courtesy-notes {
  margin-top: 6px;
  display: grid;
  gap: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--atlc-text-muted);
}

.atlc-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.atlc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  overflow: visible;
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.atlc-table th,
.atlc-table td {
  text-align: left;
  padding: 6px 12px;
  border: 0;
  vertical-align: middle;
  font-size: 13px;
}

.atlc-table th {
  background: #f2f2f7;
  color: #6e6e73;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 0.5px solid #d1d1d6;
}

.atlc-table td {
  background: #ffffff;
  color: #1d1d1f;
  line-height: 1.3;
  border-bottom: 0.5px solid #e5e5ea;
}

.atlc-table th + th {
  border-left: 0.5px solid #d1d1d6;
}

.atlc-table thead th:first-child {
  border-top-left-radius: 8px;
}

.atlc-table thead th:last-child {
  border-top-right-radius: 8px;
}

.atlc-table tbody tr td:first-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.atlc-table tbody tr td:last-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

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

.atlc-table tbody tr:hover td {
  background: #f5f5f8;
}

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

.atlc-billing-shell .atlc-table td:nth-child(2) {
  font-weight: 600;
  color: #1f2a3d;
}

.atlc-account-shell .atlc-account-form {
  display: grid;
  gap: 18px;
}

.atlc-account-photo {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.atlc-account-photo__avatar {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 96px !important;
  border-radius: 999px;
  border: 2px solid #d5d9e0;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #fff;
  display: block;
  line-height: 0;
}

.atlc-account-photo__avatar img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.atlc-account-photo__note {
  margin: 0;
  color: var(--atlc-text-muted);
  font-size: 13px;
  text-align: center;
}

.atlc-account-shell .atlc-account-display-name-field {
  margin-bottom: 0;
}

.atlc-account-counter {
  display: inline-block;
  margin-top: 6px;
  color: var(--atlc-text-muted);
  font-size: 12px;
}

.atlc-account-display-note {
  margin: 0;
  border-radius: 12px;
  border: 1px solid #d8e2f0;
  background: #f5f8fd;
  padding: 12px 14px;
  color: #4a5568;
  font-size: 13px;
  line-height: 1.45;
}

.atlc-account-display-note strong {
  display: block;
  color: #1f2a3d;
  margin-bottom: 4px;
}

.atlc-signup-form__inner {
  display: grid;
  gap: 12px;
}

.atlc-signup-form h2 {
  margin-bottom: 8px;
}

.atlc-signup-form__actions {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.atlc-signup-form__actions button[type="submit"] {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  border: 1px solid #000;
  background: #000 !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
}

.atlc-signup-form .atlc-signup-form__cancel {
  background: transparent !important;
  border: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: var(--atlc-text-muted) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: underline;
  cursor: pointer;
}

.atlc-signup-form .atlc-signup-form__cancel:hover {
  color: var(--atlc-primary-dark) !important;
}

@media (max-width: 1023px) {
  .atlc-signup-modern,
  .atlc-recover-modern,
  .atlc-login-modern {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 16px 0 24px;
  }
}

.atlc-account-shell .atlc-form-grid {
  background: #fbfcff;
  border: 1px solid #d8e2f0;
  border-radius: 14px;
  padding: 14px;
}

.atlc-portal-notice {
  border: 1px solid var(--atlc-border);
  border-radius: var(--atlc-radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.atlc-portal-notice--success {
  background: var(--atlc-success-bg);
  color: var(--atlc-success-text);
}

.atlc-portal-notice--error {
  background: var(--atlc-error-bg);
  color: var(--atlc-error-text);
}

.atlc-portal-login input[type="text"],
.atlc-portal-login input[type="email"],
.atlc-portal-login input[type="password"] {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--atlc-border);
  border-radius: var(--atlc-radius-md);
  min-height: var(--atlc-input-height);
  padding: 10px 14px;
  background: #fff;
  color: var(--atlc-text);
  font-size: 16px;
}

.atlc-portal-login button,
.atlc-portal-login input[type="submit"],
.atlc-portal-dashboard button[type="submit"],
.atlc-portal-dashboard input[type="submit"] {
  background: var(--atlc-primary);
  color: #fff;
  border: 1px solid var(--atlc-primary-dark);
  border-radius: var(--atlc-radius-md);
  min-height: var(--atlc-button-height);
  padding: 0 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.atlc-portal-login button:hover,
.atlc-portal-login input[type="submit"]:hover,
.atlc-portal-dashboard button[type="submit"]:hover,
.atlc-portal-dashboard input[type="submit"]:hover {
  background: var(--atlc-primary-dark);
  border-color: var(--atlc-primary-dark);
}

.atlc-portal-dashboard button[type="submit"]:active,
.atlc-portal-login button:active {
  transform: translateY(1px);
}

.atlc-portal-dashboard button:not([type="submit"]):not(.atlc-tag-chip):not(.atlc-tag-picker-alpha-btn):not(.atlc-tag-picker-clear):not(.atlc-map-locate-button) {
  border: 1px solid var(--atlc-border);
  background: #fff;
  color: var(--atlc-text);
  border-radius: var(--atlc-radius-sm);
  font-weight: 600;
}

.atlc-portal-dashboard input[type="text"],
.atlc-portal-dashboard input[type="email"],
.atlc-portal-dashboard input[type="password"],
.atlc-portal-dashboard input[type="url"],
.atlc-portal-dashboard select,
.atlc-portal-dashboard textarea {
  width: 100%;
  border: 1px solid var(--atlc-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--atlc-text);
}

.atlc-portal-dashboard textarea {
  resize: vertical;
  min-height: 120px;
}

.atlc-portal-dashboard label {
  color: var(--atlc-text);
  font-weight: 600;
  font-size: 15px;
}

.atlc-portal-dashboard input[type="text"],
.atlc-portal-dashboard input[type="email"],
.atlc-portal-dashboard input[type="password"],
.atlc-portal-dashboard input[type="url"],
.atlc-portal-dashboard select,
.atlc-portal-dashboard textarea,
.atlc-portal-login input[type="text"],
.atlc-portal-login input[type="email"],
.atlc-portal-login input[type="password"] {
  outline: none;
  transition: border-color 130ms ease, box-shadow 130ms ease, background-color 130ms ease;
}

.atlc-portal-dashboard input[type="text"]:focus,
.atlc-portal-dashboard input[type="email"]:focus,
.atlc-portal-dashboard input[type="password"]:focus,
.atlc-portal-dashboard input[type="url"]:focus,
.atlc-portal-dashboard select:focus,
.atlc-portal-dashboard textarea:focus,
.atlc-portal-login input[type="text"]:focus,
.atlc-portal-login input[type="email"]:focus,
.atlc-portal-login input[type="password"]:focus {
  border-color: var(--atlc-primary);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.12);
}

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

.atlc-form-grid p {
  margin: 0;
}

.atlc-form-grid-span {
  grid-column: 1 / -1;
}

.atlc-field-help {
  display: block;
  margin: 6px 0 10px;
  color: var(--atlc-text-muted);
  font-size: 13px;
  font-weight: 400;
}

.atlc-choice-cards {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.atlc-choice-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--atlc-border);
  border-radius: var(--atlc-radius-md);
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.atlc-choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.atlc-choice-card__dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1.5px solid var(--atlc-border-strong);
  background: #fff;
  margin-top: 2px;
  box-sizing: border-box;
}

.atlc-choice-card__body {
  display: grid;
  gap: 2px;
}

.atlc-choice-card__title {
  display: block;
  color: var(--atlc-text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.atlc-choice-card__desc {
  display: block;
  color: var(--atlc-text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.atlc-choice-card:has(input[type="radio"]:checked) {
  border-color: var(--atlc-primary);
  background: var(--atlc-accent-soft);
}

.atlc-choice-card:has(input[type="radio"]:checked) .atlc-choice-card__dot {
  border-color: var(--atlc-primary);
  box-shadow: inset 0 0 0 4px var(--atlc-primary);
}

.atlc-choice-card:hover {
  border-color: var(--atlc-border-strong);
}

.atlc-chip-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.atlc-chip-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.atlc-chip-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.atlc-chip-choice span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--atlc-border);
  background: var(--atlc-surface-soft);
  color: #374151;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.atlc-chip-choice:has(input[type="radio"]:checked) span {
  background: var(--atlc-primary);
  border-color: var(--atlc-primary);
  color: #fff;
}

.atlc-chip-choice:hover span {
  border-color: var(--atlc-border-strong);
}

.atlc-place-tags-picker {
  display: grid;
  gap: 12px;
}

.atlc-tag-picker-search-row {
  position: relative;
}

.atlc-tag-picker-search-row input[type="text"] {
  padding-right: 42px;
}

.atlc-tag-picker-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.atlc-tag-picker-clear:hover {
  background: #f3f4f6;
  color: #111827;
}

.atlc-tag-picker-alpha {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.atlc-tag-picker-alpha-btn {
  border: 0;
  background: transparent;
  color: #374151;
  border-radius: 12px;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}

.atlc-tag-picker-alpha-btn.is-active {
  background: var(--atlc-primary);
  color: #fff;
}

.atlc-tag-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.atlc-tag-chip {
  border: 1px solid var(--atlc-border);
  background: #fff;
  color: #1f2328;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.atlc-tag-chip:hover {
  border-color: var(--atlc-border-strong);
}

.atlc-tag-chip.is-selected {
  border-color: var(--atlc-primary);
  background: var(--atlc-primary);
  color: #fff;
}

.atlc-tag-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.atlc-tag-picker-count {
  margin: 0;
}

.atlc-inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--atlc-text);
  font-weight: 500;
}

.atlc-inline-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0;
  flex: 0 0 auto;
  accent-color: var(--atlc-primary);
}

.atlc-verification {
  display: grid;
  gap: 14px;
}

.atlc-verification__segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid var(--atlc-primary);
  border-radius: var(--atlc-radius-md);
  overflow: hidden;
}

.atlc-verification__segment-option {
  position: relative;
  cursor: pointer;
}

.atlc-verification__segment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.atlc-verification__segment-option span {
  display: block;
  text-align: center;
  padding: 12px 10px;
  font-weight: 700;
  color: var(--atlc-primary-dark);
  background: #fff;
}

.atlc-verification__segment-option + .atlc-verification__segment-option span {
  border-left: 1px solid rgba(66, 133, 244, 0.32);
}

.atlc-verification__segment-option:has(input[type="radio"]:checked) span {
  background: var(--atlc-primary);
  color: #fff;
}

.atlc-verify-methods {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.atlc-verify-method {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--atlc-border);
  border-radius: var(--atlc-radius-md);
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.atlc-verify-method input[type="radio"] {
  margin-top: 2px;
}

.atlc-verify-method__title {
  display: block;
  color: var(--atlc-text);
  font-weight: 700;
  line-height: 1.25;
}

.atlc-verify-method__desc {
  display: block;
  color: var(--atlc-text-muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 2px;
}

.atlc-verify-method:has(input[type="radio"]:checked) {
  border-color: var(--atlc-primary);
  box-shadow: inset 0 0 0 1px var(--atlc-primary);
}

.atlc-verify-method--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f9fafb;
}

.atlc-verification-later-card {
  border: 1px solid var(--atlc-border);
  background: var(--atlc-surface-soft);
  border-radius: var(--atlc-radius-md);
  padding: 20px;
}

.atlc-verification-later-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--atlc-text);
}

.atlc-readonly-panel {
  border: 1px solid var(--atlc-border);
  background: var(--atlc-surface-soft);
  border-radius: var(--atlc-radius-md);
  padding: 14px 16px;
}

.atlc-readonly-panel__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #374151;
}

.atlc-place-map-block {
  display: grid;
  gap: 8px;
}

.atlc-map-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.atlc-map-locate-button {
  border: 1px solid var(--atlc-primary-dark);
  background: #fff;
  color: var(--atlc-primary-dark);
  border-radius: var(--atlc-radius-md);
  min-height: var(--atlc-input-height);
  padding: 0 16px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.atlc-map-locate-button:hover {
  background: var(--atlc-accent-soft);
}

.atlc-place-map-canvas {
  width: 100%;
  height: 320px;
  border: 1px solid var(--atlc-border);
  border-radius: var(--atlc-radius-md);
  overflow: hidden;
  background: #eef2f7;
}

.atlc-place-map-canvas .leaflet-control-attribution {
  font-size: 10px;
}

.atlc-detail-list {
  margin: 0;
}

.atlc-detail-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--atlc-border);
}

.atlc-detail-row dt {
  margin: 0;
  color: var(--atlc-text-muted);
  font-weight: 600;
}

.atlc-detail-row dd {
  margin: 0;
  color: var(--atlc-text);
  word-break: break-word;
}

.atlc-note {
  color: var(--atlc-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.atlc-table td a {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
}

.atlc-table td a:hover {
  color: #0071e3;
  text-decoration: none;
}

.atlc-table td:nth-child(5) {
  white-space: nowrap;
}

.atlc-table td:nth-child(3) {
  color: #6e6e73;
}

/* Generic JetEngine account/profile builder styling hooks (safe if class names differ). */
.jet-engine-account,
.jet-engine-account-wrap,
.jet-account-page,
.jet-account-page__wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.jet-engine-account .jet-account-nav,
.jet-account-page .jet-account-nav,
.jet-engine-account .jet-account-page-nav {
  background: var(--atlc-surface);
  border: 1px solid var(--atlc-border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--atlc-shadow-sm);
}

.jet-engine-account .jet-account-nav a,
.jet-account-page .jet-account-nav a,
.jet-engine-account .jet-account-page-nav a {
  display: block;
  color: var(--atlc-text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}

.jet-engine-account .jet-account-nav a:hover,
.jet-account-page .jet-account-nav a:hover,
.jet-engine-account .jet-account-page-nav a:hover {
  background: var(--atlc-surface-soft);
}

.jet-engine-account .jet-account-nav .current-menu-item > a,
.jet-engine-account .jet-account-nav .is-active > a,
.jet-account-page .jet-account-nav .current-menu-item > a {
  background: var(--atlc-accent-soft);
  color: var(--atlc-primary-dark);
}

.jet-engine-account .jet-account-content,
.jet-account-page .jet-account-content,
.jet-engine-account .jet-account-page-content {
  background: transparent;
}

@media (max-width: 640px) {
  .atlc-portal-login,
  .atlc-portal-dashboard {
    margin-top: 16px;
  }

  .atlc-login-modern {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 18px;
  }

  .atlc-login-modern__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .atlc-login-modern__header h2 {
    font-size: 34px;
  }

  .atlc-login-modern__signup {
    font-size: 16px;
    flex-wrap: wrap;
  }

  .atlc-login-modern__field input[type="text"],
  .atlc-login-modern__field input[type="password"] {
    font-size: 18px;
  }

  .atlc-login-modern__submit {
    font-size: 26px;
  }

  .atlc-signup-modern,
  .atlc-recover-modern,
  .atlc-login-modern {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 18px;
  }

  .atlc-signup-modern.atlc-portal-login input[type="text"],
  .atlc-signup-modern.atlc-portal-login input[type="email"],
  .atlc-signup-modern.atlc-portal-login input[type="password"],
  .atlc-recover-modern.atlc-portal-login input[type="text"],
  .atlc-recover-modern.atlc-portal-login input[type="email"],
  .atlc-recover-modern.atlc-portal-login input[type="password"],
  .atlc-login-modern.atlc-portal-login input[type="text"],
  .atlc-login-modern.atlc-portal-login input[type="email"],
  .atlc-login-modern.atlc-portal-login input[type="password"] {
    font-size: 18px;
  }

  .atlc-signup-form__actions button[type="submit"] {
    font-size: 26px;
  }

  .atlc-card {
    padding: 16px;
    border-radius: 12px;
  }

  .atlc-detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .atlc-choice-card {
    border-radius: 12px;
    padding: 10px;
  }

  .atlc-place-map-canvas {
    height: 240px;
    border-radius: 12px;
  }

  .atlc-tag-picker-alpha {
    gap: 6px 8px;
  }

  .atlc-tag-picker-alpha-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
  }

  .atlc-verification__segment {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .atlc-verification__segment-option + .atlc-verification__segment-option span {
    border-left: 0;
    border-top: 1px solid rgba(59,130,246,0.3);
  }

  .atlc-map-address-row {
    grid-template-columns: 1fr;
  }

  .atlc-map-locate-button {
    width: 100%;
  }

  .atlc-table th,
  .atlc-table td {
    padding: 10px;
    font-size: 13px;
  }
}

.atlc-is-hidden {
  display: none !important;
}

/* M33: Form polish layer for Add Place desktop experience. */
.atlc-portal-dashboard.atlc-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.atlc-portal-dashboard form {
  display: grid;
  gap: 16px;
}

.atlc-form-section {
  background: var(--atlc-surface);
  border: 1px solid var(--atlc-border);
  border-radius: var(--atlc-radius-md);
  padding: 18px 20px;
  box-shadow: var(--atlc-shadow-sm);
}

.atlc-form-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--atlc-text);
}

.atlc-form-section .atlc-form-grid {
  gap: 14px 16px;
}

.atlc-form-actions {
  margin: 4px 0 0;
}

.atlc-form-actions button[type="submit"] {
  min-width: 160px;
}

.atlc-chip-choice span {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: var(--atlc-radius-pill);
  border-color: #d3e3fd;
  background: #eef3fd;
  color: var(--atlc-primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.atlc-chip-choice:has(input[type="radio"]:checked) span {
  border-color: var(--atlc-primary-dark);
  background: var(--atlc-primary);
  color: #fff;
}

.atlc-tag-chip {
  border: 1px solid #d3e3fd !important;
  background: #eef3fd !important;
  color: var(--atlc-primary-dark) !important;
  border-radius: var(--atlc-radius-pill);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none !important;
}

.atlc-tag-chip.is-selected {
  border-color: var(--atlc-primary-dark) !important;
  background: var(--atlc-primary) !important;
  color: #fff !important;
}

.atlc-tag-picker-alpha-btn {
  border: 1px solid #d3e3fd !important;
  background: #eef3fd !important;
  color: var(--atlc-primary-dark) !important;
  border-radius: 8px;
  min-width: 32px;
  height: 28px;
  padding: 0 7px;
  font-size: 12px;
  line-height: 1;
  box-shadow: none !important;
}

.atlc-tag-picker-alpha-btn.is-active {
  border-color: var(--atlc-primary-dark) !important;
  background: var(--atlc-primary) !important;
  color: #fff !important;
}

.atlc-portal-dashboard .atlc-tag-picker-clear {
  border: 1px solid #d3e3fd !important;
  background: #fff !important;
  color: var(--atlc-primary-dark) !important;
  box-shadow: none !important;
}

.atlc-portal-dashboard .atlc-tag-picker-clear:hover {
  background: #eef3fd !important;
  color: var(--atlc-primary-dark) !important;
}

.atlc-portal-dashboard .atlc-tag-picker-search-row {
  margin-bottom: 2px;
}

.atlc-portal-dashboard .atlc-tag-picker-search-row input[type="text"] {
  min-height: 44px;
  border-radius: 10px;
}

.atlc-verification__segment {
  border-width: 1px;
  border-color: #d3e3fd;
  border-radius: var(--atlc-radius-md);
}

.atlc-verification__segment-option span {
  padding: 10px 10px;
  font-size: 13px;
}

.atlc-verification__segment-option:has(input[type="radio"]:checked) span {
  background: var(--atlc-primary);
}

.atlc-verify-method {
  position: relative;
  display: block;
  border-radius: var(--atlc-radius-sm);
  padding: 12px 12px 12px 40px;
}

.atlc-verify-method input[type="radio"] {
  position: absolute;
  left: 12px;
  top: 14px;
  margin: 0;
}

.atlc-verify-method__title {
  font-size: 14px;
}

.atlc-verify-method__desc {
  margin-top: 4px;
  font-size: 12px;
}

.atlc-map-address-row {
  grid-template-columns: minmax(0, 1fr) 180px;
  width: 100%;
  align-items: stretch;
}

.atlc-map-locate-button {
  justify-self: end;
  width: 100%;
}

.atlc-map-address-row input[type="text"] {
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .atlc-form-section {
    padding: 14px;
  }

  .atlc-map-address-row {
    grid-template-columns: 1fr;
  }
}

/* M36: Compact desktop typography + tighter tag filter controls. */
.atlc-portal-dashboard {
  font-size: 13px;
  line-height: 1.35;
}

.atlc-portal-dashboard h2 {
  font-size: 22px;
}

.atlc-portal-dashboard h3,
.atlc-form-section h3 {
  font-size: 15px;
}

.atlc-portal-dashboard label {
  font-size: 12px;
}

.atlc-portal-dashboard input[type="text"],
.atlc-portal-dashboard input[type="email"],
.atlc-portal-dashboard input[type="password"],
.atlc-portal-dashboard input[type="url"],
.atlc-portal-dashboard select,
.atlc-portal-dashboard textarea,
.atlc-portal-dashboard button {
  font-size: 12px;
}

.atlc-note,
.atlc-field-help {
  font-size: 11px;
}

.atlc-portal-dashboard .atlc-tag-picker-search-row input[type="text"] {
  min-height: 36px;
  font-size: 12px;
}

.atlc-portal-dashboard .atlc-tag-picker-clear {
  width: 30px;
  height: 30px;
}

.atlc-portal-dashboard .atlc-tag-picker-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  overflow: visible;
  padding-bottom: 1px;
}

.atlc-portal-dashboard .atlc-tag-picker-alpha-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 14px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.atlc-portal-dashboard .atlc-tag-chip {
  font-size: 14px;
  padding: 5px 9px;
  border-radius: 999px;
}

/* Category chips in a natural row that wraps to next line when needed. */
.atlc-portal-dashboard .atlc-chip-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-content: flex-start;
  width: 100%;
  margin-left: 0;
  align-items: center;
}

.atlc-portal-dashboard .atlc-chip-choice {
  width: auto;
  flex: 0 0 auto;
}

.atlc-portal-dashboard .atlc-chip-choice span {
  width: auto;
  justify-content: center;
  text-align: center;
}

/* Form field wrappers used instead of invalid <p> wrappers. */
.atlc-form-field {
  margin: 0;
}

.atlc-form-field.atlc-field-block--category,
.atlc-form-field.atlc-field-block--location-type {
  grid-column: 1 / -1;
}

.atlc-form-field.atlc-field-block--category .atlc-chip-choices {
  justify-content: flex-start;
}

/* Harden Locate Address button styling against inherited globals. */
.atlc-portal-dashboard .atlc-map-locate-button,
.atlc-map-locate-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--atlc-primary-dark) !important;
  background: var(--atlc-primary) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  box-shadow: none !important;
}

.atlc-portal-dashboard .atlc-map-locate-button:hover,
.atlc-map-locate-button:hover {
  background: var(--atlc-primary-dark) !important;
  border-color: var(--atlc-primary-dark) !important;
  color: #fff !important;
}

/* Final enforcement layer (latest wins). */
.atlc-portal-dashboard .atlc-verify-method__title {
  font-size: 12px !important;
}

.atlc-portal-dashboard .atlc-map-address-row {
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) 180px !important;
  align-items: stretch !important;
}

.atlc-portal-dashboard .atlc-map-address-row input[type="text"],
.atlc-portal-dashboard .atlc-map-locate-button {
  width: 100% !important;
}

/* M38: Add Event wizard screens 1-2. */
.atlc-event-wizard {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.atlc-event-screen1__header h2 {
  margin: 0 0 18px;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.atlc-event-screen1__fields {
  display: grid;
  gap: 16px;
}

.atlc-event-wizard .atlc-form-field {
  display: grid;
  gap: 6px;
}

.atlc-event-wizard .atlc-field-help {
  margin: 0;
  font-size: 13px;
}

.atlc-event-wizard input[type="text"],
.atlc-event-wizard input[type="url"],
.atlc-event-wizard textarea {
  border-radius: 10px;
}

.atlc-event-wizard textarea {
  min-height: 122px;
  resize: vertical;
}

.atlc-event-wizard .atlc-char-count {
  color: var(--atlc-text-muted);
  font-size: 12px;
  line-height: 1.25;
}

.atlc-event-screen1__actions {
  margin-top: 20px;
}

.atlc-event-wizard [data-atlc-event-next] {
  min-width: 200px;
}

.atlc-event-wizard [data-atlc-event-next]:disabled {
  border-color: #d8dde4 !important;
  background: #e5e8ed !important;
  color: #fafbfc !important;
  cursor: not-allowed;
}

.atlc-event-type-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.atlc-event-type-card {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid #d3e3fd;
  border-radius: 12px;
  background: #eef3fd;
  color: var(--atlc-primary-dark);
  padding: 12px;
  cursor: pointer;
  min-height: 136px;
}

.atlc-event-type-card input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.atlc-event-type-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #d3e3fd;
  background: #f4f8ff;
  color: var(--atlc-primary-dark);
  position: relative;
}

.atlc-event-type-card__icon::before,
.atlc-event-type-card__icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.atlc-event-type-card__icon--venue::before {
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: 4px;
  left: 8px;
}

.atlc-event-type-card__icon--venue::after {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid currentColor;
  bottom: 3px;
  left: 8px;
}

.atlc-event-type-card__icon--virtual::before {
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 2px;
  top: 6px;
  left: 6px;
}

.atlc-event-type-card__icon--virtual::after {
  width: 8px;
  height: 2px;
  background: currentColor;
  bottom: 6px;
  left: 10px;
}

.atlc-event-type-card__title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.atlc-event-type-card__desc {
  color: #3b6fc4;
  font-size: 13px;
  line-height: 1.35;
}

.atlc-event-type-card:has(input[type="radio"]:checked) {
  border-color: var(--atlc-primary-dark);
  background: var(--atlc-primary);
}

.atlc-event-type-card:has(input[type="radio"]:checked) .atlc-event-type-card__title,
.atlc-event-type-card:has(input[type="radio"]:checked) .atlc-event-type-card__desc,
.atlc-event-type-card:has(input[type="radio"]:checked) .atlc-event-type-card__icon {
  color: #fff;
}

.atlc-event-type-card:has(input[type="radio"]:checked) .atlc-event-type-card__icon {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.atlc-required-inline {
  float: right;
  color: var(--atlc-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.atlc-event-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.atlc-event-category-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #d3e3fd;
  border-radius: var(--atlc-radius-pill);
  background: #eef3fd;
  color: var(--atlc-primary-dark);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 5px 10px;
  cursor: pointer;
}

.atlc-event-category-card input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.atlc-event-category-card span {
  display: block;
  color: var(--atlc-primary-dark);
}

.atlc-event-category-card:has(input[type="radio"]:checked) {
  border-color: var(--atlc-primary-dark);
  background: var(--atlc-primary);
  color: #fff;
}

.atlc-event-category-card:has(input[type="radio"]:checked) span {
  color: #fff;
}

.atlc-event-wizard__step-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.atlc-event-wizard__step-actions--split {
  justify-content: space-between;
}

.atlc-event-wizard__actions-right {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.atlc-form-actions.atlc-place-edit-actions .atlc-event-wizard__actions-right .atlc-button-secondary {
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.atlc-form-actions.atlc-place-edit-actions .atlc-event-wizard__actions-right {
  margin-left: auto;
}

.atlc-form-actions.atlc-place-edit-actions > button[type="submit"] {
  min-width: 160px;
}

.atlc-form-actions.atlc-place-edit-actions .atlc-button-secondary,
.atlc-form-actions.atlc-place-edit-actions > button[type="submit"] {
  width: 160px;
  min-width: 160px;
  height: 52px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
}

.atlc-account-shell .atlc-form-actions.atlc-place-edit-actions .atlc-button-secondary,
.atlc-account-shell .atlc-form-actions.atlc-place-edit-actions > button[type="submit"] {
  width: auto;
  min-width: 190px;
  white-space: nowrap;
}

.atlc-account-shell .atlc-account-back-btn {
  min-width: 220px;
  white-space: nowrap;
}

.atlc-event-wizard__draft-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.atlc-button-secondary {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid var(--atlc-border) !important;
  background: #fff !important;
  color: var(--atlc-text) !important;
  font-weight: 600;
}

.atlc-button-secondary--accent {
  border-color: var(--atlc-primary) !important;
  color: var(--atlc-primary-dark) !important;
  background: #fff !important;
}

.atlc-button-secondary--accent.is-active {
  border-color: var(--atlc-primary-dark) !important;
  background: var(--atlc-accent-soft) !important;
  color: var(--atlc-primary-dark) !important;
}

.atlc-event-map-address-row {
  margin-bottom: 6px;
}

.atlc-event-photo-placeholder {
  width: 100%;
  min-height: 168px;
  border-radius: 14px;
  background: #2f4155;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.atlc-event-photo-placeholder__icon {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.65;
  color: #dbe4f1;
}

.atlc-event-date-mode {
  display: inline-flex;
  border: 1px solid #b7cdfc;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.atlc-event-date-mode__btn {
  min-height: 32px;
  border: 0 !important;
  background: #fff !important;
  color: var(--atlc-primary-dark) !important;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 0 !important;
}

.atlc-event-date-mode__btn.is-active {
  background: var(--atlc-primary) !important;
  color: #fff !important;
}

.atlc-event-date-panel {
  display: grid;
  gap: 12px;
}

.atlc-event-single-dates {
  display: grid;
  gap: 12px;
}

.atlc-event-date-row {
  display: grid;
  gap: 8px;
}

.atlc-event-date-row__times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.atlc-event-date-row input[type="date"],
.atlc-event-date-row input[type="time"],
.atlc-event-date-panel input[type="date"],
.atlc-event-date-panel input[type="time"] {
  border-radius: 12px;
}

.atlc-inline-check--compact {
  margin: 0;
  align-items: center;
}

.atlc-event-add-date {
  width: 100%;
}

.atlc-event-tags-picker .atlc-tag-picker-alpha,
.atlc-place-tags-picker .atlc-tag-picker-alpha {
  gap: 10px;
}

.atlc-event-tags-picker .atlc-tag-picker-alpha-btn,
.atlc-place-tags-picker .atlc-tag-picker-alpha-btn {
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  padding: 0;
}

.atlc-event-review-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.atlc-event-review-card {
  border: 1px solid var(--atlc-border);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
}

.atlc-event-review-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.atlc-event-review-card__value {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.atlc-event-review-card__meta {
  margin: 6px 0 0;
  color: var(--atlc-text-muted);
  font-size: 18px;
}

/* M39: Unified responsive pattern.
   Desktop: Add Event renders as long-form cards like Add Place.
   Mobile: Add Place behaves as a section wizard. */
@media (min-width: 901px) {
  .atlc-event-wizard {
    max-width: 100%;
  }

  .atlc-event-wizard .atlc-event-step {
    display: block !important;
    border: 1px solid var(--atlc-border);
    border-radius: var(--atlc-radius-md);
    background: #fff;
    padding: 16px;
    margin-bottom: 14px;
  }

  .atlc-event-wizard .atlc-event-screen1__header h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: normal;
  }

  .atlc-event-wizard [data-atlc-event-next],
  .atlc-event-wizard [data-atlc-event-prev],
  .atlc-event-wizard [data-atlc-event-preview-btn] {
    display: none !important;
  }

  .atlc-event-wizard .atlc-event-wizard__step-actions {
    justify-content: flex-end;
  }

  /* Desktop long-form: preview panel is hidden until Preview is clicked. */
  .atlc-event-wizard [data-atlc-event-step="10"] .atlc-event-screen1__header,
  .atlc-event-wizard [data-atlc-event-step="10"] .atlc-event-review-cards {
    display: none;
  }

  .atlc-event-wizard [data-atlc-event-step="10"].atlc-review-open .atlc-event-screen1__header,
  .atlc-event-wizard [data-atlc-event-step="10"].atlc-review-open .atlc-event-review-cards {
    display: block;
  }

  .atlc-event-wizard [data-atlc-event-step="10"] [data-atlc-event-preview-btn] {
    display: inline-flex !important;
  }

  .atlc-event-wizard [data-atlc-event-step="10"] [data-atlc-event-preview-btn],
  .atlc-event-wizard [data-atlc-event-step="10"] button[type="submit"] {
    min-height: 50px;
    min-width: 160px;
    padding: 0 22px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    justify-content: center;
  }

  /* Keep final action row clean: no card border around the buttons. */
  .atlc-event-wizard [data-atlc-event-step="10"] {
    border: 0;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 900px) {
  .atlc-place-mobile-wizard .atlc-form-section {
    margin-bottom: 0;
  }

  .atlc-place-mobile-wizard-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 14px;
  }

  .atlc-place-mobile-wizard-actions button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--atlc-primary-dark);
    background: var(--atlc-primary);
    color: #fff;
    font-weight: 600;
  }

  .atlc-place-mobile-wizard-actions .atlc-button-secondary {
    border: 1px solid var(--atlc-border) !important;
    background: #fff !important;
    color: var(--atlc-text) !important;
  }
}

.atlc-featured-optin {
  border: 1px solid #9ddbb1;
  background: #e9f6ee;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: inset 3px 0 0 #34a853;
  margin-bottom: 30px;
}

.atlc-featured-optin__check {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.atlc-featured-optin__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #34a853;
}

.atlc-featured-optin__title {
  color: #1f6f3e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.atlc-featured-optin__help {
  margin: 8px 0 0 28px;
  color: #2f8e53;
  font-size: 12px;
  line-height: 1.35;
}

.atlc-featured-duration {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0 28px;
  color: #1f6f3e;
  font-size: 12px;
  font-weight: 600;
}

.atlc-featured-duration label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.atlc-featured-duration input[type="radio"] {
  accent-color: #34a853;
}

.atlc-featured-optin__micro {
  display: block;
  margin: 8px 0 0 28px;
  color: #1f6f3e;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

/* Phase 1 MVP: keep code intact, hide featured upsell controls in forms. */
.atlc-portal-dashboard .atlc-featured-optin {
  display: none !important;
}

/* Phase 1 MVP: hide dashboard quick-action shortcut to Billing. */
.atlc-dashboard-shell .atlc-dashboard-actions a[href*="billing"] {
  display: none !important;
}

/* Keep Add Event final Preview/Publish actions visually identical. */
.atlc-event-wizard [data-atlc-event-step="10"] .atlc-event-wizard__actions-right {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.atlc-event-wizard [data-atlc-event-step="10"] [data-atlc-event-preview-btn],
.atlc-event-wizard [data-atlc-event-step="10"] button[type="submit"] {
  width: 160px;
  min-width: 160px;
  height: 52px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.atlc-event-wizard [data-atlc-event-step="10"] button[name="atlc_create_mode"][value="draft"] {
  width: 160px;
  min-width: 160px;
  height: 52px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

/* Add more breathing room between labels/help text and fields in Add Event. */
.atlc-event-wizard .atlc-form-field {
  gap: 14px;
  margin-bottom: 6px;
}

.atlc-event-wizard .atlc-form-field > label {
  margin: 0;
  line-height: 1.35;
}

.atlc-event-wizard .atlc-form-field > label + input[type="text"],
.atlc-event-wizard .atlc-form-field > label + input[type="url"],
.atlc-event-wizard .atlc-form-field > label + textarea,
.atlc-event-wizard .atlc-form-field > label + select {
  margin-top: 2px;
}

/* Match Verify Now/Later switch to the Paid/Free segmented control style. */
.atlc-portal-dashboard .atlc-verification__segment {
  display: inline-flex !important;
  grid-template-columns: none !important;
  width: auto !important;
  min-width: 240px;
  max-width: 320px;
  border: 1px solid #b7cdfc !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

.atlc-portal-dashboard .atlc-verification__segment-option {
  flex: 1 1 0 !important;
}

.atlc-portal-dashboard .atlc-verification__segment-option span {
  min-height: 32px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--atlc-primary-dark) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.atlc-portal-dashboard .atlc-verification__segment-option + .atlc-verification__segment-option span {
  border-left: 1px solid #b7cdfc !important;
  border-top: 0 !important;
}

.atlc-portal-dashboard .atlc-verification__segment-option:has(input[type="radio"]:checked) span {
  background: var(--atlc-primary) !important;
  color: #fff !important;
}

/* UI Refactor: restore balanced readable typography/rhythm across portal screens. */
.atlc-portal-dashboard {
  font-size: 14px;
  line-height: 1.45;
}

.atlc-portal-dashboard h2 {
  font-size: 30px;
}

.atlc-portal-dashboard h3,
.atlc-form-section h3 {
  font-size: 20px;
}

.atlc-portal-dashboard label {
  font-size: 13px;
}

.atlc-portal-dashboard input[type="text"],
.atlc-portal-dashboard input[type="email"],
.atlc-portal-dashboard input[type="password"],
.atlc-portal-dashboard input[type="url"],
.atlc-portal-dashboard select,
.atlc-portal-dashboard textarea,
.atlc-portal-dashboard button {
  font-size: 14px;
}

.atlc-note,
.atlc-field-help {
  font-size: 12px;
}

.atlc-form-section {
  padding: 20px 22px;
}

.atlc-form-section .atlc-form-grid {
  gap: 16px 18px;
}

.atlc-portal-dashboard input[type="text"],
.atlc-portal-dashboard input[type="email"],
.atlc-portal-dashboard input[type="password"],
.atlc-portal-dashboard input[type="url"],
.atlc-portal-dashboard select,
.atlc-portal-dashboard textarea {
  border-color: #d3dbe6;
  background: #fff;
}

.atlc-portal-dashboard textarea {
  min-height: 132px;
}

.atlc-portal-dashboard .atlc-chip-choice span,
.atlc-portal-dashboard .atlc-tag-chip,
.atlc-portal-dashboard .atlc-tag-picker-alpha-btn {
  font-size: 13px !important;
}

.atlc-event-wizard .atlc-form-field {
  gap: 10px;
}

.atlc-event-wizard .atlc-form-field > label + input[type="text"],
.atlc-event-wizard .atlc-form-field > label + input[type="url"],
.atlc-event-wizard .atlc-form-field > label + textarea,
.atlc-event-wizard .atlc-form-field > label + select {
  margin-top: 0;
}

@media (max-width: 768px) {
  .atlc-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlc-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlc-dashboard-panels {
    grid-template-columns: 1fr;
  }

  .atlc-dashboard-panel--wide {
    grid-row: auto;
  }

  .atlc-table th,
  .atlc-table td {
    padding: 10px 10px;
    font-size: 13px;
  }

  .atlc-billing-pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .atlc-event-screen1__header h2 {
    font-size: 30px;
  }

  .atlc-event-type-cards {
    grid-template-columns: 1fr;
  }

  .atlc-event-category-grid {
    grid-template-columns: 1fr;
  }

  .atlc-event-wizard__step-actions--split {
    flex-direction: column;
    align-items: stretch;
  }

  .atlc-event-wizard__actions-right {
    width: 100%;
    justify-content: flex-end;
  }

  .atlc-form-actions.atlc-place-edit-actions .atlc-event-wizard__actions-right {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .atlc-form-actions.atlc-place-edit-actions .atlc-event-wizard__actions-right .atlc-button-secondary {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .atlc-event-date-row__times {
    grid-template-columns: 1fr;
  }

  .atlc-portal-dashboard .atlc-verification__segment {
    display: inline-flex !important;
    grid-template-columns: none !important;
  }

  .atlc-portal-dashboard .atlc-verification__segment-option + .atlc-verification__segment-option span {
    border-top: 0 !important;
  }
}
/* Legal Pages Styling */

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.7;
    font-size: 16px;
    color: #333;
}

/* Headings */

.legal-page h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 600;
}

.legal-page h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 10px;
    font-weight: 600;
}

.legal-page h3 {
    font-size: 18px;
    margin-top: 25px;
}

/* Paragraph spacing */

.legal-page p {
    margin-bottom: 16px;
}

/* Lists */

.legal-page ul {
    margin: 10px 0 20px 25px;
}

.legal-page li {
    margin-bottom: 8px;
}

/* Links */

.legal-page a {
    color: #1e73be;
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Last updated line */

.legal-page p strong {
    font-weight: 600;
}

/* Mobile improvements */

@media (max-width: 768px) {

    .legal-page {
        padding: 25px 16px;
        font-size: 15px;
    }

    .legal-page h1 {
        font-size: 28px;
    }

    .legal-page h2 {
        font-size: 20px;
    }
}
/* Portal records modern list (My Places / My Events) */
.atlc-records-modern__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.atlc-records-modern__cta {
  background: #0f172a;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
}

.atlc-records-modern__cta:hover {
  color: #fff;
  opacity: 0.92;
}

.atlc-records-modern__empty {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}

.atlc-records-modern__empty h3 {
  margin: 0 0 10px;
}

.atlc-records-modern__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.atlc-record-card {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.atlc-record-card--single {
  max-width: 780px;
}

.atlc-record-card__media {
  background: #e2e8f0;
  flex: 0 0 220px;
  height: 220px;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.atlc-record-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.atlc-record-card__attribution {
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  bottom: 10px;
  color: #fff;
  font-size: 12px;
  left: 10px;
  line-height: 1.2;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 7px 10px;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}

.atlc-record-card__attribution:hover {
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
}

.atlc-record-card__body {
  background: #fff;
  flex: 1 1 auto;
  padding: 14px;
  position: relative;
  z-index: 2;
}

.atlc-record-card__head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.atlc-record-card__head h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlc-record-card:not(.atlc-record-card--single) .atlc-record-card__head h3 {
  font-size: 20px;
}

.atlc-record-card__status {
  background: #e2e8f0;
  border-radius: 999px;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.atlc-record-card__category {
  color: #475569;
  font-size: 13px;
  margin: 0 0 6px;
}

.atlc-record-card__meta {
  color: #334155;
  font-size: 14px;
  margin: 0 0 8px;
  min-height: 20px;
}

.atlc-record-card__likes {
  color: #64748b;
  font-size: 13px;
  margin: 0 0 12px;
}

.atlc-record-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atlc-records-modern .atlc-record-card__body h3,
.atlc-records-modern .atlc-record-card__body p,
.atlc-records-modern .atlc-record-card__body span,
.atlc-records-modern .atlc-record-card__body a {
  position: static !important;
}

.atlc-record-card__action {
  background: #e2e8f0;
  border-radius: 999px;
  color: #0f172a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
}

.atlc-record-card__action:hover {
  color: #0f172a;
  background: #cbd5e1;
}

.atlc-record-card__action--danger {
  background: #fee2e2;
  color: #b91c1c;
}

.atlc-record-card__action--danger:hover {
  background: #fecaca;
  color: #991b1b;
}

@media (max-width: 1024px) {
  .atlc-records-modern__grid {
    grid-template-columns: 1fr;
  }

  .atlc-record-card__media {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .atlc-records-modern__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .atlc-records-modern__cta {
    min-height: 44px;
  }

  .atlc-record-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .atlc-record-card__media {
    height: 180px;
  }

  .atlc-record-card__head h3,
  .atlc-record-card:not(.atlc-record-card--single) .atlc-record-card__head h3 {
    font-size: 22px;
  }

  .atlc-record-card__action {
    min-height: 44px;
  }
}
