/* Marketer dashboard — 商家列表 card + merchant VtAlert popups (merchcard1; kolprog1: flat rows, actions bottom-centre).
   Card sits in the empty column left of the desk calendar (#inf_marketer_dashboard_root .mk-top-row). */

/* ───────────── card ───────────── */
#inf_marketer_dashboard_root .mmc-col { display: flex; min-width: 0; }
.mmc-card,
.mmc-card *,
.mmc-card *::before,
.mmc-card *::after { box-sizing: border-box; }
.mmc-card {
  --mmc-ink: #2b2114;
  --mmc-ink-soft: #6b5a3e;
  --mmc-line: rgba(180, 140, 60, 0.28);
  position: relative;
  width: 100%;
  height: 460px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 18px 10px;
  background: #fffdf5;
  border: 1px solid #e6d49a;
  border-radius: 14px;
  box-shadow: 4px 6px 0 rgba(180, 140, 40, 0.1), 0 14px 28px rgba(120, 90, 40, 0.1);
  color: var(--mmc-ink);
  overflow: hidden;
}
.mmc-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(180, 140, 60, 0.35);
}
.mmc-head-text { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mmc-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--mmc-ink);
  white-space: nowrap;
}
.mmc-count {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f5ecd3;
  color: var(--mmc-ink-soft);
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}
.mmc-count[hidden], .mmc-search[hidden] { display: none !important; }
.mmc-create-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.32);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.mmc-create-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4); filter: brightness(1.04); }
.mmc-create-btn:active { transform: translateY(0); }
.mmc-create-btn:focus-visible { outline: 3px solid rgba(99, 102, 241, 0.45); outline-offset: 2px; }
.mmc-create-btn i { font-size: 0.95rem; }

.mmc-search {
  flex: none;
  position: relative;
  display: block;
  margin: 12px 0 2px;
}
.mmc-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #a08b62;
  font-size: 0.85rem;
  pointer-events: none;
}
.mmc-search input {
  width: 100%;
  height: 36px;
  padding: 6px 12px 6px 34px;
  border: 1px solid #eadfbf;
  border-radius: 10px;
  background: #fff;
  color: var(--mmc-ink);
  font: inherit;
  font-size: 0.85rem;
}
.mmc-search input:focus { outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }

.mmc-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 6px -8px 0 -6px;
  padding: 0 6px 6px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 130, 70, 0.35) transparent;
}
.mmc-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px dashed var(--mmc-line);
  border-radius: 10px;
  transition: background 0.15s ease;
}
.mmc-row:last-child { border-bottom: 0; }
.mmc-row:hover { background: rgba(250, 240, 210, 0.55); }
.mmc-row.is-new { animation: mmcRowNew 2.4s ease-out; }
@keyframes mmcRowNew { 0%, 35% { background: #fde68a; } 100% { background: transparent; } }

.mmc-logo,
.mmc-hero-logo,
.mmc-owner-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  background: #efe2b8;
  color: #5c4a2e;
  font-weight: 800;
}
.mmc-logo { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(120, 90, 40, 0.2); font-size: 1rem; }
.mmc-logo img, .mmc-hero-logo img, .mmc-owner-logo img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.mmc-logo img + b, .mmc-hero-logo img + b, .mmc-owner-logo img + b { display: none; }
.mmc-logo b, .mmc-hero-logo b, .mmc-owner-logo b { font-weight: 800; }

.mmc-row-main { min-width: 0; }
.mmc-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}
.mmc-name-text {
  min-width: 0;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #1a1208;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.mmc-name-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.72rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.mmc-name:hover .mmc-name-text,
.mmc-name:focus-visible .mmc-name-text {
  color: #4f46e5;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.mmc-name:hover .mmc-name-icon,
.mmc-name:focus-visible .mmc-name-icon { background: #4f46e5; color: #fff; transform: scale(1.06); }
.mmc-name:focus-visible { box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.45); }
@media (hover: none) { .mmc-name:active .mmc-name-text { opacity: 0.7; } }

.mmc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-top: 3px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--mmc-ink-soft);
  line-height: 1.45;
}
.mmc-meta-item { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.mmc-meta-item i { font-size: 0.72rem; opacity: 0.75; }
.mmc-row-side { display: flex; align-items: center; gap: 6px; }
.mmc-branch-pill,
.mmc-src-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f5ecd3;
  color: var(--mmc-ink-soft);
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}
.mmc-src-pill { background: #e0f2fe; color: #075985; }

/* skeleton + states */
.mmc-row--skeleton .mmc-logo { border: 0; }
.mmc-sk { display: block; height: 11px; border-radius: 6px; margin: 4px 0; }
.mmc-sk--name { width: 58%; height: 13px; }
.mmc-sk--meta { width: 38%; }
.mmc-row--skeleton .mmc-logo,
.mmc-sk,
.mmc-branch--skeleton .mmc-branch-icon {
  background: linear-gradient(90deg, #f1e8cf 0%, #faf4e1 45%, #f1e8cf 90%);
  background-size: 200% 100%;
  animation: mmcShimmer 1.3s linear infinite;
}
@keyframes mmcShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mmc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mmc-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 100%;
  padding: 28px 16px;
  text-align: center;
}
.mmc-state--compact { min-height: 0; padding: 22px 12px; }
.mmc-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: #f5ecd3;
  color: #8a6d35;
  font-size: 1.45rem;
}
.mmc-state-title { font-weight: 800; color: var(--mmc-ink); font-size: 0.95rem; }
.mmc-state-hint { max-width: 280px; font-size: 0.8rem; color: var(--mmc-ink-soft); line-height: 1.5; }
.mmc-state--error .mmc-state-icon { background: #fee2e2; color: #b91c1c; }
.mmc-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 14px;
  border: 1px solid #e6d49a;
  border-radius: 999px;
  background: #fff;
  color: var(--mmc-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}
.mmc-retry-btn:hover { background: #fdf6e3; }

@media (max-width: 991.98px) {
  #inf_marketer_dashboard_root .mk-top-row > .mmc-col { order: 2; margin-top: 1.5rem; }
  .mmc-card { height: auto !important; }
  .mmc-list { max-height: 420px; }
}
@media (max-width: 767.98px) {
  body.influencer-dashboard.is-marketer-mode .mmc-card {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    overflow: visible !important;
    color: #0f172a;
  }
  body.influencer-dashboard.is-marketer-mode .mmc-list {
    max-height: none !important;
    overflow: visible !important;
  }
  body.influencer-dashboard.is-marketer-mode .mmc-head {
    border-bottom-color: #e2e8f0;
  }
}
@media (max-width: 575.98px) {
  .mmc-card { padding: 14px 14px 8px; border-radius: 12px; }
  .mmc-title { font-size: 1.25rem; }
  .mmc-create-btn { min-height: 34px; padding: 7px 12px; font-size: 0.8rem; }
  .mmc-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 4px; }
  .mmc-logo { width: 40px; height: 40px; border-radius: 11px; }
  .mmc-list { max-height: 380px; }
}
@media (max-width: 359.98px) {
  .mmc-count { display: none !important; }
}

/* ───────────── popup shell (VtAlert card with .mmc-popup) ───────────── */
.vt-alert-root:has(.vt-alert.mmc-popup) { padding: 16px; }
.vt-alert.mmc-popup {
  width: min(100%, 640px);
  max-width: 100%;
  max-height: min(92vh, 980px);
  max-height: min(92dvh, 980px);
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  font-size: 0.92rem;
  color: #0f172a;
}
.vt-alert.mmc-popup--form { width: min(100%, 820px); }
.vt-alert.mmc-popup--branch { width: min(100%, 540px); }
.vt-alert.mmc-popup .vt-alert__spark { display: none; }
.vt-alert.mmc-popup .vt-alert__glow { opacity: 0.18; }
.vt-alert.mmc-popup .vt-alert__title {
  flex: none;
  margin: 0;
  padding: 17px 64px 14px;
  text-align: center;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  border-bottom: 1px solid #eef2f7;
  position: relative;
  z-index: 1;
}
.vt-alert.mmc-popup .vt-alert__close,
.vt-alert.mmc-popup .vt-alert__back { top: 11px; width: 34px; height: 34px; }
.vt-alert.mmc-popup .vt-alert__close { right: 12px; font-size: 1.45rem; background: #f1f5f9; box-shadow: none; }
.vt-alert.mmc-popup .vt-alert__back { left: 12px; font-size: 1.05rem; box-shadow: none; }
.vt-alert.mmc-popup .vt-alert__back:disabled { opacity: 0.45; cursor: not-allowed; }
.vt-alert.mmc-popup .vt-alert__html {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 18px 22px 24px;
  position: relative;
  z-index: 1;
}
.vt-alert.mmc-popup .vt-alert__validation-msg { flex: none; margin: 0 22px 10px; position: relative; z-index: 1; }
.vt-alert.mmc-popup .vt-alert__actions {
  flex: none;
  margin: 0;
  padding: 12px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eef2f7;
  background: rgba(255, 255, 255, 0.96);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.vt-alert.mmc-popup .mmc-action-btn { min-width: 140px; gap: 8px; }
.vt-alert.mmc-popup .mmc-action-btn.is-busy { opacity: 0.8; cursor: progress; transform: none; }
.vt-alert.mmc-popup--result { width: min(100%, 420px); padding: 34px 28px 30px; text-align: center; }
.vt-alert.mmc-popup--result .vt-alert__title { border: 0; padding: 0; font-size: 1.2rem; }
.vt-alert.mmc-popup--result .vt-alert__text { margin-top: 6px; }

.mmc-popup .mmc-detail, .mmc-popup .mmc-detail *, .mmc-popup .mmc-detail *::before, .mmc-popup .mmc-detail *::after,
.mmc-popup .mmc-form, .mmc-popup .mmc-form *, .mmc-popup .mmc-form *::before, .mmc-popup .mmc-form *::after { box-sizing: border-box; }

/* shared */
.mmc-popup .mmc-sec { margin-top: 18px; }
.mmc-popup .mmc-sec:first-child { margin-top: 0; }
.mmc-popup .mmc-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
}
.mmc-popup .mmc-sec-title > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.85rem;
}
.mmc-popup .mmc-sec-count {
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.74rem;
  font-weight: 800;
}
.mmc-popup .mmc-muted { color: #94a3b8; }
.mmc-popup .mmc-empty { margin: 0 0 4px; color: #94a3b8; font-size: 0.86rem; }
.mmc-popup .mmc-hint { margin-top: 6px; font-size: 0.78rem; color: #64748b; line-height: 1.5; }
.mmc-popup .mmc-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(79, 70, 229, 0.25);
  border-top-color: #4f46e5;
  animation: mmcSpin 0.8s linear infinite;
  flex: none;
}
.mmc-popup .mmc-spinner--light { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@keyframes mmcSpin { to { transform: rotate(360deg); } }
.mmc-popup .mmc-inline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
}
.mmc-popup .mmc-inline-status--warn { background: #fffbeb; color: #92400e; }

/* detail */
.mmc-popup .mmc-hero { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mmc-popup .mmc-hero-logo { width: 64px; height: 64px; border-radius: 18px; border: 1px solid #e2e8f0; font-size: 1.5rem; background: linear-gradient(135deg, #eef2ff, #f5f3ff); color: #4338ca; }
.mmc-popup .mmc-hero-text { min-width: 0; }
.mmc-popup .mmc-hero-name { font-size: 1.28rem; font-weight: 800; line-height: 1.3; color: #0f172a; word-break: break-word; }
.mmc-popup .mmc-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mmc-popup .mmc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.76rem;
  font-weight: 750;
}
.mmc-popup .mmc-chip--company { background: #e0f2fe; color: #075985; }
.mmc-popup .mmc-kv { margin: 0; border: 0; border-top: 1px solid #e2e8f0; border-radius: 0; background: transparent; }
.mmc-popup .mmc-kv-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 0;
  border-bottom: 1px solid #e2e8f0;
}
.mmc-popup .mmc-kv-row dt { margin: 0; font-size: 0.82rem; font-weight: 700; color: #64748b; line-height: 1.45; word-break: break-word; }
.mmc-popup .mmc-kv-row dd { margin: 0; font-size: 0.88rem; font-weight: 600; color: #0f172a; min-width: 0; word-break: break-word; line-height: 1.45; }
.mmc-popup .mmc-kv-row a { color: #4338ca; text-decoration: none; font-weight: 650; }
.mmc-popup .mmc-kv-row a:hover { text-decoration: underline; }
.mmc-popup .mmc-pre { white-space: pre-line; }
.mmc-popup .mmc-branch-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid #e2e8f0; }
.mmc-popup .mmc-branch {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
}
.mmc-popup .mmc-branch-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #15803d;
}
.mmc-popup .mmc-branch-body { flex: 1 1 auto; min-width: 0; }
.mmc-popup .mmc-branch-name { font-weight: 750; color: #0f172a; line-height: 1.35; word-break: break-word; }
.mmc-popup .mmc-branch-address { margin-top: 2px; font-size: 0.8rem; color: #64748b; line-height: 1.45; word-break: break-word; white-space: pre-line; }
.mmc-popup .mmc-branch-edit {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.mmc-popup .mmc-branch-edit:hover { border-color: #a5b4fc; color: #4338ca; background: #f5f7ff; }
.mmc-popup .mmc-add-branch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px dashed #a5b4fc;
  border-radius: 12px;
  background: #f5f7ff;
  color: #4338ca;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mmc-popup .mmc-add-branch:hover { background: #eef2ff; }
.mmc-popup .mmc-branch-edit:focus-visible,
.mmc-popup .mmc-add-branch:focus-visible { outline: 3px solid rgba(99, 102, 241, 0.35); outline-offset: 2px; }

/* forms */
.mmc-popup .mmc-form.is-saving { opacity: 0.6; pointer-events: none; }
.mmc-popup .mmc-form .mmc-sec { border: 0; border-radius: 0; padding: 0 0 4px; background: transparent; }
.mmc-popup .mmc-form .mmc-sec + .mmc-sec { margin-top: 12px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.mmc-popup .mmc-field { margin-bottom: 12px; min-width: 0; }
.mmc-popup .mmc-label { display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 750; color: #334155; }
.mmc-popup .mmc-req { color: #ef4444; }
.mmc-popup .mmc-req--text { font-size: 0.78rem; font-weight: 700; }
.mmc-popup .mmc-input {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mmc-popup textarea.mmc-input { resize: vertical; min-height: 72px; }
.mmc-popup .mmc-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18); }
.mmc-popup .mmc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.mmc-popup .mmc-grid2[hidden], .mmc-popup .mmc-social-block[hidden] { display: none !important; }

.mmc-popup .mmc-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
}
.mmc-popup .mmc-switch-text { min-width: 0; }
.mmc-popup .mmc-switch-title { display: flex; align-items: center; gap: 6px; font-weight: 750; color: #1e293b; font-size: 0.88rem; }
.mmc-popup .mmc-switch-title i { color: #d97706; }
.mmc-popup .mmc-switch-hint { display: block; margin-top: 2px; font-size: 0.77rem; color: #64748b; line-height: 1.45; }
.mmc-popup .mmc-switch { position: relative; display: inline-flex; flex: none; margin: 0; cursor: pointer; }
.mmc-popup .mmc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mmc-popup .mmc-switch-ui {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.18s ease;
}
.mmc-popup .mmc-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease;
}
.mmc-popup .mmc-switch input:checked + .mmc-switch-ui { background: #4f46e5; }
.mmc-popup .mmc-switch input:checked + .mmc-switch-ui::after { transform: translateX(18px); }
.mmc-popup .mmc-switch input:focus-visible + .mmc-switch-ui { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); }
.mmc-popup .mmc-switch input[data-mmc-locked] + .mmc-switch-ui { background: #818cf8; }

.mmc-popup .mmc-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.mmc-popup .mmc-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.mmc-popup .mmc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mmc-popup .mmc-check span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mmc-popup .mmc-check input:checked + span { border-color: #818cf8; background: #eef2ff; color: #3730a3; }
.mmc-popup .mmc-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); }

.mmc-popup .mmc-time-row { display: flex; align-items: center; gap: 6px; }
.mmc-popup .mmc-time-row .mmc-input { flex: 1 1 0; min-width: 0; padding: 8px 8px; }
.mmc-popup .mmc-time-row .mmc-input:last-child { flex: 1.2 1 0; }
.mmc-popup .mmc-time-sep { color: #94a3b8; font-weight: 700; }

.mmc-popup .mmc-logo-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px dashed #a5b4fc;
  border-radius: 14px;
  background: #f8faff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mmc-popup .mmc-logo-drop:hover { background: #eef2ff; border-color: #818cf8; }
.mmc-popup .mmc-logo-drop:focus-within { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
.mmc-popup .mmc-logo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mmc-popup .mmc-logo-preview {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #6366f1;
  font-size: 1.6rem;
  overflow: hidden;
}
.mmc-popup .mmc-logo-preview img { width: 100%; height: 100%; object-fit: contain; background: #f8fafc; }
.mmc-popup .mmc-logo-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mmc-popup .mmc-logo-cta { font-weight: 800; color: #4338ca; font-size: 0.9rem; }
.mmc-popup .mmc-logo-file { font-size: 0.78rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mmc-popup .mmc-btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px dashed #a5b4fc;
  border-radius: 10px;
  background: #f5f7ff;
  color: #4338ca;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}
.mmc-popup .mmc-btn-soft:hover { background: #eef2ff; }
.mmc-popup .mmc-blackout { margin-bottom: 12px; }
.mmc-popup .mmc-blackout .mmc-switch-row { margin-bottom: 0; }
.mmc-popup .mmc-bo-block { margin-top: 10px; }
.mmc-popup .mmc-blackout .jz-bo-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mmc-popup .mmc-blackout .jz-bo-rows:empty { display: none; }
.mmc-popup .mmc-blackout .jz-bo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.mmc-popup .mmc-blackout .jz-bo-row select {
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
  color: #0f172a;
}
.mmc-popup .mmc-blackout .jz-bo-row .jz-bo-day { min-width: 120px; flex: 0 1 140px; }
.mmc-popup .mmc-blackout .jz-bo-time { display: flex; align-items: center; gap: 4px; flex: 1 1 180px; min-width: 0; }
.mmc-popup .mmc-blackout .jz-bo-time select { flex: 1 1 0; min-width: 0; }
.mmc-popup .mmc-blackout .jz-bo-sep { color: #94a3b8; font-size: 0.8rem; }
.mmc-popup .mmc-blackout .jz-bo-remove-btn { width: 36px; height: 36px; border-radius: 10px; }

.mmc-popup .mmc-branch-owner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 750;
  color: #1e293b;
}
.mmc-popup .mmc-owner-logo { width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e2e8f0; font-size: 0.9rem; background: linear-gradient(135deg, #eef2ff, #f5f3ff); color: #4338ca; }

/* ───────────── responsive popups ───────────── */
@media (max-width: 767.98px) {
  .vt-alert-root:has(.vt-alert.mmc-popup) { padding: 10px; }
  .vt-alert.mmc-popup,
  .vt-alert.mmc-popup--form,
  .vt-alert.mmc-popup--branch {
    width: 100%;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }
  .vt-alert.mmc-popup--result { width: min(100%, 360px); }
  .vt-alert.mmc-popup .vt-alert__title { padding: 16px 56px 12px; font-size: 1rem; }
  .vt-alert.mmc-popup .vt-alert__html { padding: 14px 14px 20px; }
  .vt-alert.mmc-popup .vt-alert__validation-msg { margin: 0 14px 8px; }
  .vt-alert.mmc-popup .vt-alert__actions { padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .vt-alert.mmc-popup .vt-alert__actions { flex-wrap: nowrap; }
  .vt-alert.mmc-popup .vt-alert__actions .vt-alert__btn { flex: 1 1 0; max-width: 240px; min-width: 0; }
  .mmc-popup .mmc-grid2 { grid-template-columns: 1fr; }
  .mmc-popup .mmc-form .mmc-sec { padding: 0 0 2px; border-radius: 0; }
  .mmc-popup .mmc-form .mmc-sec + .mmc-sec { padding-top: 12px; }
  .mmc-popup .mmc-kv-row { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
  .mmc-popup .mmc-hero-logo { width: 56px; height: 56px; border-radius: 16px; }
  .mmc-popup .mmc-hero-name { font-size: 1.14rem; }
  .mmc-popup .mmc-check span { min-width: 0; padding: 6px 11px; }
  .mmc-popup .mmc-blackout .jz-bo-row .jz-bo-day { flex: 1 1 100%; max-width: 100%; }
  .mmc-popup .mmc-blackout .jz-bo-time { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mmc-row.is-new { animation: none; background: #fef9c3; }
  .mmc-sk, .mmc-row--skeleton .mmc-logo, .mmc-branch--skeleton .mmc-branch-icon { animation: none; }
  .mmc-popup .mmc-spinner { animation-duration: 1.6s; }
  .mmc-create-btn, .mmc-name-icon { transition: none; }
}
