html,
body {
  margin: 0;
  min-height: 100%;
  background: #eef3f8;
}

body,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
}

.site-header,
.site-footer {
  display: none;
}

.micrm-front-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef3f8;
}

.micrm-front-sidebar {
  background: #12395b;
  color: #fff;
  padding: 22px 16px;
}

.micrm-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0 0 22px;
}

.micrm-brand img {
  background: #fff;
  border-radius: 8px;
  height: 54px;
  object-fit: contain;
  padding: 5px;
  width: 54px;
}

.micrm-brand strong {
  color: #fff;
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.micrm-brand span {
  color: #c9a227;
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.micrm-front-sidebar nav {
  display: grid;
  gap: 5px;
}

.micrm-front-sidebar a {
  border-radius: 8px;
  color: #dbeafe;
  padding: 10px 12px;
  text-decoration: none;
}

.micrm-front-sidebar a.active,
.micrm-front-sidebar a:hover {
  background: #0f5ea8;
  color: #fff;
}

.micrm-front-main {
  min-width: 0;
  padding: 18px;
}

.micrm-front-topbar {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
}

.micrm-topbar-title {
  align-items: center;
  color: #12395b;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  font-size: 18px;
}

.micrm-topbar-title img {
  height: 36px;
  object-fit: contain;
  width: 36px;
}

.micrm-front-topbar form {
  display: flex;
  flex: 1;
  gap: 8px;
}

.micrm-front-topbar input {
  flex: 1;
  min-height: 38px;
}

.micrm-front-topbar button,
.micrm-front-form .button,
.micrm-front-title .button {
  min-height: 38px;
}

.micrm-front-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.micrm-front-title h2,
.micrm-wrap h2 {
  margin-top: 0;
}

.micrm-front-form {
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  padding: 16px;
}

.micrm-login-screen {
  align-items: center;
  background: #12395b;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.micrm-login-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
  max-width: 840px;
  padding: 28px;
  width: 100%;
}

.micrm-login-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.micrm-login-brand img {
  height: 86px;
  object-fit: contain;
  width: 86px;
}

.micrm-login-brand h1 {
  color: #12395b;
  font-size: 32px;
  margin: 0;
}

.micrm-login-card input {
  width: 100%;
}

.micrm-auth-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.micrm-auth-panel {
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  padding: 16px;
}

.micrm-auth-panel h2 {
  color: #12395b;
  font-size: 18px;
  margin: 0 0 12px;
}

.micrm-register-form {
  display: grid;
  gap: 10px;
}

.micrm-register-form label span {
  color: #334155;
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.micrm-register-form button {
  background: #0f5ea8;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  min-height: 38px;
  padding: 0 14px;
}

.micrm-register-note {
  color: #64748b;
  font-size: 12px;
  margin: 0;
}

.micrm-auth-notice {
  border-radius: 6px;
  margin: 12px 0;
  padding: 10px 12px;
}

.micrm-auth-notice.success {
  background: #dcfce7;
  color: #166534;
}

.micrm-auth-notice.error {
  background: #fee2e2;
  color: #991b1b;
}

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

.micrm-newsletter-editor .wp-editor-wrap {
  margin-top: 6px;
}

.micrm-editor-help {
  color: #64748b;
  font-size: 12px;
  margin: 0 0 8px;
}

.micrm-newsletter-editor .wp-editor-container {
  border: 1px solid #d8e1ec;
}

.micrm-newsletter-tools {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.micrm-newsletter-list {
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  display: grid;
  max-height: 360px;
  overflow: auto;
}

.micrm-newsletter-list label {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px minmax(140px, 1fr) minmax(180px, 1fr);
  padding: 10px 12px;
}

.micrm-newsletter-list label:last-child {
  border-bottom: 0;
}

.micrm-newsletter-list span {
  color: #64748b;
  font-size: 13px;
}

.micrm-row-actions {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.micrm-delete-link {
  color: #b91c1c;
}

.micrm-db-note {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .micrm-front-shell {
    grid-template-columns: 1fr;
  }

  .micrm-front-sidebar nav {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .micrm-front-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .micrm-front-topbar form {
    width: 100%;
  }

  .micrm-auth-grid {
    grid-template-columns: 1fr;
  }

  .micrm-newsletter-tools,
  .micrm-newsletter-list label {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }
}
