/* ==========================================================================
   MME Community – pages, forms, dashboard, analytics.
   Uses the theme's CSS variables (with fallbacks so it also works alone).
   ========================================================================== */
.mmec-body { --p: var(--c-primary, #2d7a73); --pd: var(--c-primary-dark, #22594f); --bd: var(--c-border, #e3eaea); --soft: var(--c-bg-soft, #f1f6f5); --mut: var(--c-text-muted, #5d6a70); --r: var(--radius, 10px); --rs: var(--radius-sm, 6px); --ok: #1f9d6a; --mid: #e0a100; --bad: #d64545; }

.mmec-page { padding-block: 36px 72px; animation: mmec-in .5s ease both; }
@keyframes mmec-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mmec-ico { width: 18px; height: 18px; flex: none; }

/* ---------- Card + headings ---------- */
.mmec-card { background: #fff; border: 1px solid var(--bd); border-radius: 14px; padding: 30px; box-shadow: 0 1px 2px rgba(31, 42, 48, .05), 0 10px 30px rgba(31, 42, 48, .05); }
.mmec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.mmec-title { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 600; margin: 0; }
.mmec-lead { color: var(--mut); margin: -10px 0 22px; }
.mmec-h2 { font-weight: 600; font-size: 1.15rem; margin: 34px 0 14px; padding-top: 24px; border-top: 1px solid var(--bd); font-family: var(--font-heading, inherit); }
.mmec-h2--first { margin-top: 0; padding-top: 0; border-top: 0; }
.mmec-h2--plain { border: 0; padding: 0; margin: 6px 0 16px; font-size: 1.4rem; }

/* ---------- Layouts ---------- */
.mmec-narrow { max-width: 520px; margin-inline: auto; }
.mmec-auth { display: grid; gap: 0; max-width: 980px; margin-inline: auto; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(31, 42, 48, .12); }
.mmec-auth .mmec-card { border: 0; border-radius: 0; box-shadow: none; padding: 36px; }
.mmec-panel { background: linear-gradient(145deg, var(--p), var(--pd)); color: #fff; padding: 36px; position: relative; overflow: hidden; }
.mmec-panel::before, .mmec-panel::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.mmec-panel::before { width: 260px; height: 260px; right: -90px; top: -90px; }
.mmec-panel::after { width: 160px; height: 160px; left: -50px; bottom: -50px; }
.mmec-panel h2 { font-size: 1.6rem; margin: 0 0 20px; color: #fff; position: relative; }
.mmec-panel ul { list-style: none; margin: 0; padding: 0; position: relative; }
.mmec-panel li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; opacity: 0; animation: mmec-in .5s ease forwards; }
.mmec-panel li:nth-child(1) { animation-delay: .15s; } .mmec-panel li:nth-child(2) { animation-delay: .3s; }
.mmec-panel li:nth-child(3) { animation-delay: .45s; } .mmec-panel li:nth-child(4) { animation-delay: .6s; }
.mmec-panel li .mmec-ico { background: rgba(255, 255, 255, .2); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 1px; }
@media (min-width: 820px) { .mmec-auth { grid-template-columns: 5fr 6fr; } }
@media (max-width: 819px) { .mmec-panel { display: none; } .mmec-auth .mmec-card { padding: 26px; } }

.mmec-app { display: grid; gap: 24px; align-items: start; }
.mmec-main { min-width: 0; }
@media (min-width: 900px) { .mmec-app { grid-template-columns: 280px minmax(0, 1fr); } .mmec-side { position: sticky; top: 90px; } }
.mmec-side { display: grid; gap: 16px; }

/* ---------- Sidebar ---------- */
.mmec-usercard { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--bd); border-radius: 14px; padding: 16px; }
.mmec-usercard img { border-radius: 50%; }
.mmec-usercard strong { display: block; font-weight: 600; font-family: var(--font-heading, inherit); line-height: 1.2; }
.mmec-role { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 99px; background: var(--soft); color: var(--pd); font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mmec-menu { display: grid; gap: 4px; background: #fff; border: 1px solid var(--bd); border-radius: 14px; padding: 8px; }
.mmec-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px; font-weight: 600; font-size: .9375rem; transition: background .2s, color .2s, transform .2s; }
.mmec-menu a:hover { background: var(--soft); color: var(--p); transform: translateX(3px); }
.mmec-menu a.is-active { background: var(--p); color: #fff; }
.mmec-sidebox { background: #fff; border: 1px solid var(--bd); border-radius: 14px; padding: 16px; }
.mmec-sidebox h3 { display: flex; align-items: center; gap: 8px; font-size: .9375rem; margin: 0 0 12px; font-family: var(--font-heading, inherit); }
.mmec-sidebox h3 .mmec-ico { color: var(--p); }
.mmec-tips { margin: 0; padding-left: 18px; font-size: .875rem; color: var(--mut); }
.mmec-tips li { margin-bottom: 6px; }
.mmec-recent { list-style: none; margin: 0; padding: 0; }
.mmec-recent li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--bd); font-size: .875rem; }
.mmec-recent li:last-child { border: 0; }
.mmec-recent a { font-weight: 600; line-height: 1.3; }
.mmec-recent a:hover { color: var(--p); }
.mmec-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mmec-dot--ok { background: var(--ok); } .mmec-dot--wait { background: var(--mid); }
.mmec-minstat { display: flex; align-items: center; justify-content: space-between; background: var(--soft); border-color: transparent; }
.mmec-minstat span { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--mut); }
.mmec-minstat strong { font-size: 1.5rem; color: var(--pd); font-family: var(--font-heading, inherit); }
@media (max-width: 899px) { .mmec-menu { grid-auto-flow: column; overflow-x: auto; scrollbar-width: none; } .mmec-menu a span { white-space: nowrap; } }

/* ---------- Buttons ---------- */
.mmec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border: 0; border-radius: var(--rs); background: var(--p); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; }
.mmec-btn:hover { background: var(--pd); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--p) 30%, transparent); }
.mmec-btn:active { transform: none; }
.mmec-btn:disabled { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.mmec-btn--block { width: 100%; } .mmec-btn--lg { height: 52px; padding: 0 32px; font-size: 1.0625rem; }
.mmec-btn--ghost { background: transparent; color: var(--p); border: 1px solid var(--p); }
.mmec-btn--ghost:hover { background: var(--soft); color: var(--pd); box-shadow: none; }
.mmec-btn--danger { background: #b3261e; } .mmec-btn--danger:hover { background: #8c1d18; box-shadow: 0 6px 16px rgba(179, 38, 30, .3); }
.mmec-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mmec-links { margin: 18px 0 0; font-size: .875rem; text-align: center; color: var(--mut); }
.mmec-links a, .mmec-small, .mmec-hint a, .mmec-help a { color: var(--p); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mmec-small { font-size: .8125rem; }
.mmec-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }

/* ---------- Notices ---------- */
.mmec-notice { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .9rem; font-weight: 500; animation: mmec-in .35s ease both; }
.mmec-notice--error { background: #fdecea; color: #8c1d18; border: 1px solid #f5c2be; }
.mmec-notice--ok { background: #e6f4ee; color: #1d5c46; border: 1px solid #bfe3d2; }
.mmec-hint { font-size: .875rem; color: var(--mut); margin: 0 0 16px; }
.mmec-hint--box { background: var(--soft); border-radius: 10px; padding: 12px 14px; }

/* ---------- Form fields ---------- */
.mmec-form .mmec-field { margin: 0 0 20px; }
.mmec-field label { display: block; font-size: .8125rem; font-weight: 700; margin-bottom: 6px; }
.mmec-req { color: var(--bad); }
.mmec-inputwrap { position: relative; }
.mmec-field input[type="text"], .mmec-field input[type="email"], .mmec-field input[type="password"], .mmec-field select, .mmec-field textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid #d6e0e0; border-radius: 9px; background: #fff; font: inherit; color: inherit;
	transition: border-color .2s, box-shadow .2s;
}
.mmec-field input:focus, .mmec-field select:focus, .mmec-field textarea:focus { outline: 0; border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 14%, transparent); }
.mmec-field.has-error input, .mmec-field.has-error select, .mmec-field.has-error textarea, .mmec-field.has-error .mmec-tags, .mmec-field.has-error .mmec-drop { border-color: var(--bad); }
.mmec-field.has-error input:focus { box-shadow: 0 0 0 4px rgba(214, 69, 69, .15); }
.mmec-field textarea { resize: vertical; min-height: 90px; }
.mmec-help { display: block; margin-top: 6px; font-size: .75rem; color: var(--mut); }
.mmec-fielderr { margin: 6px 0 0; font-size: .8125rem; font-weight: 600; color: var(--bad); display: none; }
.mmec-field.has-error .mmec-fielderr { display: block; animation: mmec-in .25s ease both; }
.mmec-pwtoggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--p); font: inherit; font-size: .8125rem; font-weight: 700; padding: 6px 8px; cursor: pointer; }
.mmec-inputwrap input[type="password"], .mmec-inputwrap input[data-match] { padding-right: 64px; }
.mmec-row { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mmec-row { grid-template-columns: 1fr 1fr; } }
.mmec-check label { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; font-weight: 500; cursor: pointer; }
.mmec-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--p); flex: none; }
.mmec-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Progress meter (red → amber → green) ---------- */
.mmec-meter { margin-top: 8px; --mc: var(--bad); }
.mmec-meter[data-state="mid"] { --mc: var(--mid); }
.mmec-meter[data-state="good"] { --mc: var(--ok); }
.mmec-meter__track { height: 6px; background: #e8eeee; border-radius: 99px; overflow: hidden; }
.mmec-meter__fill { display: block; height: 100%; width: 0; background: var(--mc); border-radius: 99px; transition: width .25s ease, background-color .25s ease; }
.mmec-meter__row { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-size: .75rem; }
.mmec-meter__msg { color: var(--mc); font-weight: 700; }
.mmec-meter__count { color: var(--mut); font-variant-numeric: tabular-nums; }

/* ---------- Tag chips ---------- */
.mmec-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 7px 8px; min-height: 48px; border: 1.5px solid #d6e0e0; border-radius: 9px; background: #fff; cursor: text; transition: border-color .2s, box-shadow .2s; }
.mmec-tags:focus-within { border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 14%, transparent); }
.mmec-field .mmec-tags__input { flex: 1 1 120px; width: auto; min-width: 100px; border: 0; padding: 6px 6px; box-shadow: none; background: transparent; }
.mmec-field .mmec-tags__input:focus { box-shadow: none; }
.mmec-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 11px; border-radius: 99px; background: var(--soft); color: var(--pd); font-size: .8125rem; font-weight: 700; animation: mmec-pop .2s ease both; }
.mmec-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(34, 89, 79, .12); color: var(--pd); font-size: 14px; line-height: 1; cursor: pointer; }
.mmec-chip button:hover { background: var(--bad); color: #fff; }
@keyframes mmec-pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Image drop zone ---------- */
.mmec-drop { position: relative; border: 2px dashed #b9cccc; border-radius: 14px; background: linear-gradient(180deg, #fbfdfd, var(--soft)); transition: border-color .2s, background .2s, transform .2s; }
.mmec-drop:hover, .mmec-drop.is-drag { border-color: var(--p); background: #eef7f5; }
.mmec-drop.is-drag { transform: scale(1.01); }
.mmec-drop.has-file { border-style: solid; border-color: var(--bd); background: #fff; }
.mmec-drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.mmec-drop.has-file .mmec-drop__input { pointer-events: none; }
.mmec-drop__empty { display: grid; justify-items: center; gap: 4px; padding: 34px 20px; text-align: center; font-size: .9375rem; }
.mmec-drop__empty strong { color: var(--p); display: inline; }
.mmec-drop__empty small { display: block; margin-top: 4px; color: var(--mut); font-size: .75rem; }
.mmec-drop__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--p); box-shadow: 0 4px 14px color-mix(in srgb, var(--p) 18%, transparent); margin-bottom: 8px; transition: transform .25s; }
.mmec-drop:hover .mmec-drop__icon { transform: translateY(-3px); }
.mmec-drop__icon .mmec-ico { width: 26px; height: 26px; }
.mmec-drop__empty[hidden], .mmec-drop__preview[hidden] { display: none; }
.mmec-drop__preview { position: relative; z-index: 3; display: grid; gap: 0; }
.mmec-drop__preview img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px 12px 0 0; background: var(--soft); }
.mmec-drop__info { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; font-size: .8125rem; color: var(--mut); }
.mmec-drop__btns { display: flex; gap: 6px; }

/* ---------- Post list (dashboard) ---------- */
.mmec-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mmec-post { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--bd); border-radius: 12px; transition: box-shadow .2s, transform .2s, border-color .2s; animation: mmec-in .4s ease both; }
.mmec-post:hover { box-shadow: 0 8px 24px rgba(31, 42, 48, .08); transform: translateY(-2px); border-color: #cfe0dd; }
.mmec-post__img { display: block; width: 84px; height: 64px; border-radius: 9px; overflow: hidden; background: var(--soft); }
.mmec-post__img img { width: 100%; height: 100%; object-fit: cover; }
.mmec-post__title { display: block; font-weight: 600; font-family: var(--font-heading, inherit); font-size: 1.0625rem; line-height: 1.25; margin-bottom: 6px; }
.mmec-post__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.mmec-post__date { font-size: .75rem; color: var(--mut); }
.mmec-post__views { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; color: var(--p); }
.mmec-post__views .mmec-ico { width: 14px; height: 14px; }
.mmec-post__actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mmec-inline { display: inline; margin: 0; }
@media (max-width: 640px) { .mmec-post { grid-template-columns: 64px minmax(0, 1fr); } .mmec-post__img { width: 64px; height: 56px; } .mmec-post__actions { grid-column: 1 / -1; justify-content: flex-start; } }
.mmec-link-btn { padding: 7px 13px; border: 1px solid var(--bd); border-radius: 8px; background: #fff; font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.mmec-link-btn:hover { border-color: var(--p); color: var(--p); background: var(--soft); }
.mmec-link-btn--danger { color: #b3261e; } .mmec-link-btn--danger:hover { border-color: #b3261e; color: #b3261e; background: #fdecea; }
.mmec-badge { padding: 3px 10px; border-radius: 99px; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.mmec-badge--ok { background: #e6f4ee; color: #1d5c46; } .mmec-badge--wait { background: #fff3d6; color: #7a5200; } .mmec-badge--draft { background: #eceff1; color: #455a64; }
.mmec-emptybox { text-align: center; padding: 48px 20px; border: 2px dashed var(--bd); border-radius: 14px; }
.mmec-emptybox .mmec-ico { width: 44px; height: 44px; color: var(--p); margin: 0 auto 10px; }
.mmec-emptybox h3 { margin: 0 0 6px; } .mmec-emptybox p { color: var(--mut); margin: 0 0 18px; }
.mmec-empty { color: var(--mut); padding: 20px 0; }

/* ---------- Profile photo ---------- */
.mmec-photo { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.mmec-photo__pic { position: relative; width: 104px; height: 104px; flex: none; padding: 4px; border-radius: 50%; background: conic-gradient(var(--p), var(--ok, #49a597), var(--p)); box-shadow: 0 8px 22px color-mix(in srgb, var(--p) 25%, transparent); }
.mmec-photo__img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; display: block; background: #fff; }
.mmec-photo__body { flex: 1 1 260px; min-width: 0; }
.mmec-photo__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.mmec-photo__remove { display: inline-block; margin: 0 0 8px; }
.mmec-photo__pick { position: relative; overflow: hidden; cursor: pointer; }
.mmec-photo__pick.is-picked { border-style: dashed; }
.mmec-photo__file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mmec-photo__save[hidden] { display: none; }
.mmec-photo.has-error .mmec-fielderr { display: block; }
.mmec-photo .mmec-fielderr { display: none; }
.mmec-photo.has-error .mmec-fielderr, .mmec-photo .mmec-fielderr:not(:empty) { display: block; }

/* ---------- Account danger zone ---------- */
.mmec-danger-title { color: #b3261e; }
.mmec-danger { background: #fff7f6; border: 1px solid #f5c2be; border-radius: 12px; padding: 18px; }

/* ---------- Analytics ---------- */
.mmec-period { display: inline-flex; gap: 6px; margin-bottom: 18px; background: var(--soft); padding: 4px; border-radius: 99px; }
.mmec-period a { padding: 6px 16px; border-radius: 99px; font-size: .8125rem; font-weight: 700; }
.mmec-period a.is-active { background: var(--p); color: #fff; }
.mmec-backlink { margin: 0 0 4px; font-size: .875rem; } .mmec-backlink a { color: var(--p); font-weight: 700; }
.mmec-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 18px; }
.mmec-stat { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--bd); border-radius: 12px; background: #fff; transition: transform .2s, box-shadow .2s; animation: mmec-in .4s ease both; }
.mmec-stat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31, 42, 48, .08); }
.mmec-stat__ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--soft); color: var(--p); flex: none; }
.mmec-stat__ico .mmec-ico { width: 20px; height: 20px; }
.mmec-stat__lbl { display: block; font-size: .75rem; color: var(--mut); font-weight: 600; }
.mmec-stat__val { display: block; font-size: 1.5rem; line-height: 1.15; font-family: var(--font-heading, inherit); }
.mmec-stat__sub { display: block; font-size: .75rem; color: var(--mut); }
.mmec-panelbox { border: 1px solid var(--bd); border-radius: 12px; padding: 18px; margin-bottom: 14px; background: #fff; }
.mmec-panelbox h3 { margin: 0 0 12px; font-size: 1rem; font-family: var(--font-heading, inherit); }
.mmec-twocol { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .mmec-twocol { grid-template-columns: 1fr 1fr; } }
/* Bar chart (HTML) */
.mmec-bars { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: 180px auto; column-gap: 10px; row-gap: 10px; }
.mmec-bars__y { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 11px; line-height: 1; color: var(--mut); font-variant-numeric: tabular-nums; }
.mmec-bars__plot { grid-column: 2; grid-row: 1; position: relative; }
.mmec-bars__grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.mmec-bars__grid i { display: block; height: 0; border-top: 1px dashed #dfe8e8; }
.mmec-bars__cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.mmec-bars__col { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-radius: 8px; cursor: default; transition: background .15s; }
.mmec-bars__col i { display: block; width: 100%; max-width: 40px; background: linear-gradient(180deg, #49a597, var(--p)); border-radius: 6px 6px 0 0; transition: filter .18s, opacity .18s, transform .18s, box-shadow .18s; transform-origin: bottom; }
/* Hover: highlight the whole day, lift its bar, dim the others, show a tooltip at once */
.mmec-bars__col:hover { background: color-mix(in srgb, var(--p) 9%, transparent); }
.mmec-bars__col:hover i { filter: brightness(1.08) saturate(1.15); transform: scaleY(1.03); box-shadow: 0 6px 16px color-mix(in srgb, var(--p) 35%, transparent); }
.mmec-bars__cols:hover .mmec-bars__col:not(:hover) i { opacity: .45; }
.mmec-bars__col::after { content: attr(data-tip); position: absolute; left: 50%; top: -8px; transform: translate(-50%, -100%) translateY(4px); z-index: 5; padding: 6px 11px; border-radius: 9px; background: #1f2a30; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; box-shadow: 0 8px 20px rgba(31, 42, 48, .28); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.mmec-bars__col:hover::after { opacity: 1; transform: translate(-50%, -100%); }
.mmec-bars__col:first-child::after { left: 0; transform: translate(0, -100%) translateY(4px); }
.mmec-bars__col:first-child:hover::after { transform: translate(0, -100%); }
.mmec-bars__col:last-child::after { left: auto; right: 0; transform: translate(0, -100%) translateY(4px); }
.mmec-bars__col:last-child:hover::after { transform: translate(0, -100%); }
.mmec-bars__col.is-zero i { height: 2px !important; background: #e1eaea; border-radius: 2px; }
.mmec-bars__val { margin-bottom: 4px; font-size: 11px; font-weight: 800; color: var(--pd); }
.mmec-bars__x { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--mut); }
.mmec-bars__x--grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; text-align: center; }
.mmec-funnel__row { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; margin: 10px 0; font-size: .8125rem; font-weight: 600; }
.mmec-funnel__row--wide { grid-template-columns: 120px 1fr 44px; }
.mmec-funnel__row b { text-align: right; font-variant-numeric: tabular-nums; }
.mmec-bar { height: 10px; background: #e8eeee; border-radius: 99px; overflow: hidden; }
.mmec-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--p), #49a597); border-radius: 99px; }
.mmec-tablewrap { overflow-x: auto; border: 1px solid var(--bd); border-radius: 12px; }
.mmec-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.mmec-table th { text-align: left; padding: 11px 14px; background: var(--soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); white-space: nowrap; }
.mmec-table td { padding: 12px 14px; border-top: 1px solid var(--bd); }
.mmec-table td a { font-weight: 700; } .mmec-table td a:hover { color: var(--p); }
.mmec-table tbody tr:hover { background: #fafcfc; }
.mmec-reach { display: flex; gap: 3px; } .mmec-reach i { width: 18px; height: 10px; border-radius: 3px; background: var(--p); }
.mmec-privacy { margin-top: 18px; }

@media (max-width: 640px) {
	.mmec-card { padding: 20px; }
	.mmec-table thead { display: none; }
	.mmec-table, .mmec-table tbody, .mmec-table tr, .mmec-table td { display: block; width: 100%; }
	.mmec-table tr { border-top: 1px solid var(--bd); padding: 8px 0; }
	.mmec-table td { border: 0; display: flex; justify-content: space-between; padding: 6px 14px; }
	.mmec-table td::before { content: attr(data-label); color: var(--mut); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { .mmec-page, .mmec-post, .mmec-stat, .mmec-panel li, .mmec-notice, .mmec-chip { animation: none !important; opacity: 1 !important; } * { transition: none !important; } }

/* ---------- 1.6: info notice, comment moderation, language switch, captcha ---------- */
.mmec-notice--info { background: #eef5f4; color: #22594f; border: 1px solid #cfe3e0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; }
.mmec-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mmec-comment { border: 1px solid var(--bd); border-radius: var(--r); padding: 14px 16px; background: #fff; }
.mmec-comment.is-pending { border-color: #f0d38a; background: #fffbf0; }
.mmec-comment__head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .85rem; color: var(--mut); margin-bottom: 6px; }
.mmec-comment__head strong { color: #1f2a30; font-size: .95rem; }
.mmec-comment__text { margin: 0 0 10px; white-space: pre-line; word-break: break-word; }
.mmec-comment__post { font-size: .85rem; }
.mmec-comment__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mmec-filter { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.mmec-filter a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bd); text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--mut); }
.mmec-filter a.is-active { background: var(--p); border-color: var(--p); color: #fff; }
.mmec-menu .mmec-count { margin-left: auto; background: #e0a100; color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 1px 7px; }
.mmec-lang { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mmec-lang label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--bd); border-radius: var(--rs); cursor: pointer; font-weight: 600; }
.mmec-lang input:checked + span { color: var(--pd); }
.mmec-lang label:has(input:checked) { border-color: var(--p); background: var(--soft); }
.mmec-captcha { margin: 6px 0 14px; }
.mmec-link-btn--ok { color: #1d5c46; border-color: #bfe3d2; } .mmec-link-btn--ok:hover { background: #e6f4ee; color: #1d5c46; border-color: #1f9d6a; }

/* ---------- SEO fields (Yoast) in the submit form ---------- */
.mmec-seo { margin: 0 0 22px; border: 1px solid var(--bd); border-radius: var(--r); background: #fff; }
.mmec-seo__sum { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.mmec-seo__sum::-webkit-details-marker { display: none; }
.mmec-seo__sum::after { content: ""; width: 9px; height: 9px; margin-left: auto; flex: none; border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut); transform: rotate(45deg); transition: transform .2s; }
.mmec-seo[open] > .mmec-seo__sum::after { transform: rotate(-135deg); }
.mmec-seo__sum strong { display: block; font-size: .9375rem; }
.mmec-seo__sum small { display: block; color: var(--mut); font-size: .8125rem; }
.mmec-seo__ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--soft); color: var(--p); }
.mmec-seo__ico svg { width: 18px; height: 18px; }
.mmec-seo__body { padding: 4px 16px 16px; border-top: 1px solid var(--bd); }
.mmec-seo__body .mmec-field { margin: 16px 0 0; }
.mmec-serp { display: grid; gap: 3px; margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--bd); border-radius: var(--r); background: #fafbfb; font-family: Arial, sans-serif; }
.mmec-serp__label { margin-bottom: 4px; color: var(--mut); font-size: .7rem; font-weight: 700; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }
.mmec-serp__url { color: #4d5156; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmec-serp__title { color: #1a0dab; font-size: 18px; line-height: 1.3; }
.mmec-serp__desc { color: #4d5156; font-size: 13.5px; line-height: 1.5; }
