.efam-admin,
.efam-web-app {
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

.efam-online-body {
  background: #f5f5f7;
  margin: 0;
}

.efam-online-shell {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1360px;
  min-height: 100vh;
  padding: 22px;
}

.efam-login-link {
  align-items: center;
  background: #007aff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 850;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
}

.efam-logo {
  background: #fff;
  border: 1px solid #d8d8df;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
  height: 76px;
  object-fit: contain;
  padding: 8px;
  width: 76px;
}

.efam-auth-shell {
  margin: 0 auto;
  max-width: 1120px;
}

.efam-auth-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.efam-notice {
  background: #e8f3ff;
  border: 1px solid #b9dcff;
  border-radius: 14px;
  color: #064f93;
  font-weight: 800;
  margin: 0 0 14px;
  padding: 12px 14px;
}

.efam-user-strip {
  align-items: center;
  background: #fff;
  border: 1px solid #d8d8df;
  border-radius: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: -4px 0 14px;
  padding: 10px 12px;
}

.efam-user-strip span {
  color: #111;
  font-weight: 850;
}

.efam-user-strip strong {
  background: #f5f5f7;
  border-radius: 999px;
  color: #6e6e73;
  font-size: 12px;
  padding: 6px 10px;
}

.efam-user-strip a {
  color: #007aff;
  font-weight: 850;
  text-decoration: none;
}

.efam-form {
  display: grid;
  gap: 12px;
}

.efam-inline-form {
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.efam-form label {
  color: #1d1d1f;
  display: grid;
  font-size: 13px;
  font-weight: 850;
  gap: 6px;
}

.efam-form input,
.efam-form select,
.efam-form textarea,
#loginform input[type="text"],
#loginform input[type="password"] {
  background: #fff;
  border: 1px solid #d8d8df;
  border-radius: 12px;
  box-sizing: border-box;
  color: #111;
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.efam-form textarea {
  min-height: 84px;
  resize: vertical;
}

.efam-form button,
#wp-submit {
  appearance: none;
  background: #007aff;
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
  padding: 0 16px;
}

.efam-checkbox {
  align-items: start;
  display: flex !important;
  gap: 10px !important;
}

.efam-checkbox input {
  min-height: auto;
  width: auto;
}

.efam-grow {
  grid-column: span 2;
}

.efam-chat-feed {
  display: grid;
  gap: 12px;
}

.efam-chat-message {
  background: #f5f5f7;
  border: 1px solid #ececf0;
  border-radius: 16px;
  padding: 14px;
}

.efam-chat-message div:first-child {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.efam-chat-message strong {
  color: #111;
  font-weight: 900;
}

.efam-chat-message span,
.efam-chat-message p {
  color: #6e6e73;
}

.efam-chat-message p {
  font-size: 15px;
  line-height: 1.45;
  margin: 10px 0;
}

.efam-attachment-list,
.efam-reaction-list,
.efam-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.efam-attachment-list a,
.efam-attachment-list span {
  background: #fff;
  border: 1px solid #d8d8df;
  border-radius: 999px;
  color: #007aff;
  font-weight: 850;
  padding: 7px 10px;
  text-decoration: none;
}

.efam-reaction-list {
  background: #fff;
  border: 1px solid #d8d8df;
  border-radius: 999px;
  display: inline-flex;
  padding: 5px 9px;
  width: fit-content;
}

.efam-mini-form {
  align-items: center;
  display: flex;
  gap: 6px;
}

.efam-mini-form input {
  border: 1px solid #d8d8df;
  border-radius: 10px;
  min-height: 34px;
  padding: 6px 9px;
}

.efam-mini-form button {
  appearance: none;
  background: #fff;
  border: 1px solid #d8d8df;
  border-radius: 999px;
  color: #007aff;
  cursor: pointer;
  font-weight: 850;
  min-height: 34px;
  padding: 0 11px;
}

.efam-edit-form {
  flex: 1 1 280px;
}

.efam-edit-form input {
  flex: 1;
}

.efam-hero,
.efam-app-hero {
  align-items: center;
  background: #fff;
  border: 1px solid #d8d8df;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
  color: #111;
  display: flex;
  justify-content: space-between;
  margin: 18px 0;
  padding: 24px;
}

.efam-hero h1,
.efam-app-hero h2 {
  color: #111;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 4px 0 6px;
}

.efam-hero p,
.efam-app-hero p {
  color: #6e6e73;
  margin: 0;
  max-width: 760px;
}

.efam-kicker {
  color: #007aff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.efam-app-status {
  align-items: flex-end;
  background: #f5f5f7;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 14px;
}

.efam-app-status span,
.efam-app-status small {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 750;
}

.efam-app-status strong {
  color: #111;
  font-size: 28px;
  font-weight: 900;
}

.efam-app-tabs {
  background: #fff;
  border: 1px solid #d8d8df;
  border-radius: 16px;
  display: flex;
  gap: 6px;
  margin: 12px 0 16px;
  overflow-x: auto;
  padding: 8px;
  position: sticky;
  top: 32px;
  z-index: 5;
}

.efam-tab-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #6e6e73;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.efam-tab-button.is-active {
  background: #007aff;
  color: #fff;
}

.efam-app-section {
  display: none;
}

.efam-app-section.is-active {
  display: block;
}

.efam-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px;
}

.efam-card,
.efam-panel,
.efam-info-card,
.efam-feature-grid article,
.efam-map-surface {
  background: #fff;
  border: 1px solid #d8d8df;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.efam-card {
  padding: 16px;
}

.efam-card span {
  color: #6e6e73;
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 8px;
}

.efam-card strong {
  color: #111;
  display: block;
  font-size: 28px;
  font-weight: 900;
}

.efam-panel {
  margin: 14px 0;
  padding: 16px;
}

.efam-panel h2,
.efam-info-card h3,
.efam-feature-grid h3 {
  color: #111;
  font-size: 18px;
  font-weight: 850;
  margin: 0 0 12px;
}

.efam-table-wrap {
  overflow-x: auto;
}

.efam-table {
  border: 0;
}

.efam-table th {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 850;
}

.efam-table td {
  color: #1d1d1f;
}

.efam-app-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 14px 0;
}

.efam-info-card {
  padding: 16px;
}

.efam-info-card p {
  color: #6e6e73;
  margin: 0;
}

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

.efam-info-card dl div {
  border-top: 1px solid #ececf0;
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

.efam-info-card dt {
  color: #6e6e73;
  font-weight: 750;
}

.efam-info-card dd {
  color: #111;
  font-weight: 850;
  margin: 0;
  max-width: 58%;
  text-align: right;
}

.efam-map-surface {
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(0, 122, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 122, 255, 0.08) 1px, transparent 1px),
    #f5f5f7;
  background-size: 34px 34px;
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
  min-height: 260px;
  padding: 18px;
}

.efam-map-surface strong {
  color: #111;
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.efam-map-surface span,
.efam-map-surface p {
  color: #6e6e73;
}

.efam-feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.efam-feature-grid article {
  padding: 16px;
}

.efam-feature-grid p {
  color: #6e6e73;
  line-height: 1.5;
  margin: 0;
}

.efam-label {
  display: block;
  font-weight: 850;
  margin: 12px 0 6px;
}

.efam-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 680px;
  width: 100%;
}

.efam-brand-footer {
  align-items: center;
  color: #6e6e73;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 22px 0 8px;
  padding: 14px;
  text-align: center;
}

.efam-brand-footer strong {
  color: #111;
  font-weight: 900;
}

@media (prefers-color-scheme: dark) {
  .efam-admin,
  .efam-web-app {
    color: #f5f5f7;
  }

  .efam-online-body {
    background: #000;
  }

  .efam-logo {
    background: #1c1c1e;
    border-color: #3a3a3c;
    box-shadow: none;
  }

  .efam-notice {
    background: #082846;
    border-color: #0b3a63;
    color: #cce5ff;
  }

  .efam-user-strip,
  .efam-form input,
  .efam-form select,
  .efam-form textarea,
  #loginform input[type="text"],
  #loginform input[type="password"] {
    background: #1c1c1e;
    border-color: #3a3a3c;
    color: #f5f5f7;
  }

  .efam-user-strip span,
  .efam-form label {
    color: #f5f5f7;
  }

  .efam-user-strip strong {
    background: #2c2c2e;
    color: #a1a1a6;
  }

  .efam-chat-message,
  .efam-attachment-list a,
  .efam-attachment-list span,
  .efam-reaction-list,
  .efam-mini-form input,
  .efam-mini-form button {
    background: #2c2c2e;
    border-color: #3a3a3c;
  }

  .efam-chat-message strong,
  .efam-mini-form input {
    color: #f5f5f7;
  }

  .efam-chat-message span,
  .efam-chat-message p {
    color: #a1a1a6;
  }

  .efam-hero,
  .efam-app-hero,
  .efam-app-tabs,
  .efam-card,
  .efam-panel,
  .efam-info-card,
  .efam-feature-grid article {
    background: #1c1c1e;
    border-color: #3a3a3c;
    box-shadow: none;
  }

  .efam-app-status,
  .efam-map-surface {
    background-color: #2c2c2e;
  }

  .efam-hero h1,
  .efam-app-hero h2,
  .efam-card strong,
  .efam-panel h2,
  .efam-info-card h3,
  .efam-feature-grid h3,
  .efam-info-card dd,
  .efam-map-surface strong,
  .efam-table td {
    color: #f5f5f7;
  }

  .efam-hero p,
  .efam-app-hero p,
  .efam-card span,
  .efam-app-status span,
  .efam-app-status small,
  .efam-info-card dt,
  .efam-info-card p,
  .efam-feature-grid p,
  .efam-map-surface span,
  .efam-map-surface p,
  .efam-table th {
    color: #a1a1a6;
  }

  .efam-info-card dl div {
    border-top-color: #3a3a3c;
  }

  .efam-brand-footer,
  .efam-brand-footer strong {
    color: #f5f5f7;
  }
}

@media (max-width: 782px) {
  .efam-hero,
  .efam-app-hero {
    align-items: stretch;
    border-radius: 14px;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .efam-logo {
    height: 62px;
    width: 62px;
  }

  .efam-hero h1,
  .efam-app-hero h2 {
    font-size: 25px;
  }

  .efam-app-tabs {
    border-radius: 14px;
    top: 0;
  }

  .efam-tab-button {
    min-height: 42px;
  }

  .efam-map-surface {
    align-items: flex-start;
    flex-direction: column;
    min-height: 220px;
  }

  .efam-info-card dd {
    max-width: 50%;
  }

  .efam-online-shell {
    padding: 12px;
  }

  .efam-user-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .efam-grow {
    grid-column: span 1;
  }
}
