/* ============================================================
   MYZECA ENGINE — Design System v0.5.0
   Brand palette: Forest teal #1a6b5a / Deep navy #0d2b2b
   Accent amber #e8a020 / Surface #f4f7f5
   ============================================================ */

/* ---------- CSS custom properties ---------- */
:root {
  --mz-primary:        #1a6b5a;
  --mz-primary-dark:   #0d4d3d;
  --mz-primary-light:  #e8f5f1;
  --mz-primary-mid:    #2a8a72;
  --mz-navy:           #0d2b2b;
  --mz-amber:          #e8a020;
  --mz-amber-light:    #fef3dc;
  --mz-amber-dark:     #b87a10;
  --mz-surface:        #f4f7f5;
  --mz-surface-alt:    #eef3f0;
  --mz-white:          #ffffff;
  --mz-border:         #c8dbd5;
  --mz-border-light:   #deeae6;
  --mz-text:           #0d2b2b;
  --mz-text-mid:       #2e4a42;
  --mz-text-muted:     #5a7a6e;
  --mz-shadow-sm:      0 1px 4px rgba(13,43,43,.07);
  --mz-shadow-md:      0 4px 16px rgba(13,43,43,.10);
  --mz-shadow-lg:      0 8px 32px rgba(13,43,43,.14);
  --mz-radius-sm:      8px;
  --mz-radius-md:      12px;
  --mz-radius-lg:      16px;
  --mz-radius-xl:      22px;
  --mz-font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
.mesg-wrap {
  max-width: 1240px;
  font-family: var(--mz-font);
  color: var(--mz-text);
}

/* ---------- Dashboard shell ---------- */
.mesg-dashboard-shell {
  display: flex;
  min-height: 100vh;
  background: var(--mz-surface);
  border-radius: var(--mz-radius-xl);
  overflow: hidden;
  box-shadow: var(--mz-shadow-lg);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.mesg-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--mz-navy);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.mesg-sidebar-brand {
  padding: 28px 22px 22px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.mesg-sidebar-brand .mesg-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mesg-sidebar-brand .mesg-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--mz-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mesg-sidebar-brand .mesg-brand-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.mesg-sidebar-brand .mesg-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}

.mesg-sidebar-brand .mesg-brand-name span {
  color: var(--mz-amber);
}

.mesg-sidebar-user {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.mesg-sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mz-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.18);
}

.mesg-sidebar-user-info {
  min-width: 0;
}

.mesg-sidebar-user-info .mesg-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mesg-sidebar-user-info .mesg-user-role {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 2px;
}

.mesg-sidebar-nav {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.mesg-sidebar-nav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.32);
  padding: 10px 10px 4px;
  margin-top: 6px;
}

.mesg-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--mz-radius-sm);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: all .15s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.mesg-nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.mesg-nav-item.is-active {
  background: var(--mz-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26,107,90,.35);
}

.mesg-nav-item .mesg-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .75;
}

.mesg-nav-item.is-active .mesg-nav-icon,
.mesg-nav-item:hover .mesg-nav-icon {
  opacity: 1;
}

.mesg-nav-item .mesg-nav-badge {
  margin-left: auto;
  background: var(--mz-amber);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}

.mesg-nav-item-logout {
  color: rgba(255,100,100,.7);
}

.mesg-nav-item-logout:hover {
  background: rgba(255,80,80,.12);
  color: #ff7b7b;
}

.mesg-sidebar-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.mesg-sidebar-footer-text {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.mesg-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Top header bar */
.mesg-topbar {
  background: var(--mz-white);
  border-bottom: 1px solid var(--mz-border-light);
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
}

.mesg-topbar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--mz-navy);
  margin: 0;
}

.mesg-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mesg-topbar-greeting {
  font-size: 13px;
  color: var(--mz-text-muted);
  font-weight: 500;
}

.mesg-topbar-greeting strong {
  color: var(--mz-text);
}

.mesg-topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--mz-radius-sm);
  border: 1px solid var(--mz-border);
  background: var(--mz-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background .15s;
}

.mesg-topbar-btn:hover {
  background: var(--mz-surface);
}

.mesg-topbar-btn svg {
  width: 17px;
  height: 17px;
  stroke: var(--mz-text-mid);
}

.mesg-notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53e3e;
  border: 2px solid var(--mz-white);
}

/* Content area */
.mesg-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  background: var(--mz-surface);
}

.mesg-page-header {
  margin-bottom: 24px;
}

.mesg-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--mz-navy);
  margin: 0 0 4px;
  letter-spacing: -.02em;
}

.mesg-page-subtitle {
  font-size: 13.5px;
  color: var(--mz-text-muted);
  margin: 0;
  font-weight: 400;
}

/* ============================================================
   STAT CARDS (dashboard overview row)
   ============================================================ */
.mesg-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.mesg-stat-card {
  background: var(--mz-white);
  border: 1px solid var(--mz-border-light);
  border-radius: var(--mz-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--mz-shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow .18s, transform .18s;
}

.mesg-stat-card:hover {
  box-shadow: var(--mz-shadow-md);
  transform: translateY(-2px);
}

.mesg-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--mz-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mesg-stat-icon svg {
  width: 24px;
  height: 24px;
}

.mesg-stat-icon--teal   { background: var(--mz-primary-light); }
.mesg-stat-icon--teal svg { stroke: var(--mz-primary); }

.mesg-stat-icon--amber  { background: var(--mz-amber-light); }
.mesg-stat-icon--amber svg { stroke: var(--mz-amber-dark); }

.mesg-stat-icon--navy   { background: rgba(13,43,43,.08); }
.mesg-stat-icon--navy svg { stroke: var(--mz-navy); }

.mesg-stat-icon--green  { background: #e6f9f2; }
.mesg-stat-icon--green svg { stroke: #157a4a; }

.mesg-stat-body {}

.mesg-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--mz-navy);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.mesg-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mz-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 3px;
}

/* ============================================================
   PANELS / CARDS
   ============================================================ */
.mesg-panel, .mesg-form, .mesg-report, .mesg-card {
  background: var(--mz-white);
  border: 1px solid var(--mz-border-light);
  border-radius: var(--mz-radius-lg);
  box-shadow: var(--mz-shadow-sm);
}

.mesg-panel, .mesg-form, .mesg-report {
  padding: 24px;
  margin-bottom: 20px;
}

.mesg-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mz-border-light);
}

.mesg-panel-header h2,
.mesg-panel-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--mz-navy);
  letter-spacing: -.01em;
}

.mesg-panel-header h2 {
  font-size: 18px;
}

.mesg-panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--mz-navy);
  letter-spacing: -.02em;
}

.mesg-panel h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mz-navy);
}

/* Hero / welcome banner */
.mesg-dashboard-hero {
  background: linear-gradient(135deg, var(--mz-navy) 0%, var(--mz-primary) 100%);
  border-radius: var(--mz-radius-xl);
  padding: 30px 32px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
  border: none;
}

.mesg-dashboard-hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.mesg-dashboard-hero::after {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(232,160,32,.07);
  pointer-events: none;
}

.mesg-hero-text {}

.mesg-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mz-amber);
  margin-bottom: 8px;
}

.mesg-hero-greeting {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}

.mesg-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin: 0;
  max-width: 460px;
  line-height: 1.55;
}

.mesg-hero-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.mesg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.mesg-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mesg-hero-badge-dot--green { background: #4ade80; }
.mesg-hero-badge-dot--amber { background: var(--mz-amber); }

.mesg-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--mz-amber);
  color: var(--mz-navy);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(232,160,32,.35);
  transition: background .15s, transform .15s;
  white-space: nowrap;
}

.mesg-hero-cta:hover {
  background: var(--mz-amber-dark);
  transform: translateY(-1px);
  color: #fff;
}

/* ============================================================
   META GRID (key info tiles)
   ============================================================ */
.mesg-guided-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}

.mesg-guided-meta-card {
  background: var(--mz-white);
  border: 1px solid var(--mz-border-light);
  border-radius: var(--mz-radius-lg);
  padding: 20px 22px;
  box-shadow: var(--mz-shadow-sm);
  transition: box-shadow .18s;
}

.mesg-guided-meta-card:hover {
  box-shadow: var(--mz-shadow-md);
}

.mesg-guided-meta-card h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--mz-text-muted);
}

.mesg-guided-meta-card > div {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: var(--mz-navy) !important;
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* ============================================================
   PILLS / TAGS / BADGES
   ============================================================ */
.mesg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--mz-primary-light);
  border: 1px solid var(--mz-border);
  color: var(--mz-primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.mesg-pill--amber {
  background: var(--mz-amber-light);
  border-color: #f5c96a;
  color: var(--mz-amber-dark);
}

.mesg-status-tag {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.mesg-status-draft   { background: #fff7ed; color: #9a3412; }
.mesg-status-final   { background: var(--mz-primary-light); color: var(--mz-primary-dark); }
.mesg-status-active  { background: #e6f9f2; color: #157a4a; }
.mesg-status-expired { background: #fff0f0; color: #b91c1c; }

/* ============================================================
   TABLES
   ============================================================ */
.mesg-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: var(--mz-white);
  font-size: 13.5px;
}

.mesg-table th,
.mesg-table td {
  border: none;
  border-bottom: 1px solid var(--mz-border-light);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}

.mesg-table th {
  background: var(--mz-surface);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mz-text-muted);
  border-bottom: 2px solid var(--mz-border);
}

.mesg-table tbody tr:last-child td {
  border-bottom: none;
}

.mesg-table tbody tr:hover td {
  background: var(--mz-surface);
}

.mesg-history-table td { vertical-align: middle; }

/* ============================================================
   BUTTONS
   ============================================================ */
.button.button-primary,
.mesg-btn-primary {
  background: var(--mz-primary) !important;
  border-color: var(--mz-primary-dark) !important;
  color: #fff !important;
  border-radius: var(--mz-radius-sm) !important;
  padding: 9px 20px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  box-shadow: 0 2px 6px rgba(26,107,90,.25) !important;
  transition: background .15s, transform .15s !important;
  cursor: pointer;
}

.button.button-primary:hover,
.mesg-btn-primary:hover {
  background: var(--mz-primary-mid) !important;
  transform: translateY(-1px);
}

.button.button-secondary,
.mesg-btn-secondary {
  background: var(--mz-white) !important;
  border: 1px solid var(--mz-border) !important;
  color: var(--mz-text-mid) !important;
  border-radius: var(--mz-radius-sm) !important;
  padding: 9px 20px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background .15s !important;
  cursor: pointer;
}

.button.button-secondary:hover,
.mesg-btn-secondary:hover {
  background: var(--mz-surface) !important;
}

/* Amber CTA button */
.mesg-btn-amber {
  background: var(--mz-amber);
  border: none;
  color: var(--mz-navy);
  border-radius: var(--mz-radius-sm);
  padding: 9px 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
  box-shadow: 0 2px 8px rgba(232,160,32,.3);
}

.mesg-btn-amber:hover {
  background: var(--mz-amber-dark);
  color: #fff;
}

/* ============================================================
   FORMS
   ============================================================ */
.mesg-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mesg-field label,
.mesg-field-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--mz-text);
}

.mesg-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.mesg-field input,
.mesg-field select,
.mesg-field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--mz-border);
  border-radius: var(--mz-radius-sm);
  background: var(--mz-white);
  color: var(--mz-text);
  font-size: 13.5px;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}

.mesg-field input:focus,
.mesg-field select:focus,
.mesg-field textarea:focus {
  outline: none;
  border-color: var(--mz-primary);
  box-shadow: 0 0 0 3px rgba(26,107,90,.13);
}

.mesg-field textarea { min-height: 110px; resize: vertical; }

.mesg-help, .mesg-unit { font-size: 12px; color: var(--mz-text-muted); }

.mesg-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.mesg-guided-field-wide { grid-column: span 2; }

.mesg-field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 18px;
}

.mesg-meta-chip {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--mz-surface-alt);
  color: var(--mz-text-mid);
  font-size: 11px;
}

/* ============================================================
   TOOLTIPS
   ============================================================ */
.mesg-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mesg-tooltip-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--mz-primary);
  border-radius: 999px;
  background: var(--mz-primary-light);
  color: var(--mz-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.mesg-tooltip-panel {
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 20;
  display: none;
  min-width: 260px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: var(--mz-radius-md);
  border: 1px solid var(--mz-border);
  background: var(--mz-white);
  box-shadow: var(--mz-shadow-lg);
  color: var(--mz-text);
  font-size: 12px;
}

.mesg-tooltip.is-open .mesg-tooltip-panel,
.mesg-tooltip:hover .mesg-tooltip-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mesg-tooltip-panel strong {
  color: var(--mz-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ============================================================
   TABS
   ============================================================ */
.mesg-tab-shell { display: flex; flex-direction: column; gap: 18px; }

.mesg-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--mz-border-light);
  padding-bottom: 0;
}

.mesg-tab-button {
  appearance: none;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--mz-text-muted);
  cursor: pointer;
  transition: all .15s ease;
  margin-bottom: -2px;
  border-radius: 0;
}

.mesg-tab-button:hover {
  color: var(--mz-primary);
}

.mesg-tab-button.is-active {
  color: var(--mz-primary);
  border-bottom-color: var(--mz-primary);
  background: none;
  box-shadow: none;
}

.mesg-tab-panes { display: flex; flex-direction: column; gap: 18px; }
.mesg-tab-pane { display: none; }
.mesg-tab-pane.is-active { display: block; }
.mesg-tab-pane-header h3 { margin: 0 0 6px; }

/* ============================================================
   SECTION CARDS
   ============================================================ */
.mesg-section-card {
  border: 1px solid var(--mz-border-light);
  border-radius: var(--mz-radius-lg);
  background: var(--mz-white);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--mz-shadow-sm);
}

.mesg-section-heading { margin-bottom: 14px; }
.mesg-section-heading h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--mz-navy); }

/* ============================================================
   NOTICES / ALERTS
   ============================================================ */
.mesg-empty {
  padding: 20px;
  border: 1px dashed var(--mz-border);
  border-radius: var(--mz-radius-md);
  background: var(--mz-surface);
  color: var(--mz-text-muted);
  font-size: 13.5px;
  text-align: center;
}

.mesg-notice {
  padding: 12px 16px;
  border-radius: var(--mz-radius-md);
  margin: 0 0 16px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mesg-notice-success {
  background: var(--mz-primary-light);
  border: 1px solid var(--mz-border);
  color: var(--mz-primary-dark);
}

.mesg-notice-error {
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #9f1239;
}

.mesg-notice-warning {
  background: var(--mz-amber-light);
  border: 1px solid #f5c96a;
  color: var(--mz-amber-dark);
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.mesg-page-header { margin-bottom: 18px; }
.mesg-subtitle, .mesg-muted { color: var(--mz-text-muted); }

.mesg-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.mesg-stack-sm { flex-wrap: wrap; }
.mesg-admin-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mesg-wrap-toolbar { justify-content: flex-end; }

.mesg-guided-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.mesg-meta-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--mz-text-mid);
}

.mesg-readonly-box {
  padding: 10px 12px;
  border: 1px solid var(--mz-border);
  border-radius: var(--mz-radius-sm);
  background: var(--mz-surface);
  color: var(--mz-text);
  min-height: 20px;
  font-size: 13.5px;
}

.mesg-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.mesg-actions-sticky {
  padding-top: 16px;
  border-top: 1px solid var(--mz-border-light);
}

.mesg-card { padding: 16px; }

.mesg-card h3 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mz-text-muted);
  font-weight: 700;
}

.mesg-card .mesg-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--mz-navy);
}

.mesg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.mesg-inline-form { display: inline; }

.mesg-report h1, .mesg-report h2, .mesg-report h3 { margin-top: 24px; }
.mesg-report-section { margin-top: 20px; }
.mesg-evidence-table textarea { min-height: 80px; }

.button-link {
  border: none;
  background: none;
  color: var(--mz-primary);
  padding: 0 0 0 6px;
  cursor: pointer;
  text-decoration: underline;
}

.is-annual-only { max-width: 100%; }

/* ============================================================
   EVIDENCE INLINE
   ============================================================ */
.mesg-guided-evidence-cell { min-width: 300px; }

.mesg-inline-evidence {
  border: 1px solid var(--mz-border);
  border-radius: var(--mz-radius-md);
  background: var(--mz-surface);
  padding: 10px;
}

.mesg-inline-evidence summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--mz-navy);
  font-size: 13px;
}

.mesg-inline-evidence-panel { margin-top: 10px; }

.mesg-inline-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.mesg-inline-evidence-card {
  border: 1px solid var(--mz-border-light);
  background: var(--mz-white);
  border-radius: var(--mz-radius-sm);
  padding: 10px;
}

.mesg-inline-evidence-card h5 { margin: 0 0 8px; font-size: 12px; }
.mesg-inline-evidence-card label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mz-text-muted);
  margin: 6px 0 4px;
}

.mesg-inline-total {
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--mz-radius-sm);
  background: var(--mz-primary-light);
}

.mesg-evidence-summary { font-size: 12px; color: var(--mz-text-muted); }

/* ============================================================
   DIVIDER
   ============================================================ */
.mesg-divider {
  border: none;
  border-top: 1px solid var(--mz-border-light);
  margin: 20px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .mesg-dashboard-shell {
    flex-direction: column;
    border-radius: var(--mz-radius-lg);
  }

  .mesg-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
  }

  .mesg-sidebar-brand { border-bottom: none; padding: 0 10px 0 0; }
  .mesg-sidebar-nav { flex-direction: row; flex: none; flex-wrap: wrap; padding: 0; }
  .mesg-sidebar-nav-label { display: none; }
  .mesg-nav-item { padding: 8px 12px; font-size: 12px; }
  .mesg-sidebar-footer { display: none; }
}

@media (max-width: 782px) {
  .mesg-flex-between, .mesg-guided-hero { flex-direction: column; }
  .mesg-guided-field-wide { grid-column: auto; }
  .mesg-tab-buttons { overflow: auto; padding-bottom: 4px; }
  .mesg-tab-button { white-space: nowrap; }
  /* v0.8.8 - mobile tooltip UX fix.
   Was `position:absolute;right:0;min-width:260px` so on phone viewports the 260-320px
   wide popup extended off the right edge of the screen (heading strings became
   "SME EXPLA", "SAMPLE DA", "SOURCE DO" - users could see only the leftmost half).
   Now on screens <= 782px the popup is repositioned as a fixed bottom-sheet anchored
   to the viewport (left:12px; right:12px; bottom:16px; max-height:60vh; overflow-y:auto)
   so the full SME EXPLANATION + SAMPLE DATA + SOURCE DOCUMENT content is always
   visible regardless of where on the page the (i) button lives. */
.mesg-tooltip-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  top: auto;
  bottom: 16px;
  min-width: 0;
  width: auto;
  max-width: none;
  max-height: 60vh;
  overflow-y: auto;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  z-index: 9999;
}
.mesg-tooltip-panel strong { font-size: 11px; }
  .mesg-content { padding: 16px; }
  .mesg-topbar { padding: 0 16px; }
  .mesg-stat-value { font-size: 22px; }
  .mesg-dashboard-hero { padding: 22px 20px; }
  .mesg-hero-greeting { font-size: 19px; }
}


/* === Export page wrapper (used by handle_export_record) === */
.mesg-export-page { background:#f5f6f8; color:#1f2933; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin:0; padding:32px 24px; }
.mesg-export-page .mesg-export-banner { max-width:1080px; margin:0 auto 24px auto; padding:20px 24px; background:#0b3d91; color:#fff; border-radius:8px; }
.mesg-export-page .mesg-export-banner h1 { margin:0 0 4px 0; font-size:22px; font-weight:600; }
.mesg-export-page .mesg-export-meta { margin:0; font-size:13px; opacity:0.85; }
.mesg-export-page .mesg-export-main { max-width:1080px; margin:0 auto; background:#ffffff; padding:28px 32px; border-radius:8px; box-shadow:0 2px 6px rgba(15,23,42,0.08); }
.mesg-export-page .mesg-panel { box-shadow:none; border:1px solid #e2e6ee; }
.mesg-export-page .mesg-table th,
.mesg-export-page .mesg-table td { border:1px solid #d8dde7; padding:6px 10px; }
.mesg-export-page .mesg-stat-card,
.mesg-export-page .mesg-card,
.mesg-export-page .mesg-pill { border:1px solid #d8dde7; }

/* === Print stylesheet — keep report printouts tidy === */
@media print {
  .mesg-export-page { background:#fff; padding:0; }
  .mesg-export-page .mesg-export-main { box-shadow:none; border-radius:0; padding:0; }
  .mesg-export-page .mesg-export-banner { background:#fff !important; color:#000; border-bottom:2px solid #000; }
  .mesg-export-page .mesg-export-banner h1,
  .mesg-export-page .mesg-export-banner p { color:#000; }
  .mesg-export-page .mesg-panel,
  .mesg-export-page .mesg-stat-card,
  .mesg-export-page .mesg-card { break-inside: avoid; page-break-inside: avoid; border-color:#888; }
  .mesg-export-page .mesg-table { border-collapse: collapse; width:100
/* === Export page wrapper (used by handle_export_record) === */
.mesg-export-page { background:#f5f6f8; color:#1f2933; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin:0; padding:32px 24px; }
.mesg-export-page .mesg-export-banner { max-width:1080px; margin:0 auto 24px auto; padding:20px 24px; background:#0b3d91; color:#fff; border-radius:8px; }
.mesg-export-page .mesg-export-banner h1 { margin:0 0 4px 0; font-size:22px; font-weight:600; }
.mesg-export-page .mesg-export-meta { margin:0; font-size:13px; opacity:0.85; }
.mesg-export-page .mesg-export-main { max-width:1080px; margin:0 auto; background:#ffffff; padding:28px 32px; border-radius:8px; box-shadow:0 2px 6px rgba(15,23,42,0.08); }
.mesg-export-page .mesg-panel { box-shadow:none; border:1px solid #e2e6ee; }
.mesg-export-page .mesg-table th,
.mesg-export-page .mesg-table td { border:1px solid #d8dde7; padding:6px 10px; }
.mesg-export-page .mesg-stat-card,
.mesg-export-page .mesg-card,
.mesg-export-page .mesg-pill { border:1px solid #d8dde7; }

/* === Print stylesheet keep report printouts tidy === */
@media print {
  .mesg-export-page { background:#fff; padding:0; }
  .mesg-export-page .mesg-export-main { box-shadow:none; border-radius:0; padding:0; }
  .mesg-export-page .mesg-export-banner { background:#fff !important; color:#000; border-bottom:2px solid #000; }
  .mesg-export-page .mesg-export-banner h1,
  .mesg-export-page .mesg-export-banner p { color:#000; }
  .mesg-export-page .mesg-panel,
  .mesg-export-page .mesg-stat-card,
  .mesg-export-page .mesg-card { break-inside: avoid; page-break-inside: avoid; border-color:#888; }
  .mesg-export-page .mesg-table { border-collapse: collapse; width:100%; }
  .mesg-export-page .mesg-table th { background:#eee !important; color:#000; }
  .mesg-export-page a { color:#000; text-decoration:none; }
}

/* Required-field markers (registration & receipt forms) */
.mesg-required {
    color: #c0392b;
    font-weight: 700;
    margin-left: 2px;
}
.mesg-required-legend {
    margin-bottom: 12px;
    font-style: italic;
}

/* Promo code inline validation (registration form) */
.mesg-promo-ok  { color: #1e7e34; font-weight: 600; }
.mesg-promo-bad { color: #c0392b; font-weight: 600; }

/* ============================================================
   v0.7.0 — Reference-aligned UI layer (myzeca-sedgv2 alpha.3)
   Ports the approved SEDGv2 visual language onto the existing
   MESG components: navy sidebar, gold active accent, teal primary,
   metric cards, white panels, uppercase table headers, status chips.
   ============================================================ */
:root {
  --mz2-teal:   #006d77;
  --mz2-teal-h: #005d66;
  --mz2-navy:   #082f3a;
  --mz2-navy2:  #063b4d;
  --mz2-blue:   #118ab2;
  --mz2-gold:   #ffd166;
  --mz2-bg:     #f5f8fb;
  --mz2-border: #d7e1ea;
  --mz2-green:  #178342;
  --mz2-red:    #b42318;
  --mz2-yellow: #9a6500;
  --mz2-shadow: 0 10px 30px rgba(8,47,58,.08);
}

/* ---- app shell background ---- */
body.mesg-admin-page,
.wrap.mesg-wrap { background: transparent; }

.wrap.mesg-wrap { max-width: 1680px; margin: 0 auto; padding: 24px 28px 70px; }
.mesg-wrap h1 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; margin: 0 0 6px; color: var(--mz2-navy); }
.mesg-wrap .mesg-subtitle, .mesg-wrap .mesg-muted { color: var(--mz2-navy); opacity:.68; }

.mesg-page-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; flex-wrap:wrap; }
.mesg-page-header .mesg-admin-toolbar { gap:10px; }

/* ---- buttons (reference .mz-btn family) ---- */
.mesg-wrap .button,
.mesg-wrap .button-secondary,
.mesg-wrap button.button {
  min-height: 40px; border-radius: 7px; padding: 8px 15px;
  border: 1px solid #aebdca; background:#fff; color:#173b56;
  font-weight: 700; box-shadow: none; line-height: 1.4;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.mesg-wrap .button:hover { border-color: var(--mz2-blue); color:#075b7a; background:#fff; }
.mesg-wrap .button-primary {
  background: var(--mz2-teal); border-color: var(--mz2-teal); color:#fff;
}
.mesg-wrap .button-primary:hover { background: var(--mz2-teal-h); border-color: var(--mz2-teal-h); color:#fff; }
.mesg-wrap .button:disabled { opacity:.55; cursor:not-allowed; }

/* ---- pills / role tags ---- */
.mesg-wrap .mesg-pill {
  display:inline-flex; align-items:center; border:1px solid #b8c7d3;
  border-radius:99px; padding:3px 11px; font-size:12px; font-weight:700;
  background:#fff; color:#3f5568;
}

/* ---- panels (reference .mz-panel) ---- */
.mesg-wrap .mesg-panel,
.mesg-admin-wrap .mesg-panel {
  background:#fff; border:1px solid var(--mz2-border);
  border-radius:12px; box-shadow:0 3px 12px rgba(8,47,58,.05);
  margin-bottom:20px; padding:0; overflow:hidden;
}
.mesg-wrap .mesg-panel > h2,
.mesg-wrap .mesg-panel > h3 {
  padding:16px 20px; margin:0; border-bottom:1px solid var(--mz2-border);
  font-size:17px; color:var(--mz2-navy); background:#fbfdfe;
}
.mesg-wrap .mesg-panel .mesg-muted { padding:12px 20px 0; margin:0; }
.mesg-wrap .mesg-panel form, .mesg-wrap .mesg-panel .mesg-form { padding:18px 20px; }
.mesg-wrap .mesg-panel .mesg-form { background:#fff; }
.mesg-wrap .mesg-panel table.mesg-table { margin:0; }
.mesg-wrap .mesg-panel .mesg-guided-meta-grid,
.mesg-wrap .mesg-panel .mesg-field-grid { padding:18px 20px; }

/* ---- metric cards (reference .mz-metrics/.mz-metric) ---- */
.mesg-guided-meta-grid { gap:16px; }
.mesg-guided-meta-card {
  background:#fff; border:1px solid var(--mz2-border);
  border-radius:10px; padding:18px 20px; box-shadow:0 3px 12px rgba(8,47,58,.04);
}
.mesg-guided-meta-card h3 {
  font-size:13px; font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; color:#3f5568; margin:0 0 8px;
}
.mesg-guided-meta-card div { font-size:26px; font-weight:800; color:var(--mz2-teal); line-height:1.1; }
.mesg-wrap .mesg-guided-meta-grid > div { display:block; }

/* ---- tables (reference .mz-table) ---- */
.mesg-wrap .mesg-table { width:100%; border-collapse:collapse; min-width:720px; }
.mesg-wrap .mesg-table th {
  font-size:12px; text-transform:uppercase; letter-spacing:.04em;
  background:#f7fafc; color:#3f5568; padding:12px 14px;
  border-bottom:1px solid var(--mz2-border); text-align:left;
}
.mesg-wrap .mesg-table td { padding:12px 14px; border-bottom:1px solid var(--mz2-border); vertical-align:top; }
.mesg-wrap .mesg-table tr:hover td { background:#fbfdff; }
.mesg-wrap .mesg-wrap-toolbar { display:flex; gap:6px; flex-wrap:wrap; }

/* ---- status chips (reference .mz-status) ---- */
.mesg-status-tag {
  display:inline-flex; align-items:center; gap:5px;
  border:1px solid #b8c7d3; border-radius:99px; padding:3px 9px;
  font-size:12px; font-weight:700; background:#fff; color:#3f5568;
}
.mesg-status-active, .mesg-status-verified, .mesg-status-accepted {
  color:#126b37; border-color:#8bd0a7; background:#edf9f1;
}
.mesg-status-expired, .mesg-status-suspended, .mesg-status-rejected, .mesg-status-payment_suspended {
  color:#9d2118; border-color:#efaaa4; background:#fff2f1;
}
.mesg-status-submitted, .mesg-status-requested, .mesg-status-pending, .mesg-status-payment_requested, .mesg-status-grace_period {
  color:#805500; border-color:#eac55d; background:#fff9df;
}
.mesg-status-draft, .mesg-status-more_info_required {
  color:#075b7a; border-color:#8fc6df; background:#eef8fd;
}
.mesg-status-approved_in_principle, .mesg-status-payment_verified {
  color:#075b7a; border-color:#8fc6df; background:#eef8fd;
}

/* ---- notices (reference callout/status tones) ---- */
.mesg-wrap .mesg-notice { border-radius:9px; padding:14px 18px; margin-bottom:20px; font-weight:600; }
.mesg-wrap .mesg-notice-success {
  background:#edf9f1; border:1px solid #8bd0a7; color:#126b37;
}
.mesg-wrap .mesg-notice-error {
  background:#fff2f1; border:1px solid #efaaa4; color:#9d2118;
}

/* ---- empty state ---- */
.mesg-wrap .mesg-empty { padding:34px; text-align:center; color:#52667a; }

/* ---- forms ---- */
.mesg-wrap .mesg-field label { font-weight:700; font-size:13px; color:var(--mz2-navy); }
.mesg-wrap .mesg-field input[type=text],
.mesg-wrap .mesg-field input[type=email],
.mesg-wrap .mesg-field input[type=tel],
.mesg-wrap .mesg-field input[type=password],
.mesg-wrap .mesg-field input[type=number],
.mesg-wrap .mesg-field select,
.mesg-wrap .mesg-field textarea {
  width:100%; min-height:44px; border:1px solid #afbdca;
  border-radius:7px; padding:9px 11px; background:#fff; box-shadow:none;
}
.mesg-wrap .mesg-field textarea { min-height:96px; resize:vertical; }
.mesg-wrap .mesg-field .mesg-help { font-size:12px; color:#52667a; margin-top:4px; }

/* ---- portal sidebar → reference navy shell ---- */
.mesg-sidebar {
  background: linear-gradient(180deg, var(--mz2-navy) 0%, var(--mz2-navy2) 100%);
}
.mesg-sidebar .mesg-sidebar-brand .mesg-brand-name { color:#fff; }
.mesg-sidebar .mesg-sidebar-brand .mesg-brand-name span { color:#20b8c5; }
.mesg-sidebar .mesg-brand-icon {
  background:#fff; color:var(--mz2-teal); border-radius:8px;
}
.mesg-sidebar-user { border-bottom:1px solid rgba(255,255,255,.14); }
.mesg-sidebar .mesg-user-name { color:#fff; }
.mesg-sidebar .mesg-user-role { color:#b9d4da; }
.mesg-nav-item {
  min-height:44px; border-radius:8px; color:#d9edf0;
  display:flex; align-items:center; gap:11px; font-weight:650;
  transition: background .15s ease, color .15s ease;
}
.mesg-nav-item:hover { background:rgba(255,255,255,.08); color:#fff; }
.mesg-nav-item.is-active {
  background:#007f8c; color:#fff; box-shadow:inset 3px 0 var(--mz2-gold);
}
.mesg-sidebar-nav-label { color:#8fb4bd; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.mesg-sidebar-footer { color:#9db9c0; border-top:1px solid rgba(255,255,255,.18); }

/* ---- portal topbar ---- */
.mesg-topbar { background:#fff; border-bottom:1px solid var(--mz2-border); }
.mesg-topbar-title { color:var(--mz2-navy); }

/* ---- guidance / callouts ---- */
.mesg-wrap .mesg-callout, .mesg-guidance {
  background:#eef8fd; border:1px solid #b6dcec;
  border-radius:9px; padding:16px 20px; margin:0 0 20px;
}

/* ---- gold focus ring (reference a11y) ---- */
.mesg-wrap :focus-visible, .mesg-sidebar :focus-visible, .mesg-topbar :focus-visible {
  outline: 3px solid var(--mz2-gold); outline-offset: 2px;
}

/* ============================================================
   v0.8.0 — CSI supplemental-disclosure info tooltips
   Three-section popup (SME EXPLANATION / SAMPLE DATA / SOURCE
   DOCUMENT) with reference-style circular light-green ring and
   teal lowercase "i" glyph. Available on hover/focus immediately
   and click-to-pin.
   ============================================================ */
.mesg-wrap .mz-help-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    vertical-align: middle;
    background: #fff;
    color: var(--mz-teal, #006d77);
    border: 1.5px solid #a6e0c4;
    border-radius: 50%;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 12px;
    line-height: 1;
    cursor: help;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    box-sizing: border-box;
}
.mesg-wrap .mz-help-info:hover,
.mesg-wrap .mz-help-info:focus-visible {
    background: #f1faf4;
    border-color: #60c08a;
    color: #005d66;
    outline: none;
    box-shadow: 0 0 0 3px rgba(160, 220, 180, .35);
}

.mesg-wrap .mz-help-pop-tip {
    display: none;
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    left: 0;
    width: min(420px, 90vw);
    padding: 14px 16px;
    background: #fff;
    color: #102a43;
    border-radius: 10px;
    border: 1px solid #d7e1ea;
    box-shadow: 0 10px 30px rgba(8, 47, 58, .18);
    font-size: 12pt;
    line-height: 1.45;
    font-style: normal;
    font-weight: 400;
    text-align: left;
}
.mesg-wrap .mz-help {
    position: relative;
    display: inline-flex;
}
.mesg-wrap .mz-help:hover .mz-help-pop-tip,
.mesg-wrap .mz-help:focus-within .mz-help-pop-tip,
.mesg-wrap .mz-help[data-open="true"] .mz-help-pop-tip {
    display: block;
}
.mesg-wrap .mz-help-pop-tip .mz-tip-title {
    display: block;
    color: #006d77;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10pt;
    font-weight: 800;
    margin: 0 0 3px;
}
.mesg-wrap .mz-help-pop-tip .mz-tip-title:not(:first-child) { margin-top: 10px; }
.mesg-wrap .mz-help-pop-tip .mz-tip-body {
    margin: 0;
    color: #102a43;
    font-size: 11pt;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
}
@media (max-width: 520px) {
    .mesg-wrap .mz-help-pop-tip { width: calc(100vw - 40px); left: -10px; }
}

/* ============================================================
   v0.8.0 — CSI supplemental-disclosure info tooltips
   Reference-style: circular light-green ring + teal italic i,
   three-section popup (SME EXPLANATION / SAMPLE DATA / SOURCE
   DOCUMENT). Hover/focus opens, click pins.
   ============================================================ */
.mesg-wrap .mz-help { position: relative; display: inline-flex; }
.mesg-wrap .mz-help-info {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; margin-left: 6px; vertical-align: middle;
    background: #fff; color: #006d77;
    border: 1.5px solid #a6e0c4; border-radius: 50%;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-weight: 700; font-style: italic; font-size: 12px; line-height: 1;
    cursor: help; box-sizing: border-box;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mesg-wrap .mz-help-info:hover, .mesg-wrap .mz-help-info:focus-visible {
    background: #f1faf4; border-color: #60c08a; color: #005d66; outline: none;
    box-shadow: 0 0 0 3px rgba(160, 220, 180, .35);
}
.mesg-wrap .mz-help-pop-tip {
    display: none; position: absolute; z-index: 50;
    top: calc(100% + 6px); left: 0;
    width: min(420px, 90vw); padding: 14px 16px;
    background: #fff; color: #102a43; border-radius: 10px;
    border: 1px solid #d7e1ea;
    box-shadow: 0 10px 30px rgba(8, 47, 58, .18);
    font-size: 12pt; line-height: 1.45;
    font-style: normal; font-weight: 400; text-align: left;
}
.mesg-wrap .mz-help:hover .mz-help-pop-tip,
.mesg-wrap .mz-help:focus-within .mz-help-pop-tip,
.mesg-wrap .mz-help[data-open="true"] .mz-help-pop-tip { display: block; }
.mesg-wrap .mz-tip-title {
    display: block; color: #006d77;
    text-transform: uppercase; letter-spacing: .08em;
    font-size: 10pt; font-weight: 800;
    margin: 0 0 3px;
}
.mesg-wrap .mz-tip-title:not(:first-child) { margin-top: 10px; }
.mesg-wrap .mz-tip-body {
    margin: 0; color: #102a43; font-size: 11pt; font-weight: 400; line-height: 1.4;
    white-space: normal;
}
@media (max-width: 520px) {
    .mesg-wrap .mz-help-pop-tip { width: calc(100vw - 40px); left: -10px; }
}
